Skip to content

Document #621's abandoned hot-path pre-check accurately, and record the macOS case/glob landmine - #644

Merged
fdaviddpt merged 3 commits into
mainfrom
fix/629
Sep 10, 2026
Merged

fdaviddpt merged 3 commits into
mainfrom
fix/629

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Closes #629, closes #630.

Both issues are record-keeping follow-ups to PR #627 (which itself closed #618, #620 and #621), self-filed by a previous tick's own review process. #621 had asked for an optional, cheap in-shell pre-check to gate scripts/log.sh's control-byte tr flatten on the per-tool-call hot path. Three attempts at that pre-check failed on CI and #627 abandoned the optimization, reverting to log()'s pre-#621 unconditional flatten.

What was checked before writing anything

Verified against the actual git history (git log on fix/620, gh-issue:621:full, gh-pr:627) rather than trusting the tracker: scripts/log.sh's own code comment on log() and CHANGELOG.md's existing 0.30.0 release entry for #621 already state accurately that the optimization was abandoned, not shipped. #621's own closed-issue state already carries a corrective comment pointing at #629 and #630 as the successor record. So no behavioural code change was warranted -- this pull request is documentation only.

What changed

Self-review

Two reviewer round-trips against the committed diff, both from spawned agents (Explore and oss:auditor). The auditor found nothing (four classes checked: absence-handling, guard coverage, untrusted-text handling all clean by direct read; the cross-platform band graded not-applicable since no code was touched). The Explore reviewer caught two real, low/medium-severity prose inaccuracies across two rounds:

  1. changelog.d/629.changed.md described a test-harness PATH-injection fix (commit 7a9069f) as "aimed at the still-red macOS leg" -- that commit's own message is unambiguously about a windows-latest/3.11 PATH-separator bug and says nothing about macOS. Fixed to say what the commit actually targeted.
  2. The same fragment then said "three attempts on that branch," contradicting scripts/log.sh's own comment ("tried twice... a two-attempt failure record") and CHANGELOG.md's existing log.sh control-byte flatten (#599) adds a tr fork to every log() call on the per-tool-call hot path #621 entry ("two portability attempts... a third round of unreproducible platform fragility") -- the exact authoritative sources the fragment claimed to be consistent with. Fixed to match that framing, quoting both sources.

Both findings were independently re-verified against the primary source commits (git log -1 --format=%B on the commits in question) before being accepted and fixed, not merely trusted on the reviewer's say-so.

No test

No behavioural code was touched -- only markdown fragments and a trap record -- so a red/green positive-control test does not apply here. Confirmed via python3 .oss/assemble_changelog.py --check (run after every write) that both fragments parse cleanly under this repo's real changelog-fragment checker, not just under pytest.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c

[AI-generated]

fdaviddpt and others added 3 commits September 10, 2026 10:29
), and record the macOS case/glob byte-range landmine (#630)

Both issues are record-keeping follow-ups to #627 (issues #618/#620/#621).
No behavioural code changes: `log()` already forks its `printf | tr`
control-byte flatten unconditionally (the pre-#621 shape #627 restored),
and #621's own closed-issue comment plus CHANGELOG.md's 0.30.0 entry
already state accurately that the optimization was abandoned rather than
shipped. Verified both are correct against the actual git history
(git log on fix/620, gh-issue:621:full, gh-pr:627) before concluding no
code change was warranted for #629.

#630 asks that the specific failure mode -- a case/glob byte-range
pattern silently failing to match a real control byte on macos-latest CI,
mechanism unknown, not reproducible locally -- be made discoverable
beyond a closed PR's history, since the pattern shape is a plausible
thing to reach for again anywhere in this codebase. Logged as
trap.d/630.macos-case-byte-range-silent-mismatch.md for the curation
pass to weigh as a jit-context rule.

changelog.d/629.changed.md and changelog.d/630.changed.md fragment both.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
…ws-latest, not macOS

Self-review (Explore reviewer against commit 157e3d5) caught that
changelog.d/629.changed.md's third pre-check attempt was described as
"aimed at the still-red macOS leg." The actual commit (7a9069f,
"fix(#621 test harness): stop injecting PATH via os.pathsep for Git
Bash") diagnoses and resolves a windows-latest/3.11-specific PATH
separator bug and says nothing about macOS; the macOS failure mode
stayed unexplained through that commit and into the next one. That
wording was inherited near-verbatim from #629's own issue body rather
than re-derived from git log, despite the previous commit message
claiming the history was verified. Corrected to say what the commit
actually targeted and that the macOS mechanism was left unexplained --
the distinction #630 exists specifically to keep from being blurred.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
…" framing exactly

Re-review (fresh Explore spawn against f4cbdab) caught that
changelog.d/629.changed.md said "three attempts on that branch," counting
the test-harness PATH-injection fix (commit 7a9069f, a fix to test
infrastructure, not to the pre-check logic) as a third attempt at the
pre-check itself. scripts/log.sh's own comment on log() ("tried twice...
a two-attempt failure record") and CHANGELOG.md's 0.30.0 entry for #621
("two portability attempts... a third round of unreproducible platform
fragility") both already draw this line correctly and were the exact
record this fragment claimed to be consistent with. Reworded to match
that framing precisely, quoting both sources, rather than leave a
contradicting count sitting beside the record it cites as authoritative.
Also cleans up an unrewrapped short line left by the previous fixup.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01P9WexZb39yUjQgJ53Zmf1c
@fdaviddpt
fdaviddpt merged commit 9a5e197 into main Sep 10, 2026
16 checks passed
@fdaviddpt
fdaviddpt deleted the fix/629 branch September 10, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant