@riddledc/riddle-proof 0.5.38 → 0.5.40

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/index.d.cts CHANGED
@@ -1,8 +1,9 @@
1
- export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, PreflightAdapter, PreflightAdapterInput, PreflightAdapterResult, ProofAdapter, ProofAdapterInput, ProofAdapterResult, RiddleProofArtifactRole, RiddleProofAssessment, RiddleProofBlocker, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofPrLifecycleState, RiddleProofPrLifecycleStatus, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from './types.cjs';
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, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatePaths, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from './types.cjs';
2
2
  export { TerminalMetadataInput, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue } 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
+ export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, checkpointSummaryFromState, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from './checkpoint.cjs';
4
5
  export { RiddleProofRunnerAdapters, RunRiddleProofInput, runRiddleProof } from './runner.cjs';
5
- export { RiddleProofAgentAdapter, RiddleProofAgentPayload, RiddleProofEngine, RiddleProofEngineHarnessConfig, RiddleProofEngineHarnessContext, RiddleProofEngineResult, RiddleProofShipMode, RiddleProofWorkflowParams, RunRiddleProofEngineHarnessInput, createDisabledRiddleProofAgentAdapter, readRiddleProofRunStatus, runRiddleProofEngineHarness } from './engine-harness.cjs';
6
+ export { RiddleProofAgentAdapter, RiddleProofAgentPayload, RiddleProofCheckpointMode, RiddleProofEngine, RiddleProofEngineHarnessConfig, RiddleProofEngineHarnessContext, RiddleProofEngineResult, RiddleProofShipMode, RiddleProofWorkflowParams, RunRiddleProofEngineHarnessInput, createDisabledRiddleProofAgentAdapter, readRiddleProofRunStatus, runRiddleProofEngineHarness } from './engine-harness.cjs';
6
7
  export { CreateCaptureDiagnosticInput, DEFAULT_DIAGNOSTIC_ARRAY_LIMIT, DEFAULT_DIAGNOSTIC_HISTORY_LIMIT, DEFAULT_DIAGNOSTIC_STRING_LIMIT, RIDDLE_PROOF_CAPTURE_DIAGNOSTIC_VERSION, RiddleProofArtifactSummary, RiddleProofCaptureArtifactSummary, RiddleProofCaptureDiagnostic, RiddleProofDiagnosticRedactionOptions, appendCaptureDiagnostic, createCaptureDiagnostic, redactForProofDiagnostics, summarizeCaptureArtifacts } from './diagnostics.cjs';
7
8
  export { BuildVisualProofSessionInput, RIDDLE_PROOF_VISUAL_SESSION_FINGERPRINT_VERSION, RIDDLE_PROOF_VISUAL_SESSION_VERSION, VisualProofSessionMismatch, buildVisualProofSession, compareVisualProofSessionFingerprint, parseVisualProofSession, visualSessionFingerprint, visualSessionFingerprintBasis } from './proof-session.cjs';
8
9
  export { AssessPlayabilityOptions, RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION, RIDDLE_PROOF_PLAYABILITY_VERSION, RiddleProofPlayabilityAssessment, RiddleProofPlayabilityEvidence, assessPlayabilityEvidence, extractPlayabilityEvidence, isRiddleProofPlayabilityMode } from './playability.cjs';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, PreflightAdapter, PreflightAdapterInput, PreflightAdapterResult, ProofAdapter, ProofAdapterInput, ProofAdapterResult, RiddleProofArtifactRole, RiddleProofAssessment, RiddleProofBlocker, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofPrLifecycleState, RiddleProofPrLifecycleStatus, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from './types.js';
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, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatePaths, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter } from './types.js';
2
2
  export { TerminalMetadataInput, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue } 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
+ export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, checkpointSummaryFromState, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from './checkpoint.js';
4
5
  export { RiddleProofRunnerAdapters, RunRiddleProofInput, runRiddleProof } from './runner.js';
5
- export { RiddleProofAgentAdapter, RiddleProofAgentPayload, RiddleProofEngine, RiddleProofEngineHarnessConfig, RiddleProofEngineHarnessContext, RiddleProofEngineResult, RiddleProofShipMode, RiddleProofWorkflowParams, RunRiddleProofEngineHarnessInput, createDisabledRiddleProofAgentAdapter, readRiddleProofRunStatus, runRiddleProofEngineHarness } from './engine-harness.js';
6
+ export { RiddleProofAgentAdapter, RiddleProofAgentPayload, RiddleProofCheckpointMode, RiddleProofEngine, RiddleProofEngineHarnessConfig, RiddleProofEngineHarnessContext, RiddleProofEngineResult, RiddleProofShipMode, RiddleProofWorkflowParams, RunRiddleProofEngineHarnessInput, createDisabledRiddleProofAgentAdapter, readRiddleProofRunStatus, runRiddleProofEngineHarness } from './engine-harness.js';
6
7
  export { CreateCaptureDiagnosticInput, DEFAULT_DIAGNOSTIC_ARRAY_LIMIT, DEFAULT_DIAGNOSTIC_HISTORY_LIMIT, DEFAULT_DIAGNOSTIC_STRING_LIMIT, RIDDLE_PROOF_CAPTURE_DIAGNOSTIC_VERSION, RiddleProofArtifactSummary, RiddleProofCaptureArtifactSummary, RiddleProofCaptureDiagnostic, RiddleProofDiagnosticRedactionOptions, appendCaptureDiagnostic, createCaptureDiagnostic, redactForProofDiagnostics, summarizeCaptureArtifacts } from './diagnostics.js';
7
8
  export { BuildVisualProofSessionInput, RIDDLE_PROOF_VISUAL_SESSION_FINGERPRINT_VERSION, RIDDLE_PROOF_VISUAL_SESSION_VERSION, VisualProofSessionMismatch, buildVisualProofSession, compareVisualProofSessionFingerprint, parseVisualProofSession, visualSessionFingerprint, visualSessionFingerprintBasis } from './proof-session.js';
8
9
  export { AssessPlayabilityOptions, RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION, RIDDLE_PROOF_PLAYABILITY_VERSION, RiddleProofPlayabilityAssessment, RiddleProofPlayabilityEvidence, assessPlayabilityEvidence, extractPlayabilityEvidence, isRiddleProofPlayabilityMode } from './playability.js';
package/dist/index.js CHANGED
@@ -1,6 +1,15 @@
1
+ import {
2
+ RIDDLE_PROOF_VISUAL_SESSION_FINGERPRINT_VERSION,
3
+ RIDDLE_PROOF_VISUAL_SESSION_VERSION,
4
+ buildVisualProofSession,
5
+ compareVisualProofSessionFingerprint,
6
+ parseVisualProofSession,
7
+ visualSessionFingerprint,
8
+ visualSessionFingerprintBasis
9
+ } from "./chunk-ODORKNSO.js";
1
10
  import {
2
11
  runRiddleProof
3
- } from "./chunk-MQ2BHHLX.js";
12
+ } from "./chunk-MRSYJMF4.js";
4
13
  import "./chunk-6F4PWJZI.js";
5
14
  import {
6
15
  DEFAULT_DIAGNOSTIC_ARRAY_LIMIT,
@@ -16,7 +25,18 @@ import {
16
25
  createDisabledRiddleProofAgentAdapter,
17
26
  readRiddleProofRunStatus,
18
27
  runRiddleProofEngineHarness
19
- } from "./chunk-GN7HSZ6G.js";
28
+ } from "./chunk-COFOLRUW.js";
29
+ import {
30
+ RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
31
+ RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION,
32
+ authorPacketPayloadFromCheckpointResponse,
33
+ buildAuthorCheckpointPacket,
34
+ checkpointSummaryFromState,
35
+ isDuplicateCheckpointResponse,
36
+ normalizeCheckpointResponse,
37
+ proofContractFromAuthorCheckpointResponse,
38
+ statePathsForRunState
39
+ } from "./chunk-5LVCGDSD.js";
20
40
  import {
21
41
  RIDDLE_PROOF_RUN_STATE_VERSION,
22
42
  appendRunEvent,
@@ -28,7 +48,7 @@ import {
28
48
  normalizePrLifecycleState,
29
49
  normalizeRunParams,
30
50
  setRunStatus
31
- } from "./chunk-OASB3CYU.js";
51
+ } from "./chunk-7S7O3NKF.js";
32
52
  import {
33
53
  applyTerminalMetadata,
34
54
  compactRecord,
@@ -38,7 +58,7 @@ import {
38
58
  nonEmptyString,
39
59
  normalizeTerminalMetadata,
40
60
  recordValue
41
- } from "./chunk-J2MERROF.js";
61
+ } from "./chunk-W7VTDN4T.js";
42
62
  import {
43
63
  RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
44
64
  RIDDLE_PROOF_PLAYABILITY_VERSION,
@@ -47,20 +67,13 @@ import {
47
67
  isRiddleProofPlayabilityMode
48
68
  } from "./chunk-NSWT3VSV.js";
49
69
  import "./chunk-4YCWZVBN.js";
50
- import {
51
- RIDDLE_PROOF_VISUAL_SESSION_FINGERPRINT_VERSION,
52
- RIDDLE_PROOF_VISUAL_SESSION_VERSION,
53
- buildVisualProofSession,
54
- compareVisualProofSessionFingerprint,
55
- parseVisualProofSession,
56
- visualSessionFingerprint,
57
- visualSessionFingerprintBasis
58
- } from "./chunk-ODORKNSO.js";
59
70
  export {
60
71
  DEFAULT_DIAGNOSTIC_ARRAY_LIMIT,
61
72
  DEFAULT_DIAGNOSTIC_HISTORY_LIMIT,
62
73
  DEFAULT_DIAGNOSTIC_STRING_LIMIT,
63
74
  RIDDLE_PROOF_CAPTURE_DIAGNOSTIC_VERSION,
75
+ RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
76
+ RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION,
64
77
  RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
65
78
  RIDDLE_PROOF_PLAYABILITY_VERSION,
66
79
  RIDDLE_PROOF_RUN_STATE_VERSION,
@@ -72,7 +85,10 @@ export {
72
85
  applyPrLifecycleState,
73
86
  applyTerminalMetadata,
74
87
  assessPlayabilityEvidence,
88
+ authorPacketPayloadFromCheckpointResponse,
89
+ buildAuthorCheckpointPacket,
75
90
  buildVisualProofSession,
91
+ checkpointSummaryFromState,
76
92
  compactRecord,
77
93
  compareVisualProofSessionFingerprint,
78
94
  createCaptureDiagnostic,
@@ -81,21 +97,25 @@ export {
81
97
  createRunState,
82
98
  createRunStatusSnapshot,
83
99
  extractPlayabilityEvidence,
100
+ isDuplicateCheckpointResponse,
84
101
  isRiddleProofPlayabilityMode,
85
102
  isSuccessfulStatus,
86
103
  isTerminalStatus,
87
104
  nonEmptyString,
105
+ normalizeCheckpointResponse,
88
106
  normalizeIntegrationContext,
89
107
  normalizePrLifecycleState,
90
108
  normalizeRunParams,
91
109
  normalizeTerminalMetadata,
92
110
  parseVisualProofSession,
111
+ proofContractFromAuthorCheckpointResponse,
93
112
  readRiddleProofRunStatus,
94
113
  recordValue,
95
114
  redactForProofDiagnostics,
96
115
  runRiddleProof,
97
116
  runRiddleProofEngineHarness,
98
117
  setRunStatus,
118
+ statePathsForRunState,
99
119
  summarizeCaptureArtifacts,
100
120
  visualSessionFingerprint,
101
121
  visualSessionFingerprintBasis
package/dist/openclaw.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  normalizeIntegrationContext,
3
3
  normalizeRunParams
4
- } from "./chunk-OASB3CYU.js";
4
+ } from "./chunk-7S7O3NKF.js";
5
5
  import {
6
6
  compactRecord
7
- } from "./chunk-J2MERROF.js";
7
+ } from "./chunk-W7VTDN4T.js";
8
8
 
9
9
  // src/openclaw.ts
10
10
  function parseOpenClawAssertions(value) {
@@ -277,7 +277,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
277
277
  blocking?: boolean;
278
278
  details?: Record<string, unknown>;
279
279
  ok: boolean;
280
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
280
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
281
281
  state_path: string;
282
282
  stage: any;
283
283
  summary: string;
@@ -362,7 +362,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
362
362
  continueWithStage?: WorkflowStage | null;
363
363
  blocking?: boolean;
364
364
  details?: Record<string, unknown>;
365
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
365
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
366
366
  state_path: string;
367
367
  stage: any;
368
368
  checkpoint: string;
@@ -624,7 +624,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
624
624
  error?: undefined;
625
625
  } | {
626
626
  ok: boolean;
627
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
627
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
628
628
  state_path: string;
629
629
  stage: any;
630
630
  summary: string;
@@ -277,7 +277,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
277
277
  blocking?: boolean;
278
278
  details?: Record<string, unknown>;
279
279
  ok: boolean;
280
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
280
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
281
281
  state_path: string;
282
282
  stage: any;
283
283
  summary: string;
@@ -362,7 +362,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
362
362
  continueWithStage?: WorkflowStage | null;
363
363
  blocking?: boolean;
364
364
  details?: Record<string, unknown>;
365
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
365
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
366
366
  state_path: string;
367
367
  stage: any;
368
368
  checkpoint: string;
@@ -624,7 +624,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
624
624
  error?: undefined;
625
625
  } | {
626
626
  ok: boolean;
627
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
627
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
628
628
  state_path: string;
629
629
  stage: any;
630
630
  summary: string;
package/dist/result.cjs CHANGED
@@ -233,6 +233,10 @@ function createRunResult(input) {
233
233
  merge_recommendation: state.merge_recommendation,
234
234
  finalized: state.finalized,
235
235
  blocker: state.blocker,
236
+ checkpoint_packet: state.checkpoint_packet,
237
+ checkpoint_summary: state.checkpoint_summary,
238
+ state_paths: state.state_paths,
239
+ proof_contract: state.proof_contract,
236
240
  proof_session: state.proof_session,
237
241
  evidence_bundle: input.evidence_bundle,
238
242
  raw: input.raw
package/dist/result.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  nonEmptyString,
8
8
  normalizeTerminalMetadata,
9
9
  recordValue
10
- } from "./chunk-J2MERROF.js";
10
+ } from "./chunk-W7VTDN4T.js";
11
11
  export {
12
12
  applyTerminalMetadata,
13
13
  compactRecord,
package/dist/runner.cjs CHANGED
@@ -123,6 +123,10 @@ function createRunResult(input) {
123
123
  merge_recommendation: state.merge_recommendation,
124
124
  finalized: state.finalized,
125
125
  blocker: state.blocker,
126
+ checkpoint_packet: state.checkpoint_packet,
127
+ checkpoint_summary: state.checkpoint_summary,
128
+ state_paths: state.state_paths,
129
+ proof_contract: state.proof_contract,
126
130
  proof_session: state.proof_session,
127
131
  evidence_bundle: input.evidence_bundle,
128
132
  raw: input.raw
@@ -221,6 +225,11 @@ function createRunState(input) {
221
225
  request: normalizeRunParams(input.request),
222
226
  iterations: input.iterations ?? 0,
223
227
  last_checkpoint: input.last_checkpoint ?? null,
228
+ checkpoint_packet: input.checkpoint_packet,
229
+ checkpoint_summary: input.checkpoint_summary,
230
+ state_paths: input.state_paths,
231
+ proof_contract: input.proof_contract,
232
+ checkpoint_history: input.checkpoint_history,
224
233
  events: input.events ? [...input.events] : []
225
234
  });
226
235
  }
package/dist/runner.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runRiddleProof
3
- } from "./chunk-MQ2BHHLX.js";
4
- import "./chunk-OASB3CYU.js";
5
- import "./chunk-J2MERROF.js";
3
+ } from "./chunk-MRSYJMF4.js";
4
+ import "./chunk-7S7O3NKF.js";
5
+ import "./chunk-W7VTDN4T.js";
6
6
  export {
7
7
  runRiddleProof
8
8
  };
package/dist/state.cjs CHANGED
@@ -169,6 +169,11 @@ function createRunState(input) {
169
169
  request: normalizeRunParams(input.request),
170
170
  iterations: input.iterations ?? 0,
171
171
  last_checkpoint: input.last_checkpoint ?? null,
172
+ checkpoint_packet: input.checkpoint_packet,
173
+ checkpoint_summary: input.checkpoint_summary,
174
+ state_paths: input.state_paths,
175
+ proof_contract: input.proof_contract,
176
+ checkpoint_history: input.checkpoint_history,
172
177
  events: input.events ? [...input.events] : []
173
178
  });
174
179
  }
@@ -242,6 +247,10 @@ function createRunStatusSnapshot(state, at = timestamp()) {
242
247
  elapsed_ms: elapsedMs(state.created_at, at),
243
248
  stage_elapsed_ms: elapsedMs(state.stage_started_at, at),
244
249
  blocker: state.blocker,
250
+ checkpoint_packet: state.checkpoint_packet,
251
+ checkpoint_summary: state.checkpoint_summary,
252
+ state_paths: state.state_paths,
253
+ proof_contract: state.proof_contract,
245
254
  latest_event: latestEvent
246
255
  });
247
256
  }
package/dist/state.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { RiddleProofRunParams, RiddleProofStatus, RiddleProofStage, RiddleProofEvent, RiddleProofRunState, RiddleProofPrLifecycleState, RiddleProofRunStatusSnapshot, IntegrationContext } from './types.cjs';
1
+ import { RiddleProofRunParams, RiddleProofStatus, RiddleProofStage, RiddleProofCheckpointPacket, RiddleProofCheckpointSummary, RiddleProofStatePaths, RiddleProofProofContract, RiddleProofCheckpointResponse, RiddleProofEvent, RiddleProofRunState, RiddleProofPrLifecycleState, RiddleProofRunStatusSnapshot, IntegrationContext } from './types.cjs';
2
2
 
