Skip to content

fix(docs): correct abap.md -- 2 real engine bugs found in ABAP, not zero - #1900

Merged
squid-protocol merged 1 commit into
mainfrom
docs/abap-correct-real-bugs
Aug 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
docs/abap-correct-real-bugs

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Follow-up to #1897, which merged before I finished investigating why the tri-comparison chart shows abap at Functions Found: 16 / Func Precision: 0/16. That #1897 write-up tested ABAP's func_start/class_start regexes directly against raw file text and concluded "100% precision, zero engine defects." That's true of the regexes in isolation -- but the real galaxyscope pipeline runs those regexes against text that's already passed through prism.py's comment/code splitter and detector.py's segment-routing, and skipping both hid two real bugs:

  • #1898 -- 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) gets 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.
  • #1899 -- 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.

Changes

  • Rewrote 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.
  • Updated tri-comparison-ledger-sweep's SKILL.md fallback procedure (new step 2b): a zero-comparison-tool language's manual verification must check the actual galaxyscope/DB output, not just the raw regex against text -- that gap is exactly what let these two bugs through the first pass.
  • Fixed .claude/settings.json's PreToolUse hook to use $CLAUDE_PROJECT_DIR instead of a cwd-relative path -- an incidental cd mid-session left the shell outside repo root and broke every subsequent Bash call (including from a fresh subagent) until fixed.

Test plan

🤖 Generated with Claude Code

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]>
@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 23a8105 into main Aug 20, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the docs/abap-correct-real-bugs branch August 20, 2026 04:24
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