Skip to content

feat(teardown): retain durable completion receipts including remote retirement - #10

Closed
bramdokman wants to merge 7 commits into
mainfrom
fm/fm-teardown-completion-receipt-v2
Closed

bramdokman wants to merge 7 commits into
mainfrom
fm/fm-teardown-completion-receipt-v2

Conversation

@bramdokman

Copy link
Copy Markdown
Owner

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

  • Fail-first: the remote lifecycle test reached retirement and failed with remote retirement did not retain a parent-home completion receipt before the fix.
  • After the fix, every remote lifecycle product assertion passes, including exactly one typed parent-home receipt with secondmate identity, Herdr backend, spawn timestamp, completed terminal outcome, and retired delivery outcome.
  • The lifecycle fixture then exits during its pre-existing cleanup race with 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.sh passes.
  • bin/fm-lint.sh and bin/fm-doc-audience-check.sh pass.

This remains a write-only receipt change. It does not add a dashboard, database, query layer, or general remote-execution review.

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a085f50c-8f27-4911-8286-bbe3e6e4796b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bramdokman

Copy link
Copy Markdown
Owner Author

Closing without merging: the captain decided to drop this change ahead of the upstream sync. The branch is left in place for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant