Repository navigation
Description
Outcome
Multiple authorized clients can control the same server-owned session and recover a lost command decision without canceling the wrong run, overwriting newer pending input, or becoming exclusive controllers.
Parent: #2659.
Scope
Integrate accepted prompts, source-scoped steering/input revisions, exact-run cancellation, shared asks/resolutions, and bounded API command receipts through the coordinator. Keep unsent drafts client-local, submitted pending state server-owned, and client disconnection distinct from cancellation. Route non-loop mutations through the same accepted-state authority.
Acceptance
- At most one active run is admitted; competing ordinary prompts do not silently become steers/queued input.
- Pending input set/replace/retract/consume is revision-bound; stale edits conflict and consumption cannot erase a newer replacement. Exact-run input never silently retargets.
- Lost-response retries recover the original authorized decision/target under bounded identity/receipt retention; conflicting, expired, or retired identities do not become fresh commands.
- Every retry/control attempt is authorized; concurrent approval answers yield one committed authoritative resolution and cannot bypass final execution admission.
- Cancellation acknowledgement means accepted/signaled, not completed termination or rollback. Input promotion/retraction behavior distinguishes normal completion, user cancellation, and failure/owner loss.
- Restart/owner-change tests reconstruct pending state, eligible receipts, and monotonic retirement cutoffs before admitting new mutations.
- Server and actual SDK/client flows cover shared access, stale state, reconnection, and compatibility/capability handling without execution on passive hydration.
- Identity-bearing client/API flows supply and preserve verified prompt/control submitters and approval principals through asynchronous handoffs, keeping them distinct from the session owner/action principal. Coordinate the authority/provenance contract with Preserve authorization and disclosure gates in the production kernel #2670; missing provenance stays explicitly unknown rather than being inferred from session ownership, logical Actor, or diagnostic writer-instance ID.
- Revisit caller-identity capture/preservation during client/API integration planning, or earlier if an execution consumer needs it. Further postponement records its reason and next revisit trigger here and remains coordinated with Preserve authorization and disclosure gates in the production kernel #2670; unknown provenance is not treated as verified caller authority.
Dependencies and boundaries
Build on session/coordinator and production ownership; coordinate exact asks with governance and read models with the authorized reload story. Plan concrete command/revision/receipt interfaces and remaining framing questions before implementation. No universal jobs service, new exclusive-controller model, unrestricted receipt retention, or later fork/rewind/cross-run background capability.
Following closure of the passive-session story #2663, #2670 owns the deferred authority/provenance contract; this issue owns verified prompt/control/approval identity supply and preservation. Representation and implementation timing remain for scoped planning. Resolve the necessary identity capture before identity-bearing production capture or authorized controls rely on it. The gap register retains the deferred cases, including distinct owner, actor, and approver and asynchronous handoffs.
Design context: commands and lifecycle.
Activity