fix(ci): remove redundant process exports
This commit is contained in:
1 parent
f0a9a3cd25
commit
19bb2317d1
5 files changed
+5
-9
No files matched your search
@@ -35,7 +35,6 @@ import {
|
||||
import { assertNotCancelled } from "./ProcessCaptureAuthority.js";
|
||||
|
||||
export { probeProcessCaptureCapability } from "./ProcessCaptureCapability.js";
|
||||
export type { ProcessCaptureCapability } from "./ProcessCaptureCapability.js";
|
||||
|
||||
interface EnvironmentOptions {
|
||||
readonly scenario: ProcessScenario;
|
||||
|
||||
@@ -325,7 +325,6 @@ export const processCaptureSchema: z.ZodType<ProcessCapture> = z.object({
|
||||
});
|
||||
|
||||
export { validateProcessCapture } from "./processCaptureValidation.js";
|
||||
export type { ProcessCaptureValidationIssue } from "./processCaptureValidation.js";
|
||||
import { validateProcessCapture } from "./processCaptureValidation.js";
|
||||
|
||||
/** Parse unknown input as v4 and reject invalid commitments or semantics. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ProcessCapture } from "./processCapture.js";
|
||||
import { canonicalProcessSha256 } from "./processScenario.js";
|
||||
import { digestProcessCommitment } from "./processScenario.js";
|
||||
|
||||
/** One pure semantic validation failure in an otherwise shaped v4 capture. */
|
||||
export interface ProcessCaptureValidationIssue {
|
||||
@@ -35,7 +35,7 @@ const validateCommitments = (
|
||||
["replay_plan_sha256", manifest.replay_plan],
|
||||
] as const)
|
||||
require(manifest[field] ===
|
||||
canonicalProcessSha256(
|
||||
digestProcessCommitment(
|
||||
value,
|
||||
), `manifest.${field}`, "commitment does not match its canonical value");
|
||||
require(Date.parse(manifest.started_at) <=
|
||||
|
||||
@@ -42,7 +42,8 @@ const outputChunkSchema = z.object({
|
||||
export const LEGACY_PROCESS_CAPTURE_MESSAGE =
|
||||
"Process Capture v3 is unsupported. Re-run the scenario with this REA version using capture_process_scenario to produce Process Capture v4; captures cannot be upgraded because v4 requires new manifest and settlement evidence.";
|
||||
|
||||
export const canonicalProcessSha256 = (value: unknown): string => {
|
||||
/** Compute a canonical SHA-256 commitment independent of object key order. */
|
||||
export const digestProcessCommitment = (value: unknown): string => {
|
||||
const serialized = canonicalize(value);
|
||||
if (serialized === undefined)
|
||||
throw new TypeError("Process capture commitment is not canonical JSON");
|
||||
@@ -86,9 +87,6 @@ export const processComparisonContract = (
|
||||
replay: scenario.replay,
|
||||
});
|
||||
|
||||
/** Compute a canonical SHA-256 commitment independent of object key order. */
|
||||
export const digestProcessCommitment = canonicalProcessSha256;
|
||||
|
||||
/**
|
||||
* Boundary schema for one explicitly approved, bounded process experiment.
|
||||
* Defaults are part of the evidence contract and must remain deterministic.
|
||||
|
||||
@@ -27,7 +27,7 @@ describe("canonical skill transaction", () => {
|
||||
expect(await readFile(`${destination}.rea.backup`, "utf8")).toBe(
|
||||
"stale managed skill\n",
|
||||
);
|
||||
expect(await readFile(destination, "utf8")).toContain('version: "10"');
|
||||
expect(await readFile(destination, "utf8")).toContain('version: "11"');
|
||||
expect(await readFile(destination, "utf8")).toContain(
|
||||
`tool_count: ${String(TOOL_CONTRACTS.length)}`,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user