fix(ci): remove redundant process exports
This commit is contained in:
@@ -35,7 +35,6 @@ import {
|
|||||||
import { assertNotCancelled } from "./ProcessCaptureAuthority.js";
|
import { assertNotCancelled } from "./ProcessCaptureAuthority.js";
|
||||||
|
|
||||||
export { probeProcessCaptureCapability } from "./ProcessCaptureCapability.js";
|
export { probeProcessCaptureCapability } from "./ProcessCaptureCapability.js";
|
||||||
export type { ProcessCaptureCapability } from "./ProcessCaptureCapability.js";
|
|
||||||
|
|
||||||
interface EnvironmentOptions {
|
interface EnvironmentOptions {
|
||||||
readonly scenario: ProcessScenario;
|
readonly scenario: ProcessScenario;
|
||||||
|
|||||||
@@ -325,7 +325,6 @@ export const processCaptureSchema: z.ZodType<ProcessCapture> = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export { validateProcessCapture } from "./processCaptureValidation.js";
|
export { validateProcessCapture } from "./processCaptureValidation.js";
|
||||||
export type { ProcessCaptureValidationIssue } from "./processCaptureValidation.js";
|
|
||||||
import { validateProcessCapture } from "./processCaptureValidation.js";
|
import { validateProcessCapture } from "./processCaptureValidation.js";
|
||||||
|
|
||||||
/** Parse unknown input as v4 and reject invalid commitments or semantics. */
|
/** Parse unknown input as v4 and reject invalid commitments or semantics. */
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { ProcessCapture } from "./processCapture.js";
|
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. */
|
/** One pure semantic validation failure in an otherwise shaped v4 capture. */
|
||||||
export interface ProcessCaptureValidationIssue {
|
export interface ProcessCaptureValidationIssue {
|
||||||
@@ -35,7 +35,7 @@ const validateCommitments = (
|
|||||||
["replay_plan_sha256", manifest.replay_plan],
|
["replay_plan_sha256", manifest.replay_plan],
|
||||||
] as const)
|
] as const)
|
||||||
require(manifest[field] ===
|
require(manifest[field] ===
|
||||||
canonicalProcessSha256(
|
digestProcessCommitment(
|
||||||
value,
|
value,
|
||||||
), `manifest.${field}`, "commitment does not match its canonical value");
|
), `manifest.${field}`, "commitment does not match its canonical value");
|
||||||
require(Date.parse(manifest.started_at) <=
|
require(Date.parse(manifest.started_at) <=
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ const outputChunkSchema = z.object({
|
|||||||
export const LEGACY_PROCESS_CAPTURE_MESSAGE =
|
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.";
|
"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);
|
const serialized = canonicalize(value);
|
||||||
if (serialized === undefined)
|
if (serialized === undefined)
|
||||||
throw new TypeError("Process capture commitment is not canonical JSON");
|
throw new TypeError("Process capture commitment is not canonical JSON");
|
||||||
@@ -86,9 +87,6 @@ export const processComparisonContract = (
|
|||||||
replay: scenario.replay,
|
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.
|
* Boundary schema for one explicitly approved, bounded process experiment.
|
||||||
* Defaults are part of the evidence contract and must remain deterministic.
|
* 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(
|
expect(await readFile(`${destination}.rea.backup`, "utf8")).toBe(
|
||||||
"stale managed skill\n",
|
"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(
|
expect(await readFile(destination, "utf8")).toContain(
|
||||||
`tool_count: ${String(TOOL_CONTRACTS.length)}`,
|
`tool_count: ${String(TOOL_CONTRACTS.length)}`,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user