Skip to content

Blind 1 proof phase: run the porting loop for the 28 eligible programs and publish the first-try proof rate (Part of #8073) #8322

Closed

Description

@squid-protocol

Owner 2026-11-11: run the proof phase. This produces the star metric the trial was registered for — the share of eligible programs whose first porting attempt yields Java the equivalence harness proves identical to the COBOL. Reported two ways per pre-registration line 88: det-translator-only is the headline, det-then-model alongside.

trial-001 stays OPEN for this (#8318 reverted its premature withdrawal).

Case audit: CLEAN

Owner asked for the case audit first. Result: the cases cannot have been tuned to the target, structurally.

  • No case holds an expected value. Swept all 28 tests/equivalence/health-*/case.json: zero expected / expect / golden / baseline keys. A scenario carries name, commarea (inputs) and why (prose rationale). 202 scenarios total, 4–16 per program.
  • Expected results come from the oracle at run time. The harness compiles and runs the COBOL under the pinned gitgalaxy-gnucobol:3 image. There is nothing to hand-tune — the reference is computed, not written.
  • Revisions only widened coverage. 11 of 28 cases were revised after being added. Every revision adds scenarios or widens comparison: "SQL-fault scenarios lift HCIPDB01, HCITDB01, HCIVDB01 and HCMADB02 to every net branch", "PF3, PF12, CLEAR and MAPFAIL scenarios lift it to every paragraph run", "compare the job log now that DISPLAY reaches it". None narrows a comparison or drops a scenario.
  • Known, declared limitation: the three REST wrappers (HCPRESTW, HCTRESTW, HCMRESTW) have error-path cases only. Their success paths were never cased (o259/o261, never answered, moot once L2 closed). This is a coverage gap to declare up front, not tuning.

What the audit DID find: the frozen harness moved, and part of it is an oracle defect

Six commits touched the frozen HARNESS_PATHS after the harness freeze c58cb3a69. Four were driven by this estate (Part of #8121 / #8230):

commit what it does class
7effbf68c (#8231) a layout_only COMMAREA's RETURN is read as the bytes it passed (raw_commarea) instrument: makes a comparison possible
4bed49868 (#8317) facade routes a no-DFHCOMMAREA program's raw-bytes re-entry through runTask instead of throwing FacadeRefused instrument: makes a comparison possible
405a2e658 (#8170) ddl_text ends an in-stream block at any // card; filters a JCL-shaped .txt instrument: reads the DDL correctly
2c3c7b488 (#8217) inline_exec_copies: a PROCEDURE DIVISION COPY member holding EXEC CICS / EXEC SQL (HCERRSPD) is inlined before the SQL precompile and CICS translation oracle correctness fix

None of the four changes what counts as equal. Three extend what the instrument can judge; they decide whether a comparison can run, never who wins it.

The fourth is different and decides the configuration. On real z/OS, COPY expansion happens before the precompiler, so inlining is the faithful behaviour (cf. the IBM-reference rule). Without it the frozen harness compiles some programs missing their EXEC CICS / EXEC SQL statements — the oracle itself is wrong.

Configuration (deviation, to record as Amendment 4)

Running strictly at the frozen harness would measure several programs against a knowingly-defective reference, which is worse than deviating. So:

  • System under test — FROZEN, unchanged. Engine 5e4575d77 (v2.12.0), porting rules hash 23338a4462cb (ticket v1), model claude-sonnet-5-5 via anthropic. This is what the metric measures.
  • Measuring instrument — current main. Harness + oracle, with the four commits above named and classified in the amendment.
  • Anything the instrument still cannot judge gets cause harness — already a registered cause, and the honest label for "our instrument could not judge this".
  • Any fix made during the run carries Trial-Cause: <ticket|generator|engine|harness> <PROGRAM> and disqualifies that program from first-try (line 110).

Declare the denominator up front, again: 28 eligible, HCP1BU01 out of scope (source missing), and the three REST wrappers judged on error paths only.

Work

Caveat for the write-up

n=1. summary() aggregates per engine version across trials for a reason — one estate's first-try rate is a data point, not a rate. Say so in the write-up.

Related: #8073, #3803, #8318, #8321 (one registered forecast per trial).

🤖 Generated with Claude Code

Activity

  1. added
    priority: high
    on Nov 11, 2026
  2. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    Owner ruling 2026-11-11: report BOTH numbers, frozen first

    Owner: "keep the frozen harness number too, report both ... we'll wait a pre and post number after our remediation anyway, so if we say it's x and we did work to get it to y I'm happy reporting that lower number first, that seems more honest."

    Adopted. The write-up leads with the frozen-instrument number and reports the fixed-instrument number beside it. Amendment 4 changes accordingly: it no longer declares a single configuration, it declares two runs.

    Run A — frozen instrument (reported first)

    Engine 5e4575d77, rules 23338a4462cb, model claude-sonnet-5-5, harness c58cb3a69. Everything as frozen at T0.

    Run B — frozen system, fixed instrument

    Same system under test; harness + oracle at current main, with the four post-freeze commits named and classified (table in the issue body).

    How big Run A's instrument gap is: 18 of 28

    Measured, not estimated. HCERRSPD.cpy is the estate's only copy member holding EXEC CICS / EXEC SQL. Running the harness's own inline_exec_copies over each eligible program's source, the compiled COBOL differs for 18 of the 28:

    HCAPDB01 HCAPDB02 HCATDB01 HCAVDB01 HCIMDB01 HCIPDB01
    HCITDB01 HCIVDB01 HCM1BI01 HCMABA01 HCMADB01 HCMADB02
    HCP1BA01 HCP1BI01 HCT1BA01 HCT1BI01 HCV1BA01 HCV1BI01
    

    So Run A's number is not a lower-bound measurement of the engine. For 64% of the denominator the reference itself is different, and most likely absent: pre-fix, the SQL precompile and CICS translation see only the program's own lines, so HCERRSPD's EXEC statements reach cobc untranslated and GnuCOBOL cannot compile them. The expected outcome for those 18 is an oracle compile failure, i.e. cause harness — the instrument could not judge them — rather than a port verdict.

    That makes the pre/post story clean and genuinely honest, which is the point: Run A measures how much of the estate our instrument could judge at freeze (about 10 of 28). Run B measures the engine across all 28. Both are real; neither is dressed up.

    Required reporting shape

    Run A must be published decomposed, never as a bare rate:

    • proven first try (of the programs the instrument could judge)
    • not proven, genuine cause: model / ticket / generator / engine
    • not judged, cause harness — with the 18 named
    • explicitly flagged: any of the 18 that compiled anyway. A wrong reference can make a wrong port pass as readily as fail, so these are unsound in both directions and must not be counted either way.

    Added work

    Related: the case audit on #8073, and #8321.

  3. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    Prerequisite confirmed: the port tickets must be regenerated

    trial.py start's work directory did not survive. Searched the whole of /srv/.../gitgalaxy and the data pool:

    • The ledger entry for trial-001 records no work / project path — only system, eligible, out_of_scope, declared and programs.
    • No ai_agent_jobs directory holds a ticket for any of the 28 eligible programs. The only HC*_port_ticket.json files on disk are cics-crucible's (HCQREAD, HCMAIN, HCSUB, HCOPT) — the HC* glob matches them coincidentally, and none is in this trial's eligible set.

    So before the first port_runner run, the tickets have to be regenerated through the same scan -> refract -> cobol-to-java path (target config h2) that trial.py start used, at the frozen engine 5e4575d77 with porting rules 23338a4462cb — not at current main. The engine is the system under test; regenerating tickets at a later engine would silently change what is being measured.

    Two guards on that step:

    • Recompute the declaration hash and check it still equals ffa129cd16a8fe6ba876d61298efc52dd3ca26f11b63a911453c32706ef69560. If it differs, the eligible set or the out-of-scope reasons have drifted and the run must stop — _validate_trial enforces this, but check it deliberately rather than discovering it at sync.
    • Confirm porting_rules_hash() still computes 23338a4462cb. If the rules moved, that is a system change and the run is not first-try.

    Added to the checklist in the issue body.

  4. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    #8323 merged: a partial slice of [c:bcd80b26] "Amendment 4 in docs/language_status/estate4_preregistration.md: the instrument/system split above, the four commits with their classification, and the restated denominator. Land this BEFORE the "; left: the amendment text is complete; the oracle-compile-status recorder it makes a precondition of Run A is sibling #8325, and the proof phase starts after both. (promoter-bot)

  5. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8322-20261111T2350Z (host melek) ended without a PR. No PR: Amendment 4 already merged (#8323/#8327). Proof run not started; owner 11-11 closed Blind 1 at L2, proof phase withdrawn.

  6. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    #8336 merged: a partial slice of [c:0dcec64c] "Verify the frozen engine checkout and a reproducible gitgalaxy-gnucobol:3; confirm the porting-rules hash still computes to 23338a4462cb."; left: verification is mechanical, but the oracle image rebuild-reproducibility and ticket regeneration at the frozen engine are not done. (promoter-bot)

  7. 10 remaining items

  8. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    #8347 merged: a partial slice of [c:4e50ef84] "trial.py close with causes for the unproven; trial.py report --write to publish."; left: ledger close and report publish; causes are recorded on the page only (promoter-bot)

  9. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    #8348 merged: a partial slice of [c:09a5d938] "port_runner run then prove per eligible program, at the frozen engine/rules/model. One program per attempt record; attempt 1 is the measurement." (promoter-bot)

  10. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    #8352 merged: a partial slice of [c:09a5d938] "port_runner run then prove per eligible program, at the frozen engine/rules/model. One program per attempt record; attempt 1 is the measurement."; left: the det-then-model figure needs the owner's ANTHROPIC_API_KEY and spend; the #8073 post is the orchestrator's (promoter-bot)

  11. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8322-20261112T1312Z (host melek) ended without a PR. No PR; det-only result final. Model leg needs ANTHROPIC_API_KEY + spend from owner (question written); #8073 post pending.

  12. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8322-20261112T1551Z (host melek) ended without a PR. No PR: det-then-model leg needs ANTHROPIC_API_KEY + spend (owner question blind1-api-key already open); nothing changed.

  13. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    Done. The proof phase ran 2026-11-12 and trial-001 is closed.

    first-try det proof rate: 23/28 (82%) at the frozen engine 5e4575d77. Run A (frozen harness) 5 of 28 proven, 23 not judged (cause harness, the Db2 DDL step reading the estate's DSN run card); Run B (harness at main) 23 of 28 proven, 5 not proven. The 5 are two real engine bugs since fixed — P126 little-endian COMP SQLCA (#8225, plus #8246 for HCITDB01) and P127 lost leading zero on MOVE 08000000 (#8269) — booked proven@2(engine) with their fix commits, so all 28 are eventually proven and the current engine does 28/28.

    Landed in #8341, #8351, #8352; record in docs/language_status/blind1_proof_run.md; result posted on #8073.

    The one registered figure still outstanding, det-then-model, needs an API key and owner spend and is now #8372. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: high

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions