@claudexor/schema 4.1.0 → 4.2.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.
- package/dist/account-routing-evidence.d.ts +5823 -0
- package/dist/account-routing-evidence.d.ts.map +1 -0
- package/dist/account-routing-evidence.js +49 -0
- package/dist/account-routing-evidence.js.map +1 -0
- package/dist/control-operation-responses.d.ts +325 -0
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-process-scope.d.ts +58 -0
- package/dist/control-process-scope.d.ts.map +1 -0
- package/dist/control-process-scope.js +39 -0
- package/dist/control-process-scope.js.map +1 -0
- package/dist/control-run-detail.d.ts +863 -0
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-failure.d.ts +258 -0
- package/dist/control-run-failure.d.ts.map +1 -1
- package/dist/control-run-failure.js +55 -0
- package/dist/control-run-failure.js.map +1 -1
- package/dist/control.d.ts +252 -0
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +3 -0
- package/dist/control.js.map +1 -1
- package/dist/daemon-status.d.ts +40 -0
- package/dist/daemon-status.d.ts.map +1 -1
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +1 -1
- package/dist/gate.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-run-result.d.ts +426 -0
- package/dist/mcp-run-result.d.ts.map +1 -1
- package/dist/process-scope.d.ts +125 -0
- package/dist/process-scope.d.ts.map +1 -0
- package/dist/process-scope.js +81 -0
- package/dist/process-scope.js.map +1 -0
- package/dist/run-continuation.d.ts +3 -0
- package/dist/run-continuation.d.ts.map +1 -1
- package/dist/run-continuation.js +4 -0
- package/dist/run-continuation.js.map +1 -1
- package/dist/store-status.d.ts +28 -0
- package/dist/store-status.d.ts.map +1 -1
- package/dist/store-status.js +10 -0
- package/dist/store-status.js.map +1 -1
- package/generated/ControlAccountRoutingEvidenceResponse.schema.json +101 -0
- package/generated/ControlDaemonStatus.schema.json +52 -0
- package/generated/ControlRunDetail.schema.json +224 -0
- package/generated/ControlRunListResponse.schema.json +224 -0
- package/generated/ControlRunSummary.schema.json +224 -0
- package/generated/EnvelopeCustody.schema.json +4 -0
- package/generated/GateResult.schema.json +1 -1
- package/generated/McpAccountsToolResult.schema.json +2527 -0
- package/generated/McpRunHandleResult.schema.json +162 -0
- package/generated/McpRunToolResult.schema.json +162 -0
- package/generated/RunFailure.schema.json +162 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-routing-evidence.d.ts","sourceRoot":"","sources":["../src/account-routing-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAW3B;gFACgF;AAChF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAa5B,CAAC;AACJ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;iEACiE;AACjE,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc/C,CAAC;AACJ,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAC;AAcF;;8BAE8B;AAC9B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM2D,CAAC;AAC9F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
import { ControlCredentialProfilesResponse, PreProgressRefusalObservation, } from "./credential-profile.js";
|
|
3
|
+
import { ControlCredentialProfilesResourcesResponse, ControlCredentialProfilesSnapshotResponse, } from "./credential-profile-snapshot.js";
|
|
4
|
+
import { Id, IsoTimestamp } from "./primitives.js";
|
|
5
|
+
/** The latest request an account served for one requested model (INV-135
|
|
6
|
+
* tie-break evidence). A service observation, never a quota or auth verdict. */
|
|
7
|
+
export const AccountLastService = z
|
|
8
|
+
.object({
|
|
9
|
+
harness_id: Id.describe("Harness family of the account."),
|
|
10
|
+
profile_id: Id.describe("Account row that served the request."),
|
|
11
|
+
requested_model: z
|
|
12
|
+
.string()
|
|
13
|
+
.nullable()
|
|
14
|
+
.describe("Model the run asked for; null = the harness default model."),
|
|
15
|
+
observed_at: IsoTimestamp.describe("When the account was observed serving that request."),
|
|
16
|
+
})
|
|
17
|
+
.strict()
|
|
18
|
+
.describe("The latest observed service of one account for one requested model under its current credential binding.");
|
|
19
|
+
/** `GET /v2/accounts/routing-evidence`: a separate additive read, so the legacy
|
|
20
|
+
* strict Accounts responses stay unchanged for older clients. */
|
|
21
|
+
export const ControlAccountRoutingEvidenceResponse = z
|
|
22
|
+
.object({
|
|
23
|
+
refusals: z
|
|
24
|
+
.array(PreProgressRefusalObservation)
|
|
25
|
+
.describe("Live pre-progress refusal observations, each scoped to one requested model."),
|
|
26
|
+
lastService: z
|
|
27
|
+
.array(AccountLastService)
|
|
28
|
+
.describe("Latest observed service per registered account and requested model, most recent service first."),
|
|
29
|
+
})
|
|
30
|
+
.strict()
|
|
31
|
+
.describe("Model-scoped account routing evidence: live refusal marks and the durable last-served order.");
|
|
32
|
+
const routingEvidenceFields = {
|
|
33
|
+
routingEvidence: ControlAccountRoutingEvidenceResponse.optional().describe("Model-scoped routing evidence; absent when the engine predates the read or the read failed."),
|
|
34
|
+
routingEvidenceProblem: z
|
|
35
|
+
.string()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe("One diagnostic when the routing-evidence read failed; the account listing is still authoritative."),
|
|
38
|
+
};
|
|
39
|
+
/** `claudexor_accounts` output: the legacy listing (or opt-in snapshot) plus the
|
|
40
|
+
* additive routing evidence. `accountPools.next_up` stays the configured
|
|
41
|
+
* default model's verdict. */
|
|
42
|
+
export const McpAccountsToolResult = z
|
|
43
|
+
.union([
|
|
44
|
+
ControlCredentialProfilesResponse.extend(routingEvidenceFields),
|
|
45
|
+
ControlCredentialProfilesSnapshotResponse.extend(routingEvidenceFields),
|
|
46
|
+
ControlCredentialProfilesResourcesResponse.extend(routingEvidenceFields),
|
|
47
|
+
])
|
|
48
|
+
.describe("Accounts listing or atomic snapshot joined with model-scoped routing evidence.");
|
|
49
|
+
//# sourceMappingURL=account-routing-evidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-routing-evidence.js","sourceRoot":"","sources":["../src/account-routing-evidence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EACL,iCAAiC,EACjC,6BAA6B,GA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C/D,yCAAyC,CAAC,MAAM,CAAC,qBAAqB,CAAC;IACvE,0CAA0C,CAAC,MAAM,CAAC,qBAAqB,CAAC;CACzE,CAAC;KACD,QAAQ,CAAC,gFAAgF,CAAC,CAAC"}
|
|
@@ -304,6 +304,46 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
304
304
|
binary_path: string | null;
|
|
305
305
|
installed_version: string | null;
|
|
306
306
|
}>]>>;
|
|
307
|
+
captureFailure: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
code: z.ZodEnum<["capture_output_exceeded", "capture_output_incomplete", "capture_preview_truncated", "capture_failed"]>;
|
|
309
|
+
message: z.ZodString;
|
|
310
|
+
causeCode: z.ZodOptional<z.ZodString>;
|
|
311
|
+
bufferBudgetBytes: z.ZodOptional<z.ZodNumber>;
|
|
312
|
+
stream: z.ZodOptional<z.ZodEnum<["stdout", "stderr"]>>;
|
|
313
|
+
drain: z.ZodOptional<z.ZodLiteral<"truncated">>;
|
|
314
|
+
cleanup: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
code: z.ZodNullable<z.ZodString>;
|
|
316
|
+
message: z.ZodString;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
code: string | null;
|
|
319
|
+
message: string;
|
|
320
|
+
}, {
|
|
321
|
+
code: string | null;
|
|
322
|
+
message: string;
|
|
323
|
+
}>>;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
326
|
+
message: string;
|
|
327
|
+
causeCode?: string | undefined;
|
|
328
|
+
bufferBudgetBytes?: number | undefined;
|
|
329
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
330
|
+
drain?: "truncated" | undefined;
|
|
331
|
+
cleanup?: {
|
|
332
|
+
code: string | null;
|
|
333
|
+
message: string;
|
|
334
|
+
} | undefined;
|
|
335
|
+
}, {
|
|
336
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
337
|
+
message: string;
|
|
338
|
+
causeCode?: string | undefined;
|
|
339
|
+
bufferBudgetBytes?: number | undefined;
|
|
340
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
341
|
+
drain?: "truncated" | undefined;
|
|
342
|
+
cleanup?: {
|
|
343
|
+
code: string | null;
|
|
344
|
+
message: string;
|
|
345
|
+
} | undefined;
|
|
346
|
+
}>>;
|
|
307
347
|
phase: z.ZodDefault<z.ZodString>;
|
|
308
348
|
category: z.ZodDefault<z.ZodEnum<["validation", "project", "auth", "harness_unavailable", "harness_error", "config_error", "budget", "policy", "cancelled", "internal", "unknown"]>>;
|
|
309
349
|
code: z.ZodDefault<z.ZodNullable<z.ZodEnum<["finite_zero", "hard_cap", "estimate_headroom", "unknown_paid_in_flight", "budget_overshoot", "cost_unverifiable", "delegation_child_drain_timeout", "subscription_window_exhausted", "credential_pool_exhausted", "input_too_large", "vendor_cli_too_old", "delegated_home_unavailable", "delegated_confinement_unavailable", "delegated_evidence_incomplete", "access_profile_incompatible", "retired_access_profile"]>>>;
|
|
@@ -328,6 +368,63 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
328
368
|
message: string | null;
|
|
329
369
|
source: string;
|
|
330
370
|
}>>>;
|
|
371
|
+
poolAttempts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
372
|
+
harnessId: z.ZodString;
|
|
373
|
+
profileId: z.ZodNullable<z.ZodString>;
|
|
374
|
+
profileDisplayName: z.ZodNullable<z.ZodString>;
|
|
375
|
+
requestedModel: z.ZodNullable<z.ZodString>;
|
|
376
|
+
attemptId: z.ZodString;
|
|
377
|
+
tryIndex: z.ZodNumber;
|
|
378
|
+
observedAt: z.ZodString;
|
|
379
|
+
phase: z.ZodEnum<["pre_start", "pre_progress", "after_progress"]>;
|
|
380
|
+
category: z.ZodEnum<["timeout", "rate_limited", "auth_failed", "capability_refused", "process_crash", "config_error", "unknown_harness_error"]>;
|
|
381
|
+
error: z.ZodString;
|
|
382
|
+
vendorFailure: z.ZodNullable<z.ZodObject<{
|
|
383
|
+
code: z.ZodNullable<z.ZodString>;
|
|
384
|
+
message: z.ZodNullable<z.ZodString>;
|
|
385
|
+
source: z.ZodString;
|
|
386
|
+
}, "strip", z.ZodTypeAny, {
|
|
387
|
+
code: string | null;
|
|
388
|
+
message: string | null;
|
|
389
|
+
source: string;
|
|
390
|
+
}, {
|
|
391
|
+
code: string | null;
|
|
392
|
+
message: string | null;
|
|
393
|
+
source: string;
|
|
394
|
+
}>>;
|
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
harnessId: string;
|
|
397
|
+
profileId: string | null;
|
|
398
|
+
profileDisplayName: string | null;
|
|
399
|
+
requestedModel: string | null;
|
|
400
|
+
attemptId: string;
|
|
401
|
+
tryIndex: number;
|
|
402
|
+
observedAt: string;
|
|
403
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
404
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
405
|
+
error: string;
|
|
406
|
+
vendorFailure: {
|
|
407
|
+
code: string | null;
|
|
408
|
+
message: string | null;
|
|
409
|
+
source: string;
|
|
410
|
+
} | null;
|
|
411
|
+
}, {
|
|
412
|
+
harnessId: string;
|
|
413
|
+
profileId: string | null;
|
|
414
|
+
profileDisplayName: string | null;
|
|
415
|
+
requestedModel: string | null;
|
|
416
|
+
attemptId: string;
|
|
417
|
+
tryIndex: number;
|
|
418
|
+
observedAt: string;
|
|
419
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
420
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
421
|
+
error: string;
|
|
422
|
+
vendorFailure: {
|
|
423
|
+
code: string | null;
|
|
424
|
+
message: string | null;
|
|
425
|
+
source: string;
|
|
426
|
+
} | null;
|
|
427
|
+
}>, "many">>;
|
|
331
428
|
nextActions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
332
429
|
}, "strip", z.ZodTypeAny, {
|
|
333
430
|
requestRefusal?: {
|
|
@@ -345,6 +442,18 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
345
442
|
binary_path: string | null;
|
|
346
443
|
installed_version: string | null;
|
|
347
444
|
} | undefined;
|
|
445
|
+
captureFailure?: {
|
|
446
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
447
|
+
message: string;
|
|
448
|
+
causeCode?: string | undefined;
|
|
449
|
+
bufferBudgetBytes?: number | undefined;
|
|
450
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
451
|
+
drain?: "truncated" | undefined;
|
|
452
|
+
cleanup?: {
|
|
453
|
+
code: string | null;
|
|
454
|
+
message: string;
|
|
455
|
+
} | undefined;
|
|
456
|
+
} | undefined;
|
|
348
457
|
phase: string;
|
|
349
458
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
350
459
|
code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
@@ -361,6 +470,23 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
361
470
|
message: string | null;
|
|
362
471
|
source: string;
|
|
363
472
|
} | null;
|
|
473
|
+
poolAttempts: {
|
|
474
|
+
harnessId: string;
|
|
475
|
+
profileId: string | null;
|
|
476
|
+
profileDisplayName: string | null;
|
|
477
|
+
requestedModel: string | null;
|
|
478
|
+
attemptId: string;
|
|
479
|
+
tryIndex: number;
|
|
480
|
+
observedAt: string;
|
|
481
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
482
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
483
|
+
error: string;
|
|
484
|
+
vendorFailure: {
|
|
485
|
+
code: string | null;
|
|
486
|
+
message: string | null;
|
|
487
|
+
source: string;
|
|
488
|
+
} | null;
|
|
489
|
+
}[];
|
|
364
490
|
nextActions: string[];
|
|
365
491
|
}, {
|
|
366
492
|
requestRefusal?: {
|
|
@@ -378,6 +504,18 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
378
504
|
binary_path: string | null;
|
|
379
505
|
installed_version: string | null;
|
|
380
506
|
} | undefined;
|
|
507
|
+
captureFailure?: {
|
|
508
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
509
|
+
message: string;
|
|
510
|
+
causeCode?: string | undefined;
|
|
511
|
+
bufferBudgetBytes?: number | undefined;
|
|
512
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
513
|
+
drain?: "truncated" | undefined;
|
|
514
|
+
cleanup?: {
|
|
515
|
+
code: string | null;
|
|
516
|
+
message: string;
|
|
517
|
+
} | undefined;
|
|
518
|
+
} | undefined;
|
|
381
519
|
phase?: string | undefined;
|
|
382
520
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
383
521
|
code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
@@ -394,6 +532,23 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
394
532
|
message: string | null;
|
|
395
533
|
source: string;
|
|
396
534
|
} | null | undefined;
|
|
535
|
+
poolAttempts?: {
|
|
536
|
+
harnessId: string;
|
|
537
|
+
profileId: string | null;
|
|
538
|
+
profileDisplayName: string | null;
|
|
539
|
+
requestedModel: string | null;
|
|
540
|
+
attemptId: string;
|
|
541
|
+
tryIndex: number;
|
|
542
|
+
observedAt: string;
|
|
543
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
544
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
545
|
+
error: string;
|
|
546
|
+
vendorFailure: {
|
|
547
|
+
code: string | null;
|
|
548
|
+
message: string | null;
|
|
549
|
+
source: string;
|
|
550
|
+
} | null;
|
|
551
|
+
}[] | undefined;
|
|
397
552
|
nextActions?: string[] | undefined;
|
|
398
553
|
}>>>;
|
|
399
554
|
project: z.ZodDefault<z.ZodObject<{
|
|
@@ -730,6 +885,28 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
730
885
|
} | undefined;
|
|
731
886
|
}>>>;
|
|
732
887
|
waitingOnUser: z.ZodDefault<z.ZodBoolean>;
|
|
888
|
+
processScope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
889
|
+
settled: z.ZodBoolean;
|
|
890
|
+
coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
|
|
891
|
+
completeness: z.ZodEnum<["complete", "not_provable"]>;
|
|
892
|
+
census: z.ZodEnum<["ok", "failed", "unsupported"]>;
|
|
893
|
+
survivors: z.ZodNumber;
|
|
894
|
+
unreadable: z.ZodNumber;
|
|
895
|
+
}, "strict", z.ZodTypeAny, {
|
|
896
|
+
settled: boolean;
|
|
897
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
898
|
+
completeness: "complete" | "not_provable";
|
|
899
|
+
census: "failed" | "ok" | "unsupported";
|
|
900
|
+
survivors: number;
|
|
901
|
+
unreadable: number;
|
|
902
|
+
}, {
|
|
903
|
+
settled: boolean;
|
|
904
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
905
|
+
completeness: "complete" | "not_provable";
|
|
906
|
+
census: "failed" | "ok" | "unsupported";
|
|
907
|
+
survivors: number;
|
|
908
|
+
unreadable: number;
|
|
909
|
+
}>>>;
|
|
733
910
|
route: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
734
911
|
requestedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
735
912
|
observedModel: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -890,6 +1067,18 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
890
1067
|
binary_path: string | null;
|
|
891
1068
|
installed_version: string | null;
|
|
892
1069
|
} | undefined;
|
|
1070
|
+
captureFailure?: {
|
|
1071
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1072
|
+
message: string;
|
|
1073
|
+
causeCode?: string | undefined;
|
|
1074
|
+
bufferBudgetBytes?: number | undefined;
|
|
1075
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
1076
|
+
drain?: "truncated" | undefined;
|
|
1077
|
+
cleanup?: {
|
|
1078
|
+
code: string | null;
|
|
1079
|
+
message: string;
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
} | undefined;
|
|
893
1082
|
phase: string;
|
|
894
1083
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
895
1084
|
code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
@@ -906,6 +1095,23 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
906
1095
|
message: string | null;
|
|
907
1096
|
source: string;
|
|
908
1097
|
} | null;
|
|
1098
|
+
poolAttempts: {
|
|
1099
|
+
harnessId: string;
|
|
1100
|
+
profileId: string | null;
|
|
1101
|
+
profileDisplayName: string | null;
|
|
1102
|
+
requestedModel: string | null;
|
|
1103
|
+
attemptId: string;
|
|
1104
|
+
tryIndex: number;
|
|
1105
|
+
observedAt: string;
|
|
1106
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
1107
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
1108
|
+
error: string;
|
|
1109
|
+
vendorFailure: {
|
|
1110
|
+
code: string | null;
|
|
1111
|
+
message: string | null;
|
|
1112
|
+
source: string;
|
|
1113
|
+
} | null;
|
|
1114
|
+
}[];
|
|
909
1115
|
nextActions: string[];
|
|
910
1116
|
} | null;
|
|
911
1117
|
project: {
|
|
@@ -1030,6 +1236,14 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1030
1236
|
} | undefined;
|
|
1031
1237
|
} | null;
|
|
1032
1238
|
waitingOnUser: boolean;
|
|
1239
|
+
processScope: {
|
|
1240
|
+
settled: boolean;
|
|
1241
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
1242
|
+
completeness: "complete" | "not_provable";
|
|
1243
|
+
census: "failed" | "ok" | "unsupported";
|
|
1244
|
+
survivors: number;
|
|
1245
|
+
unreadable: number;
|
|
1246
|
+
} | null;
|
|
1033
1247
|
route: {
|
|
1034
1248
|
requestedModel: string | null;
|
|
1035
1249
|
observedModel: string | null;
|
|
@@ -1136,6 +1350,18 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1136
1350
|
binary_path: string | null;
|
|
1137
1351
|
installed_version: string | null;
|
|
1138
1352
|
} | undefined;
|
|
1353
|
+
captureFailure?: {
|
|
1354
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1355
|
+
message: string;
|
|
1356
|
+
causeCode?: string | undefined;
|
|
1357
|
+
bufferBudgetBytes?: number | undefined;
|
|
1358
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
1359
|
+
drain?: "truncated" | undefined;
|
|
1360
|
+
cleanup?: {
|
|
1361
|
+
code: string | null;
|
|
1362
|
+
message: string;
|
|
1363
|
+
} | undefined;
|
|
1364
|
+
} | undefined;
|
|
1139
1365
|
phase?: string | undefined;
|
|
1140
1366
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1141
1367
|
code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
@@ -1152,6 +1378,23 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1152
1378
|
message: string | null;
|
|
1153
1379
|
source: string;
|
|
1154
1380
|
} | null | undefined;
|
|
1381
|
+
poolAttempts?: {
|
|
1382
|
+
harnessId: string;
|
|
1383
|
+
profileId: string | null;
|
|
1384
|
+
profileDisplayName: string | null;
|
|
1385
|
+
requestedModel: string | null;
|
|
1386
|
+
attemptId: string;
|
|
1387
|
+
tryIndex: number;
|
|
1388
|
+
observedAt: string;
|
|
1389
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
1390
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
1391
|
+
error: string;
|
|
1392
|
+
vendorFailure: {
|
|
1393
|
+
code: string | null;
|
|
1394
|
+
message: string | null;
|
|
1395
|
+
source: string;
|
|
1396
|
+
} | null;
|
|
1397
|
+
}[] | undefined;
|
|
1155
1398
|
nextActions?: string[] | undefined;
|
|
1156
1399
|
} | null | undefined;
|
|
1157
1400
|
project?: {
|
|
@@ -1276,6 +1519,14 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1276
1519
|
} | undefined;
|
|
1277
1520
|
} | null | undefined;
|
|
1278
1521
|
waitingOnUser?: boolean | undefined;
|
|
1522
|
+
processScope?: {
|
|
1523
|
+
settled: boolean;
|
|
1524
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
1525
|
+
completeness: "complete" | "not_provable";
|
|
1526
|
+
census: "failed" | "ok" | "unsupported";
|
|
1527
|
+
survivors: number;
|
|
1528
|
+
unreadable: number;
|
|
1529
|
+
} | null | undefined;
|
|
1279
1530
|
route?: {
|
|
1280
1531
|
requestedModel?: string | null | undefined;
|
|
1281
1532
|
observedModel?: string | null | undefined;
|
|
@@ -1392,6 +1643,18 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1392
1643
|
binary_path: string | null;
|
|
1393
1644
|
installed_version: string | null;
|
|
1394
1645
|
} | undefined;
|
|
1646
|
+
captureFailure?: {
|
|
1647
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1648
|
+
message: string;
|
|
1649
|
+
causeCode?: string | undefined;
|
|
1650
|
+
bufferBudgetBytes?: number | undefined;
|
|
1651
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
1652
|
+
drain?: "truncated" | undefined;
|
|
1653
|
+
cleanup?: {
|
|
1654
|
+
code: string | null;
|
|
1655
|
+
message: string;
|
|
1656
|
+
} | undefined;
|
|
1657
|
+
} | undefined;
|
|
1395
1658
|
phase: string;
|
|
1396
1659
|
category: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation";
|
|
1397
1660
|
code: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null;
|
|
@@ -1408,6 +1671,23 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1408
1671
|
message: string | null;
|
|
1409
1672
|
source: string;
|
|
1410
1673
|
} | null;
|
|
1674
|
+
poolAttempts: {
|
|
1675
|
+
harnessId: string;
|
|
1676
|
+
profileId: string | null;
|
|
1677
|
+
profileDisplayName: string | null;
|
|
1678
|
+
requestedModel: string | null;
|
|
1679
|
+
attemptId: string;
|
|
1680
|
+
tryIndex: number;
|
|
1681
|
+
observedAt: string;
|
|
1682
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
1683
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
1684
|
+
error: string;
|
|
1685
|
+
vendorFailure: {
|
|
1686
|
+
code: string | null;
|
|
1687
|
+
message: string | null;
|
|
1688
|
+
source: string;
|
|
1689
|
+
} | null;
|
|
1690
|
+
}[];
|
|
1411
1691
|
nextActions: string[];
|
|
1412
1692
|
} | null;
|
|
1413
1693
|
project: {
|
|
@@ -1532,6 +1812,14 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1532
1812
|
} | undefined;
|
|
1533
1813
|
} | null;
|
|
1534
1814
|
waitingOnUser: boolean;
|
|
1815
|
+
processScope: {
|
|
1816
|
+
settled: boolean;
|
|
1817
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
1818
|
+
completeness: "complete" | "not_provable";
|
|
1819
|
+
census: "failed" | "ok" | "unsupported";
|
|
1820
|
+
survivors: number;
|
|
1821
|
+
unreadable: number;
|
|
1822
|
+
} | null;
|
|
1535
1823
|
route: {
|
|
1536
1824
|
requestedModel: string | null;
|
|
1537
1825
|
observedModel: string | null;
|
|
@@ -1642,6 +1930,18 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1642
1930
|
binary_path: string | null;
|
|
1643
1931
|
installed_version: string | null;
|
|
1644
1932
|
} | undefined;
|
|
1933
|
+
captureFailure?: {
|
|
1934
|
+
code: "capture_failed" | "capture_output_exceeded" | "capture_output_incomplete" | "capture_preview_truncated";
|
|
1935
|
+
message: string;
|
|
1936
|
+
causeCode?: string | undefined;
|
|
1937
|
+
bufferBudgetBytes?: number | undefined;
|
|
1938
|
+
stream?: "stderr" | "stdout" | undefined;
|
|
1939
|
+
drain?: "truncated" | undefined;
|
|
1940
|
+
cleanup?: {
|
|
1941
|
+
code: string | null;
|
|
1942
|
+
message: string;
|
|
1943
|
+
} | undefined;
|
|
1944
|
+
} | undefined;
|
|
1645
1945
|
phase?: string | undefined;
|
|
1646
1946
|
category?: "auth" | "budget" | "cancelled" | "config_error" | "harness_error" | "harness_unavailable" | "internal" | "policy" | "project" | "unknown" | "validation" | undefined;
|
|
1647
1947
|
code?: "access_profile_incompatible" | "budget_overshoot" | "cost_unverifiable" | "credential_pool_exhausted" | "delegated_confinement_unavailable" | "delegated_evidence_incomplete" | "delegated_home_unavailable" | "delegation_child_drain_timeout" | "estimate_headroom" | "finite_zero" | "hard_cap" | "input_too_large" | "retired_access_profile" | "subscription_window_exhausted" | "unknown_paid_in_flight" | "vendor_cli_too_old" | null | undefined;
|
|
@@ -1658,6 +1958,23 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1658
1958
|
message: string | null;
|
|
1659
1959
|
source: string;
|
|
1660
1960
|
} | null | undefined;
|
|
1961
|
+
poolAttempts?: {
|
|
1962
|
+
harnessId: string;
|
|
1963
|
+
profileId: string | null;
|
|
1964
|
+
profileDisplayName: string | null;
|
|
1965
|
+
requestedModel: string | null;
|
|
1966
|
+
attemptId: string;
|
|
1967
|
+
tryIndex: number;
|
|
1968
|
+
observedAt: string;
|
|
1969
|
+
phase: "after_progress" | "pre_progress" | "pre_start";
|
|
1970
|
+
category: "auth_failed" | "capability_refused" | "config_error" | "process_crash" | "rate_limited" | "timeout" | "unknown_harness_error";
|
|
1971
|
+
error: string;
|
|
1972
|
+
vendorFailure: {
|
|
1973
|
+
code: string | null;
|
|
1974
|
+
message: string | null;
|
|
1975
|
+
source: string;
|
|
1976
|
+
} | null;
|
|
1977
|
+
}[] | undefined;
|
|
1661
1978
|
nextActions?: string[] | undefined;
|
|
1662
1979
|
} | null | undefined;
|
|
1663
1980
|
project?: {
|
|
@@ -1782,6 +2099,14 @@ export declare const ControlRunListResponse: z.ZodObject<{
|
|
|
1782
2099
|
} | undefined;
|
|
1783
2100
|
} | null | undefined;
|
|
1784
2101
|
waitingOnUser?: boolean | undefined;
|
|
2102
|
+
processScope?: {
|
|
2103
|
+
settled: boolean;
|
|
2104
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
2105
|
+
completeness: "complete" | "not_provable";
|
|
2106
|
+
census: "failed" | "ok" | "unsupported";
|
|
2107
|
+
survivors: number;
|
|
2108
|
+
unreadable: number;
|
|
2109
|
+
} | null | undefined;
|
|
1785
2110
|
route?: {
|
|
1786
2111
|
requestedModel?: string | null | undefined;
|
|
1787
2112
|
observedModel?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-operation-responses.d.ts","sourceRoot":"","sources":["../src/control-operation-responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAY3B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEqC,CAAC;AAC1E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;EAUI,CAAC;AAClD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAEhG,eAAO,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AAC;AAE1F,eAAO,MAAM,yBAAyB;;;;IAKlC;;;;gBAIY;;;;;;;;;;;;EAOmC,CAAC;AACpD,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmC6D,CAAC;AACnG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKsC,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
/** The run's process-scope outcome, compact (counts, not pids) for the run summary. */
|
|
3
|
+
export declare const ControlProcessScope: z.ZodObject<{
|
|
4
|
+
settled: z.ZodBoolean;
|
|
5
|
+
coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
|
|
6
|
+
completeness: z.ZodEnum<["complete", "not_provable"]>;
|
|
7
|
+
census: z.ZodEnum<["ok", "failed", "unsupported"]>;
|
|
8
|
+
survivors: z.ZodNumber;
|
|
9
|
+
unreadable: z.ZodNumber;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
settled: boolean;
|
|
12
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
13
|
+
completeness: "complete" | "not_provable";
|
|
14
|
+
census: "failed" | "ok" | "unsupported";
|
|
15
|
+
survivors: number;
|
|
16
|
+
unreadable: number;
|
|
17
|
+
}, {
|
|
18
|
+
settled: boolean;
|
|
19
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
20
|
+
completeness: "complete" | "not_provable";
|
|
21
|
+
census: "failed" | "ok" | "unsupported";
|
|
22
|
+
survivors: number;
|
|
23
|
+
unreadable: number;
|
|
24
|
+
}>;
|
|
25
|
+
export type ControlProcessScope = z.infer<typeof ControlProcessScope>;
|
|
26
|
+
/**
|
|
27
|
+
* `ControlRunSummary.processScope`: projected from the run's
|
|
28
|
+
* final/process_scope.yaml. An engine that has the field always sends the
|
|
29
|
+
* property: the compact outcome for a terminal run whose record is readable and
|
|
30
|
+
* valid, otherwise an explicit null — UNKNOWN, never clean (the run is live, its
|
|
31
|
+
* record was never written or could not be, or it is unreadable or invalid).
|
|
32
|
+
* `.default(null)` only fills a missing input, so the generated JSON Schema
|
|
33
|
+
* lists the property as optional; engines that predate the field omit the key,
|
|
34
|
+
* which is equally unknown.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ControlRunSummaryProcessScope: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
37
|
+
settled: z.ZodBoolean;
|
|
38
|
+
coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
|
|
39
|
+
completeness: z.ZodEnum<["complete", "not_provable"]>;
|
|
40
|
+
census: z.ZodEnum<["ok", "failed", "unsupported"]>;
|
|
41
|
+
survivors: z.ZodNumber;
|
|
42
|
+
unreadable: z.ZodNumber;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
settled: boolean;
|
|
45
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
46
|
+
completeness: "complete" | "not_provable";
|
|
47
|
+
census: "failed" | "ok" | "unsupported";
|
|
48
|
+
survivors: number;
|
|
49
|
+
unreadable: number;
|
|
50
|
+
}, {
|
|
51
|
+
settled: boolean;
|
|
52
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
53
|
+
completeness: "complete" | "not_provable";
|
|
54
|
+
census: "failed" | "ok" | "unsupported";
|
|
55
|
+
survivors: number;
|
|
56
|
+
unreadable: number;
|
|
57
|
+
}>>>;
|
|
58
|
+
//# sourceMappingURL=control-process-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-process-scope.d.ts","sourceRoot":"","sources":["../src/control-process-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,uFAAuF;AACvF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EA4B7B,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;;;;;;GASG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;IAIvC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
/** The run's process-scope outcome, compact (counts, not pids) for the run summary. */
|
|
3
|
+
export const ControlProcessScope = z
|
|
4
|
+
.object({
|
|
5
|
+
settled: z
|
|
6
|
+
.boolean()
|
|
7
|
+
.describe("Every census source succeeded and no known member survived or stayed unreadable. Unreadable discovery candidates are not members; they limit completeness separately."),
|
|
8
|
+
coverage: z.enum(["marker+capture", "marker", "tree_only"]),
|
|
9
|
+
completeness: z
|
|
10
|
+
.enum(["complete", "not_provable"])
|
|
11
|
+
.describe("Whether a settled reap proves the scope empty (not on macOS for background system binaries, not on Windows, not after a census failure, not when the single settlement deadline expired — then settled is false and the run's final/process_scope.yaml carries incomplete=true with completeness_reason naming the deadline)."),
|
|
12
|
+
census: z.enum(["ok", "failed", "unsupported"]),
|
|
13
|
+
survivors: z
|
|
14
|
+
.number()
|
|
15
|
+
.int()
|
|
16
|
+
.nonnegative()
|
|
17
|
+
.describe("Members still alive when the bounded ladder ended."),
|
|
18
|
+
unreadable: z
|
|
19
|
+
.number()
|
|
20
|
+
.int()
|
|
21
|
+
.nonnegative()
|
|
22
|
+
.describe("Known members whose identity or membership could not be read."),
|
|
23
|
+
})
|
|
24
|
+
.strict()
|
|
25
|
+
.describe("Compact process-scope outcome of a terminal run (full artifact: final/process_scope.yaml).");
|
|
26
|
+
/**
|
|
27
|
+
* `ControlRunSummary.processScope`: projected from the run's
|
|
28
|
+
* final/process_scope.yaml. An engine that has the field always sends the
|
|
29
|
+
* property: the compact outcome for a terminal run whose record is readable and
|
|
30
|
+
* valid, otherwise an explicit null — UNKNOWN, never clean (the run is live, its
|
|
31
|
+
* record was never written or could not be, or it is unreadable or invalid).
|
|
32
|
+
* `.default(null)` only fills a missing input, so the generated JSON Schema
|
|
33
|
+
* lists the property as optional; engines that predate the field omit the key,
|
|
34
|
+
* which is equally unknown.
|
|
35
|
+
*/
|
|
36
|
+
export const ControlRunSummaryProcessScope = ControlProcessScope.nullable()
|
|
37
|
+
.default(null)
|
|
38
|
+
.describe("Compact process-scope outcome from final/process_scope.yaml (settled, coverage, completeness, survivors, unreadable, census). Always present in this engine's responses: null means unknown (the run is live, or the record is missing, unreadable or invalid), never clean. Engines that predate the field omit the key, which is equally unknown.");
|
|
39
|
+
//# sourceMappingURL=control-process-scope.js.map
|