| objectiverequired | Objective | What a person asked the agent to do (D9). The one field of a run that is a prompt, and therefore the one field that must never be reported. |
|---|
| agentrequired | SessionProfileKey | Stable identity for a launch profile. Built-ins remain readable across machines; user-created profiles are opaque UUIDs. |
|---|
| requested_model | DelegateModelName or null | The person's explicit choice; absent means the provider default. Retained intent, never proof of the model the provider actually used. |
|---|
| scoperequired | WorkspaceScope | The working folder a run is admitted to (P1.5) and started in. Identity is a [ProjectId] rather than a path: the project already carries a canonical root the host validates at launch, and an id is what a second device can name without being able to resolve it (D15, D16). The folder inside it is text a person chose, and is redacted like every path. `None` is unreachable at admission. It exists so a request can be built before a scope is chosen and so the modal has a state to refuse; P1.5 makes it impossible to start a run with it. M4 adds git shapes - a worktree per run - as new variants, which is why this is an enum. |
|---|
| contextrequired | array of RunContextItem | Context as given - pinned, and unchanged by anything that happens to the source afterwards (§7.2). |
|---|
| grants | array of WorkspaceId | The grant set (D28). A resume re-reads it and never widens it. Default [] |
|---|
| statusrequired | RunStatus | The one canonical status (§7.1). |
|---|
| failure_reason | RunFailureReason or null | Safe terminal cause, absent for older runs. Raw provider text is never retained here. |
|---|
| environmentrequired | ExecutionEnvironment | The machine a run executes on (D3: execution machinery is device-local). One variant today. D12 makes the orchestrator cloud-deployable later, and that arrives as a second variant here rather than as a flag on the device - which is why this is #[non_exhaustive]: a dependant that matches it must already say what it does with an environment it does not know. |
|---|
| artifacts | array of ResultReference | Every result registered, in registration order. Default [] |
|---|
| economics | EconomicsSummary | A projection of the retained usage facts and the timeline (§17.1), recomputable; kept here so a device reads the numbers without replaying. Default {"orchestrator_turns":0,"human_turns":0,"turns_with_usage":0,"input":{"known":0,"unavailable_turns":0},"output":{"known":0,"unavailable_turns":0},"cached_input":{"known":0,"unavailable_turns":0},"tool_calls":0,"interventions":0,"elapsed_ms":null,"models":[],"complete":false} |
|---|
| origin | RunOrigin | Durable provenance copied from the creation intent. Additive and defaulted so runs written before scheduling remain manual. Default {"origin":"manual"} |
|---|