@claudexor/schema 3.20.1 → 3.23.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 (147) hide show
  1. package/dist/agent-capabilities.d.ts +9 -9
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +2 -1
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/command-list.d.ts +108 -37
  6. package/dist/command-list.d.ts.map +1 -1
  7. package/dist/command-list.js +17 -35
  8. package/dist/command-list.js.map +1 -1
  9. package/dist/command-summary.d.ts +8 -0
  10. package/dist/command-summary.d.ts.map +1 -0
  11. package/dist/command-summary.js +33 -0
  12. package/dist/command-summary.js.map +1 -0
  13. package/dist/continuation-admission.d.ts +41 -0
  14. package/dist/continuation-admission.d.ts.map +1 -0
  15. package/dist/continuation-admission.js +136 -0
  16. package/dist/continuation-admission.js.map +1 -0
  17. package/dist/control-operation-responses.d.ts +357 -0
  18. package/dist/control-operation-responses.d.ts.map +1 -1
  19. package/dist/control-operation-responses.js +2 -0
  20. package/dist/control-operation-responses.js.map +1 -1
  21. package/dist/control-run-detail.d.ts +726 -0
  22. package/dist/control-run-detail.d.ts.map +1 -1
  23. package/dist/control-run-execution.js +1 -1
  24. package/dist/control-run-execution.js.map +1 -1
  25. package/dist/control-thread-requests.d.ts +17 -3
  26. package/dist/control-thread-requests.d.ts.map +1 -1
  27. package/dist/control-thread-requests.js +24 -1
  28. package/dist/control-thread-requests.js.map +1 -1
  29. package/dist/control.d.ts +347 -22
  30. package/dist/control.d.ts.map +1 -1
  31. package/dist/control.js +32 -4
  32. package/dist/control.js.map +1 -1
  33. package/dist/credential-profile-snapshot.d.ts +144 -0
  34. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  35. package/dist/credential-profile.d.ts +1 -1
  36. package/dist/credential-profile.js +1 -1
  37. package/dist/daemon-status.d.ts +177 -0
  38. package/dist/daemon-status.d.ts.map +1 -0
  39. package/dist/daemon-status.js +27 -0
  40. package/dist/daemon-status.js.map +1 -0
  41. package/dist/decision.d.ts +12 -0
  42. package/dist/decision.d.ts.map +1 -1
  43. package/dist/effort.d.ts +33 -12
  44. package/dist/effort.d.ts.map +1 -1
  45. package/dist/effort.js +43 -13
  46. package/dist/effort.js.map +1 -1
  47. package/dist/events.d.ts +4 -4
  48. package/dist/events.d.ts.map +1 -1
  49. package/dist/events.js +11 -0
  50. package/dist/events.js.map +1 -1
  51. package/dist/harness.d.ts +16 -9
  52. package/dist/harness.d.ts.map +1 -1
  53. package/dist/harness.js +3 -3
  54. package/dist/index.d.ts +6 -0
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +6 -0
  57. package/dist/index.js.map +1 -1
  58. package/dist/mcp-run-result.d.ts +155 -0
  59. package/dist/mcp-run-result.d.ts.map +1 -1
  60. package/dist/mcp-run-result.js +38 -0
  61. package/dist/mcp-run-result.js.map +1 -1
  62. package/dist/project.d.ts +2 -2
  63. package/dist/project.d.ts.map +1 -1
  64. package/dist/project.js +3 -3
  65. package/dist/project.js.map +1 -1
  66. package/dist/quota.d.ts +252 -0
  67. package/dist/quota.d.ts.map +1 -1
  68. package/dist/quota.js +42 -17
  69. package/dist/quota.js.map +1 -1
  70. package/dist/raw.d.ts +1 -1
  71. package/dist/raw.d.ts.map +1 -1
  72. package/dist/raw.js +0 -1
  73. package/dist/raw.js.map +1 -1
  74. package/dist/run-continuation.d.ts +166 -0
  75. package/dist/run-continuation.d.ts.map +1 -0
  76. package/dist/run-continuation.js +65 -0
  77. package/dist/run-continuation.js.map +1 -0
  78. package/dist/run-continuity.d.ts +215 -0
  79. package/dist/run-continuity.d.ts.map +1 -0
  80. package/dist/run-continuity.js +170 -0
  81. package/dist/run-continuity.js.map +1 -0
  82. package/dist/run-facts.d.ts +7 -0
  83. package/dist/run-facts.d.ts.map +1 -1
  84. package/dist/run-list-page.d.ts +74 -0
  85. package/dist/run-list-page.d.ts.map +1 -0
  86. package/dist/run-list-page.js +85 -0
  87. package/dist/run-list-page.js.map +1 -0
  88. package/dist/run-strategy.d.ts +18 -0
  89. package/dist/run-strategy.d.ts.map +1 -1
  90. package/dist/run-strategy.js +15 -0
  91. package/dist/run-strategy.js.map +1 -1
  92. package/dist/status-projection.d.ts +8 -1
  93. package/dist/status-projection.d.ts.map +1 -1
  94. package/dist/status-projection.js +22 -1
  95. package/dist/status-projection.js.map +1 -1
  96. package/dist/telemetry.d.ts +33 -3
  97. package/dist/telemetry.d.ts.map +1 -1
  98. package/dist/telemetry.js +3 -3
  99. package/dist/telemetry.js.map +1 -1
  100. package/dist/thread.d.ts +24 -10
  101. package/dist/thread.d.ts.map +1 -1
  102. package/dist/thread.js +14 -4
  103. package/dist/thread.js.map +1 -1
  104. package/dist/work-report.d.ts +18 -4
  105. package/dist/work-report.d.ts.map +1 -1
  106. package/dist/work-report.js +26 -5
  107. package/dist/work-report.js.map +1 -1
  108. package/generated/AgentCapabilityCatalog.schema.json +5 -4
  109. package/generated/CommandListQuery.schema.json +204 -0
  110. package/generated/ControlCredentialProfilesQueryResponse.schema.json +21 -6
  111. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +21 -6
  112. package/generated/ControlDaemonStatus.schema.json +150 -0
  113. package/generated/ControlHarnessListResponse.schema.json +1 -1
  114. package/generated/ControlHarnessSettingsPatch.schema.json +1 -1
  115. package/generated/ControlProjectRemoveReceipt.schema.json +1 -1
  116. package/generated/ControlQuotaResponse.schema.json +20 -5
  117. package/generated/ControlRetainedEnvelope.schema.json +63 -0
  118. package/generated/ControlRunAgainDraft.schema.json +17 -1
  119. package/generated/ControlRunDetail.schema.json +406 -1
  120. package/generated/ControlRunListResponse.schema.json +406 -1
  121. package/generated/ControlRunStartRequest.schema.json +17 -1
  122. package/generated/ControlRunSummary.schema.json +406 -1
  123. package/generated/ControlSettingsSnapshot.schema.json +1 -1
  124. package/generated/ControlSettingsUpdateRequest.schema.json +1 -1
  125. package/generated/ControlThread.schema.json +11 -2
  126. package/generated/ControlThreadCreateRequest.schema.json +7 -2
  127. package/generated/ControlThreadDetail.schema.json +25 -3
  128. package/generated/ControlThreadListResponse.schema.json +11 -2
  129. package/generated/ControlThreadTurnRequest.schema.json +4 -0
  130. package/generated/DecisionRecord.schema.json +14 -1
  131. package/generated/EnvelopeCustody.schema.json +195 -0
  132. package/generated/GlobalConfig.schema.json +1 -1
  133. package/generated/HarnessEvent.schema.json +7 -2
  134. package/generated/HarnessManifest.schema.json +1 -1
  135. package/generated/HarnessStatusDto.schema.json +1 -1
  136. package/generated/McpRunHandleResult.schema.json +109 -1
  137. package/generated/McpRunToolResult.schema.json +14 -1
  138. package/generated/RunContinuityReceipt.schema.json +182 -0
  139. package/generated/RunEvent.schema.json +3 -1
  140. package/generated/RunFacts.schema.json +14 -1
  141. package/generated/RunListQuery.schema.json +66 -0
  142. package/generated/RunResumable.schema.json +153 -0
  143. package/generated/RunTelemetry.schema.json +14 -1
  144. package/generated/SessionCapsule.schema.json +78 -0
  145. package/generated/TaskContract.schema.json +1 -1
  146. package/generated/Thread.schema.json +12 -3
  147. package/package.json +2 -2
package/dist/control.d.ts CHANGED
@@ -119,9 +119,6 @@ export declare const ControlRunStartRequest: z.ZodObject<{
119
119
  * startup-frozen Council cap. Legal only on mode=plan (and `n` on a plan
120
120
  * run is legal ONLY with council). */
121
121
  council: z.ZodOptional<z.ZodBoolean>;
122
- /** Best-of-N synthesis policy. `auto` (default) only synthesizes a 3rd
123
- * candidate when n>=3 and candidates genuinely complement; `always`/`never`
124
- * force it. Threaded to the orchestrator's decideSynthesis. */
125
122
  synthesis: z.ZodOptional<z.ZodEnum<["auto", "always", "never"]>>;
126
123
  paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
127
124
  kind: z.ZodLiteral<"unlimited">;
@@ -183,6 +180,9 @@ export declare const ControlRunStartRequest: z.ZodObject<{
183
180
  parentRunId: z.ZodOptional<z.ZodString>;
184
181
  delegatedFromRunId: z.ZodOptional<z.ZodString>;
185
182
  retryOf: z.ZodOptional<z.ZodString>;
183
+ continueFrom: z.ZodOptional<z.ZodString>;
184
+ continueCarrier: z.ZodOptional<z.ZodEnum<["auto", "packet"]>>;
185
+ continueModelInherited: z.ZodOptional<z.ZodBoolean>;
186
186
  /** When set, this turn implements an approved plan (mode is forced to
187
187
  * agent); the plan is DELIVERED AS A FILE (planRef), never re-embedded
188
188
  * into the prompt text. */
@@ -334,6 +334,9 @@ export declare const ControlRunStartRequest: z.ZodObject<{
334
334
  parentRunId?: string | undefined;
335
335
  delegatedFromRunId?: string | undefined;
336
336
  retryOf?: string | undefined;
337
+ continueFrom?: string | undefined;
338
+ continueCarrier?: "auto" | "packet" | undefined;
339
+ continueModelInherited?: boolean | undefined;
337
340
  planRunId?: string | undefined;
338
341
  planRef?: {
339
342
  runId: string;
@@ -419,6 +422,9 @@ export declare const ControlRunStartRequest: z.ZodObject<{
419
422
  parentRunId?: string | undefined;
420
423
  delegatedFromRunId?: string | undefined;
421
424
  retryOf?: string | undefined;
425
+ continueFrom?: string | undefined;
426
+ continueCarrier?: "auto" | "packet" | undefined;
427
+ continueModelInherited?: boolean | undefined;
422
428
  planRunId?: string | undefined;
423
429
  planRef?: {
424
430
  runId: string;
@@ -563,6 +569,9 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
563
569
  parentRunId: z.ZodOptional<z.ZodString>;
564
570
  delegatedFromRunId: z.ZodOptional<z.ZodString>;
565
571
  retryOf: z.ZodOptional<z.ZodString>;
572
+ continueFrom: z.ZodOptional<z.ZodString>;
573
+ continueCarrier: z.ZodOptional<z.ZodEnum<["auto", "packet"]>>;
574
+ continueModelInherited: z.ZodOptional<z.ZodBoolean>;
566
575
  planRunId: z.ZodOptional<z.ZodString>;
567
576
  planRef: z.ZodOptional<z.ZodObject<{
568
577
  runId: z.ZodString;
@@ -673,6 +682,9 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
673
682
  parentRunId?: string | undefined;
674
683
  delegatedFromRunId?: string | undefined;
675
684
  retryOf?: string | undefined;
685
+ continueFrom?: string | undefined;
686
+ continueCarrier?: "auto" | "packet" | undefined;
687
+ continueModelInherited?: boolean | undefined;
676
688
  planRunId?: string | undefined;
677
689
  planRef?: {
678
690
  runId: string;
@@ -758,6 +770,9 @@ export declare const RecordedControlRunStartRequest: z.ZodObject<{
758
770
  parentRunId?: string | undefined;
759
771
  delegatedFromRunId?: string | undefined;
760
772
  retryOf?: string | undefined;
773
+ continueFrom?: string | undefined;
774
+ continueCarrier?: "auto" | "packet" | undefined;
775
+ continueModelInherited?: boolean | undefined;
761
776
  planRunId?: string | undefined;
762
777
  planRef?: {
763
778
  runId: string;
@@ -912,9 +927,6 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
912
927
  * startup-frozen Council cap. Legal only on mode=plan (and `n` on a plan
913
928
  * run is legal ONLY with council). */
914
929
  council: z.ZodOptional<z.ZodBoolean>;
915
- /** Best-of-N synthesis policy. `auto` (default) only synthesizes a 3rd
916
- * candidate when n>=3 and candidates genuinely complement; `always`/`never`
917
- * force it. Threaded to the orchestrator's decideSynthesis. */
918
930
  synthesis: z.ZodOptional<z.ZodEnum<["auto", "always", "never"]>>;
919
931
  paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
920
932
  kind: z.ZodLiteral<"unlimited">;
@@ -976,6 +988,9 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
976
988
  parentRunId: z.ZodOptional<z.ZodString>;
977
989
  delegatedFromRunId: z.ZodOptional<z.ZodString>;
978
990
  retryOf: z.ZodOptional<z.ZodString>;
991
+ continueFrom: z.ZodOptional<z.ZodString>;
992
+ continueCarrier: z.ZodOptional<z.ZodEnum<["auto", "packet"]>>;
993
+ continueModelInherited: z.ZodOptional<z.ZodBoolean>;
979
994
  /** When set, this turn implements an approved plan (mode is forced to
980
995
  * agent); the plan is DELIVERED AS A FILE (planRef), never re-embedded
981
996
  * into the prompt text. */
@@ -1127,6 +1142,9 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
1127
1142
  parentRunId?: string | undefined;
1128
1143
  delegatedFromRunId?: string | undefined;
1129
1144
  retryOf?: string | undefined;
1145
+ continueFrom?: string | undefined;
1146
+ continueCarrier?: "auto" | "packet" | undefined;
1147
+ continueModelInherited?: boolean | undefined;
1130
1148
  planRunId?: string | undefined;
1131
1149
  planRef?: {
1132
1150
  runId: string;
@@ -1212,6 +1230,9 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
1212
1230
  parentRunId?: string | undefined;
1213
1231
  delegatedFromRunId?: string | undefined;
1214
1232
  retryOf?: string | undefined;
1233
+ continueFrom?: string | undefined;
1234
+ continueCarrier?: "auto" | "packet" | undefined;
1235
+ continueModelInherited?: boolean | undefined;
1215
1236
  planRunId?: string | undefined;
1216
1237
  planRef?: {
1217
1238
  runId: string;
@@ -1320,6 +1341,9 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
1320
1341
  parentRunId?: string | undefined;
1321
1342
  delegatedFromRunId?: string | undefined;
1322
1343
  retryOf?: string | undefined;
1344
+ continueFrom?: string | undefined;
1345
+ continueCarrier?: "auto" | "packet" | undefined;
1346
+ continueModelInherited?: boolean | undefined;
1323
1347
  planRunId?: string | undefined;
1324
1348
  planRef?: {
1325
1349
  runId: string;
@@ -1416,6 +1440,9 @@ export declare const ControlRunAgainDraft: z.ZodObject<{
1416
1440
  parentRunId?: string | undefined;
1417
1441
  delegatedFromRunId?: string | undefined;
1418
1442
  retryOf?: string | undefined;
1443
+ continueFrom?: string | undefined;
1444
+ continueCarrier?: "auto" | "packet" | undefined;
1445
+ continueModelInherited?: boolean | undefined;
1419
1446
  planRunId?: string | undefined;
1420
1447
  planRef?: {
1421
1448
  runId: string;
@@ -1676,6 +1703,162 @@ export declare const ControlRunSummary: z.ZodObject<{
1676
1703
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
1677
1704
  remediation?: string | null | undefined;
1678
1705
  }>>>;
1706
+ continueFrom: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1707
+ resumable: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1708
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1709
+ resetsAt: z.ZodNullable<z.ZodString>;
1710
+ limitWindow: z.ZodNullable<z.ZodString>;
1711
+ limitEvidence: z.ZodNullable<z.ZodEnum<["window", "unspecified"]>>;
1712
+ carriers: z.ZodArray<z.ZodEnum<["native", "native_moved", "packet"]>, "many">;
1713
+ limitCode: z.ZodNullable<z.ZodString>;
1714
+ session: z.ZodNullable<z.ZodObject<{
1715
+ harness: z.ZodString;
1716
+ nativeSessionId: z.ZodString;
1717
+ holderProfileId: z.ZodNullable<z.ZodString>;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ harness: string;
1720
+ nativeSessionId: string;
1721
+ holderProfileId: string | null;
1722
+ }, {
1723
+ harness: string;
1724
+ nativeSessionId: string;
1725
+ holderProfileId: string | null;
1726
+ }>>;
1727
+ workspace: z.ZodObject<{
1728
+ kind: z.ZodEnum<["in_place", "retained_envelope", "none"]>;
1729
+ root: z.ZodNullable<z.ZodString>;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ kind: "in_place" | "none" | "retained_envelope";
1732
+ root: string | null;
1733
+ }, {
1734
+ kind: "in_place" | "none" | "retained_envelope";
1735
+ root: string | null;
1736
+ }>;
1737
+ }, "strict", z.ZodTypeAny, {
1738
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1739
+ resetsAt: string | null;
1740
+ limitWindow: string | null;
1741
+ limitEvidence: "unspecified" | "window" | null;
1742
+ carriers: ("native" | "native_moved" | "packet")[];
1743
+ limitCode: string | null;
1744
+ session: {
1745
+ harness: string;
1746
+ nativeSessionId: string;
1747
+ holderProfileId: string | null;
1748
+ } | null;
1749
+ workspace: {
1750
+ kind: "in_place" | "none" | "retained_envelope";
1751
+ root: string | null;
1752
+ };
1753
+ }, {
1754
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1755
+ resetsAt: string | null;
1756
+ limitWindow: string | null;
1757
+ limitEvidence: "unspecified" | "window" | null;
1758
+ carriers: ("native" | "native_moved" | "packet")[];
1759
+ limitCode: string | null;
1760
+ session: {
1761
+ harness: string;
1762
+ nativeSessionId: string;
1763
+ holderProfileId: string | null;
1764
+ } | null;
1765
+ workspace: {
1766
+ kind: "in_place" | "none" | "retained_envelope";
1767
+ root: string | null;
1768
+ };
1769
+ }>>>;
1770
+ continuity: z.ZodOptional<z.ZodArray<z.ZodObject<{
1771
+ tryIndex: z.ZodNumber;
1772
+ attemptId: z.ZodString;
1773
+ carrier: z.ZodEnum<["native", "native_moved", "packet", "fresh"]>;
1774
+ cause: z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>;
1775
+ from: z.ZodObject<{
1776
+ runId: z.ZodString;
1777
+ attemptId: z.ZodString;
1778
+ profileId: z.ZodNullable<z.ZodString>;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ runId: string;
1781
+ attemptId: string;
1782
+ profileId: string | null;
1783
+ }, {
1784
+ runId: string;
1785
+ attemptId: string;
1786
+ profileId: string | null;
1787
+ }>;
1788
+ to: z.ZodObject<{
1789
+ profileId: z.ZodNullable<z.ZodString>;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ profileId: string | null;
1792
+ }, {
1793
+ profileId: string | null;
1794
+ }>;
1795
+ workspace: z.ZodEnum<["same_root", "different_root"]>;
1796
+ memory: z.ZodEnum<["full", "partial", "unknown"]>;
1797
+ instructions: z.ZodEnum<["as_sent", "vendor_snapshot"]>;
1798
+ reingestedTokens: z.ZodNullable<z.ZodNumber>;
1799
+ observedModel: z.ZodNullable<z.ZodString>;
1800
+ modelMismatch: z.ZodNullable<z.ZodBoolean>;
1801
+ identityCheck: z.ZodEnum<["matched_before_effects", "mismatch_before_effects", "mismatch_after_possible_effects", "not_applicable"]>;
1802
+ inputDelivery: z.ZodEnum<["confirmed", "uncertain", "not_applicable"]>;
1803
+ }, "strict", z.ZodTypeAny, {
1804
+ tryIndex: number;
1805
+ attemptId: string;
1806
+ carrier: "fresh" | "native" | "native_moved" | "packet";
1807
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1808
+ from: {
1809
+ runId: string;
1810
+ attemptId: string;
1811
+ profileId: string | null;
1812
+ };
1813
+ to: {
1814
+ profileId: string | null;
1815
+ };
1816
+ workspace: "different_root" | "same_root";
1817
+ memory: "full" | "partial" | "unknown";
1818
+ instructions: "as_sent" | "vendor_snapshot";
1819
+ reingestedTokens: number | null;
1820
+ observedModel: string | null;
1821
+ modelMismatch: boolean | null;
1822
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1823
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1824
+ }, {
1825
+ tryIndex: number;
1826
+ attemptId: string;
1827
+ carrier: "fresh" | "native" | "native_moved" | "packet";
1828
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
1829
+ from: {
1830
+ runId: string;
1831
+ attemptId: string;
1832
+ profileId: string | null;
1833
+ };
1834
+ to: {
1835
+ profileId: string | null;
1836
+ };
1837
+ workspace: "different_root" | "same_root";
1838
+ memory: "full" | "partial" | "unknown";
1839
+ instructions: "as_sent" | "vendor_snapshot";
1840
+ reingestedTokens: number | null;
1841
+ observedModel: string | null;
1842
+ modelMismatch: boolean | null;
1843
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
1844
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
1845
+ }>, "many">>;
1846
+ retainedEnvelope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1847
+ root: z.ZodString;
1848
+ bytes: z.ZodNullable<z.ZodNumber>;
1849
+ retainedAt: z.ZodString;
1850
+ cause: z.ZodNullable<z.ZodEnum<["vendor_limit", "pool_exhausted", "pinned_limit", "transport", "context_exhausted", "wall_clock", "cancelled", "host_restart", "input_required", "other"]>>;
1851
+ }, "strict", z.ZodTypeAny, {
1852
+ root: string;
1853
+ bytes: number | null;
1854
+ retainedAt: string;
1855
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1856
+ }, {
1857
+ root: string;
1858
+ bytes: number | null;
1859
+ retainedAt: string;
1860
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
1861
+ }>>>;
1679
1862
  taskId: z.ZodOptional<z.ZodString>;
1680
1863
  state: z.ZodEnum<["queued", "running", "succeeded", "failed", "cancelled", "interrupted"]>;
1681
1864
  runDir: z.ZodOptional<z.ZodString>;
@@ -1833,6 +2016,7 @@ export declare const ControlRunSummary: z.ZodObject<{
1833
2016
  projectName?: string | null | undefined;
1834
2017
  context?: "auto" | "off" | undefined;
1835
2018
  }>>;
2019
+ executionRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1836
2020
  mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
1837
2021
  /** v0.9 engine strategy on the mode (flags, not modes): race width / repair caps / deep-scan / create. */
1838
2022
  strategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<["race", "attempts", "until_clean", "deep_scan", "create"]>>>;
@@ -2119,6 +2303,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2119
2303
  locator?: string | null | undefined;
2120
2304
  description: string;
2121
2305
  }>, "many">>;
2306
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
2122
2307
  }, "strip", z.ZodTypeAny, {
2123
2308
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2124
2309
  source: "absent" | "constrained" | "validated";
@@ -2127,6 +2312,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2127
2312
  locator: string | null;
2128
2313
  description: string;
2129
2314
  }[] | undefined;
2315
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2130
2316
  }, {
2131
2317
  state: "completed" | "incomplete" | "needs_input" | "unverified";
2132
2318
  source: "absent" | "constrained" | "validated";
@@ -2135,6 +2321,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2135
2321
  locator?: string | null | undefined;
2136
2322
  description: string;
2137
2323
  }[] | undefined;
2324
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2138
2325
  }>>;
2139
2326
  }, "strict", z.ZodTypeAny, {
2140
2327
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -2151,6 +2338,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2151
2338
  locator: string | null;
2152
2339
  description: string;
2153
2340
  }[] | undefined;
2341
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2154
2342
  } | undefined;
2155
2343
  }, {
2156
2344
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -2167,6 +2355,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2167
2355
  locator?: string | null | undefined;
2168
2356
  description: string;
2169
2357
  }[] | undefined;
2358
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2170
2359
  } | undefined;
2171
2360
  }>>>;
2172
2361
  /** True while at least one requested interaction has no terminal release. */
@@ -2270,6 +2459,52 @@ export declare const ControlRunSummary: z.ZodObject<{
2270
2459
  reason: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used";
2271
2460
  remediation: string | null;
2272
2461
  } | null;
2462
+ continueFrom: string | null;
2463
+ resumable: {
2464
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2465
+ resetsAt: string | null;
2466
+ limitWindow: string | null;
2467
+ limitEvidence: "unspecified" | "window" | null;
2468
+ carriers: ("native" | "native_moved" | "packet")[];
2469
+ limitCode: string | null;
2470
+ session: {
2471
+ harness: string;
2472
+ nativeSessionId: string;
2473
+ holderProfileId: string | null;
2474
+ } | null;
2475
+ workspace: {
2476
+ kind: "in_place" | "none" | "retained_envelope";
2477
+ root: string | null;
2478
+ };
2479
+ } | null;
2480
+ continuity?: {
2481
+ tryIndex: number;
2482
+ attemptId: string;
2483
+ carrier: "fresh" | "native" | "native_moved" | "packet";
2484
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2485
+ from: {
2486
+ runId: string;
2487
+ attemptId: string;
2488
+ profileId: string | null;
2489
+ };
2490
+ to: {
2491
+ profileId: string | null;
2492
+ };
2493
+ workspace: "different_root" | "same_root";
2494
+ memory: "full" | "partial" | "unknown";
2495
+ instructions: "as_sent" | "vendor_snapshot";
2496
+ reingestedTokens: number | null;
2497
+ observedModel: string | null;
2498
+ modelMismatch: boolean | null;
2499
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
2500
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
2501
+ }[] | undefined;
2502
+ retainedEnvelope: {
2503
+ root: string;
2504
+ bytes: number | null;
2505
+ retainedAt: string;
2506
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2507
+ } | null;
2273
2508
  taskId?: string | undefined;
2274
2509
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
2275
2510
  runDir?: string | undefined;
@@ -2314,6 +2549,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2314
2549
  projectName: string | null;
2315
2550
  context: "auto" | "off";
2316
2551
  };
2552
+ executionRoot: string | null;
2317
2553
  mode?: "agent" | "ask" | "plan" | undefined;
2318
2554
  strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
2319
2555
  prompt?: string | undefined;
@@ -2425,6 +2661,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2425
2661
  locator: string | null;
2426
2662
  description: string;
2427
2663
  }[] | undefined;
2664
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2428
2665
  } | undefined;
2429
2666
  } | null;
