Repository navigation
feat(teardown): retain durable completion receipts including remote retirement - #10
bramdokman wants to merge 7 commits into
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing without merging: the captain decided to drop this change ahead of the upstream sync. The branch is left in place for reference. |
Supersedes #8 after its rebased head could not be admitted by validation custody bound to the original branch name. This replacement branch contains the same commits at head 20a369a; no published history was force-pushed or discarded.
Intent
Retain exactly one durable append-only typed completion receipt before teardown deletes volatile task evidence. Preserve the accepted schema and best-effort behavior: receipt failures warn but never weaken teardown safety, block cleanup, or strand work.
Remote retirement gap
The remote host-local path aimed its receipt at data inside the remote home, then removed that home before the write. The supervising parent also returned early without writing a receipt. This change makes the supervising parent the single owner of the remote secondmate receipt, writes it to the parent data ledger after remote retirement succeeds and before parent state is removed, records the real remote backend and a real dispatch timestamp, and delegates the host-local top-level receipt to prevent a second format or duplicate.
Evidence
remote retirement did not retain a parent-home completion receiptbefore the fix.rm: ... Directory not empty; it also has an intermittent pre-existing inheritance timing race. Firstmate explicitly classified both as unrelated and out of scope for this receipt task.bin/fm-test-run.sh tests/fm-teardown.test.sh tests/fm-spawn-dispatch-profile.test.shpasses.bin/fm-lint.shandbin/fm-doc-audience-check.shpass.This remains a write-only receipt change. It does not add a dashboard, database, query layer, or general remote-execution review.