@riddledc/riddle-proof 0.8.69 → 0.8.70
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/adapters/codex-exec-agent.js +3 -3
- package/dist/adapters/codex.js +3 -3
- package/dist/adapters/local-agent.js +3 -3
- package/dist/adapters/openclaw.js +6 -6
- package/dist/advanced/engine-harness.cjs +19 -4
- package/dist/advanced/engine-harness.js +6 -6
- package/dist/advanced/index.cjs +19 -4
- package/dist/advanced/index.js +7 -7
- package/dist/advanced/runner.cjs +19 -4
- package/dist/advanced/runner.js +6 -6
- package/dist/checkpoint.js +3 -3
- package/dist/{chunk-NMQIWBSB.js → chunk-CGJX7LJO.js} +2 -2
- package/dist/{chunk-DTFSHRV5.js → chunk-CWRIXP5H.js} +1 -1
- package/dist/{chunk-ZB5XBHWD.js → chunk-DYE3URAQ.js} +1 -1
- package/dist/{chunk-WKNWMRDF.js → chunk-HNAMDVE3.js} +2 -2
- package/dist/{chunk-OD6OKXL2.js → chunk-KXLEN4SA.js} +1 -1
- package/dist/{chunk-UK7G4RKA.js → chunk-NKHZASNQ.js} +1 -1
- package/dist/{chunk-AF3KFD4A.js → chunk-RJVA5KKM.js} +4 -4
- package/dist/{chunk-2OTPBHSM.js → chunk-UTCL7FEZ.js} +2 -2
- package/dist/{chunk-P4BHU5NM.js → chunk-WLUMLHII.js} +4 -4
- package/dist/{chunk-LD2YTPD7.js → chunk-YH7ADFY4.js} +2 -2
- package/dist/{chunk-6PSM6KB2.js → chunk-ZAR7BWMN.js} +19 -4
- package/dist/cli/index.js +9 -9
- package/dist/cli.cjs +19 -4
- package/dist/cli.js +9 -9
- package/dist/codex-exec-agent.js +3 -3
- package/dist/engine-harness.cjs +19 -4
- package/dist/engine-harness.js +6 -6
- package/dist/index.cjs +19 -4
- package/dist/index.js +9 -9
- package/dist/local-agent.js +3 -3
- package/dist/openclaw.js +6 -6
- package/dist/pr-comment.cjs +19 -4
- package/dist/pr-comment.js +2 -2
- package/dist/public-state.cjs +19 -4
- package/dist/public-state.js +1 -1
- package/dist/result.cjs +19 -4
- package/dist/result.js +2 -2
- package/dist/run-card.cjs +19 -4
- package/dist/run-card.js +4 -4
- package/dist/runner.cjs +19 -4
- package/dist/runner.js +6 -6
- package/dist/spec/checkpoint.js +3 -3
- package/dist/spec/index.cjs +19 -4
- package/dist/spec/index.js +5 -5
- package/dist/spec/public-state.cjs +19 -4
- package/dist/spec/public-state.js +1 -1
- package/dist/spec/result.cjs +19 -4
- package/dist/spec/result.js +2 -2
- package/dist/spec/run-card.cjs +19 -4
- package/dist/spec/run-card.js +4 -4
- package/dist/spec/state.cjs +19 -4
- package/dist/spec/state.js +5 -5
- package/dist/state.cjs +19 -4
- package/dist/state.js +5 -5
- package/examples/story-matrices/riddle-proof-ux-coverage.csv +8 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -3483,6 +3483,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
3483
3483
|
function uniqueStrings(values) {
|
|
3484
3484
|
return [...new Set(values.filter(Boolean))];
|
|
3485
3485
|
}
|
|
3486
|
+
function statusIsProofFailed(status) {
|
|
3487
|
+
return status === "failed" || status === "product_regression";
|
|
3488
|
+
}
|
|
3489
|
+
function statusIsProofBlocked(status) {
|
|
3490
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
3491
|
+
}
|
|
3492
|
+
function statusRequiresDisclosure(status) {
|
|
3493
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
3494
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
3495
|
+
if (status === "configuration_error") return "configuration_error";
|
|
3496
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
3497
|
+
return void 0;
|
|
3498
|
+
}
|
|
3486
3499
|
function summarizeRiddleProofPublicState(input) {
|
|
3487
3500
|
const record = asRecord(input);
|
|
3488
3501
|
const runCard = asRecord(record.run_card);
|
|
@@ -3525,7 +3538,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3525
3538
|
asRecord(record.details).checkpoint_summary,
|
|
3526
3539
|
asRecord(raw.details).checkpoint_summary
|
|
3527
3540
|
);
|
|
3528
|
-
const blockedOrWaiting = status
|
|
3541
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
3529
3542
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
3530
3543
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
3531
3544
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -3534,8 +3547,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3534
3547
|
const syncAllowed = mergeReady;
|
|
3535
3548
|
let policyState = "unknown";
|
|
3536
3549
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
3537
|
-
else if (status
|
|
3538
|
-
else if (status
|
|
3550
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
3551
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
3539
3552
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
3540
3553
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
3541
3554
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -3547,6 +3560,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3547
3560
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
3548
3561
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
3549
3562
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
3563
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
3564
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
3550
3565
|
const prohibitedClaims = [];
|
|
3551
3566
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
3552
3567
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -3557,7 +3572,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3557
3572
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
3558
3573
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
3559
3574
|
}
|
|
3560
|
-
const resultLabel2 = policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
3575
|
+
const resultLabel2 = status === "product_regression" ? "product_regression" : status === "proof_insufficient" ? "proof_insufficient" : status === "environment_blocked" ? "environment_blocked" : status === "configuration_error" ? "configuration_error" : status === "needs_human_review" ? "needs_human_review" : policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
3561
3576
|
return {
|
|
3562
3577
|
status,
|
|
3563
3578
|
ok,
|
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-RJVA5KKM.js";
|
|
3
3
|
import "./chunk-B2DP2LET.js";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-CWRIXP5H.js";
|
|
5
5
|
import "./chunk-5Y4V2IXI.js";
|
|
6
6
|
import "./chunk-EX7TO4I5.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-WLUMLHII.js";
|
|
8
|
+
import "./chunk-CGJX7LJO.js";
|
|
9
|
+
import "./chunk-UTCL7FEZ.js";
|
|
10
10
|
import "./chunk-EKZXU6MU.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DYE3URAQ.js";
|
|
12
12
|
import "./chunk-JFQXAJH2.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-KXLEN4SA.js";
|
|
14
|
+
import "./chunk-NKHZASNQ.js";
|
|
15
|
+
import "./chunk-ZAR7BWMN.js";
|
|
16
16
|
import "./chunk-MLKGABMK.js";
|
package/dist/codex-exec-agent.js
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
createCodexExecAgentAdapter,
|
|
3
3
|
createCodexExecJsonRunner,
|
|
4
4
|
runCodexExecAgentDoctor
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KXLEN4SA.js";
|
|
6
|
+
import "./chunk-NKHZASNQ.js";
|
|
7
|
+
import "./chunk-ZAR7BWMN.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
createCodexExecAgentAdapter,
|
package/dist/engine-harness.cjs
CHANGED
|
@@ -3485,6 +3485,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
3485
3485
|
function uniqueStrings(values) {
|
|
3486
3486
|
return [...new Set(values.filter(Boolean))];
|
|
3487
3487
|
}
|
|
3488
|
+
function statusIsProofFailed(status) {
|
|
3489
|
+
return status === "failed" || status === "product_regression";
|
|
3490
|
+
}
|
|
3491
|
+
function statusIsProofBlocked(status) {
|
|
3492
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
3493
|
+
}
|
|
3494
|
+
function statusRequiresDisclosure(status) {
|
|
3495
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
3496
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
3497
|
+
if (status === "configuration_error") return "configuration_error";
|
|
3498
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
3499
|
+
return void 0;
|
|
3500
|
+
}
|
|
3488
3501
|
function summarizeRiddleProofPublicState(input) {
|
|
3489
3502
|
const record = asRecord(input);
|
|
3490
3503
|
const runCard = asRecord(record.run_card);
|
|
@@ -3527,7 +3540,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3527
3540
|
asRecord(record.details).checkpoint_summary,
|
|
3528
3541
|
asRecord(raw.details).checkpoint_summary
|
|
3529
3542
|
);
|
|
3530
|
-
const blockedOrWaiting = status
|
|
3543
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
3531
3544
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
3532
3545
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
3533
3546
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -3536,8 +3549,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3536
3549
|
const syncAllowed = mergeReady;
|
|
3537
3550
|
let policyState = "unknown";
|
|
3538
3551
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
3539
|
-
else if (status
|
|
3540
|
-
else if (status
|
|
3552
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
3553
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
3541
3554
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
3542
3555
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
3543
3556
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -3549,6 +3562,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3549
3562
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
3550
3563
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
3551
3564
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
3565
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
3566
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
3552
3567
|
const prohibitedClaims = [];
|
|
3553
3568
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
3554
3569
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -3559,7 +3574,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3559
3574
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
3560
3575
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
3561
3576
|
}
|
|
3562
|
-
const resultLabel = policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
3577
|
+
const resultLabel = status === "product_regression" ? "product_regression" : status === "proof_insufficient" ? "proof_insufficient" : status === "environment_blocked" ? "environment_blocked" : status === "configuration_error" ? "configuration_error" : status === "needs_human_review" ? "needs_human_review" : policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
3563
3578
|
return {
|
|
3564
3579
|
status,
|
|
3565
3580
|
ok,
|
package/dist/engine-harness.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
createDisabledRiddleProofAgentAdapter,
|
|
3
3
|
readRiddleProofRunStatus,
|
|
4
4
|
runRiddleProofEngineHarness
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-WLUMLHII.js";
|
|
6
|
+
import "./chunk-CGJX7LJO.js";
|
|
7
|
+
import "./chunk-UTCL7FEZ.js";
|
|
8
8
|
import "./chunk-EKZXU6MU.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-DYE3URAQ.js";
|
|
10
|
+
import "./chunk-NKHZASNQ.js";
|
|
11
|
+
import "./chunk-ZAR7BWMN.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
createDisabledRiddleProofAgentAdapter,
|
package/dist/index.cjs
CHANGED
|
@@ -3620,6 +3620,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
3620
3620
|
function uniqueStrings(values) {
|
|
3621
3621
|
return [...new Set(values.filter(Boolean))];
|
|
3622
3622
|
}
|
|
3623
|
+
function statusIsProofFailed(status) {
|
|
3624
|
+
return status === "failed" || status === "product_regression";
|
|
3625
|
+
}
|
|
3626
|
+
function statusIsProofBlocked(status) {
|
|
3627
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
3628
|
+
}
|
|
3629
|
+
function statusRequiresDisclosure(status) {
|
|
3630
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
3631
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
3632
|
+
if (status === "configuration_error") return "configuration_error";
|
|
3633
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
3634
|
+
return void 0;
|
|
3635
|
+
}
|
|
3623
3636
|
function summarizeRiddleProofPublicState(input) {
|
|
3624
3637
|
const record = asRecord(input);
|
|
3625
3638
|
const runCard = asRecord(record.run_card);
|
|
@@ -3662,7 +3675,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3662
3675
|
asRecord(record.details).checkpoint_summary,
|
|
3663
3676
|
asRecord(raw.details).checkpoint_summary
|
|
3664
3677
|
);
|
|
3665
|
-
const blockedOrWaiting = status
|
|
3678
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
3666
3679
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
3667
3680
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
3668
3681
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -3671,8 +3684,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3671
3684
|
const syncAllowed = mergeReady;
|
|
3672
3685
|
let policyState = "unknown";
|
|
3673
3686
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
3674
|
-
else if (status
|
|
3675
|
-
else if (status
|
|
3687
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
3688
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
3676
3689
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
3677
3690
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
3678
3691
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -3684,6 +3697,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3684
3697
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
3685
3698
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
3686
3699
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
3700
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
3701
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
3687
3702
|
const prohibitedClaims = [];
|
|
3688
3703
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
3689
3704
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -3694,7 +3709,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3694
3709
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
3695
3710
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
3696
3711
|
}
|
|
3697
|
-
const resultLabel2 = policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
3712
|
+
const resultLabel2 = status === "product_regression" ? "product_regression" : status === "proof_insufficient" ? "proof_insufficient" : status === "environment_blocked" ? "environment_blocked" : status === "configuration_error" ? "configuration_error" : status === "needs_human_review" ? "needs_human_review" : policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
3698
3713
|
return {
|
|
3699
3714
|
status,
|
|
3700
3715
|
ok,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRiddleProof
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YH7ADFY4.js";
|
|
4
4
|
import "./chunk-6F4PWJZI.js";
|
|
5
5
|
import {
|
|
6
6
|
RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
RIDDLE_PROOF_PR_COMMENT_MARKER,
|
|
61
61
|
buildRiddleProofPrCommentMarkdown,
|
|
62
62
|
summarizeRiddleProofPrComment
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-CWRIXP5H.js";
|
|
64
64
|
import {
|
|
65
65
|
RIDDLE_PROOF_PROFILE_SUGGESTIONS_VERSION,
|
|
66
66
|
suggestRiddleProofProfileChecks
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
createDisabledRiddleProofAgentAdapter,
|
|
108
108
|
readRiddleProofRunStatus,
|
|
109
109
|
runRiddleProofEngineHarness
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-WLUMLHII.js";
|
|
111
111
|
import {
|
|
112
112
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
|
113
113
|
appendRunEvent,
|
|
@@ -119,11 +119,11 @@ import {
|
|
|
119
119
|
normalizePrLifecycleState,
|
|
120
120
|
normalizeRunParams,
|
|
121
121
|
setRunStatus
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-CGJX7LJO.js";
|
|
123
123
|
import {
|
|
124
124
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
125
125
|
createRiddleProofRunCard
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-UTCL7FEZ.js";
|
|
127
127
|
import "./chunk-EKZXU6MU.js";
|
|
128
128
|
import {
|
|
129
129
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
@@ -141,13 +141,13 @@ import {
|
|
|
141
141
|
normalizeCheckpointResponse,
|
|
142
142
|
proofContractFromAuthorCheckpointResponse,
|
|
143
143
|
statePathsForRunState
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-DYE3URAQ.js";
|
|
145
145
|
import "./chunk-JFQXAJH2.js";
|
|
146
146
|
import {
|
|
147
147
|
createCodexExecAgentAdapter,
|
|
148
148
|
createCodexExecJsonRunner,
|
|
149
149
|
runCodexExecAgentDoctor
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-KXLEN4SA.js";
|
|
151
151
|
import {
|
|
152
152
|
applyShipControlState,
|
|
153
153
|
applyTerminalMetadata,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
publicStateForRunState,
|
|
163
163
|
recordValue,
|
|
164
164
|
shipControlStateFor
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-NKHZASNQ.js";
|
|
166
166
|
import {
|
|
167
167
|
riddleProofPublicStateAllowsClaim,
|
|
168
168
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
summarizeRiddleProofHostedProofViewSurface,
|
|
172
172
|
summarizeRiddleProofPublicConsumerSurface,
|
|
173
173
|
summarizeRiddleProofPublicState
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-ZAR7BWMN.js";
|
|
175
175
|
import "./chunk-MLKGABMK.js";
|
|
176
176
|
export {
|
|
177
177
|
BASIC_GAMEPLAY_ACTION_TYPES,
|
package/dist/local-agent.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createCodexExecAgentAdapter,
|
|
4
4
|
createCodexExecJsonRunner,
|
|
5
5
|
runCodexExecAgentDoctor
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KXLEN4SA.js";
|
|
7
|
+
import "./chunk-NKHZASNQ.js";
|
|
8
|
+
import "./chunk-ZAR7BWMN.js";
|
|
9
9
|
import "./chunk-MLKGABMK.js";
|
|
10
10
|
export {
|
|
11
11
|
createCodexExecAgentAdapter as createLocalAgentAdapter,
|
package/dist/openclaw.js
CHANGED
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
parseOpenClawAssertions,
|
|
4
4
|
parseOpenClawJsonObjectOrArray,
|
|
5
5
|
toRiddleProofRunParams
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-HNAMDVE3.js";
|
|
7
|
+
import "./chunk-CGJX7LJO.js";
|
|
8
|
+
import "./chunk-UTCL7FEZ.js";
|
|
9
|
+
import "./chunk-DYE3URAQ.js";
|
|
10
|
+
import "./chunk-NKHZASNQ.js";
|
|
11
|
+
import "./chunk-ZAR7BWMN.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
openClawIntegrationContext,
|
package/dist/pr-comment.cjs
CHANGED
|
@@ -94,6 +94,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
94
94
|
function uniqueStrings(values) {
|
|
95
95
|
return [...new Set(values.filter(Boolean))];
|
|
96
96
|
}
|
|
97
|
+
function statusIsProofFailed(status) {
|
|
98
|
+
return status === "failed" || status === "product_regression";
|
|
99
|
+
}
|
|
100
|
+
function statusIsProofBlocked(status) {
|
|
101
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
102
|
+
}
|
|
103
|
+
function statusRequiresDisclosure(status) {
|
|
104
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
105
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
106
|
+
if (status === "configuration_error") return "configuration_error";
|
|
107
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
108
|
+
return void 0;
|
|
109
|
+
}
|
|
97
110
|
function summarizeRiddleProofPublicState(input) {
|
|
98
111
|
const record = asRecord(input);
|
|
99
112
|
const runCard = asRecord(record.run_card);
|
|
@@ -136,7 +149,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
136
149
|
asRecord(record.details).checkpoint_summary,
|
|
137
150
|
asRecord(raw.details).checkpoint_summary
|
|
138
151
|
);
|
|
139
|
-
const blockedOrWaiting = status
|
|
152
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
140
153
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
141
154
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
142
155
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -145,8 +158,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
145
158
|
const syncAllowed = mergeReady;
|
|
146
159
|
let policyState = "unknown";
|
|
147
160
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
148
|
-
else if (status
|
|
149
|
-
else if (status
|
|
161
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
162
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
150
163
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
151
164
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
152
165
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -158,6 +171,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
158
171
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
159
172
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
160
173
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
174
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
175
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
161
176
|
const prohibitedClaims = [];
|
|
162
177
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
163
178
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -168,7 +183,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
168
183
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
169
184
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
170
185
|
}
|
|
171
|
-
const resultLabel2 = policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
186
|
+
const resultLabel2 = status === "product_regression" ? "product_regression" : status === "proof_insufficient" ? "proof_insufficient" : status === "environment_blocked" ? "environment_blocked" : status === "configuration_error" ? "configuration_error" : status === "needs_human_review" ? "needs_human_review" : policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
172
187
|
return {
|
|
173
188
|
status,
|
|
174
189
|
ok,
|
package/dist/pr-comment.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
RIDDLE_PROOF_PR_COMMENT_MARKER,
|
|
3
3
|
buildRiddleProofPrCommentMarkdown,
|
|
4
4
|
summarizeRiddleProofPrComment
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-CWRIXP5H.js";
|
|
6
|
+
import "./chunk-ZAR7BWMN.js";
|
|
7
7
|
import "./chunk-MLKGABMK.js";
|
|
8
8
|
export {
|
|
9
9
|
RIDDLE_PROOF_PR_COMMENT_MARKER,
|
package/dist/public-state.cjs
CHANGED
|
@@ -96,6 +96,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
96
96
|
function uniqueStrings(values) {
|
|
97
97
|
return [...new Set(values.filter(Boolean))];
|
|
98
98
|
}
|
|
99
|
+
function statusIsProofFailed(status) {
|
|
100
|
+
return status === "failed" || status === "product_regression";
|
|
101
|
+
}
|
|
102
|
+
function statusIsProofBlocked(status) {
|
|
103
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
104
|
+
}
|
|
105
|
+
function statusRequiresDisclosure(status) {
|
|
106
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
107
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
108
|
+
if (status === "configuration_error") return "configuration_error";
|
|
109
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
110
|
+
return void 0;
|
|
111
|
+
}
|
|
99
112
|
function summarizeRiddleProofPublicState(input) {
|
|
100
113
|
const record = asRecord(input);
|
|
101
114
|
const runCard = asRecord(record.run_card);
|
|
@@ -138,7 +151,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
138
151
|
asRecord(record.details).checkpoint_summary,
|
|
139
152
|
asRecord(raw.details).checkpoint_summary
|
|
140
153
|
);
|
|
141
|
-
const blockedOrWaiting = status
|
|
154
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
142
155
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
143
156
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
144
157
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -147,8 +160,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
147
160
|
const syncAllowed = mergeReady;
|
|
148
161
|
let policyState = "unknown";
|
|
149
162
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
150
|
-
else if (status
|
|
151
|
-
else if (status
|
|
163
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
164
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
152
165
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
153
166
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
154
167
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -160,6 +173,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
160
173
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
161
174
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
162
175
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
176
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
177
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
163
178
|
const prohibitedClaims = [];
|
|
164
179
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
165
180
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -170,7 +185,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
170
185
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
171
186
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
172
187
|
}
|
|
173
|
-
const resultLabel = policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
188
|
+
const resultLabel = status === "product_regression" ? "product_regression" : status === "proof_insufficient" ? "proof_insufficient" : status === "environment_blocked" ? "environment_blocked" : status === "configuration_error" ? "configuration_error" : status === "needs_human_review" ? "needs_human_review" : policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
174
189
|
return {
|
|
175
190
|
status,
|
|
176
191
|
ok,
|
package/dist/public-state.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
summarizeRiddleProofHostedProofViewSurface,
|
|
7
7
|
summarizeRiddleProofPublicConsumerSurface,
|
|
8
8
|
summarizeRiddleProofPublicState
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZAR7BWMN.js";
|
|
10
10
|
import "./chunk-MLKGABMK.js";
|
|
11
11
|
export {
|
|
12
12
|
riddleProofPublicStateAllowsClaim,
|
package/dist/result.cjs
CHANGED
|
@@ -104,6 +104,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
104
104
|
function uniqueStrings(values) {
|
|
105
105
|
return [...new Set(values.filter(Boolean))];
|
|
106
106
|
}
|
|
107
|
+
function statusIsProofFailed(status) {
|
|
108
|
+
return status === "failed" || status === "product_regression";
|
|
109
|
+
}
|
|
110
|
+
function statusIsProofBlocked(status) {
|
|
111
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
112
|
+
}
|
|
113
|
+
function statusRequiresDisclosure(status) {
|
|
114
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
115
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
116
|
+
if (status === "configuration_error") return "configuration_error";
|
|
117
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
118
|
+
return void 0;
|
|
119
|
+
}
|
|
107
120
|
function summarizeRiddleProofPublicState(input) {
|
|
108
121
|
const record = asRecord(input);
|
|
109
122
|
const runCard = asRecord(record.run_card);
|
|
@@ -146,7 +159,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
146
159
|
asRecord(record.details).checkpoint_summary,
|
|
147
160
|
asRecord(raw.details).checkpoint_summary
|
|
148
161
|
);
|
|
149
|
-
const blockedOrWaiting = status
|
|
162
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
150
163
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
151
164
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
152
165
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -155,8 +168,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
155
168
|
const syncAllowed = mergeReady;
|
|
156
169
|
let policyState = "unknown";
|
|
157
170
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
158
|
-
else if (status
|
|
159
|
-
else if (status
|
|
171
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
172
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
160
173
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
161
174
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
162
175
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -168,6 +181,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
168
181
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
169
182
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
170
183
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
184
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
185
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
171
186
|
const prohibitedClaims = [];
|
|
172
187
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
173
188
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -178,7 +193,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
178
193
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
179
194
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
180
195
|
}
|
|
181
|
-
const resultLabel = policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
196
|
+
const resultLabel = status === "product_regression" ? "product_regression" : status === "proof_insufficient" ? "proof_insufficient" : status === "environment_blocked" ? "environment_blocked" : status === "configuration_error" ? "configuration_error" : status === "needs_human_review" ? "needs_human_review" : policyState === "awaiting_checkpoint" ? "checkpoint required" : policyState === "proof_blocked" ? "blocked" : policyState === "proof_failed" ? "failed" : policyState === "proof_complete_ship_disabled" ? "proof complete; shipping disabled" : policyState === "proof_passed_ship_held" ? "proof passed; ship held" : policyState === "ship_authorized" ? status === "shipped" ? "shipped" : "ship authorized" : policyState === "proof_passed" ? "passed" : policyState === "proof_in_progress" ? "running" : status || "recorded";
|
|
182
197
|
return {
|
|
183
198
|
status,
|
|
184
199
|
ok,
|
package/dist/result.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
publicStateForRunState,
|
|
13
13
|
recordValue,
|
|
14
14
|
shipControlStateFor
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-NKHZASNQ.js";
|
|
16
|
+
import "./chunk-ZAR7BWMN.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
|
18
18
|
export {
|
|
19
19
|
applyShipControlState,
|