@riddledc/riddle-proof 0.8.69 → 0.8.71
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/neutral-fixture-site/README.md +19 -0
- package/examples/neutral-fixture-site/index.html +23 -0
- package/examples/neutral-fixture-site/pass.html +35 -0
- package/examples/neutral-fixture-site/styles.css +110 -0
- package/examples/profiles/neutral-fixture-pass.json +30 -0
- package/examples/profiles/neutral-fixture-product-regression.json +27 -0
- package/examples/story-matrices/README.md +5 -0
- package/examples/story-matrices/riddle-proof-bounded-loop.json +95 -0
- package/examples/story-matrices/riddle-proof-neutral-public-state-fixtures.json +144 -0
- package/examples/story-matrices/riddle-proof-ux-coverage.csv +13 -2
- package/package.json +1 -1
package/dist/run-card.cjs
CHANGED
|
@@ -103,6 +103,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
103
103
|
function uniqueStrings(values) {
|
|
104
104
|
return [...new Set(values.filter(Boolean))];
|
|
105
105
|
}
|
|
106
|
+
function statusIsProofFailed(status) {
|
|
107
|
+
return status === "failed" || status === "product_regression";
|
|
108
|
+
}
|
|
109
|
+
function statusIsProofBlocked(status) {
|
|
110
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
111
|
+
}
|
|
112
|
+
function statusRequiresDisclosure(status) {
|
|
113
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
114
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
115
|
+
if (status === "configuration_error") return "configuration_error";
|
|
116
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
117
|
+
return void 0;
|
|
118
|
+
}
|
|
106
119
|
function summarizeRiddleProofPublicState(input) {
|
|
107
120
|
const record = asRecord(input);
|
|
108
121
|
const runCard = asRecord(record.run_card);
|
|
@@ -145,7 +158,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
145
158
|
asRecord(record.details).checkpoint_summary,
|
|
146
159
|
asRecord(raw.details).checkpoint_summary
|
|
147
160
|
);
|
|
148
|
-
const blockedOrWaiting = status
|
|
161
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
149
162
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
150
163
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
151
164
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -154,8 +167,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
154
167
|
const syncAllowed = mergeReady;
|
|
155
168
|
let policyState = "unknown";
|
|
156
169
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
157
|
-
else if (status
|
|
158
|
-
else if (status
|
|
170
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
171
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
159
172
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
160
173
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
161
174
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -167,6 +180,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
167
180
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
168
181
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
169
182
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
183
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
184
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
170
185
|
const prohibitedClaims = [];
|
|
171
186
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
172
187
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -177,7 +192,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
177
192
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
178
193
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
179
194
|
}
|
|
180
|
-
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";
|
|
195
|
+
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";
|
|
181
196
|
return {
|
|
182
197
|
status,
|
|
183
198
|
ok,
|
package/dist/run-card.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
3
3
|
createRiddleProofRunCard
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-UTCL7FEZ.js";
|
|
5
|
+
import "./chunk-DYE3URAQ.js";
|
|
6
|
+
import "./chunk-NKHZASNQ.js";
|
|
7
|
+
import "./chunk-ZAR7BWMN.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
package/dist/runner.cjs
CHANGED
|
@@ -102,6 +102,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
102
102
|
function uniqueStrings(values) {
|
|
103
103
|
return [...new Set(values.filter(Boolean))];
|
|
104
104
|
}
|
|
105
|
+
function statusIsProofFailed(status) {
|
|
106
|
+
return status === "failed" || status === "product_regression";
|
|
107
|
+
}
|
|
108
|
+
function statusIsProofBlocked(status) {
|
|
109
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
110
|
+
}
|
|
111
|
+
function statusRequiresDisclosure(status) {
|
|
112
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
113
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
114
|
+
if (status === "configuration_error") return "configuration_error";
|
|
115
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
116
|
+
return void 0;
|
|
117
|
+
}
|
|
105
118
|
function summarizeRiddleProofPublicState(input) {
|
|
106
119
|
const record = asRecord(input);
|
|
107
120
|
const runCard = asRecord(record.run_card);
|
|
@@ -144,7 +157,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
144
157
|
asRecord(record.details).checkpoint_summary,
|
|
145
158
|
asRecord(raw.details).checkpoint_summary
|
|
146
159
|
);
|
|
147
|
-
const blockedOrWaiting = status
|
|
160
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
148
161
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
149
162
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
150
163
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -153,8 +166,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
153
166
|
const syncAllowed = mergeReady;
|
|
154
167
|
let policyState = "unknown";
|
|
155
168
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
156
|
-
else if (status
|
|
157
|
-
else if (status
|
|
169
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
170
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
158
171
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
159
172
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
160
173
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -166,6 +179,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
166
179
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
167
180
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
168
181
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
182
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
183
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
169
184
|
const prohibitedClaims = [];
|
|
170
185
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
171
186
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -176,7 +191,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
176
191
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
177
192
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
178
193
|
}
|
|
179
|
-
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";
|
|
194
|
+
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";
|
|
180
195
|
return {
|
|
181
196
|
status,
|
|
182
197
|
ok,
|
package/dist/runner.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRiddleProof
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YH7ADFY4.js";
|
|
4
|
+
import "./chunk-CGJX7LJO.js";
|
|
5
|
+
import "./chunk-UTCL7FEZ.js";
|
|
6
6
|
import "./chunk-EKZXU6MU.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DYE3URAQ.js";
|
|
8
|
+
import "./chunk-NKHZASNQ.js";
|
|
9
|
+
import "./chunk-ZAR7BWMN.js";
|
|
10
10
|
import "./chunk-MLKGABMK.js";
|
|
11
11
|
export {
|
|
12
12
|
runRiddleProof
|
package/dist/spec/checkpoint.js
CHANGED
|
@@ -14,9 +14,9 @@ import {
|
|
|
14
14
|
normalizeCheckpointResponse,
|
|
15
15
|
proofContractFromAuthorCheckpointResponse,
|
|
16
16
|
statePathsForRunState
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-DYE3URAQ.js";
|
|
18
|
+
import "../chunk-NKHZASNQ.js";
|
|
19
|
+
import "../chunk-ZAR7BWMN.js";
|
|
20
20
|
import "../chunk-MLKGABMK.js";
|
|
21
21
|
export {
|
|
22
22
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
package/dist/spec/index.cjs
CHANGED
|
@@ -148,6 +148,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
148
148
|
function uniqueStrings(values) {
|
|
149
149
|
return [...new Set(values.filter(Boolean))];
|
|
150
150
|
}
|
|
151
|
+
function statusIsProofFailed(status) {
|
|
152
|
+
return status === "failed" || status === "product_regression";
|
|
153
|
+
}
|
|
154
|
+
function statusIsProofBlocked(status) {
|
|
155
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
156
|
+
}
|
|
157
|
+
function statusRequiresDisclosure(status) {
|
|
158
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
159
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
160
|
+
if (status === "configuration_error") return "configuration_error";
|
|
161
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
162
|
+
return void 0;
|
|
163
|
+
}
|
|
151
164
|
function summarizeRiddleProofPublicState(input) {
|
|
152
165
|
const record = asRecord(input);
|
|
153
166
|
const runCard = asRecord(record.run_card);
|
|
@@ -190,7 +203,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
190
203
|
asRecord(record.details).checkpoint_summary,
|
|
191
204
|
asRecord(raw.details).checkpoint_summary
|
|
192
205
|
);
|
|
193
|
-
const blockedOrWaiting = status
|
|
206
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
194
207
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
195
208
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
196
209
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -199,8 +212,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
199
212
|
const syncAllowed = mergeReady;
|
|
200
213
|
let policyState = "unknown";
|
|
201
214
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
202
|
-
else if (status
|
|
203
|
-
else if (status
|
|
215
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
216
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
204
217
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
205
218
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
206
219
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -212,6 +225,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
212
225
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
213
226
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
214
227
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
228
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
229
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
215
230
|
const prohibitedClaims = [];
|
|
216
231
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
217
232
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -222,7 +237,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
222
237
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
223
238
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
224
239
|
}
|
|
225
|
-
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";
|
|
240
|
+
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";
|
|
226
241
|
return {
|
|
227
242
|
status,
|
|
228
243
|
ok,
|
package/dist/spec/index.js
CHANGED
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
normalizePrLifecycleState,
|
|
11
11
|
normalizeRunParams,
|
|
12
12
|
setRunStatus
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-CGJX7LJO.js";
|
|
14
14
|
import {
|
|
15
15
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
16
16
|
createRiddleProofRunCard
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-UTCL7FEZ.js";
|
|
18
18
|
import {
|
|
19
19
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
20
20
|
RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
normalizeCheckpointResponse,
|
|
32
32
|
proofContractFromAuthorCheckpointResponse,
|
|
33
33
|
statePathsForRunState
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-DYE3URAQ.js";
|
|
35
35
|
import {
|
|
36
36
|
applyShipControlState,
|
|
37
37
|
applyTerminalMetadata,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
publicStateForRunState,
|
|
47
47
|
recordValue,
|
|
48
48
|
shipControlStateFor
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-NKHZASNQ.js";
|
|
50
50
|
import {
|
|
51
51
|
riddleProofPublicStateAllowsClaim,
|
|
52
52
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
summarizeRiddleProofHostedProofViewSurface,
|
|
56
56
|
summarizeRiddleProofPublicConsumerSurface,
|
|
57
57
|
summarizeRiddleProofPublicState
|
|
58
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-ZAR7BWMN.js";
|
|
59
59
|
import "../chunk-MLKGABMK.js";
|
|
60
60
|
export {
|
|
61
61
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
@@ -98,6 +98,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
98
98
|
function uniqueStrings(values) {
|
|
99
99
|
return [...new Set(values.filter(Boolean))];
|
|
100
100
|
}
|
|
101
|
+
function statusIsProofFailed(status) {
|
|
102
|
+
return status === "failed" || status === "product_regression";
|
|
103
|
+
}
|
|
104
|
+
function statusIsProofBlocked(status) {
|
|
105
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
106
|
+
}
|
|
107
|
+
function statusRequiresDisclosure(status) {
|
|
108
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
109
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
110
|
+
if (status === "configuration_error") return "configuration_error";
|
|
111
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
112
|
+
return void 0;
|
|
113
|
+
}
|
|
101
114
|
function summarizeRiddleProofPublicState(input) {
|
|
102
115
|
const record = asRecord(input);
|
|
103
116
|
const runCard = asRecord(record.run_card);
|
|
@@ -140,7 +153,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
140
153
|
asRecord(record.details).checkpoint_summary,
|
|
141
154
|
asRecord(raw.details).checkpoint_summary
|
|
142
155
|
);
|
|
143
|
-
const blockedOrWaiting = status
|
|
156
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
144
157
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
145
158
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
146
159
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -149,8 +162,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
149
162
|
const syncAllowed = mergeReady;
|
|
150
163
|
let policyState = "unknown";
|
|
151
164
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
152
|
-
else if (status
|
|
153
|
-
else if (status
|
|
165
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
166
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
154
167
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
155
168
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
156
169
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -162,6 +175,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
162
175
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
163
176
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
164
177
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
178
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
179
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
165
180
|
const prohibitedClaims = [];
|
|
166
181
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
167
182
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -172,7 +187,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
172
187
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
173
188
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
174
189
|
}
|
|
175
|
-
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";
|
|
190
|
+
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";
|
|
176
191
|
return {
|
|
177
192
|
status,
|
|
178
193
|
ok,
|
|
@@ -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/spec/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/spec/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,
|
package/dist/spec/run-card.cjs
CHANGED
|
@@ -103,6 +103,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
103
103
|
function uniqueStrings(values) {
|
|
104
104
|
return [...new Set(values.filter(Boolean))];
|
|
105
105
|
}
|
|
106
|
+
function statusIsProofFailed(status) {
|
|
107
|
+
return status === "failed" || status === "product_regression";
|
|
108
|
+
}
|
|
109
|
+
function statusIsProofBlocked(status) {
|
|
110
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
111
|
+
}
|
|
112
|
+
function statusRequiresDisclosure(status) {
|
|
113
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
114
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
115
|
+
if (status === "configuration_error") return "configuration_error";
|
|
116
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
117
|
+
return void 0;
|
|
118
|
+
}
|
|
106
119
|
function summarizeRiddleProofPublicState(input) {
|
|
107
120
|
const record = asRecord(input);
|
|
108
121
|
const runCard = asRecord(record.run_card);
|
|
@@ -145,7 +158,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
145
158
|
asRecord(record.details).checkpoint_summary,
|
|
146
159
|
asRecord(raw.details).checkpoint_summary
|
|
147
160
|
);
|
|
148
|
-
const blockedOrWaiting = status
|
|
161
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
149
162
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
150
163
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
151
164
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -154,8 +167,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
154
167
|
const syncAllowed = mergeReady;
|
|
155
168
|
let policyState = "unknown";
|
|
156
169
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
157
|
-
else if (status
|
|
158
|
-
else if (status
|
|
170
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
171
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
159
172
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
160
173
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
161
174
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -167,6 +180,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
167
180
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
168
181
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
169
182
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
183
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
184
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
170
185
|
const prohibitedClaims = [];
|
|
171
186
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
172
187
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -177,7 +192,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
177
192
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
178
193
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
179
194
|
}
|
|
180
|
-
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";
|
|
195
|
+
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";
|
|
181
196
|
return {
|
|
182
197
|
status,
|
|
183
198
|
ok,
|
package/dist/spec/run-card.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
3
3
|
createRiddleProofRunCard
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-UTCL7FEZ.js";
|
|
5
|
+
import "../chunk-DYE3URAQ.js";
|
|
6
|
+
import "../chunk-NKHZASNQ.js";
|
|
7
|
+
import "../chunk-ZAR7BWMN.js";
|
|
8
8
|
import "../chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
package/dist/spec/state.cjs
CHANGED
|
@@ -111,6 +111,19 @@ function checkpointSummaryFrom(...values) {
|
|
|
111
111
|
function uniqueStrings(values) {
|
|
112
112
|
return [...new Set(values.filter(Boolean))];
|
|
113
113
|
}
|
|
114
|
+
function statusIsProofFailed(status) {
|
|
115
|
+
return status === "failed" || status === "product_regression";
|
|
116
|
+
}
|
|
117
|
+
function statusIsProofBlocked(status) {
|
|
118
|
+
return status === "blocked" || status === "proof_insufficient" || status === "environment_blocked" || status === "configuration_error" || status === "needs_human_review";
|
|
119
|
+
}
|
|
120
|
+
function statusRequiresDisclosure(status) {
|
|
121
|
+
if (status === "proof_insufficient") return "proof_insufficient";
|
|
122
|
+
if (status === "environment_blocked") return "environment_blocked";
|
|
123
|
+
if (status === "configuration_error") return "configuration_error";
|
|
124
|
+
if (status === "needs_human_review") return "human_review_required";
|
|
125
|
+
return void 0;
|
|
126
|
+
}
|
|
114
127
|
function summarizeRiddleProofPublicState(input) {
|
|
115
128
|
const record = asRecord(input);
|
|
116
129
|
const runCard = asRecord(record.run_card);
|
|
@@ -153,7 +166,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
153
166
|
asRecord(record.details).checkpoint_summary,
|
|
154
167
|
asRecord(raw.details).checkpoint_summary
|
|
155
168
|
);
|
|
156
|
-
const blockedOrWaiting = status
|
|
169
|
+
const blockedOrWaiting = statusIsProofBlocked(status) || statusIsProofFailed(status) || status === "awaiting_checkpoint" || handoffState === "proof_blocked" || handoffState === "proof_review_required" || handoffState === "proof_failed" || handoffState === "proof_checkpoint_required";
|
|
157
170
|
const proofPassed = Boolean(proofComplete && !blockedOrWaiting);
|
|
158
171
|
const explicitMergeReady = firstBooleanValue(record.merge_ready, stopCondition.merge_ready, raw.merge_ready, handoff.merge_ready);
|
|
159
172
|
const normalPrAllowed = firstBooleanValue(record.normal_pr_allowed, raw.normal_pr_allowed, handoff.normal_pr_allowed);
|
|
@@ -162,8 +175,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
162
175
|
const syncAllowed = mergeReady;
|
|
163
176
|
let policyState = "unknown";
|
|
164
177
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") policyState = "awaiting_checkpoint";
|
|
165
|
-
else if (status
|
|
166
|
-
else if (status
|
|
178
|
+
else if (statusIsProofFailed(status) || handoffState === "proof_failed") policyState = "proof_failed";
|
|
179
|
+
else if (statusIsProofBlocked(status) || handoffState === "proof_blocked" || handoffState === "proof_review_required") policyState = "proof_blocked";
|
|
167
180
|
else if (handoffState === "proof_complete_ship_disabled") policyState = "proof_complete_ship_disabled";
|
|
168
181
|
else if (proofComplete && shipHeld && !shipAuthorized) policyState = "proof_passed_ship_held";
|
|
169
182
|
else if (proofComplete && shippingDisabled && !shipAuthorized) policyState = "proof_complete_ship_disabled";
|
|
@@ -175,6 +188,8 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
175
188
|
if (shippingDisabled) requiredDisclosures.push("shipping_disabled");
|
|
176
189
|
if (checkpointSummary?.audit_disclosure_required) requiredDisclosures.push("checkpoint_audit_counters");
|
|
177
190
|
if (status === "awaiting_checkpoint" || handoffState === "proof_checkpoint_required") requiredDisclosures.push("checkpoint_required");
|
|
191
|
+
const statusDisclosure = statusRequiresDisclosure(status);
|
|
192
|
+
if (statusDisclosure) requiredDisclosures.push(statusDisclosure);
|
|
178
193
|
const prohibitedClaims = [];
|
|
179
194
|
if (!shipAuthorized || shipHeld || shippingDisabled) prohibitedClaims.push("ship_authorized", "shipped");
|
|
180
195
|
if (!mergeReady) prohibitedClaims.push("merge_ready");
|
|
@@ -185,7 +200,7 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
185
200
|
if (checkpointSummary?.audit_disclosure_required) {
|
|
186
201
|
prohibitedClaims.push("all_checkpoint_responses_accepted");
|
|
187
202
|
}
|
|
188
|
-
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";
|
|
203
|
+
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";
|
|
189
204
|
return {
|
|
190
205
|
status,
|
|
191
206
|
ok,
|
package/dist/spec/state.js
CHANGED
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
normalizePrLifecycleState,
|
|
10
10
|
normalizeRunParams,
|
|
11
11
|
setRunStatus
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-CGJX7LJO.js";
|
|
13
|
+
import "../chunk-UTCL7FEZ.js";
|
|
14
|
+
import "../chunk-DYE3URAQ.js";
|
|
15
|
+
import "../chunk-NKHZASNQ.js";
|
|
16
|
+
import "../chunk-ZAR7BWMN.js";
|
|
17
17
|
import "../chunk-MLKGABMK.js";
|
|
18
18
|
export {
|
|
19
19
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|