Skip to content

Census: no current non-burned translation rate (nightly is --no-census by design; last local baseline surveyed the wrong root silently) #6064

Closed as not planned

Description

@squid-protocol

Problem

There is no current non-burned measurement anywhere. The blocker report (cics_census.py blockers) and its history only see burned estates:

  • Nightly (evidence-refresh.yml, Evidence refresh: re-measure translation every night (the reports' survey froze on 2026-10-07) #4863) runs cics_census.py survey --baseline --no-census by design: census repos are never cloned in CI. Every nightly line in generated:docs/language_status/blockers/blockers_history.jsonl since 2026-10-16 says whole_non_burned 0 / total_non_burned 0.
  • The last local census baseline is broken. In _shared-scratch/census-cache/68d1fa15d2a4…/ (2026-10-14, scope "burned + local + census corpora"), before-nb/survey.json holds two corpora named main and scratch (1 program each, generation failed: SystemExit: 0), not the 10 census clones under _shared-scratch/census/. The run recorded non-burned 0/0 and nothing flagged it.
  • The last valid non-burned number is 2026-10-07 (blockers_history.jsonl on main, PR det: EXEC CICS READ GTEQ / GENERIC (#4270) #4636): 5 / 21 non-burned CICS programs whole, when burned was 73 / 104. Burned is now 103 / 106, so we cannot say how well the engine generalises to estates it hasn't been tuned on.

Fix

  1. A local scheduled census run (not CI). Census clones must never reach CI or a commit (blind-estate rule, census/INELIGIBLE_FOR_BLIND_ESTATE.md). Run it on the owner box, either as a step of an existing scheduled job (churn's nightly, or a systemd timer next to it), at most once per main SHA per day, low priority (nice, --jobs 2), gated by box_status:
    eval "$(python tests/tools/equivalence_env.py --provision)" then cics_census.py survey --baseline (with census) then history append --nightly, publishing counts only (whole / total, burned + non-burned, top gaps by key) to the generated branch. This is the same shape as the per-PR lines that already carry non-burned counts. No source text and no program paths from census repos.
  2. Fail loudly on a bad census root. survey (and blockers) must check that the non-burned corpora surveyed are exactly equivalence_env.census_repos() (each present, ≥1 program), and exit non-zero naming the missing or unexpected corpora. Today a wrong --census-corpora/$CICS_CENSUS_CORPORA/<root>/census silently gives 0/0 or placeholder corpora (main, scratch).
  3. Make the denominator honest in the report. blockers.txt's header and the history line should say non-burned: not surveyed when the run had --no-census, instead of non-burned 0 / 0, so a nightly line can't be read as "zero non-burned programs".
  4. Keep the burned split current. cics-async-api-credit-card-application-example was a census repo on 2026-10-07 and is now burned (estate4_draw.BURNED_NAMES). census_repos() already subtracts it; add a test that the census set and BURNED_NAMES don't overlap, so the next estate that gets burned can't be counted both ways.

Tests: a unit test for (2) using a fake census root containing main/ + scratch/, which must refuse; and one for (3), the --no-census header text.

Context

  • Owner question 2026-10-22: "what is our estimated translation rate on the remaining estates we haven't scanned?" It couldn't be answered from any published artifact.
  • A one-off non-burned survey is running locally now (det_survey translation-only, ~40 programs in 9 census repos plus dsf and zopeneditor-sample). Its result will be posted here as the new reference point.

Activity

  1. added
    bug
    priority: high
    scope:infra
    on Oct 22, 2026
  2. squid-protocol commented on Oct 22, 2026

    @squid-protocol
    OwnerAuthor

    One-off reference point, 2026-10-22, main 082aba881. det_survey.py --no-compile (translation only) over the 9 census repos (async credit-card example excluded, now burned) plus the local non-burned dsf and zopeneditor-sample. Counts only.

    set programs translated whole with holes refused statements translated
    census (9 repos) 40 8 (20%) 9 23 568 / 647 (87.8%)
    local non-burned (2) 12 2 (17%) 10 0 826 / 950 (86.9%)
    all non-burned 52 10 (19%) 19 23 1394 / 1597 (87.3%)

    Why the 23 census programs were refused:

    • Not programs (3): 2 ISPF editor screen captures saved as .cbl, and 1 copy member with no PROGRAM-ID.
    • Source defects (9): all in nexusbank: text past column 72 cuts a literal open (IBM reference truncates at 72).
    • Missing inputs (9): 7 for a user copybook absent from cobol-db2-refatorado (BOOKFUNC), 2 for an IBM z/OS Connect copybook (BAQRINFO; system copybooks are never shipped).
    • Translator (2): 1 PROCEDURE DIVISION parse error and 1 engine/translator layout disagreement.

    Reachable census denominator (excluding non-programs, source defects and missing inputs): 19, of which 8 are whole (42%). Top hole reasons in the 9 with holes: undeclared CALL/MOVE items, EXEC SQL ROLLBACK in a CICS program, BMS map fields not found, DFH* items (DFHPF3/DFHCOMMAREA), JSON GENERATE/PARSE, and WEB WRITE HTTPHEADER SESSTOKEN.

    Not like-for-like with the 2026-10-07 line (5 / 21, CICS programs only, async credit-card example then non-burned): this counts every COBOL program.

  3. squid-protocol commented on Oct 23, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 6064-20261023T0812Z (host melek) ended without a PR. denied on shared-scratch clone move; owner question written, rerun queued needs-owner, provisioner sibling queued

  4. squid-protocol commented on Oct 23, 2026

    @squid-protocol
    OwnerAuthor

    Waiting on an owner decision (asked privately, 2026-10-23). Nothing is needed from contributors; work resumes once it is answered.

  5. added
    legacy-modernization
    metrics
    and removed on Oct 25, 2026
  6. squid-protocol commented on Nov 5, 2026

    @squid-protocol
    OwnerAuthor

    Closed by the owner, 2026-11-05: superseded by the census mock trial (#7709).

    🤖 Claude Code for the owner

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

    buglegacy-modernizationmetricspriority: highscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions