{"slug":"secondlook-edgecasesystems-workers-dev-v1-paid-second-look-fb9dce","title":"SecondLook provides an independent pre-action review of a proposed AI or agent a","host":"secondlook.edgecasesystems.workers.dev","method":"POST","resource":"https://secondlook.edgecasesystems.workers.dev/v1/paid/second-look","category":"code","description":"SecondLook provides an independent pre-action review of a proposed AI or agent action. It checks supplied facts, authority, constraints, reasoning, risks, and missing information before execution. Use it when an action is costly, external, irreversible, or constraint-sensitive. SecondLook does not a","price_listed":0.05,"price_asked":0.05,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":952,"reported_calls_30d":3,"reported_payers_30d":3,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"authority":{"basis":"Support policy permits refunds up to $50.","status":"confirmed"},"goal":"Review a proposed customer refund before execution.","hard_constraints":["Do not exceed the documented $50 refund limit."],"known_facts":["The customer was charged twice."],"proposed_action":"Issue a $25 refund to the customer."},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"allOf":[{"not":{"properties":{"hard_constraints":{"minItems":1}},"required":["constraint_context","hard_constraints"]}},{"not":{"properties":{"important_constraints":{"minItems":1}},"required":["constraint_context","important_constraints"]}}],"description":"Structural JSON Schema plus the expressible cross-field rules. The x-secondlook-semantic-validation extension lists additional deterministic runtime invariants required for acceptance.","properties":{"alternatives_considered":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"},"authority":{"additionalProperties":false,"properties":{"basis":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"limits":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"},"status":{"enum":["confirmed","unclear","unknown"],"type":"string"}},"required":["status"],"type":"object"},"constraint_context":{"additionalProperties":false,"properties":{"conflict_groups":{"items":{"additionalProperties":false,"properties":{"constraint_ids":{"items":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"maxItems":10,"minItems":2,"type":"array","uniqueItems":true},"control":{"oneOf":[{"additionalProperties":false,"properties":{"controlling_constraint_id":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"status":{"const":"established"}},"required":["status","controlling_constraint_id"],"type":"object"},{"additionalProperties":false,"properties":{"status":{"const":"unresolved"}},"required":["status"],"type":"object"}]},"id":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"independently_binding_constraint_ids":{"items":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"maxItems":10,"type":"array","uniqueItems":true}},"required":["id","constraint_ids","control"],"type":"object"},"maxItems":12,"type":"array","uniqueItems":true},"constraints":{"items":{"additionalProperties":false,"allOf":[{"if":{"properties":{"applicability":{"const":"inapplicable"}},"required":["applicability"]},"then":{"properties":{"action_relation":{"const":"not_applicable"}}}},{"if":{"properties":{"applicability":{"enum":["applicable","unresolved"]}},"required":["applicability"]},"then":{"properties":{"action_relation":{"enum":["satisfies","violates","unresolved"]}}}}],"properties":{"action_relation":{"enum":["satisfies","violates","unresolved","not_applicable"]},"applicability":{"enum":["applicable","inapplicable","unresolved"]},"id":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"text":{"maxLength":1000,"minLength":1,"pattern":"\\S","type":"string"}},"required":["id","text","applicability","action_relation"],"type":"object"},"maxItems":25,"minItems":1,"type":"array","uniqueItems":true},"schema_version":{"const":"constraint-context-v1"}},"required":["schema_version","constraints"],"type":"object"},"estimated_cost_of_action":{"additionalProperties":false,"properties":{"amount":{"maximum":1000000000000000,"minimum":0,"type":"number"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"}},"required":["amount","currency"],"type":"object"},"goal":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"hard_constraints":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"},"important_constraints":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"},"known_facts":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"},"proposed_action":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"reasoning_summary":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"soft_preferences":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"},"uncertainties":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"},"unknown_facts":{"items":{"maxLength":4000,"minLength":1,"pattern":"\\S","type":"string"},"maxItems":25,"type":"array"}},"required":["goal","proposed_action"],"type":"object","x-secondlook-semantic-validation":{"additional_runtime_validation_required":true,"failure":{"error_codes":["invalid_secondlook_request","invalid_constraint_context"],"http_status":400},"invariants":[{"id":"aggregate_request_text","rule":"Aggregate request text across all request fields must be at most 24,000 JavaScript string code units."},{"id":"aggregate_constraint_text","rule":"Aggregate constraint_context constraint text must be at most 12,000 JavaScript string code units."},{"id":"unique_constraint_ids","rule":"Each constraint id must be unique across constraint_context.constraints, even when the surrounding objects differ."},{"id":"unique_conflict_group_ids","rule":"Each conflict-group id must be unique across constraint_context.conflict_groups, even when the surrounding objects differ."},{"id":"conflict_group_references","rule":"Every conflict-group constraint id must reference an existing constraint whose applicability is not inapplicable."},{"id":"single_conflict_group_membership","rule":"A constraint may appear in at most one conflict group."},{"id":"established_controller","rule":"An established controlling_constraint_id must identify an applicable member of that conflict group."},{"id":"independently_binding_members","rule":"independently_binding_constraint_ids must be unique members of the same group and must not include its established controller."}],"runtime_is_authoritative":true}},"bodyType":{"const":"json"},"method":{"const":"POST"},"type":{"const":"http"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"additionalProperties":false,"properties":{"example":{"additionalProperties":false,"properties":{"created_at":{"format":"date-time","type":"string"},"decision_id":{"format":"uuid","type":"string"},"key_risks":{"items":{"type":"string"},"type":"array"},"missing_information":{"items":{"type":"string"},"type":"array"},"model":{"description":"Deprecated compatibility field; the underlying inference implementation is not a stable product contract.","type":"string"},"policy_version":{"type":"string"},"reason":{"type":"string"},"recommendation":{"enum":["proceed","reconsider","need_more_information","escalate_to_human"],"type":"string"},"review_status":{"enum":["no_material_concern_found","material_concern_found","insufficient_information","human_review_required"],"type":"string"}},"required":["decision_id","created_at","policy_version","model","review_status","recommendation","reason","key_risks","missing_information"],"type":"object"},"type":{"const":"json"}},"required":["type","example"],"type":"object"}},"required":["input","output"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.05,"price_match":true,"latency_ms":952,"error":null}],"description_full":"SecondLook provides an independent pre-action review of a proposed AI or agent action. It checks supplied facts, authority, constraints, reasoning, risks, and missing information before execution. Use it when an action is costly, external, irreversible, or constraint-sensitive. SecondLook does not authorize, execute, or supply missing authority, and results are not guarantees of correctness.","last_updated":"2026-09-13T18:48:32.226Z","schemes":["exact"]}