diff --git a/.github/workflows/semantic-memory-experiment.yml b/.github/workflows/semantic-memory-experiment.yml index 668f6809d..6cc379349 100644 --- a/.github/workflows/semantic-memory-experiment.yml +++ b/.github/workflows/semantic-memory-experiment.yml @@ -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, @@ -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: @@ -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 diff --git a/tests/test_semantic_memory_benchmark.py b/tests/test_semantic_memory_benchmark.py index ba731031c..87589a828 100644 --- a/tests/test_semantic_memory_benchmark.py +++ b/tests/test_semantic_memory_benchmark.py @@ -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")