Repository navigation
Evidence record per ported program: claim, oracle, provenance, approval, staleness (#4048) - #4316
Merged
Merged
Conversation
gnucobol.Dockerfile pins the base by digest (debian:bookworm-slim@sha256:3783cc01...) and gnucobol3/libcob4 to 3.1.2-5+b1 (what bookworm ships today, and what the local oracle already ran: no change in oracle behaviour). The build asserts `cobc --version` = "cobc (GnuCOBOL) 3.1.2.0" and labels the image with the pin. tests/tools/equivalence_oracle.py fingerprints the image a run uses (id, labels, cobc --version, installed package) against the pin. Every proof report (equivalence.py batch/CALL/CICS, cics_crucible results and --report-dir proofs) records it under `oracle`; a mismatch warns, and stops the run under GITGALAXY_ORACLE_STRICT=1, which the CICS crucible workflow sets (plus an explicit check step after the image build). --reuse carries the earlier run's oracle. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…ve all 17 at v0.2.0 (#4308) tests/tools/crucible_port_provenance.py: `check` lists port provenance records whose latest proof is not at PINNED_REF and that do not say they are stale against it; `reprove` RUNS each port's proof (cics_crucible.py --sides java-ported --program P --report-dir) at the pinned checkout and appends a proof.reproven entry (ref, summary, port tree sha256, harness commit), or marks proof.stale with the reason. The loop's own proof/history are never rewritten. tests/cics_crucible/test_port_provenance.py fails on a silent mismatch, and on a re-proof whose port tree has changed since. All 17 ports were re-proven at v0.2.0 (94f2afcb) on 2026-10-04: every scenario of every program 1/1. Pin-bump docs (BUMPING_THE_CRUCIBLE_PIN.md, ecosystem.md, the pin file, ports/NOTICE) add the re-prove step. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…and 'origin/fix/4308-crucible-port-provenance' into feat/4048-evidence-record
…approval (#4048) tests/tools/evidence.py implements gitgalaxy-evidence/1 as approved in the #4048 proposal: input fingerprints (port, case, corpus, differences, harness, oracle, generator), status computed from them (never stored), the derived claim, the rendered pages, schema validation, and `approve`/`reject` -- the only writer of an approval, refused unless a person signs at a terminal. - equivalence.py run --record writes the record of the run (committed port and case only); evidence.py prove/refresh does the same for crucible ports. - equivalence_java / cics_crucible keep the generated file each overlay replaces, so proof_reach can tell "left as generated" from "ported". - mutation_scores.py build refreshes each record's mutation section. - Q1: port/case/corpus/differences staleness fails test_evidence.py; harness/ oracle/generator staleness is re-proven by the nightly evidence-refresh workflow. - Q7 (owner decision): PORTED_UNPROVEN_POLICY = "block" -- a ported_unproven method makes the record not proven; stubs and left-as-generated never block. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Every committed port except the four Db2 cases was proven again at 2f77097 with `evidence.py prove` (JDK 17, the pinned oracle under GITGALAXY_ORACLE_STRICT=1, cics-crucible at v0.2.0), and its record written; the pages under docs/language_status/evidence/ are rendered from them. Every proof's verdict is proven; under the default policy (ported_unproven blocks) 21 are "proven, unapproved" and 20 are "not proven" because of ported_unproven methods. The four Db2 cases (cbsa-inqacc, cbsa-updacc, genapp-lgicdb01, genapp-lgupdb01) are on the MISSING ratchet: their proof needs IBM's Db2 container and the Db2 COBOL image rebuilt on the pinned oracle. The harness's dirty check counts tracked files only (the records being written are untracked until committed); the records' harness_commit is 2f77097, whose tracked tree was clean during the runs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Contributor
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
The two literals are one table header row split for line length; the explicit + says so, and clears CodeQL's implicit-concatenation-in-a-list warning. Output is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
squid-protocol
marked this pull request as ready for review
October 4, 2026 15:21
This was referenced Oct 4, 2026
Prove 6 CardDemo ports' unproven methods: entry runs, an abend scenario, intcalc key-order fix
#4326
Merged
Closed
4 tasks done
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #4048 (epic #4055), following the approved schema proposal
gitgalaxy-evidence/1.Stacked PR. This branch merges #4313 (#4309, the oracle pin) and #4314 (#4308, crucible provenance), because every record's oracle fingerprint comes from #4309. Review and merge those two first; this PR's own commits are the last two.
What changed
tests/tools/evidence.pybuilds the record:render [--check]), schema validation,prove,refresh --stale,mutation,approveandreject.equivalence.py run CASE --recordwrites the record for the committed port on the committed case. It refuses--port,--reuse, overrides and similar flags.cics_crucible.py --report-dir. Their coverage comes fromtests/cics_crucible/coverage.json.equivalence_java.prepare_projectandcics_crucible.lay_overlaynow keep the generated file each overlay replaces, undergenerated_before_overlay/. This lets proof_reach tell left as generated apart from ported.mutation_scores.py buildrefreshes each record'smutationsection. That section is judged against the inputs at its commit, recomputed from git, so a score made before The test-strengthening loop: mutation survivors -> model-proposed inputs, the COBOL as oracle #4049 changed the case shows as stale..github/workflows/evidence-refresh.ymlruns nightly and onworkflow_dispatch(withdb2andkeysinputs).evidence.py refresh --stale, with the oracle strict check and the crucible at its pin.tests/cobol_mainframe/test_evidence.pycontains these tests:test_no_tool_writes_an_approval: an AST check plus a key scan over the tools and the engine;docs/language_status/evidence_records.md, plus generated pages underdocs/language_status/evidence/..gitignorenow admitsevidence.json. The repo-wide*.jsonrule would otherwise have silently dropped the records.Owner decisions encoded
evidence.py approve KEY --by NAME --for PURPOSE, run by a person.--bylooks like a tool or model;--foris empty;PORTED_UNPROVEN_POLICY = "block"."report"later without a schema change.cobc (GnuCOBOL) 3.1.2.0, package3.1.2-5+b1, the image id andmatches_pin: true.Decisions taken by default (owner may revisit)
gitgalaxy/tools/cobol_to_java/**only.evidence.jsonbesideprovenance.json.cics-crucible-port/1is kept as the loop log.written_by: "person", with the author and first commit taken from git (acctview, intcalc, posttran).The records: 41 written, all unapproved
All 41 non-Db2 ports were proven again at
2f770970with JDK 17, the pinned oracle in strict mode and cics-crucible v0.2.0. Every proof's verdict is proven. Under the blocking policy:The CSUTLDTC worked example is
tests/equivalence/carddemo-dateutil/evidence.json:be2561306;executeCsutldtc.Missing: the 4 Db2 cases (cbsa-inqacc, cbsa-updacc, genapp-lgicdb01, genapp-lgupdb01). They are on the MISSING ratchet. Their proof needs IBM's Db2 container plus
gitgalaxy-gnucobol-db2:3rebuilt on the pinned oracle. The local image predates the pin, and the #4309 strict check correctly refused it. I did not rebuild the shared image.evidence-refresh.ymlwithdb2=truewrites these records.Checks
test_evidence.pypasses, along with the equivalence, crucible, proof_reach and mutation suites: 282 passed.ruff_audit,mypy_auditanddead_key_auditwith--ciare clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo