SecondLook provides an independent pre-action review of a proposed AI or agent action
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.
50000 (raw units)
price
3
calls / 30d
3
unique payers
2026-09-13
updated
Provider
secondlook.edgecasesystems.workers.dev · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xc077a55e71a43ad002fbac7bf91d48e9866e5727",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "50000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"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": {
"example": {
"created_at": "2026-08-29T00:00:00.000Z",
"decision_id": "00000000-0000-4000-8000-000000000000",
"key_risks": [],
"missing_information": [],
"model": "implementation-managed",
"policy_version": "2026-08-27.5",
"reason": "The supplied authority, facts, and constraint support the proposed refund.",
"recommendation": "proceed",
"review_status": "no_material_concern_found"
},
"type": "json"
}
},
"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"
}
}
}Use it
curl
curl "https://secondlook.edgecasesystems.workers.dev/v1/paid/second-look" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://secondlook.edgecasesystems.workers.dev/v1/paid/second-look");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://secondlook.edgecasesystems.workers.dev/v1/paid/second-look")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8041.json, and this resource appears in /discovery/resources and /discovery/search.