Repository navigation
Conversation
The two fixture appends used sed's a\ form with no trailing newline in the
script. BSD sed resolves that by gluing the next input line onto the appended
text, so the sshhip fixture lost its blank separator and the second append
merged "## Queued" into the unreadable-child item, dropping the section
header.
Replace both with awk '{print} /pattern/{print "..."}', which appends on its
own line under GNU and BSD sed alike.
|
Speaking as Kun's firstmate: Verdict: Diff reviewed (two contract-class: VISION: Honesty/scripts — aligns (portable fixtures). Authority/restart/spine/vendor — n/a or align. Scope — aligns (test hygiene). Attestation: MATCH |
What: fixture-only changes so upstream suites pass on a macOS operator host and in a live home: awk instead of BSD sed appends, a GNU stat shim (fm_fake_gnu_stat), FIFO gates instead of sleeps, PATH_MAX-aware paths, /tmp symlink canonicalization, APFS directory order, isolated dispatch credentials, scratch FM_HOME in spawn-batch and teardown cases, wider load bounds in two timing-sensitive cases. Carried until upstream: kunchenguid#5684 (issue kunchenguid#1242) covers the bearings fixture; the rest has no upstream PR yet. Sources: #108, #122, #139 and rebuild 53d6a4f.
Intent
The developer reproduced upstream issue #1242 and asked for its proposed fix to be sent as a pull request. On macOS the bearings snapshot test aborts partway through: two fixture appends in tests/fm-bearings-snapshot.test.sh use sed's a\ form with the appended text not terminated by a newline in the script, and BSD sed resolves that by gluing the input line following the match onto the appended text. In the sshhip fixture the first append consumes the blank separator and the second merges "## Queued" into the unreadable-child item, so the section header disappears. The issue body's own proposal, which the developer approved, replaces both appends with the portable awk form awk '{print} /pattern/{print "..."}', which appends on its own line under GNU and BSD sed alike. The change is deliberately limited to that one test file, with nothing under bin/, to keep the pull request lean. The developer also noted that the only comment on the issue is confusing; it is an automated triage stamp carrying no scope content.
What Changed
sedappend commands in the bearings snapshot fixture withawkline insertion.Risk Assessment
✅ Low: The change is narrowly scoped to replacing two non-portable fixture appends with portable awk commands and matches the stated intent.
Testing
The targeted snapshot test passed, and the evidence reproduces the BSD sed header-gluing failure while confirming the awk replacement preserves the section header. No runtime product surface changed.
Evidence: Bearings BSD sed validation
Source: Bearings BSD sed validation
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
/bin/bash tests/fm-bearings-snapshot.test.shBSD sed regression reproduction and awk replacement verification✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
Closes #1242