Skip to content

CBSA: CRDTAGY1 ledger (slice 1) + GETCOMPY end-area compare (slice 2) (Part of #7954) - #7975

Merged
squid-shepherd[bot] merged 7 commits into
mainfrom
churn/7954-20261107T0201Z
Nov 7, 2026
Merged

squid-shepherd[bot] merged 7 commits into
mainfrom
churn/7954-20261107T0201Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Part of #7954. Slice 1 (CBSA): no program reaches L5 in this slice. This PR records one new measurement and the findings that decide what the next slices must be.

Changes

  • tests/equivalence/det_mutation/cbsa-crdtagy1.json (generated by det_mutation.py run): CRDTAGY1 goes from "not measured" to 1072 mutants, 36 stillborn, 1036 proved, 728 killed, 308 survivors. All 308 are unaccounted: no verdict file exists for this program, so it stays at L4.
  • No case, harness or verdict change. No survivor is stated equivalent or unreachable.

What the plan got wrong

The plan expected the two ACCTCTRL case-gaps to be killable with new scenarios. They are not on case data: the program INITIALIZEs the COMMAREA, so the only visible difference is the first digit of NUMBER-OF-ACCOUNTS (SELECT COUNT(*)), which needs 10,000,000 or more rows in the Db2 seed. They stay open as case-gap. The plan also expected a BNKMENU measurement; its run is 3238 mutants (hours), so I stopped it and left it for a later slice.

Class / Sibling gaps

  • X10 end-area harness-gap: the harness does not compare the caller's end COMMAREA bytes (s_DFHCOMMAREA.beyond, the System.arraycopy(cb, ...) entry, handleLink / lastLinkBytes). About 13 unaccounted survivors in every byte-COMMAREA program come from it, across CBSA, GenApp and zECS. It needs harness code, which L5 on CICS estates: CBSA, GenApp, zECS L4 -> L5 (69 programs, CICS breadth track) #7954 forbids, so it blocks L5 for those programs and must not be relabelled equivalent.
  • ACCTCTRL: 2 case-gaps need 10M+ ACCOUNT rows; its ledger is stale; 268 stated verdicts have no attack on record (survivor_attack.py next flags them).
  • CRDTAGY1: 308 open survivors, mostly base64 initial-storage constants and DEL/CON mutations in the service; none attacked yet. CRDTAGY2 to 5 share the shape.
  • Unmeasured: 24 other CBSA programs (BNKMENU is 3238 mutants), GenApp (31), zECS (ZECSNC 30 case-gaps, ZECS003 4 case-gaps and 5 DTO-writeback harness-gaps, ECS001 30 harness-gaps).

Remaining slices

  1. X10 end-area compare in the harness (harness code; unblocks about 13 survivors per byte-COMMAREA program).
  2. Attack the 308 CRDTAGY1 survivors with survivor_attack.py (at least 2 attempts each before any verdict).
  3. BNKMENU run (3238 mutants) in a dedicated slot.
  4. GenApp and zECS measurements and case-gaps.

Gates

  • det_mutation.py check: the only problem was this ledger not being committed yet (now committed); the rest are existing warnings.
  • det_mutation.py stale-check: 8 stale ledgers, all pre-existing (none are CRDTAGY1).
  • pr_gates.py --fast: 9/9 gates pass.
  • Not run locally: audit_check.py, test_evidence.py (the change is one generated JSON; CI covers them).

Lessons for agents

  • survivor_attack.py packet prints about 300 lines of scan noise: redirect it to a file and filter it.
  • tests/tools/box/bg-job.sh is a bash script: run it with bash, not python3. Its wait returns rc=124 while the job runs; that is not a failure.
  • det_mutation.py run writes the ledger itself (untracked until you git add it); det_mutation.py check fails until it is committed.
  • A 1000+ mutant program takes about 70 minutes at --jobs 3; check the mutant count before starting.

Slice 2 (same branch)

What changed

  • tests/tools/equivalence_cics.py: new scenario key commarea_tail_hex (typed case + link_bytes): bytes the LINK caller's area carries past the typed record. Both sides get record + tail; refused by name with dto_entry, commarea_length, commarea_hex, non-hex or empty. judge_facade now calls caller_bytes_diff (the java-facade side never compared the end area), and caller_bytes_diff judges tail scenarios as it does commarea_hex ones.
  • tests/equivalence/cbsa-getcompy/case.json: three link-bytes-tail-* scenarios. Proof: 13/13 scenarios PROVED, the tail is in both the runTask and facade COMMAREA events.
  • Unit tests in test_equivalence_cics_commarea.py (key validation, end-area compare agree/differ/missing side, tail lengths 1 / many).
  • GETCOMPY det mutation re-measured (222 mutants, seed 0): 8 byte-entry harness-gap mutants now killed; 2 mutants stated equivalent (4a419587c4, e9733f48f4) were killed by the re-run, so those claims were wrong and are removed. 11 harness-gap rows remain open (3 of them no longer in the re-run's sample).
  • X10.md states the harness reach. det_sweep_coverage/cbsa-getcompy.json refreshed.
  • Plan deviation: no .linkbytes file; the facade's COMMAREA event area already carries the end bytes.

Class / Sibling gaps

Class: a LINK caller's area longer than the typed record (X10) never stated by a typed case, and the byte[] entry's end area never compared on the facade side. Fixed in the harness for every typed case; only GETCOMPY has scenarios. Siblings, each needing its own scenarios: GETSCODE, UPDCUST, ABNDPROC (CBSA, runTask-only COMMAREA), ACCTCTRL and UPDACC (CBSA, Db2), GenApp LGSTSQ (71 vs 99-byte link), the zECS programs. CRDTAGY1 has commarea: null, so no X10 gap. GETCOMPY's 11 open harness-gap rows still need survivor_attack and a per-row verdict.

Facts checked

  • det_port.py run cbsa-getcompy --faults none: 3/3 translated PROVED; proof_sweep --det-only: 13 scenarios proved.
  • pr_gates --fast 9/9, --ratchets 8/8 after the det-mutation refresh, audit_check.py clear, test_evidence.py + commarea tests 81 passed.
  • Not run: a planted-wrong-tail proof (the unit test pins the differ path), time_ratchet beyond the ratchet gate.

Cross-repo

None.

Remaining slices

Per-program scenarios (GETSCODE, then UPDCUST / ABNDPROC, then Db2 ACCTCTRL / UPDACC, then GenApp); survivor_attack on GETCOMPY's remaining 11 rows; CRDTAGY1's 308 non-X10 survivors.

Checklist: partial [c:c45209e5] -- GETCOMPY end-area gaps 8 killed, 11 open; other CBSA programs untouched
Checklist: partial [c:5dec3ec3] -- GenApp LGSTSQ not started
Checklist: partial [c:ba6069b9] -- zECS not started
Checklist: partial [c:82430a75] -- evidence report not re-read

🤖 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 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 03:45
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 03:47
@squid-shepherd squid-shepherd Bot added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 7, 2026 04:27
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

PR #7975 @ 9ba3823: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42335452063/job/128292365368
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261101.360.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261101.360/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261101.360
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: ground-truth
##[group]Run echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
# #5543: ... or when the layout needs no warm job (a cache hit on the scans, or the busy layout): the parts then warm for themselves
{ ok "$WARM" || { test "$WARM" = "skipped" && test "$PLANNED_WARM" = "false"; }; } && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: skipped
PARTS: failure
SKIP:
MODE: full
PLANNED_WARM: false
LAYOUT: calm
##[endgroup]
ground-truth warm: skipped, parts: failure (tested-tree skip: , plan mode: full, layout: calm, warm planned: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 1/4 (failure) -- main
https://github.com/squid-protocol/gitgalaxy/actions/runs/42335452063/job/128291320532
repro: stale base (main changed engine source since this branch, and this PR touches none of it): git merge origin/main; if the test still fails after the merge it is this PR's
failing tests: tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface
errors:
fail-on-cache-miss: false
tests/cobol_mainframe/test_cobolrt_api.py:109: AssertionError
FAILED tests/cobol_mainframe/test_cobolrt_api.py::test_the_manifest_is_the_sources_surface - assert ["the manifes....py generate"] == []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 63db2abe6e35749dad39106e6ceb1c6770ebbb14c8b26346d896faf4297be8ca
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 93354
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is bcde40fe356086ec7027a330858512499bd8863584d82aa00ada05c380a0c7c0
Finalizing artifact upload
Artifact test-times-ground-truth-part-1 successfully finalized. Artifact ID 13559666668
Artifact test-times-ground-truth-part-1 has been successfully uploaded! Final size is 93354 bytes. Artifact ID is 13559666668
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42335452063/artifacts/13559666668
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/df0e1221-a492-4e6e-9fcf-196d0fdf4df9' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 04:28
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (e5e594c) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 7, 2026 04:39
auto-merge was automatically disabled November 7, 2026 04:39

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Nov 7, 2026
@squid-protocol squid-protocol changed the title det mutation: measure cbsa-crdtagy1, 308 survivors unaccounted (Part of #7954) CBSA: CRDTAGY1 ledger (slice 1) + GETCOMPY end-area compare (slice 2) (Part of #7954) Nov 7, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 7, 2026 05:17
@squid-shepherd

squid-shepherd Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 7, 2026 05:18
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 7, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 7, 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