- provider-observed model-plane receipts remain authoritative for model Usage;
- the trusted capability and effect boundary remains authoritative for provider effects;
- the ActionApproval resource and responder decision remain the human-decision authority;
- Connection, Memory, Usage, Audit, export, retention, and other specialized aggregates retain their own lifecycle and authority.
Plain HTTP against the Checkfu API needs no private package.
The documented path is usable as written for an admitted Workspace.
Confirm capability status before making availability part of your application’s contract.
Event envelope
seq for ordering within one Session. Use id to deduplicate at-least-once delivery across consumers. The general write schema_version (currently 52) versions the envelope shape itself, independent of the dated wire version. Native event shapes retain their own versions:
session.admitted:54.- Native
run.createdwithoutcollaboration_space_id:46. - Native
run.createdwithcollaboration_space_id:53.
collaboration_space_id variants are read support for Runs admitted through an AgentPlacement, including Runs recorded by the managed chat-channel feature that Checkfu has retired. Existing logs that contain them stay readable. New Sessions created through POST /v1/sessions do not carry a space.
The writer chooses the version from the actual event shape; writers do not all advance in lockstep. A version number alone does not establish that an event shape is accepted. Stored event reads accept only the current event shapes and their shape-specific versions. Retired Checkfu event formats are rejected.
Provenance
provenance names who witnessed the fact. Every envelope returned by the list endpoint and the SSE stream carries exactly one of five values:
The
exec lane is realized by one event type today, exec.tool_invocation, in the event catalog below.
Provenance is a read-side projection derived from the event type. It is never persisted, and it can never change sequence ordering, idempotency, settlement, retention, or replay. The stored log remains the truth. An event type the current classifier does not recognize arrives as narration, so new additive types stay readable by consumers that predate them. narration also remains the default display projection: a Harness’s account of a turn is what you render, not the raw wire evidence beneath it.
Connected-runtime narration may additionally carry attested: true. That literal means the Session verified the batch’s detached Ed25519 signature against the runtime’s registered current key before appending it. It strengthens the harness’s self-report; it does not change its narration provenance into platform-witnessed wire or exec evidence. Unsigned connected batches remain valid and omit the field.
Presentation
presentation is a bounded product view derived from the canonical event and its provenance. It is never stored and never replaces type, payload, or provenance:
Every closed current event has an explicit decision. Unknown future types still arrive with their canonical envelope and a conservative diagnostic presentation, so a product feed never drops evidence it does not yet understand.
The SDK exposes the canonical iterator as
sessions.events.stream(...). When you want the ergonomic view, streamPresented(...) yields both values together:
Client drive events
Post one of these bodies to/v1/sessions/{id}/events:
user.messagesystem.messageuser.interruptuser.custom_tool_resultuser.tool_confirmationuser.question_answeruser.define_outcome
authored_by; client event bytes cannot select or override it. A direct client drive supplies caused_by: { "kind": "api" }, may add a 1–512 character caused_by.request_id for durable correlation, and may include a collaboration_space_id. That field is retained on the event but never grants access, Memory membership, a budget, or a scope. The accepted event retains the server-stamped author for audit and projection. A caller-selected authored_by is rejected as 400 validation.malformed.
An accepted drive event acknowledges input, not completed work. Follow the
recorded Run outcome. Matching question answers, approval decisions, and tool
results continue the original Run; waits and internal recovery do not create
a new public Run.
User message
400 validation.prompt_integrity_review_required without appending an event. Its typed error.review contains the pinned analyzer version, normalized text, and exact findings, so API and SDK callers never need to reimplement Unicode analysis. Review that challenge, then resubmit the original content with one explicit choice:
accepted_normalization to let the server replace mixed-script confusables and remove bidirectional controls, or preserved_original to send the reviewed source exactly. Do not send the already-corrected string with a disposition: the server rejects a choice when its own analysis finds nothing, preventing consent from being replayed against changed text. The returned user.message contains the effective content and a server-authored prompt_integrity receipt. Requests with no findings omit both fields.
An independent input or follow-up owns its own Run intent. While a Run is
active, supported steering contributes to that existing Run. Set
run_delivery: "next_run" to request separate work instead of steering; it may
remain queued after acceptance. Without that field, native mid-Run delivery
depends on the Run’s recorded capabilities.
Read the delivery and Run relationships in the log; run.input_delivered
acknowledges delivery, not completion.
connected_runtime belongs to connected Run admission; this route rejects a
user.message carrying it with 400 validation.malformed.
Interrupt the current turn
target_event optionally names an API-authored user.message. Before
consumption, cancellation withdraws only that input. After the target has
contributed to shared work, cancellation also interrupts the shared group;
consumed peers remain recorded as interrupted and are not automatically
replayed. Unrelated queued input remains available. An ID naming another kind
of event is 400 validation.malformed.
mode: "cooperative" asks the running work to drain and is honored only when
its recorded capability set realizes interrupt: cooperative. Observe the
accepted cancellation outcome. A cancellation request does not roll back
completed effects or prove every process has stopped.
Return a custom tool result
tool_use_id. It continues that
Run with your application’s result. An exact keyed replay returns the same
event; a conflicting result or stale wait is refused. Do not repeat an
external action merely because its result submission lost a response.
Confirm a tool action
result is allow or deny; only deny may include a non-empty
deny_message. tool_use_id identifies the exact current wait. The public
request does not accept session_thread_id or a caller-selected author.
ActionApproval policy and responder authority still apply. Approval grants
neither missing permission nor authority for changed arguments. Allowing a
governed Custom tool emits run.action_authorized; the original Run still
waits for the matching user.custom_tool_result.
Answer an agent question
question names
the active Question; answers must cover every item from its agent.question
exactly once, honoring each item’s allow_multiple. Partial, duplicate, and
unknown item IDs are rejected. A matching answer continues the original Run.
See ActionApprovals for review decisions.
Textual answers cross the same deceptive-Unicode boundary as user.message: a flagged value returns 400 validation.prompt_integrity_review_required, and the resubmission carries a payload-level prompt_integrity_disposition of accepted_normalization or preserved_original.
Define an outcome
user.define_outcome starts an outcome-driven Run from a pending or idle Session. Only one outcome may remain nonterminal at a time. max_iterations is optional and must be between 1 and 20. deliverables is optional and accepts 1–32 absolute paths; a zero-data-retention Workspace rejects outcome definitions that request deliverables.
Answering a parked run
A Run does not fail when it needs something from you. It parks. This is the loop most integrations have to implement, and it is driven entirely by events. When a Run needs an answer it emitsrun.requires_action and the Session moves to session.status_waiting. The payload carries run, attempt, cost, and an action that discriminates on kind:
action_approval.pending follows with the frozen decision context. A ToolInvocation ActionApproval carries the Connection, Tool identity, argument hash, and acting Principal:
The ActionApproval resource exposes these same frozen facts under different names:
context_summary and arguments_hash (see ActionApprovals). Event consumers match on frozen_context/arg_hash; REST readers match on the resource names.kind: "custom_tool" plus the exact Session, Run, tool-use ID, admitted Agent, logical harness tool, argument hash, and acting Principal. Its exact argument values remain in the preceding agent.tool_use event:
action_approval.resolved records the decision (approve or deny), the tool_use_id it answers, who resolved it, and any reviewer instructions. Custom-tool denials emit run.resumed and continue the original Run with the denial. A Custom-tool approval instead emits run.action_authorized; the same Run remains parked until the application submits its matching user.custom_tool_result.
For a connected Tool invoked through platform MCP, resolving ActionApproval records the decision without dispatching the operation or automatically resuming or creating a Run. Retry the identical original tools/call, preserving its original ToolInvocationId and the returned requestState where applicable. Checkfu rechecks current Connection, grant, policy, approval, and other required authority before execution. A completed identical retry is refused as already_executed rather than dispatched again.
Accepting the Custom-tool result continues the same Run. The accepted
user.custom_tool_result records the application result for the original
tool_use_id; an exact keyed retry returns the same event. Follow the Run’s
recorded outcome. An accepted response, an Agent message, or an idle event with
stop_reason: "requires_action" does not establish completion. A provider
effect receipt remains separate from both input acceptance and Run settlement.
See ActionApprovals for the review side of this flow.
Event catalog
Every event type the current contract can append. Consumers must tolerate unknown types: the catalog grows with the platform, and a new event type is not a breaking change.user.*
user.message: a human input; starts a turn (or steers a running one)user.interrupt: ends work without making the Session terminaluser.custom_tool_result: your app returning the result of a custom tool the Run parked onuser.tool_confirmation: allows or denies the exact current tool waituser.question_answer: answers one activeagent.questionand continues the original Runuser.define_outcome: attaches a rubric-graded definition of done to the next turn
system.*
system.message: mid-conversation system-privileged context appended beside the Agent’s frozen system prompt, which it never replaces. Unlike a title or the metadata bag, the content is the point — an agent that cannot read it is not steered by it — so the text lives in the event and is retained content like a user message (up to 8,192 characters). No instruction changes and no release hash moves. It is admitted only from a control-plane role, never a runtime credential, and only where the admitted model route can carry a mid-conversation system turn
agent.*
agent.message: the agent’s reply text (payload.contentis what you show users)agent.thinking: reasoning content, when the harness surfaces itagent.tool_use: the agent invoked a toolagent.tool_result: what the tool returnedagent.question: a structured request for ordinary human input: onequestionID and one to four uniquely identifieditems, each with boundedoptionsand single- or multi-value semantics. Prose that reads like a question stays an ordinaryagent.messageagent.subagent_started/agent.subagent_completed: a harness-internal subagent, observed but not governed
message.*
message.screened: a delivery screen passed or withheld an outbound agent message; screens never rewrite content
withheld_reason:
screen_block means the screen blocked delivery; screen_failed means a
screen failure withheld delivery under fail_closed. Passing verdicts omit
this field, and screened-message readback returns null for delivered messages.
The separate reason is bounded explanatory text, not a closed error-code enum;
do not classify a block or failure from that text or from the presence of a model route.
Historical verdicts may omit withheld_reason. Readback preserves its legacy
route-based interpretation for those records, but the original distinction
between a route-less block and a screen failure was not retained. That inferred
value is not evidence of the original outcome; inspect the source verdict before
using it for evaluation or automation.
flow_review.*
flow_review.requested: one passive post-settlement review was frozen for an Automation-origin Turnflow_review.started: the bounded evidence and one-attempt review lease were acquiredflow_review.completed: a cited typed report settled; it never changes the Outcome, delivery, or Session stateflow_review.unavailable: retained evidence or reviewer authority could not produce a report after the bounded policy
session.*
session.status_pending…session.status_canceled: the ten status transitions, including compute-closedsession.status_reconciling; see the state machinesession.admitted: admission settled, carrying the frozen release, requester, and (if installed) placementsession.forked: appended after the inherited source prefix as the forked Session’s first new event. Private alpha for committed-head, exact-at_event, and live-Checkpoint forks. Its payload namessource_session,through_event,through_sequence, the nullable targetcheckpoint, andmode: "event_log_rebuild" | "checkpoint_clone". A Checkpoint fork preserves the inherited log prefix and independently clones the provider snapshot; it never copies a live Run, lease, wait, or ActionApproval.session.updated: mount declarations changed at a turn boundarysession.title_updated: content-free{ present }marker for a material title projection changesession.metadata_updated: the correlation bag settles like a title — a content-free{ pairs }count of how many pairs the Session now carries. Keys and values are your text and never enter the logsession.resources_resolved: the exact revisions and trees this Run receivedsession.compacted: context was compacted; the log itself is never rewrittensession.context_condensed: a context-window boundary was recorded; later conversation rebuilds serve an elision marker plus the tail after it, and each boundary also projects into the optionalcondensationsarray ofGET /v1/sessions/{id}/ledgersession.capture_acknowledged: the platform accepted one bounded working-state capture, naming the capture sequence, the manifest digest, and the file countsession.budget_reached: one platform-witnessed fact in this Session for each reached applicable Budget cap generation, including an Agent-scoped Budget — the Budget id, the configuration version and limit that crossed, the priced metric, and the decided breach action. The durable generation is (budget id, limit, window start): raising the limit or a rolling-window reset starts a new generation, while pause/unpause and delivery retries never repeat the fact, so consumers dedupe on the globally unique event idsession.delivery_ambiguous: reserved by the built next-version Session delivery protocol for an outbound WebhookEndpoint POST whose acknowledgement may have been lost. The currently selected Session architecture does not emit it; the event names only structural delivery, endpoint, and event coordinates and is excluded from the webhook subscription catalog to prevent recursive deliverysession.archived: content-free marker that the Session left the working directory; its timestamp is the resource’sarchived_at(see Archive a session)
session.budget_reached announces the reached cap; it does not by itself identify the turn’s terminal state. With breach_action: "interrupt_turn", the active Run emits run.failed with error.type: "budget.exceeded", followed by session.status_failed with status: "failed", stop_reason: "error", and reason: "budget.exceeded". With breach_action: "pause_session", it emits run.canceled with reason: "budget.reached", followed by session.status_idle with status: "idle" and stop_reason: "budget_reached". A 429 budget.exceeded response alone proves neither transition; use the accepted Session events to observe the selected policy outcome.
A reached-cap event or terminal Run event does not acknowledge physical cleanup or final Usage, charge, or billing-delivery settlement. Those obligations can remain pending after execution stops; retries must reconcile the original obligation rather than dispatch replacement work.
watch.*
A Watch is a Session-owned subscription to external provider state.
watch.created/watch.updated/watch.removed: the Watch’s lifecycle, each naming thewatchwatch.woken: a verified change in the watched state admitted an ordinary next Run; carries thesource_state_hashthat settled the wakewatch.suppressed: a hint that woke nothing, withreason: duplicate | self_authored | stale_hint | unsafe_content
memory.*
memory.mount_resolved: the Memory mount admitted when the Session is initialized, naming the store, path,requestedaccess and clampedeffectiveaccess. Per-Run resolved resources are recorded separately insession.resources_resolved.memory.accessed: records a Memory read. Under standard retention it names the store, real MemoryVersion ID, method, and document paths and hashes. Under zero-data-retention it records mounted-store and document counts without store, version, path, or digest fields.memory.change_checkpointed: a settlement seal namingstore,working_ref,base_version,new_version,tree_hash,diff_hash, andchanged_paths. The version fields are realmemver_MemoryVersion IDs; the hash fields are content digests. Principal-owned working revisions remain isolated from canonical. The event carries metadata, never document bodies, and does not extend their retention.memory.proposal_created/memory.proposal_resolved: the shared-store review flowmemory.curated: a curation run landed curated contentmemory.redacted: an erasure, recorded as history rather than hidden
file_tree.*
file_tree.writeback_captured: the Session accepted one exact sealed changed manifest and entered compute-closed reconciliationfile_tree.writeback_started: the compute-free reconciler acquired the durable publication generationfile_tree.writeback_no_changes: a complete tree enumeration proved the mounted FileTree was unchangedfile_tree.writeback_succeeded: the owned branch, pull request, exact frozenbase_revision, published immutablerevision, capture retirement, and, when eligible, a reused Watch settledfile_tree.writeback_conflicted: the target, owned branch, or pull-request identity diverged; Checkfu did not force-push or retry over human workfile_tree.writeback_failed: strict capture, authority, provider, or publication failed rather than silently dropping edits
model.*
model.routed: which provider/model candidate answered this callmodel.usage_recorded: the authoritative token receipt for one model call
wire.*
wire.call: one gateway-witnessed model request and response, retained as evidence
{ source, content_digest, bytes }, where content_digest is a sha256:<hex> digest, so repeated history resolves to objects that already exist and only an operator can resolve one back to bytes. wire.call is evidence, not display: it sits in the ordinary Session sequence and appears in exports at its original position, but the Harness’s narration remains the conversational projection you render.
A zero-data-retention Workspace constructs no wire evidence at all. The missing wire.call events are the visible capability difference. Retained wire bytes also carry a mandatory 30-day absolute retention ceiling, even where the Workspace’s standard policy has no TTL at all; a shorter Workspace or wire_frame TTL still wins. After expiry the references remain structurally in the event, and resolving one returns 404.
exec.*
exec.tool_invocation: one governed ToolInvocation, settled and witnessed by the platform itself
tool_invocation_id, the associated resource identities and logical tool name, execution_backend (builtin, executor, or connector), disposition, an argument_fingerprint that hashes the canonical logical arguments rather than carrying them, and claim-to-settlement duration. connector means the pinned tool ran through the provider-neutral Integration Gateway; it does not identify the selected runtime adapter. No argument or result body ever appears, so unlike wire.call this event persists unchanged under zero data retention.
disposition is completed, denied, or indeterminate. At most two exec.tool_invocation events exist for one tool_invocation_id: the settlement, plus at most one later corrective event carrying upgrade: true, which marks an already-settled outcome indeterminate.
run.*
run.created: admission accepted work; carries the triggerrun.started: an executor actually beganrun.claim_denied: execution admission refused one Runner claim. The payload names the typedreason(placement conformance missing or not advertised by that Runner, allowlist security boundary unavailable, sandbox policy not admitted, workload review not current, CollaborationSpace not authorized, frozen admission no longer matching), the Environment’snetwork_mode, and whether the refusalsettledthe Run. A settled denial is followed byrun.failedwithpolicy.denied; an unsettled one leaves the Run queued for another Runner in the poolrun.start_timed_out: a claimed attempt missed its ready deadline and was requeued before it could startrun.attempt_requeued: a started attempt released its native Checkpoint and was replaced, without changing the customer-visible logical Run.recoveryis one-based and the current aggregate admits exactly one, so this appears at most once per Runrun.requires_action: parked on an approval, custom tool, Question, or outcome evaluation (seeaction.kind)run.action_authorized: a Custom-tool ActionApproval authorized customer execution; the same Run now awaits its exact application resultrun.resumed: the awaited action arrived; a continuation is executingrun.input_delivered: the harness answered a steeringuser.messagedelivered into the running turn, naming thateventand adispositionofdelivered,queued, orrefused. This record, not the transport acknowledgement, is the delivery authority:deliveredandqueuedfence the message to this Run, andrefusedleaves it to be promoted into the next onerun.lifecycle_hook: one reviewed sandbox lifecycle-hook command settled — phase, ordinal, exit class, duration, the declaredon_failure, and a bounded tail of its output; the event, not the Runner’s memory, is the settlement authority, so a failed verification hook is recorded rather than passed silentlyrun.completed/run.failed/run.canceled: terminal settlement; the usage receipt keys off this event
action_approval.*
action_approval.pending: a frozen call awaits a human decisionaction_approval.resolved: the decision, responder, and any instructions
outcome.*
outcome.evaluation_started: the grader began judging a settled revisionoutcome.evaluation_completed: the verdict, one of five results, with rationale and cost
span.*
Telemetry adapters mint their own span names, so span.<name> is an open family rather than a fixed list. Spans are best-effort telemetry and never carry enforcement meaning; a consumer that does not recognize a span type should ignore it.
List persisted events
limit defaults to 100. Values greater than 1000 are capped at 1000; zero, negative, fractional, or nonnumeric values return 400 validation.malformed. The response contains readable envelopes in data, content positions that cannot be produced in unavailable, and next_page. An unavailable entry names the original seq, content class, and shredded or zdr reason. A reviewed ZDR prompt may additionally expose only its analyzer version and author disposition, never the prompt, source digest, or findings.
This endpoint budgets a page by owned-log positions, not only readable events. A page can therefore have an empty data array and non-empty unavailable array. Its cursor is the last processed per-Session sequence number; continue until next_page is null.
Replay and follow over SSE
Last-Event-ID, or pass the same cursor as page:
CHECKFU_API_KEY and CHECKFU_WORKSPACE_ID come from
Get access; CHECKFU_SESSION_ID is the Session you are
tailing.
Reconnect after the connection closes or a network failure and provide the last fully processed sequence. Pull-driven backpressure keeps at most one internal page in flight for a stalled consumer; reconnecting from Last-Event-ID resumes from the durable log. The SDK rejects replayed or reordered durable sequences instead of yielding duplicates.
If retention or ZDR leaves unreadable positions before the next readable event, the server emits a cursor-neutral checkfu.cursor_gap control frame. The SDK stops with EventStreamCursorGapError, whose from, through, and next fields identify the omitted range. Record or resolve that omission through the paged event ledger’s unavailable entries before explicitly starting a new iterator from through; the SDK never skips evidence loss automatically.
Opt in to live previews
Repeatevent_deltas to request best-effort previews for the currently running turn:
agent.message emits event_start followed by content deltas. agent.thinking emits event_start only; its content remains available in the final durable event when the harness provides it. If the corresponding observation commits, the agent.message or agent.thinking envelope uses the same event ID, so a client can replace its preview with the committed result.
Preview frames carry no SSE id: line, no seq, and no provenance. They never advance Last-Event-ID, never appear in event lists or replay, and may be dropped for a disconnected or stalled consumer. A failed, interrupted, or lease-lost turn can leave a preview without a final event; discard unmatched previews when the turn settles. After a transparent SDK reconnect, the iterator yields { type: "preview_reset", reason: "reconnect" }; clear every unmatched preview before applying subsequent frames. A non-SDK client clears them at its observable HTTP reconnect. Always render the final durable event as authoritative. A DeliveryScreen agent does not expose agent.message previews because content has not yet passed its release-pinned screen.
Resolve retained wire content
application/octet-stream. This route is the only way wire material crosses HTTP, and it is deliberately narrow: the key must hold an admin or root role (anything else is 403 policy.denied), and the digest must be one the named wire.call event actually references. A digest that the event does not name, or whose bytes have passed their retention ceiling, is 404. There is no browsable index of retained content, and internal storage identifiers never appear on the wire.
Next steps
Resume a stream reliably
Handle disconnects, duplicates, and backpressure without losing or double-processing events.
Fold a session into named views
Fold the stream into named views: messages, tool calls, ActionApprovals, the subagent tree, and the context ledger.