Skip to content

Det sweep speed-up: shards, affected-cases-only, COBOL cache (#4463 follow-up, closes #4476) - #4497

Merged
squid-protocol merged 10 commits into
mainfrom
perf/4463-det-sweep-fast
Oct 6, 2026
Merged

squid-protocol merged 10 commits into
mainfrom
perf/4463-det-sweep-fast

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #4463 / #4466. Closes #4476.

Det Sweep speed-up: a plan job (affected cases only when a PR touches only case files, full otherwise and nightly), a 6-way shard matrix balanced by recorded durations, a GnuCOBOL oracle-image cache (docker save/load, still checked by equivalence_oracle.py --strict), and the --reuse fix for #4476 (a step whose run.sh differs from the earlier run's runs afresh instead of raising; the step chowns its outputs back to the caller).

Dropped: the COBOL-side step cache (equivalence_cobol_cache.py). It saved no reliable time. Full sweep: no cache 10m14 vs warm cache 12m33. 3-case runs: cold 698s, warm 185s, off 247s, and cold vs off is the same work, so box load accounts for differences of that size. CPU time barely moved: the Java build and fault runs dominate a proof, not the COBOL step. Dropping it removes ~190 lines, a module and two workflow steps.

CI failures on be3336b, diagnosed

Equivalence after merging main (#4490, #4498, #4504)

Full sweep (no cache, --jobs 4) vs 6 shards (--shard i/6) merged: 37/37 cases, per-case proved + coverage + translated identical (0 diffs). 34 proved. --aggregate --expect all: "sweep: as expected" on both. Timings with box load ~17-25: full 18m56; shards 4m09, 3m24, 4m14, 5m53, 3m30, 3m03.
carddemo-signon now proves. I checked origin/main without this PR (det_port.py run carddemo-signon there: PROVED), so the change comes from main, not this PR. Its baseline entry was dropped with proof_sweep.py --update-baseline.

Gates (local)

pr_gates.py: 7/7 pass (lint, audits, secrets, xray, gauntlet, golden, suite). pr_gates.py --ratchets: 5/5 pass (ports, estate, fact-crosscheck, completeness, ground-truth). None were skipped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR

squid-protocol and others added 6 commits October 5, 2026 10:30
… in CI (#4463)

Four det ports stopped proving on 2026-10-04 (bisected):
- mortgage-cmort / mlist / nbrvl: since 2d7052c (#4245, every program of a
  multi-program source read), IBM DBB EPSCSMRD's CURRENT-CONDITION field CASE
  became the entity field `private Integer case;` -- a compile error. The
  generator's Java keyword list (java_identifier) lacked case, if, for, etc.;
  it now holds every JLS 3.9 keyword.
- carddemo-menu: since 737cab8 (#4049), scenario option-12-typed-over sent
  option 99; COMEN01C still subscripts its 12-entry table with it, 4K past the
  record (oracle_assumptions.md X8: the det port stops). The scenario now sends
  12, inside the table; the model port is re-proven (evidence refreshed).

CI: .github/workflows/det-sweep.yml runs proof_sweep.py --det-only --skip-db2
on translator / harness / case changes and nightly (cancel-in-progress,
60-minute timeout). proof_sweep gains --skip-db2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
# Conflicts:
#	docs/language_status/evidence/carddemo-menu.md
#	tests/equivalence/carddemo-menu/evidence.json
…det ports (#4463)

tests/equivalence/det_sweep_baseline.json lists each det port the sweep does not prove, with its issue: 21 CICS ports whose
runTask proof passes but whose det-generated java-facade is a stub (#4465), plus the three long-standing ones. CI fails on a new
not-proven port and on a baselined one that now proves; --update-baseline drops the stale entries.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine ci-cd Continuous integration, delivery, and automated runners testing Unit, integration, and E2E pipeline verification legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist labels Oct 5, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

Handoff (agent stopped on usage limit).
Done: merged origin/main (took branch side of add/add conflicts; #4466 content was identical on main), 27 new tests + 62 related tests green, 4-way verdict equality proven (0 diffs, table in PR body). Timings: shards max 5m30, single case 1m19, under box load ~17-20.
Running detached: pr_gates -> /tmp/gitgalaxy-scratch/claude/dsf/gates.log (lint..golden PASS so far; look for the EXIT line). No sweeps running.
Left: read gates.log; check CI once and confirm the sharded Det Sweep job actually triggered and its timings; note the COBOL cache saves little CPU (COBOL is not the bottleneck; Java/maven + faults are), so the speed-up is mostly from shards + affected-only; update body when CI is read; do not touch det translator (#4468); do not merge.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 2 commits October 5, 2026 19:50
…; rebaseline signon

- tests/tools/equivalence_cobol_cache.py removed with its hook in run_cobol_step and the workflow's
  cache/prune steps: it saved no reliable time (the Java build and the fault runs dominate a proof).
  The #4476 fix stays: a --reuse step whose run.sh differs runs afresh (and the step chowns its outputs).
- test_mutation_tooling: the --reuse test still expected the old RuntimeError; it now asserts the
  #4476 fallback (fresh run, mocked docker). This was the full-suite and ground-truth CI failure.
- det_sweep_baseline.json: carddemo-signon now proves on origin/main too (proof_sweep.py --update-baseline).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01W3KVtYHQp8KsfKcHsdiPbR
@squid-protocol
squid-protocol marked this pull request as ready for review October 6, 2026 00:11
@squid-protocol
squid-protocol merged commit 8de6776 into main Oct 6, 2026
27 checks passed
@squid-protocol
squid-protocol deleted the perf/4463-det-sweep-fast branch October 6, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine ci-cd Continuous integration, delivery, and automated runners legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: high Core feature broken, but workarounds exist testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

porting_loop: --reuse fails (baseline COBOL run.sh missing), so model ports can't be regenerated after a generator change (cbsa-inqacc, #4471)

1 participant