# StealthMark AST Blast Radius Analyzer

> StealthMark AST Blast Radius Analyzer is a paid API for AI agents from gateway.stealthmark.io, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-19).

Analyzes source code patches to compute the call-graph blast radius of modified symbols, identifying one-hop and two-hop callers/callees and generating a patch gap security report.

## Facts

- Endpoint: POST https://gateway.stealthmark.io/x402/verify-ast-blast-radius?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stealthmark-ast-blast-radius-analyzer-9a179e07
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_soq_fx-nh_OTNe4fOyi1F

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 stealthmark-ast-blast-radius-analyzer-9a179e07 -d '<json body>'
```

Example prompt: Can you analyze the blast radius of this patch to our Python vault contract — here's the unified diff — and tell me which functions are one-hop and two-hop callers of the modified symbols, plus a patch gap report?

## When to prefer this

Choose this endpoint when you need to quantify the propagation impact of a code change across a Python or smart contract codebase — especially for security-critical patches on ERC-4626 vaults, ZK circuits, or DeFi protocols. It is superior to manual code review for systematically identifying uncovered callers and assessing patch completeness. Best suited when you have a unified diff and want both a numeric blast radius score and a structured gap report.

## Known failure modes

- Malformed or unparseable source code returns an error or empty call graph
- Missing required fields (source_code or modified_symbols) may result in incomplete analysis
- Very large codebases may time out or return partial results
- Graph data in incorrect format causes deserialization errors
- Patch text that doesn't correspond to the provided source code yields inaccurate gap reports
- Payment failure on x402 returns 402 before analysis begins

## How this service works

Autonomous Z3 Formal Invariant Prover (ERC-4626 Vaults, Polymarket Baskets, ZK Circuits, Differential Consensus) &amp; 100-Point Perimeter Security Gateway on Base Mainnet (x402 v2).

## Output

Returns a JSON object containing: a boolean verified status, lists of one-hop and two-hop callers and callees of modified symbols, the list of modified symbols identified, a blast radius score (integer), and a patch gap report (object or null) highlighting call paths not covered by the patch.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fork_code": {
   "type": "string",
   "description": "Fork repository source code"
  },
  "graph_data": {
   "type": "object",
   "description": "NetworkX/Graphify node-link format graph data"
  },
  "patch_text": {
   "type": "string",
   "description": "Unified git diff of the patch"
  },
  "source_code": {
   "type": "string",
   "description": "Python source code to extract call-graph from"
  },
  "modified_symbols": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Explicit list of modified symbol names"
  },
  "upstream_patch_spec": {
   "type": "object",
   "description": "Upstream security patch specification"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "verified": {
   "type": "boolean"
  },
  "one_hop_callees": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "one_hop_callers": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "two_hop_callees": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "two_hop_callers": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "modified_symbols": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "patch_gap_report": {
   "type": [
    "object",
    "null"
   ]
  },
  "blast_radius_score": {
   "type": "integer"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stealthmark-ast-blast-radius-analyzer-9a179e07/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.stealthmark.io](https://www.zero.xyz/host/gateway.stealthmark.io/llms.txt)
