Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/semantic-memory-experiment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ jobs:
publish, workspace = map(Path, sys.argv[1:])
started = time.monotonic()
deadline = started + 35
expected_children = 184 # Source inventory:164 +16 strict refusals +3 strict positives +1 tampered report.
expected_contexts = 185
expected_children = 190 # 164 original +6 new CLI probes +16 strict refusals +3 strict positives +1 tampered report.
expected_contexts = 191
receipt = {"schema_version": 1, "kind": "OBSERVER_COUNT_CONTROLS",
"scope": "SYNTHETIC_MUTATIONS_OF_CURRENT_ORIGINALS",
"native_originals_modified": False, "expected_children_per_mode": expected_children,
Expand Down Expand Up @@ -815,8 +815,8 @@ jobs:
and type(row['optimize']) is int and row['optimize'] == optimize for row in rows):
raise ValueError('diagnostic closed schema or mode')
result['child_mode_diagnostic'] = {'records': len(rows), 'optimize': optimize}
if len(rows) != 184:
issues.append(mode + ': expected exactly 184 CLI-child diagnostic rows')
if len(rows) != 190:
issues.append(mode + ': expected exactly 190 CLI-child diagnostic rows')
if not source['product_cli_present']:
issues.append(mode + ': child diagnostic exists while CLI was absent')
except (UnicodeError, ValueError) as error:
Expand Down Expand Up @@ -881,8 +881,8 @@ jobs:
'records': len(contexts), 'kinds': kinds, 'isolated': 1,
'safe_path': True, 'stdlib_origins': 'RETAINED_TEST_PROCESS_OBSERVATIONS',
'search_path': 'PINNED_IMAGE_PLUS_EXACT_CAPTURED_TEST_DIRECTORY'}
if len(contexts) != 185:
issues.append(mode + ': expected exactly 185 import-context rows')
if len(contexts) != 191:
issues.append(mode + ': expected exactly 191 import-context rows')
except (OSError, UnicodeError, ValueError, TypeError, KeyError) as error:
issues.append(mode + ': missing/invalid import context ' + type(error).__name__)
modes[mode] = result
Expand Down
21 changes: 21 additions & 0 deletions tests/test_semantic_memory_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,27 @@ def nonfinite(p):
file = p / "corpus-manifest.json"
file.write_bytes(file.read_bytes().replace(b'"seed": 20261008', b'"seed": NaN', 1))
self.mutation("nonfinite_json", nonfinite)

# Retained mutation-audit negatives (main#428/6244680213).
# Rebind case-file transport bytes when testing JSON semantics; keep
# the original three-method runner contract and frozen fixtures intact.
def nonfinite_case_token(p):
name = "heldout-cases.json"
value = self.load(p, name)
case = next(c for c in value["cases"] if c["case_id"] == "P01")
self.assertIsNone(case["exact_source_id"])
case["exact_source_id"] = float("nan")
raw = (json.dumps(value, sort_keys=True, ensure_ascii=False,
separators=(",", ":"), allow_nan=True) + "\n").encode("utf-8")
self.assertIn(b'"exact_source_id":NaN', raw)
(p / name).write_bytes(raw)
self.manifest(p, lambda m: m["case_files"].update(
{name: {"bytes": len(raw), "sha256": digest(raw)}}))
self.mutation("nonfinite_case_token_with_rebound_descriptor", nonfinite_case_token)
self.mutation("stale_case_file_descriptor", lambda p: self.manifest(
p, lambda m: m["case_files"]["heldout-cases.json"].update(sha256="0" * 64)))
self.mutation("whitespace_only_oracle_sentinel", lambda p: self.casefile(
p, "heldout-oracle.json", lambda v: v.update(oracle_only_sentinel=" ")))
def invalid_json_utf8(p):
file = p / "corpus-manifest.json"
file.write_bytes(file.read_bytes() + b"\xff")
Expand Down
Loading