Browse the documentation
CAP-06: Tool-call approval decisions
- ID:
CAP-06 - Title: Tool-call approval decisions
- Lead:
seed - Touches:
bloom,drosera - Horizon:
next - Milestone:
M3(CAP-06.1ships atM3;CAP-06.2toCAP-06.4ship atM4) - CLI phase:
P4 - Status:
proposed - Claim:
planned - Depends on:
CAP-03,CAP-04
Why
docs/contracts/run-model.md defines the waiting_for_owner status and rule 5 (“the gate binds to the digest”), and docs/contracts/tool-id.md defines effect classes and ownerGate / thirdPartyEgress flags. However, seed does not yet define the owner-gate decision record, which decision kinds are valid for each effect class, how owner edits or text responses return to a run, or how deferred pauses fail closed on resume.
What it does
CAP-06 specifies the digest-bound owner-gate decision contract in seed, metadata alignment in drosera, and the interactive approval flow and trace events in bloom:
- Owner-gate decision record (
CAP-06.1atM3):{ callId, toolId, argsDigest, decision, editedArgsDigest?, reason?, decidedAt }callId: non-empty identifier matching the pending deferred call on the active attempt.toolId: well-formed neutral tool ID matching the pending intent.argsDigest: 64-hex SHA-256 digest of the canonical pending arguments. Any change totoolIdorargsDigestvoids the decision (run-model.mdrule 5).decision: one of"approve","edit","reject", or"respond".editedArgsDigest: required 64-hex SHA-256 digest whendecision === "edit", refused on all other decision kinds.reason: optional non-empty string explaining a rejection or holding the owner’s reply text for"respond".decidedAt: ISO-8601 UTC timestamp string recording when the owner decided.- Plan-digest binding (folded from
CAP-07.3intoCAP-06.1): the owner-gate decision contract also supports plan approval records bound to a canonical 64-hex SHA-256planDigest(CAP-07depends onCAP-06.1), failing closed whenever a plan edit altersplanDigest.
- Effect and third-party egress allowances (
CAP-06.1atM3):readtools withthirdPartyEgress: falserun freely inside the attempt’s admittedallowedToolsand declared sandbox scopes without pausing (ownerGatefalse), except where an explicit override of a denied secret path (CAP-05, pendingD10) requires a per-callCAP-06.1owner approval record.writetools allow all four decisions:approve,edit,reject, andrespond.destructiveandcredentialtools allowapprove,edit, andreject, and disallowrespond: an owner reply cannot stand in for or spoof a destructive or credential action.- Any tool with
thirdPartyEgress: truealways pauses at the owner gate (ownerGate: true), even when itseffectisread.
- Handling
editandrespond:- On
edit, the owner-supplied replacement arguments are validated against the tool’sinputSchema(CAP-03) before execution, a new intent is recorded witheditedArgsDigest, the originalargsDigestremains linked on the decision record, and the model is explicitly informed that owner-edited replacement arguments executed. - On
respond, the tool is not executed; the owner’s text is delivered back to the model explicitly labeled as owner input rather than tool output. - On
reject, the tool does not execute and the run records the denial (gate-deniedwhen halting a step, or explicit refusal feedback per objective policy).
- On
- Deferred calls and fail-closed resume:
- A run entering
waiting_for_ownerrecords typed deferred calls across three pause kinds:approval(gated tool call),question(clarification request to the owner), andexternal(external callback or asynchronous handoff awaited outside the process). - Transitioning from
waiting_for_ownerback torunningfails closed unless every pending deferred call has a matching, valid decision record bound to its exactcallId,toolId, andargsDigest(and obeying the effect/egress decision table). Missing, mismatched, or stale decisions keep the run paused or move it tostopping.
- A run entering
Contract touchpoints
seed:docs/contracts/run-model.md(owner-gate decision record shape including call and plan-digest binding forCAP-07, deferred call kindsapproval/question/external, fail-closed resume rule);docs/contracts/tool-id.md(effect andthirdPartyEgressdecision allowances, mandatoryownerGateon third-party egress).drosera:docs/contracts/tools.md(face metadata alignment forownerGate,effect, andthirdPartyEgress).bloom:docs/architecture.md(owner prompt/UI decision flow,editre-validation and model notice,respondowner-input labeling, permission events).
Tool IDs and events
Tool IDs
None defined by this capability.
| Tool ID | Effect | Third-party egress | Owner gate | Summary |
|---|
Events
| Event | Emitter | Payload summary |
|---|---|---|
permission.requested |
bloom |
Emitted when a deferred approval, question, or external call pauses the run at waiting_for_owner, carrying callId, toolId, argsDigest, effect, and thirdPartyEgress. |
permission.resolved |
bloom |
Emitted when an owner decision (approve, edit, reject, or respond) resolves a pending callId, recording decision, digest match, and outcome before resume. |
Acceptance tests
digest-mismatch-voids-approval: ChangingtoolId,argsDigest, or boundplanDigestafter anapprovedecision is recorded causes resume fromwaiting_for_owneror plan execution to fail closed without running the tool or plan.destructive-and-credential-disallow-respond: Submittingdecision: "respond"for adestructiveorcredentialtool is refused by validation, whilewritetools permit all four decision kinds.third-party-egress-always-gates: Areadtool withthirdPartyEgress: truepauses atwaiting_for_ownerand requires an owner decision before execution.edit-revalidates-and-informs-model: Aneditdecision validates replacement arguments againstinputSchema, verifieseditedArgsDigest, records the updated intent, and informs the model that replacement arguments ran.respond-marks-owner-input: Aresponddecision skips tool execution and injects the owner’s response marked explicitly as owner input rather than tool output.deferred-calls-fail-closed-on-resume: Runs paused onapproval,question, orexternaldeferred calls refuse transition back torunningif any required decision record is missing, malformed, or unbound.bloom-emits-permission-events:bloomemitspermission.requestedon pause andpermission.resolvedupon owner resolution with matchingcallIdand correlation IDs.
Slices
CAP-06.1(seed, milestoneM3, statusproposed): Define owner-gate decision record validation, plan-digest binding (folded fromCAP-07.3, soCAP-07depends onCAP-06.1), call-digest binding, and effect/egress decision allowances inseed.CAP-06.2(seed, milestoneM4, statusproposed): Define deferred call states (approval,question,external) and fail-closedwaiting_for_ownerresume checks inseed.CAP-06.3(drosera, milestoneM4, statusproposed): Aligndroseraface metadata checks withownerGate,effect, andthirdPartyEgressrules.CAP-06.4(bloom, milestoneM4, statusproposed): Implement approval CLI/UI flow,editre-validation and model disclosure,respondowner-input labeling, andpermission.requested/permission.resolvedevents.
Non-goals
- Persisting approval policies across runs (“always allow” wildcard grants) without an explicit future capability and owner decision.
- Letting any model output, specialist verdict, or memory recall record satisfy an owner gate.
Family rules and conflicts
- Owner is the only gate authority: Neither
aestivationreview verdicts normyosotismemory entries can ratify or bypass an owner gate (CAP-07cross-check). - Receipts over self-report: Approval applies only to the exact
argsDigestorplanDigestpresented; edited arguments or edited plans re-enter schema validation and intent or gate recording before execution.
Open owner decisions
- D14 (
CAP-06.1atM3withCAP-07.3folded in, pending owner ruling): Under review conventionD14,CAP-06.1ships atM3(covering plan-digest binding folded fromCAP-07.3, soCAP-07depends onCAP-06.1), whileCAP-06.2throughCAP-06.4ship atM4(P4). Kept unless overridden by the owner. - D10 (secret-file deny list override, pending owner ruling): Under
CAP-05, the secret-file deny list stays always on and symlinks are not followed by default; an explicit include of a denied path requires a per-callCAP-06.1owner approval record. - Terminal approval prompt UX for
CAP-06.4(pending owner decision, not yet numbered): pending owner rulings forbloomCLIP4approval prompts and terminal gate UX details.
Evidence
None yet. Capability is proposed with claim planned.
Changes
2026-11-23: SeparatedCAP-06.4terminal approval prompt UX into an unnumbered open owner question distinct fromD12and removed the review-prompt label fromD14(CAP-01.2).2026-11-23: MovedCAP-06.1toM3withCAP-07.3plan-digest binding folded in (CAP-07depends onCAP-06.1), assignedM4toCAP-06.2..CAP-06.4, and aligned open owner decisions withD10andD14.2026-11-23: Initial capability specification created (CAP-01.2scaffold).