Skip to content

Receipts & approvals ​

Every governed change in Hesper follows one shape:

proposed → approved → queued → running → verified — with refused, expired, cancelled, failed and unknown as distinct outcomes that never collapse into "done".

What approval binds ​

A proposal carries the exact tool, parameters, practice and operator, minted as a single-use confirmation. Double-confirming is impossible: the second submission resolves to the stored outcome — one write, one debit.

Request IDs ​

Each turn carries one stable requestId. The stream echoes it; every action in that turn reuses it; the receipt store keys on it. A lost response is recovered by looking the request up — never by replaying the write.

Reading an outcome ​

Server answerWhat the console shows
200 { success: true }Succeeded, with the read-back state.
200 { success: false }Rejected — the action could not be completed.
202Unconfirmed. Check the receipt before trying again.
401/403, action_deniedDenied — access changed before the action ran.
confirmation_expiredExpired — request a fresh proposal.
confirmation_requiredA fresh proposal and approval are required.

Native:

/receipt <requestId>

The outcome comes back from the same store the browser's Check receipt reads — a second client recovers the same truth.

Rollback ​

Rollback is offered only for an operation that supports it, with a valid receipt and inside its window. The console never invents a rollback the domain service does not have.

Hesper docs · version v0.1.152