2430
2667
  waitingOnUser: boolean;
@@ -2468,6 +2705,52 @@ export declare const ControlRunSummary: z.ZodObject<{
2468
2705
  reason?: "access_profile_incompatible" | "injected_unused" | "manifest_unsupported" | "not_requested" | "partially_degraded" | "pending" | "runtime_unavailable" | "startup_failed" | "used" | undefined;
2469
2706
  remediation?: string | null | undefined;
2470
2707
  } | null | undefined;
2708
+ continueFrom?: string | null | undefined;
2709
+ resumable?: {
2710
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2711
+ resetsAt: string | null;
2712
+ limitWindow: string | null;
2713
+ limitEvidence: "unspecified" | "window" | null;
2714
+ carriers: ("native" | "native_moved" | "packet")[];
2715
+ limitCode: string | null;
2716
+ session: {
2717
+ harness: string;
2718
+ nativeSessionId: string;
2719
+ holderProfileId: string | null;
2720
+ } | null;
2721
+ workspace: {
2722
+ kind: "in_place" | "none" | "retained_envelope";
2723
+ root: string | null;
2724
+ };
2725
+ } | null | undefined;
2726
+ continuity?: {
2727
+ tryIndex: number;
2728
+ attemptId: string;
2729
+ carrier: "fresh" | "native" | "native_moved" | "packet";
2730
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock";
2731
+ from: {
2732
+ runId: string;
2733
+ attemptId: string;
2734
+ profileId: string | null;
2735
+ };
2736
+ to: {
2737
+ profileId: string | null;
2738
+ };
2739
+ workspace: "different_root" | "same_root";
2740
+ memory: "full" | "partial" | "unknown";
2741
+ instructions: "as_sent" | "vendor_snapshot";
2742
+ reingestedTokens: number | null;
2743
+ observedModel: string | null;
2744
+ modelMismatch: boolean | null;
2745
+ identityCheck: "matched_before_effects" | "mismatch_after_possible_effects" | "mismatch_before_effects" | "not_applicable";
2746
+ inputDelivery: "confirmed" | "not_applicable" | "uncertain";
2747
+ }[] | undefined;
2748
+ retainedEnvelope?: {
2749
+ root: string;
2750
+ bytes: number | null;
2751
+ retainedAt: string;
2752
+ cause: "cancelled" | "context_exhausted" | "host_restart" | "input_required" | "other" | "pinned_limit" | "pool_exhausted" | "transport" | "vendor_limit" | "wall_clock" | null;
2753
+ } | null | undefined;
2471
2754
  taskId?: string | undefined;
2472
2755
  state: "cancelled" | "failed" | "interrupted" | "queued" | "running" | "succeeded";
2473
2756
  runDir?: string | undefined;
@@ -2512,6 +2795,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2512
2795
  projectName?: string | null | undefined;
2513
2796
  context?: "auto" | "off" | undefined;
2514
2797
  } | undefined;
2798
+ executionRoot?: string | null | undefined;
2515
2799
  mode?: "agent" | "ask" | "plan" | undefined;
2516
2800
  strategy?: "attempts" | "create" | "deep_scan" | "race" | "until_clean" | null | undefined;
2517
2801
  prompt?: string | undefined;
@@ -2623,6 +2907,7 @@ export declare const ControlRunSummary: z.ZodObject<{
2623
2907
  locator?: string | null | undefined;
2624
2908
  description: string;
2625
2909
  }[] | undefined;
2910
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
2626
2911
  } | undefined;
2627
2912
  } | null | undefined;
2628
2913
  waitingOnUser?: boolean | undefined;
@@ -3158,8 +3443,9 @@ export declare const ControlThread: z.ZodObject<{
3158
3443
  folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3159
3444
  repoRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3160
3445
  mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
3161
- /** How turns touch files (in-place live tree vs isolated worktree). */
3162
- workspaceMode: z.ZodDefault<z.ZodEnum<["in_place", "isolated"]>>;
3446
+ /** How turns touch files (in-place live tree, isolated worktree, delegated root). */
3447
+ workspaceMode: z.ZodDefault<z.ZodEnum<["in_place", "isolated", "delegated"]>>;
3448
+ workspaceRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3163
3449
  authPreference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
3164
3450
  primaryHarness: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3165
3451
  /** Sticky eligible pool for the thread (empty => engine auto-pools). */
@@ -3184,7 +3470,8 @@ export declare const ControlThread: z.ZodObject<{
3184
3470
  folder: string | null;
3185
3471
  repoRoot: string | null;
3186
3472
  mode?: "agent" | "ask" | "plan" | undefined;
3187
- workspaceMode: "in_place" | "isolated";
3473
+ workspaceMode: "delegated" | "in_place" | "isolated";
3474
+ workspaceRoot: string | null;
3188
3475
  authPreference: "api_key" | "auto" | "subscription";
3189
3476
  primaryHarness: string | null;
3190
3477
  eligibleHarnesses: string[];
@@ -3204,7 +3491,8 @@ export declare const ControlThread: z.ZodObject<{
3204
3491
  folder?: string | null | undefined;
3205
3492
  repoRoot?: string | null | undefined;
3206
3493
  mode?: "agent" | "ask" | "plan" | undefined;
3207
- workspaceMode?: "in_place" | "isolated" | undefined;
3494
+ workspaceMode?: "delegated" | "in_place" | "isolated" | undefined;
3495
+ workspaceRoot?: string | null | undefined;
3208
3496
  authPreference?: "api_key" | "auto" | "subscription" | undefined;
3209
3497
  primaryHarness?: string | null | undefined;
3210
3498
  eligibleHarnesses?: string[] | undefined;
@@ -3338,6 +3626,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3338
3626
  locator?: string | null | undefined;
3339
3627
  description: string;
3340
3628
  }>, "many">>;
3629
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
3341
3630
  }, "strip", z.ZodTypeAny, {
3342
3631
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3343
3632
  source: "absent" | "constrained" | "validated";
@@ -3346,6 +3635,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3346
3635
  locator: string | null;
3347
3636
  description: string;
3348
3637
  }[] | undefined;
3638
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3349
3639
  }, {
3350
3640
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3351
3641
  source: "absent" | "constrained" | "validated";
@@ -3354,6 +3644,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3354
3644
  locator?: string | null | undefined;
3355
3645
  description: string;
3356
3646
  }[] | undefined;
3647
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3357
3648
  }>>;
3358
3649
  }, "strict", z.ZodTypeAny, {
3359
3650
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -3370,6 +3661,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3370
3661
  locator: string | null;
3371
3662
  description: string;
3372
3663
  }[] | undefined;
3664
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3373
3665
  } | undefined;
3374
3666
  }, {
3375
3667
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -3386,6 +3678,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3386
3678
  locator?: string | null | undefined;
3387
3679
  description: string;
3388
3680
  }[] | undefined;
3681
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3389
3682
  } | undefined;
3390
3683
  }>>>;
3391
3684
  spendUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3459,6 +3752,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3459
3752
  locator: string | null;
3460
3753
  description: string;
3461
3754
  }[] | undefined;
3755
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3462
3756
  } | undefined;
3463
3757
  } | null;
3464
3758
  spendUsd?: number | null | undefined;
@@ -3508,6 +3802,7 @@ export declare const ControlTurnRunCard: z.ZodObject<{
3508
3802
  locator?: string | null | undefined;
3509
3803
  description: string;
3510
3804
  }[] | undefined;
3805
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3511
3806
  } | undefined;
3512
3807
  } | null | undefined;
3513
3808
  spendUsd?: number | null | undefined;
@@ -3630,6 +3925,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3630
3925
  locator?: string | null | undefined;
