@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,125 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
/**
|
|
3
|
+
* The run's process-scope outcome: who the whole-run terminal barrier found
|
|
4
|
+
* still carrying the run's scope marker, and what became of them. Written once
|
|
5
|
+
* to `final/process_scope.yaml` as its OWN artifact so it survives the later
|
|
6
|
+
* rewrites and projections the immutable RunFacts receipt goes through — a
|
|
7
|
+
* finished run must always be able to say what it left running.
|
|
8
|
+
*
|
|
9
|
+
* It is a DISCLOSURE, never a verdict axis: a non-empty survivor set or a
|
|
10
|
+
* Windows `tree_only` coverage never flips a succeeded run into a failure
|
|
11
|
+
* (INV-116 is untouched). Environment bytes are never recorded — pid, measured
|
|
12
|
+
* birth token and a short reason only.
|
|
13
|
+
*/
|
|
14
|
+
export declare const RunProcessScopeMember: z.ZodObject<{
|
|
15
|
+
pid: z.ZodNumber;
|
|
16
|
+
start_token: z.ZodString;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
pid: number;
|
|
19
|
+
start_token: string;
|
|
20
|
+
}, {
|
|
21
|
+
pid: number;
|
|
22
|
+
start_token: string;
|
|
23
|
+
}>;
|
|
24
|
+
export type RunProcessScopeMember = z.infer<typeof RunProcessScopeMember>;
|
|
25
|
+
export declare const RunProcessScopeUnreadable: z.ZodObject<{
|
|
26
|
+
pid: z.ZodNumber;
|
|
27
|
+
reason: z.ZodString;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
pid: number;
|
|
30
|
+
reason: string;
|
|
31
|
+
}, {
|
|
32
|
+
pid: number;
|
|
33
|
+
reason: string;
|
|
34
|
+
}>;
|
|
35
|
+
export type RunProcessScopeUnreadable = z.infer<typeof RunProcessScopeUnreadable>;
|
|
36
|
+
export declare const RunProcessScopeOutcome: z.ZodObject<{
|
|
37
|
+
marker: z.ZodString;
|
|
38
|
+
coverage: z.ZodEnum<["marker+capture", "marker", "tree_only"]>;
|
|
39
|
+
census: z.ZodEnum<["ok", "failed", "unsupported"]>;
|
|
40
|
+
census_failure: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
restricted: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
+
ended: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
43
|
+
pid: z.ZodNumber;
|
|
44
|
+
start_token: z.ZodString;
|
|
45
|
+
}, "strict", z.ZodTypeAny, {
|
|
46
|
+
pid: number;
|
|
47
|
+
start_token: string;
|
|
48
|
+
}, {
|
|
49
|
+
pid: number;
|
|
50
|
+
start_token: string;
|
|
51
|
+
}>, "many">>;
|
|
52
|
+
survivors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
53
|
+
pid: z.ZodNumber;
|
|
54
|
+
start_token: z.ZodString;
|
|
55
|
+
}, "strict", z.ZodTypeAny, {
|
|
56
|
+
pid: number;
|
|
57
|
+
start_token: string;
|
|
58
|
+
}, {
|
|
59
|
+
pid: number;
|
|
60
|
+
start_token: string;
|
|
61
|
+
}>, "many">>;
|
|
62
|
+
unreadable: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
63
|
+
pid: z.ZodNumber;
|
|
64
|
+
reason: z.ZodString;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
pid: number;
|
|
67
|
+
reason: string;
|
|
68
|
+
}, {
|
|
69
|
+
pid: number;
|
|
70
|
+
reason: string;
|
|
71
|
+
}>, "many">>;
|
|
72
|
+
reused_groups: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
73
|
+
settled: z.ZodBoolean;
|
|
74
|
+
completeness: z.ZodDefault<z.ZodEnum<["complete", "not_provable"]>>;
|
|
75
|
+
completeness_reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
incomplete: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
+
}, "strict", z.ZodTypeAny, {
|
|
78
|
+
marker: string;
|
|
79
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
80
|
+
census: "failed" | "ok" | "unsupported";
|
|
81
|
+
census_failure: string | null;
|
|
82
|
+
restricted: boolean;
|
|
83
|
+
ended: {
|
|
84
|
+
pid: number;
|
|
85
|
+
start_token: string;
|
|
86
|
+
}[];
|
|
87
|
+
survivors: {
|
|
88
|
+
pid: number;
|
|
89
|
+
start_token: string;
|
|
90
|
+
}[];
|
|
91
|
+
unreadable: {
|
|
92
|
+
pid: number;
|
|
93
|
+
reason: string;
|
|
94
|
+
}[];
|
|
95
|
+
reused_groups: number[];
|
|
96
|
+
settled: boolean;
|
|
97
|
+
completeness: "complete" | "not_provable";
|
|
98
|
+
completeness_reason: string | null;
|
|
99
|
+
incomplete: boolean;
|
|
100
|
+
}, {
|
|
101
|
+
marker: string;
|
|
102
|
+
coverage: "marker" | "marker+capture" | "tree_only";
|
|
103
|
+
census: "failed" | "ok" | "unsupported";
|
|
104
|
+
census_failure?: string | null | undefined;
|
|
105
|
+
restricted?: boolean | undefined;
|
|
106
|
+
ended?: {
|
|
107
|
+
pid: number;
|
|
108
|
+
start_token: string;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
survivors?: {
|
|
111
|
+
pid: number;
|
|
112
|
+
start_token: string;
|
|
113
|
+
}[] | undefined;
|
|
114
|
+
unreadable?: {
|
|
115
|
+
pid: number;
|
|
116
|
+
reason: string;
|
|
117
|
+
}[] | undefined;
|
|
118
|
+
reused_groups?: number[] | undefined;
|
|
119
|
+
settled: boolean;
|
|
120
|
+
completeness?: "complete" | "not_provable" | undefined;
|
|
121
|
+
completeness_reason?: string | null | undefined;
|
|
122
|
+
incomplete?: boolean | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
export type RunProcessScopeOutcome = z.infer<typeof RunProcessScopeOutcome>;
|
|
125
|
+
//# sourceMappingURL=process-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-scope.d.ts","sourceRoot":"","sources":["../src/process-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;EAQvB,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;EAK3B,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqE+D,CAAC;AACnG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from "zod/v3";
|
|
2
|
+
/**
|
|
3
|
+
* The run's process-scope outcome: who the whole-run terminal barrier found
|
|
4
|
+
* still carrying the run's scope marker, and what became of them. Written once
|
|
5
|
+
* to `final/process_scope.yaml` as its OWN artifact so it survives the later
|
|
6
|
+
* rewrites and projections the immutable RunFacts receipt goes through — a
|
|
7
|
+
* finished run must always be able to say what it left running.
|
|
8
|
+
*
|
|
9
|
+
* It is a DISCLOSURE, never a verdict axis: a non-empty survivor set or a
|
|
10
|
+
* Windows `tree_only` coverage never flips a succeeded run into a failure
|
|
11
|
+
* (INV-116 is untouched). Environment bytes are never recorded — pid, measured
|
|
12
|
+
* birth token and a short reason only.
|
|
13
|
+
*/
|
|
14
|
+
export const RunProcessScopeMember = z
|
|
15
|
+
.object({
|
|
16
|
+
pid: z.number().int().positive(),
|
|
17
|
+
start_token: z
|
|
18
|
+
.string()
|
|
19
|
+
.min(1)
|
|
20
|
+
.describe("Measured kernel birth token the member was ended under."),
|
|
21
|
+
})
|
|
22
|
+
.strict();
|
|
23
|
+
export const RunProcessScopeUnreadable = z
|
|
24
|
+
.object({
|
|
25
|
+
pid: z.number().int().positive(),
|
|
26
|
+
reason: z.string().min(1).describe("Why a known member could not be read (never env bytes)."),
|
|
27
|
+
})
|
|
28
|
+
.strict();
|
|
29
|
+
export const RunProcessScopeOutcome = z
|
|
30
|
+
.object({
|
|
31
|
+
marker: z
|
|
32
|
+
.string()
|
|
33
|
+
.regex(/^[A-Z][A-Z0-9_]*_SCOPE_[0-9a-f]{32}$/)
|
|
34
|
+
.describe("The run's scope marker NAME (the value is always 1; never persisted)."),
|
|
35
|
+
coverage: z
|
|
36
|
+
.enum(["marker+capture", "marker", "tree_only"])
|
|
37
|
+
.describe("marker+capture: environment census plus the daemon's recorded descendants/process groups (POSIX with the daemon index); marker: environment census only (an embedder without the index); tree_only: no environment census exists on this host (Windows), the parent-chain tree kill ran instead."),
|
|
38
|
+
census: z
|
|
39
|
+
.enum(["ok", "failed", "unsupported"])
|
|
40
|
+
.describe("ok: a census completed; failed: the process table could not be read; unsupported: no census on this platform."),
|
|
41
|
+
census_failure: z.string().nullable().default(null),
|
|
42
|
+
restricted: z
|
|
43
|
+
.boolean()
|
|
44
|
+
.default(false)
|
|
45
|
+
.describe("The platform withholds some processes' environments from the census (macOS SIP hides Apple platform-binary environments), so an empty census cannot exclude a hidden platform-binary leftover — a disclosed residual, never a failure."),
|
|
46
|
+
ended: z
|
|
47
|
+
.array(RunProcessScopeMember)
|
|
48
|
+
.default([])
|
|
49
|
+
.describe("Members found alive and proven gone."),
|
|
50
|
+
survivors: z
|
|
51
|
+
.array(RunProcessScopeMember)
|
|
52
|
+
.default([])
|
|
53
|
+
.describe("Members still alive under their recorded identity when the bounded ladder ended."),
|
|
54
|
+
unreadable: z
|
|
55
|
+
.array(RunProcessScopeUnreadable)
|
|
56
|
+
.default([])
|
|
57
|
+
.describe("Known members whose identity or membership could not be read; never signalled unverified."),
|
|
58
|
+
reused_groups: z
|
|
59
|
+
.array(z.number().int().positive())
|
|
60
|
+
.default([])
|
|
61
|
+
.describe("Recorded process groups skipped entirely because the pgid-reuse rule failed (a live process owns the id with another birth, or a member predates the scope); disclosed residual, never signalled."),
|
|
62
|
+
settled: z
|
|
63
|
+
.boolean()
|
|
64
|
+
.describe("True only when every census source succeeded and no known member survived or stayed unreadable. Unreadable discovery candidates are not members; they limit completeness separately."),
|
|
65
|
+
completeness: z
|
|
66
|
+
.enum(["complete", "not_provable"])
|
|
67
|
+
.default("not_provable")
|
|
68
|
+
.describe("Whether a settled reap proves the scope empty: complete only where the census reads every same-uid environment (Linux) and every source succeeded; not_provable on macOS (SIP hides platform-binary environments, so a system binary started in the background by a shell that exited before capture cannot be ruled out), on Windows, after any census failure, and for an incomplete settlement (the single deadline expired: `incomplete` is true and completeness_reason names the deadline)."),
|
|
69
|
+
completeness_reason: z
|
|
70
|
+
.string()
|
|
71
|
+
.nullable()
|
|
72
|
+
.default(null)
|
|
73
|
+
.describe("Why the scope is not provably empty (null when complete): the census failure, the expired settlement deadline, the macOS platform-binary limit, or the unreadable same-uid count."),
|
|
74
|
+
incomplete: z
|
|
75
|
+
.boolean()
|
|
76
|
+
.default(false)
|
|
77
|
+
.describe("The single settlement deadline expired before every source was read: scanning and signalling stopped at that moment and what is known is disclosed; never a verdict."),
|
|
78
|
+
})
|
|
79
|
+
.strict()
|
|
80
|
+
.describe("What the whole-run terminal barrier found carrying the run's scope marker, and did.");
|
|
81
|
+
//# sourceMappingURL=process-scope.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>;
|
|
24
24
|
holder_run_id: z.ZodString;
|
|
25
25
|
holder_run_dir: z.ZodString;
|
|
26
|
+
continuation_eligible: z.ZodOptional<z.ZodBoolean>;
|
|
26
27
|
envelope: z.ZodObject<{
|
|
27
28
|
id: z.ZodString;
|
|
28
29
|
task_id: z.ZodString;
|
|
@@ -80,6 +81,7 @@ export declare const EnvelopeCustody: z.ZodObject<{
|
|
|
80
81
|
state: "live" | "retained";
|
|
81
82
|
holder_run_id: string;
|
|
82
83
|
holder_run_dir: string;
|
|
84
|
+
continuation_eligible?: boolean | undefined;
|
|
83
85
|
envelope: {
|
|
84
86
|
id: string;
|
|
85
87
|
task_id: string;
|
|
@@ -105,6 +107,7 @@ export declare const EnvelopeCustody: z.ZodObject<{
|
|
|
105
107
|
state: "live" | "retained";
|
|
106
108
|
holder_run_id: string;
|
|
107
109
|
holder_run_dir: string;
|
|
110
|
+
continuation_eligible?: boolean | undefined;
|
|
108
111
|
envelope: {
|
|
109
112
|
id: string;
|
|
110
113
|
task_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-continuation.d.ts","sourceRoot":"","sources":["../src/run-continuation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B;;;;;;;GAOG;AAEH,yDAAyD;AACzD,eAAO,MAAM,yBAAyB,+BAInC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"run-continuation.d.ts","sourceRoot":"","sources":["../src/run-continuation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B;;;;;;;GAOG;AAEH,yDAAyD;AACzD,eAAO,MAAM,yBAAyB,+BAInC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBsE,CAAC;AACnG,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,oDAAoD;AACpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAejC,CAAC;AACJ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,+FAA+F;AAC/F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;WAO/B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/run-continuation.js
CHANGED
|
@@ -28,6 +28,10 @@ export const EnvelopeCustody = z
|
|
|
28
28
|
state: z.enum(["live", "retained"]),
|
|
29
29
|
holder_run_id: Id.describe("Run that holds the envelope."),
|
|
30
30
|
holder_run_dir: z.string().min(1).describe("Absolute run directory of the holder."),
|
|
31
|
+
continuation_eligible: z
|
|
32
|
+
.boolean()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("False for diagnostic source retention addressed by attempt, without a run continuation pointer. Absent retains the historical singleton continuation contract."),
|
|
31
35
|
envelope: WorkspaceEnvelope.describe("The envelope exactly as created (adoption reuses it)."),
|
|
32
36
|
cause: ResumableCause.nullable().describe("Why the holder stopped; null while live."),
|
|
33
37
|
retained_at: z.string().nullable().describe("When custody became retained; null while live."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-continuation.js","sourceRoot":"","sources":["../src/run-continuation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EA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Q,CAAC,6BAA6B,CAAC;IAC9D,KAAK,EAAE,cAAc,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CACjF,CAAC;KACD,MAAM,EAAE;KACR,QAAQ,CACP,qHAAqH,CACtH,CAAC;AAGJ,+FAA+F;AAC/F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CACxC,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CACH,CAAC"}
|
package/dist/store-status.d.ts
CHANGED
|
@@ -314,6 +314,22 @@ export declare const DaemonStoreFacts: z.ZodObject<{
|
|
|
314
314
|
interval_ms: z.ZodNullable<z.ZodNumber>;
|
|
315
315
|
wal_bytes: z.ZodNullable<z.ZodNumber>;
|
|
316
316
|
busy_waits: z.ZodNullable<z.ZodNumber>;
|
|
317
|
+
commit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
318
|
+
attempts: z.ZodNumber;
|
|
319
|
+
failures: z.ZodNumber;
|
|
320
|
+
last_ms: z.ZodNullable<z.ZodNumber>;
|
|
321
|
+
max_ms: z.ZodNullable<z.ZodNumber>;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
attempts: number;
|
|
324
|
+
failures: number;
|
|
325
|
+
last_ms: number | null;
|
|
326
|
+
max_ms: number | null;
|
|
327
|
+
}, {
|
|
328
|
+
attempts: number;
|
|
329
|
+
failures: number;
|
|
330
|
+
last_ms: number | null;
|
|
331
|
+
max_ms: number | null;
|
|
332
|
+
}>>>;
|
|
317
333
|
obligations_open: z.ZodNullable<z.ZodNumber>;
|
|
318
334
|
integrity: z.ZodNullable<z.ZodEnum<["pending", "ok", "failed"]>>;
|
|
319
335
|
migration: z.ZodNullable<z.ZodObject<{
|
|
@@ -376,6 +392,12 @@ export declare const DaemonStoreFacts: z.ZodObject<{
|
|
|
376
392
|
interval_ms: number | null;
|
|
377
393
|
wal_bytes: number | null;
|
|
378
394
|
busy_waits: number | null;
|
|
395
|
+
commit?: {
|
|
396
|
+
attempts: number;
|
|
397
|
+
failures: number;
|
|
398
|
+
last_ms: number | null;
|
|
399
|
+
max_ms: number | null;
|
|
400
|
+
} | null | undefined;
|
|
379
401
|
obligations_open: number | null;
|
|
380
402
|
integrity: "failed" | "ok" | "pending" | null;
|
|
381
403
|
migration: {
|
|
@@ -424,6 +446,12 @@ export declare const DaemonStoreFacts: z.ZodObject<{
|
|
|
424
446
|
interval_ms: number | null;
|
|
425
447
|
wal_bytes: number | null;
|
|
426
448
|
busy_waits: number | null;
|
|
449
|
+
commit?: {
|
|
450
|
+
attempts: number;
|
|
451
|
+
failures: number;
|
|
452
|
+
last_ms: number | null;
|
|
453
|
+
max_ms: number | null;
|
|
454
|
+
} | null | undefined;
|
|
427
455
|
obligations_open: number | null;
|
|
428
456
|
integrity: "failed" | "ok" | "pending" | null;
|
|
429
457
|
migration: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-status.d.ts","sourceRoot":"","sources":["../src/store-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B,wEAAwE;AACxE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B5B,CAAC;
|
|
1
|
+
{"version":3,"file":"store-status.d.ts","sourceRoot":"","sources":["../src/store-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAM3B,wEAAwE;AACxE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B5B,CAAC;AAUH,iFAAiF;AACjF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/store-status.js
CHANGED
|
@@ -43,6 +43,13 @@ export const StoreFlusherFacts = z.object({
|
|
|
43
43
|
deaths: count,
|
|
44
44
|
}),
|
|
45
45
|
});
|
|
46
|
+
/** One summary for the store's whole lifetime, not a rolling window. */
|
|
47
|
+
const StoreCommitFacts = z.object({
|
|
48
|
+
attempts: count.describe("COMMIT calls entered, failed ones included."),
|
|
49
|
+
failures: count.describe("COMMIT calls that threw."),
|
|
50
|
+
last_ms: ms.nullable().describe("Duration of the latest COMMIT call; null before the first."),
|
|
51
|
+
max_ms: ms.nullable().describe("Longest COMMIT call; null before the first."),
|
|
52
|
+
});
|
|
46
53
|
/** Missing on old engines; null metrics mean the SQL runtime is not open yet. */
|
|
47
54
|
export const DaemonStoreFacts = z.object({
|
|
48
55
|
flusher: StoreFlusherFacts.nullable(),
|
|
@@ -51,6 +58,9 @@ export const DaemonStoreFacts = z.object({
|
|
|
51
58
|
interval_ms: ms.nullable(),
|
|
52
59
|
wal_bytes: count.nullable(),
|
|
53
60
|
busy_waits: count.nullable(),
|
|
61
|
+
commit: StoreCommitFacts.nullable()
|
|
62
|
+
.optional()
|
|
63
|
+
.describe("Request-thread transaction COMMIT calls since this engine store opened, timed around the native call only: a WAL header sync or automatic checkpoint SQLite runs inside it is included; BEGIN, the transaction body and ROLLBACK are not. A long call is a measurement, not proof of a disk cause. Null while the store is not open; older engines omit it."),
|
|
54
64
|
obligations_open: count.nullable(),
|
|
55
65
|
integrity: z.enum(["pending", "ok", "failed"]).nullable(),
|
|
56
66
|
migration: StoreMigrationProgress.nullable(),
|
package/dist/store-status.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-status.js","sourceRoot":"","sources":["../src/store-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;AAC7C,MAAM,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC;AAEpC,wEAAwE;AACxE,MAAM,CAAC,MAAM,sBAAsB,GAAG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
|
+
"definitions": {
|
|
4
|
+
"ControlAccountRoutingEvidenceResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"refusals": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"harness_id": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "Harness family the observed account belongs to."
|
|
16
|
+
},
|
|
17
|
+
"profile_id": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"description": "Account row whose started session was refused before progress."
|
|
21
|
+
},
|
|
22
|
+
"requested_model": {
|
|
23
|
+
"type": [
|
|
24
|
+
"string",
|
|
25
|
+
"null"
|
|
26
|
+
],
|
|
27
|
+
"description": "Model the run asked this account for; null = the harness default model."
|
|
28
|
+
},
|
|
29
|
+
"observed_at": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"description": "When the pre-progress refusal was observed."
|
|
33
|
+
},
|
|
34
|
+
"expires_at": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"description": "Self-expiry instant (observation retention, not a vendor reset time); after this the observation is ignored."
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"harness_id",
|
|
42
|
+
"profile_id",
|
|
43
|
+
"requested_model",
|
|
44
|
+
"observed_at",
|
|
45
|
+
"expires_at"
|
|
46
|
+
],
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"description": "A bounded, self-expiring typed observation that an account refused a started session before any progress; it orders the account pool and never excludes a row."
|
|
49
|
+
},
|
|
50
|
+
"description": "Live pre-progress refusal observations, each scoped to one requested model."
|
|
51
|
+
},
|
|
52
|
+
"lastService": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"harness_id": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"minLength": 1,
|
|
60
|
+
"description": "Harness family of the account."
|
|
61
|
+
},
|
|
62
|
+
"profile_id": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"minLength": 1,
|
|
65
|
+
"description": "Account row that served the request."
|
|
66
|
+
},
|
|
67
|
+
"requested_model": {
|
|
68
|
+
"type": [
|
|
69
|
+
"string",
|
|
70
|
+
"null"
|
|
71
|
+
],
|
|
72
|
+
"description": "Model the run asked for; null = the harness default model."
|
|
73
|
+
},
|
|
74
|
+
"observed_at": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"description": "When the account was observed serving that request."
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"harness_id",
|
|
82
|
+
"profile_id",
|
|
83
|
+
"requested_model",
|
|
84
|
+
"observed_at"
|
|
85
|
+
],
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"description": "The latest observed service of one account for one requested model under its current credential binding."
|
|
88
|
+
},
|
|
89
|
+
"description": "Latest observed service per registered account and requested model, most recent service first."
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"refusals",
|
|
94
|
+
"lastService"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"description": "Model-scoped account routing evidence: live refusal marks and the durable last-served order."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
101
|
+
}
|
|
@@ -464,6 +464,58 @@
|
|
|
464
464
|
}
|
|
465
465
|
]
|
|
466
466
|
},
|
|
467
|
+
"commit": {
|
|
468
|
+
"anyOf": [
|
|
469
|
+
{
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"attempts": {
|
|
473
|
+
"type": "integer",
|
|
474
|
+
"minimum": 0,
|
|
475
|
+
"description": "COMMIT calls entered, failed ones included."
|
|
476
|
+
},
|
|
477
|
+
"failures": {
|
|
478
|
+
"type": "integer",
|
|
479
|
+
"minimum": 0,
|
|
480
|
+
"description": "COMMIT calls that threw."
|
|
481
|
+
},
|
|
482
|
+
"last_ms": {
|
|
483
|
+
"anyOf": [
|
|
484
|
+
{
|
|
485
|
+
"$ref": "#/definitions/ControlDaemonStatus/properties/store/properties/flusher/anyOf/0/properties/interval_ms"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "null"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"description": "Duration of the latest COMMIT call; null before the first."
|
|
492
|
+
},
|
|
493
|
+
"max_ms": {
|
|
494
|
+
"anyOf": [
|
|
495
|
+
{
|
|
496
|
+
"$ref": "#/definitions/ControlDaemonStatus/properties/store/properties/flusher/anyOf/0/properties/interval_ms"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"type": "null"
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"description": "Longest COMMIT call; null before the first."
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"required": [
|
|
506
|
+
"attempts",
|
|
507
|
+
"failures",
|
|
508
|
+
"last_ms",
|
|
509
|
+
"max_ms"
|
|
510
|
+
],
|
|
511
|
+
"additionalProperties": false
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"type": "null"
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"description": "Request-thread transaction COMMIT calls since this engine store opened, timed around the native call only: a WAL header sync or automatic checkpoint SQLite runs inside it is included; BEGIN, the transaction body and ROLLBACK are not. A long call is a measurement, not proof of a disk cause. Null while the store is not open; older engines omit it."
|
|
518
|
+
},
|
|
467
519
|
"obligations_open": {
|
|
468
520
|
"anyOf": [
|
|
469
521
|
{
|