@riddledc/riddle-proof 0.8.7 → 0.8.9
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.cjs +75 -10
- package/dist/adapters/codex-exec-agent.js +1 -1
- package/dist/adapters/codex.cjs +75 -10
- package/dist/adapters/codex.js +1 -1
- package/dist/adapters/local-agent.cjs +75 -10
- package/dist/adapters/local-agent.js +1 -1
- package/dist/{chunk-PYCQNK66.js → chunk-EEIYUZXE.js} +75 -10
- package/dist/{chunk-V6VZ3CAI.js → chunk-RTWGGKS3.js} +1 -1
- package/dist/cli/index.js +2 -2
- package/dist/cli.cjs +75 -10
- package/dist/cli.js +2 -2
- package/dist/codex-exec-agent.cjs +75 -10
- package/dist/codex-exec-agent.js +1 -1
- package/dist/index.cjs +75 -10
- package/dist/index.js +1 -1
- package/dist/local-agent.cjs +75 -10
- package/dist/local-agent.js +1 -1
- package/package.json +1 -1
- package/runtime/lib/verify.py +204 -5
- package/runtime/tests/recon_verify_smoke.py +19 -12
|
@@ -2591,7 +2591,7 @@ def run_verify_interaction_hash_terminal_route_from_proof_evidence():
|
|
|
2591
2591
|
shutil.rmtree(tempdir, ignore_errors=True)
|
|
2592
2592
|
|
|
2593
2593
|
|
|
2594
|
-
def
|
|
2594
|
+
def run_verify_interaction_authored_query_hash_mismatch_blocks_with_evidence():
|
|
2595
2595
|
tempdir = Path(tempfile.mkdtemp(prefix='riddle-proof-interaction-query-hash-mismatch-'))
|
|
2596
2596
|
state_path = tempdir / 'state.json'
|
|
2597
2597
|
try:
|
|
@@ -2630,17 +2630,24 @@ def run_verify_interaction_authored_query_hash_mismatch_returns_author():
|
|
|
2630
2630
|
after_verify = json.loads(state_path.read_text())
|
|
2631
2631
|
|
|
2632
2632
|
request = after_verify['verify_decision_request']
|
|
2633
|
-
|
|
2634
|
-
assert after_verify['
|
|
2633
|
+
assert after_verify['verify_status'] == 'evidence_captured'
|
|
2634
|
+
assert after_verify['merge_recommendation'] == 'do-not-merge'
|
|
2635
2635
|
assert after_verify['route_expectation']['expected_query'] == 'rp_probe=1'
|
|
2636
2636
|
assert after_verify['route_expectation']['expected_hash'] == '#pricing-probe'
|
|
2637
|
-
assert
|
|
2638
|
-
assert request['
|
|
2639
|
-
assert
|
|
2640
|
-
assert
|
|
2641
|
-
assert
|
|
2642
|
-
assert 'page.waitForURL: Timeout 15000ms exceeded' in
|
|
2643
|
-
|
|
2637
|
+
assert 'capture_quality' not in request
|
|
2638
|
+
assert request['recommended_stage'] is None
|
|
2639
|
+
assert request['continue_with_stage'] is None
|
|
2640
|
+
assert 'failed assertions' in request['summary']
|
|
2641
|
+
assert 'checks.routeMatches' in request['structured_interaction_failure_summary']
|
|
2642
|
+
assert 'page.waitForURL: Timeout 15000ms exceeded' in request['structured_interaction_failure_summary']
|
|
2643
|
+
assessment_request = after_verify['proof_assessment_request']
|
|
2644
|
+
assert 'structured-interaction-failure' in assessment_request['evidence_basis']
|
|
2645
|
+
assert any('checks.routeMatches' in blocker for blocker in assessment_request['hard_blockers'])
|
|
2646
|
+
assert assessment_request['semantic_context']['route']['expected_terminal_query'] == 'rp_probe=1'
|
|
2647
|
+
assert assessment_request['semantic_context']['route']['expected_terminal_hash'] == '#pricing-probe'
|
|
2648
|
+
assert assessment_request['semantic_context']['route']['after_observed_path'] == '/pricing'
|
|
2649
|
+
assert assessment_request['semantic_context']['route']['after_observed_query'] == ''
|
|
2650
|
+
assert assessment_request['semantic_context']['route']['after_observed_hash'] == ''
|
|
2644
2651
|
supporting = after_verify['verify_results']['after']['supporting_artifacts']
|
|
2645
2652
|
assert supporting['proof_evidence_present'] is True
|
|
2646
2653
|
assert supporting['has_structured_payload'] is True
|
|
@@ -2655,7 +2662,7 @@ def run_verify_interaction_authored_query_hash_mismatch_returns_author():
|
|
|
2655
2662
|
assert 'page.waitForURL: Timeout 15000ms exceeded' in synthetic_evidence['capture_error']
|
|
2656
2663
|
return {
|
|
2657
2664
|
'ok': True,
|
|
2658
|
-
'summary':
|
|
2665
|
+
'summary': request['summary'],
|
|
2659
2666
|
'recommended_stage': request['recommended_stage'],
|
|
2660
2667
|
}
|
|
2661
2668
|
finally:
|
|
@@ -3082,7 +3089,7 @@ if __name__ == '__main__':
|
|
|
3082
3089
|
'verify_interaction_terminal_route_from_proof_evidence': run_verify_interaction_terminal_route_from_proof_evidence(),
|
|
3083
3090
|
'verify_interaction_reverse_terminal_route_from_proof_evidence': run_verify_interaction_reverse_terminal_route_from_proof_evidence(),
|
|
3084
3091
|
'verify_interaction_hash_terminal_route_from_proof_evidence': run_verify_interaction_hash_terminal_route_from_proof_evidence(),
|
|
3085
|
-
'
|
|
3092
|
+
'verify_interaction_authored_query_hash_mismatch_blocks_with_evidence': run_verify_interaction_authored_query_hash_mismatch_blocks_with_evidence(),
|
|
3086
3093
|
'verify_capture_retry_surfaces_script_timeout': run_verify_capture_retry_surfaces_script_timeout(),
|
|
3087
3094
|
'missing_baseline_guard': run_verify_missing_baseline(),
|
|
3088
3095
|
'ship_supervisor_gate': run_ship_missing_supervisor_gate(),
|