3631
3926
  description: string;
3632
3927
  }>, "many">>;
3928
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
3633
3929
  }, "strip", z.ZodTypeAny, {
3634
3930
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3635
3931
  source: "absent" | "constrained" | "validated";
@@ -3638,6 +3934,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3638
3934
  locator: string | null;
3639
3935
  description: string;
3640
3936
  }[] | undefined;
3937
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3641
3938
  }, {
3642
3939
  state: "completed" | "incomplete" | "needs_input" | "unverified";
3643
3940
  source: "absent" | "constrained" | "validated";
@@ -3646,6 +3943,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3646
3943
  locator?: string | null | undefined;
3647
3944
  description: string;
3648
3945
  }[] | undefined;
3946
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3649
3947
  }>>;
3650
3948
  }, "strict", z.ZodTypeAny, {
3651
3949
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -3662,6 +3960,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3662
3960
  locator: string | null;
3663
3961
  description: string;
3664
3962
  }[] | undefined;
3963
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3665
3964
  } | undefined;
3666
3965
  }, {
3667
3966
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -3678,6 +3977,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3678
3977
  locator?: string | null | undefined;
3679
3978
  description: string;
3680
3979
  }[] | undefined;
3980
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3681
3981
  } | undefined;
3682
3982
  }>>>;
3683
3983
  spendUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3751,6 +4051,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3751
4051
  locator: string | null;
3752
4052
  description: string;
3753
4053
  }[] | undefined;
4054
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3754
4055
  } | undefined;
3755
4056
  } | null;
3756
4057
  spendUsd?: number | null | undefined;
@@ -3800,6 +4101,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3800
4101
  locator?: string | null | undefined;
3801
4102
  description: string;
3802
4103
  }[] | undefined;
4104
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3803
4105
  } | undefined;
3804
4106
  } | null | undefined;
3805
4107
  spendUsd?: number | null | undefined;
@@ -3925,6 +4227,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
3925
4227
  locator: string | null;
3926
4228
  description: string;
3927
4229
  }[] | undefined;
4230
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
3928
4231
  } | undefined;
3929
4232
  } | null;
3930
4233
  spendUsd?: number | null | undefined;
@@ -4004,6 +4307,7 @@ export declare const ControlThreadTurn: z.ZodObject<{
4004
4307
  locator?: string | null | undefined;
4005
4308
  description: string;
4006
4309
  }[] | undefined;
4310
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4007
4311
  } | undefined;
4008
4312
  } | null | undefined;
4009
4313
  spendUsd?: number | null | undefined;
@@ -4066,8 +4370,9 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4066
4370
  folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4067
4371
  repoRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4068
4372
  mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
4069
- /** How turns touch files (in-place live tree vs isolated worktree). */
4070
- workspaceMode: z.ZodDefault<z.ZodEnum<["in_place", "isolated"]>>;
4373
+ /** How turns touch files (in-place live tree, isolated worktree, delegated root). */
4374
+ workspaceMode: z.ZodDefault<z.ZodEnum<["in_place", "isolated", "delegated"]>>;
4375
+ workspaceRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4071
4376
  authPreference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
4072
4377
  primaryHarness: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4073
4378
  /** Sticky eligible pool for the thread (empty => engine auto-pools). */
@@ -4092,7 +4397,8 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4092
4397
  folder: string | null;
4093
4398
  repoRoot: string | null;
4094
4399
  mode?: "agent" | "ask" | "plan" | undefined;
4095
- workspaceMode: "in_place" | "isolated";
4400
+ workspaceMode: "delegated" | "in_place" | "isolated";
4401
+ workspaceRoot: string | null;
4096
4402
  authPreference: "api_key" | "auto" | "subscription";
4097
4403
  primaryHarness: string | null;
4098
4404
  eligibleHarnesses: string[];
@@ -4112,7 +4418,8 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4112
4418
  folder?: string | null | undefined;
4113
4419
  repoRoot?: string | null | undefined;
4114
4420
  mode?: "agent" | "ask" | "plan" | undefined;
4115
- workspaceMode?: "in_place" | "isolated" | undefined;
4421
+ workspaceMode?: "delegated" | "in_place" | "isolated" | undefined;
4422
+ workspaceRoot?: string | null | undefined;
4116
4423
  authPreference?: "api_key" | "auto" | "subscription" | undefined;
4117
4424
  primaryHarness?: string | null | undefined;
4118
4425
  eligibleHarnesses?: string[] | undefined;
@@ -4150,7 +4457,8 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4150
4457
  folder: string | null;
4151
4458
  repoRoot: string | null;
4152
4459
  mode?: "agent" | "ask" | "plan" | undefined;
4153
- workspaceMode: "in_place" | "isolated";
4460
+ workspaceMode: "delegated" | "in_place" | "isolated";
4461
+ workspaceRoot: string | null;
4154
4462
  authPreference: "api_key" | "auto" | "subscription";
4155
4463
  primaryHarness: string | null;
4156
4464
  eligibleHarnesses: string[];
