spec(cave): define Phase 5 proposal lifecycle contract#16
Merged
Conversation
Bind Cave actions to daemon-owned lifecycle metadata, preserve daemon labels, and fail closed on unavailable, stale, mismatched, or unknown scheduling state. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Require daemon proposal revisions and canonical familiar UUIDs so Cave can fail closed on changed contents or mismatched identity before forwarding a decision. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Specify canonical SHA-256 proposal revisions and the exact snake_case-to-view mapping so Cave can verify inspected contents without inventing lifecycle semantics. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the Phase 4 Cave surface contract to incorporate a Phase 5 “scheduled proposal” lifecycle/approval metadata envelope that is owned by the daemon, while keeping Cave fail-closed and strictly forward-only for approvals/rejections.
Changes:
- Extends
ProposalViewwith a new daemon-derivedauthoritysection including lifecycle, approval path, affected regions, and available decision metadata. - Specifies a canonical
proposalRevisionverification algorithm and requires forwardingexpectedRevisionon manual decisions. - Defines a closed snake_case → kebab-case normalization table and explicitly prohibits generic case conversion or local lifecycle inference (including clock-based deadline handling).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+360
to
363
| - Body: | ||
| `{ "note": "optional principal note", "expectedRevision": "daemon-issued proposal revision" }`. | ||
| `expectedRevision` is mandatory for manual Phase 5 decisions. `readsJson: true`, | ||
| `invalidJson: "guarded"`. |
| | `veto_window_open` | `veto-window-open` | | ||
| | `ready_for_replay` | `ready-for-replay` | | ||
| | `blocked` | `blocked` | | ||
| | `approvalPath.veto_deadline` | `approvalPath.vetoDeadline` | |
This was referenced Jul 20, 2026
Closed
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
ProposalViewwith daemon-owned Phase 5 lifecycle, approval-path, region, and action metadataproposalRevisionandfamiliarUuidEvidence
b704acagit diff --checkcleanBead:
threads-uqx.7