Repository navigation
test: pin estate-crucible v0.4.0 (phase 3, estate realism); score collisions, gaps, dead code - #4418
Merged
Merged
Conversation
…d code (#4317) v0.4.0 is phase 3 (estate realism). The scorer reads the key's own copy-library declaration (retired OLD libraries, per-program SYSLIB orders), takes the scan's copy_member_collisions from a second --audit-only scan (the master DB does not hold it), and scores the three new channels: copy_collisions against that report, gaps (no edge from the member to a member of the missing name), dead (usage_status 1 for a paragraph, no inbound edge for a program or copybook). Explicit file_edges phantoms are attributed to their horror, and a realism horror is labelled as such in the scorecard. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Contributor
squid-protocol
marked this pull request as ready for review
October 5, 2026 05:40
This was referenced Oct 5, 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.
Part of #4317 (phase 3: estate realism).
What changes
tests/_estate_crucible_pin.py:PINNED_REFmoves from v0.3.0 to v0.4.0 (release notes). The estate now has 20 apps and 98 members, with horrors H-0050..H-0060.tests/tools/estate_crucible.py:copy_libraries(retired<APP>OLDlibraries, per-program SYSLIB orders). Older keys still fall back to the naming-rule derivation.copy_collisionsis scored against the scan'scopy_member_collisions. The master DB does not hold that report, so the scorer runs a second,--audit-onlyscan and keeps the report beside the DB (copy_member_collisions.json). Without the report the channel isunscored.gapspasses when no edge goes from the member to a member of the missing name.deadpasses when a paragraph hasusage_status1, or when no edge of any kind points into a program or copybook member.file_edgesphantoms are now attributed to their horror. Horrors that have no issue (realism) are labelled as realism in the scorecard.tests/estate_crucible/test_estate_crucible_scorer.py: 5 unit tests for the above. The end-to-end test passes against a v0.4.0 checkout.Runtime code (
gitgalaxy/) is untouched.Scorecard on main
Engine
7d9f9ad40295vs estate-crucible key (generator {'version': '0.4.0', 'seed': 1, 'size': 'small'}).Per channel
Per horror
WS-EMP @28CALL ORDVAL @42; missing file_edgescall -> apps/ORDR/cobol/ORDVAL.cbl; phantom file_edgescall -> apps/ORDR/cobol/ORDV#OLD.cbl; fail deadprogram ORDVAL @2import edge -> apps/ORDR/cobol/ORDPRICE.cbl; fail gapscopy ORDPRICE @29; phantom copiesimport edge -> apps/SHIP/cobol/SHPRATE.cbl; fail gapscopy SHPRATE @14(+2 more)Outside the horrors (0 not passing)
Compared with v0.3.0 on the same engine
END name;(estate-crucible SPEC 3.1, Enterprise PL/I LR "Procedures"). That matches the engine's behaviour since COBOL/PL/I units run to the next header, not the last GOBACK/EXIT/RETURN (#4301, #4283) #4315.CALL 'ORDVAL'resolves toORDV#OLD.cbl, a stale member copy that still saysPROGRAM-ID. ORDVAL., and not toORDVAL.cbl.--copy-librariesdeclared, an unqualified COPY that no declared library holds falls back to the default resolver. That resolver picks the COBOL program of the same name (COPY ORDPRICE→ORDPRICE.cbl,COPY SHPRATE→SHPRATE.cbl).WS-EMPlayout, and the PAYMAIN nested-call cascade (H-0029).Checks
tests/estate_crucible: 18 passed (the end-to-end test was run withESTATE_CRUCIBLE_PATHset to a v0.4.0 checkout).mypy_audit --ci,ruff_audit --ci(ruff 0.16.0) anddead_key_audit --ci: no new findings. There are noerrors="replace"reads.Cross-repo
eb5cb36).../estate-crucibleneedsgit checkout v0.4.0for the end-to-end test to stop skipping.🤖 Generated with Claude Code
https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo