Skip to content

Define governed human-approval transaction and consumption protocol #19

Description

@samovers

Related to #10 and #11. This is a separate prerequisite before machine materialization or runtime implementation of interactive human approval.

Outcome

Define a governed transaction and consumption protocol that reconciles interactive human approval with transaction-bound, single-use authorization decisions without assuming an open database transaction across human think time.

Primary trust boundary

Runtime transaction coordination and consumption integrity: reservation/finalization boundaries, current-state revalidation, atomic decision/effect/evidence commit, concurrency, retry, and recovery.

Intended PR boundary

A separate non-authoritative Phase A runtime-integration candidate. It may consume the approved authorization semantics from #11 but must not change authorization eligibility, principal resolution, protected-effect domain mappings, database roles, transport-release authority, retention/key custody, or active/current schemas.

Acceptance criteria

  • Define where the approval challenge, explicit human act, final authority re-evaluation, decision creation, single-use consumption, protected-effect validation, and final commit occur.
  • Decide explicitly whether the lifecycle uses a two-phase reservation/finalization protocol or another bounded mechanism; do not leave an interactive database transaction implicitly open.
  • Define the authoritative transaction deadline and snapshot/cutoff inputs supplied to authorization without moving runtime ownership into authorization law.
  • Require final current-state revalidation after the human act and before effect commit, including principal/session, representation, grant, delegation, revocation, resource, evidence, policy, and approval state.
  • Define reservation ownership, expiry, cancellation, duplicate acts, concurrent consumers, idempotency, retry, crash recovery, and orphan cleanup.
  • Preserve atomic visibility of the protected effect, authorization evidence, finalization evidence, consumption record, and governed-effect receipt.
  • Define failure behavior for state drift, expired approval/decision, validation failure, persistence failure, and uncertain commit outcome without fabricating or rewriting an authorization result.
  • Identify the exact interface dependency on each separately owned protected-effect contract under Define protected-effect contracts for authorization-bound state changes #12 and Define final ReviewDecision protected-effect contract #15.
  • Add production-reachable hostile cases for concurrent approval/consumption, crash boundaries, retry after uncertain commit, and state change between challenge and finalization.

Non-goals

  • No change to authorization action meanings, outcome lattice, reason codes, or approver eligibility.
  • No protected-effect result mapping, Event Grammar classification, transport-release decision, retention/encryption/key-custody policy, database-role design, deployment, or production-readiness claim.
  • No implementation in OFARM2 until the governing contracts are accepted, promoted, and extracted.

Scope-expansion rule

If the protocol cannot close without changing authorization law or a protected-effect domain contract, stop before editing that boundary and open a linked prerequisite or amendment.

What is next: review the Phase A protocol boundary after #11's exact-head semantics are approved and before draft machine materialization.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions