Repository navigation
docs(self-scan): link agc_assembly detector.py bug to filed issue #1949 - #1950
Merged
Merged
Conversation
Ledger verdict and language_status §9 were written before the issue existed (follow-up cross-language blast-radius check was still running). Backfills the #1949 reference and its broadened finding -- both root causes generalize beyond agc_assembly to the shared _slice_by_labels mechanism (assembly, cobol, fortran, abap), plus two further bug-1 variants (comment/identifier substring false-matches) found only by checking the sibling languages' real corpus source. Regenerated tri_comparison_points_of_interest.md. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
squid-protocol
added a commit
that referenced
this pull request
Aug 20, 2026
…cation badge (#1952) * fix(agc_assembly): real per-function args count + earn a manual-verification badge detector.py's generic args derivation does a single .search() (first match only) against each function body, then splits that one match's text on whitespace. AGC assembly's args regex only ever matches "EBANK=" (1 token) or "OPCODE<ws>REGISTER" (always exactly 2 tokens), so every function's args value was capped at a near-meaningless 0/1/2 regardless of how many registers it actually touched -- not a real argument count, closer to "does this function contain a recognizable calling-convention idiom at all". Adds _count_agc_register_args, wired into _slice_by_labels the same way ABAP's own _count_abap_declared_params overrides the generic derivation: counts the number of DISTINCT registers (A/Q/L/Z) referenced anywhere in the body via a real math/memory opcode (findall, not search-then-split), plus one more if an EBANK=/FBANK=/BBANK= bank-context assignment is present. Corpus-wide total moved 469 -> 296 (a real, varying per-function signal now, not three fixed buckets). Hand-verified against 5 functions across 4 files (see manual_verification.json's new agc_assembly.args entry for the full note). ctags emits no signature: field for Asm-parsed files, so this metric can never be cross-tool corroborated even though agc_assembly has real ctags coverage for func/class existence. Extends tri_comparison_chart.py's manual-verification badge mechanism (previously gated on "the whole language has exactly one tool") to also recognize this narrower, metric-specific case -- gated strictly on ARGS_GRANULARITY's "proxy"/ "program_level" categories, never the default per_function case where a missing second tool really would just mean "not yet compared". Chart now shows 296/296 (verified badge) instead of the old bare 469 proxy marker. Golden master fixtures re-blessed (tests/tools/update_golden_master.py, both full-precision and zero-dependency venvs) -- all 102 diffs traced to agc_assembly's Input Parameters values changing plus expected downstream ripple in the global 3D spatial normalization. crucible_check.py passes clean on both venvs; 785 tests pass (agc_assembly's own 231 + core_engine). Co-Authored-By: Claude Sonnet 5 <[email protected]> * docs(self-scan): regenerate points-of-interest report after rebase --ours conflict resolution during rebase onto main (PR #1950) left this generated report stale; regenerated fresh per the standard false-conflict resolution procedure. Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
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
agree[ctags]_vs[gitgalaxy]shape were written before issue detector.py _slice_by_labels: assembly_returns truncates real bodies, single-line blocks silently discarded (assembly/cobol/fortran/abap/agc_assembly) #1949 existed (the follow-up cross-language blast-radius check was still running in the background). Backfills the concrete issue number and its broadened finding._slice_by_labelsroot causes generalize beyond agc_assembly to the shared Mode A mechanism (assembly, cobol, fortran, abap), plus two further bug-1 variants (comment/identifier substring false-matches) only visible from the sibling languages' real corpus source.tri_comparison_points_of_interest.md.Test plan
🤖 Generated with Claude Code