Skip to main content

Module trial

Module trial 

Source
Expand description

A change of route or model that is kept only once the first turn on it has worked (spec section 7a.3, “Thinking blocks across providers”). A backend that is not Anthropic’s may refuse a history it did not write: a thinking block’s signature, an image it cannot read, a setting it does not take. Left alone, the agent is on a place that answers every turn with a 400. So a change starts a trial: the place the agent came from is kept, the first turn the relaunched harness runs decides it, and a request the new place refuses puts the agent back where it was and says why.

The trial is armed when the harness is relaunched on the new place (arm_for_block, from the persistent controller’s install of the new process, not from building its environment, which a message to a process that is already running does too): a turn that was still running on the old one when the change was recorded must not settle it. It is armed for that pane: an agent’s other panes, still on the old place, do not decide it. (A late frame of a process the pane has since replaced is dropped by the pane’s reader before it gets here.)

Structs§

Trial
A change waiting for its first turn.
Undone
A change that was undone.

Enums§

Verdict
What a turn’s end says about the change.

Constants§

TRIAL_TYPE
The definition content type that holds the Trial.
UNDONE_META_KEY
The block meta key the pane reads to say a change was undone and why; absent when none was.

Functions§

arm
The harness of the agent in pane block_id was relaunched on its recorded place. The latest relaunch is the pane that decides: one that was closed before its first turn cannot leave the change waiting for good.
arm_for_block
The persistent harness of pane block_id was started (a new process is installed): arms the trial of its agent, if one is waiting. A message that only reaches a process already running does not come here.
begin
A change from from to to was recorded. A trial that never got to run keeps the place the agent last worked on: it is not moved on by a second change, and a change back to it ends the trial.
pending
The trial of the agent definition def_id, if one is waiting.
settle
A turn of the agent in pane block_id ended with frame. When it settles an armed trial, the change stands (None) or is undone (Some: the record is back on the old place and the pane says why; the caller restarts the harness).
verdict
What the result frame that ends a turn says about the change.