@@ -4178,7 +4486,8 @@ export declare const ControlThreadListResponse: z.ZodObject<{
4178
4486
  folder?: string | null | undefined;
4179
4487
  repoRoot?: string | null | undefined;
4180
4488
  mode?: "agent" | "ask" | "plan" | undefined;
4181
- workspaceMode?: "in_place" | "isolated" | undefined;
4489
+ workspaceMode?: "delegated" | "in_place" | "isolated" | undefined;
4490
+ workspaceRoot?: string | null | undefined;
4182
4491
  authPreference?: "api_key" | "auto" | "subscription" | undefined;
4183
4492
  primaryHarness?: string | null | undefined;
4184
4493
  eligibleHarnesses?: string[] | undefined;
@@ -4208,8 +4517,9 @@ export declare const ControlThreadDetail: z.ZodObject<{
4208
4517
  folder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4209
4518
  repoRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4210
4519
  mode: z.ZodOptional<z.ZodEnum<["ask", "plan", "agent"]>>;
4211
- /** How turns touch files (in-place live tree vs isolated worktree). */
4212
- workspaceMode: z.ZodDefault<z.ZodEnum<["in_place", "isolated"]>>;
4520
+ /** How turns touch files (in-place live tree, isolated worktree, delegated root). */
4521
+ workspaceMode: z.ZodDefault<z.ZodEnum<["in_place", "isolated", "delegated"]>>;
4522
+ workspaceRoot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4213
4523
  authPreference: z.ZodDefault<z.ZodEnum<["subscription", "api_key", "auto"]>>;
4214
4524
  primaryHarness: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4215
4525
  /** Sticky eligible pool for the thread (empty => engine auto-pools). */
@@ -4234,7 +4544,8 @@ export declare const ControlThreadDetail: z.ZodObject<{
4234
4544
  folder: string | null;
4235
4545
  repoRoot: string | null;
4236
4546
  mode?: "agent" | "ask" | "plan" | undefined;
4237
- workspaceMode: "in_place" | "isolated";
4547
+ workspaceMode: "delegated" | "in_place" | "isolated";
4548
+ workspaceRoot: string | null;
4238
4549
  authPreference: "api_key" | "auto" | "subscription";
4239
4550
  primaryHarness: string | null;
4240
4551
  eligibleHarnesses: string[];
@@ -4254,7 +4565,8 @@ export declare const ControlThreadDetail: z.ZodObject<{
4254
4565
  folder?: string | null | undefined;
4255
4566
  repoRoot?: string | null | undefined;
4256
4567
  mode?: "agent" | "ask" | "plan" | undefined;
4257
- workspaceMode?: "in_place" | "isolated" | undefined;
4568
+ workspaceMode?: "delegated" | "in_place" | "isolated" | undefined;
4569
+ workspaceRoot?: string | null | undefined;
4258
4570
  authPreference?: "api_key" | "auto" | "subscription" | undefined;
4259
4571
  primaryHarness?: string | null | undefined;
4260
4572
  eligibleHarnesses?: string[] | undefined;
@@ -4403,6 +4715,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4403
4715
  locator?: string | null | undefined;
4404
4716
  description: string;
4405
4717
  }>, "many">>;
4718
+ unverified_reason: z.ZodOptional<z.ZodEnum<["footer_missing", "footer_not_json", "footer_not_object", "report_missing", "report_malformed", "report_contradictory", "legacy_output_invalid"]>>;
4406
4719
  }, "strip", z.ZodTypeAny, {
4407
4720
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4408
4721
  source: "absent" | "constrained" | "validated";
@@ -4411,6 +4724,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4411
4724
  locator: string | null;
4412
4725
  description: string;
4413
4726
  }[] | undefined;
4727
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4414
4728
  }, {
4415
4729
  state: "completed" | "incomplete" | "needs_input" | "unverified";
4416
4730
  source: "absent" | "constrained" | "validated";
@@ -4419,6 +4733,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4419
4733
  locator?: string | null | undefined;
4420
4734
  description: string;
4421
4735
  }[] | undefined;
4736
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4422
4737
  }>>;
4423
4738
  }, "strict", z.ZodTypeAny, {
4424
4739
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -4435,6 +4750,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4435
4750
  locator: string | null;
4436
4751
  description: string;
4437
4752
  }[] | undefined;
4753
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4438
4754
  } | undefined;
4439
4755
  }, {
4440
4756
  lifecycle: "cancelled" | "failed" | "interrupted" | "succeeded";
@@ -4451,6 +4767,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4451
4767
  locator?: string | null | undefined;
4452
4768
  description: string;
4453
4769
  }[] | undefined;
4770
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4454
4771
  } | undefined;
4455
4772
  }>>>;
4456
4773
  spendUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -4524,6 +4841,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4524
4841
  locator: string | null;
4525
4842
  description: string;
4526
4843
  }[] | undefined;
4844
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4527
4845
  } | undefined;
4528
4846
  } | null;
4529
4847
  spendUsd?: number | null | undefined;
@@ -4573,6 +4891,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4573
4891
  locator?: string | null | undefined;
4574
4892
  description: string;
4575
4893
  }[] | undefined;
4894
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4576
4895
  } | undefined;
4577
4896
  } | null | undefined;
4578
4897
  spendUsd?: number | null | undefined;
@@ -4698,6 +5017,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4698
5017
  locator: string | null;
4699
5018
  description: string;
4700
5019
  }[] | undefined;
5020
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4701
5021
  } | undefined;
4702
5022
  } | null;
4703
5023
  spendUsd?: number | null | undefined;
@@ -4777,6 +5097,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4777
5097
  locator?: string | null | undefined;
4778
5098
  description: string;
4779
5099
  }[] | undefined;
5100
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4780
5101
  } | undefined;
4781
5102
  } | null | undefined;
4782
5103
  spendUsd?: number | null | undefined;
@@ -4818,7 +5139,8 @@ export declare const ControlThreadDetail: z.ZodObject<{
4818
5139
  folder: string | null;
4819
5140
  repoRoot: string | null;
4820
5141
  mode?: "agent" | "ask" | "plan" | undefined;
4821
- workspaceMode: "in_place" | "isolated";
5142
+ workspaceMode: "delegated" | "in_place" | "isolated";
5143
+ workspaceRoot: string | null;
4822
5144
  authPreference: "api_key" | "auto" | "subscription";
4823
5145
  primaryHarness: string | null;
4824
5146
  eligibleHarnesses: string[];
@@ -4888,6 +5210,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4888
5210
  locator: string | null;
4889
5211
  description: string;
4890
5212
  }[] | undefined;
5213
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
4891
5214
  } | undefined;
4892
5215
  } | null;
4893
5216
  spendUsd?: number | null | undefined;
@@ -4929,7 +5252,8 @@ export declare const ControlThreadDetail: z.ZodObject<{
4929
5252
  folder?: string | null | undefined;
4930
5253
  repoRoot?: string | null | undefined;
4931
5254
  mode?: "agent" | "ask" | "plan" | undefined;
4932
- workspaceMode?: "in_place" | "isolated" | undefined;
5255
+ workspaceMode?: "delegated" | "in_place" | "isolated" | undefined;
5256
+ workspaceRoot?: string | null | undefined;
4933
5257
  authPreference?: "api_key" | "auto" | "subscription" | undefined;
4934
5258
  primaryHarness?: string | null | undefined;
4935
5259
  eligibleHarnesses?: string[] | undefined;
@@ -4999,6 +5323,7 @@ export declare const ControlThreadDetail: z.ZodObject<{
4999
5323
  locator?: string | null | undefined;
5000
5324
  description: string;
5001
5325
  }[] | undefined;
5326
+ unverified_reason?: "footer_missing" | "footer_not_json" | "footer_not_object" | "legacy_output_invalid" | "report_contradictory" | "report_malformed" | "report_missing" | undefined;
5002
5327
  } | undefined;
5003
5328
  } | null | undefined;
5004
5329
  spendUsd?: number | null | undefined;