@claudexor/schema 4.8.1 → 5.0.1

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 (217) hide show
  1. package/dist/account-resources.d.ts +325 -56
  2. package/dist/account-resources.d.ts.map +1 -1
  3. package/dist/account-resources.js +35 -5
  4. package/dist/account-resources.js.map +1 -1
  5. package/dist/account-routing-evidence.d.ts +253 -45
  6. package/dist/account-routing-evidence.d.ts.map +1 -1
  7. package/dist/account-target.d.ts +19 -5
  8. package/dist/account-target.d.ts.map +1 -1
  9. package/dist/account-target.js +14 -1
  10. package/dist/account-target.js.map +1 -1
  11. package/dist/agent-capabilities.d.ts +183 -0
  12. package/dist/agent-capabilities.d.ts.map +1 -1
  13. package/dist/agent-capabilities.js +2 -0
  14. package/dist/agent-capabilities.js.map +1 -1
  15. package/dist/budget.d.ts +3 -0
  16. package/dist/budget.d.ts.map +1 -1
  17. package/dist/budget.js +5 -1
  18. package/dist/budget.js.map +1 -1
  19. package/dist/capture-inventory.d.ts +60 -0
  20. package/dist/capture-inventory.d.ts.map +1 -0
  21. package/dist/capture-inventory.js +57 -0
  22. package/dist/capture-inventory.js.map +1 -0
  23. package/dist/control-gc.d.ts +377 -0
  24. package/dist/control-gc.d.ts.map +1 -1
  25. package/dist/control-gc.js +74 -1
  26. package/dist/control-gc.js.map +1 -1
  27. package/dist/control-harness-list.d.ts +102 -18
  28. package/dist/control-harness-list.d.ts.map +1 -1
  29. package/dist/control-harness-models.d.ts +299 -6
  30. package/dist/control-harness-models.d.ts.map +1 -1
  31. package/dist/control-harness-models.js +12 -3
  32. package/dist/control-harness-models.js.map +1 -1
  33. package/dist/control-operation-responses.d.ts +606 -23
  34. package/dist/control-operation-responses.d.ts.map +1 -1
  35. package/dist/control-operation-responses.js +3 -0
  36. package/dist/control-operation-responses.js.map +1 -1
  37. package/dist/control-run-detail.d.ts +1193 -72
  38. package/dist/control-run-detail.d.ts.map +1 -1
  39. package/dist/control-run-event-part.d.ts +3 -3
  40. package/dist/control-run-event-part.js +1 -1
  41. package/dist/control-run-event-part.js.map +1 -1
  42. package/dist/control-run-failure.d.ts +276 -12
  43. package/dist/control-run-failure.d.ts.map +1 -1
  44. package/dist/control-run-failure.js +54 -16
  45. package/dist/control-run-failure.js.map +1 -1
  46. package/dist/control-run-message.js +1 -1
  47. package/dist/control-run-message.js.map +1 -1
  48. package/dist/control-thread-apply.d.ts +165 -0
  49. package/dist/control-thread-apply.d.ts.map +1 -1
  50. package/dist/control-timeline.d.ts +9 -0
  51. package/dist/control-timeline.d.ts.map +1 -1
  52. package/dist/control-timeline.js +20 -3
  53. package/dist/control-timeline.js.map +1 -1
  54. package/dist/control.d.ts +392 -42
  55. package/dist/control.d.ts.map +1 -1
  56. package/dist/control.js +13 -7
  57. package/dist/control.js.map +1 -1
  58. package/dist/credential-profile-snapshot.d.ts +506 -90
  59. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  60. package/dist/daemon-status.d.ts +492 -0
  61. package/dist/daemon-status.d.ts.map +1 -1
  62. package/dist/daemon-status.js +22 -0
  63. package/dist/daemon-status.js.map +1 -1
  64. package/dist/decision.d.ts +9 -9
  65. package/dist/decision.d.ts.map +1 -1
  66. package/dist/decision.js +4 -0
  67. package/dist/decision.js.map +1 -1
  68. package/dist/delivery.d.ts +162 -0
  69. package/dist/delivery.d.ts.map +1 -1
  70. package/dist/delivery.js +32 -0
  71. package/dist/delivery.js.map +1 -1
  72. package/dist/events.d.ts +7 -6
  73. package/dist/events.d.ts.map +1 -1
  74. package/dist/events.js +10 -8
  75. package/dist/events.js.map +1 -1
  76. package/dist/git-result.d.ts +99 -0
  77. package/dist/git-result.d.ts.map +1 -0
  78. package/dist/git-result.js +80 -0
  79. package/dist/git-result.js.map +1 -0
  80. package/dist/harness-model.d.ts +89 -0
  81. package/dist/harness-model.d.ts.map +1 -1
  82. package/dist/harness-model.js +83 -0
  83. package/dist/harness-model.js.map +1 -1
  84. package/dist/harness-speech.d.ts +36 -0
  85. package/dist/harness-speech.d.ts.map +1 -0
  86. package/dist/harness-speech.js +27 -0
  87. package/dist/harness-speech.js.map +1 -0
  88. package/dist/harness.d.ts +371 -35
  89. package/dist/harness.d.ts.map +1 -1
  90. package/dist/harness.js +7 -21
  91. package/dist/harness.js.map +1 -1
  92. package/dist/index.d.ts +5 -0
  93. package/dist/index.d.ts.map +1 -1
  94. package/dist/index.js +5 -0
  95. package/dist/index.js.map +1 -1
  96. package/dist/mcp-run-result.d.ts +620 -51
  97. package/dist/mcp-run-result.d.ts.map +1 -1
  98. package/dist/mcp-run-result.js +45 -5
  99. package/dist/mcp-run-result.js.map +1 -1
  100. package/dist/mcp-run-wait.d.ts +7 -7
  101. package/dist/primitives.d.ts.map +1 -1
  102. package/dist/primitives.js +3 -2
  103. package/dist/primitives.js.map +1 -1
  104. package/dist/project.d.ts +45 -1
  105. package/dist/project.d.ts.map +1 -1
  106. package/dist/project.js +26 -1
  107. package/dist/project.js.map +1 -1
  108. package/dist/quota-read.d.ts +6 -3
  109. package/dist/quota-read.d.ts.map +1 -1
  110. package/dist/quota-read.js +7 -1
  111. package/dist/quota-read.js.map +1 -1
  112. package/dist/quota-scope.d.ts +29 -0
  113. package/dist/quota-scope.d.ts.map +1 -0
  114. package/dist/quota-scope.js +95 -0
  115. package/dist/quota-scope.js.map +1 -0
  116. package/dist/rate-limit.d.ts +3 -0
  117. package/dist/rate-limit.d.ts.map +1 -1
  118. package/dist/rate-limit.js +5 -1
  119. package/dist/rate-limit.js.map +1 -1
  120. package/dist/raw.d.ts +223 -1
  121. package/dist/raw.d.ts.map +1 -1
  122. package/dist/raw.js +86 -0
  123. package/dist/raw.js.map +1 -1
  124. package/dist/readiness.d.ts +87 -18
  125. package/dist/readiness.d.ts.map +1 -1
  126. package/dist/readiness.js +7 -6
  127. package/dist/readiness.js.map +1 -1
  128. package/dist/route-health.d.ts +303 -0
  129. package/dist/route-health.d.ts.map +1 -0
  130. package/dist/route-health.js +71 -0
  131. package/dist/route-health.js.map +1 -0
  132. package/dist/run-continuity.d.ts +3 -0
  133. package/dist/run-continuity.d.ts.map +1 -1
  134. package/dist/run-continuity.js +4 -0
  135. package/dist/run-continuity.js.map +1 -1
  136. package/dist/run-facts.d.ts +5 -5
  137. package/dist/run-facts.d.ts.map +1 -1
  138. package/dist/run-facts.js +1 -0
  139. package/dist/run-facts.js.map +1 -1
  140. package/dist/run-observation.d.ts +6 -6
  141. package/dist/run-observation.d.ts.map +1 -1
  142. package/dist/run-observation.js +7 -1
  143. package/dist/run-observation.js.map +1 -1
  144. package/dist/setup-login.d.ts +1 -1
  145. package/dist/setup-login.js +1 -1
  146. package/dist/setup.d.ts +1 -1
  147. package/dist/setup.js +1 -1
  148. package/dist/status-projection.d.ts.map +1 -1
  149. package/dist/status-projection.js +3 -0
  150. package/dist/status-projection.js.map +1 -1
  151. package/dist/task-group-runs.d.ts +1 -0
  152. package/dist/task-group-runs.d.ts.map +1 -1
  153. package/dist/task-group-runs.js +6 -3
  154. package/dist/task-group-runs.js.map +1 -1
  155. package/dist/telemetry.d.ts +239 -7
  156. package/dist/telemetry.d.ts.map +1 -1
  157. package/dist/telemetry.js +4 -2
  158. package/dist/telemetry.js.map +1 -1
  159. package/dist/thread-history.d.ts +1109 -161
  160. package/dist/thread-history.d.ts.map +1 -1
  161. package/dist/thread-history.js +1 -1
  162. package/dist/thread-history.js.map +1 -1
  163. package/dist/tool-ref.d.ts +94 -3
  164. package/dist/tool-ref.d.ts.map +1 -1
  165. package/dist/tool-ref.js +98 -6
  166. package/dist/tool-ref.js.map +1 -1
  167. package/generated/AgentCapabilityCatalog.schema.json +54 -0
  168. package/generated/BudgetObservation.schema.json +8 -1
  169. package/generated/ControlAccountResetResponse.schema.json +60 -1
  170. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +46 -2
  171. package/generated/ControlAccountResourcesResponse.schema.json +46 -2
  172. package/generated/ControlApplyCheckResponse.schema.json +47 -0
  173. package/generated/ControlCredentialProfilesQueryResponse.schema.json +105 -4
  174. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +105 -4
  175. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +59 -2
  176. package/generated/ControlDaemonStatus.schema.json +112 -43
  177. package/generated/ControlDeliveryResponse.schema.json +154 -0
  178. package/generated/ControlGcLastResponse.schema.json +184 -0
  179. package/generated/ControlGcReceipt.schema.json +60 -1
  180. package/generated/ControlGcRequest.schema.json +4 -0
  181. package/generated/ControlHarnessAccountCatalog.schema.json +13 -0
  182. package/generated/ControlHarnessAccountModelsResponse.schema.json +13 -0
  183. package/generated/ControlHarnessListResponse.schema.json +59 -2
  184. package/generated/ControlHarnessModelsQueryResponse.schema.json +97 -51
  185. package/generated/ControlHarnessModelsResponse.schema.json +96 -0
  186. package/generated/ControlProjectRemoveReceipt.schema.json +36 -0
  187. package/generated/ControlQuotaQueryResponse.schema.json +46 -2
  188. package/generated/ControlQuotaReadRequest.schema.json +4 -0
  189. package/generated/ControlQuotaRefreshRequest.schema.json +12 -3
  190. package/generated/ControlRouteHealth.schema.json +202 -0
  191. package/generated/ControlRunDecisionResponse.schema.json +14 -0
  192. package/generated/ControlRunDetail.schema.json +376 -6
  193. package/generated/ControlRunEventPart.schema.json +3 -2
  194. package/generated/ControlRunListResponse.schema.json +342 -3
  195. package/generated/ControlRunMessageRequest.schema.json +1 -1
  196. package/generated/ControlRunSummary.schema.json +342 -3
  197. package/generated/ControlThreadApplyResponse.schema.json +154 -0
  198. package/generated/ControlThreadDetail.schema.json +2 -1
  199. package/generated/DecisionRecord.schema.json +1 -0
  200. package/generated/HarnessEvent.schema.json +214 -5
  201. package/generated/HarnessManifest.schema.json +57 -0
  202. package/generated/HarnessModel.schema.json +13 -0
  203. package/generated/HarnessStatusDto.schema.json +59 -2
  204. package/generated/JournaledRunCreatedPayload.schema.json +2 -2
  205. package/generated/McpAccountsToolResult.schema.json +105 -4
  206. package/generated/McpRunHandleResult.schema.json +279 -2
  207. package/generated/McpRunToolResult.schema.json +269 -0
  208. package/generated/McpRunWaitResult.schema.json +2 -1
  209. package/generated/RawContextPacket.schema.json +98 -0
  210. package/generated/RunContinuityReceipt.schema.json +8 -0
  211. package/generated/RunEvent.schema.json +2 -1
  212. package/generated/RunFacts.schema.json +1 -0
  213. package/generated/RunFailure.schema.json +201 -0
  214. package/generated/RunTelemetry.schema.json +123 -2
  215. package/generated/RunWaitManyInput.schema.json +11 -4
  216. package/generated/ThreadHistoryPage.schema.json +204 -2
  217. package/package.json +2 -2
@@ -51,6 +51,20 @@ export const DaemonTimingFacts = z.object({
51
51
  .array(z.object({
52
52
  method: z.string(),
53
53
  route: z.string(),
54
+ outcomes: z
55
+ .array(z.object({
56
+ outcome: z.enum([
57
+ "served",
58
+ "not_found",
59
+ "disconnected_at_entry",
60
+ "disconnected",
61
+ "failed",
62
+ ]),
63
+ lifetime: LatencyFacts,
64
+ window: LatencyFacts.nullable(),
65
+ }))
66
+ .max(5)
67
+ .optional(),
54
68
  lifetime: LatencyFacts,
55
69
  window: LatencyFacts.nullable(),
56
70
  }))
@@ -71,6 +85,14 @@ export const DaemonTimingFacts = z.object({
71
85
  }))
72
86
  .max(32)
73
87
  .describe("The 32 longest instrumented synchronous sections since process start, descending by duration, retaining later samples on ties. Labels contain no SQL, paths, IDs or payloads. Scope persistence measures synchronous serialization only; its file writes are asynchronous. Sections can overlap; these facts do not attribute a stall to disk or another cause."),
88
+ bulk: z
89
+ .array(z.object({
90
+ kind: z.enum(["cursor", "detail", "summary", "event-replay", "artifact"]),
91
+ queue: LatencyFacts,
92
+ projection: LatencyFacts,
93
+ }))
94
+ .optional()
95
+ .describe("Finite bulk reads: lifetime queue residence and worker execution wall times, including scheduling and asynchronous retained-output publication. These are not main-thread synchronous sections."),
74
96
  });
75
97
  /** Authenticated process facts, separate from the strict protocol handshake. */
76
98
  export const ControlDaemonStatus = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"daemon-status.js","sourceRoot":"","sources":["../src/daemon-status.ts"],"names":[],"mappings":"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E,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;IAChD,QAAQ,EAAE,uBAAuB,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;IAC7F,SAAS,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,iBAAiB;IACzB,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3C,wDAAwD,CACzD;IACD,IAAI,EAAE,eAAe,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACvC,8EAA8E,CAC/E;CACF,CAAC,CAAC"}
@@ -40,7 +40,7 @@ export type ReviewState = z.infer<typeof ReviewState>;
40
40
  /** Typed reason on non-clean terminals (replaces the old reason-as-status
41
41
  * values exhausted/not_converged/stuck_no_progress/...). Null on a clean
42
42
  * success. */
43
- export declare const RunReason: z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>;
43
+ export declare const RunReason: z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>;
44
44
  export type RunReason = z.infer<typeof RunReason>;
45
45
  /** The v3 terminal truth (D8): independent axes instead of one mixed enum.
46
46
  * lifecycle says how far the PROCESS got; noChanges/checks/review say what
@@ -52,7 +52,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
52
52
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
53
53
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
54
54
  review_requested: z.ZodOptional<z.ZodBoolean>;
55
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
55
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
56
56
  /**
57
57
  * D-16 work_state axis (INV-116): the model-attested work outcome,
58
58
  * orthogonal to `lifecycle`. Absent on runs with no work_report transport
@@ -102,7 +102,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
102
102
  checks: "failed" | "not_configured" | "passed";
103
103
  review: "approved" | "blocked" | "not_run";
104
104
  review_requested?: boolean | undefined;
105
- reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
105
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
106
106
  work_state?: {
107
107
  state: "completed" | "incomplete" | "needs_input" | "unverified";
108
108
  source: "absent" | "constrained" | "validated";
@@ -119,7 +119,7 @@ export declare const RunOutcomeFacts: z.ZodObject<{
119
119
  checks?: "failed" | "not_configured" | "passed" | undefined;
120
120
  review?: "approved" | "blocked" | "not_run" | undefined;
121
121
  review_requested?: boolean | undefined;
122
- reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
122
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
123
123
  work_state?: {
124
124
  state: "completed" | "incomplete" | "needs_input" | "unverified";
125
125
  source: "absent" | "constrained" | "validated";
@@ -203,7 +203,7 @@ export declare const DecisionRecord: z.ZodObject<{
203
203
  checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
204
204
  review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
205
205
  review_requested: z.ZodOptional<z.ZodBoolean>;
206
- reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
206
+ reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "host_cancelled", "owner_task_gone", "crash_interrupted", "workspace_unavailable", "capture_refused", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
207
207
  /**
208
208
  * D-16 work_state axis (INV-116): the model-attested work outcome,
209
209
  * orthogonal to `lifecycle`. Absent on runs with no work_report transport
@@ -253,7 +253,7 @@ export declare const DecisionRecord: z.ZodObject<{
253
253
  checks: "failed" | "not_configured" | "passed";
254
254
  review: "approved" | "blocked" | "not_run";
255
255
  review_requested?: boolean | undefined;
256
- reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
256
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
257
257
  work_state?: {
258
258
  state: "completed" | "incomplete" | "needs_input" | "unverified";
259
259
  source: "absent" | "constrained" | "validated";
@@ -270,7 +270,7 @@ export declare const DecisionRecord: z.ZodObject<{
270
270
  checks?: "failed" | "not_configured" | "passed" | undefined;
271
271
  review?: "approved" | "blocked" | "not_run" | undefined;
272
272
  review_requested?: boolean | undefined;
273
- reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
273
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
274
274
  work_state?: {
275
275
  state: "completed" | "incomplete" | "needs_input" | "unverified";
276
276
  source: "absent" | "constrained" | "validated";
@@ -392,7 +392,7 @@ export declare const DecisionRecord: z.ZodObject<{
392
392
  checks: "failed" | "not_configured" | "passed";
393
393
  review: "approved" | "blocked" | "not_run";
394
394
  review_requested?: boolean | undefined;
395
- reason: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
395
+ reason: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null;
396
396
  work_state?: {
397
397
  state: "completed" | "incomplete" | "needs_input" | "unverified";
398
398
  source: "absent" | "constrained" | "validated";
@@ -452,7 +452,7 @@ export declare const DecisionRecord: z.ZodObject<{
452
452
  checks?: "failed" | "not_configured" | "passed" | undefined;
453
453
  review?: "approved" | "blocked" | "not_run" | undefined;
454
454
  review_requested?: boolean | undefined;
455
- reason?: "budget_exhausted" | "budget_overshoot" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
455
+ reason?: "budget_exhausted" | "budget_overshoot" | "capture_refused" | "checks_failed" | "context_capacity_exhausted" | "cost_unverifiable" | "crash_interrupted" | "harness_failed" | "host_cancelled" | "input_required" | "no_changes" | "not_converged" | "owner_task_gone" | "review_blocked" | "stuck_no_progress" | "user_cancelled" | "wall_clock_exceeded" | "work_incomplete" | "work_report_contract" | "workspace_unavailable" | null | undefined;
456
456
  work_state?: {
457
457
  state: "completed" | "incomplete" | "needs_input" | "unverified";
458
458
  source: "absent" | "constrained" | "validated";
@@ -1 +1 @@
1
- {"version":3,"file":"decision.d.ts","sourceRoot":"","sources":["../src/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAciD,CAAC;AACjF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiJ3F,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
package/dist/decision.js CHANGED
@@ -48,6 +48,10 @@ export const RunReason = z
48
48
  "owner_task_gone",
49
49
  "crash_interrupted",
50
50
  "workspace_unavailable",
51
+ // The executor ran, but its changes could not be captured as an exact
52
+ // patch or file result (output limit, Git timeout, I/O or scratch fault).
53
+ // Distinct from workspace_unavailable: the workspace was used, not missing.
54
+ "capture_refused",
51
55
  // D-16 work_state / context reasons.
52
56
  "input_required",
53
57
  "work_incomplete",
@@ -1 +1 @@
1
- {"version":3,"file":"decision.js","sourceRoot":"","sources":["../src/decision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,WAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAC9D,WAAW,EAAE,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC/D,QAAQ,EAAE,CAAC;SACR,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,6CAA6C,CAAC;QACzF,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;KACxE,CAAC,CACH;SACA,QAAQ,CAAC,iDAAiD,CAAC;CAC/D,CAAC;KACD,QAAQ,CAAC,mEAAmE,CAAC,CAAC;AAGjF;;u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AE,CAAC;aACR,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CACP,8IAA8I,CAC/I;QACH,sEAAsE;QACtE,uEAAuE;QACvE,qBAAqB,EAAE,CAAC;aACrB,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,EAAE;aACV,QAAQ,CACP,oOAAoO,CACrO;QACH,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CACP,oGAAoG,CACrG;QACH,mBAAmB,EAAE,CAAC;aACnB,IAAI,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;aACvC,QAAQ,EAAE;aACV,QAAQ,CACP,gHAAgH,CACjH;KACJ,CAAC;SACD,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;SACnF,QAAQ,CAAC,+EAA+E,CAAC;IAC5F,oBAAoB,EAAE,mBAAmB,CAAC,OAAO,CAAC,SAAS,CAAC;IAC5D,2EAA2E;IAC3E,8EAA8E;IAC9E,kBAAkB,EAAE,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;IACrD,sEAAsE;IACtE,kEAAkE;IAClE,YAAY,EAAE,iBAAiB,CAAC,QAAQ,EAAE;SACvC,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACP,oHAAoH,CACrH;CACJ,CAAC;KACD,QAAQ,CACP,yHAAyH,CAC1H,CAAC"}
@@ -1,4 +1,45 @@
1
1
  import { z } from "zod/v3";
2
+ /** Why the publication scanner stopped `pr` before anything left the machine
3
+ * (INV-146). Findings name rule and place only, never the matched text. */
4
+ export declare const PublicationRefusal: z.ZodObject<{
5
+ code: z.ZodEnum<["publication_scan_findings", "publication_scan_unavailable", "publication_scan_failed"]>;
6
+ detail: z.ZodString;
7
+ findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
8
+ ruleId: z.ZodString;
9
+ location: z.ZodString;
10
+ line: z.ZodNullable<z.ZodNumber>;
11
+ commit: z.ZodNullable<z.ZodString>;
12
+ }, "strict", z.ZodTypeAny, {
13
+ ruleId: string;
14
+ location: string;
15
+ line: number | null;
16
+ commit: string | null;
17
+ }, {
18
+ ruleId: string;
19
+ location: string;
20
+ line: number | null;
21
+ commit: string | null;
22
+ }>, "many">>;
23
+ }, "strict", z.ZodTypeAny, {
24
+ code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
25
+ detail: string;
26
+ findings?: {
27
+ ruleId: string;
28
+ location: string;
29
+ line: number | null;
30
+ commit: string | null;
31
+ }[] | undefined;
32
+ }, {
33
+ code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
34
+ detail: string;
35
+ findings?: {
36
+ ruleId: string;
37
+ location: string;
38
+ line: number | null;
39
+ commit: string | null;
40
+ }[] | undefined;
41
+ }>;
42
+ export type PublicationRefusal = z.infer<typeof PublicationRefusal>;
2
43
  /** Immutable evidence for one DeliveryService attempt, shared by every apply surface. */
3
44
  export declare const DeliveryReceipt: z.ZodObject<{
4
45
  mode: z.ZodEnum<["apply", "branch", "commit", "pr"]>;
@@ -10,6 +51,44 @@ export declare const DeliveryReceipt: z.ZodObject<{
10
51
  detail: z.ZodOptional<z.ZodString>;
11
52
  treeMutated: z.ZodOptional<z.ZodBoolean>;
12
53
  refused: z.ZodOptional<z.ZodBoolean>;
54
+ publicationRefusal: z.ZodOptional<z.ZodObject<{
55
+ code: z.ZodEnum<["publication_scan_findings", "publication_scan_unavailable", "publication_scan_failed"]>;
56
+ detail: z.ZodString;
57
+ findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ ruleId: z.ZodString;
59
+ location: z.ZodString;
60
+ line: z.ZodNullable<z.ZodNumber>;
61
+ commit: z.ZodNullable<z.ZodString>;
62
+ }, "strict", z.ZodTypeAny, {
63
+ ruleId: string;
64
+ location: string;
65
+ line: number | null;
66
+ commit: string | null;
67
+ }, {
68
+ ruleId: string;
69
+ location: string;
70
+ line: number | null;
71
+ commit: string | null;
72
+ }>, "many">>;
73
+ }, "strict", z.ZodTypeAny, {
74
+ code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
75
+ detail: string;
76
+ findings?: {
77
+ ruleId: string;
78
+ location: string;
79
+ line: number | null;
80
+ commit: string | null;
81
+ }[] | undefined;
82
+ }, {
83
+ code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
84
+ detail: string;
85
+ findings?: {
86
+ ruleId: string;
87
+ location: string;
88
+ line: number | null;
89
+ commit: string | null;
90
+ }[] | undefined;
91
+ }>>;
13
92
  /** #26: TRUE when this delivery was an idempotent already-applied no-op —
14
93
  * the tree was already this patch's exact postimage (reverse `git apply
15
94
  * --check` clean), so `applied:true` with NO mutation. Distinguishes a
@@ -63,6 +142,43 @@ export declare const DeliveryReceipt: z.ZodObject<{
63
142
  reason?: string | null | undefined;
64
143
  }>;
65
144
  targetPreimageSha: z.ZodString;
145
+ /** #535: why an object delivery refused, typed, with the paths it concerns. */
146
+ refusal: z.ZodOptional<z.ZodObject<{
147
+ code: z.ZodEnum<["result_objects_missing", "delivery_conflict", "delivery_pairing_mismatch", "delivery_target_changed", "delivery_path_occupied", "delivery_outside_sparse_checkout", "delivery_content_mismatch", "revert_conflict", "revert_target_changed", "pr_unrendered_result", "result_path_encoding", "space_insufficient", "git_stalled", "git_signal", "git_failed"]>;
148
+ message: z.ZodString;
149
+ paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
150
+ pathCount: z.ZodDefault<z.ZodNumber>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
153
+ message: string;
154
+ paths: string[];
155
+ pathCount: number;
156
+ }, {
157
+ code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
158
+ message: string;
159
+ paths?: string[] | undefined;
160
+ pathCount?: number | undefined;
161
+ }>>;
162
+ /** #535: the actual pair an object delivery wrote; revert runs on it. */
163
+ deliveryPair: z.ZodOptional<z.ZodObject<{
164
+ schema: z.ZodLiteral<"git_objects/v1">;
165
+ object_format: z.ZodEnum<["sha1", "sha256"]>;
166
+ pre_commit: z.ZodString;
167
+ pre_tree: z.ZodString;
168
+ post_tree: z.ZodString;
169
+ }, "strip", z.ZodTypeAny, {
170
+ schema: "git_objects/v1";
171
+ object_format: "sha1" | "sha256";
172
+ pre_commit: string;
173
+ pre_tree: string;
174
+ post_tree: string;
175
+ }, {
176
+ schema: "git_objects/v1";
177
+ object_format: "sha1" | "sha256";
178
+ pre_commit: string;
179
+ pre_tree: string;
180
+ post_tree: string;
181
+ }>>;
66
182
  }, "strict", z.ZodTypeAny, {
67
183
  mode: "apply" | "branch" | "commit" | "pr";
68
184
  applied: boolean;
@@ -73,6 +189,16 @@ export declare const DeliveryReceipt: z.ZodObject<{
73
189
  detail?: string | undefined;
74
190
  treeMutated?: boolean | undefined;
75
191
  refused?: boolean | undefined;
192
+ publicationRefusal?: {
193
+ code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
194
+ detail: string;
195
+ findings?: {
196
+ ruleId: string;
197
+ location: string;
198
+ line: number | null;
199
+ commit: string | null;
200
+ }[] | undefined;
201
+ } | undefined;
76
202
  alreadyApplied: boolean;
77
203
  deliveryStatus?: "already_applied" | "applied" | "refused" | undefined;
78
204
  finalVerify: {
@@ -89,6 +215,19 @@ export declare const DeliveryReceipt: z.ZodObject<{
89
215
  reason: string | null;
90
216
  };
91
217
  targetPreimageSha: string;
218
+ refusal?: {
219
+ code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
220
+ message: string;
221
+ paths: string[];
222
+ pathCount: number;
223
+ } | undefined;
224
+ deliveryPair?: {
225
+ schema: "git_objects/v1";
226
+ object_format: "sha1" | "sha256";
227
+ pre_commit: string;
228
+ pre_tree: string;
229
+ post_tree: string;
230
+ } | undefined;
92
231
  }, {
93
232
  mode: "apply" | "branch" | "commit" | "pr";
94
233
  applied: boolean;
@@ -99,6 +238,16 @@ export declare const DeliveryReceipt: z.ZodObject<{
99
238
  detail?: string | undefined;
100
239
  treeMutated?: boolean | undefined;
101
240
  refused?: boolean | undefined;
241
+ publicationRefusal?: {
242
+ code: "publication_scan_failed" | "publication_scan_findings" | "publication_scan_unavailable";
243
+ detail: string;
244
+ findings?: {
245
+ ruleId: string;
246
+ location: string;
247
+ line: number | null;
248
+ commit: string | null;
249
+ }[] | undefined;
250
+ } | undefined;
102
251
  alreadyApplied?: boolean | undefined;
103
252
  deliveryStatus?: "already_applied" | "applied" | "refused" | undefined;
104
253
  finalVerify: {
@@ -115,6 +264,19 @@ export declare const DeliveryReceipt: z.ZodObject<{
115
264
  reason?: string | null | undefined;
116
265
  };
117
266
  targetPreimageSha: string;
267
+ refusal?: {
268
+ code: "delivery_conflict" | "delivery_content_mismatch" | "delivery_outside_sparse_checkout" | "delivery_pairing_mismatch" | "delivery_path_occupied" | "delivery_target_changed" | "git_failed" | "git_signal" | "git_stalled" | "pr_unrendered_result" | "result_objects_missing" | "result_path_encoding" | "revert_conflict" | "revert_target_changed" | "space_insufficient";
269
+ message: string;
270
+ paths?: string[] | undefined;
271
+ pathCount?: number | undefined;
272
+ } | undefined;
273
+ deliveryPair?: {
274
+ schema: "git_objects/v1";
275
+ object_format: "sha1" | "sha256";
276
+ pre_commit: string;
277
+ pre_tree: string;
278
+ post_tree: string;
279
+ } | undefined;
118
280
  }>;
119
281
  export type DeliveryReceipt = z.infer<typeof DeliveryReceipt>;
120
282
  //# sourceMappingURL=delivery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delivery.d.ts","sourceRoot":"","sources":["../src/delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,yFAAyF;AACzF,eAAO,MAAM,eAAe;;;;;;;;;;IAWxB;;;;qCAIiC;;IAKjC;4EACwE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASH,CAAC;AAC1E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"delivery.d.ts","sourceRoot":"","sources":["../src/delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B;2EAC2E;AAC3E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BqC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,yFAAyF;AACzF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcxB;;;;qCAIiC;;IAKjC;4EACwE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOxE,+EAA+E;;;;;;;;;;;;;;;;;IAI/E,yEAAyE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMJ,CAAC;AAC1E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
package/dist/delivery.js CHANGED
@@ -1,5 +1,32 @@
1
1
  import { z } from "zod/v3";
2
2
  import { FinalVerifyRecord } from "./decision.js";
3
+ import { GitDeliveryPair, GitResultRefusal } from "./git-result.js";
4
+ /** Why the publication scanner stopped `pr` before anything left the machine
5
+ * (INV-146). Findings name rule and place only, never the matched text. */
6
+ export const PublicationRefusal = z
7
+ .object({
8
+ code: z
9
+ .enum([
10
+ "publication_scan_findings",
11
+ "publication_scan_unavailable",
12
+ "publication_scan_failed",
13
+ ])
14
+ .describe("findings = the scanner reported secret-like content; unavailable = no pinned scanner; failed = the scan could not prove its result."),
15
+ detail: z.string().describe("Human-readable refusal, without any matched value."),
16
+ findings: z
17
+ .array(z
18
+ .object({
19
+ ruleId: z.string().describe("Scanner rule that matched."),
20
+ location: z.string().describe("Outgoing file path or metadata label."),
21
+ line: z.number().int().nullable().describe("1-based line, when known."),
22
+ commit: z.string().nullable().describe("Outgoing commit holding the finding."),
23
+ })
24
+ .strict())
25
+ .optional()
26
+ .describe("Present for publication_scan_findings."),
27
+ })
28
+ .strict()
29
+ .describe("Typed publication-scanner refusal of a `pr` delivery.");
3
30
  /** Immutable evidence for one DeliveryService attempt, shared by every apply surface. */
4
31
  export const DeliveryReceipt = z
5
32
  .object({
@@ -12,6 +39,7 @@ export const DeliveryReceipt = z
12
39
  detail: z.string().optional(),
13
40
  treeMutated: z.boolean().optional(),
14
41
  refused: z.boolean().optional(),
42
+ publicationRefusal: PublicationRefusal.optional().describe("Set when the publication scanner refused a `pr` delivery before any branch, commit or push."),
15
43
  /** #26: TRUE when this delivery was an idempotent already-applied no-op —
16
44
  * the tree was already this patch's exact postimage (reverse `git apply
17
45
  * --check` clean), so `applied:true` with NO mutation. Distinguishes a
@@ -29,6 +57,10 @@ export const DeliveryReceipt = z
29
57
  .describe("Coarse typed delivery disposition (applied / already_applied / refused)."),
30
58
  finalVerify: FinalVerifyRecord.describe("Fresh verifier evidence for this delivery attempt."),
31
59
  targetPreimageSha: z.string().describe("Target snapshot verified immediately before delivery."),
60
+ /** #535: why an object delivery refused, typed, with the paths it concerns. */
61
+ refusal: GitResultRefusal.optional().describe("Typed refusal of an object-result delivery (code, message, bounded paths); absent on success or a legacy patch refusal."),
62
+ /** #535: the actual pair an object delivery wrote; revert runs on it. */
63
+ deliveryPair: GitDeliveryPair.optional().describe("Pre/post trees of an object-result delivery whose write is on the target (revert runs on this pair); absent when nothing of it stayed, and for a legacy patch delivery."),
32
64
  })
33
65
  .strict()
34
66
  .describe("Immutable receipt for a freshly verified delivery attempt.");
@@ -1 +1 @@
1
- {"version":3,"file":"delivery.js","sourceRoot":"","sources":["../src/delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,yFAAyF;AACzF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,CA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CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,kBAAkB,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACxD,6FAA6F,CAC9F;IACD;;;;qCAIiC;IACjC,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,gFAAgF,CAAC;IAC7F;4EACwE;IACxE,cAAc,EAAE,CAAC;SACd,IAAI,CAAC,CAAC,SAAS,EAAE,iBAAiB,EAAE,SAAS,CAAC,CAAC;SAC/C,QAAQ,EAAE;SACV,QAAQ,CAAC,0EAA0E,CAAC;IACvF,WAAW,EAAE,iBAAiB,CAAC,QAAQ,CAAC,oDAAoD,CAAC;IAC7F,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uDAAuD,CAAC;IAC/F,+EAA+E;IAC/E,OAAO,EAAE,gBAAgB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC3C,yHAAyH,CAC1H;IACD,yEAAyE;IACzE,YAAY,EAAE,eAAe,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/C,yKAAyK,CAC1K;CACF,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CAAC,4DAA4D,CAAC,CAAC"}
package/dist/events.d.ts CHANGED
@@ -56,7 +56,7 @@ export declare const JournaledRunCreatedPayload: z.ZodObject<{
56
56
  prompt_bytes: z.ZodNumber;
57
57
  }, z.ZodTypeAny, "passthrough">>;
58
58
  export type JournaledRunCreatedPayload = z.infer<typeof JournaledRunCreatedPayload>;
59
- export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "interaction.withdrawn", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied", "run.continuity", "workspace.retained"]>;
59
+ export declare const RunEventType: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "interaction.withdrawn", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied", "run.continuity", "workspace.retained", "workspace.settlement_failed"]>;
60
60
  export type RunEventType = z.infer<typeof RunEventType>;
61
61
  /**
62
62
  * Typed receipt emitted only after a user-facing run artifact has materialized.
@@ -156,8 +156,9 @@ export type RouteFallbackPayload = z.infer<typeof RouteFallbackPayload>;
156
156
  /**
157
157
  * Typed payload for the `route.primary.diverged` event. Emitted at route
158
158
  * selection when a run's requested/sticky PRIMARY harness is not the harness
159
- * that will actually run (its account was quota-exhausted / on cooldown, or the
160
- * route was unavailable), so the composer's visible harness choice silently
159
+ * that will actually run (its account was quota-exhausted / on cooldown, the
160
+ * route was unavailable, or it is degraded and the Auto pool admits only
161
+ * doctor-ok routes), so the composer's visible harness choice silently
161
162
  * would not have applied. The orchestrator validates this before stamping it, so
162
163
  * the divergence is always evidence-backed — the receipt discloses "requested
163
164
  * <requested> → ran on <effective> (<reason>)" from real facts, never invented.
@@ -248,7 +249,7 @@ export declare const RunEvent: z.ZodObject<{
248
249
  /** Thread this run is a turn of, when any. Lets the global event multiplex
249
250
  * route live progress to a chat surface without a reverse job lookup. */
250
251
  thread_id: z.ZodOptional<z.ZodString>;
251
- type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "interaction.withdrawn", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied", "run.continuity", "workspace.retained"]>;
252
+ type: z.ZodEnum<["run.created", "task.contract.created", "context.pack.created", "project.git.initialized", "project.claude_bridge.created", "budget.lease.created", "budget.observation", "budget.cash", "policy.web.upgraded", "harness.started", "harness.event", "harness.completed", "route.fallback.started", "route.fallback.completed", "route.fallback.exhausted", "route.transient.detected", "route.transient.retry_scheduled", "route.profile.headroom_exceeded", "route.profile.rotated", "route.profile.rotation_exhausted", "route.profile.credential_unusable", "route.account.pool_selected", "route.account.lane_switch", "route.account.pool_exhausted", "route.transient.exhausted", "route.fallback.auth_switched", "route.primary.diverged", "route.pool.degraded", "session.continuity", "interaction.requested", "interaction.answered", "interaction.timeout", "interaction.answer_discarded", "interaction.withdrawn", "message.accepted", "message.delivered", "message.refused", "plan.progress", "plan.questions", "plan.brief.materialized", "council.started", "council.draft", "council.member.failed", "council.merged", "budget.quota_pressure", "delegation.belt.unavailable", "delegation.belt.degraded", "output.ready", "gate.started", "gate.completed", "review.preflight", "review.started", "review.skipped", "reviewer.started", "reviewer.first_event", "reviewer.auth_switched", "reviewer.completed", "reviewer.timed_out", "reviewer.failed", "finding.revalidated", "synthesis.started", "arbitration.completed", "work_product.emitted", "work_product.adopted", "control.requested", "control.applied", "control.rejected", "run.blocked", "run.completed", "run.failed", "run.continuation", "run.continuation.denied", "run.continuity", "workspace.retained", "workspace.settlement_failed"]>;
252
253
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
253
254
  }, "strip", z.ZodTypeAny, {
254
255
  seq?: number | undefined;
@@ -256,7 +257,7 @@ export declare const RunEvent: z.ZodObject<{
256
257
  run_id: string;
257
258
  task_id: string;
258
259
  thread_id?: string | undefined;
259
- type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "interaction.withdrawn" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.continuity" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted" | "workspace.retained";
260
+ type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "interaction.withdrawn" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.continuity" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted" | "workspace.retained" | "workspace.settlement_failed";
260
261
  payload: Record<string, unknown>;
261
262
  }, {
262
263
  seq?: number | undefined;
@@ -264,7 +265,7 @@ export declare const RunEvent: z.ZodObject<{
264
265
  run_id: string;
265
266
  task_id: string;
266
267
  thread_id?: string | undefined;
267
- type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "interaction.withdrawn" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.continuity" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted" | "workspace.retained";
268
+ type: "arbitration.completed" | "budget.cash" | "budget.lease.created" | "budget.observation" | "budget.quota_pressure" | "context.pack.created" | "control.applied" | "control.rejected" | "control.requested" | "council.draft" | "council.member.failed" | "council.merged" | "council.started" | "delegation.belt.degraded" | "delegation.belt.unavailable" | "finding.revalidated" | "gate.completed" | "gate.started" | "harness.completed" | "harness.event" | "harness.started" | "interaction.answer_discarded" | "interaction.answered" | "interaction.requested" | "interaction.timeout" | "interaction.withdrawn" | "message.accepted" | "message.delivered" | "message.refused" | "output.ready" | "plan.brief.materialized" | "plan.progress" | "plan.questions" | "policy.web.upgraded" | "project.claude_bridge.created" | "project.git.initialized" | "review.preflight" | "review.skipped" | "review.started" | "reviewer.auth_switched" | "reviewer.completed" | "reviewer.failed" | "reviewer.first_event" | "reviewer.started" | "reviewer.timed_out" | "route.account.lane_switch" | "route.account.pool_exhausted" | "route.account.pool_selected" | "route.fallback.auth_switched" | "route.fallback.completed" | "route.fallback.exhausted" | "route.fallback.started" | "route.pool.degraded" | "route.primary.diverged" | "route.profile.credential_unusable" | "route.profile.headroom_exceeded" | "route.profile.rotated" | "route.profile.rotation_exhausted" | "route.transient.detected" | "route.transient.exhausted" | "route.transient.retry_scheduled" | "run.blocked" | "run.completed" | "run.continuation" | "run.continuation.denied" | "run.continuity" | "run.created" | "run.failed" | "session.continuity" | "synthesis.started" | "task.contract.created" | "work_product.adopted" | "work_product.emitted" | "workspace.retained" | "workspace.settlement_failed";
268
269
  payload?: Record<string, unknown> | undefined;
269
270
  }>;
270
271
  export type RunEvent = z.infer<typeof RunEvent>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAU4C,CAAC;AAC7E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;;;;;;;;;;EAoBxB,CAAC;AACJ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;gCAiBpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEpF,eAAO,MAAM,YAAY,+sDA8KtB,CAAC;AACJ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAY+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ1C,CAAC;AACF,MAAM,MAAM,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;;EAyBlC,CAAC;AACJ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,iDAAiD;AACjD,eAAO,MAAM,QAAQ;IAEjB;;;;OAIG;;;;;IAYH;6EACyE;;;;;;;;;;;;;;;;;;;;EAKO,CAAC;AACrF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
package/dist/events.js CHANGED
@@ -44,12 +44,8 @@ export const JournaledRunCreatedPayload = z
44
44
  prompt_sha256: z
45
45
  .string()
46
46
  .regex(/^[0-9a-f]{64}$/)
47
- .describe("sha256 hex digest of the redacted prompt text."),
48
- prompt_bytes: z
49
- .number()
50
- .int()
51
- .nonnegative()
52
- .describe("UTF-8 byte length of the redacted prompt text."),
47
+ .describe("sha256 hex digest of the prompt text."),
48
+ prompt_bytes: z.number().int().nonnegative().describe("UTF-8 byte length of the prompt text."),
53
49
  })
54
50
  .passthrough()
55
51
  .describe("Journaled `run.created` payload: the prompt text is replaced by its sha256 digest and byte " +
@@ -225,6 +221,11 @@ export const RunEventType = z
225
221
  * adoption (`continueFrom`), apply or the discard decision; never removed
226
222
  * automatically. */
227
223
  "workspace.retained",
224
+ /** Settling a kept-or-disposed candidate envelope failed before the
225
+ * deferred terminal was published; the run's outcome is unchanged and the
226
+ * tree may remain. Payload: {attempt_id, envelope_id, root, stage
227
+ * (custody | dispose | retain | resumable), cause}. */
228
+ "workspace.settlement_failed",
228
229
  ])
229
230
  .describe("Type of an append-only run event, covering run lifecycle, contract/context creation, budget, routing fallbacks, harness activity, interactions, gates, review, arbitration, work products, and control verbs.");
230
231
  /**
@@ -288,8 +289,9 @@ export const RouteFallbackPayload = z
288
289
  /**
289
290
  * Typed payload for the `route.primary.diverged` event. Emitted at route
290
291
  * selection when a run's requested/sticky PRIMARY harness is not the harness
291
- * that will actually run (its account was quota-exhausted / on cooldown, or the
292
- * route was unavailable), so the composer's visible harness choice silently
292
+ * that will actually run (its account was quota-exhausted / on cooldown, the
293
+ * route was unavailable, or it is degraded and the Auto pool admits only
294
+ * doctor-ok routes), so the composer's visible harness choice silently
293
295
  * would not have applied. The orchestrator validates this before stamping it, so
294
296
  * the divergence is always evidence-backed — the receipt discloses "requested
295
297
  * <requested> → ran on <effective> (<reason>)" from real facts, never invented.