@riddledc/riddle-proof 0.7.225 → 0.7.227

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.
Files changed (139) hide show
  1. package/dist/adapters/codex-exec-agent.cjs +893 -0
  2. package/dist/adapters/codex-exec-agent.d.cts +3 -0
  3. package/dist/adapters/codex-exec-agent.d.ts +3 -0
  4. package/dist/adapters/codex-exec-agent.js +13 -0
  5. package/dist/adapters/codex.cjs +893 -0
  6. package/dist/adapters/codex.d.cts +3 -0
  7. package/dist/adapters/codex.d.ts +3 -0
  8. package/dist/adapters/codex.js +13 -0
  9. package/dist/adapters/local-agent.cjs +893 -0
  10. package/dist/adapters/local-agent.d.cts +3 -0
  11. package/dist/adapters/local-agent.d.ts +3 -0
  12. package/dist/adapters/local-agent.js +13 -0
  13. package/dist/adapters/openclaw.cjs +213 -0
  14. package/dist/adapters/openclaw.d.cts +2 -0
  15. package/dist/adapters/openclaw.d.ts +2 -0
  16. package/dist/adapters/openclaw.js +17 -0
  17. package/dist/advanced/engine-harness.cjs +5701 -0
  18. package/dist/advanced/engine-harness.d.cts +2 -0
  19. package/dist/advanced/engine-harness.d.ts +2 -0
  20. package/dist/advanced/engine-harness.js +16 -0
  21. package/dist/advanced/index.cjs +6242 -0
  22. package/dist/advanced/index.d.cts +5 -0
  23. package/dist/advanced/index.d.ts +5 -0
  24. package/dist/advanced/index.js +23 -0
  25. package/dist/advanced/proof-run-core.cjs +1085 -0
  26. package/dist/advanced/proof-run-core.d.cts +1 -0
  27. package/dist/advanced/proof-run-core.d.ts +1 -0
  28. package/dist/advanced/proof-run-core.js +59 -0
  29. package/dist/advanced/proof-run-engine.cjs +2905 -0
  30. package/dist/advanced/proof-run-engine.d.cts +2 -0
  31. package/dist/advanced/proof-run-engine.d.ts +2 -0
  32. package/dist/advanced/proof-run-engine.js +10 -0
  33. package/dist/advanced/runner.cjs +833 -0
  34. package/dist/advanced/runner.d.cts +2 -0
  35. package/dist/advanced/runner.d.ts +2 -0
  36. package/dist/advanced/runner.js +12 -0
  37. package/dist/app-contract/index.cjs +24 -0
  38. package/dist/app-contract/index.d.cts +1 -0
  39. package/dist/app-contract/index.d.ts +1 -0
  40. package/dist/app-contract/index.js +2 -0
  41. package/dist/basic-gameplay.js +1 -0
  42. package/dist/checkpoint.js +1 -0
  43. package/dist/chunk-BHL4JSGM.js +1900 -0
  44. package/dist/chunk-BTN76IGW.js +115 -0
  45. package/dist/{chunk-TGHTM66Z.js → chunk-COERZX63.js} +10 -2
  46. package/dist/{chunk-4DRRIJDX.js → chunk-IWLQQ5S5.js} +27 -4
  47. package/dist/chunk-MLKGABMK.js +9 -0
  48. package/dist/chunk-OFSECTSC.js +0 -0
  49. package/dist/{chunk-GBVEQQIM.js → chunk-TJ63IE65.js} +36 -1
  50. package/dist/chunk-VZD5LH7U.js +4138 -0
  51. package/dist/cli/index.cjs +18 -0
  52. package/dist/cli/index.d.cts +2 -0
  53. package/dist/cli/index.d.ts +2 -0
  54. package/dist/cli/index.js +12 -0
  55. package/dist/cli.cjs +19 -2
  56. package/dist/cli.d.cts +1 -0
  57. package/dist/cli.d.ts +1 -0
  58. package/dist/cli.js +8 -4139
  59. package/dist/codex-exec-agent.d.cts +1 -1
  60. package/dist/codex-exec-agent.d.ts +1 -1
  61. package/dist/codex-exec-agent.js +1 -0
  62. package/dist/diagnostics.js +1 -0
  63. package/dist/engine-harness-CMACHP6A.d.ts +96 -0
  64. package/dist/engine-harness-LBfqbFSe.d.cts +96 -0
  65. package/dist/engine-harness.cjs +19 -2
  66. package/dist/engine-harness.d.cts +2 -79
  67. package/dist/engine-harness.d.ts +2 -79
  68. package/dist/engine-harness.js +3 -2
  69. package/dist/index.cjs +19 -2
  70. package/dist/index.d.cts +2 -2
  71. package/dist/index.d.ts +2 -2
  72. package/dist/index.js +4 -3
  73. package/dist/local-agent.d.cts +1 -1
  74. package/dist/local-agent.d.ts +1 -1
  75. package/dist/local-agent.js +1 -0
  76. package/dist/openclaw.js +8 -107
  77. package/dist/playability.js +1 -0
  78. package/dist/profile/index.cjs +9403 -0
  79. package/dist/profile/index.d.cts +2 -0
  80. package/dist/profile/index.d.ts +2 -0
  81. package/dist/profile/index.js +53 -0
  82. package/dist/profile.js +1 -0
  83. package/dist/proof-run-core-CE0jx7wL.d.cts +359 -0
  84. package/dist/proof-run-core-CE0jx7wL.d.ts +359 -0
  85. package/dist/proof-run-core.d.cts +1 -322
  86. package/dist/proof-run-core.d.ts +1 -322
  87. package/dist/proof-run-core.js +2 -1
  88. package/dist/proof-run-engine-CSSc0mNn.d.ts +764 -0
  89. package/dist/proof-run-engine-HSRpUeBi.d.cts +764 -0
  90. package/dist/proof-run-engine.cjs +4 -0
  91. package/dist/proof-run-engine.d.cts +2 -757
  92. package/dist/proof-run-engine.d.ts +2 -757
  93. package/dist/proof-run-engine.js +5 -1881
  94. package/dist/proof-session.js +1 -0
  95. package/dist/result.js +1 -0
  96. package/dist/riddle-client.js +1 -0
  97. package/dist/run-card.js +1 -0
  98. package/dist/runner-4LJ5z0D-.d.cts +29 -0
  99. package/dist/runner-BdQpOkZD.d.ts +29 -0
  100. package/dist/runner.d.cts +2 -22
  101. package/dist/runner.d.ts +2 -22
  102. package/dist/runner.js +3 -2
  103. package/dist/runtime/index.cjs +528 -0
  104. package/dist/runtime/index.d.cts +1 -0
  105. package/dist/runtime/index.d.ts +1 -0
  106. package/dist/runtime/index.js +37 -0
  107. package/dist/runtime/riddle-client.cjs +528 -0
  108. package/dist/runtime/riddle-client.d.cts +1 -0
  109. package/dist/runtime/riddle-client.d.ts +1 -0
  110. package/dist/runtime/riddle-client.js +37 -0
  111. package/dist/spec/checkpoint.cjs +807 -0
  112. package/dist/spec/checkpoint.d.cts +2 -0
  113. package/dist/spec/checkpoint.d.ts +2 -0
  114. package/dist/spec/checkpoint.js +34 -0
  115. package/dist/spec/index.cjs +1510 -0
  116. package/dist/spec/index.d.cts +5 -0
  117. package/dist/spec/index.d.ts +5 -0
  118. package/dist/spec/index.js +80 -0
  119. package/dist/spec/result.cjs +259 -0
  120. package/dist/spec/result.d.cts +2 -0
  121. package/dist/spec/result.d.ts +2 -0
  122. package/dist/spec/result.js +21 -0
  123. package/dist/spec/run-card.cjs +287 -0
  124. package/dist/spec/run-card.d.cts +2 -0
  125. package/dist/spec/run-card.d.ts +2 -0
  126. package/dist/spec/run-card.js +11 -0
  127. package/dist/spec/state.cjs +541 -0
  128. package/dist/spec/state.d.cts +2 -0
  129. package/dist/spec/state.d.ts +2 -0
  130. package/dist/spec/state.js +28 -0
  131. package/dist/spec/types.cjs +18 -0
  132. package/dist/spec/types.d.cts +1 -0
  133. package/dist/spec/types.d.ts +1 -0
  134. package/dist/spec/types.js +1 -0
  135. package/dist/state.js +1 -0
  136. package/package.json +95 -2
  137. package/runtime/lib/verify.py +53 -3
  138. package/runtime/pipelines/riddle-proof-setup.lobster +45 -41
  139. package/runtime/tests/recon_verify_smoke.py +41 -0
@@ -0,0 +1,287 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/spec/run-card.ts
31
+ var run_card_exports = {};
32
+ __export(run_card_exports, {
33
+ RIDDLE_PROOF_RUN_CARD_VERSION: () => RIDDLE_PROOF_RUN_CARD_VERSION,
34
+ createRiddleProofRunCard: () => createRiddleProofRunCard
35
+ });
36
+ module.exports = __toCommonJS(run_card_exports);
37
+
38
+ // src/result.ts
39
+ function isTerminalStatus(status) {
40
+ return status === "blocked" || status === "failed" || status === "ready_to_ship" || status === "shipped" || status === "completed";
41
+ }
42
+ function compactRecord(input) {
43
+ return Object.fromEntries(Object.entries(input).filter(([, value]) => value !== void 0 && value !== null && value !== ""));
44
+ }
45
+ function nonEmptyString(value) {
46
+ return typeof value === "string" && value.trim() ? value.trim() : void 0;
47
+ }
48
+ function recordValue(value) {
49
+ return value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
50
+ }
51
+
52
+ // src/checkpoint.ts
53
+ var import_node_crypto = __toESM(require("crypto"), 1);
54
+ function statePathsForRunState(state, engineStatePath) {
55
+ return compactRecord({
56
+ wrapper_state_path: state.state_path || state.request.harness_state_path || null,
57
+ engine_state_path: engineStatePath || state.request.engine_state_path || null,
58
+ resume_state_path: engineStatePath || state.request.engine_state_path || null
59
+ });
60
+ }
61
+
62
+ // src/run-card.ts
63
+ var RIDDLE_PROOF_RUN_CARD_VERSION = "riddle-proof.run-card.v1";
64
+ function elapsedMs(start, end) {
65
+ const startMs = start ? Date.parse(start) : NaN;
66
+ const endMs = end ? Date.parse(end) : NaN;
67
+ if (!Number.isFinite(startMs) || !Number.isFinite(endMs)) return void 0;
68
+ return Math.max(0, endMs - startMs);
69
+ }
70
+ function jsonCloneRecord(value) {
71
+ const record = recordValue(value);
72
+ if (!record) return void 0;
73
+ try {
74
+ return JSON.parse(JSON.stringify(record));
75
+ } catch {
76
+ return { ...record };
77
+ }
78
+ }
79
+ function compactText(value, limit = 600) {
80
+ const text = nonEmptyString(value);
81
+ if (!text) return void 0;
82
+ return text.length <= limit ? text : `${text.slice(0, limit - 20).trimEnd()}...`;
83
+ }
84
+ function numericValue(value) {
85
+ const number = typeof value === "number" ? value : typeof value === "string" ? Number(value) : NaN;
86
+ return Number.isFinite(number) ? number : void 0;
87
+ }
88
+ function eventDetails(event) {
89
+ return recordValue(recordValue(event)?.details) || {};
90
+ }
91
+ function collectRunnerMetrics(details) {
92
+ const metrics = [];
93
+ const adapterDetails = recordValue(details.adapter_details);
94
+ const direct = recordValue(adapterDetails?.runner_metrics);
95
+ if (direct) metrics.push(direct);
96
+ const attempts = Array.isArray(adapterDetails?.attempt_summaries) ? adapterDetails.attempt_summaries : [];
97
+ for (const attempt of attempts) {
98
+ const attemptMetrics = recordValue(recordValue(attempt)?.runner_metrics);
99
+ if (attemptMetrics) metrics.push(attemptMetrics);
100
+ }
101
+ return metrics;
102
+ }
103
+ function observabilityFrom(state) {
104
+ const engineEvents = state.events.filter((event) => event.kind === "engine.result").map((event) => ({ event, details: eventDetails(event) }));
105
+ const agentEvents = state.events.filter((event) => event.kind.startsWith("agent.")).map((event) => ({ event, details: eventDetails(event) })).filter(({ details }) => numericValue(details.duration_ms) !== void 0);
106
+ const retryEvents = state.events.filter((event) => /retry|recovery/i.test(event.kind) || /retry|recovery/i.test(event.summary || "")).slice(-8);
107
+ const runnerMetrics = agentEvents.flatMap(({ details }) => collectRunnerMetrics(details));
108
+ const promptChars = runnerMetrics.map((metrics) => numericValue(metrics.prompt_chars)).filter((value) => value !== void 0);
109
+ const sum = (values) => values.reduce((total, value) => total + (value ?? 0), 0);
110
+ const recentEngineTimings = engineEvents.slice(-8).map(({ event, details }) => compactRecord({
111
+ checkpoint: event.checkpoint || null,
112
+ stage: event.stage || null,
113
+ duration_ms: numericValue(details.duration_ms),
114
+ ok: details.ok ?? null
115
+ }));
116
+ const recentAgentTimings = agentEvents.slice(-8).map(({ event, details }) => {
117
+ const metrics = collectRunnerMetrics(details);
118
+ const localPromptChars = metrics.map((item) => numericValue(item.prompt_chars)).filter((value) => value !== void 0);
119
+ return compactRecord({
120
+ kind: event.kind,
121
+ checkpoint: event.checkpoint || null,
122
+ stage: event.stage || null,
123
+ duration_ms: numericValue(details.duration_ms),
124
+ prompt_chars: localPromptChars.length ? Math.max(...localPromptChars) : void 0,
125
+ attempt_count: numericValue(recordValue(details.adapter_details)?.attempt_count)
126
+ });
127
+ });
128
+ return compactRecord({
129
+ engine_call_count: engineEvents.length,
130
+ agent_call_count: agentEvents.length,
131
+ engine_total_ms: sum(engineEvents.map(({ details }) => numericValue(details.duration_ms))),
132
+ agent_total_ms: sum(agentEvents.map(({ details }) => numericValue(details.duration_ms))),
133
+ max_agent_prompt_chars: promptChars.length ? Math.max(...promptChars) : void 0,
134
+ total_agent_prompt_chars: promptChars.length ? sum(promptChars) : void 0,
135
+ recent_engine_timings: recentEngineTimings.length ? recentEngineTimings : void 0,
136
+ recent_agent_timings: recentAgentTimings.length ? recentAgentTimings : void 0,
137
+ retry_event_count: retryEvents.length,
138
+ recent_retry_reasons: retryEvents.length ? retryEvents.map((event) => compactRecord({
139
+ kind: event.kind,
140
+ checkpoint: event.checkpoint || null,
141
+ stage: event.stage || null,
142
+ summary: compactText(event.summary, 240)
143
+ })) : void 0
144
+ });
145
+ }
146
+ function visualDeltaFrom(input) {
147
+ const fullState = input.fullRiddleState || {};
148
+ const bundle = recordValue(fullState.evidence_bundle);
149
+ const after = recordValue(bundle?.after);
150
+ const afterDelta = recordValue(after?.visual_delta);
151
+ if (afterDelta && Object.keys(afterDelta).length) return afterDelta;
152
+ const requestDelta = recordValue(recordValue(fullState.proof_assessment_request)?.visual_delta);
153
+ if (requestDelta && Object.keys(requestDelta).length) return requestDelta;
154
+ const packetDelta = recordValue(input.runState.checkpoint_packet?.evidence_excerpt?.visual_delta);
155
+ return packetDelta && Object.keys(packetDelta).length ? packetDelta : void 0;
156
+ }
157
+ function artifactsFrom(input) {
158
+ const packetArtifacts = input.runState.checkpoint_packet?.artifacts;
159
+ if (packetArtifacts?.length) return packetArtifacts.slice(0, 12);
160
+ const fullState = input.fullRiddleState || {};
161
+ const artifacts = [];
162
+ for (const role of ["before", "prod", "after"]) {
163
+ const url = nonEmptyString(fullState[`${role}_cdn`]) || nonEmptyString(input.runState[`${role}_artifact_url`]);
164
+ if (url) artifacts.push({ role, url, name: `${role}.png`, mime_type: "image/png" });
165
+ }
166
+ return artifacts.length ? artifacts : void 0;
167
+ }
168
+ function viewportMatrixFrom(input) {
169
+ const fullState = input.fullRiddleState || {};
170
+ const bundle = recordValue(fullState.evidence_bundle);
171
+ const fromBundle = recordValue(bundle?.viewport_matrix);
172
+ if (fromBundle && Object.keys(fromBundle).length) return jsonCloneRecord(fromBundle);
173
+ const fromRequest = recordValue(recordValue(fullState.proof_assessment_request)?.viewport_matrix);
174
+ if (fromRequest && Object.keys(fromRequest).length) return jsonCloneRecord(fromRequest);
175
+ const fromState = recordValue(fullState.viewport_matrix_status) || recordValue(input.runState.viewport_matrix_status);
176
+ return fromState && Object.keys(fromState).length ? jsonCloneRecord(fromState) : void 0;
177
+ }
178
+ function ownerFor(state) {
179
+ if (state.status === "awaiting_checkpoint") {
180
+ const role = nonEmptyString(state.checkpoint_packet?.routing_hint?.suggested_role);
181
+ return role || "supervising_agent";
182
+ }
183
+ if (state.status === "running") return "engine";
184
+ if (state.status === "blocked" || state.status === "failed") return "human_or_operator";
185
+ return "none";
186
+ }
187
+ function actionFor(state) {
188
+ if (state.status === "awaiting_checkpoint") return state.checkpoint_packet?.question || "Answer the pending checkpoint.";
189
+ if (state.status === "running") return "Continue the current Riddle Proof stage.";
190
+ if (state.status === "blocked" || state.status === "failed") return state.blocker?.message || "Inspect the blocker and decide whether a new run or infrastructure repair is needed.";
191
+ if (state.status === "ready_to_ship") return "Ship is held by policy; review PR/ship policy before advancing.";
192
+ return "No next action; run is terminal.";
193
+ }
194
+ function evidenceIssueCode(input) {
195
+ const packetIssue = nonEmptyString(input.runState.checkpoint_packet?.evidence_excerpt?.evidence_issue_code);
196
+ if (packetIssue) return packetIssue;
197
+ const assessmentIssue = nonEmptyString(recordValue(input.fullRiddleState?.proof_assessment)?.evidence_issue_code);
198
+ if (assessmentIssue) return assessmentIssue;
199
+ const delta = visualDeltaFrom(input);
200
+ const status = nonEmptyString(delta?.status);
201
+ if (status === "unmeasured") {
202
+ const reason = `${nonEmptyString(delta?.reason) || ""}
203
+ ${input.runState.blocker?.message || ""}`.toLowerCase();
204
+ return reason.includes("fetch") || reason.includes("allowlist") || reason.includes("registered domain") || reason.includes("high risk") || reason.includes("comparator") ? "comparator_fetch_blocked" : "visual_delta_unmeasured";
205
+ }
206
+ if (status === "measured" && delta?.passed === false) return "semantic_proof_failed";
207
+ return void 0;
208
+ }
209
+ function createRiddleProofRunCard(state, input = {}) {
210
+ const at = input.at || (/* @__PURE__ */ new Date()).toISOString();
211
+ const fullState = input.fullRiddleState || {};
212
+ const packet = state.checkpoint_packet;
213
+ const latestEvent = state.events[state.events.length - 1];
214
+ const bundle = recordValue(fullState.evidence_bundle);
215
+ const artifactContract = jsonCloneRecord(packet?.artifact_contract) || jsonCloneRecord(recordValue(fullState.proof_assessment_request)?.artifact_contract) || jsonCloneRecord(recordValue(bundle?.artifact_contract)) || jsonCloneRecord(state.proof_contract?.artifact_contract);
216
+ const required = jsonCloneRecord(recordValue(artifactContract)?.required);
217
+ const statePaths = input.state_paths || state.state_paths || statePathsForRunState(state);
218
+ const visualDelta = visualDeltaFrom({ fullRiddleState: fullState, runState: state });
219
+ const artifacts = artifactsFrom({ fullRiddleState: fullState, runState: state });
220
+ const viewportMatrix = viewportMatrixFrom({ fullRiddleState: fullState, runState: state });
221
+ return {
222
+ version: RIDDLE_PROOF_RUN_CARD_VERSION,
223
+ run_id: state.run_id || "unknown",
224
+ status: state.status,
225
+ goal: compactRecord({
226
+ repo: state.request.repo || nonEmptyString(fullState.repo),
227
+ branch: state.request.branch || nonEmptyString(fullState.branch),
228
+ change_request: state.request.change_request || nonEmptyString(fullState.change_request),
229
+ verification_mode: state.request.verification_mode || nonEmptyString(fullState.verification_mode),
230
+ success_criteria: state.request.success_criteria
231
+ }),
232
+ durable_state: compactRecord({
233
+ ...statePaths,
234
+ worktree_path: state.worktree_path || nonEmptyString(fullState.after_worktree) || null,
235
+ branch: state.branch || nonEmptyString(fullState.branch) || null
236
+ }),
237
+ current_phase: compactRecord({
238
+ stage: state.current_stage ?? null,
239
+ checkpoint: state.last_checkpoint ?? packet?.checkpoint ?? null,
240
+ latest_event: latestEvent?.kind ?? null,
241
+ elapsed_ms: elapsedMs(state.created_at, at),
242
+ stage_elapsed_ms: elapsedMs(state.stage_started_at, at),
243
+ iterations: state.iterations
244
+ }),
245
+ owner_next_action: compactRecord({
246
+ owner: ownerFor(state),
247
+ action: actionFor(state),
248
+ checkpoint_kind: packet?.kind || null,
249
+ allowed_decisions: packet?.allowed_decisions,
250
+ retryable: state.status === "running" || state.status === "awaiting_checkpoint",
251
+ reason: state.blocker?.code || packet?.summary || latestEvent?.summary || null
252
+ }),
253
+ evidence_contract: compactRecord({
254
+ verification_mode: state.request.verification_mode || nonEmptyString(fullState.verification_mode),
255
+ required,
256
+ artifact_contract: artifactContract,
257
+ proof_plan: compactText(state.proof_contract?.proof_plan || fullState.proof_plan, 600),
258
+ stop_condition: compactText(state.proof_contract?.stop_condition, 400)
259
+ }),
260
+ latest_evidence: compactRecord({
261
+ before_url: nonEmptyString(fullState.before_cdn) || state.before_artifact_url || null,
262
+ prod_url: nonEmptyString(fullState.prod_cdn) || state.prod_artifact_url || null,
263
+ after_url: nonEmptyString(fullState.after_cdn) || state.after_artifact_url || null,
264
+ visual_delta: visualDelta || null,
265
+ evidence_issue_code: evidenceIssueCode({ fullRiddleState: fullState, runState: state }) || null,
266
+ proof_evidence_present: fullState.proof_evidence_present === true || Boolean(bundle?.proof_evidence || bundle?.proof_evidence_sample),
267
+ viewport_matrix: viewportMatrix,
268
+ artifacts
269
+ }),
270
+ observability: observabilityFrom(state),
271
+ stop_condition: compactRecord({
272
+ status: state.status,
273
+ terminal: isTerminalStatus(state.status),
274
+ blocker_code: state.blocker?.code || null,
275
+ blocker_message: state.blocker?.message || null,
276
+ proof_decision: state.proof_decision,
277
+ merge_recommendation: state.merge_recommendation,
278
+ monitor_should_continue: !isTerminalStatus(state.status)
279
+ }),
280
+ updated_at: state.updated_at
281
+ };
282
+ }
283
+ // Annotate the CommonJS export names for ESM import in node:
284
+ 0 && (module.exports = {
285
+ RIDDLE_PROOF_RUN_CARD_VERSION,
286
+ createRiddleProofRunCard
287
+ });
@@ -0,0 +1,2 @@
1
+ export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from '../run-card.cjs';
2
+ import '../types.cjs';
@@ -0,0 +1,2 @@
1
+ export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from '../run-card.js';
2
+ import '../types.js';
@@ -0,0 +1,11 @@
1
+ import {
2
+ RIDDLE_PROOF_RUN_CARD_VERSION,
3
+ createRiddleProofRunCard
4
+ } from "../chunk-Y2KTBACQ.js";
5
+ import "../chunk-2CFVREFI.js";
6
+ import "../chunk-VY4Y5U57.js";
7
+ import "../chunk-MLKGABMK.js";
8
+ export {
9
+ RIDDLE_PROOF_RUN_CARD_VERSION,
10
+ createRiddleProofRunCard
11
+ };