3
3
  declare const RIDDLE_PROOF_RUN_STATE_VERSION: "riddle-proof.run-state.v1";
4
4
  interface CreateRunStateInput {
@@ -14,6 +14,15 @@ interface CreateRunStateInput {
14
14
  updated_at?: string;
15
15
  iterations?: number;
16
16
  last_checkpoint?: string | null;
17
+ checkpoint_packet?: RiddleProofCheckpointPacket;
18
+ checkpoint_summary?: RiddleProofCheckpointSummary;
19
+ state_paths?: RiddleProofStatePaths;
20
+ proof_contract?: RiddleProofProofContract;
21
+ checkpoint_history?: Array<{
22
+ ts: string;
23
+ packet?: RiddleProofCheckpointPacket;
24
+ response?: RiddleProofCheckpointResponse;
25
+ }>;
17
26
  events?: RiddleProofEvent[];
18
27
  }
19
28
  type RunEventInput = Omit<RiddleProofEvent, "ts"> & {
package/dist/state.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RiddleProofRunParams, RiddleProofStatus, RiddleProofStage, RiddleProofEvent, RiddleProofRunState, RiddleProofPrLifecycleState, RiddleProofRunStatusSnapshot, IntegrationContext } from './types.js';
1
+ import { RiddleProofRunParams, RiddleProofStatus, RiddleProofStage, RiddleProofCheckpointPacket, RiddleProofCheckpointSummary, RiddleProofStatePaths, RiddleProofProofContract, RiddleProofCheckpointResponse, RiddleProofEvent, RiddleProofRunState, RiddleProofPrLifecycleState, RiddleProofRunStatusSnapshot, IntegrationContext } from './types.js';
2
2
 
3
3
  declare const RIDDLE_PROOF_RUN_STATE_VERSION: "riddle-proof.run-state.v1";
4
4
  interface CreateRunStateInput {
@@ -14,6 +14,15 @@ interface CreateRunStateInput {
14
14
  updated_at?: string;
15
15
  iterations?: number;
16
16
  last_checkpoint?: string | null;
17
+ checkpoint_packet?: RiddleProofCheckpointPacket;
18
+ checkpoint_summary?: RiddleProofCheckpointSummary;
19
+ state_paths?: RiddleProofStatePaths;
20
+ proof_contract?: RiddleProofProofContract;
21
+ checkpoint_history?: Array<{
22
+ ts: string;
23
+ packet?: RiddleProofCheckpointPacket;
24
+ response?: RiddleProofCheckpointResponse;
25
+ }>;
17
26
  events?: RiddleProofEvent[];
18
27
  }
19
28
  type RunEventInput = Omit<RiddleProofEvent, "ts"> & {
package/dist/state.js CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  normalizePrLifecycleState,
10
10
  normalizeRunParams,
11
11
  setRunStatus
12
- } from "./chunk-OASB3CYU.js";
13
- import "./chunk-J2MERROF.js";
12
+ } from "./chunk-7S7O3NKF.js";
13
+ import "./chunk-W7VTDN4T.js";
14
14
  export {
15
15
  RIDDLE_PROOF_RUN_STATE_VERSION,
16
16
  appendRunEvent,
package/dist/types.d.cts CHANGED
@@ -3,7 +3,7 @@ type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
3
3
  type JsonObject = {
4
4
  [key: string]: JsonValue;
5
5
  };
6
- type RiddleProofStatus = "running" | "blocked" | "failed" | "ready_to_ship" | "shipped" | "completed";
6
+ type RiddleProofStatus = "running" | "awaiting_checkpoint" | "blocked" | "failed" | "ready_to_ship" | "shipped" | "completed";
7
7
  type RiddleProofPrLifecycleStatus = "unknown" | "open" | "merged" | "closed" | "not_found" | "unavailable" | (string & {});
8
8
  type RiddleProofVerificationMode = "proof" | "visual" | "interaction" | "playable" | "gameplay" | "render" | "data" | "json" | "audio" | "log" | "logs" | "metric" | "metrics" | (string & {});
9
9
  type RiddleProofDecision = "ready_to_ship" | "needs_richer_proof" | "revise_capture" | "needs_recon" | "needs_implementation" | (string & {});
@@ -52,6 +52,104 @@ interface RiddleProofRunParams {
52
52
  dry_run?: boolean;
53
53
  integration_context?: IntegrationContext;
54
54
  }
55
+ type RiddleProofCheckpointVisibility = "liveblog" | "quiet" | "terminal_only" | "manual" | (string & {});
56
+ type RiddleProofCheckpointRole = "main_agent" | "builder_agent" | "proof_author" | "proof_judge" | "human" | "mechanical" | (string & {});
57
+ interface RiddleProofCheckpointArtifact {
58
+ role: "before" | "prod" | "after" | "diff" | "log" | "json" | "har" | "video" | (string & {});
59
+ url?: string;
60
+ path?: string;
61
+ name?: string;
62
+ mime_type?: string;
63
+ summary?: string;
64
+ }
65
+ interface RiddleProofCheckpointRoutingHint {
66
+ suggested_role?: RiddleProofCheckpointRole;
67
+ visibility?: RiddleProofCheckpointVisibility;
68
+ urgency?: "low" | "normal" | "high" | (string & {});
69
+ can_auto_answer?: boolean;
70
+ }
71
+ interface RiddleProofCheckpointPacket {
72
+ version: "riddle-proof.checkpoint.v1";
73
+ run_id: string;
74
+ state_path?: string;
75
+ stage: RiddleProofStage;
76
+ checkpoint: string;
77
+ kind: "assess_recon" | "author_proof" | "implement_change" | "assess_proof" | "human_review" | "advance_decision" | (string & {});
78
+ summary: string;
79
+ question: string;
80
+ change_request: string;
81
+ context?: string;
82
+ artifacts?: RiddleProofCheckpointArtifact[];
83
+ state_excerpt?: Record<string, unknown>;
84
+ evidence_excerpt?: Record<string, unknown>;
85
+ allowed_decisions: string[];
86
+ response_schema: Record<string, unknown>;
87
+ routing_hint?: RiddleProofCheckpointRoutingHint;
88
+ resume_token?: string;
89
+ created_at: string;
90
+ }
91
+ interface RiddleProofCheckpointResponse {
92
+ version: "riddle-proof.checkpoint_response.v1";
93
+ run_id: string;
94
+ checkpoint: string;
95
+ resume_token?: string;
96
+ decision: string;
97
+ summary: string;
98
+ payload?: Record<string, unknown>;
99
+ reasons?: string[];
100
+ continue_with_stage?: RiddleProofStage;
101
+ source?: {
102
+ kind: "openclaw-main" | "openclaw-subagent" | "codex" | "claude-code" | "human" | "ci" | (string & {});
103
+ session_id?: string;
104
+ user_id?: string;
105
+ };
106
+ created_at: string;
107
+ }
108
+ interface RiddleProofStatePaths {
109
+ wrapper_state_path?: string | null;
110
+ engine_state_path?: string | null;
111
+ resume_state_path?: string | null;
112
+ }
113
+ interface RiddleProofCheckpointSummary {
114
+ pending: boolean;
115
+ packet_count: number;
116
+ response_count: number;
117
+ latest_checkpoint?: string | null;
118
+ latest_stage?: RiddleProofStage | null;
119
+ latest_kind?: string | null;
120
+ latest_decision?: string | null;
121
+ latest_packet_summary?: string | null;
122
+ latest_response_summary?: string | null;
123
+ latest_resume_token?: string | null;
124
+ latest_response_token?: string | null;
125
+ token_matches?: boolean | null;
126
+ last_packet_at?: string | null;
127
+ last_response_at?: string | null;
128
+ state_paths?: RiddleProofStatePaths;
129
+ }
130
+ interface RiddleProofProofContract {
131
+ version: "riddle-proof.proof-contract.v1";
132
+ checkpoint?: string | null;
133
+ source_response?: {
134
+ run_id?: string;
135
+ checkpoint?: string;
136
+ resume_token?: string;
137
+ decision?: string;
138
+ summary?: string;
139
+ created_at?: string;
140
+ };
141
+ proof_plan?: string;
142
+ capture_script?: string;
143
+ artifact_contract?: Record<string, unknown>;
144
+ assertions?: unknown;
145
+ baseline_understanding?: Record<string, unknown>;
146
+ route_assumptions?: Record<string, unknown>;
147
+ stop_condition?: string;
148
+ rationale?: unknown;
149
+ verdict_dimensions?: Record<string, unknown>;
150
+ payload?: Record<string, unknown>;
151
+ created_at: string;
152
+ }
55
153
  interface IntegrationContext {
56
154
  source?: "openclaw" | "discord" | "github" | "cli" | "riddle" | (string & {});
57
155
  channel_id?: string;
@@ -113,6 +211,15 @@ interface RiddleProofRunState {
113
211
  proof_session?: RiddleProofVisualSession;
114
212
  finalized?: boolean;
115
213
  blocker?: RiddleProofBlocker;
214
+ checkpoint_packet?: RiddleProofCheckpointPacket;
215
+ checkpoint_summary?: RiddleProofCheckpointSummary;
216
+ state_paths?: RiddleProofStatePaths;
217
+ proof_contract?: RiddleProofProofContract;
218
+ checkpoint_history?: Array<{
219
+ ts: string;
220
+ packet?: RiddleProofCheckpointPacket;
221
+ response?: RiddleProofCheckpointResponse;
222
+ }>;
116
223
  events: RiddleProofEvent[];
117
224
  }
118
225
  interface RiddleProofRunResult {
@@ -148,6 +255,10 @@ interface RiddleProofRunResult {
148
255
  merge_recommendation?: string;
149
256
  finalized?: boolean;
150
257
  blocker?: RiddleProofBlocker;
258
+ checkpoint_packet?: RiddleProofCheckpointPacket;
259
+ checkpoint_summary?: RiddleProofCheckpointSummary;
260
+ state_paths?: RiddleProofStatePaths;
261
+ proof_contract?: RiddleProofProofContract;
151
262
  proof_session?: RiddleProofVisualSession;
152
263
  evidence_bundle?: RiddleProofEvidenceBundle;
153
264
  raw?: Record<string, unknown>;
@@ -179,6 +290,10 @@ interface RiddleProofRunStatusSnapshot {
179
290
  elapsed_ms?: number;
180
291
  stage_elapsed_ms?: number;
181
292
  blocker?: RiddleProofBlocker;
293
+ checkpoint_packet?: RiddleProofCheckpointPacket;
294
+ checkpoint_summary?: RiddleProofCheckpointSummary;
295
+ state_paths?: RiddleProofStatePaths;
296
+ proof_contract?: RiddleProofProofContract;
182
297
  latest_event?: RiddleProofEvent;
183
298
  }
184
299
  interface RiddleProofEvidenceBundle {
@@ -399,4 +514,4 @@ interface RiddleProofVisualSessionFingerprintBasis {
399
514
  capture_script_hash?: string;
400
515
  }
401
516
 
402
- export type { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, PreflightAdapter, PreflightAdapterInput, PreflightAdapterResult, ProofAdapter, ProofAdapterInput, ProofAdapterResult, RiddleProofArtifactRole, RiddleProofAssessment, RiddleProofBlocker, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofPrLifecycleState, RiddleProofPrLifecycleStatus, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter };
517
+ export type { 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, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofRunStatusSnapshot, RiddleProofStage, RiddleProofStatePaths, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, RiddleProofVisualSession, RiddleProofVisualSessionFingerprintBasis, SetupAdapter, SetupAdapterInput, SetupAdapterResult, ShipAdapter };