Skip to content

hlasm: planned_debt/fragile_debt count full-line comments only (Part of #7064) - #7205

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7064-20261030T2212Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7064-20261030T2212Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7064. Checklist: partial [c:374fb3c9] -- Hyperion/MS-DOS/NASM trees not held; BAL/BALR/BASR to an in-file label (internal edge) left as a design decision.

What

The detector runs planned_debt / fragile_debt over the code stream as well as the comment stream, and hlasm bound the shared global patterns, so operand text counted as debt: DC CL3'xxx', a remark MESSAGE xxx, LOAD EP=BPX1GLG STUB LOADER (STUB is a system service). Measured on a 5-line file: planned_debt 1 / fragile_debt 4 before; only the * HACK line is debt. The probe recorded 121 such hits on the held emulator tree.

hlasm.py now wraps the same shared patterns (multilingual marker lists unchanged) behind a line anchor: a marker counts only on a line starting * or .*. One hit per comment line. Re-measure on the emulator tree: the xxx hits are gone; the remainder is real prose about a "bug" on * lines plus 1 planned_debt. Addendum 2026-10-30h in docs/language_status/hlasm.md.

Class / Sibling gaps

Class: a language profile binding the global debt rules, which the detector also applies to the code stream, so operand text is counted as debt. Handled here: hlasm planned_debt and fragile_debt (the two same-mechanism members). Sibling gaps (not done, not measured; no burned-estate program needs them): assembly and agc_assembly bind the same globals and may overcount operand text; BAL/BALR/BASR to an in-file label is an internal edge, unmodelled; DSP / MASM .mac have no owning language; Hyperion, MS-DOS and NASM trees are not held.

Evidence

  • test_hlasm_strict.py + test_hlasm_macro_uses.py: 400 passed (new: comment forms in upper/lower case and .*, operand/remark/stub text, marker on the next statement, indented *).
  • crucible_check.py --update --yes (via golden-lock): both fixtures "No drift detected" (the crucible holds no such hlasm text), so no golden change.
  • pr_gates --fast 9/9, --ratchets 9 pass / 0 skipped.

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 22:30
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 22:38
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant