@riddledc/riddle-proof 0.8.60 → 0.8.62
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 +46 -0
- package/dist/advanced/engine-harness.js +6 -6
- package/dist/advanced/index.cjs +46 -0
- package/dist/advanced/index.js +7 -7
- package/dist/advanced/runner.js +6 -6
- package/dist/checkpoint.js +3 -3
- package/dist/{chunk-NXEAFQYZ.js → chunk-2OTPBHSM.js} +2 -2
- package/dist/{chunk-WKIIJX3O.js → chunk-6PSM6KB2.js} +66 -1
- package/dist/{chunk-AWRBSVNW.js → chunk-DDAV6D6K.js} +4 -4
- package/dist/{chunk-XKNJ5OE4.js → chunk-HRY2IHXM.js} +2 -2
- package/dist/{chunk-UEY5SJG5.js → chunk-NMQIWBSB.js} +2 -2
- package/dist/{chunk-QPKY767W.js → chunk-OD6OKXL2.js} +1 -1
- package/dist/{chunk-PCEDAQPG.js → chunk-P4BHU5NM.js} +50 -4
- package/dist/{chunk-HZOILEGF.js → chunk-RZ3GXSXQ.js} +7 -2
- package/dist/{chunk-QGMSN34W.js → chunk-UK7G4RKA.js} +1 -1
- package/dist/{chunk-3FK5HZHK.js → chunk-WKNWMRDF.js} +2 -2
- package/dist/{chunk-FX2CB4MG.js → chunk-ZB5XBHWD.js} +1 -1
- package/dist/cli/index.js +9 -9
- package/dist/cli.cjs +51 -1
- package/dist/cli.js +9 -9
- package/dist/codex-exec-agent.js +3 -3
- package/dist/engine-harness.cjs +46 -0
- package/dist/engine-harness.js +6 -6
- package/dist/index.cjs +119 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -9
- package/dist/local-agent.js +3 -3
- package/dist/openclaw.js +6 -6
- package/dist/pr-comment.cjs +8 -1
- package/dist/pr-comment.js +2 -2
- package/dist/public-state.cjs +68 -0
- package/dist/public-state.d.cts +41 -1
- package/dist/public-state.d.ts +41 -1
- package/dist/public-state.js +7 -1
- package/dist/result.js +2 -2
- package/dist/run-card.js +4 -4
- package/dist/runner.js +6 -6
- package/dist/spec/checkpoint.js +3 -3
- package/dist/spec/index.cjs +68 -0
- package/dist/spec/index.d.cts +1 -1
- package/dist/spec/index.d.ts +1 -1
- package/dist/spec/index.js +11 -5
- package/dist/spec/public-state.cjs +68 -0
- package/dist/spec/public-state.d.cts +1 -1
- package/dist/spec/public-state.d.ts +1 -1
- package/dist/spec/public-state.js +7 -1
- package/dist/spec/result.js +2 -2
- package/dist/spec/run-card.js +4 -4
- package/dist/spec/state.js +5 -5
- package/dist/state.js +5 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -5454,6 +5454,13 @@ function proofAssessmentHardBlockers(state, payload) {
|
|
|
5454
5454
|
}
|
|
5455
5455
|
return blockers;
|
|
5456
5456
|
}
|
|
5457
|
+
function proofGateStateForCheckpointResponse(state) {
|
|
5458
|
+
const fullState = readJson(state.request.engine_state_path) || {};
|
|
5459
|
+
return compactRecord({
|
|
5460
|
+
...fullState,
|
|
5461
|
+
verification_mode: nonEmptyString(fullState.verification_mode) || state.request.verification_mode
|
|
5462
|
+
});
|
|
5463
|
+
}
|
|
5457
5464
|
function proofAssessmentContinuation(result, payload) {
|
|
5458
5465
|
const proof_assessment_json = jsonParam(payload);
|
|
5459
5466
|
return { ...baseContinuation(result), proof_assessment_json };
|
|
@@ -6000,6 +6007,45 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6000
6007
|
blocker: sourceBlocker
|
|
6001
6008
|
});
|
|
6002
6009
|
}
|
|
6010
|
+
const proofGateState = proofGateStateForCheckpointResponse(state);
|
|
6011
|
+
const hardBlockers = proofAssessmentHardBlockers(proofGateState, assessment);
|
|
6012
|
+
if (proofAssessmentRequestsShip(assessment) && hardBlockers.length) {
|
|
6013
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6014
|
+
packet,
|
|
6015
|
+
response,
|
|
6016
|
+
blocker: {
|
|
6017
|
+
code: "checkpoint_response_proof_hard_blocker",
|
|
6018
|
+
checkpoint: packet.checkpoint,
|
|
6019
|
+
message: "Riddle Proof cannot mark ready_to_ship while the proof bundle contains a hard blocker: " + hardBlockers[0],
|
|
6020
|
+
details: compactRecord({
|
|
6021
|
+
stage: packet.stage,
|
|
6022
|
+
hard_blockers: hardBlockers,
|
|
6023
|
+
proofAssessment: assessment,
|
|
6024
|
+
response
|
|
6025
|
+
})
|
|
6026
|
+
}
|
|
6027
|
+
});
|
|
6028
|
+
}
|
|
6029
|
+
const visualBlocker = proofAssessmentVisualBlocker(proofGateState, assessment);
|
|
6030
|
+
if (visualBlocker) {
|
|
6031
|
+
const recoveryAssessment = visualDeltaEvidenceRecoveryAssessment(proofGateState, assessment, visualBlocker);
|
|
6032
|
+
appendCheckpointResponse(state, response, { summary: visualBlocker });
|
|
6033
|
+
recordEvent(state, {
|
|
6034
|
+
kind: "checkpoint.response.evidence_recovery_required",
|
|
6035
|
+
checkpoint: packet.checkpoint,
|
|
6036
|
+
stage: "verify",
|
|
6037
|
+
summary: visualBlocker,
|
|
6038
|
+
details: compactRecord({
|
|
6039
|
+
evidence_collection_incomplete: true,
|
|
6040
|
+
recovery_stage: "verify",
|
|
6041
|
+
evidence_issue_code: recoveryAssessment.evidence_issue_code || null,
|
|
6042
|
+
visual_delta: recoveryAssessment.visual_delta || null,
|
|
6043
|
+
proof_assessment: recoveryAssessment,
|
|
6044
|
+
checkpoint_response_source: response.source || null
|
|
6045
|
+
})
|
|
6046
|
+
});
|
|
6047
|
+
return { next: { ...base, proof_assessment_json: jsonParam(recoveryAssessment) } };
|
|
6048
|
+
}
|
|
6003
6049
|
appendCheckpointResponse(state, response);
|
|
6004
6050
|
if (state.request.ship_mode !== "ship" && proofAssessmentRequestsShip(assessment)) {
|
|
6005
6051
|
const result = {
|
|
@@ -18081,6 +18127,10 @@ function summarizeRiddleProofPrComment(input) {
|
|
|
18081
18127
|
status: firstStringValue2(result.status, stopCondition.status),
|
|
18082
18128
|
checkpoint_summary: checkpointSummary || result.checkpoint_summary
|
|
18083
18129
|
});
|
|
18130
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
18131
|
+
publicState,
|
|
18132
|
+
firstStringValue2(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation)
|
|
18133
|
+
);
|
|
18084
18134
|
return {
|
|
18085
18135
|
ok,
|
|
18086
18136
|
status: stringValue4(proofResult.status),
|
|
@@ -18098,7 +18148,7 @@ function summarizeRiddleProofPrComment(input) {
|
|
|
18098
18148
|
merge_ready: publicState.merge_ready,
|
|
18099
18149
|
sync_allowed: publicState.sync_allowed,
|
|
18100
18150
|
proof_decision: firstStringValue2(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
|
|
18101
|
-
merge_recommendation:
|
|
18151
|
+
merge_recommendation: mergeRecommendation,
|
|
18102
18152
|
checkpoint_summary: checkpointSummary,
|
|
18103
18153
|
public_state: publicState,
|
|
18104
18154
|
passed_checks: nestedChecks.passed,
|
package/dist/cli.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-DDAV6D6K.js";
|
|
3
3
|
import "./chunk-DI2XNGEZ.js";
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-RZ3GXSXQ.js";
|
|
5
5
|
import "./chunk-EX7TO4I5.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-P4BHU5NM.js";
|
|
7
|
+
import "./chunk-NMQIWBSB.js";
|
|
8
|
+
import "./chunk-2OTPBHSM.js";
|
|
9
9
|
import "./chunk-EKZXU6MU.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-ZB5XBHWD.js";
|
|
11
11
|
import "./chunk-JFQXAJH2.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-OD6OKXL2.js";
|
|
13
|
+
import "./chunk-UK7G4RKA.js";
|
|
14
|
+
import "./chunk-6PSM6KB2.js";
|
|
15
15
|
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-OD6OKXL2.js";
|
|
6
|
+
import "./chunk-UK7G4RKA.js";
|
|
7
|
+
import "./chunk-6PSM6KB2.js";
|
|
8
8
|
import "./chunk-MLKGABMK.js";
|
|
9
9
|
export {
|
|
10
10
|
createCodexExecAgentAdapter,
|
package/dist/engine-harness.cjs
CHANGED
|
@@ -5366,6 +5366,13 @@ function proofAssessmentHardBlockers(state, payload) {
|
|
|
5366
5366
|
}
|
|
5367
5367
|
return blockers;
|
|
5368
5368
|
}
|
|
5369
|
+
function proofGateStateForCheckpointResponse(state) {
|
|
5370
|
+
const fullState = readJson(state.request.engine_state_path) || {};
|
|
5371
|
+
return compactRecord({
|
|
5372
|
+
...fullState,
|
|
5373
|
+
verification_mode: nonEmptyString(fullState.verification_mode) || state.request.verification_mode
|
|
5374
|
+
});
|
|
5375
|
+
}
|
|
5369
5376
|
function proofAssessmentContinuation(result, payload) {
|
|
5370
5377
|
const proof_assessment_json = jsonParam(payload);
|
|
5371
5378
|
return { ...baseContinuation(result), proof_assessment_json };
|
|
@@ -5912,6 +5919,45 @@ function checkpointResponseContinuation(state, value) {
|
|
|
5912
5919
|
blocker: sourceBlocker
|
|
5913
5920
|
});
|
|
5914
5921
|
}
|
|
5922
|
+
const proofGateState = proofGateStateForCheckpointResponse(state);
|
|
5923
|
+
const hardBlockers = proofAssessmentHardBlockers(proofGateState, assessment);
|
|
5924
|
+
if (proofAssessmentRequestsShip(assessment) && hardBlockers.length) {
|
|
5925
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
5926
|
+
packet,
|
|
5927
|
+
response,
|
|
5928
|
+
blocker: {
|
|
5929
|
+
code: "checkpoint_response_proof_hard_blocker",
|
|
5930
|
+
checkpoint: packet.checkpoint,
|
|
5931
|
+
message: "Riddle Proof cannot mark ready_to_ship while the proof bundle contains a hard blocker: " + hardBlockers[0],
|
|
5932
|
+
details: compactRecord({
|
|
5933
|
+
stage: packet.stage,
|
|
5934
|
+
hard_blockers: hardBlockers,
|
|
5935
|
+
proofAssessment: assessment,
|
|
5936
|
+
response
|
|
5937
|
+
})
|
|
5938
|
+
}
|
|
5939
|
+
});
|
|
5940
|
+
}
|
|
5941
|
+
const visualBlocker = proofAssessmentVisualBlocker(proofGateState, assessment);
|
|
5942
|
+
if (visualBlocker) {
|
|
5943
|
+
const recoveryAssessment = visualDeltaEvidenceRecoveryAssessment(proofGateState, assessment, visualBlocker);
|
|
5944
|
+
appendCheckpointResponse(state, response, { summary: visualBlocker });
|
|
5945
|
+
recordEvent(state, {
|
|
5946
|
+
kind: "checkpoint.response.evidence_recovery_required",
|
|
5947
|
+
checkpoint: packet.checkpoint,
|
|
5948
|
+
stage: "verify",
|
|
5949
|
+
summary: visualBlocker,
|
|
5950
|
+
details: compactRecord({
|
|
5951
|
+
evidence_collection_incomplete: true,
|
|
5952
|
+
recovery_stage: "verify",
|
|
5953
|
+
evidence_issue_code: recoveryAssessment.evidence_issue_code || null,
|
|
5954
|
+
visual_delta: recoveryAssessment.visual_delta || null,
|
|
5955
|
+
proof_assessment: recoveryAssessment,
|
|
5956
|
+
checkpoint_response_source: response.source || null
|
|
5957
|
+
})
|
|
5958
|
+
});
|
|
5959
|
+
return { next: { ...base, proof_assessment_json: jsonParam(recoveryAssessment) } };
|
|
5960
|
+
}
|
|
5915
5961
|
appendCheckpointResponse(state, response);
|
|
5916
5962
|
if (state.request.ship_mode !== "ship" && proofAssessmentRequestsShip(assessment)) {
|
|
5917
5963
|
const result = {
|
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-P4BHU5NM.js";
|
|
6
|
+
import "./chunk-NMQIWBSB.js";
|
|
7
|
+
import "./chunk-2OTPBHSM.js";
|
|
8
8
|
import "./chunk-EKZXU6MU.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-ZB5XBHWD.js";
|
|
10
|
+
import "./chunk-UK7G4RKA.js";
|
|
11
|
+
import "./chunk-6PSM6KB2.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
createDisabledRiddleProofAgentAdapter,
|
package/dist/index.cjs
CHANGED
|
@@ -3538,8 +3538,11 @@ __export(index_exports, {
|
|
|
3538
3538
|
slugifyRiddleProofProfileName: () => slugifyRiddleProofProfileName,
|
|
3539
3539
|
statePathsForRunState: () => statePathsForRunState,
|
|
3540
3540
|
summarizeCaptureArtifacts: () => summarizeCaptureArtifacts,
|
|
3541
|
+
summarizeRiddleProofAgentSummarySurface: () => summarizeRiddleProofAgentSummarySurface,
|
|
3542
|
+
summarizeRiddleProofHostedProofViewSurface: () => summarizeRiddleProofHostedProofViewSurface,
|
|
3541
3543
|
summarizeRiddleProofPrComment: () => summarizeRiddleProofPrComment,
|
|
3542
3544
|
summarizeRiddleProofProfileResult: () => summarizeRiddleProofProfileResult,
|
|
3545
|
+
summarizeRiddleProofPublicConsumerSurface: () => summarizeRiddleProofPublicConsumerSurface,
|
|
3543
3546
|
summarizeRiddleProofPublicState: () => summarizeRiddleProofPublicState,
|
|
3544
3547
|
visualSessionFingerprint: () => visualSessionFingerprint,
|
|
3545
3548
|
visualSessionFingerprintBasis: () => visualSessionFingerprintBasis
|
|
@@ -3706,6 +3709,68 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
3706
3709
|
prohibited_claims: uniqueStrings(prohibitedClaims)
|
|
3707
3710
|
};
|
|
3708
3711
|
}
|
|
3712
|
+
function summarizeRiddleProofPublicConsumerSurface(input, options = {}) {
|
|
3713
|
+
const record = asRecord(input);
|
|
3714
|
+
const runCard = asRecord(record.run_card);
|
|
3715
|
+
const stopCondition = asRecord(runCard.stop_condition);
|
|
3716
|
+
const raw = asRecord(record.raw);
|
|
3717
|
+
const publicState = summarizeRiddleProofPublicState(input);
|
|
3718
|
+
const checkpointAudit = publicState.checkpoint_summary;
|
|
3719
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
3720
|
+
publicState,
|
|
3721
|
+
firstStringValue(
|
|
3722
|
+
options.merge_recommendation,
|
|
3723
|
+
record.merge_recommendation,
|
|
3724
|
+
stopCondition.merge_recommendation,
|
|
3725
|
+
raw.merge_recommendation
|
|
3726
|
+
)
|
|
3727
|
+
);
|
|
3728
|
+
const checkpointAuditRequired = publicState.required_disclosures.includes("checkpoint_audit_counters");
|
|
3729
|
+
return {
|
|
3730
|
+
kind: options.kind || "run_result",
|
|
3731
|
+
status: publicState.status,
|
|
3732
|
+
result_label: publicState.result_label,
|
|
3733
|
+
policy_state: publicState.policy_state,
|
|
3734
|
+
proof_complete: publicState.proof_complete,
|
|
3735
|
+
claims: {
|
|
3736
|
+
proof_passed: publicState.proof_passed,
|
|
3737
|
+
ship_authorized: publicState.ship_authorized,
|
|
3738
|
+
merge_ready: publicState.merge_ready,
|
|
3739
|
+
sync_allowed: publicState.sync_allowed,
|
|
3740
|
+
all_checkpoint_responses_accepted: checkpointAudit ? !checkpointAudit.audit_disclosure_required : false
|
|
3741
|
+
},
|
|
3742
|
+
ship_control: {
|
|
3743
|
+
ship_held: publicState.ship_held,
|
|
3744
|
+
shipping_disabled: publicState.shipping_disabled,
|
|
3745
|
+
ship_authorized: publicState.ship_authorized
|
|
3746
|
+
},
|
|
3747
|
+
handoff: {
|
|
3748
|
+
merge_ready: publicState.merge_ready,
|
|
3749
|
+
sync_allowed: publicState.sync_allowed,
|
|
3750
|
+
merge_recommendation: mergeRecommendation
|
|
3751
|
+
},
|
|
3752
|
+
checkpoint_audit: checkpointAudit,
|
|
3753
|
+
disclosures: {
|
|
3754
|
+
ship_control: true,
|
|
3755
|
+
checkpoint_audit: !checkpointAuditRequired || Boolean(checkpointAudit),
|
|
3756
|
+
required: [...publicState.required_disclosures],
|
|
3757
|
+
prohibited_claims: [...publicState.prohibited_claims]
|
|
3758
|
+
},
|
|
3759
|
+
public_state: publicState
|
|
3760
|
+
};
|
|
3761
|
+
}
|
|
3762
|
+
function summarizeRiddleProofHostedProofViewSurface(input, options = {}) {
|
|
3763
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
3764
|
+
...options,
|
|
3765
|
+
kind: "hosted_proof_view"
|
|
3766
|
+
});
|
|
3767
|
+
}
|
|
3768
|
+
function summarizeRiddleProofAgentSummarySurface(input, options = {}) {
|
|
3769
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
3770
|
+
...options,
|
|
3771
|
+
kind: "agent_summary"
|
|
3772
|
+
});
|
|
3773
|
+
}
|
|
3709
3774
|
|
|
3710
3775
|
// src/result.ts
|
|
3711
3776
|
function isTerminalStatus(status) {
|
|
@@ -6131,6 +6196,13 @@ function proofAssessmentHardBlockers(state, payload) {
|
|
|
6131
6196
|
}
|
|
6132
6197
|
return blockers;
|
|
6133
6198
|
}
|
|
6199
|
+
function proofGateStateForCheckpointResponse(state) {
|
|
6200
|
+
const fullState = readJson(state.request.engine_state_path) || {};
|
|
6201
|
+
return compactRecord({
|
|
6202
|
+
...fullState,
|
|
6203
|
+
verification_mode: nonEmptyString(fullState.verification_mode) || state.request.verification_mode
|
|
6204
|
+
});
|
|
6205
|
+
}
|
|
6134
6206
|
function proofAssessmentContinuation(result, payload) {
|
|
6135
6207
|
const proof_assessment_json = jsonParam(payload);
|
|
6136
6208
|
return { ...baseContinuation(result), proof_assessment_json };
|
|
@@ -6677,6 +6749,45 @@ function checkpointResponseContinuation(state, value) {
|
|
|
6677
6749
|
blocker: sourceBlocker
|
|
6678
6750
|
});
|
|
6679
6751
|
}
|
|
6752
|
+
const proofGateState = proofGateStateForCheckpointResponse(state);
|
|
6753
|
+
const hardBlockers = proofAssessmentHardBlockers(proofGateState, assessment);
|
|
6754
|
+
if (proofAssessmentRequestsShip(assessment) && hardBlockers.length) {
|
|
6755
|
+
return checkpointResponseRejectedBlocker(state, {
|
|
6756
|
+
packet,
|
|
6757
|
+
response,
|
|
6758
|
+
blocker: {
|
|
6759
|
+
code: "checkpoint_response_proof_hard_blocker",
|
|
6760
|
+
checkpoint: packet.checkpoint,
|
|
6761
|
+
message: "Riddle Proof cannot mark ready_to_ship while the proof bundle contains a hard blocker: " + hardBlockers[0],
|
|
6762
|
+
details: compactRecord({
|
|
6763
|
+
stage: packet.stage,
|
|
6764
|
+
hard_blockers: hardBlockers,
|
|
6765
|
+
proofAssessment: assessment,
|
|
6766
|
+
response
|
|
6767
|
+
})
|
|
6768
|
+
}
|
|
6769
|
+
});
|
|
6770
|
+
}
|
|
6771
|
+
const visualBlocker = proofAssessmentVisualBlocker(proofGateState, assessment);
|
|
6772
|
+
if (visualBlocker) {
|
|
6773
|
+
const recoveryAssessment = visualDeltaEvidenceRecoveryAssessment(proofGateState, assessment, visualBlocker);
|
|
6774
|
+
appendCheckpointResponse(state, response, { summary: visualBlocker });
|
|
6775
|
+
recordEvent(state, {
|
|
6776
|
+
kind: "checkpoint.response.evidence_recovery_required",
|
|
6777
|
+
checkpoint: packet.checkpoint,
|
|
6778
|
+
stage: "verify",
|
|
6779
|
+
summary: visualBlocker,
|
|
6780
|
+
details: compactRecord({
|
|
6781
|
+
evidence_collection_incomplete: true,
|
|
6782
|
+
recovery_stage: "verify",
|
|
6783
|
+
evidence_issue_code: recoveryAssessment.evidence_issue_code || null,
|
|
6784
|
+
visual_delta: recoveryAssessment.visual_delta || null,
|
|
6785
|
+
proof_assessment: recoveryAssessment,
|
|
6786
|
+
checkpoint_response_source: response.source || null
|
|
6787
|
+
})
|
|
6788
|
+
});
|
|
6789
|
+
return { next: { ...base, proof_assessment_json: jsonParam(recoveryAssessment) } };
|
|
6790
|
+
}
|
|
6680
6791
|
appendCheckpointResponse(state, response);
|
|
6681
6792
|
if (state.request.ship_mode !== "ship" && proofAssessmentRequestsShip(assessment)) {
|
|
6682
6793
|
const result = {
|
|
@@ -20286,6 +20397,10 @@ function summarizeRiddleProofPrComment(input) {
|
|
|
20286
20397
|
status: firstStringValue2(result.status, stopCondition.status),
|
|
20287
20398
|
checkpoint_summary: checkpointSummary || result.checkpoint_summary
|
|
20288
20399
|
});
|
|
20400
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
20401
|
+
publicState,
|
|
20402
|
+
firstStringValue2(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation)
|
|
20403
|
+
);
|
|
20289
20404
|
return {
|
|
20290
20405
|
ok,
|
|
20291
20406
|
status: stringValue7(proofResult.status),
|
|
@@ -20303,7 +20418,7 @@ function summarizeRiddleProofPrComment(input) {
|
|
|
20303
20418
|
merge_ready: publicState.merge_ready,
|
|
20304
20419
|
sync_allowed: publicState.sync_allowed,
|
|
20305
20420
|
proof_decision: firstStringValue2(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
|
|
20306
|
-
merge_recommendation:
|
|
20421
|
+
merge_recommendation: mergeRecommendation,
|
|
20307
20422
|
checkpoint_summary: checkpointSummary,
|
|
20308
20423
|
public_state: publicState,
|
|
20309
20424
|
passed_checks: nestedChecks.passed,
|
|
@@ -20571,8 +20686,11 @@ function buildRiddleProofPrCommentMarkdown(input) {
|
|
|
20571
20686
|
slugifyRiddleProofProfileName,
|
|
20572
20687
|
statePathsForRunState,
|
|
20573
20688
|
summarizeCaptureArtifacts,
|
|
20689
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
20690
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
20574
20691
|
summarizeRiddleProofPrComment,
|
|
20575
20692
|
summarizeRiddleProofProfileResult,
|
|
20693
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
20576
20694
|
summarizeRiddleProofPublicState,
|
|
20577
20695
|
visualSessionFingerprint,
|
|
20578
20696
|
visualSessionFingerprintBasis
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlSta
|
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, applyPrLifecycleState, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizePrLifecycleState, normalizeRunParams, setRunStatus } from './state.cjs';
|
|
4
4
|
export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, buildCheckpointPacketForEngineResult, buildProofAssessmentCheckpointPacket, buildStageCheckpointPacket, checkpointPacketIdentity, checkpointResponseIdentity, checkpointSummaryFromState, createCheckpointResponseTemplate, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from './checkpoint.cjs';
|
|
5
5
|
export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from './run-card.cjs';
|
|
6
|
-
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState } from './public-state.cjs';
|
|
6
|
+
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicConsumerSurface, RiddleProofPublicConsumerSurfaceKind, RiddleProofPublicConsumerSurfaceOptions, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState } from './public-state.cjs';
|
|
7
7
|
export { R as RiddleProofRunnerAdapters, a as RunRiddleProofInput, r as runRiddleProof } from './runner-4LJ5z0D-.cjs';
|
|
8
8
|
export { R as RiddleProofAgentAdapter, a as RiddleProofAgentPayload, b as RiddleProofCheckpointMode, c as RiddleProofEngine, d as RiddleProofEngineHarnessConfig, e as RiddleProofEngineHarnessContext, f as RiddleProofEngineResult, g as RiddleProofShipMode, h as RiddleProofWorkflowParams, i as RunRiddleProofEngineHarnessInput, j as createDisabledRiddleProofAgentAdapter, r as readRiddleProofRunStatus, k as runRiddleProofEngineHarness } from './engine-harness-LBfqbFSe.cjs';
|
|
9
9
|
export { CodexExecAgentConfig, CodexJsonRequest, CodexJsonResult, CodexJsonRunner, CodexExecAgentConfig as LocalAgentConfig, CodexJsonRequest as LocalAgentJsonRequest, CodexJsonResult as LocalAgentJsonResult, CodexJsonRunner as LocalAgentJsonRunner, createCodexExecAgentAdapter, createCodexExecJsonRunner, createCodexExecAgentAdapter as createLocalAgentAdapter, createCodexExecJsonRunner as createLocalAgentJsonRunner, runCodexExecAgentDoctor, runCodexExecAgentDoctor as runLocalAgentDoctor } from './codex-exec-agent.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { RiddleProofShipControlState, TerminalMetadataInput, applyShipControlSta
|
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, applyPrLifecycleState, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizePrLifecycleState, normalizeRunParams, setRunStatus } from './state.js';
|
|
4
4
|
export { RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION, RIDDLE_PROOF_CHECKPOINT_RESPONSE_VERSION, authorPacketPayloadFromCheckpointResponse, buildAuthorCheckpointPacket, buildCheckpointPacketForEngineResult, buildProofAssessmentCheckpointPacket, buildStageCheckpointPacket, checkpointPacketIdentity, checkpointResponseIdentity, checkpointSummaryFromState, createCheckpointResponseTemplate, isDuplicateCheckpointResponse, normalizeCheckpointResponse, proofContractFromAuthorCheckpointResponse, statePathsForRunState } from './checkpoint.js';
|
|
5
5
|
export { RIDDLE_PROOF_RUN_CARD_VERSION, createRiddleProofRunCard } from './run-card.js';
|
|
6
|
-
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofPublicState } from './public-state.js';
|
|
6
|
+
export { RiddleProofPublicCheckpointSummary, RiddleProofPublicConsumerSurface, RiddleProofPublicConsumerSurfaceKind, RiddleProofPublicConsumerSurfaceOptions, RiddleProofPublicPolicyState, RiddleProofPublicStateSummary, riddleProofPublicStateAllowsClaim, riddleProofPublicStateAllowsMergeRecommendation, riddleProofPublicStateMergeRecommendation, summarizeRiddleProofAgentSummarySurface, summarizeRiddleProofHostedProofViewSurface, summarizeRiddleProofPublicConsumerSurface, summarizeRiddleProofPublicState } from './public-state.js';
|
|
7
7
|
export { R as RiddleProofRunnerAdapters, a as RunRiddleProofInput, r as runRiddleProof } from './runner-BdQpOkZD.js';
|
|
8
8
|
export { R as RiddleProofAgentAdapter, a as RiddleProofAgentPayload, b as RiddleProofCheckpointMode, c as RiddleProofEngine, d as RiddleProofEngineHarnessConfig, e as RiddleProofEngineHarnessContext, f as RiddleProofEngineResult, g as RiddleProofShipMode, h as RiddleProofWorkflowParams, i as RunRiddleProofEngineHarnessInput, j as createDisabledRiddleProofAgentAdapter, r as readRiddleProofRunStatus, k as runRiddleProofEngineHarness } from './engine-harness-CMACHP6A.js';
|
|
9
9
|
export { CodexExecAgentConfig, CodexJsonRequest, CodexJsonResult, CodexJsonRunner, CodexExecAgentConfig as LocalAgentConfig, CodexJsonRequest as LocalAgentJsonRequest, CodexJsonResult as LocalAgentJsonResult, CodexJsonRunner as LocalAgentJsonRunner, createCodexExecAgentAdapter, createCodexExecJsonRunner, createCodexExecAgentAdapter as createLocalAgentAdapter, createCodexExecJsonRunner as createLocalAgentJsonRunner, runCodexExecAgentDoctor, runCodexExecAgentDoctor as runLocalAgentDoctor } from './codex-exec-agent.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runRiddleProof
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HRY2IHXM.js";
|
|
4
4
|
import "./chunk-6F4PWJZI.js";
|
|
5
5
|
import {
|
|
6
6
|
RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
RIDDLE_PROOF_PR_COMMENT_MARKER,
|
|
60
60
|
buildRiddleProofPrCommentMarkdown,
|
|
61
61
|
summarizeRiddleProofPrComment
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RZ3GXSXQ.js";
|
|
63
63
|
import {
|
|
64
64
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
65
65
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
createDisabledRiddleProofAgentAdapter,
|
|
103
103
|
readRiddleProofRunStatus,
|
|
104
104
|
runRiddleProofEngineHarness
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-P4BHU5NM.js";
|
|
106
106
|
import {
|
|
107
107
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
|
108
108
|
appendRunEvent,
|
|
@@ -114,11 +114,11 @@ import {
|
|
|
114
114
|
normalizePrLifecycleState,
|
|
115
115
|
normalizeRunParams,
|
|
116
116
|
setRunStatus
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-NMQIWBSB.js";
|
|
118
118
|
import {
|
|
119
119
|
RIDDLE_PROOF_RUN_CARD_VERSION,
|
|
120
120
|
createRiddleProofRunCard
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-2OTPBHSM.js";
|
|
122
122
|
import "./chunk-EKZXU6MU.js";
|
|
123
123
|
import {
|
|
124
124
|
RIDDLE_PROOF_CHECKPOINT_PACKET_VERSION,
|
|
@@ -136,13 +136,13 @@ import {
|
|
|
136
136
|
normalizeCheckpointResponse,
|
|
137
137
|
proofContractFromAuthorCheckpointResponse,
|
|
138
138
|
statePathsForRunState
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-ZB5XBHWD.js";
|
|
140
140
|
import "./chunk-JFQXAJH2.js";
|
|
141
141
|
import {
|
|
142
142
|
createCodexExecAgentAdapter,
|
|
143
143
|
createCodexExecJsonRunner,
|
|
144
144
|
runCodexExecAgentDoctor
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-OD6OKXL2.js";
|
|
146
146
|
import {
|
|
147
147
|
applyShipControlState,
|
|
148
148
|
applyTerminalMetadata,
|
|
@@ -157,13 +157,16 @@ import {
|
|
|
157
157
|
publicStateForRunState,
|
|
158
158
|
recordValue,
|
|
159
159
|
shipControlStateFor
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-UK7G4RKA.js";
|
|
161
161
|
import {
|
|
162
162
|
riddleProofPublicStateAllowsClaim,
|
|
163
163
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
164
164
|
riddleProofPublicStateMergeRecommendation,
|
|
165
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
166
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
167
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
165
168
|
summarizeRiddleProofPublicState
|
|
166
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-6PSM6KB2.js";
|
|
167
170
|
import "./chunk-MLKGABMK.js";
|
|
168
171
|
export {
|
|
169
172
|
BASIC_GAMEPLAY_ACTION_TYPES,
|
|
@@ -297,8 +300,11 @@ export {
|
|
|
297
300
|
slugifyRiddleProofProfileName,
|
|
298
301
|
statePathsForRunState,
|
|
299
302
|
summarizeCaptureArtifacts,
|
|
303
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
304
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
300
305
|
summarizeRiddleProofPrComment,
|
|
301
306
|
summarizeRiddleProofProfileResult,
|
|
307
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
302
308
|
summarizeRiddleProofPublicState,
|
|
303
309
|
visualSessionFingerprint,
|
|
304
310
|
visualSessionFingerprintBasis
|
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-OD6OKXL2.js";
|
|
7
|
+
import "./chunk-UK7G4RKA.js";
|
|
8
|
+
import "./chunk-6PSM6KB2.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-WKNWMRDF.js";
|
|
7
|
+
import "./chunk-NMQIWBSB.js";
|
|
8
|
+
import "./chunk-2OTPBHSM.js";
|
|
9
|
+
import "./chunk-ZB5XBHWD.js";
|
|
10
|
+
import "./chunk-UK7G4RKA.js";
|
|
11
|
+
import "./chunk-6PSM6KB2.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
13
13
|
export {
|
|
14
14
|
openClawIntegrationContext,
|
package/dist/pr-comment.cjs
CHANGED
|
@@ -33,6 +33,9 @@ function riddleProofPublicStateAllowsClaim(summary, claim) {
|
|
|
33
33
|
function riddleProofPublicStateAllowsMergeRecommendation(summary) {
|
|
34
34
|
return riddleProofPublicStateAllowsClaim(summary, "merge_ready") && riddleProofPublicStateAllowsClaim(summary, "sync_allowed");
|
|
35
35
|
}
|
|
36
|
+
function riddleProofPublicStateMergeRecommendation(summary, recommendation) {
|
|
37
|
+
return recommendation && riddleProofPublicStateAllowsMergeRecommendation(summary) ? recommendation : void 0;
|
|
38
|
+
}
|
|
36
39
|
function asRecord(value) {
|
|
37
40
|
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
38
41
|
}
|
|
@@ -334,6 +337,10 @@ function summarizeRiddleProofPrComment(input) {
|
|
|
334
337
|
status: firstStringValue2(result.status, stopCondition.status),
|
|
335
338
|
checkpoint_summary: checkpointSummary || result.checkpoint_summary
|
|
336
339
|
});
|
|
340
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
341
|
+
publicState,
|
|
342
|
+
firstStringValue2(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation)
|
|
343
|
+
);
|
|
337
344
|
return {
|
|
338
345
|
ok,
|
|
339
346
|
status: stringValue2(proofResult.status),
|
|
@@ -351,7 +358,7 @@ function summarizeRiddleProofPrComment(input) {
|
|
|
351
358
|
merge_ready: publicState.merge_ready,
|
|
352
359
|
sync_allowed: publicState.sync_allowed,
|
|
353
360
|
proof_decision: firstStringValue2(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
|
|
354
|
-
merge_recommendation:
|
|
361
|
+
merge_recommendation: mergeRecommendation,
|
|
355
362
|
checkpoint_summary: checkpointSummary,
|
|
356
363
|
public_state: publicState,
|
|
357
364
|
passed_checks: nestedChecks.passed,
|
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-RZ3GXSXQ.js";
|
|
6
|
+
import "./chunk-6PSM6KB2.js";
|
|
7
7
|
import "./chunk-MLKGABMK.js";
|
|
8
8
|
export {
|
|
9
9
|
RIDDLE_PROOF_PR_COMMENT_MARKER,
|
package/dist/public-state.cjs
CHANGED
|
@@ -23,6 +23,9 @@ __export(public_state_exports, {
|
|
|
23
23
|
riddleProofPublicStateAllowsClaim: () => riddleProofPublicStateAllowsClaim,
|
|
24
24
|
riddleProofPublicStateAllowsMergeRecommendation: () => riddleProofPublicStateAllowsMergeRecommendation,
|
|
25
25
|
riddleProofPublicStateMergeRecommendation: () => riddleProofPublicStateMergeRecommendation,
|
|
26
|
+
summarizeRiddleProofAgentSummarySurface: () => summarizeRiddleProofAgentSummarySurface,
|
|
27
|
+
summarizeRiddleProofHostedProofViewSurface: () => summarizeRiddleProofHostedProofViewSurface,
|
|
28
|
+
summarizeRiddleProofPublicConsumerSurface: () => summarizeRiddleProofPublicConsumerSurface,
|
|
26
29
|
summarizeRiddleProofPublicState: () => summarizeRiddleProofPublicState
|
|
27
30
|
});
|
|
28
31
|
module.exports = __toCommonJS(public_state_exports);
|
|
@@ -185,10 +188,75 @@ function summarizeRiddleProofPublicState(input) {
|
|
|
185
188
|
prohibited_claims: uniqueStrings(prohibitedClaims)
|
|
186
189
|
};
|
|
187
190
|
}
|
|
191
|
+
function summarizeRiddleProofPublicConsumerSurface(input, options = {}) {
|
|
192
|
+
const record = asRecord(input);
|
|
193
|
+
const runCard = asRecord(record.run_card);
|
|
194
|
+
const stopCondition = asRecord(runCard.stop_condition);
|
|
195
|
+
const raw = asRecord(record.raw);
|
|
196
|
+
const publicState = summarizeRiddleProofPublicState(input);
|
|
197
|
+
const checkpointAudit = publicState.checkpoint_summary;
|
|
198
|
+
const mergeRecommendation = riddleProofPublicStateMergeRecommendation(
|
|
199
|
+
publicState,
|
|
200
|
+
firstStringValue(
|
|
201
|
+
options.merge_recommendation,
|
|
202
|
+
record.merge_recommendation,
|
|
203
|
+
stopCondition.merge_recommendation,
|
|
204
|
+
raw.merge_recommendation
|
|
205
|
+
)
|
|
206
|
+
);
|
|
207
|
+
const checkpointAuditRequired = publicState.required_disclosures.includes("checkpoint_audit_counters");
|
|
208
|
+
return {
|
|
209
|
+
kind: options.kind || "run_result",
|
|
210
|
+
status: publicState.status,
|
|
211
|
+
result_label: publicState.result_label,
|
|
212
|
+
policy_state: publicState.policy_state,
|
|
213
|
+
proof_complete: publicState.proof_complete,
|
|
214
|
+
claims: {
|
|
215
|
+
proof_passed: publicState.proof_passed,
|
|
216
|
+
ship_authorized: publicState.ship_authorized,
|
|
217
|
+
merge_ready: publicState.merge_ready,
|
|
218
|
+
sync_allowed: publicState.sync_allowed,
|
|
219
|
+
all_checkpoint_responses_accepted: checkpointAudit ? !checkpointAudit.audit_disclosure_required : false
|
|
220
|
+
},
|
|
221
|
+
ship_control: {
|
|
222
|
+
ship_held: publicState.ship_held,
|
|
223
|
+
shipping_disabled: publicState.shipping_disabled,
|
|
224
|
+
ship_authorized: publicState.ship_authorized
|
|
225
|
+
},
|
|
226
|
+
handoff: {
|
|
227
|
+
merge_ready: publicState.merge_ready,
|
|
228
|
+
sync_allowed: publicState.sync_allowed,
|
|
229
|
+
merge_recommendation: mergeRecommendation
|
|
230
|
+
},
|
|
231
|
+
checkpoint_audit: checkpointAudit,
|
|
232
|
+
disclosures: {
|
|
233
|
+
ship_control: true,
|
|
234
|
+
checkpoint_audit: !checkpointAuditRequired || Boolean(checkpointAudit),
|
|
235
|
+
required: [...publicState.required_disclosures],
|
|
236
|
+
prohibited_claims: [...publicState.prohibited_claims]
|
|
237
|
+
},
|
|
238
|
+
public_state: publicState
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
function summarizeRiddleProofHostedProofViewSurface(input, options = {}) {
|
|
242
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
243
|
+
...options,
|
|
244
|
+
kind: "hosted_proof_view"
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
function summarizeRiddleProofAgentSummarySurface(input, options = {}) {
|
|
248
|
+
return summarizeRiddleProofPublicConsumerSurface(input, {
|
|
249
|
+
...options,
|
|
250
|
+
kind: "agent_summary"
|
|
251
|
+
});
|
|
252
|
+
}
|
|
188
253
|
// Annotate the CommonJS export names for ESM import in node:
|
|
189
254
|
0 && (module.exports = {
|
|
190
255
|
riddleProofPublicStateAllowsClaim,
|
|
191
256
|
riddleProofPublicStateAllowsMergeRecommendation,
|
|
192
257
|
riddleProofPublicStateMergeRecommendation,
|
|
258
|
+
summarizeRiddleProofAgentSummarySurface,
|
|
259
|
+
summarizeRiddleProofHostedProofViewSurface,
|
|
260
|
+
summarizeRiddleProofPublicConsumerSurface,
|
|
193
261
|
summarizeRiddleProofPublicState
|
|
194
262
|
});
|