Skip to content

evidence report: a translation survey can be stale; the release gate fails on it (Part of #4863) - #4919

Merged
squid-protocol merged 1 commit into
mainfrom
feat/4863-survey-staleness
Oct 11, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/4863-survey-staleness

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4863 (step 2: a survey can be stale).

Problem. The evidence reports freeze the translation survey in report.json's measured block. 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: the cobol_to_java package (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), and tests/tools/det_survey.py. A test pins the list against the translator's own gitgalaxy.* imports.
  • Digest = evidence.tree_sha256 (the scheme the records' harness / oracle inputs use), stored as measured.survey.translator when a survey is turned into reports (computed at the surveyed commit).
  • A live build compares it with the tree. When it differs, every level above L0 is stale on 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-program survey_stale), the report renders a "Stale survey" banner, --deltas names it, and --check --live fails ("stale survey: ..."). A refresh (the translation surveyed again) makes it pass.
  • A non-live build never compares with the tree, so the non-live check of a committed report does not change with unrelated translator merges.

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/at pinned 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 --fast and --ratchets (see comments). Not touched: det-sweep.yml, det_sweep_plan.py (#4901).

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

…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
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 11, 2026 18:42
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 18:42
@squid-protocol
squid-protocol merged commit 5c3c51f into main Oct 11, 2026
24 checks passed
@squid-protocol
squid-protocol deleted the feat/4863-survey-staleness branch October 11, 2026 18:50
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