Repository navigation
fix(docs): correct abap.md -- 2 real engine bugs found in ABAP, not zero - #1900
Merged
Merged
Conversation
The manual ABAP verification merged in #1897 tested func_start/class_start regexes directly against raw file text and concluded "100% precision, zero defects." That's true of the regexes in isolation, but skips prism.py's comment/code splitter and detector.py's segment-routing, both of which run before the regex sees real production input. Checking the actual galaxyscope pipeline output found two real bugs: - prism.py's _strip_positional_comments() reuses Fortran/COBOL's column-1 POSITIONAL_ANCHORS set ({"*","C","c","/","!"}) for ABAP, so every flush-left `CLASS <name> DEFINITION`/`IMPLEMENTATION` line (column 1 = literal "C") is erased into the comment stream before class_start ever runs. struct_class_start is 0 for every ABAP file in the corpus despite 6 real classes existing. Filed as #1898. - detector.py's ScopeParsingRegistry has no ABAP entry, so it falls through to brace-based function-body slicing even though ABAP has no braces (METHOD ... ENDMETHOD., not {}). Only 16 of 124 real methods survive into function_data/ function_count -- the ones that happen to sit near a stray brace-like character by coincidence. Filed as #1899. Rewrote abap.md's §9 to document both bugs with evidence and isolated repros, and updated tri-comparison-ledger-sweep's SKILL.md fallback procedure to require checking real galaxyscope/DB output (not just the raw regex) before concluding a zero-comparison-tool language's signature is correct -- the actual lesson this whole investigation surfaced. Also fixes .claude/settings.json's PreToolUse hook command to use $CLAUDE_PROJECT_DIR instead of a path relative to cwd -- it broke every Bash call this session after an incidental `cd` left the shell outside repo root. 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
Follow-up to #1897, which merged before I finished investigating why the tri-comparison chart shows
abapatFunctions Found: 16/Func Precision: 0/16. That #1897 write-up tested ABAP'sfunc_start/class_startregexes directly against raw file text and concluded "100% precision, zero engine defects." That's true of the regexes in isolation -- but the realgalaxyscopepipeline runs those regexes against text that's already passed throughprism.py's comment/code splitter anddetector.py's segment-routing, and skipping both hid two real bugs:prism.py's_strip_positional_comments()reuses Fortran/COBOL's column-1POSITIONAL_ANCHORSset ({"*","C","c","/","!"}) for ABAP, so every flush-leftCLASS <name> DEFINITION/IMPLEMENTATIONline (column 1 = literalC) gets erased into the comment stream beforeclass_startever runs.struct_class_startis 0 for every ABAP file in the corpus despite 6 real classes existing.detector.py'sScopeParsingRegistryhas no ABAP entry, so it falls through to brace-based function-body slicing even though ABAP has no braces (METHOD ... ENDMETHOD., not{}). Only 16 of 124 real methods survive intofunction_data/function_count.Changes
docs/language_status/abap.md§9 with both bugs, evidence tables, and isolated repros -- explicitly retracts the prior "zero defects" claim rather than silently editing it away.tri-comparison-ledger-sweep'sSKILL.mdfallback procedure (new step 2b): a zero-comparison-tool language's manual verification must check the actualgalaxyscope/DB output, not just the raw regex against text -- that gap is exactly what let these two bugs through the first pass..claude/settings.json'sPreToolUsehook to use$CLAUDE_PROJECT_DIRinstead of a cwd-relative path -- an incidentalcdmid-session left the shell outside repo root and broke every subsequent Bash call (including from a fresh subagent) until fixed.Test plan
gitgalaxy/code touched in this PR (the two bugs themselves are filed as issues, not fixed here).galaxyscope --db-onlyoutput on the abapGit corpus.🤖 Generated with Claude Code