Skip to content

ci: estate-crucible scorer as a ratcheted CI gate (#4317 phase 5) - #4446

Merged
squid-protocol merged 2 commits into
mainfrom
ci/4317-estate-gate
Oct 5, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
ci/4317-estate-gate

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Phase 5 of #4317: the estate-crucible scorer becomes a CI gate.

What

  • .github/workflows/estate-crucible.yml ("Estate Crucible"): clones squid-protocol/estate-crucible at PINNED_REF (sed on tests/_estate_crucible_pin.py, as that file's comment prescribes; modelled on cics-crucible.yml), installs the PR's engine, runs the gate. The estate-crucible repo is public: no token needed, fork PRs work.
  • tests/tools/estate_crucible_gate.py: scans + scores, then compares with tests/estate_crucible/baseline.json. Fails on a horror PASS->FAIL, a channel whose pass count drops (or fail/missing/phantom grows), any check that passed and no longer does, or a baseline from a different pin. Improvements do not fail; they are listed and the baseline is lowered with --update-baseline.
  • Baseline (5 KB, deterministic across two runs): per-horror verdicts, channel table, and only the non-passing checks. .gitignore gets an un-ignore line for it.
  • No scan cache: the scan is ~3 s (whole gate ~2 s locally), so the job is dominated by checkout and pip install.

Measured on main (8375678) vs v0.4.0

Horrors 60/60 PASS. Channels: all pass except call_sites 47 pass / 2 fail (cascade of H-0029: PAYMAIN.cbl CALL PAYCALC @42 and CALL PAYRPT @43, resolves_to engine None; these are depends_on H-0029, so the horror reads PASS). Unscored (no DB column): layouts 5, sql_statements 2, jcl_dds 11. Those 2 cascade fails are in the baseline, so they do not trip the gate. Worth a look: H-0029's cascade is still unresolved on main.

Local proof

  • Main: OK: horrors 60/60, no regression.
  • Key edit in a scratch crucible copy (ACCT.json: a H-0003 perform target renamed): exit 1, horror H-0003: PASS -> FAIL, edges pass 109->108. Also a unit start_line edit: exit 1 on units pass 136->135. Reverted both.
  • pr_gates: lint, audits, secrets, xray, gauntlet, golden pass; the suite has 11 failures, all tests/security_auditing/test_security_auditor.py (pandas/xgboost absent from the local venv), unrelated.

Tick the phase-5 box in #4317 after merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz

Adds the Estate Crucible workflow: clones squid-protocol/estate-crucible at PINNED_REF
(read from tests/_estate_crucible_pin.py), scans it with the PR's engine, and
tests/tools/estate_crucible_gate.py fails on any regression against the committed
tests/estate_crucible/baseline.json (horror PASS->FAIL, channel pass drop, a check that
no longer passes, or a baseline from a different pin).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
… timeout

The scan never imports gitgalaxy/tools/cobol_to_java or its controller, so those
changes (and Markdown) can't move the estate score. The job takes ~40 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VrujbRefDqQ8ptAwTBQTaz
@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