Skip to content

Census mock trial: take the 40 census programs from 8 whole to 40 of 40 accounted, measured by the tool only #7709

Closed

Description

@squid-protocol

Owner request 2026-11-04: treat the 40 census programs (9 public repos excluded from the blind study, never burned, counted by tools only under opaque labels) as a mock trial of the engine. Write-up: https://claude.ai/artifact/9CJkXtuprzxzRne4bty3dy

Baseline (last real survey 2026-10-24, 6758295 / #6361)

8 of 40 translate whole (20%). Of the 32 blocked: 13 only by source / clone problems (missing estate copybooks 9, undeclared items #7647, ISPF screens #7645), 17 only by translator gaps, 2 by both. On the 25 programs with no source or clone problem: 8 of 25 (32%).

Predictions (frozen before the first fix)

  • Translator work alone takes the census to 25 whole (62%); the other 15 end as named source / clone problems: 40 of 40 accounted.
  • The tool's coverage-if-closed (upper bounds; they count the missing-copybook gap as closable): top 1 -> 17, top 3 -> 20, top 5 -> 29, top 10 -> 32.
  • Cost: 9 translator gap classes x ~4-5 PRs per class (calibrated on Siblings of #5042: cics-crucible programs that do not translate whole (17 programs, 8 hole classes) #6876: 17 programs, 8 classes, 35 PRs, 6 days) = 35-45 PRs, 6-9 days at two workers.

Protocol

  1. First (owner 2026-11-04): Translator consumes engine record layouts (fact_ownership.md follow-up): POINTER width as a parameter, shared stand-in copybooks, retire the duplicate layout computation #5649 -- the translator consumes the engine's record layouts (routed to nyx). The T0 re-survey waits until Translator consumes engine record layouts (fact_ownership.md follow-up): POINTER width as a parameter, shared stand-in copybooks, retire the duplicate layout computation #5649 has merged; T0 then measures main with Translator consumes engine record layouts (fact_ownership.md follow-up): POINTER width as a parameter, shared stand-in copybooks, retire the duplicate layout computation #5649 in, and the ledger notes it.
  2. T0: re-survey the census at current main with no census-targeted change (cics_census.py survey over the census repos, then gap_prevalence.py --census-survey ... --census-corpora ... --write); post the rate here. The 10-24 -> T0 delta is what the burned-estate work did for unseen code.
  3. Nobody reads census source. A fix gets the gap label, the IBM manual page and the owning issue, and proves itself on our own test (a cics-crucible program or a fixture), never a census excerpt. Tightened by the owner 2026-11-06: no edited, patched or excerpted copy of census source either, even unprinted (no "move this line and re-parse" probes). Allowed: the tools run over the clone as is, with aggregate or scrubbed output. A finding that needs more than that is reported as "needs a fixture" and proven on one.
  4. Measure with the tool only (aggregates, opaque labels), after each fix merges; append one ledger row below.
  5. A gap that is the source's fault becomes a named source defect with its reason.
  6. L1 only (translates whole); no claim about L2+.
  7. Finish: 40 of 40 accounted (basis 39 since the owner ruling 2026-11-06: one of the 40 is a data-only copy member, census: ExprError is a named source defect, UnitRefused a copy member; both rows owned (Part of #7847, #7709) #7885 / census: inventory counts a data-only copy member as a program (basis 40 -> 39, #7709) #7901; report "of 39" from T9 on, with the change named) (whole or named), time box 14 days from T0; publish the ledger as it stands at the time box.

Gap classes (owners)

Owner rulings 2026-11-06: (1) code-page literals stay a named source defect as stored; #7526 closed as accounted. (2) The 2 IBM z/OS Connect programs (BAQ product copybooks) stay unaccounted: a product dependency is not a source or clone defect; frontier #7900. (3) Basis 39 (#7901). (4) Rule 2 tightened (above).

Ledger (one row per re-survey)

date main whole / 40 gap closed (PRs) predicted vs actual new gaps exposed cost (PRs, worker-h, $) named, not fixed
2026-10-24 6758295 8 baseline - - - -

Related: #6064 (no current non-burned translation rate), #5865 (coverage-if-closed never validated against a run), #3803 (the real blind trial this rehearses).

Activity

  1. added
    scope:core
    and removed on Nov 4, 2026
  2. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    T0 re-survey (owner 2026-11-04: run T0 now, ahead of #5649)

    8 of 40 census programs translate whole (20.0%) at main 098ddd5d1, unchanged from the 2026-10-24 baseline (8 / 40 at 6758295f2). So the 10-24 -> T0 delta, what the burned-estate work did for unseen code at L1, is 0 programs.

    Ledger row:

    date main whole / 40 gap closed (PRs) predicted vs actual new gaps exposed cost (PRs, worker-h, $) named, not fixed
    2026-11-04 098ddd5 8 T0 (no census fix counted; see below) - - - LayoutError 9 now named a source defect (#7714)

    Census-targeted changes that merged before T0. Option 1 bent the T0-after-#5649 order to stop more of these leaking into the baseline:

    Coverage if closed at T0 (upper bounds, unchanged from the frozen predictions): top 1 -> 17, top 3 -> 20, top 5 -> 29, top 10 -> 32.

    Method (tools only, no census source read):

    1. cics_census.py survey --baseline --no-fetch --sha 098ddd5d1 --root <shared-scratch> (194 s).
    2. gap_prevalence.py --survey L --census-survey L --census-corpora <shared-scratch>/census --top 1 3 5 10, where L is a temporary directory linking only before-b and before-nb (the 9 provisioned census corpora). The cache's before-nb-local (2 local non-burned corpora, 12 programs) was left out, as the 10-24 survey did.
    3. Not run with --write: the committed census page was regenerated by gap_prevalence: census LayoutError programs are source defects; regenerate census page (Part of #5865, #7644, #7709) #7714 today. Run --write with the first fix row.

    The burned half of the same run: 126 of 129 burned programs translate whole.

    🤖 Posted by Claude Code

  3. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    #7723 merged: a partial slice of [c:bced86e8] "No such item, 3 programs (no owner yet)"; left: the 3 programs leave the no such item class, but none becomes whole: they still carry 36, 11 and 2 other holes, each in its own gap class (promoter-bot)

  4. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    T1 re-survey: first fix row

    8 of 40 census programs translate whole (20.0%) at main 7f73c5700, unchanged from T0 (098ddd5d1).

    date main whole / 40 gap closed (PRs) predicted vs actual new gaps exposed cost (PRs, worker-h, $) named, not fixed
    2026-11-04 7f73c57 8 no such item, 3 programs (#7723); #7713 (part of #5649) gap gone as expected; +0 whole (each of the 3 programs has another gap) none 2 PRs -

    Method: identical to T0 (cics_census.py survey --baseline at 7f73c5700, 177 s; gap_prevalence.py over before-b and before-nb only, the 9 census corpora). Tools only, no census source read.

    🤖 Posted by Claude Code

  5. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Unmasked survey at T1 (7f73c5700): what the whole-program refusals hide

    Whole-program refusals stop the translator, so their programs' other gaps were invisible to T0 and T1, and coverage-if-closed counts them as upper bounds. cics_census.py blockers --baseline --unmask switches one refusal check off in survey mode only. This is a what-if, not a translation. The run is the census survey only (whatif-nb). Aggregates only.

    LayoutError: source text past column (check cut-literal): the switch reaches 7 of the class's 9 programs.

    • Would translate whole with it lifted: 0 of 7. Holes per program: 24-48.
    • Gaps hidden behind it, by programs: undeclared item 7, EXEC SQL ROLLBACK in a CICS program 5, MOVE literal beyond the single-byte code page 4. Then 1 program each: EXEC CICS map field missing (6 distinct fields), no generated screen for a map, bare EXEC CICS DUMP, GO TO form, STRING literal beyond the code page, grammar does not parse.

    missing copybook (check missing-copybook): the switch reaches 1 of the 9 estate-owned programs; it takes only a single named member.

    • Would translate whole with it lifted: 0 of 1. It hides a LayoutDisagrees refusal.
    • The other 8 stay masked.

    What it changes for the trial:

    Tool gap (sibling, for the class sweep): blockers --unmask prints census repository and program names in its per-program rows. gap_prevalence's census half scrubs these (scrub_key, opaque census-* labels), but unmask mode does not, so a run breaks protocol rule 2 by default. It should scrub census rows the same way. I did not record or repeat the names.

    🤖 Posted by Claude Code

  6. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    #7728 merged: a partial slice of [c:4112a597] "EXEC SQL ROLLBACK in CICS, 1 program (#7527)"; left: proof case and census re-survey remain (promoter-bot)

  7. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    Only-gap breakdown at T1 (7f73c5700): census only, all 40 programs

    cics_census.py blockers DIR --label before --all-programs over the census survey (before-nb) alone. Names are scrubbed.

    Distinct gap classes per program: 0: 8 (whole), 1: 26, 2: 1, 3: 3, 4: 1, 7: 1.

    The 26 single-gap programs:

    only gap programs kind
    LayoutError, source text past column (cuts a literal / truncates) 9 source defect (named, #7714); unmask: 7 of them hide 24-48 holes
    missing copybook (estate-owned) 9 clone problem; unmask reaches 1
    ISPF editor screen, not a COBOL program 2 source (named, #4735)
    UnitRefused: a member to be copied, not a program 1 inventory / source
    undeclared item 1 source defect (#7647)
    bytes overlap another item (COMP-1/2/5) 2 translator (#7646)
    LayoutDisagrees 1 translator (#6926)
    ExprError: the PROCEDURE DIVISION does not parse 1 translator or source, unknown

    The 6 multi-gap programs (2-7 classes each) hold the long tail: JSON GENERATE / PARSE, the three EXEC CICS WEB forms, EXEC CICS map fields, EXEC SQL ROLLBACK, MOVE / STRING literals beyond the single-byte code page, a STRING numeric sender, SQLCA undeclared, PERFORM undeclared paragraph. One away: MOVE code-page literal 1, STRING numeric sender 1.

    What it means for the PR estimate:

    🤖 Posted by Claude Code

  8. squid-protocol commented on Nov 4, 2026

    @squid-protocol
    OwnerAuthor

    #7735 merged: a partial slice of [c:b383e52f] "STRING numeric / decimal sender, code-page gaps, 3 programs (#7523)"; left: the code-page row (register D4) is refused by design and has nothing to implement; numeric-sender and numeric-literal STRING operands are now refused by name. (promoter-bot)

  9. 116 remaining items

  10. squid-protocol commented on Nov 6, 2026

    @squid-protocol
    OwnerAuthor

    #7946 merged: a partial slice of [c:9bd1fd57] "JSON GENERATE / PARSE, 2 programs (#7524, reopened 2026-11-05 by the owner; work it there)"; left: elementary source/receiver, CONVERTING, COMP-1/2 floats, PARSE into tables, JSON-STATUS after an exception (frontier: IBM's text is silent or the oracle cannot back them); NAME OMITTED is #7938. (promoter-bot)

  11. added a commit that references this issue on Nov 6, 2026
  12. squid-protocol commented on Nov 6, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 7709-20261106T2254Z (host melek) ended without a PR. plan approved, X77.md overlap harmless

  13. added 2 commits that reference this issue on Nov 6, 2026
  14. squid-protocol commented on Nov 7, 2026

    @squid-protocol
    OwnerAuthor

    What the census mock trial taught us (2026-11-06)

    Counts only; no census source was read for this write-up. Sources: the survey comments above, the close-out PR #7958, and PR titles and bodies that cite #7709 or one of its gap issues.

    Short answer: promising, with clear eyes. The blocker loop (survey, rank, owner, fix, re-survey, all tools only) found every blocker, gave each one an owner, and closed or named all but three in about 53 hours of a 14-day time box. It also caught its own measuring bugs before they reached a headline number. The caution: only 12 of 39 programs translate whole. Most of the "accounted" progress came from proving a failure is the source's fault, which is true and useful but is not translation.

    The frozen predictions, scored

    Measure Predicted (11-04) Actual (close-out, 11-06 6:39 PM ET)
    Translate whole 25 of 40 (62%) 12 of 39 (31%), from 8
    Accounted 40 of 40 36 of 39 (ceiling 37)
    Named source / clone faults 15 about 25
    Merged PRs 35-45 104 (7 before T0)
    Calendar time 6-9 days about 2.2 days
    Coverage if top gap closed 17 whole never reached: whole went 8 -> 11 -> 12
    Burned-estate tuning lifts unseen code (10-24 -> T0) some 0 programs

    Where the 104 PRs went: 41 measurement and record-keeping, 25 COMP-5 in CICS containers, 15 JSON GENERATE / PARSE, 11 CICS WEB, 8 quick classes, 4 engine record layouts (#5649). For the first 31 hours, 37 PRs merged and the whole count did not move.

    What went as predicted

    What surprised us

    1. Where the data flows mattered more than the construct. The COMP-5 default switch (det: translate() defaults to the z/OS COMP-5 order (Part of #7646, #7709) #7829) was forecast +3 whole and gave +0; all 3 pass COMP-5 data through CICS channel containers (about 10 more PRs).
    2. Some constructs are features, not gaps. JSON took 15 PRs for 2 programs; CICS WEB took 11 for 1.
    3. Most accounting came from naming faults. About 25 of the 36 accounted are named source defects (13 source-only at baseline). One label flipped twice (census: EXEC CICS map 'no <name> field' row is a named source defect (Part of #7844, #7709) #7853 -> census: EXEC CICS map 'no <name> field' is a translator gap, BMS source is in the clone (Part of #7844, #7709) #7859 -> census: the EXEC CICS map row names its cause, symbolic area never COPYed (Part of #7844, #7709) #7860); four owner rulings kept "accounted" honest.
    4. The blocker system had its own bugs: the inventory counted a copy member as a program (census: inventory counts a data-only copy member as a program (basis 40 -> 39, #7709) #7901); the product-copybook list lacked BAQ / HWT (read 38, truth 36, census: z/OS Connect (BAQ) and web toolkit (HWT) are IBM product copybooks; accounted 37 -> 36 (Part of #7846) #7899); owner maps named closed issues (det/CICS: EXEC CICS WEB family (SEND, RECEIVE, EXTRACT, READ/WRITE HTTPHEADER, PARSE URL, OPEN, CONVERSE, CLOSE) -- zECS needs HTTP (design first) #4767, COBOL translator: CICS command breadth (START/RETRIEVE, channels/containers, GETMAIN, LOAD, CONVERSE, INQUIRE, ASSIGN, counters, HANDLE ABEND PROGRAM) #4270 -> det/CICS: 'operand is not a data area' refusal has no owner (census #7709, last program short of the ceiling) #7959); --unmask printed census names (cics_census: --unmask reports census programs as scrubbed aggregates (Part of #7709) #7755); refusals collapsed into an unowned other row (census: JSON PARSE / GENERATE refusals no longer collapse to the unowned 'other' row (Part of #7847, #7709) #7906); a census cache dir holding the local corpora counted 51 programs (census: #7709 close-out re-survey at ca601bc80, accounted 36 / 39 (Part of #7709) #7958 notes).
    5. The protocol leaked twice: census-targeted changes merged before T0 (gap_prevalence: census LayoutError programs are source defects; regenerate census page (Part of #5865, #7644, #7709) #7714, det: translate(zos_comp5=True) holds COMP-5 big-endian and lifts the byte-use refusals (Part of #5865, #7646, slice 2 of 3) #7673), and an edited-copy probe led to the rule tightening (rules: census source is never edited or excerpted; product dependencies stay unaccounted (Part of #7709) #7902).
    6. Tuning on known estates did not transfer: first-contact rate on unseen code is about 20%.

    For the next untuned estate

    • Expect about 20% whole on first contact; about two days of fleet work to about 30% whole / 90% accounted.
    • Budget 1-2 feature-sized constructs per estate at 10-20 PRs each, and about 40% of PRs for measurement.
    1. Ask for the full copybook libraries and the IBM product list up front (missing members and product copybooks capped 11 of 39 here).
    2. Validate the tool on the estate before T0: inventory, product prefixes, owner map (estate trials: cics_census preflight + estate-trial skill from the census lessons (prereq of #3803) #7964).
    3. Freeze main at T0 mechanically (estate trials: cics_census preflight + estate-trial skill from the census lessons (prereq of #3803) #7964).
    4. Sort source, clone and product faults before fixing anything; back each source-defect label with an IBM citation and a review.
    5. Forecast from context: record where each gap's data flows before predicting what a fix frees (census: check a branch against the census before its PR (counts-only HEAD survey), no separate re-survey PRs #7961).
    6. Treat coverage-if-closed as an upper bound only; re-measure after each fix.
    7. Report whole and accounted side by side, every time.

    Follow-up already queued

    #7959 (last census gap), #7961 (census check inside the fixing PR), #7962 (ledger off main; census nightly timer installed 11-06), #7963 (docs-only CI lane), #7964 (trial preflight + estate-trial skill), promoter-bot #108 / PR #109 (checklist owner sync, ownerless gap rows, post-merge census run, launch-time focus accounting).

    🤖 Posted by Claude Code

  15. squid-protocol commented on Nov 8, 2026

    @squid-protocol
    OwnerAuthor

    Final write-up: how the census mock trial went (closed 2026-11-07)

    Counts only; no census source was read for this write-up. It completes the lessons comment of 2026-11-06, which still holds, with how the trial ended.

    Final scoreboard (main `b59de5a37`, after PR #8057)

    Measure Predicted (11-04) 11-06 close-out Final (11-07)
    Translate whole (L1) 25 of 40 12 of 39 13 of 39 (33%), from 8 at T0
    Accounted (whole + named source defects) 40 of 40 36 of 39 37 of 39: the ceiling
    Unaccounted — 3 2: the z/OS Connect BAQ programs, by owner ruling (#7900)
    Calendar time 6-9 days ~2.2 days ~3 days, inside the 14-day box
    Evidence level — — L1 only, by design: no cases on a non-burned estate (rule 2)

    How the last program was settled, and why it matters

    On 11-06 the last unaccounted program had one gap: `EXEC CICS: operand is not a data area`. A worker labelled the whole refusal class a source defect (#7967), and that would have reached 37 of 39 on paper.

    The rule-10 review (an IBM citation, read against the gap's actual shape) said otherwise:

    So the ceiling was reached by translating the program, not by labelling it. The sweep of that class found 10 more IBM data-value options the translator read as data-areas (PR #8066, #8058). Any of them could have been miscounted as "accounted" in a blind trial.

    Two more bugs the end of the trial exposed

    1. Unchecked source-defect labels. None of the 10 source-defect rows carried a precise IBM citation.
    2. The nightly census broke silently. census: inventory counts a data-only copy member as a program (basis 40 -> 39, #7709) #7901 added a `copy_members` count that the nightly's counts-only publish guard didn't allow, so the 11-07 run refused to publish. Fixed in census nightly: publish the copy_members count (Part of #7709) #8055: the key is allowed as a count only.

    Lessons added to the 11-06 list

    What carries into the blind trial (#3803)

    Owner, 2026-11-07: the blind trial runs as an L1 translation trial; the proof is deferred; the draw runs only at T0. Pre-registration Amendment 1 is in PR #8067.

    Prep status:

    Calibration for the prediction: about 20% whole at first contact; about 33% whole and 95% accounted after about three days.

    Closing #7709 as complete.

    🤖 Posted by Claude Code

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

    scope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions