Skip to content

Blind 1: Amendment 3 and trial eligibility follow prereg §5 before start (Part of #8119) - #8124

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8119-20261108T1725Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8119-20261108T1725Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8119 (Blind 1, #8073 / #3803): Amendment 3 and the trial eligibility rules brought in line with pre-registration §5, before trial.py start.

Why start does not run in this PR

  • The pinned clone has 58 .cbl files, and every one contains EXEC CICS; 20 also contain EXEC SQL (counts from tools, clone never opened). ELIGIBILITY_RULES still described the batch-only harness of 2026-10-05 and put every CICS, SQL, DL/I and MQ program out of scope. With the old rules, start would have declared 0 eligible and burned the estate for good. §5 already registers the scope as "CICS online and batch COBOL", out only for "a resource the harness cannot provide" or "source missing from the repo". The harness now has CICS, Db2, IMS (Epic: IMS runtime — DL/I database calls (PCB/SSA/status codes), PSB/DBD, later IMS TM/MFS #4893) and MQ (Epic: IBM MQ runtime — MQI calls (MQOPEN/GET/PUT/CLOSE…) and MQ structures #4892) legs. So this change makes the code follow the registered text. It is not tuning to the target.
  • frozen_system() records HEAD as engine_commit, and fix_commits reads engine_commit..HEAD. start must therefore run on a main commit that already has these rules. A branch commit would disappear in the squash. Start is the next PR (below).

Changes (3 files)

  • docs/language_status/estate4_preregistration.md: Amendment 3 (owner, 2026-11-08). It grants an exception to rule 2 and to the reading of code for this one repo/sha, and records that the L1 result (0/29 first contact; 25/29 whole, 26/29 accounted at 3b5c59556) closed before any reading. §3-8 apply from trial.py start. It also covers the eligibility alignment, the widened harness fingerprint, the preview result, and the rule that start runs on main. It sits after Amendment 1; open Estate journey page + locked trial methodology (Part of #3803, #8073) #8117 adds Amendment 2 at the same spot, so whichever merges second resolves a small text conflict.
  • tests/tools/trial.py:
    • Drops the blanket _CICS / _SQL / _IMS / _MQ exclusions.
    • _no_output now counts a CICS, SQL, DL/I or MQ call (code, not comments) as an output channel.
    • New rule "source missing from the repo: COPY member X is not in the estate". It checks the estate's file stems, BMS mapset labels, and what the translator ships (SYSTEM_MEMBERS + stand-in registers).
    • HARNESS_PATHS adds the db2/sql/ims/mq/mvs/binary64/job/oracle/env modules and the stub dirs. NOT_HARNESS names, as fnmatch patterns, the equivalence modules no proof runs through.
  • tests/cobol_mainframe/test_trials.py: online, Db2, IMS and MQ programs are in scope; a resource call only in a comment gives no output channel; a missing COPY member is source-missing while a shipped one is not. Every tests/tools/equivalence*.py is either in the frozen harness or matched by NOT_HARNESS. The existing online (EXEC CICS) asserts move to the new behaviour.

Change vs plan

  • The plan named skeleton program.copy_gaps as the source of the missing-member check. The skeleton does not report a missing COPY member, so the rule checks the estate's own member names (file stems + mapset labels) plus the translator-shipped set.
  • NOT_HARNESS holds fnmatch patterns, not module names. change_classifier.ground_truth_scopes reads any module stem word in tests/cobol_mainframe/*.py's import closure as a reach, so naming the e2e selector pulled zos_probes into the ground-truth job and failed 4 planner tests.

Rehearsal (trial.py preview, through heavy-run, scratch work dir)

29 programs, 28 eligible, 1 out: "source missing from the repo" (a COPY member that is not in the estate). The ledger is unchanged; trial.py check passes.

Class / Sibling gaps

Class: "trial.py eligibility and its frozen-harness fingerprint lag the equivalence harness's resource legs". Siblings and status:

  1. _CICS blanket exclusion: fixed here.
  2. _SQL blanket exclusion: fixed here.
  3. _IMS / _MQ exclusions: fixed here.
  4. _no_output blind to CICS / SQL / DL/I / MQ channels: fixed here.
  5. §5 "source missing" rule absent: fixed here.
  6. HARNESS_PATHS missing the db2/sql/ims/mq/mvs/binary64/job/oracle/env modules and the stubs: fixed here, with a coverage test.
  7. Docstrings: fixed here.
  8. Open, not filed (per brief): trial.py sync imports only the port_runner log. A det-only first attempt (det_port proof results, §4) has no import path, so a det-only headline cannot be recorded yet. Needed before any Blind 1 result counts.

Remaining slices

  1. Start PR after this merges, run on a clean worktree at the origin/main tip: trial.py start example-health-apis --estate-path <clone> --work <scratch> --backend anthropic --model claude-sonnet-5-5 --repo-url https://github.com/ibm/example-health-apis --ref 9cfe321e2028f4f91a780bbb7d4cbb8393565f76. Commit tests/cobol_mainframe/trials.json with the trial pages together, pass trial.py check, and post the frozen-system line and the eligible list on 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.
  2. The det-only §4 sync path (sibling 8).

Facts checked

  • Clone at 9cfe321e2028f4f91a780bbb7d4cbb8393565f76, clean. 58 .cbl files, 58 with EXEC CICS and 20 with EXEC SQL (grep counts only). 29 programs by preview.
  • With the old rules, the tool count is 0 eligible; with the new rules, the preview gives 28/1.
  • Harness legs exist on main: equivalence_cics*.py, equivalence_db2.py, equivalence_sql.py, equivalence_ims.py, equivalence_mq.py.
  • Estate journey page + locked trial methodology (Part of #3803, #8073) #8117 (Amendment 2) is still open.

Gates

  • pr_gates.py --fast: 9/9 pass (lint, audits, secrets, xray, gen-docs, derived, workflows, gauntlet, affected).
  • audit_check.py passes.
  • pytest test_trials.py test_ground_truth_plan.py test_change_classifier.py (run from /tmp): 152 passed.
  • No engine or parser change, so no golden bless and no ground-truth ledger move.

Cross-repo

None.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 18:14
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant