@claudexor/schema 2.1.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/dist/agent-capabilities.d.ts +32 -24
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +20 -11
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +166 -0
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +63 -2
  8. package/dist/apply-eligibility.js.map +1 -1
  9. package/dist/attachment.d.ts +5 -5
  10. package/dist/budget.d.ts +4 -4
  11. package/dist/config.d.ts +59 -41
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/config.js +16 -6
  14. package/dist/config.js.map +1 -1
  15. package/dist/context.d.ts +6 -6
  16. package/dist/control-operation-responses.d.ts +190 -97
  17. package/dist/control-operation-responses.d.ts.map +1 -1
  18. package/dist/control-operation-responses.js +14 -1
  19. package/dist/control-operation-responses.js.map +1 -1
  20. package/dist/control-run-detail.d.ts +347 -215
  21. package/dist/control-run-detail.d.ts.map +1 -1
  22. package/dist/control-run-detail.js +34 -7
  23. package/dist/control-run-detail.js.map +1 -1
  24. package/dist/control-thread-apply.d.ts +5 -5
  25. package/dist/control-trust.d.ts +6 -6
  26. package/dist/control.d.ts +769 -306
  27. package/dist/control.d.ts.map +1 -1
  28. package/dist/control.js +164 -61
  29. package/dist/control.js.map +1 -1
  30. package/dist/credential-profile.d.ts +400 -1
  31. package/dist/credential-profile.d.ts.map +1 -1
  32. package/dist/credential-profile.js +109 -4
  33. package/dist/credential-profile.js.map +1 -1
  34. package/dist/decision.d.ts +78 -14
  35. package/dist/decision.d.ts.map +1 -1
  36. package/dist/decision.js +53 -20
  37. package/dist/decision.js.map +1 -1
  38. package/dist/delivery.d.ts +3 -3
  39. package/dist/delivery.js +1 -1
  40. package/dist/delivery.js.map +1 -1
  41. package/dist/events.d.ts +32 -6
  42. package/dist/events.d.ts.map +1 -1
  43. package/dist/events.js +45 -11
  44. package/dist/events.js.map +1 -1
  45. package/dist/gate.d.ts +4 -4
  46. package/dist/gate.d.ts.map +1 -1
  47. package/dist/gate.js +2 -2
  48. package/dist/gate.js.map +1 -1
  49. package/dist/harness.d.ts +137 -47
  50. package/dist/harness.d.ts.map +1 -1
  51. package/dist/harness.js +65 -16
  52. package/dist/harness.js.map +1 -1
  53. package/dist/index.d.ts +4 -3
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +4 -3
  56. package/dist/index.js.map +1 -1
  57. package/dist/operation.d.ts +66 -7
  58. package/dist/operation.d.ts.map +1 -1
  59. package/dist/operation.js +29 -2
  60. package/dist/operation.js.map +1 -1
  61. package/dist/output-schema.d.ts +40 -0
  62. package/dist/output-schema.d.ts.map +1 -0
  63. package/dist/output-schema.js +109 -0
  64. package/dist/output-schema.js.map +1 -0
  65. package/dist/plan.d.ts +206 -0
  66. package/dist/plan.d.ts.map +1 -0
  67. package/dist/plan.js +107 -0
  68. package/dist/plan.js.map +1 -0
  69. package/dist/primitives.d.ts +14 -10
  70. package/dist/primitives.d.ts.map +1 -1
  71. package/dist/primitives.js +14 -11
  72. package/dist/primitives.js.map +1 -1
  73. package/dist/project.d.ts +75 -0
  74. package/dist/project.d.ts.map +1 -1
  75. package/dist/project.js +17 -0
  76. package/dist/project.js.map +1 -1
  77. package/dist/quota.d.ts +119 -0
  78. package/dist/quota.d.ts.map +1 -1
  79. package/dist/quota.js +22 -0
  80. package/dist/quota.js.map +1 -1
  81. package/dist/raw.d.ts +4 -4
  82. package/dist/readiness.d.ts +14 -7
  83. package/dist/readiness.d.ts.map +1 -1
  84. package/dist/run-strategy.d.ts +17 -0
  85. package/dist/run-strategy.d.ts.map +1 -0
  86. package/dist/run-strategy.js +47 -0
  87. package/dist/run-strategy.js.map +1 -0
  88. package/dist/setup.d.ts +160 -160
  89. package/dist/status-projection.d.ts +78 -0
  90. package/dist/status-projection.d.ts.map +1 -0
  91. package/dist/status-projection.js +171 -0
  92. package/dist/status-projection.js.map +1 -0
  93. package/dist/task.d.ts +48 -316
  94. package/dist/task.d.ts.map +1 -1
  95. package/dist/task.js +3 -60
  96. package/dist/task.js.map +1 -1
  97. package/dist/telemetry.d.ts +89 -89
  98. package/dist/thread.d.ts +167 -32
  99. package/dist/thread.d.ts.map +1 -1
  100. package/dist/thread.js +92 -28
  101. package/dist/thread.js.map +1 -1
  102. package/dist/tool-ref.d.ts +1 -1
  103. package/generated/AgentCapabilityCatalog.schema.json +4 -6
  104. package/generated/ApplyEligibility.schema.json +1 -1
  105. package/generated/BudgetLease.schema.json +1 -2
  106. package/generated/ConformanceReport.schema.json +1 -2
  107. package/generated/ContinuityDisclosure.schema.json +74 -0
  108. package/generated/ControlApplyRequest.schema.json +1 -2
  109. package/generated/ControlCredentialProfileUpdateRequest.schema.json +20 -0
  110. package/generated/ControlCredentialProfileUpdateResponse.schema.json +142 -0
  111. package/generated/ControlCredentialProfilesResponse.schema.json +126 -2
  112. package/generated/ControlDeliveryResponse.schema.json +0 -1
  113. package/generated/ControlHandshakeResponse.schema.json +31 -3
  114. package/generated/ControlHarnessListResponse.schema.json +11 -6
  115. package/generated/ControlHarnessSettingsPatch.schema.json +4 -0
  116. package/generated/ControlOperationCatalog.schema.json +16 -1
  117. package/generated/ControlOperationDescriptor.schema.json +15 -0
  118. package/generated/ControlProject.schema.json +35 -0
  119. package/generated/ControlProjectListResponse.schema.json +35 -0
  120. package/generated/ControlProjectOutputsResponse.schema.json +57 -0
  121. package/generated/ControlQueuedRunInfo.schema.json +2 -11
  122. package/generated/ControlQuotaResponse.schema.json +42 -0
  123. package/generated/ControlRunAgainDraft.schema.json +37 -35
  124. package/generated/ControlRunDecisionRequest.schema.json +0 -1
  125. package/generated/ControlRunDetail.schema.json +292 -213
  126. package/generated/ControlRunListResponse.schema.json +88 -27
  127. package/generated/ControlRunStartRequest.schema.json +37 -35
  128. package/generated/ControlRunStartResponse.schema.json +2 -11
  129. package/generated/ControlRunSummary.schema.json +88 -27
  130. package/generated/ControlSettingsSnapshot.schema.json +6 -11
  131. package/generated/ControlSettingsUpdateRequest.schema.json +5 -10
  132. package/generated/ControlThread.schema.json +21 -3
  133. package/generated/ControlThreadApplyResponse.schema.json +0 -1
  134. package/generated/ControlThreadCreateRequest.schema.json +12 -3
  135. package/generated/ControlThreadDetail.schema.json +174 -16
  136. package/generated/ControlThreadListResponse.schema.json +60 -3
  137. package/generated/ControlThreadTurnRequest.schema.json +40 -34
  138. package/generated/ControlThreadUpdateRequest.schema.json +19 -0
  139. package/generated/DecisionRecord.schema.json +73 -33
  140. package/generated/GateResult.schema.json +1 -2
  141. package/generated/GlobalConfig.schema.json +7 -12
  142. package/generated/HarnessManifest.schema.json +11 -6
  143. package/generated/HarnessStatusDto.schema.json +11 -6
  144. package/generated/LaneCheckpoint.schema.json +59 -0
  145. package/generated/McpRunHandleResult.schema.json +234 -0
  146. package/generated/McpRunToolResult.schema.json +124 -2
  147. package/generated/RoutePrimaryDivergedPayload.schema.json +56 -0
  148. package/generated/RunEvent.schema.json +9 -5
  149. package/generated/RunTelemetry.schema.json +2 -4
  150. package/generated/TaskContract.schema.json +3 -135
  151. package/generated/Thread.schema.json +21 -3
  152. package/generated/ThreadTurn.schema.json +88 -0
  153. package/package.json +2 -2
  154. package/dist/control-spec.d.ts +0 -603
  155. package/dist/control-spec.d.ts.map +0 -1
  156. package/dist/control-spec.js +0 -87
  157. package/dist/control-spec.js.map +0 -1
  158. package/dist/orchestrate.d.ts +0 -556
  159. package/dist/orchestrate.d.ts.map +0 -1
  160. package/dist/orchestrate.js +0 -356
  161. package/dist/orchestrate.js.map +0 -1
  162. package/dist/spec.d.ts +0 -678
  163. package/dist/spec.d.ts.map +0 -1
  164. package/dist/spec.js +0 -186
  165. package/dist/spec.js.map +0 -1
  166. package/generated/ControlSpecAnswersRequest.schema.json +0 -74
  167. package/generated/ControlSpecQuestionsRequest.schema.json +0 -209
  168. package/generated/ControlSpecSession.schema.json +0 -261
  169. package/generated/ControlSpecSessionListResponse.schema.json +0 -273
  170. package/generated/OrchestrateContract.schema.json +0 -119
  171. package/generated/OrchestratePlan.schema.json +0 -264
  172. package/generated/OrchestratePlanProgress.schema.json +0 -164
  173. package/generated/SessionReboundLineage.schema.json +0 -73
  174. package/generated/SpecPack.schema.json +0 -483
@@ -1 +1 @@
1
- {"version":3,"file":"control.d.ts","sourceRoot":"","sources":["../src/control.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAYlD,eAAO,MAAM,YAAY;;;;;;EAU6B,CAAC;AACvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,yBAAyB;IAElC;uEACmE;;IAInE,qEAAqE;;IAIrE,sEAAsE;;;;;;;;;;EAMhB,CAAC;AAC3D,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,eAAO,MAAM,sBAAsB;;IAG/B;;;uEAGmE;;IAOnE,6EAA6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgB7E;;oDAEgD;;IAIhD;;uCAEmC;;;;;;;IAiCnC,mFAAmF;;IAKnF,wEAAwE;;IAExE,sEAAsE;;IAEtE;;mEAE+D;;;;;;;;;;;;;;;;;;IAQ/D,qGAAqG;;;;IAUrG,mEAAmE;;;;;;;;;;;;;;;;;;IAWnE;sEACkE;;;;;;;;;;;;;;IAUlE,+DAA+D;;IAE/D;;;sEAGkE;;;;IAQlE;oFACgF;;IAIhF;;0EAEsE;;QA/JtE;2EACmE;;QAInE,qEAAqE;;QAIrE,sEAAsE;;;;;;;;;;;IA8JtE,+DAA+D;;IAE/D;;gDAE4C;;IAS5C;;qDAEiD;;IAIjD;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AC,CAAC;AAEtF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA7CrC,iFAAiF;;;;;;;;;;;QAgCjF;kFAC0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CU,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
package/dist/control.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
- import { AccessProfile, AuthPreference, ContentHash, ExternalContextPolicy, Id, ModeKind, NonBlankString, OutputReadyState, ProviderFamily, } from "./primitives.js";
2
+ import { AccessProfile, AuthPreference, ExternalContextPolicy, Id, ModeKind, NonBlankString, OutputReadyState, ProviderFamily, } from "./primitives.js";
3
3
  import { AuthMode, PaidBudget, PaidFallback, QualityTierSet, RoutingGoal } from "./budget.js";
4
4
  export { ControlQuotaResponse } from "./quota.js";
5
5
  import { AuthRouteReason, AuthSourceKind } from "./auth.js";
6
+ import { RunOutcomeFacts } from "./decision.js";
6
7
  import { EffortHint, HarnessModel, InteractionQuestion } from "./harness.js";
7
- import { ThreadState, ThreadTurnKind, WorkspaceMode } from "./thread.js";
8
- import { OrchestrateAutonomy } from "./orchestrate.js";
8
+ import { ContinuityKind, ThreadState, ThreadTurnKind, WorkspaceMode } from "./thread.js";
9
9
  import { ResourceAttachmentRef } from "./attachment.js";
10
10
  import { RequestRequirementResolution } from "./request-requirements.js";
11
11
  import { ProtectedPathApproval, TestCommandInvocation } from "./task.js";
@@ -32,13 +32,13 @@ export const ControlReviewerPanelEntry = z
32
32
  effort: EffortHint.optional().describe("Per-reviewer effort hint, passed to that harness only."),
33
33
  })
34
34
  .strict()
35
- .describe("One reviewer of an explicit reviewer panel.");
35
+ .describe("One reviewer of an explicit reviewer panel — a harness plus optional model and effort. The CLI spells one entry `harness=model:effort` (e.g. `claude=claude-opus-4-8:max`).");
36
36
  export const ControlRunStartRequest = z
37
37
  .object({
38
38
  prompt: z.string().default("").describe("The user's prompt for the run."),
39
39
  /** Caller-supplied system-level instructions layered onto every
40
- * task-producing lane (primary, candidate, planner, explorer,
41
- * orchestrate-planner) — never reviewers, synthesis, or the auth smoke.
40
+ * task-producing lane (primary, candidate, planner, explorer) — never
41
+ * reviewers, synthesis, or the auth smoke.
42
42
  * Scanned by the inline-secret fence like the prompt (INV-062). */
43
43
  instructions: z
44
44
  .string()
@@ -96,10 +96,23 @@ export const ControlRunStartRequest = z
96
96
  .boolean()
97
97
  .optional()
98
98
  .describe("Agent flag: iterate until the convergence predicate is clean (no fixed cap)."),
99
- /** audit flag: bounded read-only research swarm (the old `explore`). */
100
- swarm: z.boolean().optional().describe("Audit flag: bounded read-only research swarm."),
99
+ /** ask flag: widen the answer into a bounded multi-scout research sweep
100
+ * with synthesis (the old `audit --swarm` / `explore`). */
101
+ deepScan: z
102
+ .boolean()
103
+ .optional()
104
+ .describe("Ask flag: bounded multi-scout research sweep with synthesis."),
101
105
  /** agent flag: create-from-scratch intent (the old `create` mode). */
102
106
  create: z.boolean().optional().describe("Agent flag: create-from-scratch intent."),
107
+ /** plan strategy (D31/INV-031): N harnesses draft plans in parallel, the
108
+ * primary merges them into ONE unified plan whose open questions reach the
109
+ * user as one set. `n` (2..4) sets the member count; default = distinct
110
+ * available harnesses up to 3. Legal only on mode=plan (and `n` on a plan
111
+ * run is legal ONLY with council). */
112
+ council: z
113
+ .boolean()
114
+ .optional()
115
+ .describe("Plan strategy: N harnesses draft plans in parallel, the primary merges into one unified plan + one question set. Plan mode only."),
103
116
  /** Best-of-N synthesis policy. `auto` (default) only synthesizes a 3rd
104
117
  * candidate when n>=3 and candidates genuinely complement; `always`/`never`
105
118
  * force it. Threaded to the orchestrator's decideSynthesis. */
@@ -127,9 +140,6 @@ export const ControlRunStartRequest = z
127
140
  .array(ProtectedPathApproval)
128
141
  .optional()
129
142
  .describe("Typed per-run approvals for changing auto-protected gate/test paths; does not bypass built-in critical/security path human gates."),
130
- specPath: NonBlankString.optional().describe("Path to a frozen SpecPack the run is held to."),
131
- specId: z.string().optional().describe("Id of the SpecPack the run is held to."),
132
- specHash: ContentHash.optional().describe("Content hash of the SpecPack the run is held to."),
133
143
  /** Thread/session linkage: a run is a turn inside a thread. */
134
144
  threadId: Id.optional().describe("Thread this run is a turn of."),
135
145
  /** INTERNAL single-writer handoff: control-api pre-creates the turn and
@@ -139,17 +149,31 @@ export const ControlRunStartRequest = z
139
149
  turnId: Id.optional().describe("Internal daemon handoff only; rejected (400) when supplied by a client on POST /runs — use POST /threads/:id/turns instead."),
140
150
  parentRunId: Id.optional().describe("Run this turn follows up on."),
141
151
  retryOf: Id.optional().describe("Server-owned Exact Retry lineage; direct POST /runs rejects it."),
142
- /** When set, this turn implements an approved plan: the engine prefixes the
143
- * parent plan run's final/plan.md into the prompt (mode is forced to agent). */
152
+ /** When set, this turn implements an approved plan (mode is forced to
153
+ * agent); the plan is DELIVERED AS A FILE (planRef), never re-embedded
154
+ * into the prompt text. */
144
155
  planRunId: Id.optional().describe("Internal daemon handoff only; rejected (400) on POST /runs. When set, the turn implements an approved plan from that run."),
145
- /** Explicit reviewer panel. When present it overrides the legacy
146
- * per-provider-family reviewerModels/reviewerEfforts maps and preserves
147
- * duplicate harness entries for multi-model same-provider reviews. */
156
+ /** Server-owned frozen-plan reference (D17 freeze-on-implement): the plan
157
+ * run, the sha256 of its final/plan.md at implement time, and the
158
+ * engine-resolved absolute artifact path. The orchestrator re-reads the
159
+ * file, verifies the hash (tamper fence), and materializes it into the
160
+ * execution context; retry replays it verbatim so a retried implement can
161
+ * never silently run without its plan. */
162
+ planRef: z
163
+ .object({
164
+ runId: Id,
165
+ sha256: z.string().regex(/^[0-9a-f]{64}$/),
166
+ path: z.string().min(1),
167
+ })
168
+ .strict()
169
+ .optional()
170
+ .describe("Internal daemon handoff only; rejected (400) on POST /runs. Frozen-plan reference delivered to the executor as a file."),
171
+ /** Explicit reviewer panel; syntax + override semantics in the describe. */
148
172
  reviewerPanel: z
149
173
  .array(ControlReviewerPanelEntry)
150
174
  .min(1)
151
175
  .optional()
152
- .describe("Explicit reviewer panel; overrides the legacy reviewerModels/reviewerEfforts maps and preserves duplicate harness entries for multi-model same-provider reviews."),
176
+ .describe('Explicit reviewer panel — who reviews the change, one entry per reviewer as `harness=model:effort` (CLI `--reviewers "claude=claude-opus-4-8:max,cursor=gemini-3.1-pro"`). Duplicate harness entries are kept so one provider can review through several models; overrides the legacy reviewerModels/reviewerEfforts maps.'),
153
177
  /** Per-run auth route override (subscription/api_key/auto). */
154
178
  authPreference: AuthPreference.optional().describe("Per-run auth route override."),
155
179
  /** Explicit per-run credential profile (INV-135); resolved against the
@@ -161,18 +185,16 @@ export const ControlRunStartRequest = z
161
185
  .nullable()
162
186
  .optional()
163
187
  .describe("Explicit per-run credential profile id; null FORCES the engine-default ladder past a thread-sticky profile; unknown/disabled ids refuse, never default."),
164
- /** How much the orchestrate planner may act without confirmation
165
- * (suggest/auto_safe/auto_full). Only meaningful for mode=orchestrate;
166
- * consumed by the executor in runOrchestrate. */
167
- autonomy: OrchestrateAutonomy.optional().describe("Autonomy level for the orchestrate planner; only meaningful for mode=orchestrate."),
168
- /** Orchestrate executor: cap on plan tool calls. Only meaningful for
169
- * mode=orchestrate; consumed by executeOrchestratePlan. */
170
- maxToolCalls: z
171
- .number()
172
- .int()
173
- .positive()
188
+ /** Agent delegation belt toggle (D32). Agent-only: when true and the
189
+ * routed harness declares `capability_profile.mcp_injection`, the engine
190
+ * injects the scoped Claudexor delegation belt (ask/plan/isolated sub-run/
191
+ * best-of/status/result) into the harness sandbox so the harness can spawn
192
+ * bounded isolated sub-runs. Refused (typed preflight) on a non-agent mode
193
+ * or a harness that cannot inject. Default off. */
194
+ delegate: z
195
+ .boolean()
174
196
  .optional()
175
- .describe("Cap on orchestrate plan tool calls; only meaningful for mode=orchestrate."),
197
+ .describe("Agent-only: inject the Claudexor delegation belt so the harness can spawn bounded isolated sub-runs; refused on non-agent modes or harnesses without mcp_injection."),
176
198
  /** Hard wall-clock deadline for the WHOLE run, measured from scheduler
177
199
  * start. On expiry the run is cooperatively cancelled (hard-kill fallback)
178
200
  * and ends `cancelled` with reason `wall_clock_exceeded`, preserving partial
@@ -220,30 +242,14 @@ export const ControlRunStartRequest = z
220
242
  .describe("Per-run turn cap (beats per-harness settings)."),
221
243
  })
222
244
  .strict()
223
- .describe("Request body for POST /runs: prompt, mode, scope, routing, strategy flags, budget, policies, and spec/thread linkage.");
245
+ .describe("Request body for POST /runs: prompt, mode, scope, routing, strategy flags, budget, policies, and thread linkage.");
224
246
  const RunRetrySchemas = makeControlRunRetrySchemas(ControlRunStartRequest);
225
247
  export const ControlRunStartInfo = RunRetrySchemas.startInfo;
226
248
  export const ControlRunRetryResponse = RunRetrySchemas.response;
227
249
  export const ControlRunAgainDraft = RunRetrySchemas.draft;
228
250
  export const ControlRunState = z
229
- .enum([
230
- "queued",
231
- "running",
232
- "blocked",
233
- "succeeded",
234
- "no_op",
235
- "ungated",
236
- "review_not_run",
237
- "failed",
238
- "cancelled",
239
- "interrupted_unknown",
240
- "cost_unverifiable",
241
- "exhausted_overshoot",
242
- "exhausted",
243
- "not_converged",
244
- "stuck_no_progress",
245
- ])
246
- .describe("Control-plane run state: queued/running while live, then an honest success, block, failure, interruption, cost, exhaustion, non-convergence, or cancellation terminal.");
251
+ .enum(["queued", "running", "succeeded", "failed", "cancelled", "interrupted"])
252
+ .describe("Control-plane run state = the run LIFECYCLE (D8): queued/running while live, then exactly one of succeeded / failed / cancelled / interrupted. Outcome quality (checks/review/delivery) is orthogonal — see outcomeFacts.");
247
253
  export const ControlQueuedRunInfo = z
248
254
  .object({
249
255
  jobId: z.string().describe("Daemon job id."),
@@ -399,6 +405,33 @@ export const RunApplyState = z
399
405
  "reverted",
400
406
  ])
401
407
  .describe("Honest application state of a run's changes: not_applied (no in-place mutation), applied (applied and review clean), applied_review_blocked (applied but review blocked/unconverged), or reverted.");
408
+ /**
409
+ * The run's MUTABLE delivery/apply state, persisted as its own typed artifact
410
+ * `final/delivery_state.yaml` (V8/PLAN addendum 2). work_product.yaml is
411
+ * immutable after the run; the operator apply/revert lifecycle mutates ONLY
412
+ * this record. Writer: control-api daemon-server (markRunApplyState). Readers:
413
+ * retention GC and the summarizeRun result projection.
414
+ */
415
+ export const RunDeliveryState = z
416
+ .object({
417
+ applyState: RunApplyState.default("not_applied"),
418
+ deliveredAt: z
419
+ .string()
420
+ .nullable()
421
+ .default(null)
422
+ .describe("When the work product was delivered/applied in place; null until delivered."),
423
+ revertAnchorId: z
424
+ .string()
425
+ .nullable()
426
+ .default(null)
427
+ .describe("GC-independent revert anchor recorded at apply time; null when none."),
428
+ postTurnSha: z
429
+ .string()
430
+ .nullable()
431
+ .default(null)
432
+ .describe("Tree SHA right after the operator apply; revert refuses if the tree diverged."),
433
+ })
434
+ .describe("Mutable delivery/apply state of a run (final/delivery_state.yaml); the only run record that changes after the run terminates.");
402
435
  export const ControlRunResult = z
403
436
  .object({
404
437
  kind: z
@@ -462,12 +495,12 @@ export const ControlRunSummary = z
462
495
  .describe("Typed failure record; null unless the run failed."),
463
496
  project: ControlProjectMetadata.default({}),
464
497
  mode: ModeKind.optional(),
465
- /** v0.9 engine strategy on the mode (flags, not modes): race width / repair caps / swarm / create. */
498
+ /** v0.9 engine strategy on the mode (flags, not modes): race width / repair caps / deep-scan / create. */
466
499
  strategy: z
467
- .enum(["race", "attempts", "until_clean", "swarm", "create"])
500
+ .enum(["race", "attempts", "until_clean", "deep_scan", "create"])
468
501
  .nullable()
469
502
  .optional()
470
- .describe("Engine strategy flag on the mode (race width / attempt caps / until-clean / swarm / create); flags, not modes."),
503
+ .describe("Engine strategy flag on the mode (race width / attempt caps / until-clean / deep-scan / create); flags, not modes."),
471
504
  prompt: z.string().optional().describe("The user's prompt for the run."),
472
505
  harnesses: z.array(z.string()).optional().describe("Harness pool the run used."),
473
506
  primaryHarness: z.string().optional().describe("Primary harness the run preferred."),
@@ -569,6 +602,12 @@ export const ControlRunSummary = z
569
602
  .describe("Non-blocking tool warnings projected from the telemetry artifact."),
570
603
  /** Honest terminal outcome (what the turn did): patch/answer/plan/report/none. */
571
604
  result: ControlRunResult.default({}),
605
+ /** The D8 terminal outcome AXES (lifecycle mirrors `state`; plus noChanges,
606
+ * checks, review, reason) projected from decision.facts, else derived from
607
+ * the typed failure. Null while the run is not terminal / has no facts. */
608
+ outcomeFacts: RunOutcomeFacts.nullable()
609
+ .default(null)
610
+ .describe("D8 terminal outcome axes (checks/review/reason/noChanges) projected from decision.facts or derived from the failure; null while non-terminal."),
572
611
  /** True while at least one interaction.requested has no answered/timeout. */
573
612
  waitingOnUser: z
574
613
  .boolean()
@@ -579,8 +618,6 @@ export const ControlRunSummary = z
579
618
  .default(null)
580
619
  .describe("Route evidence from telemetry; null when no telemetry exists (legacy runs)."),
581
620
  tests: z.array(TestCommandInvocation).optional().describe("Typed argv gates."),
582
- specId: z.string().optional().describe("SpecPack id the run was held to."),
583
- specHash: ContentHash.optional().describe("Content hash of the SpecPack the run was held to."),
584
621
  createdAt: z.string().optional().describe("When the run was created."),
585
622
  startedAt: z.string().optional().describe("When the run started."),
586
623
  finishedAt: z.string().optional().describe("When the run finished."),
@@ -768,9 +805,9 @@ export const ControlApplyRequest = z
768
805
  .object({
769
806
  target: ApplyTarget.default({ kind: "original_project" }),
770
807
  mode: z
771
- .enum(["artifact_only", "apply", "branch", "commit", "pr"])
808
+ .enum(["apply", "branch", "commit", "pr"])
772
809
  .default("apply")
773
- .describe("Delivery mode: artifact_only (export only), apply to the tree, or as a branch, commit, or PR."),
810
+ .describe("Delivery mode: apply to the tree, or as a branch, commit, or PR."),
774
811
  branch: z.string().optional().describe("Branch name for branch/pr modes."),
775
812
  message: z.string().optional().describe("Commit message for commit/pr modes."),
776
813
  })
@@ -809,7 +846,7 @@ export const ControlRunDecisionRequest = z
809
846
  .describe("Risk reasons being explicitly accepted (recorded, never silent)."),
810
847
  /** Apply mode + target for accept_clean_patch. */
811
848
  applyMode: z
812
- .enum(["artifact_only", "apply", "branch", "commit", "pr"])
849
+ .enum(["apply", "branch", "commit", "pr"])
813
850
  .optional()
814
851
  .describe("Delivery mode for accept_clean_patch."),
815
852
  target: ApplyTarget.optional().describe("Delivery target for accept_clean_patch."),
@@ -856,6 +893,10 @@ export const ControlThread = z
856
893
  credentialProfileId: Id.nullable()
857
894
  .default(null)
858
895
  .describe("Sticky credential profile for the thread; per-turn selection wins, null = engine-default credentials."),
896
+ /** Sticky write scope for write turns (D26); null = repo trust default. */
897
+ access: AccessProfile.nullable()
898
+ .default(null)
899
+ .describe("Sticky write scope for write turns; null = the repo trust default."),
859
900
  state: ThreadState.default("active"),
860
901
  trashedAt: z.string().nullable().default(null).describe("When the thread entered trash."),
861
902
  purgeAfter: z.string().nullable().default(null).describe("When trash retention expires."),
@@ -908,12 +949,15 @@ export const ControlTurnRunCard = z
908
949
  state: ControlRunState,
909
950
  mode: ModeKind.optional(),
910
951
  strategy: z
911
- .enum(["race", "attempts", "until_clean", "swarm", "create"])
952
+ .enum(["race", "attempts", "until_clean", "deep_scan", "create"])
912
953
  .nullable()
913
954
  .optional()
914
955
  .describe("Engine strategy flag on the mode, when any."),
915
956
  n: z.number().int().optional().describe("Race width, when the run was a race."),
916
957
  result: ControlRunResult.default({}),
958
+ outcomeFacts: RunOutcomeFacts.nullable()
959
+ .default(null)
960
+ .describe("D8 terminal outcome axes (checks/review/reason/noChanges) for the turn; null while non-terminal."),
917
961
  spendUsd: z.number().nullable().optional().describe("Settled cash in USD; null when unknown."),
918
962
  outputReadyState: OutputReadyState.default("pending"),
919
963
  waitingOnUser: z
@@ -966,6 +1010,39 @@ export const ControlThreadTurn = z
966
1010
  .nullable()
967
1011
  .default(null)
968
1012
  .describe("Why this turn has no run (enqueue/preflight refusal); null once a run binds."),
1013
+ /** How this turn's lane was continued (INV-137): native resume, a
1014
+ * continuation packet (with the delta-turn count + whether the older
1015
+ * prefix was collapsed), or a fresh start. Surfaces render a one-line
1016
+ * disclosure from this; null until the engine stamps the lane. */
1017
+ continuity: z
1018
+ .object({
1019
+ kind: ContinuityKind,
1020
+ packetTurns: z
1021
+ .number()
1022
+ .int()
1023
+ .nonnegative()
1024
+ .default(0)
1025
+ .describe("Delta turns carried in the continuation packet (0 for native_resume/fresh)."),
1026
+ summarized: z
1027
+ .boolean()
1028
+ .default(false)
1029
+ .describe("True when the packet collapsed an older prefix (mechanical fallback)."),
1030
+ laneSwitchedFrom: z
1031
+ .object({
1032
+ harness: z.string().describe("Harness of the lane switched away from."),
1033
+ profileId: z
1034
+ .string()
1035
+ .nullable()
1036
+ .default(null)
1037
+ .describe("Profile of the lane switched away from (null = engine default)."),
1038
+ })
1039
+ .nullable()
1040
+ .default(null)
1041
+ .describe("The lane this turn switched away from; null for an in-lane continuation."),
1042
+ })
1043
+ .nullable()
1044
+ .default(null)
1045
+ .describe("How this turn's lane was continued (native resume / packet / fresh); null until stamped."),
969
1046
  createdAt: z.string().describe("When the turn was created."),
970
1047
  })
971
1048
  .describe("Control-plane projection of one thread turn with its embedded run card.");
@@ -983,6 +1060,7 @@ export const ControlThreadCreateRequest = z
983
1060
  .array(NonBlankString)
984
1061
  .optional()
985
1062
  .describe("Sticky eligible harness pool; turns inherit it when unset."),
1063
+ access: AccessProfile.optional().describe("Sticky write scope for the thread's write turns; omit = the repo trust default."),
986
1064
  })
987
1065
  .strict()
988
1066
  .describe("Request body for POST /threads.");
@@ -1002,12 +1080,31 @@ export const ControlThreadUpdateRequest = z
1002
1080
  .array(NonBlankString)
1003
1081
  .optional()
1004
1082
  .describe("New sticky eligible harness pool."),
1083
+ access: AccessProfile.nullable()
1084
+ .optional()
1085
+ .describe("New sticky write scope; null clears back to the repo trust default."),
1005
1086
  })
1006
1087
  .strict()
1007
1088
  .describe("Request body for PATCH /threads/:id: rename, archive, or switch sticky routing.");
1089
+ /** A registered project skipped during thread listing because its root is no
1090
+ * longer usable (F2 resilience): disclosed per-project so a dead root
1091
+ * never 400s the whole listing rather than silently dropping its threads. */
1092
+ export const ControlProjectListingProblem = z
1093
+ .object({
1094
+ projectId: NonBlankString.describe("The registered project that was skipped."),
1095
+ root: z.string().describe("The project root that could not be listed."),
1096
+ code: z.enum(["project_root_missing"]).describe("Why skipped (root no longer exists)."),
1097
+ message: z.string().describe("Human-readable disclosure of why it was skipped."),
1098
+ })
1099
+ .strict()
1100
+ .describe("A project skipped during thread listing, disclosed rather than failing it.");
1008
1101
  export const ControlThreadListResponse = z
1009
1102
  .object({
1010
1103
  threads: z.array(ControlThread).default([]).describe("All threads."),
1104
+ problems: z
1105
+ .array(ControlProjectListingProblem)
1106
+ .default([])
1107
+ .describe("Projects skipped because their root is no longer usable (F2 disclosure)."),
1011
1108
  })
1012
1109
  .describe("Response for GET /threads.");
1013
1110
  export const ControlThreadDetail = z
@@ -1066,10 +1163,6 @@ export const ControlSettingsSnapshot = z
1066
1163
  .describe("How long a run waits for an interactive answer before a benign decline, in milliseconds."),
1067
1164
  routing: z
1068
1165
  .object({
1069
- defaultPolicy: z
1070
- .enum(["auto", "primary"])
1071
- .default("auto")
1072
- .describe("Default routing policy."),
1073
1166
  primaryHarness: z
1074
1167
  .string()
1075
1168
  .nullable()
@@ -1143,6 +1236,12 @@ export const ControlSettingsSnapshot = z
1143
1236
  .boolean()
1144
1237
  .default(true)
1145
1238
  .describe("Whether the harness participates in routing."),
1239
+ /** Whether the native/CLI login participates in the credential
1240
+ * ladder for this harness (INV-135). */
1241
+ nativeCredentialsEnabled: z
1242
+ .boolean()
1243
+ .default(true)
1244
+ .describe("Whether the native/CLI login participates in this harness's credential ladder."),
1146
1245
  defaultModel: z
1147
1246
  .string()
1148
1247
  .nullable()
@@ -1200,6 +1299,11 @@ export const ControlSettingsSnapshot = z
1200
1299
  export const ControlHarnessSettingsPatch = z
1201
1300
  .object({
1202
1301
  enabled: z.boolean().optional().describe("Enable/disable the harness for routing."),
1302
+ /** Toggle the native/CLI login in this harness's credential ladder (INV-135). */
1303
+ nativeCredentialsEnabled: z
1304
+ .boolean()
1305
+ .optional()
1306
+ .describe("Whether the native/CLI login participates in this harness's credential ladder."),
1203
1307
  defaultModel: NonBlankString.nullable()
1204
1308
  .optional()
1205
1309
  .describe("New per-harness default model; null clears it."),
@@ -1247,7 +1351,6 @@ export const ControlSettingsUpdateRequest = z
1247
1351
  .positive()
1248
1352
  .optional()
1249
1353
  .describe("New interactive-answer timeout, in milliseconds."),
1250
- routingPolicy: z.enum(["auto", "primary"]).optional().describe("New default routing policy."),
1251
1354
  primaryHarness: NonBlankString.nullable()
1252
1355
  .optional()
1253
1356
  .describe("New global primary harness; null clears back to engine routing."),