@riddledc/riddle-proof 0.8.55 → 0.8.56
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/adapters/codex-exec-agent.js +2 -2
- package/dist/adapters/codex.js +2 -2
- package/dist/adapters/local-agent.js +2 -2
- package/dist/adapters/openclaw.js +5 -5
- package/dist/advanced/engine-harness.cjs +64 -20
- package/dist/advanced/engine-harness.js +5 -5
- package/dist/advanced/index.cjs +64 -20
- package/dist/advanced/index.d.cts +1 -1
- package/dist/advanced/index.d.ts +1 -1
- package/dist/advanced/index.js +6 -6
- package/dist/advanced/proof-run-engine.d.cts +1 -1
- package/dist/advanced/proof-run-engine.d.ts +1 -1
- package/dist/advanced/runner.cjs +5 -0
- package/dist/advanced/runner.js +5 -5
- package/dist/checkpoint.cjs +4 -0
- package/dist/checkpoint.js +2 -2
- package/dist/{chunk-MYMTAVGP.js → chunk-54DIEDR3.js} +3 -3
- package/dist/{chunk-W44XEGYW.js → chunk-CUBYSWZT.js} +5 -0
- package/dist/{chunk-QGE3KBRL.js → chunk-GHBNDHG7.js} +60 -24
- package/dist/{chunk-F65S5LT2.js → chunk-JLOZTVXU.js} +2 -2
- package/dist/{chunk-NYRMPWJB.js → chunk-KNPCWWF3.js} +2 -2
- package/dist/{chunk-QUK3SG24.js → chunk-MOTQNIZX.js} +5 -1
- package/dist/{chunk-SONWF3FQ.js → chunk-RS4HJLJQ.js} +1 -1
- package/dist/{chunk-J2ZNL3H3.js → chunk-TTB3ZAVX.js} +2 -2
- package/dist/{chunk-Q5GYD5RG.js → chunk-UZIX7M7D.js} +4 -2
- package/dist/cli/index.js +7 -7
- package/dist/cli.cjs +64 -20
- package/dist/cli.js +7 -7
- package/dist/codex-exec-agent.js +2 -2
- package/dist/engine-harness.cjs +64 -20
- package/dist/engine-harness.js +5 -5
- package/dist/index.cjs +66 -20
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -7
- package/dist/local-agent.js +2 -2
- package/dist/openclaw.js +5 -5
- package/dist/{proof-run-engine-MiKZt9oY.d.ts → proof-run-engine-BqRoA3Do.d.ts} +3 -3
- package/dist/{proof-run-engine-Baiv6l3A.d.cts → proof-run-engine-DpChFR5H.d.cts} +3 -3
- package/dist/proof-run-engine.d.cts +1 -1
- package/dist/proof-run-engine.d.ts +1 -1
- package/dist/result.cjs +6 -0
- package/dist/result.d.cts +2 -1
- package/dist/result.d.ts +2 -1
- package/dist/result.js +3 -1
- package/dist/run-card.js +3 -3
- package/dist/runner.cjs +5 -0
- package/dist/runner.js +5 -5
- package/dist/spec/checkpoint.cjs +4 -0
- package/dist/spec/checkpoint.js +2 -2
- package/dist/spec/index.cjs +11 -0
- package/dist/spec/index.d.cts +1 -1
- package/dist/spec/index.d.ts +1 -1
- package/dist/spec/index.js +6 -4
- package/dist/spec/result.cjs +6 -0
- package/dist/spec/result.d.cts +1 -1
- package/dist/spec/result.d.ts +1 -1
- package/dist/spec/result.js +3 -1
- package/dist/spec/run-card.js +3 -3
- package/dist/spec/state.cjs +4 -0
- package/dist/spec/state.js +4 -4
- package/dist/state.cjs +4 -0
- package/dist/state.js +4 -4
- package/dist/types.d.cts +2 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/result.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(result_exports, {
|
|
|
24
24
|
applyTerminalMetadata: () => applyTerminalMetadata,
|
|
25
25
|
compactRecord: () => compactRecord,
|
|
26
26
|
createRunResult: () => createRunResult,
|
|
27
|
+
isProtectedFinalStatus: () => isProtectedFinalStatus,
|
|
27
28
|
isSuccessfulStatus: () => isSuccessfulStatus,
|
|
28
29
|
isTerminalStatus: () => isTerminalStatus,
|
|
29
30
|
nonEmptyString: () => nonEmptyString,
|
|
@@ -35,6 +36,9 @@ module.exports = __toCommonJS(result_exports);
|
|
|
35
36
|
function isTerminalStatus(status) {
|
|
36
37
|
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
37
38
|
}
|
|
39
|
+
function isProtectedFinalStatus(status) {
|
|
40
|
+
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
41
|
+
}
|
|
38
42
|
function isSuccessfulStatus(status) {
|
|
39
43
|
return status !== "blocked" && status !== "failed";
|
|
40
44
|
}
|
|
@@ -248,6 +252,7 @@ function createRunResult(input) {
|
|
|
248
252
|
const state = input.metadata ? applyTerminalMetadata(input.state, input.metadata) : input.state;
|
|
249
253
|
state.status = status;
|
|
250
254
|
state.ok = ok;
|
|
255
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
251
256
|
applyShipControlState(state, { status, raw: input.raw });
|
|
252
257
|
return compactRecord({
|
|
253
258
|
ok,
|
|
@@ -302,6 +307,7 @@ function createRunResult(input) {
|
|
|
302
307
|
applyTerminalMetadata,
|
|
303
308
|
compactRecord,
|
|
304
309
|
createRunResult,
|
|
310
|
+
isProtectedFinalStatus,
|
|
305
311
|
isSuccessfulStatus,
|
|
306
312
|
isTerminalStatus,
|
|
307
313
|
nonEmptyString,
|
package/dist/result.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RiddleProofRunState, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofEvidenceBundle, RiddleProofRunResult } from './types.cjs';
|
|
2
2
|
|
|
3
3
|
declare function isTerminalStatus(status: RiddleProofStatus): boolean;
|
|
4
|
+
declare function isProtectedFinalStatus(status: unknown): boolean;
|
|
4
5
|
declare function isSuccessfulStatus(status: RiddleProofStatus): boolean;
|
|
5
6
|
declare function compactRecord<T extends Record<string, unknown>>(input: T): Partial<T>;
|
|
6
7
|
declare function nonEmptyString(value: unknown): string | undefined;
|
|
@@ -36,4 +37,4 @@ declare function createRunResult(input: {
|
|
|
36
37
|
raw?: Record<string, unknown>;
|
|
37
38
|
}): RiddleProofRunResult;
|
|
38
39
|
|
|
39
|
-
export { type RiddleProofShipControlState, type TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor };
|
|
40
|
+
export { type RiddleProofShipControlState, type TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor };
|
package/dist/result.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RiddleProofRunState, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofEvidenceBundle, RiddleProofRunResult } from './types.js';
|
|
2
2
|
|
|
3
3
|
declare function isTerminalStatus(status: RiddleProofStatus): boolean;
|
|
4
|
+
declare function isProtectedFinalStatus(status: unknown): boolean;
|
|
4
5
|
declare function isSuccessfulStatus(status: RiddleProofStatus): boolean;
|
|
5
6
|
declare function compactRecord<T extends Record<string, unknown>>(input: T): Partial<T>;
|
|
6
7
|
declare function nonEmptyString(value: unknown): string | undefined;
|
|
@@ -36,4 +37,4 @@ declare function createRunResult(input: {
|
|
|
36
37
|
raw?: Record<string, unknown>;
|
|
37
38
|
}): RiddleProofRunResult;
|
|
38
39
|
|
|
39
|
-
export { type RiddleProofShipControlState, type TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor };
|
|
40
|
+
export { type RiddleProofShipControlState, type TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor };
|
package/dist/result.js
CHANGED
|
@@ -3,19 +3,21 @@ import {
|
|
|
3
3
|
applyTerminalMetadata,
|
|
4
4
|
compactRecord,
|
|
5
5
|
createRunResult,
|
|
6
|
+
isProtectedFinalStatus,
|
|
6
7
|
isSuccessfulStatus,
|
|
7
8
|
isTerminalStatus,
|
|
8
9
|
nonEmptyString,
|
|
9
10
|
normalizeTerminalMetadata,
|
|
10
11
|
recordValue,
|
|
11
12
|
shipControlStateFor
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CUBYSWZT.js";
|
|
13
14
|
import "./chunk-MLKGABMK.js";
|
|
14
15
|
export {
|
|
15
16
|
applyShipControlState,
|
|
16
17
|
applyTerminalMetadata,
|
|
17
18
|
compactRecord,
|
|
18
19
|
createRunResult,
|
|
20
|
+
isProtectedFinalStatus,
|
|
19
21
|
isSuccessfulStatus,
|
|
20
22
|
isTerminalStatus,
|
|
21
23
|
nonEmptyString,
|
package/dist/run-card.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
3
3
|
createRiddleProofRunCard
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-KNPCWWF3.js";
|
|
5
|
+
import "./chunk-MOTQNIZX.js";
|
|
6
|
+
import "./chunk-CUBYSWZT.js";
|
|
7
7
|
import "./chunk-MLKGABMK.js";
|
|
8
8
|
export {
|
|
9
9
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
package/dist/runner.cjs
CHANGED
|
@@ -35,6 +35,9 @@ __export(runner_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(runner_exports);
|
|
36
36
|
|
|
37
37
|
// src/result.ts
|
|
38
|
+
function isProtectedFinalStatus(status) {
|
|
39
|
+
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
40
|
+
}
|
|
38
41
|
function isSuccessfulStatus(status) {
|
|
39
42
|
return status !== "blocked" && status !== "failed";
|
|
40
43
|
}
|
|
@@ -149,6 +152,7 @@ function createRunResult(input) {
|
|
|
149
152
|
const state = input.metadata ? applyTerminalMetadata(input.state, input.metadata) : input.state;
|
|
150
153
|
state.status = status;
|
|
151
154
|
state.ok = ok;
|
|
155
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
152
156
|
applyShipControlState(state, { status, raw: input.raw });
|
|
153
157
|
return compactRecord({
|
|
154
158
|
ok,
|
|
@@ -348,6 +352,7 @@ function appendStageHeartbeat(state, input) {
|
|
|
348
352
|
function setRunStatus(state, status, at = timestamp()) {
|
|
349
353
|
state.status = status;
|
|
350
354
|
state.ok = status !== "blocked" && status !== "failed";
|
|
355
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
351
356
|
state.updated_at = at;
|
|
352
357
|
return state;
|
|
353
358
|
}
|
package/dist/runner.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRiddleProof
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JLOZTVXU.js";
|
|
4
|
+
import "./chunk-UZIX7M7D.js";
|
|
5
|
+
import "./chunk-KNPCWWF3.js";
|
|
6
6
|
import "./chunk-EKZXU6MU.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-MOTQNIZX.js";
|
|
8
|
+
import "./chunk-CUBYSWZT.js";
|
|
9
9
|
import "./chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
runRiddleProof
|
package/dist/spec/checkpoint.cjs
CHANGED
|
@@ -759,6 +759,8 @@ function checkpointSummaryFromState(state, engineStatePath) {
|
|
|
759
759
|
const packets = history.filter((entry) => entry.packet);
|
|
760
760
|
const responses = acceptedCheckpointResponseEntries(state);
|
|
761
761
|
const duplicateResponses = events.filter((event) => event.kind === "checkpoint.response.duplicate");
|
|
762
|
+
const rejectedResponses = events.filter((event) => event.kind === "checkpoint.response.rejected");
|
|
763
|
+
const ignoredResponses = events.filter((event) => event.kind === "checkpoint.response.ignored");
|
|
762
764
|
const latestPacketEntry = [...history].reverse().find((entry) => entry.packet);
|
|
763
765
|
const latestResponseEntry = [...responses].reverse().find((entry) => entry.response);
|
|
764
766
|
const latestPacket = state.checkpoint_packet || latestPacketEntry?.packet;
|
|
@@ -774,6 +776,8 @@ function checkpointSummaryFromState(state, engineStatePath) {
|
|
|
774
776
|
packet_count: packets.length,
|
|
775
777
|
response_count: responses.length,
|
|
776
778
|
duplicate_response_count: duplicateResponses.length,
|
|
779
|
+
rejected_response_count: rejectedResponses.length,
|
|
780
|
+
ignored_response_count: ignoredResponses.length,
|
|
777
781
|
latest_checkpoint: state.checkpoint_packet?.checkpoint || latestResponse?.checkpoint || state.last_checkpoint || null,
|
|
778
782
|
latest_stage: state.checkpoint_packet?.stage || latestResponse?.continue_with_stage || state.current_stage || null,
|
|
779
783
|
latest_kind: state.checkpoint_packet?.kind || latestPacket?.kind || null,
|
package/dist/spec/checkpoint.js
CHANGED
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
normalizeCheckpointResponse,
|
|
15
15
|
proofContractFromAuthorCheckpointResponse,
|
|
16
16
|
statePathsForRunState
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-MOTQNIZX.js";
|
|
18
|
+
import "../chunk-CUBYSWZT.js";
|
|
19
19
|
import "../chunk-MLKGABMK.js";
|
|
20
20
|
export {
|
|
21
21
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
package/dist/spec/index.cjs
CHANGED
|
@@ -54,6 +54,7 @@ __export(spec_exports, {
|
|
|
54
54
|
createRunState: () => createRunState,
|
|
55
55
|
createRunStatusSnapshot: () => createRunStatusSnapshot,
|
|
56
56
|
isDuplicateCheckpointResponse: () => isDuplicateCheckpointResponse,
|
|
57
|
+
isProtectedFinalStatus: () => isProtectedFinalStatus,
|
|
57
58
|
isSuccessfulStatus: () => isSuccessfulStatus,
|
|
58
59
|
isTerminalStatus: () => isTerminalStatus,
|
|
59
60
|
nonEmptyString: () => nonEmptyString,
|
|
@@ -74,6 +75,9 @@ module.exports = __toCommonJS(spec_exports);
|
|
|
74
75
|
function isTerminalStatus(status) {
|
|
75
76
|
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
76
77
|
}
|
|
78
|
+
function isProtectedFinalStatus(status) {
|
|
79
|
+
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
80
|
+
}
|
|
77
81
|
function isSuccessfulStatus(status) {
|
|
78
82
|
return status !== "blocked" && status !== "failed";
|
|
79
83
|
}
|
|
@@ -287,6 +291,7 @@ function createRunResult(input) {
|
|
|
287
291
|
const state = input.metadata ? applyTerminalMetadata(input.state, input.metadata) : input.state;
|
|
288
292
|
state.status = status;
|
|
289
293
|
state.ok = ok;
|
|
294
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
290
295
|
applyShipControlState(state, { status, raw: input.raw });
|
|
291
296
|
return compactRecord({
|
|
292
297
|
ok,
|
|
@@ -1034,6 +1039,8 @@ function checkpointSummaryFromState(state, engineStatePath) {
|
|
|
1034
1039
|
const packets = history.filter((entry) => entry.packet);
|
|
1035
1040
|
const responses = acceptedCheckpointResponseEntries(state);
|
|
1036
1041
|
const duplicateResponses = events.filter((event) => event.kind === "checkpoint.response.duplicate");
|
|
1042
|
+
const rejectedResponses = events.filter((event) => event.kind === "checkpoint.response.rejected");
|
|
1043
|
+
const ignoredResponses = events.filter((event) => event.kind === "checkpoint.response.ignored");
|
|
1037
1044
|
const latestPacketEntry = [...history].reverse().find((entry) => entry.packet);
|
|
1038
1045
|
const latestResponseEntry = [...responses].reverse().find((entry) => entry.response);
|
|
1039
1046
|
const latestPacket = state.checkpoint_packet || latestPacketEntry?.packet;
|
|
@@ -1049,6 +1056,8 @@ function checkpointSummaryFromState(state, engineStatePath) {
|
|
|
1049
1056
|
packet_count: packets.length,
|
|
1050
1057
|
response_count: responses.length,
|
|
1051
1058
|
duplicate_response_count: duplicateResponses.length,
|
|
1059
|
+
rejected_response_count: rejectedResponses.length,
|
|
1060
|
+
ignored_response_count: ignoredResponses.length,
|
|
1052
1061
|
latest_checkpoint: state.checkpoint_packet?.checkpoint || latestResponse?.checkpoint || state.last_checkpoint || null,
|
|
1053
1062
|
latest_stage: state.checkpoint_packet?.stage || latestResponse?.continue_with_stage || state.current_stage || null,
|
|
1054
1063
|
latest_kind: state.checkpoint_packet?.kind || latestPacket?.kind || null,
|
|
@@ -1577,6 +1586,7 @@ function createRunStatusSnapshot(state, at = timestamp2()) {
|
|
|
1577
1586
|
function setRunStatus(state, status, at = timestamp2()) {
|
|
1578
1587
|
state.status = status;
|
|
1579
1588
|
state.ok = status !== "blocked" && status !== "failed";
|
|
1589
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
1580
1590
|
state.updated_at = at;
|
|
1581
1591
|
return state;
|
|
1582
1592
|
}
|
|
@@ -1623,6 +1633,7 @@ function applyPrLifecycleState(state, input, at = timestamp2()) {
|
|
|
1623
1633
|
createRunState,
|
|
1624
1634
|
createRunStatusSnapshot,
|
|
1625
1635
|
isDuplicateCheckpointResponse,
|
|
1636
|
+
isProtectedFinalStatus,
|
|
1626
1637
|
isSuccessfulStatus,
|
|
1627
1638
|
isTerminalStatus,
|
|
1628
1639
|
nonEmptyString,
|
package/dist/spec/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, PreflightAdapter, PreflightAdapterInput, PreflightAdapterResult, ProofAdapter, ProofAdapterInput, ProofAdapterResult, RiddleProofArtifactRole, RiddleProofAssessment, RiddleProofBlocker, RiddleProofCheckpointArtifact, RiddleProofCheckpointPacket, RiddleProofCheckpointResponse, RiddleProofCheckpointRole, RiddleProofCheckpointRoutingHint, RiddleProofCheckpointSummary, RiddleProofCheckpointVisibility, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofPrLifecycleState, RiddleProofPrLifecycleStatus, RiddleProofProofContract, RiddleProofRunCard, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatePaths, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofViewportCapture, RiddleProofViewportMatrixStatus, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from '../types.cjs';
|
|
2
|
-
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.cjs';
|
|
2
|
+
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.cjs';
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, applyPrLifecycleState, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizePrLifecycleState, normalizeRunParams, setRunStatus } from '../state.cjs';
|
|
4
4
|
export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, buildCheckpointPacketForEngineResult, buildProofAssessmentCheckpointPacket, buildStageCheckpointPacket, checkpointPacketIdentity, checkpointResponseIdentity, checkpointSummaryFromState, createCheckpointResponseTemplate, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from '../checkpoint.cjs';
|
|
5
5
|
export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from '../run-card.cjs';
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, PreflightAdapter, PreflightAdapterInput, PreflightAdapterResult, ProofAdapter, ProofAdapterInput, ProofAdapterResult, RiddleProofArtifactRole, RiddleProofAssessment, RiddleProofBlocker, RiddleProofCheckpointArtifact, RiddleProofCheckpointPacket, RiddleProofCheckpointResponse, RiddleProofCheckpointRole, RiddleProofCheckpointRoutingHint, RiddleProofCheckpointSummary, RiddleProofCheckpointVisibility, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofPrLifecycleState, RiddleProofPrLifecycleStatus, RiddleProofProofContract, RiddleProofRunCard, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatePaths, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofViewportCapture, RiddleProofViewportMatrixStatus, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from '../types.js';
|
|
2
|
-
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.js';
|
|
2
|
+
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.js';
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, applyPrLifecycleState, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizePrLifecycleState, normalizeRunParams, setRunStatus } from '../state.js';
|
|
4
4
|
export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, buildCheckpointPacketForEngineResult, buildProofAssessmentCheckpointPacket, buildStageCheckpointPacket, checkpointPacketIdentity, checkpointResponseIdentity, checkpointSummaryFromState, createCheckpointResponseTemplate, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from '../checkpoint.js';
|
|
5
5
|
export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from '../run-card.js';
|
package/dist/spec/index.js
CHANGED
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
normalizePrLifecycleState,
|
|
11
11
|
normalizeRunParams,
|
|
12
12
|
setRunStatus
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-UZIX7M7D.js";
|
|
14
14
|
import {
|
|
15
15
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
16
16
|
createRiddleProofRunCard
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-KNPCWWF3.js";
|
|
18
18
|
import {
|
|
19
19
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
20
20
|
RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION,
|
|
@@ -31,19 +31,20 @@ import {
|
|
|
31
31
|
normalizeCheckpointResponse,
|
|
32
32
|
proofContractFromAuthorCheckpointResponse,
|
|
33
33
|
statePathsForRunState
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-MOTQNIZX.js";
|
|
35
35
|
import {
|
|
36
36
|
applyShipControlState,
|
|
37
37
|
applyTerminalMetadata,
|
|
38
38
|
compactRecord,
|
|
39
39
|
createRunResult,
|
|
40
|
+
isProtectedFinalStatus,
|
|
40
41
|
isSuccessfulStatus,
|
|
41
42
|
isTerminalStatus,
|
|
42
43
|
nonEmptyString,
|
|
43
44
|
normalizeTerminalMetadata,
|
|
44
45
|
recordValue,
|
|
45
46
|
shipControlStateFor
|
|
46
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-CUBYSWZT.js";
|
|
47
48
|
import "../chunk-MLKGABMK.js";
|
|
48
49
|
export {
|
|
49
50
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
@@ -70,6 +71,7 @@ export {
|
|
|
70
71
|
createRunState,
|
|
71
72
|
createRunStatusSnapshot,
|
|
72
73
|
isDuplicateCheckpointResponse,
|
|
74
|
+
isProtectedFinalStatus,
|
|
73
75
|
isSuccessfulStatus,
|
|
74
76
|
isTerminalStatus,
|
|
75
77
|
nonEmptyString,
|
package/dist/spec/result.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(result_exports, {
|
|
|
24
24
|
applyTerminalMetadata: () => applyTerminalMetadata,
|
|
25
25
|
compactRecord: () => compactRecord,
|
|
26
26
|
createRunResult: () => createRunResult,
|
|
27
|
+
isProtectedFinalStatus: () => isProtectedFinalStatus,
|
|
27
28
|
isSuccessfulStatus: () => isSuccessfulStatus,
|
|
28
29
|
isTerminalStatus: () => isTerminalStatus,
|
|
29
30
|
nonEmptyString: () => nonEmptyString,
|
|
@@ -37,6 +38,9 @@ module.exports = __toCommonJS(result_exports);
|
|
|
37
38
|
function isTerminalStatus(status) {
|
|
38
39
|
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
39
40
|
}
|
|
41
|
+
function isProtectedFinalStatus(status) {
|
|
42
|
+
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
43
|
+
}
|
|
40
44
|
function isSuccessfulStatus(status) {
|
|
41
45
|
return status !== "blocked" && status !== "failed";
|
|
42
46
|
}
|
|
@@ -250,6 +254,7 @@ function createRunResult(input) {
|
|
|
250
254
|
const state = input.metadata ? applyTerminalMetadata(input.state, input.metadata) : input.state;
|
|
251
255
|
state.status = status;
|
|
252
256
|
state.ok = ok;
|
|
257
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
253
258
|
applyShipControlState(state, { status, raw: input.raw });
|
|
254
259
|
return compactRecord({
|
|
255
260
|
ok,
|
|
@@ -304,6 +309,7 @@ function createRunResult(input) {
|
|
|
304
309
|
applyTerminalMetadata,
|
|
305
310
|
compactRecord,
|
|
306
311
|
createRunResult,
|
|
312
|
+
isProtectedFinalStatus,
|
|
307
313
|
isSuccessfulStatus,
|
|
308
314
|
isTerminalStatus,
|
|
309
315
|
nonEmptyString,
|
package/dist/spec/result.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.cjs';
|
|
1
|
+
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.cjs';
|
|
2
2
|
import '../types.cjs';
|
package/dist/spec/result.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.js';
|
|
1
|
+
export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlState, applyTerminalMetadata, compactRecord, createRunResult, isProtectedFinalStatus, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue, shipControlStateFor } from '../result.js';
|
|
2
2
|
import '../types.js';
|
package/dist/spec/result.js
CHANGED
|
@@ -3,19 +3,21 @@ import {
|
|
|
3
3
|
applyTerminalMetadata,
|
|
4
4
|
compactRecord,
|
|
5
5
|
createRunResult,
|
|
6
|
+
isProtectedFinalStatus,
|
|
6
7
|
isSuccessfulStatus,
|
|
7
8
|
isTerminalStatus,
|
|
8
9
|
nonEmptyString,
|
|
9
10
|
normalizeTerminalMetadata,
|
|
10
11
|
recordValue,
|
|
11
12
|
shipControlStateFor
|
|
12
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-CUBYSWZT.js";
|
|
13
14
|
import "../chunk-MLKGABMK.js";
|
|
14
15
|
export {
|
|
15
16
|
applyShipControlState,
|
|
16
17
|
applyTerminalMetadata,
|
|
17
18
|
compactRecord,
|
|
18
19
|
createRunResult,
|
|
20
|
+
isProtectedFinalStatus,
|
|
19
21
|
isSuccessfulStatus,
|
|
20
22
|
isTerminalStatus,
|
|
21
23
|
nonEmptyString,
|
package/dist/spec/run-card.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
3
3
|
createRiddleProofRunCard
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KNPCWWF3.js";
|
|
5
|
+
import "../chunk-MOTQNIZX.js";
|
|
6
|
+
import "../chunk-CUBYSWZT.js";
|
|
7
7
|
import "../chunk-MLKGABMK.js";
|
|
8
8
|
export {
|
|
9
9
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
package/dist/spec/state.cjs
CHANGED
|
@@ -47,6 +47,9 @@ module.exports = __toCommonJS(state_exports);
|
|
|
47
47
|
function isTerminalStatus(status) {
|
|
48
48
|
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
49
49
|
}
|
|
50
|
+
function isProtectedFinalStatus(status) {
|
|
51
|
+
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
52
|
+
}
|
|
50
53
|
function compactRecord(input) {
|
|
51
54
|
return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== void 0 && value !== null && value !== ""));
|
|
52
55
|
}
|
|
@@ -555,6 +558,7 @@ function createRunStatusSnapshot(state, at = timestamp()) {
|
|
|
555
558
|
function setRunStatus(state, status, at = timestamp()) {
|
|
556
559
|
state.status = status;
|
|
557
560
|
state.ok = status !== "blocked" && status !== "failed";
|
|
561
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
558
562
|
state.updated_at = at;
|
|
559
563
|
return state;
|
|
560
564
|
}
|
package/dist/spec/state.js
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
normalizePrLifecycleState,
|
|
10
10
|
normalizeRunParams,
|
|
11
11
|
setRunStatus
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-UZIX7M7D.js";
|
|
13
|
+
import "../chunk-KNPCWWF3.js";
|
|
14
|
+
import "../chunk-MOTQNIZX.js";
|
|
15
|
+
import "../chunk-CUBYSWZT.js";
|
|
16
16
|
import "../chunk-MLKGABMK.js";
|
|
17
17
|
export {
|
|
18
18
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
package/dist/state.cjs
CHANGED
|
@@ -47,6 +47,9 @@ module.exports = __toCommonJS(state_exports);
|
|
|
47
47
|
function isTerminalStatus(status) {
|
|
48
48
|
return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
49
49
|
}
|
|
50
|
+
function isProtectedFinalStatus(status) {
|
|
51
|
+
return status === "ready_to_ship" || status === "shipped" || status === "completed";
|
|
52
|
+
}
|
|
50
53
|
function compactRecord(input) {
|
|
51
54
|
return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== void 0 && value !== null && value !== ""));
|
|
52
55
|
}
|
|
@@ -555,6 +558,7 @@ function createRunStatusSnapshot(state, at = timestamp()) {
|
|
|
555
558
|
function setRunStatus(state, status, at = timestamp()) {
|
|
556
559
|
state.status = status;
|
|
557
560
|
state.ok = status !== "blocked" && status !== "failed";
|
|
561
|
+
if (isProtectedFinalStatus(status)) state.finalized = true;
|
|
558
562
|
state.updated_at = at;
|
|
559
563
|
return state;
|
|
560
564
|
}
|
package/dist/state.js
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
normalizePrLifecycleState,
|
|
10
10
|
normalizeRunParams,
|
|
11
11
|
setRunStatus
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-UZIX7M7D.js";
|
|
13
|
+
import "./chunk-KNPCWWF3.js";
|
|
14
|
+
import "./chunk-MOTQNIZX.js";
|
|
15
|
+
import "./chunk-CUBYSWZT.js";
|
|
16
16
|
import "./chunk-MLKGABMK.js";
|
|
17
17
|
export {
|
|
18
18
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
package/dist/types.d.cts
CHANGED
|
@@ -136,6 +136,8 @@ interface RiddleProofCheckpointSummary {
|
|
|
136
136
|
packet_count: number;
|
|
137
137
|
response_count: number;
|
|
138
138
|
duplicate_response_count?: number;
|
|
139
|
+
rejected_response_count?: number;
|
|
140
|
+
ignored_response_count?: number;
|
|
139
141
|
latest_checkpoint?: string | null;
|
|
140
142
|
latest_stage?: RiddleProofStage | null;
|
|
141
143
|
latest_kind?: string | null;
|
package/dist/types.d.ts
CHANGED
|
@@ -136,6 +136,8 @@ interface RiddleProofCheckpointSummary {
|
|
|
136
136
|
packet_count: number;
|
|
137
137
|
response_count: number;
|
|
138
138
|
duplicate_response_count?: number;
|
|
139
|
+
rejected_response_count?: number;
|
|
140
|
+
ignored_response_count?: number;
|
|
139
141
|
latest_checkpoint?: string | null;
|
|
140
142
|
latest_stage?: RiddleProofStage | null;
|
|
141
143
|
latest_kind?: string | null;
|