Ladder and scenarios

When a detector fires inside a sandbox session, the ladder answers with one rung. The rungs fire in a fixed order.

OrderRungWhat the agent is told
1nudgeStop and change approach
2sharper_promptThe exact stalled pattern, and not to repeat it
3smaller_subtaskDo only the work inside the stalled span first
4forkSplit the work into separate attempts and keep the one that progresses

A rung fires only after every lower rung has been tried for that stall, and a rung that has been tried never fires again for it. The ladder here ends at fork. The last rung, kill, belongs to arvin and is never built or called from this repository.

Scenarios

westering intervene --scenario <name> runs one scripted test agent in a local sandbox. Each agent stalls until it receives the rung it responds to, then recovers and finishes, except the agent of loop-never-clears, which responds to no rung and stays stalled. The table comes from running each scenario.

ScenarioStall shapecleared_byoutcome
loop-clears-on-nudgeloopingnudgecleared
loop-needs-sharperloopingsharper_promptcleared
loop-needs-subtaskloopingsmaller_subtaskcleared
loop-needs-forkloopingforkcleared
fixation-clears-on-nudgetool fixationnudgecleared
loop-never-clearsloopingnullstalled

The agent that never responds shows the whole ladder in order.

$ ./target/debug/westering intervene --scenario loop-never-clears | grep -E '"(at_step|rung|outcome)"'
      "at_step": 2,
      "rung": "nudge"
      "at_step": 5,
      "rung": "sharper_prompt"
      "at_step": 8,
      "rung": "smaller_subtask"
      "at_step": 11,
      "rung": "fork"
  "outcome": "stalled",

Session record

The session record is one JSON document. It carries the goal, every event the agent emitted, the detections that fired, one entry in interventions per rung with its step, message, and the detection that fired it, and the outcome. The README shows the full record for loop-clears-on-nudge. The same scenario always prints the same bytes.