Skip to content

Add durable shared approval storage and atomic decisions - #523

Open
leprachuan wants to merge 2 commits into
codex/issue-520-autonomy-policyfrom
codex/issue-522-shared-approvals
Open

leprachuan wants to merge 2 commits into
codex/issue-520-autonomy-policyfrom
codex/issue-522-shared-approvals

Conversation

@leprachuan

Copy link
Copy Markdown
Owner

Multiple UIs must share one durable approval decision without duplicate execution. This adds isolated SQLite request storage bound to owner/responsibility/action fingerprint, idempotent creation, atomic first decisions, expiry/cancellation, owner-filtered event cursors, and single-use reservations that survive restart. Raw action arguments and secrets are not persisted.

Validation: 47 focused tests passed on dev 192.168.1.100 (23 policy + 24 approval), including concurrent decisions across three store connections, single-use claim races, restart, owner isolation, changed arguments, cancellation, expiry and private database permissions.

Stacked on policy foundation PR #521. Tracks Stage 2 issue #522 and umbrella #519; Stage 2 remains incomplete. No API/service/runtime behavior changes. Public API authorization, live event delivery, sanitized previews, always-allow JSON rule transactions, execution revalidation and all runtime boundaries remain disabled/unwired and are documented as the next slices. A reservation does not guarantee an external action occurred; uncertain outcomes require reconciliation.

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