Skip to content

PL/I: a unit with no labelled END stops before its sequence-only tail - #9232

Open
squid-protocol wants to merge 8 commits into
mainfrom
pli-seq-tail
Open

squid-protocol wants to merge 8 commits into
mainfrom
pli-seq-tail

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

A PL/I procedure closed by a bare END;, or run into the next header, took the lines that hold only a columns 73-80 sequence number, so its end line ran past its last statement. The unit now ends at its last line with content, using the engine's own blank_sequence_fields. Trailing comments stay with the unit.

Why it matters

Found by the DSF answer-key review (#9216): the key ends a unit at its last code line and the engine did not. The engine's end lines feed unit extents, line counts and the function-level metrics, so a wrong end shifts all of them for every sequence-numbered PL/I member (the norm for code pulled from a PDS).

Effect

  • DSF answer-key ledger: 48 of 50 unit-extent mismatches clear. One pair is left, a comment block written above the next procedure; whether header comments belong to the unit above or below is a design question, now stated in the cause text.
  • Golden masters: re-blessed through golden-lock.sh + crucible_check.py --update --yes. Only two DSF PL/I files (R0010422, R0010424) and their directory-group totals move, in both legs; the check run before the bless showed exactly those 34 differences and nothing else.
  • Tests: test_pli_unit_end_sequence_tail_4300.py (bare END, labelled END, trailing comment kept, no-sequence source unchanged, last unit of a file).

Checks

ground_truth_ledger.py check clean; tests/cobol_mainframe plus the PL/I engine tests: 11,305 passed.

Fixes the engine half of #4300 for PL/I.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem

squid-protocol and others added 3 commits November 24, 2026 13:59
…tail

A PL/I procedure closed by a bare `END;` (or run into the next header) took the
lines that hold only a columns 73-80 sequence number, so its end line ran past
its last statement: 16 of the 25 mis-ended DSF procedures in the answer-key
ledger. The unit now ends at its last line with content, using the engine's own
sequence-field blanking. Trailing comments stay with the unit (separate
question; the key ends a unit at its last code line).

Golden masters re-blessed through golden-lock + crucible_check --update: only
two DSF PL/I files (R0010422, R0010424) and their directory-group totals move,
in both legs. The ledger entries this clears are re-measured after #9216 lands.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
…ed; header comments left)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 19:31
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 24, 2026 19:35
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 24, 2026
squid-protocol and others added 2 commits November 24, 2026 14:49
…merged engine)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
…equence-tail fix)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (544e6ba) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 24, 2026 19:52
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 24, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 24, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review November 24, 2026 20:12
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 20:12
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 24, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 24, 2026 20:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 24, 2026
squid-protocol and others added 2 commits November 24, 2026 15:55
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 01:38
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 01:39
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 01:47
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 01:48
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 01:52
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 01:59
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 02:02
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 02:04
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 02:11
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 02:11
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 05:31
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 05:31
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 05:34
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 05:34
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: shepherd:merge was added by @squid-protocol, who has no write access to this repository, so it was removed. Maintainers set these labels (docs/ci.md).

This branch has not been deployed

No deployments
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