Skip to content

docs: manual ABAP verification + no-comparison-tool sweep fallback - #1897

Merged
squid-protocol merged 1 commit into
mainfrom
docs/abap-manual-verification
Aug 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
docs/abap-manual-verification

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

  • ABAP is one of 5 languages with neither a tree-sitter grammar nor a ctags parser (the others: dockerfile, jcl, livecode, yaml), so tri-comparison-ledger-sweep's normal ledger-dispatch pipeline has nothing to work with for it.
  • Performed a manual, by-hand verification instead: GitGalaxy's func_start regex hits 100% precision/recall against an independent grep cross-check on abapGit's 7-file crucible corpus (124/124 real METHOD implementations, zero false positives). class_start's apparent DEFINITION+IMPLEMENTATION double-count per class turned out to match objective-c's own established @interface/@implementation convention already in this engine — not an ABAP-specific bug. Zero confirmed engine defects found.
  • Added docs/language_status/abap.md (sections 1-8 via the language-status skill, section 9 is the manual-verification writeup) and updated its row in docs/language_status/README.md.
  • Added a dedicated fallback section to .claude/skills/tri-comparison-ledger-sweep/SKILL.md documenting what to do for a language with zero comparison tools, so a future sweep doesn't spend a dispatch looking for ledger shapes that structurally can't exist for these 5 languages.

Test plan

  • Doc-only change (SKILL.md + language_status doc) — no code touched, ruff/mypy audits not applicable.
  • Verified func_start match counts against an independent grep on all 7 corpus files.
  • Cross-checked class_start's apparent double-count against objective-c's regex before concluding it's not a bug.

🤖 Generated with Claude Code

…allback

ABAP has neither a tree-sitter grammar nor a ctags parser, so the normal
tri-comparison-ledger-sweep methodology has nothing to dispatch -- the ledger
needs two tools disagreeing to produce a shape. Did a manual by-hand pass
instead: func_start hits 100% precision/recall against an independent grep
cross-check on abapGit's 7-file crucible corpus (124/124), and class_start's
apparent DEFINITION+IMPLEMENTATION double-count turned out to match
objective-c's own established @interface/@implementation convention, not an
ABAP-specific bug. Zero engine defects found.

Added docs/language_status/abap.md (sections 1-8 via language-status skill,
section 9 the manual verification writeup) and a dedicated fallback section
to tri-comparison-ledger-sweep's SKILL.md for the 5 languages with no
comparison tool at all (abap, dockerfile, jcl, livecode, yaml), so future
sweeps don't waste a dispatch looking for ledger shapes that can't exist.

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 d9f4002 into main Aug 20, 2026
28 checks passed
@squid-protocol
squid-protocol deleted the docs/abap-manual-verification branch August 20, 2026 03:28
squid-protocol added a commit that referenced this pull request Aug 20, 2026
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: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
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