Skip to content

test: pin estate-crucible v0.4.0 (phase 3, estate realism); score collisions, gaps, dead code - #4418

Merged
squid-protocol merged 1 commit into
mainfrom
test/estate-crucible-v0.4.0
Oct 5, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
test/estate-crucible-v0.4.0

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4317 (phase 3: estate realism).

What changes

  • tests/_estate_crucible_pin.py: PINNED_REF moves 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 come from the key. The scorer reads the manifest's copy_libraries (retired <APP>OLD libraries, per-program SYSLIB orders). Older keys still fall back to the naming-rule derivation.
    • New channels. copy_collisions is scored against the scan's copy_member_collisions. The master DB does not hold that report, so the scorer runs a second, --audit-only scan and keeps the report beside the DB (copy_member_collisions.json). Without the report the channel is unscored. gaps passes when no edge goes from the member to a member of the missing name. dead passes when a paragraph has usage_status 1, or when no edge of any kind points into a program or copybook member.
    • Explicit file_edges phantoms 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 7d9f9ad40295 vs estate-crucible key (generator {'version': '0.4.0', 'seed': 1, 'size': 'small'}).

Per channel

channel pass fail missing phantom unscored
programs 45 0 0 0 0
units 136 0 0 0 0
edges 109 0 0 0 0
call_sites 46 3 0 0 0
copies 63 0 0 3 0
data_items 446 3 0 0 0
layouts 139 4 0 0 5
sql_statements 5 0 0 0 2
sql_tables 2 0 0 0 0
jcl_steps 22 0 0 0 0
jcl_dds 33 0 0 0 11
screen_fields 16 0 0 0 0
csd_resources 18 0 0 0 0
transactions 6 0 0 0 0
cics_resources 7 0 0 0 0
jcl_datasets 33 0 0 0 0
file_control 9 0 0 0 0
entry_points 45 0 0 0 0
file_edges 23 0 1 1 0
data_moves 132 0 0 0 0
copy_collisions 9 0 0 0 0
gaps 14 3 0 0 0
dead 10 1 0 0 0
total 1368 14 1 4 18

Per horror

horror issue verdict checks not passing
H-0001 #4300 PASS 16
H-0002 #4301 PASS 27
H-0003 #4302 PASS 4
H-0004 #4303 PASS 7
H-0005 #4304 PASS 8
H-0006 #4305 PASS 12
H-0007 #4306 PASS 13
H-0008 #4307 PASS 2
H-0009 #4329 PASS 4 ; cascade: 2 check(s) elsewhere
H-0010 #4330 PASS 9 ; cascade: 4 check(s) elsewhere
H-0011 #4331 PASS 5
H-0012 #4332 PASS 16
H-0013 #3244 PASS 7
H-0014 #3348 PASS 15
H-0015 #3365 PASS 13
H-0016 #3414 FAIL 6 fail layouts WS-EMP @28
H-0017 #3416 PASS 4
H-0018 #3417 PASS 63
H-0019 #3418 PASS 1
H-0020 #3419 PASS 1
H-0021 #3420 PASS 2
H-0022 #3533 PASS 8
H-0023 #3533 PASS 3
H-0024 #3616 PASS 4
H-0025 #3694 PASS 4
H-0026 #4026 PASS 1
H-0027 #4031 PASS 1
H-0028 #4203 PASS 14
H-0029 #4242 PASS 1 ; cascade: 2 check(s) elsewhere
H-0030 #4246 PASS 6
H-0031 #4243 PASS 17
H-0032 #4264 PASS 1
H-0033 PASS 5
H-0034 #4265 PASS 10
H-0035 #3816 PASS 8
H-0036 #3816 PASS 4
H-0037 #3534 PASS 5
H-0038 #3956 PASS 7
H-0039 #3520 PASS 25
H-0040 #3955 PASS 14
H-0041 #3991 PASS 11
H-0042 #3816 PASS 21
H-0043 #3942 PASS 17
H-0044 PASS 5
H-0045 #3987 PASS 6
H-0046 #3878 PASS 10
H-0047 PASS 3
H-0048 #3649 PASS 3
H-0049 #4205 PASS 3
H-0050 realism FAIL 7 fail call_sites CALL ORDVAL @42; missing file_edges call -> apps/ORDR/cobol/ORDVAL.cbl; phantom file_edges call -> apps/ORDR/cobol/ORDV#OLD.cbl; fail dead program ORDVAL @2
H-0051 realism PASS 8
H-0052 #4265 PASS 71
H-0053 realism FAIL 15 phantom copies import edge -> apps/ORDR/cobol/ORDPRICE.cbl; fail gaps copy ORDPRICE @29; phantom copies import edge -> apps/SHIP/cobol/SHPRATE.cbl; fail gaps copy SHPRATE @14 (+2 more)
H-0054 realism PASS 30
H-0055 realism PASS 10
H-0056 realism PASS 11
H-0057 realism PASS 21
H-0058 realism PASS 20
H-0059 realism PASS 14
H-0060 #4391 PASS 4

Outside the horrors (0 not passing)

Compared with v0.3.0 on the same engine

Checks

  • tests/estate_crucible: 18 passed (the end-to-end test was run with ESTATE_CRUCIBLE_PATH set to a v0.4.0 checkout).
  • mypy_audit --ci, ruff_audit --ci (ruff 0.16.0) and dead_key_audit --ci: no new findings. There are no errors="replace" reads.

Cross-repo

  • Companion: squid-protocol/estate-crucible v0.4.0 (pushed to main and tagged; CI green on eb5cb36).
  • Merge order: the crucible tag already exists, so this PR can merge on its own.
  • After merge: the pinned checkout at ../estate-crucible needs git checkout v0.4.0 for the end-to-end test to stop skipping.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant