iterate-kernel 0.1.3 → 0.1.5
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/README.md +15 -6
- package/dist/convergence.d.ts +90 -0
- package/dist/convergence.d.ts.map +1 -0
- package/dist/convergence.js +97 -0
- package/dist/convergence.js.map +1 -0
- package/dist/errors.d.ts +15 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +7 -0
- package/dist/errors.js.map +1 -1
- package/dist/evidence-pack.d.ts +19 -19
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/invariant-report.d.ts +271 -0
- package/dist/invariant-report.d.ts.map +1 -0
- package/dist/invariant-report.js +145 -0
- package/dist/invariant-report.js.map +1 -0
- package/dist/parse.d.ts +9 -0
- package/dist/parse.d.ts.map +1 -1
- package/dist/parse.js +22 -10
- package/dist/parse.js.map +1 -1
- package/dist/provider-registration.d.ts +132 -0
- package/dist/provider-registration.d.ts.map +1 -0
- package/dist/provider-registration.js +119 -0
- package/dist/provider-registration.js.map +1 -0
- package/dist/run-plan.d.ts +142 -0
- package/dist/run-plan.d.ts.map +1 -0
- package/dist/run-plan.js +92 -0
- package/dist/run-plan.js.map +1 -0
- package/dist/schemas.d.ts +10 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +10 -0
- package/dist/schemas.js.map +1 -1
- package/fixtures/convergence.ok-01.json +252 -0
- package/fixtures/invariant-report.ok-01.json +306 -0
- package/fixtures/provider-registration.ok-01.json +309 -0
- package/fixtures/run-plan.ok-01.json +152 -0
- package/package.json +17 -1
- package/schemas/convergence-round-state.schema.json +37 -0
- package/schemas/invariant-report.schema.json +108 -0
- package/schemas/provider-registration.schema.json +63 -0
- package/schemas/reverification-request.schema.json +89 -0
- package/schemas/run-plan.schema.json +60 -0
package/README.md
CHANGED
|
@@ -36,6 +36,10 @@ APIs it actually uses.
|
|
|
36
36
|
| `evidence-decision` | the **transcription**: evidence (attribution level, circuit-breaker level, pass/fail/inconclusive) → a decision outcome and a human summary. It reads fields the engine already decided; it never infers. |
|
|
37
37
|
| `decision-log-entry` / `decision-log` | the append-only decision-log entry and the `opID ↔ entry` hash chain that makes it auditable |
|
|
38
38
|
| `dimension-context` / `parse` | the dimension-coverage transcription: a plan plus what the engine actually recorded → verified / unverified / unplanned, and one line to put in a summary. It validates id *shape*, never which ids exist — that list belongs to whoever configured the run. |
|
|
39
|
+
| `run-plan` / `parse` | the plan that `dimension-context` needs and refuses to invent: which dimensions a run intends to cover, in the caller's order, with the declared source. It carries a **digest** (`rp_` + sha256 of the canonical form) so a ledger line can state which plan a run was held to, and a reader can notice the plan changed mid-run. Nothing here reads a config file — producing a plan is whoever configures the run's job, and that keeps the kernel from learning a consumer's file format. |
|
|
40
|
+
| `invariant-report` / `parse` | what the invariant runner may state about its own checks, and the re-verification a failure asks for. It refuses a report that says `pass` while carrying a failed check, and it turns an `error` (a check that could not run) into **no** request: re-verifying the app would answer a question nobody measured. |
|
|
41
|
+
| `convergence` | the rules for what the loop does next, from stated inputs only. A tripped breaker, a spent round budget, and an errored check each `halt`; unlooked-or-unmeasured states `verify`, never `converged`. Both harnesses read one idea of "done" instead of growing two. |
|
|
42
|
+
| `provider-registration` | metadata for a judgement producer — who offers which method, and what it requires. Registering an existing id is refused rather than silently overridden, and resolution never guesses. |
|
|
39
43
|
| `errors` / `schemas` / `canonical-json` / `recipe-config` | `KernelSchemaError`, the JSON Schemas, canonical serialisation, recipe validation |
|
|
40
44
|
|
|
41
45
|
## A runnable example
|
|
@@ -107,12 +111,17 @@ not a contract; it is a note nobody reads.
|
|
|
107
111
|
|
|
108
112
|
## Consumers
|
|
109
113
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
114
|
+
A consumer's kernel is this package, pinned. There is no second copy of the source anywhere:
|
|
115
|
+
the GlassPane Harness fork used to vendor `kernel/src` under `packages/opencode/vendor/kernel`
|
|
116
|
+
with a probe that asked whether the canonical branch had moved, and that arrangement was retired
|
|
117
|
+
in favour of the npm dependency — its `script/kernel-pin.mjs` now checks the installed version,
|
|
118
|
+
the lockfile integrity hash, and the per-file sha256 of the shipped corpus against
|
|
119
|
+
`contracts/kernel-pin.json`, and `script/kernel-conformance.mjs` runs the fixtures against the
|
|
120
|
+
installed `dist/`.
|
|
121
|
+
|
|
122
|
+
The Python side still cannot import TypeScript, so it vendors the *corpus* (fixtures and schemas)
|
|
123
|
+
and implements the rules itself from the fixture `comment` fields; that is what the paragraph
|
|
124
|
+
above describes, and `scripts/check_kernel_fixtures.py` is what keeps the two copies byte-agreed.
|
|
116
125
|
|
|
117
126
|
Either way, run the fixtures: they are how you find out that the kernel you have is not the
|
|
118
127
|
kernel you think you have.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Convergence rules: what happens after a round, decided from stated inputs
|
|
4
|
+
* (5.7 R40 scenario 4 — a GlassPane fix finishing hands the next step to the
|
|
5
|
+
* invariant review, and only then does the loop consider re-verifying).
|
|
6
|
+
*
|
|
7
|
+
* This is the piece §8.5 puts **inside** the kernel ("收敛规则"), and it is policy
|
|
8
|
+
* arithmetic, not verification: every input is a verdict somebody else produced. The
|
|
9
|
+
* rules exist so the two harnesses do not each grow a private idea of "done" — the
|
|
10
|
+
* asymmetry that makes a loop stop in one product and keep running in the other.
|
|
11
|
+
*/
|
|
12
|
+
export declare const CONVERGENCE_SCHEMA_VERSION: "iterate.convergence/0.1";
|
|
13
|
+
export declare const InvariantStateSchema: z.ZodEnum<["pass", "fail", "error", "unmeasured"]>;
|
|
14
|
+
export type InvariantState = z.infer<typeof InvariantStateSchema>;
|
|
15
|
+
/** What a caller states about the round that just finished. */
|
|
16
|
+
export declare const RoundStateSchema: z.ZodObject<{
|
|
17
|
+
schemaVersion: z.ZodOptional<z.ZodLiteral<"iterate.convergence/0.1">>;
|
|
18
|
+
round: z.ZodNumber;
|
|
19
|
+
maxRounds: z.ZodNumber;
|
|
20
|
+
invariantState: z.ZodEnum<["pass", "fail", "error", "unmeasured"]>;
|
|
21
|
+
openFindings: z.ZodNumber;
|
|
22
|
+
/** False when the engine never got to evidence something (refused, crashed, unattached). */
|
|
23
|
+
evidenceComplete: z.ZodBoolean;
|
|
24
|
+
/** The engine's own circuit-breaker level for this run; 3 is tripped. */
|
|
25
|
+
breakerLevel: z.ZodNumber;
|
|
26
|
+
}, "strict", z.ZodTypeAny, {
|
|
27
|
+
round: number;
|
|
28
|
+
maxRounds: number;
|
|
29
|
+
invariantState: "pass" | "fail" | "error" | "unmeasured";
|
|
30
|
+
openFindings: number;
|
|
31
|
+
evidenceComplete: boolean;
|
|
32
|
+
breakerLevel: number;
|
|
33
|
+
schemaVersion?: "iterate.convergence/0.1" | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
round: number;
|
|
36
|
+
maxRounds: number;
|
|
37
|
+
invariantState: "pass" | "fail" | "error" | "unmeasured";
|
|
38
|
+
openFindings: number;
|
|
39
|
+
evidenceComplete: boolean;
|
|
40
|
+
breakerLevel: number;
|
|
41
|
+
schemaVersion?: "iterate.convergence/0.1" | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export type RoundState = z.infer<typeof RoundStateSchema>;
|
|
44
|
+
export declare const ConvergenceActionSchema: z.ZodEnum<["fix", "verify", "converged", "halt"]>;
|
|
45
|
+
export type ConvergenceAction = z.infer<typeof ConvergenceActionSchema>;
|
|
46
|
+
export declare const CONVERGENCE_REASONS: {
|
|
47
|
+
readonly breakerTripped: "circuit-breaker-tripped";
|
|
48
|
+
readonly budgetExhausted: "round-budget-exhausted";
|
|
49
|
+
readonly invariantErrored: "invariant-check-errored";
|
|
50
|
+
readonly openFindings: "open-findings";
|
|
51
|
+
readonly invariantsFailed: "invariants-failed";
|
|
52
|
+
readonly evidenceIncomplete: "evidence-incomplete";
|
|
53
|
+
readonly invariantsUnmeasured: "invariants-unmeasured";
|
|
54
|
+
readonly allGatesGreen: "all-gates-green";
|
|
55
|
+
};
|
|
56
|
+
export type ConvergenceReason = (typeof CONVERGENCE_REASONS)[keyof typeof CONVERGENCE_REASONS];
|
|
57
|
+
export declare const ConvergenceDecisionSchema: z.ZodObject<{
|
|
58
|
+
action: z.ZodEnum<["fix", "verify", "converged", "halt"]>;
|
|
59
|
+
reason: z.ZodEnum<["circuit-breaker-tripped", "round-budget-exhausted", "invariant-check-errored", "open-findings", "invariants-failed", "evidence-incomplete", "invariants-unmeasured", "all-gates-green"]>;
|
|
60
|
+
round: z.ZodNumber;
|
|
61
|
+
maxRounds: z.ZodNumber;
|
|
62
|
+
}, "strict", z.ZodTypeAny, {
|
|
63
|
+
round: number;
|
|
64
|
+
maxRounds: number;
|
|
65
|
+
action: "fix" | "verify" | "converged" | "halt";
|
|
66
|
+
reason: "circuit-breaker-tripped" | "round-budget-exhausted" | "invariant-check-errored" | "open-findings" | "invariants-failed" | "evidence-incomplete" | "invariants-unmeasured" | "all-gates-green";
|
|
67
|
+
}, {
|
|
68
|
+
round: number;
|
|
69
|
+
maxRounds: number;
|
|
70
|
+
action: "fix" | "verify" | "converged" | "halt";
|
|
71
|
+
reason: "circuit-breaker-tripped" | "round-budget-exhausted" | "invariant-check-errored" | "open-findings" | "invariants-failed" | "evidence-incomplete" | "invariants-unmeasured" | "all-gates-green";
|
|
72
|
+
}>;
|
|
73
|
+
export type ConvergenceDecision = z.infer<typeof ConvergenceDecisionSchema>;
|
|
74
|
+
/**
|
|
75
|
+
* Precedence, and why it is this order:
|
|
76
|
+
*
|
|
77
|
+
* 1. breaker tripped → `halt`. A limit the harness set on itself is not the app's
|
|
78
|
+
* failure, and continuing would report a stall as a verdict.
|
|
79
|
+
* 2. round budget spent → `halt`. Checked before the work so a run cannot buy
|
|
80
|
+
* another round by reporting findings it already had.
|
|
81
|
+
* 3. the invariant check errored → `halt`. Nothing can be derived from a check that
|
|
82
|
+
* did not run; retrying is the runner's job, not the loop's.
|
|
83
|
+
* 4. open findings, or invariants that failed → `fix`.
|
|
84
|
+
* 5. evidence incomplete, or invariants unmeasured → `verify`. Not `converged`:
|
|
85
|
+
* "we could not look" and "we looked and it holds" are different states, and
|
|
86
|
+
* collapsing them is the failure this whole contract exists to prevent.
|
|
87
|
+
* 6. otherwise → `converged`.
|
|
88
|
+
*/
|
|
89
|
+
export declare function convergenceDecision(state: RoundState): ConvergenceDecision;
|
|
90
|
+
//# sourceMappingURL=convergence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convergence.d.ts","sourceRoot":"","sources":["../src/convergence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,EAAG,yBAAkC,CAAC;AAE7E,eAAO,MAAM,oBAAoB,oDAAkD,CAAC;AACpF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,+DAA+D;AAC/D,eAAO,MAAM,gBAAgB;;;;;;IAM3B,4FAA4F;;IAE5F,yEAAyE;;;;;;;;;;;;;;;;;;EAEzE,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,uBAAuB,mDAAiD,CAAC;AACtF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB;;;;;;;;;CAStB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAE/F,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAcpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,CAuB1E"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { schemaErrorFrom } from "./errors.js";
|
|
3
|
+
/**
|
|
4
|
+
* Convergence rules: what happens after a round, decided from stated inputs
|
|
5
|
+
* (5.7 R40 scenario 4 — a GlassPane fix finishing hands the next step to the
|
|
6
|
+
* invariant review, and only then does the loop consider re-verifying).
|
|
7
|
+
*
|
|
8
|
+
* This is the piece §8.5 puts **inside** the kernel ("收敛规则"), and it is policy
|
|
9
|
+
* arithmetic, not verification: every input is a verdict somebody else produced. The
|
|
10
|
+
* rules exist so the two harnesses do not each grow a private idea of "done" — the
|
|
11
|
+
* asymmetry that makes a loop stop in one product and keep running in the other.
|
|
12
|
+
*/
|
|
13
|
+
export const CONVERGENCE_SCHEMA_VERSION = "iterate.convergence/0.1";
|
|
14
|
+
export const InvariantStateSchema = z.enum(["pass", "fail", "error", "unmeasured"]);
|
|
15
|
+
/** What a caller states about the round that just finished. */
|
|
16
|
+
export const RoundStateSchema = z.strictObject({
|
|
17
|
+
schemaVersion: z.literal(CONVERGENCE_SCHEMA_VERSION).optional(),
|
|
18
|
+
round: z.number().int().min(1),
|
|
19
|
+
maxRounds: z.number().int().min(1),
|
|
20
|
+
invariantState: InvariantStateSchema,
|
|
21
|
+
openFindings: z.number().int().min(0),
|
|
22
|
+
/** False when the engine never got to evidence something (refused, crashed, unattached). */
|
|
23
|
+
evidenceComplete: z.boolean(),
|
|
24
|
+
/** The engine's own circuit-breaker level for this run; 3 is tripped. */
|
|
25
|
+
breakerLevel: z.number().int().min(0).max(3)
|
|
26
|
+
});
|
|
27
|
+
export const ConvergenceActionSchema = z.enum(["fix", "verify", "converged", "halt"]);
|
|
28
|
+
export const CONVERGENCE_REASONS = {
|
|
29
|
+
breakerTripped: "circuit-breaker-tripped",
|
|
30
|
+
budgetExhausted: "round-budget-exhausted",
|
|
31
|
+
invariantErrored: "invariant-check-errored",
|
|
32
|
+
openFindings: "open-findings",
|
|
33
|
+
invariantsFailed: "invariants-failed",
|
|
34
|
+
evidenceIncomplete: "evidence-incomplete",
|
|
35
|
+
invariantsUnmeasured: "invariants-unmeasured",
|
|
36
|
+
allGatesGreen: "all-gates-green"
|
|
37
|
+
};
|
|
38
|
+
export const ConvergenceDecisionSchema = z.strictObject({
|
|
39
|
+
action: ConvergenceActionSchema,
|
|
40
|
+
reason: z.enum([
|
|
41
|
+
CONVERGENCE_REASONS.breakerTripped,
|
|
42
|
+
CONVERGENCE_REASONS.budgetExhausted,
|
|
43
|
+
CONVERGENCE_REASONS.invariantErrored,
|
|
44
|
+
CONVERGENCE_REASONS.openFindings,
|
|
45
|
+
CONVERGENCE_REASONS.invariantsFailed,
|
|
46
|
+
CONVERGENCE_REASONS.evidenceIncomplete,
|
|
47
|
+
CONVERGENCE_REASONS.invariantsUnmeasured,
|
|
48
|
+
CONVERGENCE_REASONS.allGatesGreen
|
|
49
|
+
]),
|
|
50
|
+
round: z.number().int().min(1),
|
|
51
|
+
maxRounds: z.number().int().min(1)
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Precedence, and why it is this order:
|
|
55
|
+
*
|
|
56
|
+
* 1. breaker tripped → `halt`. A limit the harness set on itself is not the app's
|
|
57
|
+
* failure, and continuing would report a stall as a verdict.
|
|
58
|
+
* 2. round budget spent → `halt`. Checked before the work so a run cannot buy
|
|
59
|
+
* another round by reporting findings it already had.
|
|
60
|
+
* 3. the invariant check errored → `halt`. Nothing can be derived from a check that
|
|
61
|
+
* did not run; retrying is the runner's job, not the loop's.
|
|
62
|
+
* 4. open findings, or invariants that failed → `fix`.
|
|
63
|
+
* 5. evidence incomplete, or invariants unmeasured → `verify`. Not `converged`:
|
|
64
|
+
* "we could not look" and "we looked and it holds" are different states, and
|
|
65
|
+
* collapsing them is the failure this whole contract exists to prevent.
|
|
66
|
+
* 6. otherwise → `converged`.
|
|
67
|
+
*/
|
|
68
|
+
export function convergenceDecision(state) {
|
|
69
|
+
const checked = RoundStateSchema.safeParse(state);
|
|
70
|
+
if (!checked.success) {
|
|
71
|
+
throw schemaErrorFrom("round state", checked.error);
|
|
72
|
+
}
|
|
73
|
+
const input = checked.data;
|
|
74
|
+
const decided = (action, reason) => ({
|
|
75
|
+
action,
|
|
76
|
+
reason,
|
|
77
|
+
round: input.round,
|
|
78
|
+
maxRounds: input.maxRounds
|
|
79
|
+
});
|
|
80
|
+
if (input.breakerLevel >= 3)
|
|
81
|
+
return decided("halt", CONVERGENCE_REASONS.breakerTripped);
|
|
82
|
+
if (input.round >= input.maxRounds)
|
|
83
|
+
return decided("halt", CONVERGENCE_REASONS.budgetExhausted);
|
|
84
|
+
if (input.invariantState === "error")
|
|
85
|
+
return decided("halt", CONVERGENCE_REASONS.invariantErrored);
|
|
86
|
+
if (input.openFindings > 0)
|
|
87
|
+
return decided("fix", CONVERGENCE_REASONS.openFindings);
|
|
88
|
+
if (input.invariantState === "fail")
|
|
89
|
+
return decided("fix", CONVERGENCE_REASONS.invariantsFailed);
|
|
90
|
+
if (!input.evidenceComplete)
|
|
91
|
+
return decided("verify", CONVERGENCE_REASONS.evidenceIncomplete);
|
|
92
|
+
if (input.invariantState === "unmeasured") {
|
|
93
|
+
return decided("verify", CONVERGENCE_REASONS.invariantsUnmeasured);
|
|
94
|
+
}
|
|
95
|
+
return decided("converged", CONVERGENCE_REASONS.allGatesGreen);
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=convergence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convergence.js","sourceRoot":"","sources":["../src/convergence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;A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AAK,CAAC,KAAK,IAAI,KAAK,CAAC,SAAS;QAAE,OAAO,OAAO,CAAC,MAAM,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IAChG,IAAI,KAAK,CAAC,cAAc,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC,MAAM,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACnG,IAAI,KAAK,CAAC,YAAY,GAAG,CAAC;QAAE,OAAO,OAAO,CAAC,KAAK,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IACpF,IAAI,KAAK,CAAC,cAAc,KAAK,MAAM;QAAE,OAAO,OAAO,CAAC,KAAK,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACjG,IAAI,CAAC,KAAK,CAAC,gBAAgB;QAAE,OAAO,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,CAAC;IAC9F,IAAI,KAAK,CAAC,cAAc,KAAK,YAAY,EAAE,CAAC;QAC1C,OAAO,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,OAAO,CAAC,WAAW,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;AACjE,CAAC"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -12,4 +12,19 @@ export declare class KernelSchemaError extends Error {
|
|
|
12
12
|
readonly issues: readonly KernelSchemaIssue[];
|
|
13
13
|
constructor(label: string, issues: readonly KernelSchemaIssue[]);
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The shape of a zod error, declared structurally so `errors.ts` stays free of a
|
|
17
|
+
* zod import and the module graph has no cycle: the contract functions
|
|
18
|
+
* (`convergenceDecision`, `registerProvider`, `reVerificationRequestFrom`) validate
|
|
19
|
+
* their own inputs and need to raise the same error `parse.ts` raises, and `parse.ts`
|
|
20
|
+
* imports them.
|
|
21
|
+
*/
|
|
22
|
+
export interface SchemaErrorLike {
|
|
23
|
+
readonly issues: readonly {
|
|
24
|
+
readonly path: readonly (string | number)[];
|
|
25
|
+
readonly message: string;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
28
|
+
/** One place that turns a validation failure into `KernelSchemaError`. */
|
|
29
|
+
export declare function schemaErrorFrom(label: string, error: SchemaErrorLike): KernelSchemaError;
|
|
15
30
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,IAAI,qBAAqB;IAClC,QAAQ,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;gBAElC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,iBAAiB,EAAE;CAQhE"}
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,IAAI,qBAAqB;IAClC,QAAQ,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;gBAElC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,iBAAiB,EAAE;CAQhE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACvG;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,iBAAiB,CAQxF"}
|
package/dist/errors.js
CHANGED
|
@@ -15,4 +15,11 @@ export class KernelSchemaError extends Error {
|
|
|
15
15
|
this.issues = issues;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
/** One place that turns a validation failure into `KernelSchemaError`. */
|
|
19
|
+
export function schemaErrorFrom(label, error) {
|
|
20
|
+
return new KernelSchemaError(label, error.issues.map((issue) => ({
|
|
21
|
+
path: issue.path.map((segment) => String(segment)).join("."),
|
|
22
|
+
message: issue.message
|
|
23
|
+
})));
|
|
24
|
+
}
|
|
18
25
|
//# sourceMappingURL=errors.js.map
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IACjC,IAAI,GAAG,iBAAiB,CAAC;IACzB,MAAM,CAA+B;IAE9C,YAAY,KAAa,EAAE,MAAoC;QAC7D,MAAM,MAAM,GAAG,MAAM;aAClB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aACpF,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,KAAK,CAAC,WAAW,KAAK,KAAK,MAAM,EAAE,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IACjC,IAAI,GAAG,iBAAiB,CAAC;IACzB,MAAM,CAA+B;IAE9C,YAAY,KAAa,EAAE,MAAoC;QAC7D,MAAM,MAAM,GAAG,MAAM;aAClB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aACpF,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,KAAK,CAAC,WAAW,KAAK,KAAK,MAAM,EAAE,CAAC,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAaD,0EAA0E;AAC1E,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,KAAsB;IACnE,OAAO,IAAI,iBAAiB,CAC1B,KAAK,EACL,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QAC3B,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAC5D,OAAO,EAAE,KAAK,CAAC,OAAO;KACvB,CAAC,CAAC,CACJ,CAAC;AACJ,CAAC"}
|
package/dist/evidence-pack.d.ts
CHANGED
|
@@ -155,20 +155,20 @@ export declare const ActSignalSchema: z.ZodObject<{
|
|
|
155
155
|
action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
|
|
156
156
|
actConfirmed: z.ZodBoolean;
|
|
157
157
|
}, "strict", z.ZodTypeAny, {
|
|
158
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
158
159
|
selector: {
|
|
159
160
|
role: string;
|
|
160
161
|
title?: string | undefined;
|
|
161
162
|
identifier?: string | undefined;
|
|
162
163
|
};
|
|
163
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
164
164
|
actConfirmed: boolean;
|
|
165
165
|
}, {
|
|
166
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
166
167
|
selector: {
|
|
167
168
|
role: string;
|
|
168
169
|
title?: string | undefined;
|
|
169
170
|
identifier?: string | undefined;
|
|
170
171
|
};
|
|
171
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
172
172
|
actConfirmed: boolean;
|
|
173
173
|
}>;
|
|
174
174
|
export type ActSignal = z.infer<typeof ActSignalSchema>;
|
|
@@ -283,20 +283,20 @@ export declare const SignalsSchema: z.ZodObject<{
|
|
|
283
283
|
action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
|
|
284
284
|
actConfirmed: z.ZodBoolean;
|
|
285
285
|
}, "strict", z.ZodTypeAny, {
|
|
286
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
286
287
|
selector: {
|
|
287
288
|
role: string;
|
|
288
289
|
title?: string | undefined;
|
|
289
290
|
identifier?: string | undefined;
|
|
290
291
|
};
|
|
291
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
292
292
|
actConfirmed: boolean;
|
|
293
293
|
}, {
|
|
294
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
294
295
|
selector: {
|
|
295
296
|
role: string;
|
|
296
297
|
title?: string | undefined;
|
|
297
298
|
identifier?: string | undefined;
|
|
298
299
|
};
|
|
299
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
300
300
|
actConfirmed: boolean;
|
|
301
301
|
}>;
|
|
302
302
|
axEvent: z.ZodOptional<z.ZodObject<{
|
|
@@ -442,12 +442,12 @@ export declare const SignalsSchema: z.ZodObject<{
|
|
|
442
442
|
}>>;
|
|
443
443
|
}, "strict", z.ZodTypeAny, {
|
|
444
444
|
act: {
|
|
445
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
445
446
|
selector: {
|
|
446
447
|
role: string;
|
|
447
448
|
title?: string | undefined;
|
|
448
449
|
identifier?: string | undefined;
|
|
449
450
|
};
|
|
450
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
451
451
|
actConfirmed: boolean;
|
|
452
452
|
};
|
|
453
453
|
handlerProbe: {
|
|
@@ -495,12 +495,12 @@ export declare const SignalsSchema: z.ZodObject<{
|
|
|
495
495
|
} | undefined;
|
|
496
496
|
}, {
|
|
497
497
|
act: {
|
|
498
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
498
499
|
selector: {
|
|
499
500
|
role: string;
|
|
500
501
|
title?: string | undefined;
|
|
501
502
|
identifier?: string | undefined;
|
|
502
503
|
};
|
|
503
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
504
504
|
actConfirmed: boolean;
|
|
505
505
|
};
|
|
506
506
|
handlerProbe: {
|
|
@@ -710,20 +710,20 @@ export declare const EvidencePackSchema: z.ZodObject<{
|
|
|
710
710
|
action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
|
|
711
711
|
actConfirmed: z.ZodBoolean;
|
|
712
712
|
}, "strict", z.ZodTypeAny, {
|
|
713
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
713
714
|
selector: {
|
|
714
715
|
role: string;
|
|
715
716
|
title?: string | undefined;
|
|
716
717
|
identifier?: string | undefined;
|
|
717
718
|
};
|
|
718
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
719
719
|
actConfirmed: boolean;
|
|
720
720
|
}, {
|
|
721
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
721
722
|
selector: {
|
|
722
723
|
role: string;
|
|
723
724
|
title?: string | undefined;
|
|
724
725
|
identifier?: string | undefined;
|
|
725
726
|
};
|
|
726
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
727
727
|
actConfirmed: boolean;
|
|
728
728
|
}>;
|
|
729
729
|
axEvent: z.ZodOptional<z.ZodObject<{
|
|
@@ -869,12 +869,12 @@ export declare const EvidencePackSchema: z.ZodObject<{
|
|
|
869
869
|
}>>;
|
|
870
870
|
}, "strict", z.ZodTypeAny, {
|
|
871
871
|
act: {
|
|
872
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
872
873
|
selector: {
|
|
873
874
|
role: string;
|
|
874
875
|
title?: string | undefined;
|
|
875
876
|
identifier?: string | undefined;
|
|
876
877
|
};
|
|
877
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
878
878
|
actConfirmed: boolean;
|
|
879
879
|
};
|
|
880
880
|
handlerProbe: {
|
|
@@ -922,12 +922,12 @@ export declare const EvidencePackSchema: z.ZodObject<{
|
|
|
922
922
|
} | undefined;
|
|
923
923
|
}, {
|
|
924
924
|
act: {
|
|
925
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
925
926
|
selector: {
|
|
926
927
|
role: string;
|
|
927
928
|
title?: string | undefined;
|
|
928
929
|
identifier?: string | undefined;
|
|
929
930
|
};
|
|
930
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
931
931
|
actConfirmed: boolean;
|
|
932
932
|
};
|
|
933
933
|
handlerProbe: {
|
|
@@ -1065,12 +1065,12 @@ export declare const EvidencePackSchema: z.ZodObject<{
|
|
|
1065
1065
|
};
|
|
1066
1066
|
signals: {
|
|
1067
1067
|
act: {
|
|
1068
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1068
1069
|
selector: {
|
|
1069
1070
|
role: string;
|
|
1070
1071
|
title?: string | undefined;
|
|
1071
1072
|
identifier?: string | undefined;
|
|
1072
1073
|
};
|
|
1073
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1074
1074
|
actConfirmed: boolean;
|
|
1075
1075
|
};
|
|
1076
1076
|
handlerProbe: {
|
|
@@ -1152,12 +1152,12 @@ export declare const EvidencePackSchema: z.ZodObject<{
|
|
|
1152
1152
|
};
|
|
1153
1153
|
signals: {
|
|
1154
1154
|
act: {
|
|
1155
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1155
1156
|
selector: {
|
|
1156
1157
|
role: string;
|
|
1157
1158
|
title?: string | undefined;
|
|
1158
1159
|
identifier?: string | undefined;
|
|
1159
1160
|
};
|
|
1160
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1161
1161
|
actConfirmed: boolean;
|
|
1162
1162
|
};
|
|
1163
1163
|
handlerProbe: {
|
|
@@ -1278,20 +1278,20 @@ export declare const EvidencePackReadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1278
1278
|
action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
|
|
1279
1279
|
actConfirmed: z.ZodBoolean;
|
|
1280
1280
|
}, "strict", z.ZodTypeAny, {
|
|
1281
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1281
1282
|
selector: {
|
|
1282
1283
|
role: string;
|
|
1283
1284
|
title?: string | undefined;
|
|
1284
1285
|
identifier?: string | undefined;
|
|
1285
1286
|
};
|
|
1286
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1287
1287
|
actConfirmed: boolean;
|
|
1288
1288
|
}, {
|
|
1289
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1289
1290
|
selector: {
|
|
1290
1291
|
role: string;
|
|
1291
1292
|
title?: string | undefined;
|
|
1292
1293
|
identifier?: string | undefined;
|
|
1293
1294
|
};
|
|
1294
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1295
1295
|
actConfirmed: boolean;
|
|
1296
1296
|
}>;
|
|
1297
1297
|
axEvent: z.ZodOptional<z.ZodObject<{
|
|
@@ -1437,12 +1437,12 @@ export declare const EvidencePackReadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1437
1437
|
}>>;
|
|
1438
1438
|
}, "strict", z.ZodTypeAny, {
|
|
1439
1439
|
act: {
|
|
1440
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1440
1441
|
selector: {
|
|
1441
1442
|
role: string;
|
|
1442
1443
|
title?: string | undefined;
|
|
1443
1444
|
identifier?: string | undefined;
|
|
1444
1445
|
};
|
|
1445
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1446
1446
|
actConfirmed: boolean;
|
|
1447
1447
|
};
|
|
1448
1448
|
handlerProbe: {
|
|
@@ -1490,12 +1490,12 @@ export declare const EvidencePackReadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1490
1490
|
} | undefined;
|
|
1491
1491
|
}, {
|
|
1492
1492
|
act: {
|
|
1493
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1493
1494
|
selector: {
|
|
1494
1495
|
role: string;
|
|
1495
1496
|
title?: string | undefined;
|
|
1496
1497
|
identifier?: string | undefined;
|
|
1497
1498
|
};
|
|
1498
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1499
1499
|
actConfirmed: boolean;
|
|
1500
1500
|
};
|
|
1501
1501
|
handlerProbe: {
|
|
@@ -1633,12 +1633,12 @@ export declare const EvidencePackReadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1633
1633
|
};
|
|
1634
1634
|
signals: {
|
|
1635
1635
|
act: {
|
|
1636
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1636
1637
|
selector: {
|
|
1637
1638
|
role: string;
|
|
1638
1639
|
title?: string | undefined;
|
|
1639
1640
|
identifier?: string | undefined;
|
|
1640
1641
|
};
|
|
1641
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1642
1642
|
actConfirmed: boolean;
|
|
1643
1643
|
};
|
|
1644
1644
|
handlerProbe: {
|
|
@@ -1720,12 +1720,12 @@ export declare const EvidencePackReadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1720
1720
|
};
|
|
1721
1721
|
signals: {
|
|
1722
1722
|
act: {
|
|
1723
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1723
1724
|
selector: {
|
|
1724
1725
|
role: string;
|
|
1725
1726
|
title?: string | undefined;
|
|
1726
1727
|
identifier?: string | undefined;
|
|
1727
1728
|
};
|
|
1728
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1729
1729
|
actConfirmed: boolean;
|
|
1730
1730
|
};
|
|
1731
1731
|
handlerProbe: {
|
|
@@ -1807,12 +1807,12 @@ export declare const EvidencePackReadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1807
1807
|
};
|
|
1808
1808
|
signals: {
|
|
1809
1809
|
act: {
|
|
1810
|
+
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1810
1811
|
selector: {
|
|
1811
1812
|
role: string;
|
|
1812
1813
|
title?: string | undefined;
|
|
1813
1814
|
identifier?: string | undefined;
|
|
1814
1815
|
};
|
|
1815
|
-
action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
|
|
1816
1816
|
actConfirmed: boolean;
|
|
1817
1817
|
};
|
|
1818
1818
|
handlerProbe: {
|
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,18 @@
|
|
|
6
6
|
* the single source of truth; the zod mirrors in src/ must stay in sync
|
|
7
7
|
* with them via the shared truth fixtures (assertion C35).
|
|
8
8
|
*/
|
|
9
|
-
export { EVIDENCE_PACK_SCHEMA_ID, DECISION_LOG_ENTRY_SCHEMA_ID, RECIPE_CONFIG_SCHEMA_ID, EVIDENCE_PACK_JSON_SCHEMA, DECISION_LOG_ENTRY_JSON_SCHEMA, RECIPE_CONFIG_JSON_SCHEMA, type JsonSchemaObject } from "./schemas.js";
|
|
9
|
+
export { EVIDENCE_PACK_SCHEMA_ID, DECISION_LOG_ENTRY_SCHEMA_ID, RECIPE_CONFIG_SCHEMA_ID, RUN_PLAN_SCHEMA_ID, INVARIANT_REPORT_SCHEMA_ID, REVERIFICATION_REQUEST_SCHEMA_ID, CONVERGENCE_ROUND_STATE_SCHEMA_ID, PROVIDER_REGISTRATION_SCHEMA_ID, EVIDENCE_PACK_JSON_SCHEMA, DECISION_LOG_ENTRY_JSON_SCHEMA, RECIPE_CONFIG_JSON_SCHEMA, RUN_PLAN_JSON_SCHEMA, INVARIANT_REPORT_JSON_SCHEMA, REVERIFICATION_REQUEST_JSON_SCHEMA, CONVERGENCE_ROUND_STATE_JSON_SCHEMA, PROVIDER_REGISTRATION_JSON_SCHEMA, type JsonSchemaObject } from "./schemas.js";
|
|
10
10
|
export { EVIDENCE_SCHEMA_VERSION, OPERATION_ID_PATTERN, ISO_MILLIS_PATTERN, TREE_DIGEST_PATTERN, SELECTOR_MAX_LENGTH, AttributionLevelSchema, CircuitBreakerLevelSchema, SelectorSchema, ActionSchema, AssertionPropertySchema, StringOrBoolSchema, BoundsSchema, AxEventSignalSchema, PixelDiffSignalSchema, ResponsivenessSignalSchema, CrashSignalSchema, ActSignalSchema, HandlerRefSchema, HandlerProbeSignalSchema, StateEntrySchema, StateDiffSignalSchema, SignalsSchema, AttributionSchema, CircuitBreakerSchema, AssertionSchema, DiagnosisClassSchema, DiagnosisReportSchema, DiagnosisSchema, EvidencePackSchema, EvidencePackReadSchema, type AttributionLevel, type CircuitBreakerLevel, type Selector, type Action, type AssertionProperty, type StringOrBool, type Bounds, type AxEventSignal, type PixelDiffSignal, type ResponsivenessSignal, type CrashSignal, type ActSignal, type HandlerRef, type HandlerProbeSignal, type StateEntry, type StateDiffSignal, type Signals, type Attribution, type CircuitBreaker, type Assertion, type DiagnosisClass, type DiagnosisReport, type Diagnosis, type EvidencePack } from "./evidence-pack.js";
|
|
11
11
|
export { DECISION_ENTRY_ID_PATTERN, PREV_ENTRY_HASH_PATTERN, SUMMARY_MAX_LENGTH, DecisionOutcomeSchema, DecisionLogEntrySchema, type DecisionOutcome, type DecisionLogEntry } from "./decision-log-entry.js";
|
|
12
12
|
export { RECIPE_SCHEMA_VERSION, RECIPE_NAME_MAX_LENGTH, RECIPE_MIN_STEPS, RECIPE_MAX_STEPS, RecipeStepKindSchema, RecipeStepSchema, RecipeConfigSchema, type RecipeStepKind, type RecipeStep, type RecipeConfig } from "./recipe-config.js";
|
|
13
13
|
export { DIMENSION_ID_PATTERN, DIMENSION_ID_MAX_LENGTH, DIMENSION_LABEL_MAX_LENGTH, DIMENSION_FOCUS_MAX_LENGTH, DIMENSION_MIN_PLANNED, DIMENSION_MAX_PLANNED, DIMENSION_MAX_OPERATION_IDS, DIMENSION_CONTEXT_CODES, PlannedDimensionSchema, DimensionEvidenceSchema, DimensionStatusSchema, DimensionContextEntrySchema, DimensionContextTotalsSchema, DimensionContextSchema, DimensionContextInputSchema, KernelDimensionError, dimensionContext, formatDimensionContext, type DimensionEvidence, type DimensionStatus, type DimensionContextEntry, type DimensionContextTotals, type DimensionContext, type DimensionContextInput, type KernelDimensionCode } from "./dimension-context.js";
|
|
14
|
-
export { parseEvidencePack, parseEvidencePackRead, parseDecisionLogEntry, parseRecipeConfig, parseDimensionContext, parseDimensionContextInput } from "./parse.js";
|
|
14
|
+
export { parseEvidencePack, parseEvidencePackRead, parseDecisionLogEntry, parseRecipeConfig, parseRunPlan, parseDimensionContext, parseDimensionContextInput, parseInvariantReport, parseReverificationRequest, parseRoundState, parseProviderRegistration } from "./parse.js";
|
|
15
15
|
export { canonicalJson } from "./canonical-json.js";
|
|
16
|
+
export { RUN_PLAN_SCHEMA_VERSION, RUN_PLAN_SOURCES, RunPlanSchema, RunPlanSourceSchema, RunPlanSourceKindSchema, plannedIds, plannedDimensionsOf, runPlanDigest, type RunPlan, type RunPlanSource, type RunPlanSourceKind } from "./run-plan.js";
|
|
16
17
|
export { decisionOutcomeFromEvidence, decisionSummaryFromEvidence } from "./evidence-decision.js";
|
|
17
18
|
export { DECISION_LOG_CODES, DecisionLogDraftSchema, KernelDecisionLogError, appendDecisionLogEntry, buildDecisionLogEntry, decisionLogEntryHash, decisionLogHead, newDecisionEntryId, readDecisionLog, serializeDecisionLogEntry, verifyDecisionLogText, type AppendedDecisionLogEntry, type DecisionLogDraft, type DecisionLogVerification, type KernelDecisionLogCode } from "./decision-log.js";
|
|
18
19
|
export { KernelSchemaError, type KernelSchemaIssue } from "./errors.js";
|
|
20
|
+
export { INVARIANT_REPORT_SCHEMA_VERSION, REVERIFICATION_SCHEMA_VERSION, INVARIANT_CHECK_MAX, INVARIANT_DETAIL_MAX_LENGTH, REVERIFICATION_CODES, InvariantCheckKindSchema, InvariantCheckSchema, InvariantReportOutcomeSchema, InvariantReportSchema, ReverificationTargetsSchema, ReverificationRequestSchema, KernelReverificationError, invariantReportDigest, failingChecks, reVerificationRequestFrom, type InvariantCheckKind, type InvariantCheck, type InvariantReportOutcome, type InvariantReport, type ReverificationTargets, type ReverificationRequest, type ReverificationRecipeStep, type KernelReverificationCode } from "./invariant-report.js";
|
|
21
|
+
export { CONVERGENCE_SCHEMA_VERSION, CONVERGENCE_REASONS, InvariantStateSchema, RoundStateSchema, ConvergenceActionSchema, ConvergenceDecisionSchema, convergenceDecision, type InvariantState, type RoundState, type ConvergenceAction, type ConvergenceDecision, type ConvergenceReason } from "./convergence.js";
|
|
22
|
+
export { PROVIDER_SCHEMA_VERSION, PROVIDER_ID_PATTERN, PROVIDER_ID_MAX_LENGTH, PROVIDER_METHOD_MAX, PROVIDER_CODES, ProviderKindSchema, ProviderMethodSchema, ProviderRegistrationSchema, KernelProviderError, emptyProviderRegistry, registerProvider, resolveProvider, requireMethod, providerIdsInCommon, type ProviderKind, type ProviderMethod, type ProviderRegistration, type ProviderRegistry, type KernelProviderCode } from "./provider-registration.js";
|
|
19
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,yBAAyB,EACzB,KAAK,gBAAgB,EACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,oBAAoB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,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACzB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,yBAAyB,EACzB,8BAA8B,EAC9B,yBAAyB,EACzB,oBAAoB,EACpB,4BAA4B,EAC5B,kCAAkC,EAClC,mCAAmC,EACnC,iCAAiC,EACjC,KAAK,gBAAgB,EACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KA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AK,mBAAmB,EACxB,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,14 +6,18 @@
|
|
|
6
6
|
* the single source of truth; the zod mirrors in src/ must stay in sync
|
|
7
7
|
* with them via the shared truth fixtures (assertion C35).
|
|
8
8
|
*/
|
|
9
|
-
export { EVIDENCE_PACK_SCHEMA_ID, DECISION_LOG_ENTRY_SCHEMA_ID, RECIPE_CONFIG_SCHEMA_ID, EVIDENCE_PACK_JSON_SCHEMA, DECISION_LOG_ENTRY_JSON_SCHEMA, RECIPE_CONFIG_JSON_SCHEMA } from "./schemas.js";
|
|
9
|
+
export { EVIDENCE_PACK_SCHEMA_ID, DECISION_LOG_ENTRY_SCHEMA_ID, RECIPE_CONFIG_SCHEMA_ID, RUN_PLAN_SCHEMA_ID, INVARIANT_REPORT_SCHEMA_ID, REVERIFICATION_REQUEST_SCHEMA_ID, CONVERGENCE_ROUND_STATE_SCHEMA_ID, PROVIDER_REGISTRATION_SCHEMA_ID, EVIDENCE_PACK_JSON_SCHEMA, DECISION_LOG_ENTRY_JSON_SCHEMA, RECIPE_CONFIG_JSON_SCHEMA, RUN_PLAN_JSON_SCHEMA, INVARIANT_REPORT_JSON_SCHEMA, REVERIFICATION_REQUEST_JSON_SCHEMA, CONVERGENCE_ROUND_STATE_JSON_SCHEMA, PROVIDER_REGISTRATION_JSON_SCHEMA } from "./schemas.js";
|
|
10
10
|
export { EVIDENCE_SCHEMA_VERSION, OPERATION_ID_PATTERN, ISO_MILLIS_PATTERN, TREE_DIGEST_PATTERN, SELECTOR_MAX_LENGTH, AttributionLevelSchema, CircuitBreakerLevelSchema, SelectorSchema, ActionSchema, AssertionPropertySchema, StringOrBoolSchema, BoundsSchema, AxEventSignalSchema, PixelDiffSignalSchema, ResponsivenessSignalSchema, CrashSignalSchema, ActSignalSchema, HandlerRefSchema, HandlerProbeSignalSchema, StateEntrySchema, StateDiffSignalSchema, SignalsSchema, AttributionSchema, CircuitBreakerSchema, AssertionSchema, DiagnosisClassSchema, DiagnosisReportSchema, DiagnosisSchema, EvidencePackSchema, EvidencePackReadSchema } from "./evidence-pack.js";
|
|
11
11
|
export { DECISION_ENTRY_ID_PATTERN, PREV_ENTRY_HASH_PATTERN, SUMMARY_MAX_LENGTH, DecisionOutcomeSchema, DecisionLogEntrySchema } from "./decision-log-entry.js";
|
|
12
12
|
export { RECIPE_SCHEMA_VERSION, RECIPE_NAME_MAX_LENGTH, RECIPE_MIN_STEPS, RECIPE_MAX_STEPS, RecipeStepKindSchema, RecipeStepSchema, RecipeConfigSchema } from "./recipe-config.js";
|
|
13
13
|
export { DIMENSION_ID_PATTERN, DIMENSION_ID_MAX_LENGTH, DIMENSION_LABEL_MAX_LENGTH, DIMENSION_FOCUS_MAX_LENGTH, DIMENSION_MIN_PLANNED, DIMENSION_MAX_PLANNED, DIMENSION_MAX_OPERATION_IDS, DIMENSION_CONTEXT_CODES, PlannedDimensionSchema, DimensionEvidenceSchema, DimensionStatusSchema, DimensionContextEntrySchema, DimensionContextTotalsSchema, DimensionContextSchema, DimensionContextInputSchema, KernelDimensionError, dimensionContext, formatDimensionContext } from "./dimension-context.js";
|
|
14
|
-
export { parseEvidencePack, parseEvidencePackRead, parseDecisionLogEntry, parseRecipeConfig, parseDimensionContext, parseDimensionContextInput } from "./parse.js";
|
|
14
|
+
export { parseEvidencePack, parseEvidencePackRead, parseDecisionLogEntry, parseRecipeConfig, parseRunPlan, parseDimensionContext, parseDimensionContextInput, parseInvariantReport, parseReverificationRequest, parseRoundState, parseProviderRegistration } from "./parse.js";
|
|
15
15
|
export { canonicalJson } from "./canonical-json.js";
|
|
16
|
+
export { RUN_PLAN_SCHEMA_VERSION, RUN_PLAN_SOURCES, RunPlanSchema, RunPlanSourceSchema, RunPlanSourceKindSchema, plannedIds, plannedDimensionsOf, runPlanDigest } from "./run-plan.js";
|
|
16
17
|
export { decisionOutcomeFromEvidence, decisionSummaryFromEvidence } from "./evidence-decision.js";
|
|
17
18
|
export { DECISION_LOG_CODES, DecisionLogDraftSchema, KernelDecisionLogError, appendDecisionLogEntry, buildDecisionLogEntry, decisionLogEntryHash, decisionLogHead, newDecisionEntryId, readDecisionLog, serializeDecisionLogEntry, verifyDecisionLogText } from "./decision-log.js";
|
|
18
19
|
export { KernelSchemaError } from "./errors.js";
|
|
20
|
+
export { INVARIANT_REPORT_SCHEMA_VERSION, REVERIFICATION_SCHEMA_VERSION, INVARIANT_CHECK_MAX, INVARIANT_DETAIL_MAX_LENGTH, REVERIFICATION_CODES, InvariantCheckKindSchema, InvariantCheckSchema, InvariantReportOutcomeSchema, InvariantReportSchema, ReverificationTargetsSchema, ReverificationRequestSchema, KernelReverificationError, invariantReportDigest, failingChecks, reVerificationRequestFrom } from "./invariant-report.js";
|
|
21
|
+
export { CONVERGENCE_SCHEMA_VERSION, CONVERGENCE_REASONS, InvariantStateSchema, RoundStateSchema, ConvergenceActionSchema, ConvergenceDecisionSchema, convergenceDecision } from "./convergence.js";
|
|
22
|
+
export { PROVIDER_SCHEMA_VERSION, PROVIDER_ID_PATTERN, PROVIDER_ID_MAX_LENGTH, PROVIDER_METHOD_MAX, PROVIDER_CODES, ProviderKindSchema, ProviderMethodSchema, ProviderRegistrationSchema, KernelProviderError, emptyProviderRegistry, registerProvider, resolveProvider, requireMethod, providerIdsInCommon } from "./provider-registration.js";
|
|
19
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,yBAAyB,EACzB,8BAA8B,EAC9B,yBAAyB,EACzB,oBAAoB,EACpB,4BAA4B,EAC5B,kCAAkC,EAClC,mCAAmC,EACnC,iCAAiC,EAElC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EAyBvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EAGvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,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