From 31c43861a7bab389cab43ccf99e7cc2c09e3357e Mon Sep 17 00:00:00 2001 From: Dylan Roy Date: Mon, 26 Oct 2026 16:10:07 +0000 Subject: [PATCH 1/2] Authenticate elder third-order mutant reports with the legacy JSON replay The elder-third-order wrapper accepted any exit 1 as an intended mutant rejection, ignored baseline stderr, and checked the unknown label by exit status alone, so an unrelated crash or a silent exit could pass (diagnosis: Math- issue 322, comment 6325841078). Route it through the existing tools/legacy_json_replay.py contract, with references measured from the unchanged checker: exact baseline bytes and empty stderr; each mutant's complete strict-JSON report with exit 1 and empty stderr; and the exact unknown-label diagnostic with exit 2. Add the family to the shell-contract and trigger tests, which also run as the workflow's first two steps. Packet files and the source-verification block are unchanged. Scientific effect NONE. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015wNj8LPTKXsaT68G3DgPPh --- .github/workflows/elder-third-order.yml | 35 +++-- .../SCOPE.md | 121 ++++++++++++++++++ tests/test_legacy_json_workflows.py | 16 ++- tests/test_legacy_workflow_triggers.py | 1 + tools/legacy_json_contracts.json | 2 +- tools/legacy_json_replay.py | 3 +- 6 files changed, 155 insertions(+), 23 deletions(-) create mode 100644 reviews/elder_third_order_workflow_repair_20261021/SCOPE.md diff --git a/.github/workflows/elder-third-order.yml b/.github/workflows/elder-third-order.yml index f5a06fcef..80c5e010d 100644 --- a/.github/workflows/elder-third-order.yml +++ b/.github/workflows/elder-third-order.yml @@ -1,11 +1,18 @@ name: Elder third-order exact controls +# The pull_request paths after tests/test_legacy_workflow_triggers.py are the bound merged sources +# (consumed in SOURCES.json) and the pinned unmerged dependencies. 'on': pull_request: paths: - 'frontiers/elder_third_order_20261001/**' - '.github/workflows/elder-third-order.yml' - # bound merged sources (consumed in SOURCES.json) and the pinned unmerged dependencies + - 'tools/legacy_json_replay.py' + - 'tools/legacy_json_contracts.json' + - 'tests/test_legacy_json_workflows.py' + - 'tools/**' + - 'tools.py' + - 'tests/test_legacy_workflow_triggers.py' - 'frontiers/three_fronts_20260924/LIFETIME_REMAINDER.md' - 'imports/lifetime_parent_20260925/UNIFORM_MATRIX_CAP_AND_LIFETIME.md' - 'imports/lifetime_parent_20260925/ERRATUM_CONGRUENCE.md' @@ -35,6 +42,17 @@ jobs: - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 with: python-version: '3.11.16' + - name: Check legacy import-resolution trigger coverage + run: | + python -B -S tests/test_legacy_workflow_triggers.py + python -B -O -S tests/test_legacy_workflow_triggers.py + - name: Exercise the complete shell rejection contract in both modes + env: + LEGACY_TEST_FAMILY: 'elder-third-order' + PYTHONDONTWRITEBYTECODE: '1' + run: | + python -B -S tests/test_legacy_json_workflows.py + python -B -O -S tests/test_legacy_json_workflows.py - name: Verify sources, replay both modes, reject mutants env: PYTHONDONTWRITEBYTECODE: '1' @@ -140,19 +158,8 @@ jobs: now = current(entry) if kind == 'consumed_unmerged' else None print(json.dumps({kind + '_bound': entry['path'], 'git_blob': entry['git_blob'], 'head': entry['head'], 'via': where, 'current_ref_checked': now})) - script = str(root / 'e3_check.py') - expected = (root / 'RESULTS.json').read_bytes() - for flags in (['-B', '-S'], ['-B', '-O', '-S']): - out = subprocess.run([sys.executable, *flags, script], check=True, capture_output=True, timeout=600).stdout - if out != expected: - raise RuntimeError('output differs from RESULTS.json under ' + ' '.join(flags)) - for m in manifest['mutants']: - rc = subprocess.run([sys.executable, *flags, script, '--mutant', m], capture_output=True, timeout=600).returncode - if rc != 1: - raise RuntimeError('mutant ' + m + ' not rejected') - rc = subprocess.run([sys.executable, *flags, script, '--mutant', 'M9'], capture_output=True, timeout=600).returncode - if rc != 2: - raise RuntimeError('unknown mutant label not rejected with exit 2') + from tools.legacy_json_replay import replay + replay('elder-third-order', root) print(json.dumps({'scientific_effect': 'NONE', 'mathematical_acceptance': False})) PY git diff --exit-code diff --git a/reviews/elder_third_order_workflow_repair_20261021/SCOPE.md b/reviews/elder_third_order_workflow_repair_20261021/SCOPE.md new file mode 100644 index 000000000..4b89d0df7 --- /dev/null +++ b/reviews/elder_third_order_workflow_repair_20261021/SCOPE.md @@ -0,0 +1,121 @@ +# Elder third-order wrapper: authenticate the intended rejection + +Dylan Roy — delegated AI engineering. Actual author: Anthropic Claude, session +`session_015wNj8LPTKXsaT68G3DgPPh` (C8), stage `E3-WRAPPER-REPAIR-C8-20261021`, +pickup Math-#322/6326697003; Dylan approved this repair and its draft PR in the +author's session. Scientific effect NONE; shared-account organizational credit 0. +Author-side implementation only. A separate nonauthor engineering review and a +separate integrator are required. Because this changes a workflow, a merge also +needs Dylan's decision for this pull request. No mathematical acceptance or proof +correction is asserted. + +## Finding and exact source + +The finding is the elder-third-order case of AUD-LEGACY-MUTANT-01 (#322). It was +established by another session's full-shell diagnostic, Math-#322/6325841078 +(OpenAI GPT-6 Astra Pro), which this repair credits. The complete wrapper +accepted an unrelated crash or a silent exit 1 at every M1–M8 stage in both +modes, wrong mutant output, unexpected stderr, baseline stderr and an M9 with +the wrong streams. The baseline kept only the child's stdout, and every mutant +and M9 kept only its exit status. The checker itself was not reported to crash, +and no theorem is refuted by a wrapper defect. + +| Object | Identity | +|---|---| +| Base, Math- `main` | `180d6406b0a51b268a152241a70bde6a1b39a142` | +| Workflow before this change | blob `f5a06fcef3c20239a64b86b27370c3daa7c37a52` | +| `e3_check.py` (unchanged) | blob `b5f04a87f2d2984280bf394bd4e5f3db560e1b33`, 31,425 B | +| `RESULTS.json` (unchanged) | 3,533 B, SHA-256 `3390d0fc2fd74138fb34b6d5447c7d56191ffc4257fe9ba3985786d1ab661fb1` | + +The workflow blob is the diagnostic's `f247407330dd068880bc68f66520f95d8fee2296` +plus only the `setup-python` pin update of `2c041de` (24 October). The checker, +`RESULTS.json` and `SOURCES.json` are byte-identical at the reference file's +`source_cut` (`b25cac0b`) and at the base. + +## Repair and preservation + +Six files: the workflow, `tools/legacy_json_replay.py` (one inventory row and the +docstring's family count), `tools/legacy_json_contracts.json` (one new family and +one provenance sentence), `tests/test_legacy_json_workflows.py`, +`tests/test_legacy_workflow_triggers.py` (one family row) and this note. + +The workflow now calls the existing `replay()` that far-elder, local-pairing and +c6-cluster already use, instead of its own exit-only loop. It gains the same two +earlier steps those workflows run: the trigger-coverage test, and the complete +shell rejection contract for its own family, both in both Python modes. It also +gains the same trigger paths. The comment that sat inside the path list moved +above `'on':` with the same meaning, because the trigger test's path reader +accepts only plain quoted rows. + +Unchanged: +- the whole source-verification block that runs before any child: packet + membership and file identities, the tree-bound merged sources, and the + API-bound unmerged sources with their drift gate; +- the action pins, read-only permissions, `persist-credentials: false`, + Python 3.11.16, the 10-minute job budget and the 600-second child budget; +- the terminal NONE/false record and the final `git diff --exit-code`; +- every packet file (`e3_check.py`, `PROOF.md`, `RESULTS.json`, `SOURCES.json`, + `README.md`) and the other three families' reference entries. + +## The contract + +The references are complete reports measured from the unchanged CLI, never +outputs learned from the invocation under test. + +- **Baseline:** exit 0, empty stderr, and stdout byte-identical to `RESULTS.json`. +- **M1–M8:** exit 1, empty stderr, and one strict JSON object structurally equal + to the measured report: the same keys, types, values and list order. +- **M9:** exit 2, empty stdout, and stderr exactly `unknown mutant label\n`, which + is the checker's own message for an unknown label. + +The references were measured under CPython 3.11.15 in both modes, twice, with +identical bytes each time. Each report fails exactly the check whose source branch +the mutant changes, and every other check is byte-identical to the baseline's: + +| Mutant | Failing check | +|---|---| +| M1, M8 | `X1_exponent_ledger` | +| M2 | `X3_margins` | +| M3 | `X4_decision_1d` | +| M4 | `X5_weighted_taylor` | +| M5 | `X6_lemma_S` | +| M6 | `X8_lemma_S_prime_algebra` | +| M7 | `X9_lemma_H_exact_form` | + +That is an observation, not a rule. The protocol compares whole reports, so it +assumes no exactly-one-failed-check rule. + +## Execution and non-vacuous regressions + +All of the following ran locally on CPython 3.11.15 at the base above. + +- **Real checker:** `replay('elder-third-order', …)` on the actual packet gave + 20/20 `protocol_ok`: the baseline, M1–M8 and M9 in both modes. +- **Trigger test:** OK in both modes. +- **Shell rejection contract for this family** (`LEGACY_TEST_FAMILY=elder-third-order`): + 15 tests OK in both modes, about 42 seconds each. +- **RED control:** the same tests, with `LEGACY_SOURCE_ROOT` set to the unchanged + `main`, give 72 false acceptances: + + | Test | False acceptances | + |---|---| + | crashes | 16 | + | silent exits | 16 | + | wrong reasons | 16 | + | JSON-contract faults | 18 | + | unknown-label diagnostics | 4 | + | baseline stderr | 2 | + + The valid inventory, wrong exits, source guards and exact baseline bytes were + already enforced before this change, and those tests pass there too. +- **Budget:** past hosted runs of this workflow took about 3 to 5.5 minutes. The + two new steps add about 1.5 minutes locally. + +## Limits + +- The local interpreter is 3.11.15, not the hosted 3.11.16. The hosted run is the + qualifying execution. +- The synthetic fixture exercises the source-verification block with empty + unmerged-source lists. The API-bound dependency path runs only in the real + hosted job. +- This repairs one wrapper. Other wrappers named in #322 keep their own stages. diff --git a/tests/test_legacy_json_workflows.py b/tests/test_legacy_json_workflows.py index e3d2acc9f..b9e84e81f 100644 --- a/tests/test_legacy_json_workflows.py +++ b/tests/test_legacy_json_workflows.py @@ -20,11 +20,11 @@ ROOT = Path(__file__).resolve().parents[1] SOURCE = Path(os.environ.get('LEGACY_SOURCE_ROOT', str(ROOT))) CONTRACTS = json.loads((ROOT/'tools/legacy_json_contracts.json').read_text()) -WORKFLOWS = {'local-pairing':'local-pairing.yml','far-elder':'far-elder-rate.yml','c6-cluster':'c6-cluster-law.yml'} +WORKFLOWS = {'local-pairing':'local-pairing.yml','far-elder':'far-elder-rate.yml','c6-cluster':'c6-cluster-law.yml','elder-third-order':'elder-third-order.yml'} ACTIVE = {k:v for k,v in CONTRACTS['families'].items() if not os.environ.get('LEGACY_TEST_FAMILY') or k == os.environ['LEGACY_TEST_FAMILY']} if not ACTIVE: raise SystemExit('unknown test family') -UNKNOWN = {'local-pairing':'M9','far-elder':'M9','c6-cluster':'unknown'} +UNKNOWN = {'local-pairing':'M9','far-elder':'M9','c6-cluster':'unknown','elder-third-order':'M9'} CHOICES = ('pins-not-critical','wrong-pin-hessian','drop-sigma-jacobian', 'three-extra-points','cross-term-not-small','window-closed','index-sign', 'shear-drop-cubic','s-bound-constant') @@ -130,14 +130,16 @@ def case(self,family,label='baseline',mode='normal',fault='',tamper=None): files.append(row('SOURCE_MAP.json',sm)) (directory/'SOURCE_FILES.json').write_text(json.dumps({'files':files})) else: - (directory/'SOURCES.json').write_text(json.dumps({'files':files,'consumed':[pin],'cited_only':[]})) + sources={'files':files,'consumed':[pin],'cited_only':[]} + if family=='elder-third-order':sources['mutants']=ORDERS[family] + (directory/'SOURCES.json').write_text(json.dumps(sources)) (repo/'tools').mkdir() helper=SOURCE/'tools/legacy_json_replay.py' if helper.exists():shutil.copyfile(helper,repo/'tools/legacy_json_replay.py') entry['script_git_blob']=blob(data) # Only source authentication is re-bound for this synthetic fixture. (repo/'tools/legacy_json_contracts.json').write_text(json.dumps(contract)) - env=os.environ.copy();env.update({'LEGACY_TRACE':str(trace),'LEGACY_TARGET':label,'LEGACY_MODE':mode,'LEGACY_FAULT':fault,'PYTHONDONTWRITEBYTECODE':'1','PYTHONHASHSEED':'0'}) + env=os.environ.copy();env.update({'LEGACY_TRACE':str(trace),'LEGACY_TARGET':label,'LEGACY_MODE':mode,'LEGACY_FAULT':fault,'PYTHONDONTWRITEBYTECODE':'1','PYTHONHASHSEED':'0','GH_REPOSITORY':'synthetic/fixture','GH_TOKEN':'unused-no-network'}) for cmd in [['git','init','-q'],['git','add','.'],['git','-c','user.name=Fixture','-c','user.email=fixture@example.invalid','-c','commit.gpgsign=false','commit','-qm','synthetic fixture']]: subprocess.run(cmd,cwd=repo,check=True,capture_output=True,timeout=15,env=env) if tamper=='packet':(directory/entry['script']).write_bytes(data+b'\n') @@ -154,7 +156,7 @@ def rejected(self,fam,label,mode,fault): def test_reference_custody(self): canonical=json.dumps(CONTRACTS['families'],sort_keys=True,separators=(',',':')).encode() - self.assertEqual(digest(canonical),'2aa3e27caf5adf27646d5a762ab6bd12974235aa8e0390450504f399aa02417d') + self.assertEqual(digest(canonical),'4b5363a8ef0e988227050109333c315670f8f3690338e12128a6b109e68b2fdd') for fam,entry in ACTIVE.items(): self.assertEqual(digest(BASELINES[fam].encode()),entry['baseline_sha256']) @@ -298,9 +300,9 @@ def test_invalid_columns_use_pipe_fallback(self): self.diagnostic_case(width, columns, optimized) -ORDERS={'local-pairing':['M1','M2','M3','M4'],'far-elder':['M1','M2','M3','M4'],'c6-cluster':['pins-not-critical','wrong-pin-hessian','drop-sigma-jacobian','three-extra-points','shear-drop-cubic','s-bound-constant','cross-term-not-small','window-closed','index-sign']} +ORDERS={'local-pairing':['M1','M2','M3','M4'],'far-elder':['M1','M2','M3','M4'],'c6-cluster':['pins-not-critical','wrong-pin-hessian','drop-sigma-jacobian','three-extra-points','shear-drop-cubic','s-bound-constant','cross-term-not-small','window-closed','index-sign'],'elder-third-order':['M1','M2','M3','M4','M5','M6','M7','M8']} # BASELINES inserted below from native RESULTS, independently hash-bound above. -BASELINES = {'c6-cluster': '{\n "groups": [\n "NF",\n "RS",\n "EX",\n "BD",\n "EU",\n "SH",\n "TW",\n "LG"\n ],\n "ledger": {\n "cross_term_exponent": "9/2",\n "hadamard_row_factors": {\n "3": 6,\n "4": 8\n },\n "soft_slice_exponent": 3,\n "ui_tail": "1/(M-1)"\n },\n "mathematical_acceptance": false,\n "object": "CL-C6-CLUSTER-LAW-20260929-v1.2",\n "passed": true,\n "q2_terms": 12,\n "schema": 1,\n "scientific_effect": "NONE",\n "scope": "exact identities, exact configurations and exponent bookkeeping only",\n "typed_window": {\n "family_size": 201720,\n "typed_in_window": 2590\n }\n}\n', 'far-elder': '{\n "checks": {\n "B1_barrier_polynomial": {\n "info": {\n "K": "22",\n "R": "1/11",\n "grid_points_in_ball": 1793,\n "lambda": "2"\n },\n "passed": true\n },\n "B2_algebra_and_constants": {\n "info": {\n "L=1": {\n "a_L": "1/4",\n "c_L": "1/48"\n },\n "L=2": {\n "a_L": "1/2",\n "c_L": "1/12"\n },\n "L=24": {\n "a_L": "1",\n "c_L": "1/3"\n },\n "L=4": {\n "a_L": "1",\n "c_L": "1/3"\n }\n },\n "passed": true\n },\n "I1_split_integral": {\n "info": {\n "q=2,u=1/100": "149/1000000",\n "q=2,u=1/4": "5/64",\n "q=2,u=1/9": "25/1458",\n "q=4,u=1/100": "299999999/4000000000000",\n "q=4,u=1/4": "767/16384",\n "q=4,u=1/9": "9841/1062882"\n },\n "passed": true\n },\n "I2_exponent_ledger": {\n "info": {\n "count exponent": "5/3",\n "inverse moment threshold": "-5/3",\n "u^2 exponent of ell": "2/3"\n },\n "passed": true\n },\n "N1_near_consistency": {\n "info": {\n "6*sqrt(6 c_L) < 12 for c_L <= 1/3": true\n },\n "passed": true\n }\n },\n "object": "CL-FAR-ELDER-RATE-20260930-v1",\n "passed": true,\n "scientific_effect": "NONE"\n}\n', 'local-pairing': '{\n "checks": {\n "I0_I3_identities": {\n "info": 144,\n "passed": true\n },\n "N1_n0_grid": {\n "info": {\n "n0_points_with_U_hypothesis": 0,\n "n0_typed_grid_points": 135\n },\n "passed": true\n },\n "P1_path_cases": {\n "info": {\n "cases": {\n "U": 2160,\n "V": 4680,\n "V_at_other_root": 2160\n },\n "min_margin": "1/1200",\n "samples": 6840\n },\n "passed": true\n },\n "P2_elder_witness": {\n "info": {\n "Z1_squared": "15/8",\n "n": 2,\n "saddle_height": "-7/32",\n "u0": "-3/4",\n "vertical_line_constant": true\n },\n "passed": true\n }\n },\n "object": "CL-LOCAL-PAIRING-20260930-v1",\n "passed": true,\n "scientific_effect": "NONE"\n}\n'} +BASELINES = {'c6-cluster': '{\n "groups": [\n "NF",\n "RS",\n "EX",\n "BD",\n "EU",\n "SH",\n "TW",\n "LG"\n ],\n "ledger": {\n "cross_term_exponent": "9/2",\n "hadamard_row_factors": {\n "3": 6,\n "4": 8\n },\n "soft_slice_exponent": 3,\n "ui_tail": "1/(M-1)"\n },\n "mathematical_acceptance": false,\n "object": "CL-C6-CLUSTER-LAW-20260929-v1.2",\n "passed": true,\n "q2_terms": 12,\n "schema": 1,\n "scientific_effect": "NONE",\n "scope": "exact identities, exact configurations and exponent bookkeeping only",\n "typed_window": {\n "family_size": 201720,\n "typed_in_window": 2590\n }\n}\n', 'far-elder': '{\n "checks": {\n "B1_barrier_polynomial": {\n "info": {\n "K": "22",\n "R": "1/11",\n "grid_points_in_ball": 1793,\n "lambda": "2"\n },\n "passed": true\n },\n "B2_algebra_and_constants": {\n "info": {\n "L=1": {\n "a_L": "1/4",\n "c_L": "1/48"\n },\n "L=2": {\n "a_L": "1/2",\n "c_L": "1/12"\n },\n "L=24": {\n "a_L": "1",\n "c_L": "1/3"\n },\n "L=4": {\n "a_L": "1",\n "c_L": "1/3"\n }\n },\n "passed": true\n },\n "I1_split_integral": {\n "info": {\n "q=2,u=1/100": "149/1000000",\n "q=2,u=1/4": "5/64",\n "q=2,u=1/9": "25/1458",\n "q=4,u=1/100": "299999999/4000000000000",\n "q=4,u=1/4": "767/16384",\n "q=4,u=1/9": "9841/1062882"\n },\n "passed": true\n },\n "I2_exponent_ledger": {\n "info": {\n "count exponent": "5/3",\n "inverse moment threshold": "-5/3",\n "u^2 exponent of ell": "2/3"\n },\n "passed": true\n },\n "N1_near_consistency": {\n "info": {\n "6*sqrt(6 c_L) < 12 for c_L <= 1/3": true\n },\n "passed": true\n }\n },\n "object": "CL-FAR-ELDER-RATE-20260930-v1",\n "passed": true,\n "scientific_effect": "NONE"\n}\n', 'local-pairing': '{\n "checks": {\n "I0_I3_identities": {\n "info": 144,\n "passed": true\n },\n "N1_n0_grid": {\n "info": {\n "n0_points_with_U_hypothesis": 0,\n "n0_typed_grid_points": 135\n },\n "passed": true\n },\n "P1_path_cases": {\n "info": {\n "cases": {\n "U": 2160,\n "V": 4680,\n "V_at_other_root": 2160\n },\n "min_margin": "1/1200",\n "samples": 6840\n },\n "passed": true\n },\n "P2_elder_witness": {\n "info": {\n "Z1_squared": "15/8",\n "n": 2,\n "saddle_height": "-7/32",\n "u0": "-3/4",\n "vertical_line_constant": true\n },\n "passed": true\n }\n },\n "object": "CL-LOCAL-PAIRING-20260930-v1",\n "passed": true,\n "scientific_effect": "NONE"\n}\n', 'elder-third-order': '{\n "checks": {\n "X1_exponent_ledger": {\n "core": {\n "l rho_f^-2": "5/11",\n "l^2 rho_c^-7": "4/9",\n "l^2 rho_f^-6": "4/11",\n "rho_c^2": "4/9",\n "rho_f^2": "6/11",\n "rho_f^5/l": "4/11"\n },\n "intermediate": {\n "[a,r0*]: l^(2/3) a^-2": "2/5",\n "[a,r0*]: l^(5/3) a^-7": "11/15",\n "[rho_c,a]: a^3": "2/5",\n "[rho_c,a]: l^2 rho_c^-7": "4/9"\n },\n "least": "4/11",\n "passed": true,\n "split_exponent": "2/15"\n },\n "X2_ridge_identities": {\n "X3_closed_forms_at_rational_phi": 400,\n "factorizations": true,\n "g_at_points": {\n "-3": [\n "-50",\n "3675/16"\n ],\n "-3/2": [\n "-5",\n "12"\n ],\n "2": [\n "25/2",\n "675/16"\n ]\n },\n "passed": true\n },\n "X3_margins": {\n "margin_constant": "3/2",\n "min_ratio_over_grid": "3/2",\n "passed": true,\n "sharp_at_phi_1": true\n },\n "X4_decision_1d": {\n "cases": {\n "E": 117,\n "R+": 123,\n "R-": 123\n },\n "grid_points": 501,\n "passed": true,\n "threshold": "1/3"\n },\n "X5_weighted_taylor": {\n "fields": [\n {\n "d": 2,\n "degree": 6,\n "kappa": "161/100",\n "min_slack": 0,\n "monomials": 26\n },\n {\n "d": 2,\n "degree": 6,\n "kappa": "117/50",\n "min_slack": 0,\n "monomials": 25\n },\n {\n "d": 2,\n "degree": 6,\n "kappa": "157/100",\n "min_slack": 0,\n "monomials": 25\n },\n {\n "d": 2,\n "degree": 7,\n "kappa": "42/25",\n "min_slack": 0,\n "monomials": 37\n },\n {\n "d": 2,\n "degree": 7,\n "kappa": "17/25",\n "min_slack": 0,\n "monomials": 37\n },\n {\n "d": 2,\n "degree": 7,\n "kappa": "51/50",\n "min_slack": 0,\n "monomials": 37\n },\n {\n "d": 3,\n "degree": 6,\n "kappa": "213/100",\n "min_slack": 0,\n "monomials": 78\n },\n {\n "d": 3,\n "degree": 6,\n "kappa": "13/100",\n "min_slack": 0,\n "monomials": 79\n },\n {\n "d": 3,\n "degree": 6,\n "kappa": "29/100",\n "min_slack": 0,\n "monomials": 72\n }\n ],\n "passed": true\n },\n "X6_lemma_S": {\n "Q2_C0_poly": [\n "25/16",\n "175/16",\n "1225/64"\n ],\n "Q2_C2_poly": [\n "105/64",\n "2911/128",\n "317/4"\n ],\n "coefficient": "2",\n "passed": true,\n "random_instances": 900\n },\n "X7_pointwise": {\n "passed": true,\n "trials": 5000\n },\n "X8_lemma_S_prime_algebra": {\n "extremal_singular": true,\n "instances": 121,\n "loewner_factor": "r^2",\n "passed": true,\n "range_witness_r2_fails": true\n },\n "X9_lemma_H_exact_form": {\n "fields": [\n {\n "d": 2,\n "degree": 6,\n "kappa": "11/100",\n "separations": 4\n },\n {\n "d": 2,\n "degree": 6,\n "kappa": "237/100",\n "separations": 4\n },\n {\n "d": 2,\n "degree": 6,\n "kappa": "169/100",\n "separations": 4\n },\n {\n "d": 2,\n "degree": 7,\n "kappa": "52/25",\n "separations": 4\n },\n {\n "d": 2,\n "degree": 7,\n "kappa": "23/20",\n "separations": 4\n },\n {\n "d": 2,\n "degree": 7,\n "kappa": "69/25",\n "separations": 4\n },\n {\n "d": 3,\n "degree": 6,\n "kappa": "57/100",\n "separations": 4\n },\n {\n "d": 3,\n "degree": 6,\n "kappa": "29/10",\n "separations": 4\n },\n {\n "d": 3,\n "degree": 6,\n "kappa": "151/100",\n "separations": 4\n }\n ],\n "passed": true\n }\n },\n "mutant": null,\n "object": "CL-ELDER-THIRD-ORDER-20261001-v1.1 controls",\n "passed": true,\n "scientific_effect": "NONE"\n}\n'} if __name__ == "__main__": unittest.main(verbosity=2) diff --git a/tests/test_legacy_workflow_triggers.py b/tests/test_legacy_workflow_triggers.py index 0f61389a9..c2e37a3a5 100644 --- a/tests/test_legacy_workflow_triggers.py +++ b/tests/test_legacy_workflow_triggers.py @@ -19,6 +19,7 @@ 'local-pairing.yml': 'frontiers/local_pairing_20260930', 'far-elder-rate.yml': 'frontiers/far_elder_rate_20260930', 'c6-cluster-law.yml': 'frontiers/c6_cluster_law_20260929', + 'elder-third-order.yml': 'frontiers/elder_third_order_20261001', } STEP = ( ' - name: Check legacy import-resolution trigger coverage\n' diff --git a/tools/legacy_json_contracts.json b/tools/legacy_json_contracts.json index 349fc3276..93bf4f0cc 100644 --- a/tools/legacy_json_contracts.json +++ b/tools/legacy_json_contracts.json @@ -1 +1 @@ -{"families":{"c6-cluster":{"baseline_bytes":601,"baseline_sha256":"26f0af06567ea8f33497bf64fbfff07f0e9154017c9a3e280c49100a9247a197","directory":"frontiers/c6_cluster_law_20260929","mutants":{"cross-term-not-small":{"error":"near-far cross term is o(r^3)","passed":false},"drop-sigma-jacobian":{"error":"exponent: r (soft slice) . r^4 (weight) / r^2 (normalizer) = r^3","passed":false},"index-sign":{"error":"pin weights","passed":false},"pins-not-critical":{"error":"F_0(M) must be 0","passed":false},"s-bound-constant":{"error":"(-s - 2|B|)_+^3 <= 32 k D^2 (Lemma 3.6)","passed":false},"shear-drop-cubic":{"error":"shear identity (3.12) with k cleared","passed":false},"three-extra-points":{"error":"quotient degree","passed":false},"window-closed":{"error":"N_oo of a configuration","passed":false},"wrong-pin-hessian":{"error":"pin Hessian block","passed":false}},"script":"cluster_law_check.py","script_git_blob":"91f485f529e09bebcd92f5a8f41d87bf01efc6d6"},"far-elder":{"baseline_bytes":1111,"baseline_sha256":"6ef4152058bd186766c97aba47a8a3485f5b033943d3d1d134c427a6702c4947","directory":"frontiers/far_elder_rate_20260930","mutants":{"M1":{"checks":{"B1_barrier_polynomial":{"info":"barrier (1.1) fails at z=(1/3,-1/12)","passed":false},"B2_algebra_and_constants":{"info":{"L=1":{"a_L":"1/4","c_L":"1/48"},"L=2":{"a_L":"1/2","c_L":"1/12"},"L=24":{"a_L":"1","c_L":"1/3"},"L=4":{"a_L":"1","c_L":"1/3"}},"passed":true},"I1_split_integral":{"info":{"q=2,u=1/100":"149/1000000","q=2,u=1/4":"5/64","q=2,u=1/9":"25/1458","q=4,u=1/100":"299999999/4000000000000","q=4,u=1/4":"767/16384","q=4,u=1/9":"9841/1062882"},"passed":true},"I2_exponent_ledger":{"info":{"count exponent":"5/3","inverse moment threshold":"-5/3","u^2 exponent of ell":"2/3"},"passed":true},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"},"M2":{"checks":{"B1_barrier_polynomial":{"info":{"K":"22","R":"1/11","grid_points_in_ball":1793,"lambda":"2"},"passed":true},"B2_algebra_and_constants":{"info":"core inequality fails at lam=1/3 K=1/3 t=5/8","passed":false},"I1_split_integral":{"info":{"q=2,u=1/100":"149/1000000","q=2,u=1/4":"5/64","q=2,u=1/9":"25/1458","q=4,u=1/100":"299999999/4000000000000","q=4,u=1/4":"767/16384","q=4,u=1/9":"9841/1062882"},"passed":true},"I2_exponent_ledger":{"info":{"count exponent":"5/3","inverse moment threshold":"-5/3","u^2 exponent of ell":"2/3"},"passed":true},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"},"M3":{"checks":{"B1_barrier_polynomial":{"info":{"K":"22","R":"1/11","grid_points_in_ball":1793,"lambda":"2"},"passed":true},"B2_algebra_and_constants":{"info":{"L=1":{"a_L":"1/4","c_L":"1/48"},"L=2":{"a_L":"1/2","c_L":"1/12"},"L=24":{"a_L":"1","c_L":"1/3"},"L=4":{"a_L":"1","c_L":"1/3"}},"passed":true},"I1_split_integral":{"info":"split integral exceeds its bound at u=1/4 q=2","passed":false},"I2_exponent_ledger":{"info":{"count exponent":"5/3","inverse moment threshold":"-5/3","u^2 exponent of ell":"2/3"},"passed":true},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"},"M4":{"checks":{"B1_barrier_polynomial":{"info":{"K":"22","R":"1/11","grid_points_in_ball":1793,"lambda":"2"},"passed":true},"B2_algebra_and_constants":{"info":{"L=1":{"a_L":"1/4","c_L":"1/48"},"L=2":{"a_L":"1/2","c_L":"1/12"},"L=24":{"a_L":"1","c_L":"1/3"},"L=4":{"a_L":"1","c_L":"1/3"}},"passed":true},"I1_split_integral":{"info":{"q=2,u=1/100":"149/1000000","q=2,u=1/4":"5/64","q=2,u=1/9":"25/1458","q=4,u=1/100":"299999999/4000000000000","q=4,u=1/4":"767/16384","q=4,u=1/9":"9841/1062882"},"passed":true},"I2_exponent_ledger":{"info":"u^2 monomial wrong for q=2: (Fraction(2, 3), Fraction(2, 3))","passed":false},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"}},"script":"far_elder_check.py","script_git_blob":"58ff10f85cb89566433500855f385bc87f87e916"},"local-pairing":{"baseline_bytes":796,"baseline_sha256":"c012b374ac07c9d51dbab6e2168194b6b27afed6c8f489da5c376230044546b4","directory":"frontiers/local_pairing_20260930","mutants":{"M1":{"checks":{"I0_I3_identities":{"info":144,"passed":true},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":0,"n0_typed_grid_points":135},"passed":true},"P1_path_cases":{"info":"chart sample not typed/n>=1 at (Fraction(1, 1), Fraction(-7, 5), Fraction(2109, 200), Fraction(-2, 1), Fraction(-2, 1))","passed":false},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":true}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"},"M2":{"checks":{"I0_I3_identities":{"info":144,"passed":true},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":0,"n0_typed_grid_points":135},"passed":true},"P1_path_cases":{"info":"root not in the strict window","passed":false},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":true}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"},"M3":{"checks":{"I0_I3_identities":{"info":"I1 conic identity fails at u=-3/2 Z=-2","passed":false},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":0,"n0_typed_grid_points":135},"passed":true},"P1_path_cases":{"info":{"cases":{"U":2160,"V":4680,"V_at_other_root":2160},"min_margin":"1/1200","samples":6840},"passed":true},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":false}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"},"M4":{"checks":{"I0_I3_identities":{"info":144,"passed":true},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":1,"n0_typed_grid_points":135},"passed":false},"P1_path_cases":{"info":"nonpositive margin","passed":false},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":true}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"}},"script":"pairing_check.py","script_git_blob":"6a3aec4d4bfaca39d10cb95a2691a6894348c737"}},"provenance":"Native unchanged CLI outputs; independently characterized in Math-#322 comment6008323186. This file is an engineering reference, not mathematical acceptance.","schema":1,"source_cut":"b25cac0bcbb4032d624f14795257d9578c90d105"} +{"families":{"c6-cluster":{"baseline_bytes":601,"baseline_sha256":"26f0af06567ea8f33497bf64fbfff07f0e9154017c9a3e280c49100a9247a197","directory":"frontiers/c6_cluster_law_20260929","mutants":{"cross-term-not-small":{"error":"near-far cross term is o(r^3)","passed":false},"drop-sigma-jacobian":{"error":"exponent: r (soft slice) . r^4 (weight) / r^2 (normalizer) = r^3","passed":false},"index-sign":{"error":"pin weights","passed":false},"pins-not-critical":{"error":"F_0(M) must be 0","passed":false},"s-bound-constant":{"error":"(-s - 2|B|)_+^3 <= 32 k D^2 (Lemma 3.6)","passed":false},"shear-drop-cubic":{"error":"shear identity (3.12) with k cleared","passed":false},"three-extra-points":{"error":"quotient degree","passed":false},"window-closed":{"error":"N_oo of a configuration","passed":false},"wrong-pin-hessian":{"error":"pin Hessian block","passed":false}},"script":"cluster_law_check.py","script_git_blob":"91f485f529e09bebcd92f5a8f41d87bf01efc6d6"},"elder-third-order":{"baseline_bytes":3533,"baseline_sha256":"3390d0fc2fd74138fb34b6d5447c7d56191ffc4257fe9ba3985786d1ab661fb1","directory":"frontiers/elder_third_order_20261001","mutants":{"M1":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"37/120","l^2 rho_f^-6":"4/11","rho_c^2":"29/60","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"2/5","[a,r0*]: l^(5/3) a^-7":"11/15","[rho_c,a]: a^3":"2/5","[rho_c,a]: l^2 rho_c^-7":"37/120"},"least":"37/120","passed":false,"split_exponent":"2/15"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"3/2","min_ratio_over_grid":"3/2","passed":true,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":117,"R+":123,"R-":123},"grid_points":501,"passed":true,"threshold":"1/3"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":true},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"2","passed":true,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"r^2","passed":true,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":true}},"mutant":"M1","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"},"M2":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"4/9","l^2 rho_f^-6":"4/11","rho_c^2":"4/9","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"2/5","[a,r0*]: l^(5/3) a^-7":"11/15","[rho_c,a]: a^3":"2/5","[rho_c,a]: l^2 rho_c^-7":"4/9"},"least":"4/11","passed":true,"split_exponent":"2/15"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"8/5","min_ratio_over_grid":"3/2","passed":false,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":117,"R+":123,"R-":123},"grid_points":501,"passed":true,"threshold":"1/3"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":true},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"2","passed":true,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"r^2","passed":true,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":true}},"mutant":"M2","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"},"M3":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"4/9","l^2 rho_f^-6":"4/11","rho_c^2":"4/9","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"2/5","[a,r0*]: l^(5/3) a^-7":"11/15","[rho_c,a]: a^3":"2/5","[rho_c,a]: l^2 rho_c^-7":"4/9"},"least":"4/11","passed":true,"split_exponent":"2/15"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"3/2","min_ratio_over_grid":"3/2","passed":true,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":129,"R+":117,"R-":117},"grid_points":501,"passed":false,"threshold":"9/25"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":true},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"2","passed":true,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"r^2","passed":true,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":true}},"mutant":"M3","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"},"M4":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"4/9","l^2 rho_f^-6":"4/11","rho_c^2":"4/9","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"2/5","[a,r0*]: l^(5/3) a^-7":"11/15","[rho_c,a]: a^3":"2/5","[rho_c,a]: l^2 rho_c^-7":"4/9"},"least":"4/11","passed":true,"split_exponent":"2/15"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"3/2","min_ratio_over_grid":"3/2","passed":true,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":117,"R+":123,"R-":123},"grid_points":501,"passed":true,"threshold":"1/3"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":false},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"2","passed":true,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"r^2","passed":true,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":true}},"mutant":"M4","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"},"M5":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"4/9","l^2 rho_f^-6":"4/11","rho_c^2":"4/9","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"2/5","[a,r0*]: l^(5/3) a^-7":"11/15","[rho_c,a]: a^3":"2/5","[rho_c,a]: l^2 rho_c^-7":"4/9"},"least":"4/11","passed":true,"split_exponent":"2/15"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"3/2","min_ratio_over_grid":"3/2","passed":true,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":117,"R+":123,"R-":123},"grid_points":501,"passed":true,"threshold":"1/3"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":true},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"1","passed":false,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"r^2","passed":true,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":true}},"mutant":"M5","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"},"M6":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"4/9","l^2 rho_f^-6":"4/11","rho_c^2":"4/9","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"2/5","[a,r0*]: l^(5/3) a^-7":"11/15","[rho_c,a]: a^3":"2/5","[rho_c,a]: l^2 rho_c^-7":"4/9"},"least":"4/11","passed":true,"split_exponent":"2/15"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"3/2","min_ratio_over_grid":"3/2","passed":true,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":117,"R+":123,"R-":123},"grid_points":501,"passed":true,"threshold":"1/3"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":true},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"2","passed":true,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"1","passed":false,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":true}},"mutant":"M6","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"},"M7":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"4/9","l^2 rho_f^-6":"4/11","rho_c^2":"4/9","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"2/5","[a,r0*]: l^(5/3) a^-7":"11/15","[rho_c,a]: a^3":"2/5","[rho_c,a]: l^2 rho_c^-7":"4/9"},"least":"4/11","passed":true,"split_exponent":"2/15"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"3/2","min_ratio_over_grid":"3/2","passed":true,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":117,"R+":123,"R-":123},"grid_points":501,"passed":true,"threshold":"1/3"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":true},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"2","passed":true,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"r^2","passed":true,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":false}},"mutant":"M7","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"},"M8":{"checks":{"X1_exponent_ledger":{"core":{"l rho_f^-2":"5/11","l^2 rho_c^-7":"4/9","l^2 rho_f^-6":"4/11","rho_c^2":"4/9","rho_f^2":"6/11","rho_f^5/l":"4/11"},"intermediate":{"[a,r0*]: l^(2/3) a^-2":"4/15","[a,r0*]: l^(5/3) a^-7":"4/15","[rho_c,a]: a^3":"3/5","[rho_c,a]: l^2 rho_c^-7":"4/9"},"least":"4/15","passed":false,"split_exponent":"1/5"},"X2_ridge_identities":{"X3_closed_forms_at_rational_phi":400,"factorizations":true,"g_at_points":{"-3":["-50","3675/16"],"-3/2":["-5","12"],"2":["25/2","675/16"]},"passed":true},"X3_margins":{"margin_constant":"3/2","min_ratio_over_grid":"3/2","passed":true,"sharp_at_phi_1":true},"X4_decision_1d":{"cases":{"E":117,"R+":123,"R-":123},"grid_points":501,"passed":true,"threshold":"1/3"},"X5_weighted_taylor":{"fields":[{"d":2,"degree":6,"kappa":"161/100","min_slack":0,"monomials":26},{"d":2,"degree":6,"kappa":"117/50","min_slack":0,"monomials":25},{"d":2,"degree":6,"kappa":"157/100","min_slack":0,"monomials":25},{"d":2,"degree":7,"kappa":"42/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"17/25","min_slack":0,"monomials":37},{"d":2,"degree":7,"kappa":"51/50","min_slack":0,"monomials":37},{"d":3,"degree":6,"kappa":"213/100","min_slack":0,"monomials":78},{"d":3,"degree":6,"kappa":"13/100","min_slack":0,"monomials":79},{"d":3,"degree":6,"kappa":"29/100","min_slack":0,"monomials":72}],"passed":true},"X6_lemma_S":{"Q2_C0_poly":["25/16","175/16","1225/64"],"Q2_C2_poly":["105/64","2911/128","317/4"],"coefficient":"2","passed":true,"random_instances":900},"X7_pointwise":{"passed":true,"trials":5000},"X8_lemma_S_prime_algebra":{"extremal_singular":true,"instances":121,"loewner_factor":"r^2","passed":true,"range_witness_r2_fails":true},"X9_lemma_H_exact_form":{"fields":[{"d":2,"degree":6,"kappa":"11/100","separations":4},{"d":2,"degree":6,"kappa":"237/100","separations":4},{"d":2,"degree":6,"kappa":"169/100","separations":4},{"d":2,"degree":7,"kappa":"52/25","separations":4},{"d":2,"degree":7,"kappa":"23/20","separations":4},{"d":2,"degree":7,"kappa":"69/25","separations":4},{"d":3,"degree":6,"kappa":"57/100","separations":4},{"d":3,"degree":6,"kappa":"29/10","separations":4},{"d":3,"degree":6,"kappa":"151/100","separations":4}],"passed":true}},"mutant":"M8","object":"CL-ELDER-THIRD-ORDER-20261001-v1.1 controls","passed":false,"scientific_effect":"NONE"}},"script":"e3_check.py","script_git_blob":"b5f04a87f2d2984280bf394bd4e5f3db560e1b33"},"far-elder":{"baseline_bytes":1111,"baseline_sha256":"6ef4152058bd186766c97aba47a8a3485f5b033943d3d1d134c427a6702c4947","directory":"frontiers/far_elder_rate_20260930","mutants":{"M1":{"checks":{"B1_barrier_polynomial":{"info":"barrier (1.1) fails at z=(1/3,-1/12)","passed":false},"B2_algebra_and_constants":{"info":{"L=1":{"a_L":"1/4","c_L":"1/48"},"L=2":{"a_L":"1/2","c_L":"1/12"},"L=24":{"a_L":"1","c_L":"1/3"},"L=4":{"a_L":"1","c_L":"1/3"}},"passed":true},"I1_split_integral":{"info":{"q=2,u=1/100":"149/1000000","q=2,u=1/4":"5/64","q=2,u=1/9":"25/1458","q=4,u=1/100":"299999999/4000000000000","q=4,u=1/4":"767/16384","q=4,u=1/9":"9841/1062882"},"passed":true},"I2_exponent_ledger":{"info":{"count exponent":"5/3","inverse moment threshold":"-5/3","u^2 exponent of ell":"2/3"},"passed":true},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"},"M2":{"checks":{"B1_barrier_polynomial":{"info":{"K":"22","R":"1/11","grid_points_in_ball":1793,"lambda":"2"},"passed":true},"B2_algebra_and_constants":{"info":"core inequality fails at lam=1/3 K=1/3 t=5/8","passed":false},"I1_split_integral":{"info":{"q=2,u=1/100":"149/1000000","q=2,u=1/4":"5/64","q=2,u=1/9":"25/1458","q=4,u=1/100":"299999999/4000000000000","q=4,u=1/4":"767/16384","q=4,u=1/9":"9841/1062882"},"passed":true},"I2_exponent_ledger":{"info":{"count exponent":"5/3","inverse moment threshold":"-5/3","u^2 exponent of ell":"2/3"},"passed":true},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"},"M3":{"checks":{"B1_barrier_polynomial":{"info":{"K":"22","R":"1/11","grid_points_in_ball":1793,"lambda":"2"},"passed":true},"B2_algebra_and_constants":{"info":{"L=1":{"a_L":"1/4","c_L":"1/48"},"L=2":{"a_L":"1/2","c_L":"1/12"},"L=24":{"a_L":"1","c_L":"1/3"},"L=4":{"a_L":"1","c_L":"1/3"}},"passed":true},"I1_split_integral":{"info":"split integral exceeds its bound at u=1/4 q=2","passed":false},"I2_exponent_ledger":{"info":{"count exponent":"5/3","inverse moment threshold":"-5/3","u^2 exponent of ell":"2/3"},"passed":true},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"},"M4":{"checks":{"B1_barrier_polynomial":{"info":{"K":"22","R":"1/11","grid_points_in_ball":1793,"lambda":"2"},"passed":true},"B2_algebra_and_constants":{"info":{"L=1":{"a_L":"1/4","c_L":"1/48"},"L=2":{"a_L":"1/2","c_L":"1/12"},"L=24":{"a_L":"1","c_L":"1/3"},"L=4":{"a_L":"1","c_L":"1/3"}},"passed":true},"I1_split_integral":{"info":{"q=2,u=1/100":"149/1000000","q=2,u=1/4":"5/64","q=2,u=1/9":"25/1458","q=4,u=1/100":"299999999/4000000000000","q=4,u=1/4":"767/16384","q=4,u=1/9":"9841/1062882"},"passed":true},"I2_exponent_ledger":{"info":"u^2 monomial wrong for q=2: (Fraction(2, 3), Fraction(2, 3))","passed":false},"N1_near_consistency":{"info":{"6*sqrt(6 c_L) < 12 for c_L <= 1/3":true},"passed":true}},"object":"CL-FAR-ELDER-RATE-20260930-v1","passed":false,"scientific_effect":"NONE"}},"script":"far_elder_check.py","script_git_blob":"58ff10f85cb89566433500855f385bc87f87e916"},"local-pairing":{"baseline_bytes":796,"baseline_sha256":"c012b374ac07c9d51dbab6e2168194b6b27afed6c8f489da5c376230044546b4","directory":"frontiers/local_pairing_20260930","mutants":{"M1":{"checks":{"I0_I3_identities":{"info":144,"passed":true},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":0,"n0_typed_grid_points":135},"passed":true},"P1_path_cases":{"info":"chart sample not typed/n>=1 at (Fraction(1, 1), Fraction(-7, 5), Fraction(2109, 200), Fraction(-2, 1), Fraction(-2, 1))","passed":false},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":true}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"},"M2":{"checks":{"I0_I3_identities":{"info":144,"passed":true},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":0,"n0_typed_grid_points":135},"passed":true},"P1_path_cases":{"info":"root not in the strict window","passed":false},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":true}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"},"M3":{"checks":{"I0_I3_identities":{"info":"I1 conic identity fails at u=-3/2 Z=-2","passed":false},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":0,"n0_typed_grid_points":135},"passed":true},"P1_path_cases":{"info":{"cases":{"U":2160,"V":4680,"V_at_other_root":2160},"min_margin":"1/1200","samples":6840},"passed":true},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":false}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"},"M4":{"checks":{"I0_I3_identities":{"info":144,"passed":true},"N1_n0_grid":{"info":{"n0_points_with_U_hypothesis":1,"n0_typed_grid_points":135},"passed":false},"P1_path_cases":{"info":"nonpositive margin","passed":false},"P2_elder_witness":{"info":{"Z1_squared":"15/8","n":2,"saddle_height":"-7/32","u0":"-3/4","vertical_line_constant":true},"passed":true}},"object":"CL-LOCAL-PAIRING-20260930-v1","passed":false,"scientific_effect":"NONE"}},"script":"pairing_check.py","script_git_blob":"6a3aec4d4bfaca39d10cb95a2691a6894348c737"}},"provenance":"Native unchanged CLI outputs; independently characterized in Math-#322 comment6008323186. This file is an engineering reference, not mathematical acceptance. The elder-third-order references are native unchanged CLI outputs characterized for Math-#322 (E3-WRAPPER-REPAIR-C8-20261021) in both modes; its checker and RESULTS are unchanged between source_cut and 27606578e1e189c027552ec46835b3095dbfbea5.","schema":1,"source_cut":"b25cac0bcbb4032d624f14795257d9578c90d105"} diff --git a/tools/legacy_json_replay.py b/tools/legacy_json_replay.py index 30b1194d6..854db466a 100755 --- a/tools/legacy_json_replay.py +++ b/tools/legacy_json_replay.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Authenticate the three fixed legacy checkers' success and rejection reports. +"""Authenticate the four fixed legacy checkers' success and rejection reports. Called AFTER each workflow's unchanged scientific source/manifest guards. The reference file holds measured, source-bound reports, never outputs learned from @@ -27,6 +27,7 @@ 'c6-cluster': ('pins-not-critical', 'wrong-pin-hessian', 'drop-sigma-jacobian', 'three-extra-points', 'shear-drop-cubic', 's-bound-constant', 'cross-term-not-small', 'window-closed', 'index-sign'), + 'elder-third-order': ('M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M8'), } # The CLI's argparse choice order is distinct from the workflow execution order. C6_CHOICES = ('pins-not-critical', 'wrong-pin-hessian', 'drop-sigma-jacobian', From b0dd89f29d39064b97998897467ff6926112847e Mon Sep 17 00:00:00 2001 From: Dylan Roy Date: Mon, 26 Oct 2026 16:59:28 +0000 Subject: [PATCH 2/2] Extend the full-suite budget for the added elder third-order family The repository regression suite runs every family in tests/test_legacy_json_workflows.py, so it now also runs the elder third-order shell rejection contract. On this branch's first head the suite was cancelled at its 30-minute job budget, still inside the optimized pass. Successful hosted runs on 24 and 25 October took 17.5 to 27.7 minutes, and the added family costs about 1 min 51 s across both modes on a hosted runner. Raise the budget to 45 minutes, as e01e346 raised it from 20 to 30, and move the routing contract's exact pins with it. The current budget must be exactly 45; 0, 20, 30, 44, 46, 360 and a quoted value are rejected; the historical reconstruction still restores 20 and authenticates the original digest. Commands, triggers and steps are unchanged. Scientific effect NONE. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015wNj8LPTKXsaT68G3DgPPh --- .github/workflows/full-regression-suite.yml | 2 +- .../SCOPE.md | 25 ++++++++++++++++++- tests/test_full_suite_routing.py | 20 +++++++-------- 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/.github/workflows/full-regression-suite.yml b/.github/workflows/full-regression-suite.yml index 0c84c1d72..1ec919689 100644 --- a/.github/workflows/full-regression-suite.yml +++ b/.github/workflows/full-regression-suite.yml @@ -29,7 +29,7 @@ concurrency: jobs: full-suite: runs-on: ubuntu-latest - timeout-minutes: 30 + timeout-minutes: 45 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with: diff --git a/reviews/elder_third_order_workflow_repair_20261021/SCOPE.md b/reviews/elder_third_order_workflow_repair_20261021/SCOPE.md index 4b89d0df7..888b381e0 100644 --- a/reviews/elder_third_order_workflow_repair_20261021/SCOPE.md +++ b/reviews/elder_third_order_workflow_repair_20261021/SCOPE.md @@ -37,7 +37,10 @@ plus only the `setup-python` pin update of `2c041de` (24 October). The checker, Six files: the workflow, `tools/legacy_json_replay.py` (one inventory row and the docstring's family count), `tools/legacy_json_contracts.json` (one new family and one provenance sentence), `tests/test_legacy_json_workflows.py`, -`tests/test_legacy_workflow_triggers.py` (one family row) and this note. +`tests/test_legacy_workflow_triggers.py` (one family row) and this note. A second +commit changes two more, `.github/workflows/full-regression-suite.yml` and +`tests/test_full_suite_routing.py`, for the budget described under "Full-suite +budget". The workflow now calls the existing `replay()` that far-elder, local-pairing and c6-cluster already use, instead of its own exit-only loop. It gains the same two @@ -111,6 +114,26 @@ All of the following ran locally on CPython 3.11.15 at the base above. - **Budget:** past hosted runs of this workflow took about 3 to 5.5 minutes. The two new steps add about 1.5 minutes locally. +## Full-suite budget + +The repository-wide regression suite (`full-regression-suite.yml`) runs every +family in `tests/test_legacy_json_workflows.py`, so it now also runs this +family's shell rejection contract. On this PR's first head, `31c43861`, the +suite was cancelled at its 30-minute job budget (run 40357960816), still inside +the optimized pass. + +- Before this change, successful hosted runs on 24 and 25 October took 17.5 to + 27.7 minutes, as little as 2.3 minutes under the budget. +- The added family costs about 1 min 51 s across both modes. That is the + dedicated hosted job's contract step, on the same head. + +The second commit raises the budget to 45 minutes, as `e01e346` raised it from +20 to 30 when added tests outgrew it. It moves the exact pins in +`tests/test_full_suite_routing.py` with it: the current budget is exactly 45, and +0, 20, 30, 44, 46, 360 and a quoted `'45'` are all rejected. The historical +reconstruction still restores 20 and authenticates the original digest. The +suite's commands, triggers and steps are unchanged. + ## Limits - The local interpreter is 3.11.15, not the hosted 3.11.16. The hosted run is the diff --git a/tests/test_full_suite_routing.py b/tests/test_full_suite_routing.py index f2f29811a..fd3a75b91 100644 --- a/tests/test_full_suite_routing.py +++ b/tests/test_full_suite_routing.py @@ -255,12 +255,12 @@ def reconstruct_original_central(text): """Historical central workflow at 49fb197c / blob ea291276, authenticated. Remove only the approved concurrency insertion, restore the historical - 20-minute budget from the current 30-minute budget, restore the historical + 20-minute budget from the current 45-minute budget, restore the historical setup-python pin, then revert only the suite body. The result must hash to the unchanged historical digest. """ text = strip_concurrency_insertion(text) - text = mutate(text, '\n timeout-minutes: 30\n', '\n timeout-minutes: 20\n') + text = mutate(text, '\n timeout-minutes: 45\n', '\n timeout-minutes: 20\n') text = mutate(text, CURRENT_SETUP_PYTHON, HISTORICAL_SETUP_PYTHON) block = named(parse(text)[1], REGRESSION)['run'] rendered = lambda body: ''.join(' ' + line + '\n' @@ -623,7 +623,7 @@ def violations(workflow, text): if bind != central_bind: problems.append('tested-commit binding step differs from the central workflow') if workflow == CENTRAL: - if job['id'] != 'full-suite' or job.get('timeout-minutes') != '30': + if job['id'] != 'full-suite' or job.get('timeout-minutes') != '45': problems.append('central job id/budget changed') if names != [BIND, REGRESSION, CONFIRM]: problems.append('central step order changed: ' + repr(names)) @@ -786,7 +786,7 @@ def test_historical_bytes_outside_insertion_are_authenticated(self): central = source(CENTRAL) self.assertEqual(reconstruct_original_central(central), self.original_central()) for old, new in (('# This check is not required', '# This check is now required'), - (' timeout-minutes: 30\n', ' timeout-minutes: 31\n'), + (' timeout-minutes: 45\n', ' timeout-minutes: 46\n'), ('permissions:\n contents: read\n\nconcurrency:', 'permissions:\n contents: read\n\n\nconcurrency:'), (CONCURRENCY_INSERTION + 'jobs:\n', CONCURRENCY_INSERTION + '\njobs:\n'), @@ -798,20 +798,20 @@ def test_historical_bytes_outside_insertion_are_authenticated(self): def test_current_and_historical_budgets_have_separate_exact_contracts(self): central = source(CENTRAL) - self.assertEqual(parse(central)[1]['timeout-minutes'], '30') + self.assertEqual(parse(central)[1]['timeout-minutes'], '45') original = self.original_central() self.assertEqual(parse(original)[1]['timeout-minutes'], '20') - for budget in ('0', '20', '29', '31', '360', "'30'"): + for budget in ('0', '20', '30', '44', '46', '360', "'45'"): with self.subTest(budget=budget): - changed = mutate(central, ' timeout-minutes: 30\n', + changed = mutate(central, ' timeout-minutes: 45\n', ' timeout-minutes: ' + budget + '\n') self.assertIn('central job id/budget changed', violations(CENTRAL, changed)) with self.assertRaises((ValueError, AssertionError)): reconstruct_original_central(changed) - relocated = mutate(central, '\n timeout-minutes: 30\n', + relocated = mutate(central, '\n timeout-minutes: 45\n', '\n timeout-minutes: 20\n') relocated = mutate(relocated, ' log_dir="$(mktemp -d)"\n', - ' # timeout-minutes: 30\n' + ' # timeout-minutes: 45\n' ' log_dir="$(mktemp -d)"\n') self.assertEqual(parse(relocated)[1]['timeout-minutes'], '20') self.assertIn('central job id/budget changed', violations(CENTRAL, relocated)) @@ -1220,7 +1220,7 @@ def test_meaningful_negatives_are_detected(self): 'central gains a condition': (CENTRAL, central, ' - name: Full repository regression suite in both Python modes\n', ' - name: Full repository regression suite in both Python modes\n' " if: github.event_name == 'workflow_dispatch'\n"), - 'central continue-on-error': (CENTRAL, central, ' timeout-minutes: 30\n', ' timeout-minutes: 30\n continue-on-error: true\n'), + 'central continue-on-error': (CENTRAL, central, ' timeout-minutes: 45\n', ' timeout-minutes: 45\n continue-on-error: true\n'), 'central unbinds commit': (CENTRAL, central, ' if [ "$checked_out" != "$TESTED_SHA" ]; then\n', ' if false; then\n'), }