Skip to content

fix(cobol): add cobol to class_start named-extraction allowlist - #1923

Merged
squid-protocol merged 1 commit into
mainfrom
fix/cobol-class-start-allowlist
Aug 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/cobol-class-start-allowlist

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Verification

  • Directly against the tri-comparison gatherer: GitGalaxy now finds 19/19 real classes across the cobol corpus, matching ctags exactly (was 0/19 before this fix).
  • tests/extraction/languages/test_cobol.py + test_cobol_strict.py: 144/144 pass.
  • Full tests/core_engine/ + tests/extraction/: 6747 passed, 2 skipped, 11 xfailed, 3 xpassed -- no regressions.
  • python tests/tools/crucible_check.py: full_precision PASS, zero_dependency PASS.
  • ruff_audit.py --ci / mypy_audit.py --ci / ruff format --check: clean, no new findings.

Test plan

  • Verified fix against real corpus via the tri-comparison gatherer (19/19, not just a synthetic fixture)
  • Full extraction/core_engine suite green
  • crucible_check.py differential scan clean (both venvs)
  • Baseline-gated audits clean

🤖 Generated with Claude Code

Closes #1858. cobol's own class_start regex already matches PROGRAM-ID/
CLASS-ID/INTERFACE-ID/FACTORY/OBJECT correctly and identically to
universal-ctags' independent reading (verified directly against real
corpus source, e.g. cics-banking-sample-application-cbsa/BANKDATA.cbl:35's
`PROGRAM-ID. BANKDATA.` -> "BANKDATA", matching ctags' own tag) -- the
match just never reached named-entity output because cobol was never
added to detector.py's _CLASS_START_NAMED_EXTRACTION_LANGS allowlist
(epic #1295). Not decided out like css/html, simply never in scope since
that epic's own verification method (tree_sitter_accuracy_audit.py)
requires a tree-sitter grammar cobol doesn't have; this one is verified
instead via docs/self_scan/tri_comparison_ledger.json's
cobol/class/existence/agree[ctags]_vs[gitgalaxy] entry against ctags,
already validated and credited to ctags in a prior sweep pending this fix.

Verified directly against the gatherer used by the tri-comparison chart:
GitGalaxy now finds all 19/19 real classes across the cobol corpus,
matching ctags exactly (was 0/19 before this fix). All 144 cobol
extraction/strict tests pass, full core_engine + extraction suite passes
(6747 passed), crucible_check.py clean on both full-precision and
zero-dependency venvs.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 75bfc09 into main Aug 20, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the fix/cobol-class-start-allowlist branch August 20, 2026 16:53
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.

Bug: cobol class_start never matches PROGRAM-ID in real corpus (0/19 real classes found)

1 participant