Repository navigation
Conversation
), 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
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.
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
changelog.d/629.changed.md-- closes log() hot-path control-byte pre-check (#621) was abandoned, not implemented -- board should not read it as fixed #629 as already-correctly-documented (log() still forks tr unconditionally today; the optimization was never shipped).changelog.d/630.changed.md-- records the macOS CI landmine as documented rather than fixed.trap.d/630.macos-case-byte-range-silent-mismatch.md-- the discoverability artifact macos-latest CI: a bash case-pattern matching a real control byte silently failed to match, mechanism unknown, not reproducible locally #630 asked for: a bash case "$var" in [$'\xxx'-$'\yyy']) byte-range glob pattern silently failed to match a real control byte on every macos-latest CI leg while working log.sh control-byte flatten (#599) adds a tr fork to every log() call on the per-tool-call hot path #621, mechanism unknown, not reproducible locally. Nothing in shipped code uses this pattern any more, but it is a plausible thing to reach for again elsewhere in this codebase, and a case that fails to match raises no error -- silent at the shell level. Logged for the curation pass (/oss:curate) to weigh as a jit-context rule.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:
changelog.d/629.changed.mddescribed 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.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]