Repository navigation
Conversation
|
|
Speaking as Kun's firstmate: First stamp this fetch vs tip HEAD Tip vs main (own diff): writers emit Contract-class: restore — durable steering-inbox delivery already promised exact message bodies to workers; missing record terminator + line-loop drops broke that concrete path. VISION.md per-rule
Security: bin/tests only. Clean. |
|
Behavior portable serial 8 and Behavior portable serial 9 failed: remote seed did not provision the route. This PR touches only bin/fm-brief.sh, bin/fm-task-inbox-lib.sh, and their tests. GitHub requires repository admin rights to rerun these jobs; could a maintainer rerun both? @jcpoyser |
Intent
Diagnose and fix steering messages that a worker can miss because the message file has no final newline.
Context: a worker reportedly dropped single-line steering-inbox messages because its read loop ignored an unterminated final line, and a handled marker alone did not prove the content was read. This was not independently reproduced. The fix was approved on 2026-09-28 as: diagnose first, then fix with tests.
Bring this branch up to date with current main without force (merge, not rebase-and-force-push). Add the small check that stops safely when a message body is shorter than its recorded byte length (the Greptile P2 note), with a regression test. Validate through no-mistakes as before, keep the PR description and attestation intact (edit with gh pr edit --body-file only), and report when the PR is green again. This covers follow-up item fm-inbox-truncation-check.
What Changed
Risk Assessment
✅ Low: The change is limited to inbox record length tracking, safe body reads, and focused regression coverage; no material source defect was found.
Testing
The inbox tests completed successfully. The combined targeted-test command timed out while running the brief tests; rerunning that script separately completed successfully. Manual isolated checks confirmed the complete unterminated message was returned and a truncated body failed without partial output. No reviewer-visible file artifacts were produced.
fm_task_inbox_writeandfm_task_inbox_bodyexecution; output shown in “Isolated inbox read behavior”.fm_task_inbox_bodyexecution on a truncated record; exit status 1 and zero output bytes shown in “Isolated inbox read behavior”.Evidence: Isolated inbox read behavior
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
fm_task_inbox_writeandfm_task_inbox_bodyexecution; output shown in “Isolated inbox read behavior”.fm_task_inbox_bodyexecution on a truncated record; exit status 1 and zero output bytes shown in “Isolated inbox read behavior”.bash tests/fm-task-inbox.test.shbash tests/fm-brief.test.sh(rerun separately after the combined invocation timed out)Manually wrote and read a no-final-newline message throughfm_task_inbox_writeandfm_task_inbox_body, then attempted to read a truncated record.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.