Repository navigation
evidence report: a translation survey can be stale; the release gate fails on it (Part of #4863) - #4919
Merged
Conversation
…fails on it (Part of #4863) The survey's translator (cobol_to_java package, CICS spec, core modules it imports, det_survey.py) is fingerprinted and stored with the survey. A live build compares it with the tree: L1+ levels go stale on 'translator' (L1*), counted apart, and --check --live fails until the translation is surveyed again. Older reports (no stored fingerprint) are compared through the fingerprint of their survey commit and render unchanged while current. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
Contributor
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 11, 2026 18:42
squid-protocol
enabled auto-merge (squash)
October 11, 2026 18:42
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.
Part of #4863 (step 2: a survey can be stale).
Problem. The evidence reports freeze the translation survey in
report.json'smeasuredblock. Staleness (evidence_report.py --check --live, the release gate) fingerprinted harness / oracle / case / corpus, not the translator the survey ran, so a survey 30 translator merges old still read "stale: 0".Change (tests/tools/evidence_report.py only; the refresh workflow already re-surveys, so it is untouched).
TRANSLATOR_INPUTS: thecobol_to_javapackage (det translator, its cobolrt runtime sources, copy members, and the forge modules det imports),standards/cics, the core modules the translator imports (source format, compiler options, BMS maps, EBCDIC, aperture, source text), andtests/tools/det_survey.py. A test pins the list against the translator's owngitgalaxy.*imports.evidence.tree_sha256(the scheme the records' harness / oracle inputs use), stored asmeasured.survey.translatorwhen a survey is turned into reports (computed at the surveyed commit).translator(L1*, like coverage staleness evidence report: keep a program's last measured level marked stale instead of dropping L3/L4 to zero on any harness change #4730), counted apart (summary.levels_stale_survey,histogram_stale_survey, per-programsurvey_stale), the report renders a "Stale survey" banner,--deltasnames it, and--check --livefails ("stale survey: ..."). A refresh (the translation surveyed again) makes it pass.Report format change (additive). New keys:
measured.survey.translator,survey_translator,summary.levels_stale_survey/histogram_stale_survey,programs[].survey_stale,reproducibility.translator_from. Reports committed in the old format (e.g. bot PR #4867) have no stored fingerprint: they render and validate unchanged while the translator at their survey commit equals the tree's (compared through git), and are stale otherwise or when the commit is not in the clone (a shallow checkout). So after this merges, the release gate fails until the next nightly refresh writes the fingerprint; that is intended.Tests (hermetic fixtures built from tmp sources,
translator_now/atpinned by an autouse fixture so nothing depends on the committed reports): fingerprint covers the inputs and nothing else; inputs cover the translator's imports; stored vs tree comparison, legacy via commit, unresolvable commit; translator merge without refresh fails--check --live, refresh passes; non-live check unaffected; older format unchanged; a survey run stores the fingerprint.Gates:
pr_gates --fastand--ratchets(see comments). Not touched: det-sweep.yml, det_sweep_plan.py (#4901).🤖 Generated with Claude Code
https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX