Skip to content

Blind estate trial 1 (#3803): ibm/example-health-apis -- COMPLETE: 0/29 first contact, 25/29 whole, 28/28 cased, first-try det proof 23/28 (82%) #8073

Closed

Description

@squid-protocol

Part of #3803. Owner, 2026-11-07: run the blind trial as an L1 translation trial (pre-registration Amendment 1, PR #8067); draw at T0; churn focused on it.

T0 (2026-11-07, 10:32 PM Eastern)

  • Main frozen at T0: d675a619cbeacbeb95b91a78156cd4ef97f38141. cics_census.py preflight --t0 passed with 0 findings.
  • Draw: estate4_draw.py draw --round 6531446.
    • drand randomness ff680aa0…ec2b; candidates sha256 f26139254a8a5049…, matching the committed list.
    • seed 65d48566…f02f; index 15 of weight 44.
    • Winner: ibm/example-health-apis, pinned at 9cfe321e2028f4f91a780bbb7d4cbb8393565f76 (weight 3).
  • Clone: 247 files, including 58 .cbl, 17 .jcl and 9 .cpy (file names only).

T0 result (tools only, det translator at T0)

14 of 58 programs translate whole (24%). Accounted: 22 of 58 (whole, plus 8 clone-defect programs).

Gap class (scrubbed) Programs Status Owner
refused: CopyUnresolved (all 21: the estate holds the member) 21 refused whole slice issue below
EXEC SQL: other 10 not modelled slice issue below (#8060)
missing copybook: clone defect (not in the clone) 8 named source defect accounted
EXEC: other (EXEC CICS keys the scrubber collapsed) 3 not modelled slice issue below (#8059)
EXEC CICS ASSIGN PRINSYSID 2 not modelled slice issue below (#8059)

Upper bounds if gaps close: the top 1 gives 35 / 58; the top 3 give 53 / 58.

Calibration (census mock trial #7709): about 20% whole at first contact, and about 33% whole / 95% accounted after three days. Forecast, frozen now: at close-out, 35-45 of 58 whole and at least 50 of 58 accounted.

Protocol

Blind-trial protocol (rule 3, estate-trial skill): nobody, human or agent, reads, opens, copies, excerpts or edits the estate's source, even unprinted. Tools run over the clone as is, and only aggregate or scrubbed output (counts, gap classes, IBM keywords) may be printed or posted. Reproduce every construct on an authored fixture or a burned program, cite IBM, and prove it there. The clone (pinned) is /srv/storage_16tb/projects/gitgalaxy-worktrees/_shared-scratch/blind/example-health-apis.

  • L1 only (whole), with no claim above L1. Rule 10 applies to every source-defect label.
  • Time box: 14 days from T0, so close-out is by 2026-11-21.
  • Re-measure after each merge (counts only). The census tools refuse a non-census root; the measurement slice below fixes that. Until then, measure with cics_census.run_det_survey(OUT, 'before', [('nb', BLIND_ROOT, ['example-health-apis'])]), then gap_prevalence.py --census-survey OUT --census-corpora BLIND_ROOT (no --write).

Checklist (slices)

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Activity

  1. added
    priority: high
    scope:core
    on Nov 8, 2026
  2. squid-protocol commented on Nov 8, 2026

    @squid-protocol
    OwnerAuthor

    What the first blind trial taught us (2026-11-08, about 10 hours after T0)

    Counts only; no estate source was read for this write-up.

    Correction first: the estate has 29 programs, not 58

    PR #8081 found that 29 of the 58 "programs" were `.expanded/` compile-listing copies of the real programs, in hidden directories. They are duplicates with copybooks already inlined, not programs. This is the same class of counting bug as the census copy member (#7901).

    Re-counted from the T0 survey by path alone:

    T0 (`d675a619c`) Now (`310d0665e`)
    As first reported (58, incl. copies) 14 / 58 40 / 58
    Real programs (29) 0 / 29 25 / 29 (86%)

    At first contact, none of the 29 real programs translated whole. All 14 "whole" rows at T0 were the expanded copies.

    Every real-program failure at T0:

    Proposed for the owner: restate the trial on 29 programs, as a recorded correction. The copies were never programs; the pre-registration's eligibility is programs. Both numbers stay published.

    Lessons

    1. Plumbing, not semantics, decided first contact. Every real program failed at T0, and 28 of the 29 failures were the engine finding (or not finding) copybooks. Once the copybooks resolved, the translator took 25 of 29 whole. The semantic gaps were small: 3 programs with a DTO field type the port can't convert (DTO property types classify the census key: Double/Boolean no longer EXEC: other (Part of #8076) #8088), and 1 missing copybook.
    2. The expanded copies were a natural control. With copybooks inlined, those copies translated 14 of 29 at T0. That roughly separates "can we find the files" from "can we translate the code".
    3. Our evidence shared the bug it measured. At T0, 8 programs were "accounted" as the clone's fault (copybook missing). 6 of them were our resolver's fault, because the clone-evidence check used the same search. Clone evidence must come from an independent check (a plain file search by member name), not from the tool under test.
    4. The 10 "EXEC SQL" programs were an artifact: the duplicates carried listing line numbers. No SQL form was unmodelled. All 17 real statements (INSERT, SELECT INTO, SET, cursor OPEN / FETCH / CLOSE) translate. That's the Db2 work from Db2 support: COBTUPDT translated with no model and proven on real IBM Db2 #4098 paying off on first contact.
    5. The weak spots we expected didn't show up. The pre-registration (10-05) listed channels and containers, SEND CONTROL, RECEIVE, HANDLE AID and START / RETRIEVE. None blocked a program here, because the census and the ladder had already covered them. What did bite wasn't predicted: copybook directory layout, extensionless members, the `.copy` extension (COBOL: .copy members reach the census, matching the translator's COPY search (Part of #8074) #8102), and compile-listing duplicates.
    6. Recovery was fast because the gaps were concentrated. About 10 hours and 5 merged PRs took the estate from 0 to 25 of 29. The census took 3 days and 104 PRs, for a long tail of features. The T0 gap table is a better predictor than the census calibration was.

    How common are these gaps? (counts only, `corpus_cobol`, excluding blind candidates, census and this estate)

    Development estates (3 repos, 83 programs) Other public COBOL (21 repos, 1,247 programs)
    Programs with EXEC SQL 17% 2%
    Programs with EXEC CICS 76% 8%
    Programs using COPY 83% 19%
    Repos with copybooks in a separate directory 2 / 3 6 / 21
    Repos with extensionless copy members 1 / 3 3 / 21

    EXEC SQL is common in CICS estates (17% of development-estate programs; 10 of 29 here) and was already modelled. The copybook-layout plumbing shows up in about a third of public repos. A real mainframe export, whose library members usually have no extension, will hit it every time.

    Implication for "churn common areas first" vs "go straight to new estates"

    The semantic work we did ahead of time (SQL, CICS breadth) held up on first contact. The failures that zeroed first contact were layout and inventory problems that only a real estate exposed. Those are cheap to find and fix once seen, and they generalise.

    Two process fixes before the next draw:

    • an independent copybook-resolution check, plus a tools-only "resolution census" over the non-candidate corpus;
    • an inventory rule for compile listings and duplicates.

    🤖 Posted by Claude Code

  3. changed the title [-]Blind estate trial (L1, #3803): ibm/example-health-apis -- T0 14 of 58 whole[/-] [+]Blind estate trial (L1, #3803): ibm/example-health-apis -- 29 programs; first contact 0 of 29 whole[/+] on Nov 8, 2026
  4. squid-protocol commented on Nov 8, 2026

    @squid-protocol
    OwnerAuthor

    Owner ruling 2026-11-08: the trial is restated on 29 programs (recorded correction)

    The 29 `.expanded/` compile-listing copies are not programs: they are duplicates with copybooks inlined, found by PR #8081. The pre-registration's eligibility is programs, so the basis is 29. This is a correction of the count, not a change of rules after the result. Both counts stay published:

    T0 (`d675a619c`, 2026-11-07 10:32 PM Eastern) 2026-11-08 morning (`310d0665e`)
    Headline: real programs 0 / 29 whole; accounted 7 / 29 as measured, but 6 of those 7 "missing copybook" labels were our resolver bug, so 1 / 29 in hindsight 25 / 29 whole (86%)
    As first reported, including the copies 14 / 58 40 / 58

    The frozen forecast (35-45 of 58 whole) was set on the wrong basis. Scaled to 29 programs it is about 17-22 whole, and the trial has already passed it.

    🤖 Posted by Claude Code

  5. squid-protocol commented on Nov 8, 2026

    @squid-protocol
    OwnerAuthor

    L1 phase closed (2026-11-08, 12:22 PM Eastern): 25 of 29 whole, 26 of 29 accounted

    Final blind measurement at main `3b5c59556` (`cics_census.py survey --blind-root`, tools only, counts only). The program inventory now counts 29 programs by itself (#8112 / #8081).

    Whole (L1) Accounted
    First contact, T0 `d675a619c` 0 / 29 7 / 29 as measured (1 / 29 in hindsight)
    L1 close-out, `3b5c59556` 25 / 29 (86%) 26 / 29

    Still open at L1:

    The frozen forecast, scaled to 29 programs (about 17-22 whole), was beaten within a day.

    The owner is moving this estate on to L2 (2026-11-08: "get Blind 1 to L2"). That needs cases, so it needs the code to be read. It is the deferred proof phase of the pre-registration and needs an owner exception to rule 2 for this repo (Amendment 3). The L1 blind result above is closed before anyone reads the estate's code, so nothing learned from reading can touch it. From here the estate is no longer blind. Proof-phase issues follow. This issue stays open as the parent until its pre-draw prep items (#8111-#8113) close.

    🤖 Posted by Claude Code

  6. changed the title [-]Blind estate trial (L1, #3803): ibm/example-health-apis -- 29 programs; first contact 0 of 29 whole[/-] [+]Blind estate trial 1 (#3803): ibm/example-health-apis -- L1 closed: 0/29 first contact, 25/29 whole; proof phase next[/+] on Nov 8, 2026
  7. squid-protocol commented on Nov 9, 2026

    @squid-protocol
    OwnerAuthor

    Blind 1 proof phase started: frozen system and eligible list (trial-001, 2026-11-09)

    Counts and names from the ledger only (tests/cobol_mainframe/trials.json, #8154). Amendment 3 (#8141) applies from this start.

    Frozen system: engine 5e4575d77 (v2.12.0), porting-rules hash 23338a4462cb (ticket v1), model claude-sonnet-5-5 via anthropic, harness c58cb3a69. Estate ibm/example-health-apis @ 9cfe321e2028, now development for good.

    Eligible (28): HCAPDB01, HCAPDB02, HCATDB01, HCAVDB01, HCAZERRS, HCAZMENU, HCIMDB01, HCIPDB01, HCITDB01, HCIVDB01, HCM1BI01, HCM1PL01, HCMABA01, HCMADB01, HCMADB02, HCMAPL01, HCMRESTW, HCP1BA01, HCP1BI01, HCP1PL01, HCPRESTW, HCT1BA01, HCT1BI01, HCT1PL01, HCTRESTW, HCV1BA01, HCV1BI01, HCV1PL01

    Out of scope (1), by the rule on missing source:

    • HCP1BU01: source missing from the repo: COPY member LGCMAREA is not in the estate

    Declared fingerprint: ffa129cd16a8fe6ba876d61298efc52dd3ca26f11b63a911453c32706ef69560 (neither list may change afterwards). L1 result unchanged: 25 of 29 whole, 26 of 29 accounted.

  8. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    L2 phase closed, study complete (owner, 2026-11-11)

    The owner closed Blind 1 at its registered L2 endpoint. L3/L4 was never in the pre-registration or in the 2026-11-08 instruction ("get Blind 1 to L2"), so the climb that had started on this estate is off-registration and stops here.

    Result

    phase outcome
    L1, first contact (d675a619c) 0 / 29 real programs whole; 7/29 accounted as measured, 1/29 in hindsight
    L1 close-out (3b5c59556) 25 / 29 whole (86%), 26/29 accounted
    L2 28 / 28 eligible programs cased (#8294, #8301, #8303, #8308, #8309)
    Proof phase not run — withdrawn, see below

    HCP1BU01 was declared out of scope up front by the missing-source rule (COPY member LGCMAREA is not in the estate), so 28 is the eligible denominator, not 29. The frozen forecast — 35–45 of 58, about 17–22 scaled to 29 programs — was beaten within a day.

    What we learned

    The engine's semantics were ready; its plumbing was not. Every one of the 29 real programs failed at T0, and 28 of those failures were copybook resolution — the engine finding, or failing to find, members. Zero were unmodelled semantics. All 17 real SQL statements (INSERT, SELECT INTO, SET, cursor OPEN/FETCH/CLOSE) translated on first contact, which is the #4098 Db2 work paying off against an estate nobody had seen, and the CICS breadth work held up too.

    Our own measurement lied to us twice, in opposite directions. The "10 EXEC SQL programs" were duplicates carrying listing line numbers — no SQL form was unmodelled. And 6 of the 7 programs scored "accounted: missing copybook" were our resolver bug, not missing source: 7/29 as measured became 1/29 in hindsight. Both artifacts survived until a real estate exposed them. This is the strongest argument for running these trials at all, and the strongest argument for keeping the first-contact number in the story rather than reporting only the 86%.

    0/29 at first contact is the honest headline, and the gap was shallow. Going 0 → 25 whole in a day says the failures were layout and inventory problems, cheap to find once seen and generalisable — not that the engine was far off. Reporting only 86% would misrepresent what a cold estate does to us.

    The forecast was set on the wrong basis. 35–45 of 58 was derived from an inflated program count — the same duplicate-counting problem the trial then exposed. Next draw: freeze the forecast after the eligibility rules have been applied, not before.

    Process lesson: the focus had an endpoint but no stop condition. Once L2 was met, "focus starved" got read as "find more to do on this estate" rather than "this is finished". That produced an L3/L4 climb, three owner questions that were never needed for the registered endpoint (o259/o261 on the REST wrapper success paths, and one on HCMAPL01 WHEN 70), and a day of churn ticks spent on work outside the registration. Two of those questions were auto-held at 2:32 AM Eastern by the 2-tick rule — a question raised overnight expires before the owner can see it. A focus item needs a declared endpoint, and a focus whose endpoint is met should retire rather than deepen.

    The proof phase, and why it is withdrawn

    trial-001 was started 2026-11-09 on a frozen system (engine 5e4575d77 / v2.12.0, porting rules 23338a4462cb, model claude-sonnet-5-5, harness c58cb3a69) and never fed: all 28 programs sat at "attempts": [], "final": "open", closed: null. The porting loop never ran on this estate, so there was nothing for trial.py sync to import.

    Closing it as the tool then stood would have published a 0/28 first-try proof rate for v2.12.0 — close() forced every open program to not-proven(<cause>) from a vocabulary that all asserts we tried and failed, and _counted() ("or its trial is closed") pulled all 28 into the denominator. That is a fabricated negative against an engine that was never asked to try. The instrument had no way to represent an unrun trial.

    PR #8318 adds a withdrawn state: unattempted programs are left out of the denominator, the headline reads not measured (proof phase withdrawn), and trial-001 is closed as withdrawn with its reason in the ledger. This does not rule out running the proof phase later — case-writing was a designed prerequisite for it, so a measurement on this estate would still be legitimate. The withdrawal records that it has not happened rather than asserting a result.

    Follow-ups

  9. changed the title [-]Blind estate trial 1 (#3803): ibm/example-health-apis -- L1 closed: 0/29 first contact, 25/29 whole; proof phase next[/-] [+]Blind estate trial 1 (#3803): ibm/example-health-apis -- closed at L2: 0/29 first contact, 25/29 whole, 28/28 cased; proof phase withdrawn[/+] on Nov 11, 2026
  10. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    Correction to the reflection: the registered first-contact calibration was ~20%, and we missed it

    My reflection above compared the result to the T0 forecast (35–45 of 58, about 17–22 scaled to 29) and said it was beaten. That is true but it is the close-out comparison, and it left out the comparison that the registration makes the headline.

    docs/language_status/estate4_preregistration.md line 18 states in advance:

    Calibration, stated in advance: the 39-program census mock trial (#7709) reached about 20% whole at first contact and about 30% whole / 90% accounted after about two days of fleet work.

    Against that:

    calibration (stated in advance) actual
    whole at first contact ~20% 0% (0/29) — missed
    whole after ~2 days ~30% 86% (25/29) — beaten
    accounted after ~2 days ~90% 90% (26/29) — met

    The first row is the registration's headline (line 12: "The headline is whole / programs at first contact"; line 88: "The det translator only rate ... is the headline"). We missed it, and by more than the margin: not 20% but zero. Both the miss and the beat belong in any report of this trial; quoting only the 86% or only the beaten T0 forecast misrepresents it.

    Note also that line 110 is explicit that remediation is not the metric: "Fixes during the attempt: allowed, but never first-try. ... The first-try rate is computed only from attempts on the frozen system." The frozen system exists so post-freeze fixes cannot count. So "we fix it all" is not a result this trial can report, by design.

    What the trial does support, stated plainly: we missed our first-contact calibration badly (0% against ~20%), beat our two-day remediation forecast (86% against ~30%), and hit the accounted forecast exactly (90%). The engine's semantics were ready and its plumbing was not — which only a cold estate could have revealed.

  11. squid-protocol commented on Nov 11, 2026

    @squid-protocol
    OwnerAuthor

    Proof phase authorised; case audit clean (owner 2026-11-11)

    Owner: "yes run it, audit the cases first." The proof phase — the registered star metric, the first-try proof rate — is now #8322, and churn's focus is set to it. trial-001 stays OPEN (#8318 reverted its premature withdrawal; the withdrawn state itself still lands, since the instrument genuinely could not express an unrun trial).

    Case audit: clean, and structurally so. No case holds an expected value — swept all 28, zero expected/golden/baseline keys; a scenario is name + commarea inputs + a prose why. Expected results are computed by running the COBOL under the pinned gitgalaxy-gnucobol:3 oracle, so there is nothing to hand-tune. The 11 cases that were revised after being added only ever widened coverage (branch/paragraph lifts, one comparison widened to include the job log); none narrowed a comparison or dropped a scenario. 202 scenarios over 28 programs. Declared limitation: the three REST wrappers have error-path cases only.

    What the audit did find: the frozen harness moved after the freeze, and one of the changes is an oracle defect, not an instrument tweak. Four post-freeze commits were driven by this estate; three extend what the instrument can judge (a layout_only RETURN read as raw bytes; the facade routing a no-DFHCOMMAREA re-entry through runTask instead of refusing; correct DDL reading). The fourth, 2c3c7b488, inlines a PROCEDURE DIVISION COPY member holding EXEC CICS/EXEC SQL before the precompile — which is what z/OS does, meaning the frozen harness compiles some of these programs missing their EXEC statements. The frozen oracle is wrong for this estate.

    So the configuration is a declared deviation: system under test stays frozen (engine 5e4575d77, rules 23338a4462cb, model claude-sonnet-5-5) and the measuring instrument runs at current main, recorded as Amendment 4, which lands before the first attempt. Measuring against a knowingly-defective reference would be worse than deviating, and none of the four commits changes what counts as equal. Anything the instrument still cannot judge gets cause harness — a registered cause and the honest label.

    Full reasoning, the commit classification table and the work checklist: #8322.

  12. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    Blind 1 proof phase: RESULT — first-try det proof rate 23/28 (82%)

    The proof phase ran on 2026-11-12. trial-001 is closed. Full record: docs/language_status/blind1_proof_run.md; ledger tests/cobol_mainframe/trials.json; published page docs/language_status/fresh_estate_trials.md.

    Headline

    first-try proof rate: 23/28 (82%) on 1 fresh estate at engine v2.12.0

    One attempt per eligible program, deterministic COBOL-to-Java port (--backend det) at the frozen engine 5e4575d77, tickets regenerated from it. Attempt 1 is the measurement. HCP1BU01 is out of scope (source missing), so the denominator is 28.

    Run A — frozen harness c58cb3a69 Run B — harness at current main
    proven first try 5 23 (82%)
    not proven (oracle compiled and judged) 0 5
    not judged (cause harness) 23 0

    Run A is reported first, per Amendment 4, and it is not a proof rate. All 23 unjudged programs stop at the same line before any COBOL or Java runs — SQL0104N An unexpected token "DSN SYSTEM(DB1S) RUN PROGRA" was found — the frozen harness's Db2 DDL step reading the estate's DSN run card as DDL. Nothing judged them, so they are not port failures. Its 5 "proven" are the programs with no Db2, three of them the REST wrappers that have error-path scenarios only, so they say little about the happy path.

    The 5 misses were two real engine bugs, both since fixed

    Recorded in the ledger as proven@2(engine) with their fix commits, which is exactly the shape trial.py is built for:

    Reruns at the fixed engine prove 5/5, so the current engine does 28/28 on this estate.

    What the 82% does and does not mean

    It is final for this trial. Pre-registration section on fixes: "Fixes during the attempt: allowed, but never first-try. The first-try rate is computed only from attempts on the frozen system." The frozen system exists precisely so that post-freeze repairs cannot flatter the number. 82% is what the 2026-11-09 engine did cold; the two fixes land as first-try credit in trial 2, not here.

    n=1. One estate's first-try rate is a data point, not a rate — summary() aggregates per engine version across trials for that reason.

    The registered model figure is still missing. The trial registered anthropic / claude-sonnet-5-5, and section 4 requires the det-then-model rate reported beside the det-only headline. That run needs an API key and spend and has not been made; it is tracked in #8352. Until it lands, the published figure is det-only.

    The trial's full arc

    phase result
    L1, first contact 0 / 29 whole; 7/29 accounted as measured, 1/29 in hindsight
    L1, close-out 25 / 29 whole (86%), 26 / 29 accounted
    L2 28 / 28 eligible cased, det ports proven
    Proof, first-try (det, frozen engine) 23 / 28 (82%)
    current engine 28 / 28

    Read together: we missed our registered first-contact calibration badly (0% against ~20%), beat our two-day remediation forecast (86% against ~30%), hit the accounted forecast exactly (90%), and the frozen engine then proved 82% of the estate first try. The engine's semantics were ready; its plumbing was not — which only a cold estate could have shown us.

  13. squid-protocol commented on Nov 12, 2026

    @squid-protocol
    OwnerAuthor

    Closing: blind estate trial 1 is complete.

    phase result
    L1 first contact 0 / 29 whole (1/29 accounted in hindsight)
    L1 close-out 25 / 29 whole (86%), 26 / 29 accounted
    L2 28 / 28 eligible cased, det ports proven
    Proof, first-try (det, frozen engine) 23 / 28 (82%)
    current engine 28 / 28

    Close-out obligations met: the estate is in BURNED_NAMES (#8120), so it can never be drawn as a blind target again; trial-001 is closed in the ledger; the result is published in docs/language_status/fresh_estate_trials.md and recorded in docs/language_status/blind1_proof_run.md.

    Still owed, tracked separately so it does not hold this open: the det-then-model rate, the registration's companion figure to the det-only headline — #8372 (needs API key + owner spend).

    Carried into the next draw: #8321 (one registered forecast per trial, frozen after eligibility is applied — this trial had two that disagreed, built on a program count the trial itself then corrected), plus the prep gates #8111-#8113.

    The short version of the lessons: the engine's semantics were ready and its plumbing was not; our own measurements lied to us twice in opposite directions; and only a cold estate exposed either.

  14. changed the title [-]Blind estate trial 1 (#3803): ibm/example-health-apis -- closed at L2: 0/29 first contact, 25/29 whole, 28/28 cased; proof phase withdrawn[/-] [+]Blind estate trial 1 (#3803): ibm/example-health-apis -- COMPLETE: 0/29 first contact, 25/29 whole, 28/28 cased, first-try det proof 23/28 (82%)[/+] on Nov 12, 2026
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: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions