@cat-factory/contracts 0.310.0 → 0.312.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.
@@ -6,6 +6,7 @@ import * as v from 'valibot';
6
6
  * - `preflight` — rejected before dispatch (repo missing/not empty, not connected). [bootstrap]
7
7
  * - `dispatch` — the container accept-request itself failed (HTTP / network). [bootstrap]
8
8
  * - `evicted` — the container vanished mid-run (eviction/crash). Retrying spins a fresh one.
9
+ * - `harness_shutdown` : the harness exited cleanly mid-job. It was shut down, not lost.
9
10
  * - `timeout` — a container watchdog fired (inactivity or max-duration).
10
11
  * - `agent` — the agent / git push reported a failure.
11
12
  * - `job_failed` — an async container job came back failed. [execution]
@@ -13,7 +14,7 @@ import * as v from 'valibot';
13
14
  * - `cancelled` — the user (or an orphan sweep) explicitly stopped the run.
14
15
  * - `unknown` — anything not otherwise classified.
15
16
  */
16
- export declare const agentFailureKindSchema: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
17
+ export declare const agentFailureKindSchema: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
17
18
  export type AgentFailureKind = v.InferOutput<typeof agentFailureKindSchema>;
18
19
  /**
19
20
  * Whether a string is a failure kind this build produces — DERIVED from the picklist, so it
@@ -1 +1 @@
1
- {"version":3,"file":"agent-failure-kinds.d.ts","sourceRoot":"","sources":["../src/agent-failure-kinds.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,6MA8BjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAI3E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAE3E"}
1
+ {"version":3,"file":"agent-failure-kinds.d.ts","sourceRoot":"","sources":["../src/agent-failure-kinds.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,iOAmCjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAI3E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAE3E"}
@@ -20,6 +20,7 @@ import * as v from 'valibot';
20
20
  * - `preflight` — rejected before dispatch (repo missing/not empty, not connected). [bootstrap]
21
21
  * - `dispatch` — the container accept-request itself failed (HTTP / network). [bootstrap]
22
22
  * - `evicted` — the container vanished mid-run (eviction/crash). Retrying spins a fresh one.
23
+ * - `harness_shutdown` : the harness exited cleanly mid-job. It was shut down, not lost.
23
24
  * - `timeout` — a container watchdog fired (inactivity or max-duration).
24
25
  * - `agent` — the agent / git push reported a failure.
25
26
  * - `job_failed` — an async container job came back failed. [execution]
@@ -35,6 +36,11 @@ export const agentFailureKindSchema = v.picklist([
35
36
  // never accepting the job). The provider's verbatim error rides the failure `detail`.
36
37
  'environment',
37
38
  'evicted',
39
+ // The harness serving the job EXITED CLEANLY while the job was still running: something shut
40
+ // it down. Split from `evicted` because the two need opposite handling and opposite advice:
41
+ // an eviction is worth a fresh container, and this is not (the run that reported it first had
42
+ // an agent pattern-kill the harness's own process, so every automatic retry reproduced it).
43
+ 'harness_shutdown',
38
44
  'timeout',
39
45
  'agent',
40
46
  'job_failed',
@@ -1 +1 @@
1
- {"version":3,"file":"agent-failure-kinds.js","sourceRoot":"","sources":["../src/agent-failure-kinds.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0FAA0F;AAC1F,iEAAiE;AACjE,EAAE;AACF,2FAA2F;AAC3F,0FAA0F;AAC1F,+FAA+F;AAC/F,0FAA0F;AAC1F,8FAA8F;AAC9F,kFAAkF;AAClF,EAAE;AACF,gGAAgG;AAChG,gCAAgC;AAChC,8EAA8E;AAE9E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC/C,WAAW;IACX,UAAU;IACV,yFAAyF;IACzF,sFAAsF;IACtF,sFAAsF;IACtF,aAAa;IACb,SAAS;IACT,SAAS;IACT,OAAO;IACP,YAAY;IACZ,UAAU;IACV,iFAAiF;IACjF,mFAAmF;IACnF,oFAAoF;IACpF,uEAAuE;IACvE,oBAAoB;IACpB,sFAAsF;IACtF,yFAAyF;IACzF,sFAAsF;IACtF,mFAAmF;IACnF,SAAS;IACT,sFAAsF;IACtF,wFAAwF;IACxF,wFAAwF;IACxF,0FAA0F;IAC1F,4FAA4F;IAC5F,kBAAkB;IAClB,WAAW;IACX,SAAS;CACV,CAAC,CAAA;AAGF,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAA;AAE3F;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC9C,OAAO,sBAAsB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;AAC1C,CAAC"}
1
+ {"version":3,"file":"agent-failure-kinds.js","sourceRoot":"","sources":["../src/agent-failure-kinds.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0FAA0F;AAC1F,iEAAiE;AACjE,EAAE;AACF,2FAA2F;AAC3F,0FAA0F;AAC1F,+FAA+F;AAC/F,0FAA0F;AAC1F,8FAA8F;AAC9F,kFAAkF;AAClF,EAAE;AACF,gGAAgG;AAChG,gCAAgC;AAChC,8EAA8E;AAE9E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC/C,WAAW;IACX,UAAU;IACV,yFAAyF;IACzF,sFAAsF;IACtF,sFAAsF;IACtF,aAAa;IACb,SAAS;IACT,6FAA6F;IAC7F,4FAA4F;IAC5F,8FAA8F;IAC9F,4FAA4F;IAC5F,kBAAkB;IAClB,SAAS;IACT,OAAO;IACP,YAAY;IACZ,UAAU;IACV,iFAAiF;IACjF,mFAAmF;IACnF,oFAAoF;IACpF,uEAAuE;IACvE,oBAAoB;IACpB,sFAAsF;IACtF,yFAAyF;IACzF,sFAAsF;IACtF,mFAAmF;IACnF,SAAS;IACT,sFAAsF;IACtF,wFAAwF;IACxF,wFAAwF;IACxF,0FAA0F;IAC1F,4FAA4F;IAC5F,kBAAkB;IAClB,WAAW;IACX,SAAS;CACV,CAAC,CAAA;AAGF,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAA;AAE3F;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC9C,OAAO,sBAAsB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;AAC1C,CAAC"}
@@ -57,7 +57,7 @@ export type BootstrapFailureKind = v.InferOutput<typeof bootstrapFailureKindSche
57
57
  * stays a narrow alias documenting the subset a bootstrap run actually produces.
58
58
  */
59
59
  export declare const bootstrapFailureSchema: v.ObjectSchema<{
60
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
60
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
61
61
  readonly message: v.StringSchema<undefined>;
62
62
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
63
63
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -118,7 +118,7 @@ export declare const bootstrapJobSchema: v.ObjectSchema<{
118
118
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
119
119
  /** Structured failure diagnostics when `status` is `failed`; null otherwise. */
120
120
  readonly failure: v.NullableSchema<v.ObjectSchema<{
121
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
121
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
122
122
  readonly message: v.StringSchema<undefined>;
123
123
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
124
124
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1,8 +1,12 @@
1
1
  import * as v from 'valibot';
2
2
  /**
3
- * One selectable board on a tracker a Jira project, a Linear team, a GitHub repository.
4
- * `id` is vendor-shaped and handed straight back as the hunt's board scope, so the SPA
5
- * never has to know which of the three notions a source uses.
3
+ * One selectable board on a tracker: a Jira project, a Linear team. `id` is vendor-shaped and
4
+ * handed straight back as the hunt's board scope, so the SPA never has to know which notion a
5
+ * source uses.
6
+ *
7
+ * A REPO-BACKED source (GitHub Issues, GitLab Issues) has nothing to list here: its board is the
8
+ * repository the hunt's service frame is linked to, resolved server-side, so listing one is
9
+ * refused rather than answered with a picker that could scope a hunt at a stranger's repo.
6
10
  */
7
11
  export declare const trackerBoardSchema: v.ObjectSchema<{
8
12
  readonly id: v.StringSchema<undefined>;
@@ -116,7 +120,11 @@ export declare const bugHuntAnalysisStatusSchema: v.PicklistSchema<["ranked", "u
116
120
  export type BugHuntAnalysisStatus = v.InferOutput<typeof bugHuntAnalysisStatusSchema>;
117
121
  export declare const bugHuntResultSchema: v.ObjectSchema<{
118
122
  readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear", "gitlab"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
119
- /** The board the hunt ran against, echoed back so a stale response is recognisable. */
123
+ /**
124
+ * The board the hunt ran against, echoed back so a stale response is recognisable. For a
125
+ * repo-backed source it also names the RESOLVED repository to the person reading the shortlist,
126
+ * rather than leaving that to be inferred from which service they opened the hunt on.
127
+ */
120
128
  readonly board: v.StringSchema<undefined>;
121
129
  readonly analysisStatus: v.PicklistSchema<["ranked", "unavailable", "failed", "over_budget", "empty"], undefined>;
122
130
  /** `provider:model` that produced the ranking, or null when there was none. */
@@ -170,12 +178,29 @@ export declare const bugHuntResultSchema: v.ObjectSchema<{
170
178
  }, undefined>;
171
179
  export type BugHuntResult = v.InferOutput<typeof bugHuntResultSchema>;
172
180
  /**
173
- * Run a hunt. `board` is the vendor-shaped id from {@link trackerBoardSchema} (or typed in
174
- * by hand for a source whose boards can't be listed). The predicates default to the
175
- * tracker's own bug convention — issue type `bug` — and are narrowable per hunt.
181
+ * Run a hunt over one board's open, unassigned bugs. The predicates default to the tracker's
182
+ * own bug convention (issue type `bug`) and are narrowable per hunt.
176
183
  */
177
184
  export declare const runBugHuntSchema: v.ObjectSchema<{
178
- readonly board: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
185
+ /**
186
+ * The service frame (or a module under one) the hunt runs for: where an adopted candidate
187
+ * lands, and (for a REPO-BACKED source) what FIXES the board, since every issue of such a
188
+ * source belongs to one repository and the one this hunt may read is the service's own.
189
+ */
190
+ readonly containerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
191
+ /**
192
+ * The board to scan, as the vendor-shaped id from {@link trackerBoardSchema} (or typed in by
193
+ * hand for a source whose boards can't be listed).
194
+ *
195
+ * A REQUIRED key carrying a NULLABLE value, the same shape (and for the same reason) as the
196
+ * repo scope a search hands a provider: `null` means "this source has no board to name",
197
+ * which is the only legal value for a repo-backed one, whose board is resolved from
198
+ * `containerId`'s service instead. Naming one there is REFUSED rather than ignored, because a
199
+ * caller that believes it scoped a hunt somewhere must not be answered with a scan of somewhere
200
+ * else. Omitting one for a repo-LESS source is refused too, because an unscoped vendor issue
201
+ * search reaches everything the credential can see.
202
+ */
203
+ readonly board: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
179
204
  /** Issue type to hunt; omitted → `bug`. Sources without a type notion ignore it. */
180
205
  readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 60, undefined>]>, undefined>;
181
206
  /** Labels that must ALL be present. */
@@ -1 +1 @@
1
- {"version":3,"file":"bug-hunt.d.ts","sourceRoot":"","sources":["../src/bug-hunt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;IAG7B,yFAAyF;;aAEzF,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,eAAO,MAAM,uBAAuB;;;;;QALlC,yFAAyF;;;aAQzF,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,wDAAwC,CAAA;AA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F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAIrE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;;;OAIG;;IAEH;;;;;;;;;;;OAWG;;IAEH,oFAAoF;;IAEpF,uCAAuC;;IAEvC,qDAAqD;;aAErD,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEpE;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;IAEtC,8DAA8D;;IAE9D,oEAAoE;;aAEpE,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
package/dist/bug-hunt.js CHANGED
@@ -12,9 +12,13 @@ import { taskSourceKindSchema } from './tasks.js';
12
12
  // time, and they are the ones that already exist (an imported issue, a board task, a run).
13
13
  // ---------------------------------------------------------------------------
14
14
  /**
15
- * One selectable board on a tracker a Jira project, a Linear team, a GitHub repository.
16
- * `id` is vendor-shaped and handed straight back as the hunt's board scope, so the SPA
17
- * never has to know which of the three notions a source uses.
15
+ * One selectable board on a tracker: a Jira project, a Linear team. `id` is vendor-shaped and
16
+ * handed straight back as the hunt's board scope, so the SPA never has to know which notion a
17
+ * source uses.
18
+ *
19
+ * A REPO-BACKED source (GitHub Issues, GitLab Issues) has nothing to list here: its board is the
20
+ * repository the hunt's service frame is linked to, resolved server-side, so listing one is
21
+ * refused rather than answered with a picker that could scope a hunt at a stranger's repo.
18
22
  */
19
23
  export const trackerBoardSchema = v.object({
20
24
  id: v.string(),
@@ -101,7 +105,11 @@ export const bugHuntAnalysisStatusSchema = v.picklist([
101
105
  ]);
102
106
  export const bugHuntResultSchema = v.object({
103
107
  source: taskSourceKindSchema,
104
- /** The board the hunt ran against, echoed back so a stale response is recognisable. */
108
+ /**
109
+ * The board the hunt ran against, echoed back so a stale response is recognisable. For a
110
+ * repo-backed source it also names the RESOLVED repository to the person reading the shortlist,
111
+ * rather than leaving that to be inferred from which service they opened the hunt on.
112
+ */
105
113
  board: v.string(),
106
114
  analysisStatus: bugHuntAnalysisStatusSchema,
107
115
  /** `provider:model` that produced the ranking, or null when there was none. */
@@ -123,12 +131,29 @@ export const bugHuntResultSchema = v.object({
123
131
  });
124
132
  // ---- Request bodies -------------------------------------------------------
125
133
  /**
126
- * Run a hunt. `board` is the vendor-shaped id from {@link trackerBoardSchema} (or typed in
127
- * by hand for a source whose boards can't be listed). The predicates default to the
128
- * tracker's own bug convention — issue type `bug` — and are narrowable per hunt.
134
+ * Run a hunt over one board's open, unassigned bugs. The predicates default to the tracker's
135
+ * own bug convention (issue type `bug`) and are narrowable per hunt.
129
136
  */
130
137
  export const runBugHuntSchema = v.object({
131
- board: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(200)),
138
+ /**
139
+ * The service frame (or a module under one) the hunt runs for: where an adopted candidate
140
+ * lands, and (for a REPO-BACKED source) what FIXES the board, since every issue of such a
141
+ * source belongs to one repository and the one this hunt may read is the service's own.
142
+ */
143
+ containerId: v.pipe(v.string(), v.trim(), v.minLength(1)),
144
+ /**
145
+ * The board to scan, as the vendor-shaped id from {@link trackerBoardSchema} (or typed in by
146
+ * hand for a source whose boards can't be listed).
147
+ *
148
+ * A REQUIRED key carrying a NULLABLE value, the same shape (and for the same reason) as the
149
+ * repo scope a search hands a provider: `null` means "this source has no board to name",
150
+ * which is the only legal value for a repo-backed one, whose board is resolved from
151
+ * `containerId`'s service instead. Naming one there is REFUSED rather than ignored, because a
152
+ * caller that believes it scoped a hunt somewhere must not be answered with a scan of somewhere
153
+ * else. Omitting one for a repo-LESS source is refused too, because an unscoped vendor issue
154
+ * search reaches everything the credential can see.
155
+ */
156
+ board: v.nullable(v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(200))),
132
157
  /** Issue type to hunt; omitted → `bug`. Sources without a type notion ignore it. */
133
158
  issueType: v.optional(v.pipe(v.string(), v.trim(), v.maxLength(60))),
134
159
  /** Labels that must ALL be present. */
@@ -1 +1 @@
1
- {"version":3,"file":"bug-hunt.js","sourceRoot":"","sources":["../src/bug-hunt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,8EAA8E;AAC9E,2EAA2E;AAC3E,kFAAkF;AAClF,kFAAkF;AAClF,qFAAqF;AACrF,iFAAiF;AACjF,EAAE;AACF,oFAAoF;AACpF,sFAAsF;AACtF,2FAA2F;AAC3F,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,yFAAyF;IACzF,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACpC,CAAC,CAAA;AAGF,oEAAoE;AACpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAA;AAG5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,2EAA2E;IAC3E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,4EAA4E;IAC5E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,0FAA0F;IAC1F,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,uBAAuB;IACnC,kFAAkF;IAClF,SAAS,E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ClD,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC1E,8DAA8D;IAC9D,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACzD,oEAAoE;IACpE,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;CACvE,CAAC,CAAA"}
@@ -71,7 +71,7 @@ export declare const debugRunSummarySchema: v.ObjectSchema<{
71
71
  readonly stepCount: v.NumberSchema<undefined>;
72
72
  /** Structured failure diagnostics when the run failed; null otherwise. */
73
73
  readonly failure: v.NullableSchema<v.ObjectSchema<{
74
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
74
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
75
75
  readonly message: v.StringSchema<undefined>;
76
76
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
77
77
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -118,7 +118,7 @@ export declare const debugRunListSchema: v.ObjectSchema<{
118
118
  readonly stepCount: v.NumberSchema<undefined>;
119
119
  /** Structured failure diagnostics when the run failed; null otherwise. */
120
120
  readonly failure: v.NullableSchema<v.ObjectSchema<{
121
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
121
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
122
122
  readonly message: v.StringSchema<undefined>;
123
123
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
124
124
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -406,7 +406,7 @@ export declare const debugRunOverviewSchema: v.ObjectSchema<{
406
406
  readonly stepCount: v.NumberSchema<undefined>;
407
407
  /** Structured failure diagnostics when the run failed; null otherwise. */
408
408
  readonly failure: v.NullableSchema<v.ObjectSchema<{
409
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
409
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
410
410
  readonly message: v.StringSchema<undefined>;
411
411
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
412
412
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -38,7 +38,7 @@ export declare const envConfigRepairJobSchema: v.ObjectSchema<{
38
38
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
39
39
  /** Structured failure diagnostics when `status` is `failed`; null otherwise. */
40
40
  readonly failure: v.NullableSchema<v.ObjectSchema<{
41
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
41
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
42
42
  readonly message: v.StringSchema<undefined>;
43
43
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
44
44
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -45,7 +45,7 @@ export type AgentRunKind = v.InferOutput<typeof agentRunKindSchema>;
45
45
  * gone), so for `evicted`/`timeout` failures the `hint` points at where to look.
46
46
  */
47
47
  export declare const agentFailureSchema: v.ObjectSchema<{
48
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
48
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
49
49
  /** Human-readable summary (mirrors the run's `error` for back-compat). */
50
50
  readonly message: v.StringSchema<undefined>;
51
51
  /** Extended detail when available (the harness's reason, an HTTP body, …). */
@@ -4372,7 +4372,7 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
4372
4372
  * failed bootstrap (shared {@link agentFailureSchema}).
4373
4373
  */
4374
4374
  readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4375
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
4375
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
4376
4376
  /** Human-readable summary (mirrors the run's `error` for back-compat). */
4377
4377
  readonly message: v.StringSchema<undefined>;
4378
4378
  /** Extended detail when available (the harness's reason, an HTTP body, …). */
@@ -4416,7 +4416,7 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
4416
4416
  * Absent/empty for a run that has never been failed-then-retried.
4417
4417
  */
4418
4418
  readonly failureHistory: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
4419
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
4419
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
4420
4420
  /** Human-readable summary (mirrors the run's `error` for back-compat). */
4421
4421
  readonly message: v.StringSchema<undefined>;
4422
4422
  /** Extended detail when available (the harness's reason, an HTTP body, …). */
@@ -85,7 +85,7 @@ export declare const publicBootstrapJobSchema: v.ObjectSchema<{
85
85
  /** One-line failure reason when `status` is `failed`; null otherwise. */
86
86
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
87
87
  /** How the run faulted, when it did: the part that says whether a retry is worth it. */
88
- readonly failureKind: v.NullableSchema<v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>, undefined>;
88
+ readonly failureKind: v.NullableSchema<v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>, undefined>;
89
89
  /** Extended detail behind `error` when the platform captured any (a harness reason, an HTTP body). */
90
90
  readonly failureDetail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
91
91
  /** The platform's own "where to look next", relayed verbatim; null when it had none to offer. */
@@ -56,7 +56,7 @@ export declare const retryAgentRunContract: {
56
56
  }, undefined>, undefined>;
57
57
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
58
58
  readonly failure: v.NullableSchema<v.ObjectSchema<{
59
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
59
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
60
60
  readonly message: v.StringSchema<undefined>;
61
61
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
62
62
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1147,7 +1147,7 @@ export declare const retryAgentRunContract: {
1147
1147
  readonly currentStep: v.NumberSchema<undefined>;
1148
1148
  readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
1149
1149
  readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1150
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1150
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1151
1151
  readonly message: v.StringSchema<undefined>;
1152
1152
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1153
1153
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1165,7 +1165,7 @@ export declare const retryAgentRunContract: {
1165
1165
  readonly stepIndex: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1166
1166
  }, undefined>, undefined>, undefined>;
1167
1167
  readonly failureHistory: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1168
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1168
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1169
1169
  readonly message: v.StringSchema<undefined>;
1170
1170
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1171
1171
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1262,7 +1262,7 @@ export declare const retryAgentRunContract: {
1262
1262
  }, undefined>, undefined>;
1263
1263
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1264
1264
  readonly failure: v.NullableSchema<v.ObjectSchema<{
1265
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1265
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1266
1266
  readonly message: v.StringSchema<undefined>;
1267
1267
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1268
1268
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1341,7 +1341,7 @@ export declare const stopAgentRunContract: {
1341
1341
  }, undefined>, undefined>;
1342
1342
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1343
1343
  readonly failure: v.NullableSchema<v.ObjectSchema<{
1344
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1344
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1345
1345
  readonly message: v.StringSchema<undefined>;
1346
1346
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1347
1347
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -2432,7 +2432,7 @@ export declare const stopAgentRunContract: {
2432
2432
  readonly currentStep: v.NumberSchema<undefined>;
2433
2433
  readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
2434
2434
  readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
2435
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
2435
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
2436
2436
  readonly message: v.StringSchema<undefined>;
2437
2437
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2438
2438
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -2450,7 +2450,7 @@ export declare const stopAgentRunContract: {
2450
2450
  readonly stepIndex: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
2451
2451
  }, undefined>, undefined>, undefined>;
2452
2452
  readonly failureHistory: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2453
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
2453
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
2454
2454
  readonly message: v.StringSchema<undefined>;
2455
2455
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2456
2456
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -2547,7 +2547,7 @@ export declare const stopAgentRunContract: {
2547
2547
  }, undefined>, undefined>;
2548
2548
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2549
2549
  readonly failure: v.NullableSchema<v.ObjectSchema<{
2550
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
2550
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
2551
2551
  readonly message: v.StringSchema<undefined>;
2552
2552
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
2553
2553
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -218,7 +218,7 @@ export declare const listBootstrapJobsContract: {
218
218
  }, undefined>, undefined>;
219
219
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
220
220
  readonly failure: v.NullableSchema<v.ObjectSchema<{
221
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
221
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
222
222
  readonly message: v.StringSchema<undefined>;
223
223
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
224
224
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -293,7 +293,7 @@ export declare const getBootstrapJobContract: {
293
293
  }, undefined>, undefined>;
294
294
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
295
295
  readonly failure: v.NullableSchema<v.ObjectSchema<{
296
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
296
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
297
297
  readonly message: v.StringSchema<undefined>;
298
298
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
299
299
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -378,7 +378,7 @@ export declare const startBootstrapJobContract: {
378
378
  }, undefined>, undefined>;
379
379
  readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
380
380
  readonly failure: v.NullableSchema<v.ObjectSchema<{
381
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
381
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
382
382
  readonly message: v.StringSchema<undefined>;
383
383
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
384
384
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1462,7 +1462,7 @@ declare const adoptBugHuntResultSchema: v.ObjectSchema<{
1462
1462
  readonly currentStep: v.NumberSchema<undefined>;
1463
1463
  readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
1464
1464
  readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1465
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1465
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1466
1466
  readonly message: v.StringSchema<undefined>;
1467
1467
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1468
1468
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1480,7 +1480,7 @@ declare const adoptBugHuntResultSchema: v.ObjectSchema<{
1480
1480
  readonly stepIndex: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1481
1481
  }, undefined>, undefined>, undefined>;
1482
1482
  readonly failureHistory: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1483
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1483
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
1484
1484
  readonly message: v.StringSchema<undefined>;
1485
1485
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1486
1486
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1606,7 +1606,8 @@ export declare const runBugHuntContract: {
1606
1606
  source: string;
1607
1607
  }) => string;
1608
1608
  readonly requestBodySchema: v.ObjectSchema<{
1609
- readonly board: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
1609
+ readonly containerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
1610
+ readonly board: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
1610
1611
  readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 60, undefined>]>, undefined>;
1611
1612
  readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>, undefined>, undefined>;
1612
1613
  readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
@@ -3164,7 +3165,7 @@ export declare const adoptBugHuntCandidateContract: {
3164
3165
  readonly currentStep: v.NumberSchema<undefined>;
3165
3166
  readonly status: v.PicklistSchema<["running", "blocked", "done", "paused", "failed"], undefined>;
3166
3167
  readonly failure: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3167
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
3168
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
3168
3169
  readonly message: v.StringSchema<undefined>;
3169
3170
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3170
3171
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -3182,7 +3183,7 @@ export declare const adoptBugHuntCandidateContract: {
3182
3183
  readonly stepIndex: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
3183
3184
  }, undefined>, undefined>, undefined>;
3184
3185
  readonly failureHistory: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
3185
- readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
3186
+ readonly kind: v.PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
3186
3187
  readonly message: v.StringSchema<undefined>;
3187
3188
  readonly detail: v.NullableSchema<v.StringSchema<undefined>, undefined>;
3188
3189
  readonly hint: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"bug-hunt.d.ts","sourceRoot":"","sources":["../../src/routes/bug-hunt.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxC,CAAA"}
@@ -42,7 +42,7 @@ export declare const listDebugRunsContract: {
42
42
  readonly currentStep: import("valibot").NumberSchema<undefined>;
43
43
  readonly stepCount: import("valibot").NumberSchema<undefined>;
44
44
  readonly failure: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
45
- readonly kind: import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
45
+ readonly kind: import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
46
46
  readonly message: import("valibot").StringSchema<undefined>;
47
47
  readonly detail: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
48
48
  readonly hint: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -112,7 +112,7 @@ export declare const getDebugRunContract: {
112
112
  readonly currentStep: import("valibot").NumberSchema<undefined>;
113
113
  readonly stepCount: import("valibot").NumberSchema<undefined>;
114
114
  readonly failure: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
115
- readonly kind: import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
115
+ readonly kind: import("valibot").PicklistSchema<["preflight", "dispatch", "environment", "evicted", "harness_shutdown", "timeout", "agent", "job_failed", "rejected", "companion_rejected", "stalled", "state_unreadable", "cancelled", "unknown"], undefined>;
116
116
  readonly message: import("valibot").StringSchema<undefined>;
117
117
  readonly detail: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
118
118
  readonly hint: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;