Repository navigation
fix(cobol): add cobol to class_start named-extraction allowlist - #1923
Merged
Merged
Conversation
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]>
Contributor
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.
Summary
"cobol"todetector.py's_CLASS_START_NAMED_EXTRACTION_LANGSallowlist.class_startregex already matchesPROGRAM-ID/CLASS-ID/INTERFACE-ID/FACTORY/OBJECTcorrectly and identically to universal-ctags' independent reading -- the match just never reached named-entity output because cobol was never added to this allowlist (epic Extend #1264's per-language class_start named-entity extraction to the remaining 13 languages #1295). Not decided out like css/html, simply never in scope since that epic's own verification method requires a tree-sitter grammar cobol doesn't have; verified instead via the tri-comparison ledger'scobol/class/existence/agree[ctags]_vs[gitgalaxy]entry (already validated and credited to ctags in a prior sweep, pending this fix).Verification
tests/extraction/languages/test_cobol.py+test_cobol_strict.py: 144/144 pass.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
crucible_check.pydifferential scan clean (both venvs)🤖 Generated with Claude Code