107 lines
5.3 KiB
JSON
107 lines
5.3 KiB
JSON
{
|
|
"schema": "paperclip.prp.fixture.v1",
|
|
"fixtureVersion": 1,
|
|
"protocolVersion": 1,
|
|
"name": "Failed run",
|
|
"description": "The driver reports an item and turn failure before the run terminalizes.",
|
|
"identity": {
|
|
"schema": "paperclip.prp.identity.v1",
|
|
"companyId": "company_replay",
|
|
"issueId": "issue_replay_failed",
|
|
"runId": "run_replay_failed",
|
|
"environmentLeaseId": "lease_replay_failed",
|
|
"runnerInstanceId": "runner_replay",
|
|
"normalizedSessionId": "session_replay_failed",
|
|
"driverSessionId": "driver_replay_failed"
|
|
},
|
|
"capabilities": {
|
|
"schema": "paperclip.prp.capabilities.v1",
|
|
"sessionReusePolicy": "new_per_run",
|
|
"driver": { "kind": "fake", "version": "1.0.0" },
|
|
"steer": true,
|
|
"interrupt": true,
|
|
"resume": true,
|
|
"runtimeRequests": true,
|
|
"structuredResult": true,
|
|
"typedEvents": true
|
|
},
|
|
"commands": [
|
|
{
|
|
"schema": "paperclip.prp.command.v1",
|
|
"commandId": "command_failed_prepare",
|
|
"controllerSeq": 1,
|
|
"type": "run.prepare",
|
|
"issuedAt": "2026-08-07T12:10:00.000Z",
|
|
"payload": {}
|
|
},
|
|
{
|
|
"schema": "paperclip.prp.command.v1",
|
|
"commandId": "command_failed_turn",
|
|
"controllerSeq": 2,
|
|
"type": "turn.start",
|
|
"issuedAt": "2026-08-07T12:10:00.010Z",
|
|
"payload": { "text": "Run failing scenario" }
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"schema": "paperclip.prp.event.v1", "sourceEventId": "event_failed_01", "sourceSeq": 1,
|
|
"sourceInstanceId": "runner_replay", "sourceKind": "runner", "runId": "run_replay_failed",
|
|
"normalizedSessionId": "session_replay_failed", "eventType": "session.started", "schemaVersion": 1,
|
|
"priority": 0, "emittedAt": "2026-08-07T12:10:00.020Z", "payload": {}
|
|
},
|
|
{
|
|
"schema": "paperclip.prp.event.v1", "sourceEventId": "event_failed_02", "sourceSeq": 2,
|
|
"sourceInstanceId": "runner_replay", "sourceKind": "runner", "runId": "run_replay_failed",
|
|
"normalizedSessionId": "session_replay_failed", "turnId": "turn_replay_failed",
|
|
"eventType": "turn.started", "schemaVersion": 1, "priority": 1,
|
|
"emittedAt": "2026-08-07T12:10:00.030Z", "payload": {}
|
|
},
|
|
{
|
|
"schema": "paperclip.prp.event.v1", "sourceEventId": "event_failed_03", "sourceSeq": 3,
|
|
"sourceInstanceId": "runner_replay", "sourceKind": "runner", "runId": "run_replay_failed",
|
|
"normalizedSessionId": "session_replay_failed", "turnId": "turn_replay_failed", "itemId": "item_failed_command",
|
|
"eventType": "item.failed", "schemaVersion": 1, "priority": 0,
|
|
"emittedAt": "2026-08-07T12:10:00.040Z", "payload": { "kind": "command", "message": "Command exited with code 1" }
|
|
},
|
|
{
|
|
"schema": "paperclip.prp.event.v1", "sourceEventId": "event_failed_04", "sourceSeq": 4,
|
|
"sourceInstanceId": "runner_replay", "sourceKind": "runner", "runId": "run_replay_failed",
|
|
"normalizedSessionId": "session_replay_failed", "turnId": "turn_replay_failed",
|
|
"eventType": "run.result.proposed", "schemaVersion": 1, "priority": 0,
|
|
"emittedAt": "2026-08-07T12:10:00.050Z",
|
|
"payload": {
|
|
"schema": "paperclip.run_result.v1", "reportedWorkDisposition": "yielded",
|
|
"summary": "The scripted command failed and needs a retry.",
|
|
"completionClaim": { "contractRevision": "replay-contract-v1", "objectiveSatisfied": false, "criteria": [], "remainingWork": [{ "description": "Retry the failed command", "blocksCompletion": true }] },
|
|
"evidence": [], "verification": [{ "commandOrCheck": "fake command", "status": "failed" }],
|
|
"attentionRequests": [], "artifacts": [],
|
|
"continuation": { "kind": "retry", "summary": "Retry after correcting the command", "idempotencyKey": "retry_replay_failed" }
|
|
}
|
|
},
|
|
{
|
|
"schema": "paperclip.prp.event.v1", "sourceEventId": "event_failed_05", "sourceSeq": 5,
|
|
"sourceInstanceId": "runner_replay", "sourceKind": "runner", "runId": "run_replay_failed",
|
|
"normalizedSessionId": "session_replay_failed", "turnId": "turn_replay_failed",
|
|
"eventType": "turn.failed", "schemaVersion": 1, "priority": 0,
|
|
"emittedAt": "2026-08-07T12:10:00.060Z", "payload": { "message": "Fake driver failure" }
|
|
},
|
|
{
|
|
"schema": "paperclip.prp.event.v1", "sourceEventId": "event_failed_06", "sourceSeq": 6,
|
|
"sourceInstanceId": "runner_replay", "sourceKind": "runner", "runId": "run_replay_failed",
|
|
"normalizedSessionId": "session_replay_failed", "eventType": "run.terminal", "schemaVersion": 1,
|
|
"priority": 0, "emittedAt": "2026-08-07T12:10:00.070Z",
|
|
"payload": { "schema": "paperclip.prp.terminal.v1", "turnTerminalState": "failed", "runTerminalState": "failed", "reportedWorkDisposition": "yielded" }
|
|
}
|
|
],
|
|
"requests": [],
|
|
"result": {
|
|
"schema": "paperclip.run_result.v1", "reportedWorkDisposition": "yielded",
|
|
"summary": "The scripted command failed and needs a retry.",
|
|
"completionClaim": { "contractRevision": "replay-contract-v1", "objectiveSatisfied": false, "criteria": [], "remainingWork": [{ "description": "Retry the failed command", "blocksCompletion": true }] },
|
|
"evidence": [], "verification": [{ "commandOrCheck": "fake command", "status": "failed" }],
|
|
"attentionRequests": [], "artifacts": [],
|
|
"continuation": { "kind": "retry", "summary": "Retry after correcting the command", "idempotencyKey": "retry_replay_failed" }
|
|
}
|
|
}
|