@riddledc/riddle-proof 0.5.39 → 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/openclaw.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  normalizeIntegrationContext,
3
3
  normalizeRunParams
4
- } from "./chunk-Z3BWCHFV.js";
4
+ } from "./chunk-7S7O3NKF.js";
5
5
  import {
6
6
  compactRecord
7
- } from "./chunk-Z7QUCDPT.js";
7
+ } from "./chunk-W7VTDN4T.js";
8
8
 
9
9
  // src/openclaw.ts
10
10
  function parseOpenClawAssertions(value) {
package/dist/result.cjs CHANGED
@@ -234,6 +234,9 @@ function createRunResult(input) {
234
234
  finalized: state.finalized,
235
235
  blocker: state.blocker,
236
236
  checkpoint_packet: state.checkpoint_packet,
237
+ checkpoint_summary: state.checkpoint_summary,
238
+ state_paths: state.state_paths,
239
+ proof_contract: state.proof_contract,
237
240
  proof_session: state.proof_session,
238
241
  evidence_bundle: input.evidence_bundle,
239
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-Z7QUCDPT.js";
10
+ } from "./chunk-W7VTDN4T.js";
11
11
  export {
12
12
  applyTerminalMetadata,
13
13
  compactRecord,
package/dist/runner.cjs CHANGED
@@ -124,6 +124,9 @@ function createRunResult(input) {
124
124
  finalized: state.finalized,
125
125
  blocker: state.blocker,
126
126
  checkpoint_packet: state.checkpoint_packet,
127
+ checkpoint_summary: state.checkpoint_summary,
128
+ state_paths: state.state_paths,
129
+ proof_contract: state.proof_contract,
127
130
  proof_session: state.proof_session,
128
131
  evidence_bundle: input.evidence_bundle,
129
132
  raw: input.raw
@@ -223,6 +226,9 @@ function createRunState(input) {
223
226
  iterations: input.iterations ?? 0,
224
227
  last_checkpoint: input.last_checkpoint ?? null,
225
228
  checkpoint_packet: input.checkpoint_packet,
229
+ checkpoint_summary: input.checkpoint_summary,
230
+ state_paths: input.state_paths,
231
+ proof_contract: input.proof_contract,
226
232
  checkpoint_history: input.checkpoint_history,
227
233
  events: input.events ? [...input.events] : []
228
234
  });
package/dist/runner.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runRiddleProof
3
- } from "./chunk-RDTMR7XR.js";
4
- import "./chunk-Z3BWCHFV.js";
5
- import "./chunk-Z7QUCDPT.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
@@ -170,6 +170,9 @@ function createRunState(input) {
170
170
  iterations: input.iterations ?? 0,
171
171
  last_checkpoint: input.last_checkpoint ?? null,
172
172
  checkpoint_packet: input.checkpoint_packet,
173
+ checkpoint_summary: input.checkpoint_summary,
174
+ state_paths: input.state_paths,
175
+ proof_contract: input.proof_contract,
173
176
  checkpoint_history: input.checkpoint_history,
174
177
  events: input.events ? [...input.events] : []
175
178
  });
@@ -245,6 +248,9 @@ function createRunStatusSnapshot(state, at = timestamp()) {
245
248
  stage_elapsed_ms: elapsedMs(state.stage_started_at, at),
246
249
  blocker: state.blocker,
247
250
  checkpoint_packet: state.checkpoint_packet,
251
+ checkpoint_summary: state.checkpoint_summary,
252
+ state_paths: state.state_paths,
253
+ proof_contract: state.proof_contract,
248
254
  latest_event: latestEvent
249
255
  });
250
256
  }
