# Bounty Engineer Delegated Agent Scope Gate

> Bounty Engineer Delegated Agent Scope Gate is a paid API for AI agents from bounty-engineer-x402-prod.onrender.com, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-11).

Validates whether an autonomous agent's proposed action falls within the bounds of a pre-issued delegation mandate before allowing execution.

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/delegated-agent-scope-gate?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bounty-engineer-delegated-agent-scope-gate-5d4eec16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UsNbfAPT_OkSWTcO1owrE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bounty-engineer-delegated-agent-scope-gate-5d4eec16 -d '<json body>'
```

Example prompt: Before my agent 'agent-007' calls the 'fetch_webpage' tool targeting 'https://example.com', check whether that action is within its active mandate — the mandate allows tools ['fetch_webpage','search'], origins ['https://example.com'], up to $1.00 USD, issued today and expiring in 24 hours.

## When to prefer this

Use this endpoint when you need a lightweight, fast policy pre-check before an autonomous agent executes a sensitive tool call, payment, or external API request — especially when you want to enforce scope boundaries defined in a delegation mandate (allowed tools, origins, spend caps) before committing to execution. It is not a substitute for cryptographic signature verification or a trusted identity provider, but it is a useful first-pass gate in an agentic pipeline to catch out-of-scope actions early and generate an audit trail via SHA256 hashes.

## Known failure modes

- Missing required mandate fields (agent_id, allowed_tools, allowed_origins, issued_at, expires_at, max_spend_usd) cause validation failure
- Action destination_url not in allowed_origins returns policy_match: false
- Tool not in allowed_tools list returns policy_match: false
- Expired mandate (expires_at in the past) fails scope check
- Amount exceeding max_spend_usd triggers policy violation
- authoritative_authorization always false — endpoint explicitly warns it cannot substitute for cryptographic or identity-provider verification
- Malformed JSON body returns HTTP error
- Payment failure (insufficient USDC balance) blocks the call entirely

## How this service works

Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.

## Output

Returns a JSON object indicating whether the agent's proposed action matches its delegation mandate policy (policy_match boolean), whether owner identity was verified (owner_identity_verified), whether cryptographic signatures were verified, a recommendation string (e.g. 'policy_only_allow_if_separately_authenticated'), SHA256 hashes of both the action and the mandate policy for audit purposes, a checked_at timestamp, and a prominent warning that caller-declared rules alone do not constitute authoritative authorization without separate identity verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "mandate",
      "action"
     ],
     "properties": {
      "action": {
       "type": "object",
       "required": [
        "agent_id",
        "tool",
        "destination_url"
       ],
       "properties": {
        "tool": {
         "type": "string"
        },
        "agent_id": {
         "type": "string"
        },
        "amount_usd": {
         "type": "number"
        },
        "evaluated_at": {
         "type": "string"
        },
        "destination_url": {
         "type": "string"
        }
       }
      },
      "mandate": {
       "type": "object",
       "required": [
        "agent_id",
        "allowed_tools",
        "allowed_origins",
        "issued_at",
        "expires_at",
        "max_spend_usd"
       ]
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "mode"
     ],
     "properties": {
      "ok": {
       "type": "boolean",
       "const": true
      },
      "mode": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "mode": "delegated-agent-scope-gate",
  "reasons": [],
  "warning": "Caller-declared rules alone do not prove a valid delegation. An authenticated owner mandate, signature or trusted identity provider must be verified independently before execution.",
  "checked_at": "2026-10-10T00:00:00Z",
  "policy_match": true,
  "action_sha256": "5954033fd2485a94598df95ff3eae01f4fb1cded549f8560a89b00629e65737c",
  "recommendation": "policy_only_allow_if_separately_authenticated",
  "mandate_policy_sha256": "91611c0ba58b043c06ef00e6c44b0d20d1dd5546030e212bed2b80fa32e9d67b",
  "owner_identity_verified": false,
  "authoritative_authorization": false,
  "subsequent_payment_executed": false,
  "cryptographic_signature_verified": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bounty-engineer-delegated-agent-scope-gate-5d4eec16/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bounty-engineer-x402-prod.onrender.com](https://www.zero.xyz/host/bounty-engineer-x402-prod.onrender.com/llms.txt)
