Skip to content

docs(self-scan): link agc_assembly detector.py bug to filed issue #1949 - #1950

Merged
squid-protocol merged 1 commit into
mainfrom
docs/agc-issue-1949-backfill
Aug 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
docs/agc-issue-1949-backfill

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

  • The ledger verdict and language_status §9 for agc_assembly's 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.
  • The follow-up investigation confirmed both _slice_by_labels root 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.
  • Regenerated tri_comparison_points_of_interest.md.

Test plan

  • Docs-only change, no parsing-logic touched.

🤖 Generated with Claude Code

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]>
@squid-protocol
squid-protocol merged commit 4d4dcd3 into main Aug 20, 2026
2 checks passed
@squid-protocol
squid-protocol deleted the docs/agc-issue-1949-backfill branch August 20, 2026 19:23
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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]>
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