package/dist/state.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { RiddleProofRunParams, RiddleProofStatus, RiddleProofStage, RiddleProofCheckpointPacket, RiddleProofCheckpointResponse, 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 {
@@ -15,6 +15,9 @@ interface CreateRunStateInput {
15
15
  iterations?: number;
16
16
  last_checkpoint?: string | null;
17
17
  checkpoint_packet?: RiddleProofCheckpointPacket;
18
+ checkpoint_summary?: RiddleProofCheckpointSummary;
19
+ state_paths?: RiddleProofStatePaths;
20
+ proof_contract?: RiddleProofProofContract;
18
21
  checkpoint_history?: Array<{
19
22
  ts: string;
20
23
  packet?: RiddleProofCheckpointPacket;
package/dist/state.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RiddleProofRunParams, RiddleProofStatus, RiddleProofStage, RiddleProofCheckpointPacket, RiddleProofCheckpointResponse, 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 {
@@ -15,6 +15,9 @@ interface CreateRunStateInput {
15
15
  iterations?: number;
16
16
  last_checkpoint?: string | null;
17
17
  checkpoint_packet?: RiddleProofCheckpointPacket;
18
+ checkpoint_summary?: RiddleProofCheckpointSummary;
19
+ state_paths?: RiddleProofStatePaths;
20
+ proof_contract?: RiddleProofProofContract;
18
21
  checkpoint_history?: Array<{
19
22
  ts: string;
20
23
  packet?: RiddleProofCheckpointPacket;
package/dist/state.js CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  normalizePrLifecycleState,
10
10
  normalizeRunParams,
11
11
  setRunStatus
12
- } from "./chunk-Z3BWCHFV.js";
13
- import "./chunk-Z7QUCDPT.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
@@ -105,6 +105,51 @@ interface RiddleProofCheckpointResponse {
105
105
  };
106
106
  created_at: string;
107
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
+ }
108
153
  interface IntegrationContext {
109
154
  source?: "openclaw" | "discord" | "github" | "cli" | "riddle" | (string & {});
110
155
  channel_id?: string;
@@ -167,6 +212,9 @@ interface RiddleProofRunState {
167
212
  finalized?: boolean;
168
213
  blocker?: RiddleProofBlocker;
169
214
  checkpoint_packet?: RiddleProofCheckpointPacket;
215
+ checkpoint_summary?: RiddleProofCheckpointSummary;
216
+ state_paths?: RiddleProofStatePaths;
217
+ proof_contract?: RiddleProofProofContract;
170
218
  checkpoint_history?: Array<{
171
219
  ts: string;
172
220
  packet?: RiddleProofCheckpointPacket;
@@ -208,6 +256,9 @@ interface RiddleProofRunResult {
208
256
  finalized?: boolean;
209
257
  blocker?: RiddleProofBlocker;
210
258
  checkpoint_packet?: RiddleProofCheckpointPacket;
259
+ checkpoint_summary?: RiddleProofCheckpointSummary;
260
+ state_paths?: RiddleProofStatePaths;
261
+ proof_contract?: RiddleProofProofContract;
211
262
  proof_session?: RiddleProofVisualSession;
212
263
  evidence_bundle?: RiddleProofEvidenceBundle;
213
264
  raw?: Record<string, unknown>;
@@ -240,6 +291,9 @@ interface RiddleProofRunStatusSnapshot {
240
291
  stage_elapsed_ms?: number;
241
292
  blocker?: RiddleProofBlocker;
242
293
  checkpoint_packet?: RiddleProofCheckpointPacket;
294
+ checkpoint_summary?: RiddleProofCheckpointSummary;
295
+ state_paths?: RiddleProofStatePaths;
296
+ proof_contract?: RiddleProofProofContract;
243
297
  latest_event?: RiddleProofEvent;
244
298
  }
245
299
  interface RiddleProofEvidenceBundle {
@@ -460,4 +514,4 @@ interface RiddleProofVisualSessionFingerprintBasis {
460
514
  capture_script_hash?: string;
461
515
  }
462
516
 
463
- 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, RiddleProofCheckpointVisibility, 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 };
package/dist/types.d.ts CHANGED
@@ -105,6 +105,51 @@ interface RiddleProofCheckpointResponse {
105
105
  };
106
106
  created_at: string;
107
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
+ }
108
153
  interface IntegrationContext {
109
154
  source?: "openclaw" | "discord" | "github" | "cli" | "riddle" | (string & {});
110
155
  channel_id?: string;
@@ -167,6 +212,9 @@ interface RiddleProofRunState {
167
212
  finalized?: boolean;
168
213
  blocker?: RiddleProofBlocker;
169
214
  checkpoint_packet?: RiddleProofCheckpointPacket;
215
+ checkpoint_summary?: RiddleProofCheckpointSummary;
216
+ state_paths?: RiddleProofStatePaths;
217
+ proof_contract?: RiddleProofProofContract;
170
218
  checkpoint_history?: Array<{
171
219
  ts: string;
172
220
  packet?: RiddleProofCheckpointPacket;
@@ -208,6 +256,9 @@ interface RiddleProofRunResult {
208
256
  finalized?: boolean;
209
257
  blocker?: RiddleProofBlocker;
210
258
  checkpoint_packet?: RiddleProofCheckpointPacket;
259
+ checkpoint_summary?: RiddleProofCheckpointSummary;
260
+ state_paths?: RiddleProofStatePaths;
261
+ proof_contract?: RiddleProofProofContract;
211
262
  proof_session?: RiddleProofVisualSession;
212
263
  evidence_bundle?: RiddleProofEvidenceBundle;
213
264
  raw?: Record<string, unknown>;
@@ -240,6 +291,9 @@ interface RiddleProofRunStatusSnapshot {
240
291
  stage_elapsed_ms?: number;
241
292
  blocker?: RiddleProofBlocker;
242
293
  checkpoint_packet?: RiddleProofCheckpointPacket;
294
+ checkpoint_summary?: RiddleProofCheckpointSummary;
295
+ state_paths?: RiddleProofStatePaths;
296
+ proof_contract?: RiddleProofProofContract;
243
297
  latest_event?: RiddleProofEvent;
244
298
  }
245
299
  interface RiddleProofEvidenceBundle {
@@ -460,4 +514,4 @@ interface RiddleProofVisualSessionFingerprintBasis {
460
514
  capture_script_hash?: string;
461
515
  }
462
516
 
463
- 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, RiddleProofCheckpointVisibility, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.5.39",
3
+ "version": "0.5.40",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",