Trace response
The viewer receives this response from /api/trace. Run prd status --json to print it locally.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
baseBranch | string | yes | — | — |
feature | string | yes | — | — |
judgments | array of object | yes | — | — |
judgments[].history | object | no | — | — |
judgments[].history.candidates | array of object | yes | — | — |
judgments[].history.candidates[].model | string | yes | — | — |
judgments[].history.candidates[].reasoning | "low" or "medium" or "high" or "xhigh" or "max" | yes | — | — |
judgments[].history.candidates[].harness | string | yes | — | — |
judgments[].history.candidates[].tasks | integer | yes | — | — |
judgments[].history.candidates[].costPerVerified | number or null | yes | — | — |
judgments[].history.candidates[].firstPass | number | yes | — | — |
judgments[].history.candidates[].leftOut | integer | yes | — | — |
judgments[].history.constraints | array of string | yes | — | — |
judgments[].history.selectedHarness | string | no | — | — |
judgments[].history.explored | boolean | yes | — | — |
judgments[].explanation | string | no | — | — |
judgments[].recommendation | object | no | — | — |
judgments[].recommendation.model | string | yes | — | — |
judgments[].recommendation.modelId | string | yes | — | — |
judgments[].recommendation.reasoning | "low" or "medium" or "high" or "xhigh" or "max" | yes | — | — |
judgments[].recommendation.source | "judge" or "history" or "planner" | yes | — | — |
judgments[].recommendation.applied | boolean | yes | — | — |
judgments[].recommendation.evidence | array of string | yes | — | — |
judgments[].recommendation.policy | string | yes | — | — |
judgments[].recommendation.uncertainties | array of string | yes | — | — |
judgments[].recommendation.alternative | object or null | yes | — | — |
judgments[].recommendation.alternative (variant 1).model | string | yes | — | — |
judgments[].recommendation.alternative (variant 1).reasoning | "low" or "medium" or "high" or "xhigh" or "max" | yes | — | — |
judgments[].action | "none" or "split" or "routed" | yes | — | — |
judgments[].answer | object | yes | — | — |
judgments[].answer (variant 1).confidence | number | no | — | — |
judgments[].answer (variant 1).label | string | yes | — | — |
judgments[].answer (variant 1).probabilities | map of number | yes | — | — |
judgments[].answer (variant 2).probability | number | yes | — | — |
judgments[].answer (variant 3).description | string | yes | — | — |
judgments[].answer (variant 3).unanswered | "Refused" or "Missing" or "Invalid" | yes | — | — |
judgments[].at | string | yes | — | — |
judgments[].inputHash | string | yes | — | — |
judgments[].message | string | yes | — | — |
judgments[].question | "size" or "faithful" or "inScope" or "buildable" or "matches" or "category" or "model" or "reasoning" or "built" or "complete" or "ordered" or "oneFeature" or "separable" or "risk" or "complexity" or "history" | yes | — | — |
judgments[].round | integer | yes | — | — |
judgments[].target | object | yes | — | — |
judgments[].target (variant 1).id | string | yes | — | — |
judgments[].target (variant 1).kind | "section" | yes | — | — |
judgments[].target (variant 2).id | string | yes | — | — |
judgments[].target (variant 2).kind | "task" | yes | — | — |
judgments[].target (variant 3).kind | "draft" | yes | — | — |
judgments[].target (variant 3).title | string | yes | — | — |
judgments[].target (variant 4).id | string | yes | — | — |
judgments[].target (variant 4).kind | "prd" | yes | — | — |
judgments[].target (variant 5).kind | "stack" | yes | — | — |
judgments[].target (variant 6).kind | "file" | yes | — | — |
judgments[].target (variant 6).path | string | yes | — | — |
judgments[].verdict | "pass" or "flag" or "unsure" | yes | — | — |
judgments[].stale | boolean | yes | — | — |
notes | array of object | no | [] | — |
notes[].anchor | string | yes | — | — |
notes[].at | string | yes | — | — |
notes[].author | string | yes | — | — |
notes[].body | string | yes | — | — |
notes[].id | string | yes | — | — |
notes[].kind | "note" or "review" | yes | — | — |
notes[].label | object or null | yes | — | — |
notes[].label (variant 1).label | "question" or "blocker" or "bug" or "breaks_spec" or "nit" | yes | — | — |
notes[].label (variant 1).probability | number | yes | — | — |
notes[].resolvedAt | string or null | yes | — | — |
notes[].session | string or null | yes | — | — |
notes[].status | "open" or "resolved" | yes | — | — |
notes[].task | string or null | yes | — | — |
prd | object | yes | — | — |
prd.items | array of object | no | [] | — |
prd.items[].human | boolean | yes | — | — |
prd.items[].id | string | yes | — | — |
prd.items[].line | integer | yes | — | — |
prd.items[].parent | string | yes | — | — |
prd.items[].section | string | yes | — | — |
prd.items[].text | string | yes | — | — |
prd.markdown | string | yes | — | — |
prd.path | string | yes | — | — |
prd.sections | array of object | yes | — | — |
prd.sections[].human | boolean | yes | — | — |
prd.sections[].id | string | yes | — | — |
prd.sections[].keys | object | yes | — | — |
prd.sections[].keys.context | array of string | yes | — | — |
prd.sections[].keys.defers | array of string | yes | — | — |
prd.sections[].keys.dependsOn | array of string | yes | — | — |
prd.sections[].keys.files | array of string | yes | — | — |
prd.sections[].keys.implements | array of string | yes | — | — |
prd.sections[].level | integer | yes | — | — |
prd.sections[].line | integer | yes | — | — |
prd.sections[].parent | string or null | yes | — | — |
prd.sections[].summary | string or null | no | null | — |
prd.sections[].title | string | yes | — | — |
prd.statements | array of object | no | [] | — |
prd.statements[].draft | boolean | yes | — | — |
prd.statements[].human | boolean | yes | — | — |
prd.statements[].id | string | yes | — | — |
prd.statements[].line | integer | yes | — | — |
prd.statements[].owner | string | yes | — | — |
prd.statements[].provedBy | array of string | yes | — | — |
prd.statements[].text | string | yes | — | — |
sections | array of object | yes | — | — |
sections[].id | string | yes | — | — |
sections[].status | "deferred" or "context" or "unmapped" or "blocked_on_human" or "failed" or "running" or "landed" or "done" or "pending" or "in_progress" | yes | — | — |
spec | object | yes | — | — |
spec.items | array of object | no | [] | — |
spec.items[].human | boolean | yes | — | — |
spec.items[].id | string | yes | — | — |
spec.items[].line | integer | yes | — | — |
spec.items[].parent | string | yes | — | — |
spec.items[].section | string | yes | — | — |
spec.items[].text | string | yes | — | — |
spec.markdown | string | yes | — | — |
spec.path | string | yes | — | — |
spec.sections | array of object | yes | — | — |
spec.sections[].human | boolean | yes | — | — |
spec.sections[].id | string | yes | — | — |
spec.sections[].keys | object | yes | — | — |
spec.sections[].keys.context | array of string | yes | — | — |
spec.sections[].keys.defers | array of string | yes | — | — |
spec.sections[].keys.dependsOn | array of string | yes | — | — |
spec.sections[].keys.files | array of string | yes | — | — |
spec.sections[].keys.implements | array of string | yes | — | — |
spec.sections[].level | integer | yes | — | — |
spec.sections[].line | integer | yes | — | — |
spec.sections[].parent | string or null | yes | — | — |
spec.sections[].summary | string or null | no | null | — |
spec.sections[].title | string | yes | — | — |
spec.statements | array of object | no | [] | — |
spec.statements[].draft | boolean | yes | — | — |
spec.statements[].human | boolean | yes | — | — |
spec.statements[].id | string | yes | — | — |
spec.statements[].line | integer | yes | — | — |
spec.statements[].owner | string | yes | — | — |
spec.statements[].provedBy | array of string | yes | — | — |
spec.statements[].text | string | yes | — | — |
tasks | array of object | yes | — | — |
tasks[].branch | string | yes | — | — |
tasks[].category | string | no | — | — |
tasks[].commits | array of object | yes | — | — |
tasks[].commits[].files | array of string | yes | — | — |
tasks[].commits[].parents | array of string | yes | — | — |
tasks[].commits[].sections | array of string | yes | — | — |
tasks[].commits[].session | string or null | yes | — | — |
tasks[].commits[].sha | string | yes | — | — |
tasks[].commits[].subject | string | yes | — | — |
tasks[].dependsOn | array of string | yes | — | — |
tasks[].files | array of string | yes | — | The files the task creates or changes. |
tasks[].humanGate | object | yes | — | — |
tasks[].humanGate.reasons | array of "tag:human" or string | yes | — | — |
tasks[].humanGate.required | boolean | yes | — | — |
tasks[].id | string | yes | — | — |
tasks[].model | string | yes | — | — |
tasks[].orderedAfter | array of object | no | [] | — |
tasks[].orderedAfter[].reason | string | yes | — | — |
tasks[].orderedAfter[].task | string | yes | — | — |
tasks[].parent | string or null | yes | — | — |
tasks[].prdSections | array of string | yes | — | — |
tasks[].reasoning | "low" or "medium" or "high" or "xhigh" or "max" | yes | — | — |
tasks[].sessions | array of string | yes | — | — |
tasks[].specSections | array of string | yes | — | — |
tasks[].status | "pending" or "running" or "blocked_on_human" or "failed" or "done" or "landed" | yes | — | — |
tasks[].title | string | yes | — | A short imperative title, unique among the tasks in this plan. |
tasks[].worktree | string or null | yes | — | — |
tasks[].attempts | array of object | no | — | — |
tasks[].attempts[].task | string | yes | — | — |
tasks[].attempts[].n | integer | yes | — | — |
tasks[].attempts[].session | string or null | yes | — | — |
tasks[].attempts[].kind | "first" or "retry" or "escalation" or "repair" | yes | — | — |
tasks[].attempts[].model | string | yes | — | — |
tasks[].attempts[].modelId | string or null | yes | — | — |
tasks[].attempts[].reasoning | "low" or "medium" or "high" or "xhigh" or "max" | yes | — | — |
tasks[].attempts[].harness | object or null | yes | — | — |
tasks[].attempts[].harness (variant 1).name | string | yes | — | — |
tasks[].attempts[].harness (variant 1).version | string | yes | — | — |
tasks[].attempts[].startedAt | string | yes | — | — |
tasks[].attempts[].endedAt | string or null | yes | — | — |
tasks[].attempts[].usage | object | yes | — | — |
tasks[].attempts[].usage.input | integer or null | yes | — | — |
tasks[].attempts[].usage.cachedInput | integer or null | yes | — | — |
tasks[].attempts[].usage.cacheWrite | integer or null | yes | — | — |
tasks[].attempts[].usage.output | integer or null | yes | — | — |
tasks[].attempts[].usage.reasoning | integer or null | yes | — | — |
tasks[].attempts[].cost | number or null | yes | — | — |
tasks[].attempts[].costSource | "reported" or "priced" or "unknown" | yes | — | — |
tasks[].attempts[].route | "subscription" or "api" or "gateway" or "unified" or null | yes | — | — |
tasks[].attempts[].outcome | "verified" or "failed" or "open" | yes | — | — |
tasks[].attempts[].failure | "checks" or "agent" or "infra" or "upstream" or null | yes | — | — |
tasks[].usageEvents | array of object | no | — | — |
tasks[].usageEvents[].kind | "usage" | yes | — | — |
tasks[].usageEvents[].ts | string | yes | — | — |
tasks[].usageEvents[].taskId | string | yes | — | — |
tasks[].usageEvents[].v | 1 | no | 1 | — |
tasks[].usageEvents[].session | string | yes | — | — |
tasks[].usageEvents[].purpose | "review" or "conflict" | yes | — | — |
tasks[].usageEvents[].model | string | yes | — | — |
tasks[].usageEvents[].reasoning | "low" or "medium" or "high" or "xhigh" or "max" | yes | — | — |
tasks[].usageEvents[].harness | object | yes | — | — |
tasks[].usageEvents[].harness.name | string | yes | — | — |
tasks[].usageEvents[].harness.version | string | yes | — | — |
tasks[].usageEvents[].usage | object | yes | — | — |
tasks[].usageEvents[].usage.input | integer or null | yes | — | — |
tasks[].usageEvents[].usage.cachedInput | integer or null | yes | — | — |
tasks[].usageEvents[].usage.cacheWrite | integer or null | yes | — | — |
tasks[].usageEvents[].usage.output | integer or null | yes | — | — |
tasks[].usageEvents[].usage.reasoning | integer or null | yes | — | — |
tasks[].usageEvents[].cost | number or null | yes | — | — |
tasks[].usageEvents[].route | "subscription" or "api" or "gateway" or "unified" | yes | — | — |
tasks[].terminal | boolean | no | — | — |
tasks[].events | array of object | yes | — | — |
tasks[].events[].kind | "status" | no | — | — |
tasks[].events[].session | string | no | — | — |
tasks[].events[].harness | object | no | — | — |
tasks[].events[].harness.name | string | yes | — | — |
tasks[].events[].harness.version | string | yes | — | — |
tasks[].events[].attempt | "first" or "retry" or "escalation" or "repair" | no | — | — |
tasks[].events[].usage | object | no | — | — |
tasks[].events[].usage.input | integer or null | yes | — | — |
tasks[].events[].usage.cachedInput | integer or null | yes | — | — |
tasks[].events[].usage.cacheWrite | integer or null | yes | — | — |
tasks[].events[].usage.output | integer or null | yes | — | — |
tasks[].events[].usage.reasoning | integer or null | yes | — | — |
tasks[].events[].cost | number or null | no | — | — |
tasks[].events[].route | "subscription" or "api" or "gateway" or "unified" | no | — | — |
tasks[].events[].failure | "checks" or "agent" or "infra" or "upstream" | no | — | — |
tasks[].events[].actor | "orchestrator" or string | no | "orchestrator" | — |
tasks[].events[].detail | string | no | — | — |
tasks[].events[].model | string | no | — | — |
tasks[].events[].modelId | string | no | — | — |
tasks[].events[].reasoning | "low" or "medium" or "high" or "xhigh" or "max" | no | — | — |
tasks[].events[].status | "pending" or "running" or "blocked_on_human" or "failed" or "done" or "landed" | yes | — | — |
tasks[].events[].taskId | string | yes | — | — |
tasks[].events[].ts | string | yes | — | — |
tasks[].events[].v | 1 | no | 1 | — |
tasks[].gate | object | yes | — | — |
tasks[].gate.reasons | array of "tag:human" or string | yes | — | — |
tasks[].gate.required | boolean | yes | — | — |
tasks[].statements | array of string | no | [] | — |
tasks[].waiting | boolean | yes | — | — |
tasks[].canStart | boolean | no | false | — |
tasks[].waitsOn | array of string | no | [] | — |
tasks[].waitedOnBy | array of string | no | [] | — |
version | 1 | yes | — | — |
warnings | array of object | yes | — | — |
warnings[].kind | "past-limit" or "illegal-transition" or "interrupted-operation" or "non-human-approval" or "unknown-task" or "missing-trailers" or "landed-without-approval" or "missing-session" | yes | — | — |
warnings[].message | string | yes | — | — |
warnings[].sha | string or null | yes | — | — |
warnings[].taskId | string or null | yes | — | — |