Repository navigation
fix(relay): preserve unknown native outcomes during recovery - #214
Merged
Merged
Conversation
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.
Summary
Closes #201. Highest-priority v1.0.2 audit finding: a completed journal row with an unknown native result previously bypassed the recovery uncertainty gate.
requests.status == done.retryAllowed: falseis not delivery evidence.Type
Checklist
python3 cc_peer.py listworks locallypython3 cc_peer.py list --host <a real host>works over SSH--dry-runresolves a target without posting anythingThe unchecked native/SSH checks are outside this offline recovery change; no real messages or ACK requests were sent.
Verified against
macOS arm64, Python 3.14.7, websockets 17.1; worktree imports and temporary synthetic state.
-X dev -W error::ResourceWarning, including persisted-plan reopen and deeply malformed JSON.git diff --checkpasses.Notes
No automatic resend, receipt deletion, version bump, deployment or release. Tests verify archived receipts are unchanged and no new native request is created by reconciliation/activation.
Existing recovery plans are deliberately preserved when resumed; this change classifies newly created plans. Operators must audit older plans against archived receipts and explicitly reconcile incorrectly classified unknown items before activation. Already activated plans are not silently rewritten or revoked.