Skip to content

fix: one-digit level numbers in the forge (#4626) and END PROGRAM extents (#4630) - #4643

Merged
squid-protocol merged 4 commits into
mainfrom
fix/4626-4630-level-numbers-end-program
Oct 7, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
fix/4626-4630-level-numbers-end-program

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4626. Fixes #4630.

Causes

Fixes

  • Forge: level regex takes 0?[1-9]; the level is normalised to two digits (1 -> 01), which render_schemas and the engine's records already assume.
  • Adapter: END PROGRAM lines are not code lines for unit extents.
  • Tests first (both failed before the fix): test_forge_reads_one_digit_level_numbers, test_translator_extent_stops_before_end_program.

Moved numbers (all via the repo tools: fact_crosscheck.py update, ground_truth_ledger.py update, refraction_differential.py --update-baseline for excerpts and --corpus for full)

  • fact_crosscheck_ledger.json: -20 entries (the 10 programs x engine/translator pair) and the translator-extent-over-end-program cause.
  • ground_truth_ledger.json: -158 forge mismatches (forge record fields got/tp 0 -> 158 on the estate) and the forge_one_digit_levels cause. The 20 deliberate orphaned_logic reports 100% dead code for five languages whose invocation model never names the callee — the family #2727 closed without covering #2806 entries stay.
  • refraction_differential_baseline.json: async estate unexplained 166 -> 0 in both excerpts and full (forge_flat_schema 158 gone); note updated. The cbsa excerpt entry_point 37 -> 38 also appears in the re-bless; it is a by_cause visibility count (does not gate, unexplained stays 0) and already reproduced on origin/main before this change, so it is drift unrelated to the fix.
  • Evidence report: --refresh produced no change. Golden masters: unmoved (no crucible regen needed).
  • estate4_async_creditcard.md ledger paragraph updated; D047 marked fixed.

Gates

pr_gates.py --fast 5/5, --ratchets 6/6 (ports, port-surface, estate, fact-crosscheck, completeness, ground-truth).

🤖 Generated with Claude Code

squid-protocol added a commit that referenced this pull request Oct 7, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 3 commits October 7, 2026 16:56
…ents (#4630)

- cobol_schema_forge reads 1 / 2 as 01 / 02 (0 -> 158 fields on the async credit-card estate)
- the referee translator adapter ends a lone program's last unit before END PROGRAM
- ledgers: -158 ground-truth forge entries, -20 fact cross-check entries, refraction baseline 166 -> 0

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… now reads its one-digit levels)

refraction_snapshot.py update --excerpts: only that estate moved -- 35 new schema files (its records
now have fields), its IR dumps, audit report and generated entities. No other estate changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol force-pushed the fix/4626-4630-level-numbers-end-program branch from 82864ba to de3d46d Compare October 7, 2026 20:56
…ard; DBB epscsmrd now has fields)

The forge reading one-digit levels also gives DBB Mortgage's epscsmrd record its fields (it was empty):
refraction_snapshot.py update --corpus dbb-mortgage-application cics-async-api-credit-card-application-example.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as ready for review October 7, 2026 21:19
@squid-protocol
squid-protocol merged commit 3eac283 into main Oct 7, 2026
32 checks passed
@squid-protocol
squid-protocol deleted the fix/4626-4630-level-numbers-end-program branch October 7, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant