@riddledc/riddle-proof 0.5.49 → 0.5.50

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.
@@ -132,10 +132,11 @@ var PROOF_SCHEMA = {
132
132
  source: { type: "string", enum: ["supervising_agent"] }
133
133
  }
134
134
  };
135
- var PROMPT_STRING_LIMIT = 1400;
135
+ var PROMPT_STRING_LIMIT = 1e3;
136
136
  var PROMPT_ARRAY_LIMIT = 8;
137
137
  var PROMPT_OBJECT_KEY_LIMIT = 50;
138
- var PROMPT_BLOCK_LIMIT = 7e4;
138
+ var PROMPT_BLOCK_LIMIT = 16e3;
139
+ var PROMPT_TOTAL_LIMIT = 58e3;
139
140
  var PROMPT_KEY_PRIORITY = [
140
141
  "ok",
141
142
  "status",
@@ -250,7 +251,7 @@ function resolveWorkdir(context, fallback = "/tmp") {
250
251
  return after || fallback;
251
252
  }
252
253
  function basePrompt(context, role) {
253
- return [
254
+ const prompt = [
254
255
  role,
255
256
  "",
256
257
  "You are the supervising Codex worker inside the Riddle Proof harness.",
@@ -262,6 +263,9 @@ function basePrompt(context, role) {
262
263
  jsonBlock("Riddle checkpoint result", context.engineResult),
263
264
  jsonBlock("Full riddle state", context.fullRiddleState || {})
264
265
  ].join("\n");
266
+ if (prompt.length <= PROMPT_TOTAL_LIMIT) return prompt;
267
+ return `${prompt.slice(0, PROMPT_TOTAL_LIMIT).trimEnd()}
268
+ ...[truncated ${prompt.length - PROMPT_TOTAL_LIMIT} chars from total prompt]`;
265
269
  }
266
270
  function schemaRequiredKeys(schema) {
267
271
  const required = schema?.required;
package/dist/cli.cjs CHANGED
@@ -5609,10 +5609,11 @@ var PROOF_SCHEMA = {
5609
5609
  source: { type: "string", enum: ["supervising_agent"] }
5610
5610
  }
5611
5611
  };
5612
- var PROMPT_STRING_LIMIT = 1400;
5612
+ var PROMPT_STRING_LIMIT = 1e3;
5613
5613
  var PROMPT_ARRAY_LIMIT = 8;
5614
5614
  var PROMPT_OBJECT_KEY_LIMIT = 50;
5615
- var PROMPT_BLOCK_LIMIT = 7e4;
5615
+ var PROMPT_BLOCK_LIMIT = 16e3;
5616
+ var PROMPT_TOTAL_LIMIT = 58e3;
5616
5617
  var PROMPT_KEY_PRIORITY = [
5617
5618
  "ok",
5618
5619
  "status",
@@ -5727,7 +5728,7 @@ function resolveWorkdir(context, fallback = "/tmp") {
5727
5728
  return after || fallback;
5728
5729
  }
5729
5730
  function basePrompt(context, role) {
5730
- return [
5731
+ const prompt = [
5731
5732
  role,
5732
5733
  "",
5733
5734
  "You are the supervising Codex worker inside the Riddle Proof harness.",
@@ -5739,6 +5740,9 @@ function basePrompt(context, role) {
5739
5740
  jsonBlock("Riddle checkpoint result", context.engineResult),
5740
5741
  jsonBlock("Full riddle state", context.fullRiddleState || {})
5741
5742
  ].join("\n");
5743
+ if (prompt.length <= PROMPT_TOTAL_LIMIT) return prompt;
5744
+ return `${prompt.slice(0, PROMPT_TOTAL_LIMIT).trimEnd()}
5745
+ ...[truncated ${prompt.length - PROMPT_TOTAL_LIMIT} chars from total prompt]`;
5742
5746
  }
5743
5747
  function schemaRequiredKeys(schema) {
5744
5748
  const required = schema?.required;
package/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ import "./chunk-JFQXAJH2.js";
9
9
  import {
10
10
  createCodexExecAgentAdapter,
11
11
  runCodexExecAgentDoctor
12
- } from "./chunk-YW77WDTR.js";
12
+ } from "./chunk-3266V3MO.js";
13
13
  import "./chunk-U7Q3RB5D.js";
14
14
  import "./chunk-CI2F66EE.js";
15
15
  import "./chunk-R6SCWJCI.js";
@@ -171,10 +171,11 @@ var PROOF_SCHEMA = {
171
171
  source: { type: "string", enum: ["supervising_agent"] }
172
172
  }
173
173
  };
174
- var PROMPT_STRING_LIMIT = 1400;
174
+ var PROMPT_STRING_LIMIT = 1e3;
175
175
  var PROMPT_ARRAY_LIMIT = 8;
176
176
  var PROMPT_OBJECT_KEY_LIMIT = 50;
177
- var PROMPT_BLOCK_LIMIT = 7e4;
177
+ var PROMPT_BLOCK_LIMIT = 16e3;
178
+ var PROMPT_TOTAL_LIMIT = 58e3;
178
179
  var PROMPT_KEY_PRIORITY = [
179
180
  "ok",
180
181
  "status",
@@ -289,7 +290,7 @@ function resolveWorkdir(context, fallback = "/tmp") {
289
290
  return after || fallback;
290
291
  }
291
292
  function basePrompt(context, role) {
292
- return [
293
+ const prompt = [
293
294
  role,
294
295
  "",
295
296
  "You are the supervising Codex worker inside the Riddle Proof harness.",
@@ -301,6 +302,9 @@ function basePrompt(context, role) {
301
302
  jsonBlock("Riddle checkpoint result", context.engineResult),
302
303
  jsonBlock("Full riddle state", context.fullRiddleState || {})
303
304
  ].join("\n");
305
+ if (prompt.length <= PROMPT_TOTAL_LIMIT) return prompt;
306
+ return `${prompt.slice(0, PROMPT_TOTAL_LIMIT).trimEnd()}
307
+ ...[truncated ${prompt.length - PROMPT_TOTAL_LIMIT} chars from total prompt]`;
304
308
  }
305
309
  function schemaRequiredKeys(schema) {
306
310
  const required = schema?.required;
@@ -2,7 +2,7 @@ import {
2
2
  createCodexExecAgentAdapter,
3
3
  createCodexExecJsonRunner,
4
4
  runCodexExecAgentDoctor
5
- } from "./chunk-YW77WDTR.js";
5
+ } from "./chunk-3266V3MO.js";
6
6
  import "./chunk-DUFDZJOF.js";
7
7
  export {
8
8
  createCodexExecAgentAdapter,
package/dist/index.cjs CHANGED
@@ -6202,10 +6202,11 @@ var PROOF_SCHEMA = {
6202
6202
  source: { type: "string", enum: ["supervising_agent"] }
6203
6203
  }
6204
6204
  };
6205
- var PROMPT_STRING_LIMIT = 1400;
6205
+ var PROMPT_STRING_LIMIT = 1e3;
6206
6206
  var PROMPT_ARRAY_LIMIT = 8;
6207
6207
  var PROMPT_OBJECT_KEY_LIMIT = 50;
6208
- var PROMPT_BLOCK_LIMIT = 7e4;
6208
+ var PROMPT_BLOCK_LIMIT = 16e3;
6209
+ var PROMPT_TOTAL_LIMIT = 58e3;
6209
6210
  var PROMPT_KEY_PRIORITY = [
6210
6211
  "ok",
6211
6212
  "status",
@@ -6320,7 +6321,7 @@ function resolveWorkdir(context, fallback = "/tmp") {
6320
6321
  return after || fallback;
6321
6322
  }
6322
6323
  function basePrompt(context, role) {
6323
- return [
6324
+ const prompt = [
6324
6325
  role,
6325
6326
  "",
6326
6327
  "You are the supervising Codex worker inside the Riddle Proof harness.",
@@ -6332,6 +6333,9 @@ function basePrompt(context, role) {
6332
6333
  jsonBlock("Riddle checkpoint result", context.engineResult),
6333
6334
  jsonBlock("Full riddle state", context.fullRiddleState || {})
6334
6335
  ].join("\n");
6336
+ if (prompt.length <= PROMPT_TOTAL_LIMIT) return prompt;
6337
+ return `${prompt.slice(0, PROMPT_TOTAL_LIMIT).trimEnd()}
6338
+ ...[truncated ${prompt.length - PROMPT_TOTAL_LIMIT} chars from total prompt]`;
6335
6339
  }
6336
6340
  function schemaRequiredKeys(schema) {
6337
6341
  const required = schema?.required;
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  createCodexExecAgentAdapter,
40
40
  createCodexExecJsonRunner,
41
41
  runCodexExecAgentDoctor
42
- } from "./chunk-YW77WDTR.js";
42
+ } from "./chunk-3266V3MO.js";
43
43
  import {
44
44
  RIDDLE_PROOF_RUN_STATE_VERSION,
45
45
  appendRunEvent,
@@ -173,10 +173,11 @@ var PROOF_SCHEMA = {
173
173
  source: { type: "string", enum: ["supervising_agent"] }
174
174
  }
175
175
  };
176
- var PROMPT_STRING_LIMIT = 1400;
176
+ var PROMPT_STRING_LIMIT = 1e3;
177
177
  var PROMPT_ARRAY_LIMIT = 8;
178
178
  var PROMPT_OBJECT_KEY_LIMIT = 50;
179
- var PROMPT_BLOCK_LIMIT = 7e4;
179
+ var PROMPT_BLOCK_LIMIT = 16e3;
180
+ var PROMPT_TOTAL_LIMIT = 58e3;
180
181
  var PROMPT_KEY_PRIORITY = [
181
182
  "ok",
182
183
  "status",
@@ -291,7 +292,7 @@ function resolveWorkdir(context, fallback = "/tmp") {
291
292
  return after || fallback;
292
293
  }
293
294
  function basePrompt(context, role) {
294
- return [
295
+ const prompt = [
295
296
  role,
296
297
  "",
297
298
  "You are the supervising Codex worker inside the Riddle Proof harness.",
@@ -303,6 +304,9 @@ function basePrompt(context, role) {
303
304
  jsonBlock("Riddle checkpoint result", context.engineResult),
304
305
  jsonBlock("Full riddle state", context.fullRiddleState || {})
305
306
  ].join("\n");
307
+ if (prompt.length <= PROMPT_TOTAL_LIMIT) return prompt;
308
+ return `${prompt.slice(0, PROMPT_TOTAL_LIMIT).trimEnd()}
309
+ ...[truncated ${prompt.length - PROMPT_TOTAL_LIMIT} chars from total prompt]`;
306
310
  }
307
311
  function schemaRequiredKeys(schema) {
308
312
  const required = schema?.required;
@@ -3,7 +3,7 @@ import {
3
3
  createCodexExecAgentAdapter,
4
4
  createCodexExecJsonRunner,
5
5
  runCodexExecAgentDoctor
6
- } from "./chunk-YW77WDTR.js";
6
+ } from "./chunk-3266V3MO.js";
7
7
  import "./chunk-DUFDZJOF.js";
8
8
  export {
9
9
  createCodexExecAgentAdapter as createLocalAgentAdapter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.5.49",
3
+ "version": "0.5.50",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",