@riddledc/riddle-proof 0.5.9 → 0.5.10

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.
@@ -265,17 +265,9 @@ function proofAssessmentRequestsShip(payload) {
265
265
  const continueStage = String(payload.continue_with_stage || "");
266
266
  return decision === "ready_to_ship" || recommendedStage === "ship" || continueStage === "ship";
267
267
  }
268
- function proofAssessmentContinuation(request, result, payload, config) {
268
+ function proofAssessmentContinuation(result, payload) {
269
269
  const proof_assessment_json = jsonParam(payload);
270
- if (effectiveShipMode(request, config) === "ship" || !proofAssessmentRequestsShip(payload)) {
271
- return { ...baseContinuation(result), proof_assessment_json };
272
- }
273
- return {
274
- action: "run",
275
- state_path: String(result.state_path || ""),
276
- advance_stage: "verify",
277
- proof_assessment_json
278
- };
270
+ return { ...baseContinuation(result), proof_assessment_json };
279
271
  }
280
272
  function contextFor(request, state, result) {
281
273
  return {
@@ -599,7 +591,21 @@ async function routeCheckpoint(request, state, result, agent, input) {
599
591
  summary: assessment.summary,
600
592
  details: { payload }
601
593
  });
602
- return { next: proofAssessmentContinuation(request, result, payload, input.config) };
594
+ if (effectiveShipMode(request, input.config) !== "ship" && proofAssessmentRequestsShip(payload)) {
595
+ return {
596
+ terminal: terminalResult(
597
+ state,
598
+ "ready_to_ship",
599
+ result,
600
+ assessment.summary || result.summary || "Riddle Proof is ready to ship.",
601
+ {
602
+ ship_held: true,
603
+ proof_assessment: payload
604
+ }
605
+ )
606
+ };
607
+ }
608
+ return { next: proofAssessmentContinuation(result, payload) };
603
609
  }
604
610
  if (checkpoint === "verify_agent_retry") {
605
611
  const next = recommendedContinuation(result);
@@ -3235,17 +3235,9 @@ function proofAssessmentRequestsShip(payload) {
3235
3235
  const continueStage = String(payload.continue_with_stage || "");
3236
3236
  return decision === "ready_to_ship" || recommendedStage === "ship" || continueStage === "ship";
3237
3237
  }
3238
- function proofAssessmentContinuation(request, result, payload, config) {
3238
+ function proofAssessmentContinuation(result, payload) {
3239
3239
  const proof_assessment_json = jsonParam(payload);
3240
- if (effectiveShipMode(request, config) === "ship" || !proofAssessmentRequestsShip(payload)) {
3241
- return { ...baseContinuation(result), proof_assessment_json };
3242
- }
3243
- return {
3244
- action: "run",
3245
- state_path: String(result.state_path || ""),
3246
- advance_stage: "verify",
3247
- proof_assessment_json
3248
- };
3240
+ return { ...baseContinuation(result), proof_assessment_json };
3249
3241
  }
3250
3242
  function contextFor(request, state, result) {
3251
3243
  return {
@@ -3569,7 +3561,21 @@ async function routeCheckpoint(request, state, result, agent, input) {
3569
3561
  summary: assessment.summary,
3570
3562
  details: { payload }
3571
3563
  });
3572
- return { next: proofAssessmentContinuation(request, result, payload, input.config) };
3564
+ if (effectiveShipMode(request, input.config) !== "ship" && proofAssessmentRequestsShip(payload)) {
3565
+ return {
3566
+ terminal: terminalResult(
3567
+ state,
3568
+ "ready_to_ship",
3569
+ result,
3570
+ assessment.summary || result.summary || "Riddle Proof is ready to ship.",
3571
+ {
3572
+ ship_held: true,
3573
+ proof_assessment: payload
3574
+ }
3575
+ )
3576
+ };
3577
+ }
3578
+ return { next: proofAssessmentContinuation(result, payload) };
3573
3579
  }
3574
3580
  if (checkpoint === "verify_agent_retry") {
3575
3581
  const next = recommendedContinuation(result);
@@ -2,7 +2,7 @@ import {
2
2
  createDisabledRiddleProofAgentAdapter,
3
3
  readRiddleProofRunStatus,
4
4
  runRiddleProofEngineHarness
5
- } from "./chunk-CNKNPJAF.js";
5
+ } from "./chunk-7KP34QRG.js";
6
6
  import "./chunk-GVPCSXN7.js";
7
7
  import "./chunk-TMMKRKY5.js";
8
8
  export {
package/dist/index.cjs CHANGED
@@ -3794,17 +3794,9 @@ function proofAssessmentRequestsShip(payload) {
3794
3794
  const continueStage = String(payload.continue_with_stage || "");
3795
3795
  return decision === "ready_to_ship" || recommendedStage === "ship" || continueStage === "ship";
3796
3796
  }
3797
- function proofAssessmentContinuation(request, result, payload, config) {
3797
+ function proofAssessmentContinuation(result, payload) {
3798
3798
  const proof_assessment_json = jsonParam(payload);
3799
- if (effectiveShipMode(request, config) === "ship" || !proofAssessmentRequestsShip(payload)) {
3800
- return { ...baseContinuation(result), proof_assessment_json };
3801
- }
3802
- return {
3803
- action: "run",
3804
- state_path: String(result.state_path || ""),
3805
- advance_stage: "verify",
3806
- proof_assessment_json
3807
- };
3799
+ return { ...baseContinuation(result), proof_assessment_json };
3808
3800
  }
3809
3801
  function contextFor(request, state, result) {
3810
3802
  return {
@@ -4128,7 +4120,21 @@ async function routeCheckpoint(request, state, result, agent, input) {
4128
4120
  summary: assessment.summary,
4129
4121
  details: { payload }
4130
4122
  });
4131
- return { next: proofAssessmentContinuation(request, result, payload, input.config) };
4123
+ if (effectiveShipMode(request, input.config) !== "ship" && proofAssessmentRequestsShip(payload)) {
4124
+ return {
4125
+ terminal: terminalResult(
4126
+ state,
4127
+ "ready_to_ship",
4128
+ result,
4129
+ assessment.summary || result.summary || "Riddle Proof is ready to ship.",
4130
+ {
4131
+ ship_held: true,
4132
+ proof_assessment: payload
4133
+ }
4134
+ )
4135
+ };
4136
+ }
4137
+ return { next: proofAssessmentContinuation(result, payload) };
4132
4138
  }
4133
4139
  if (checkpoint === "verify_agent_retry") {
4134
4140
  const next = recommendedContinuation(result);
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  createDisabledRiddleProofAgentAdapter,
14
14
  readRiddleProofRunStatus,
15
15
  runRiddleProofEngineHarness
16
- } from "./chunk-CNKNPJAF.js";
16
+ } from "./chunk-7KP34QRG.js";
17
17
  import {
18
18
  runRiddleProof
19
19
  } from "./chunk-VSEKLCNU.js";
@@ -262,7 +262,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
262
262
  blocking?: boolean;
263
263
  details?: Record<string, unknown>;
264
264
  ok: boolean;
265
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
265
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
266
266
  state_path: string;
267
267
  stage: any;
268
268
  summary: string;
@@ -342,7 +342,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
342
342
  continueWithStage?: WorkflowStage | null;
343
343
  blocking?: boolean;
344
344
  details?: Record<string, unknown>;
345
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
345
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
346
346
  state_path: string;
347
347
  stage: any;
348
348
  checkpoint: string;
@@ -589,7 +589,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
589
589
  error?: undefined;
590
590
  } | {
591
591
  ok: boolean;
592
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
592
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
593
593
  state_path: string;
594
594
  stage: any;
595
595
  summary: string;
@@ -262,7 +262,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
262
262
  blocking?: boolean;
263
263
  details?: Record<string, unknown>;
264
264
  ok: boolean;
265
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
265
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
266
266
  state_path: string;
267
267
  stage: any;
268
268
  summary: string;
@@ -342,7 +342,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
342
342
  continueWithStage?: WorkflowStage | null;
343
343
  blocking?: boolean;
344
344
  details?: Record<string, unknown>;
345
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
345
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
346
346
  state_path: string;
347
347
  stage: any;
348
348
  checkpoint: string;
@@ -589,7 +589,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
589
589
  error?: undefined;
590
590
  } | {
591
591
  ok: boolean;
592
- action: "ship" | "setup" | "recon" | "author" | "implement" | "verify" | "run";
592
+ action: "setup" | "recon" | "author" | "implement" | "verify" | "ship" | "run";
593
593
  state_path: string;
594
594
  stage: any;
595
595
  summary: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",