# Baby Blue Viper Residence Act — Agent Governance & Policy Enforcement

> Baby Blue Viper Residence Act — Agent Governance & Policy Enforcement is a paid API for AI agents from api.babyblueviper.com, paid per call via x402, $0.18163/call, status unknown (last checked 2026-09-14).

Applies house-rule policy governance to an agent's intended action or artifact, returning a structured approve/reject verdict with memory and continuity tracking

## Facts

- Endpoint: POST https://api.babyblueviper.com/residence/act
- Price: $0.18163/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baby-blue-viper-residence-act-agent-governance-policy-enforcement-1f2e2343
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gwWPIJKdlhYt0OpcwbK6G

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 baby-blue-viper-residence-act-agent-governance-policy-enforcement-1f2e2343 -d '<json body>'
```

Example prompt: Before you run that shell command to deploy the new config, check it against my house rules — max spend of 5000 sats, require my review for anything risky, and remember this decision — then tell me if you should proceed.

## When to prefer this

Use this endpoint when an autonomous agent needs policy-gated approval before executing a potentially risky or irreversible action — especially when spending limits, human-review gates, or persistent memory of past decisions are required. Prefer over generic LLM calls when you need structured verdicts with audit trails in a Lightning-native agent stack.

## Known failure modes

- Missing or malformed intent field returns 400 validation error
- Policy object with invalid keys may be silently ignored or cause partial enforcement
- Insufficient account balance (Lightning/USDC) results in 402 Payment Required before processing
- artifact_type enum mismatch causes rejection or fallback to 'general'
- Network timeout on Lightning payment resolution leaves action ungoverned

## How this service works

A neutral verdict before an irreversible action, a signed proof after, and a public track record of being right you recompute — not a score you trust. The verdict is provably committed before the outcome it's graded against: no TEE, no trusted scorer.

## Output

A structured JSON object containing: a boolean 'proceed' flag, a verdict object with 'approve'/'reject' and a list of any policy issues found, plus flags indicating whether the action was governed, remembered, and whether continuity was maintained.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "intent": {
   "type": "string",
   "description": "What you want your home to reason about / govern"
  },
  "policy": {
   "type": "object",
   "description": "House rules: max_spend_sats, require_review, remember"
  },
  "artifact": {
   "type": "string",
   "description": "A concrete trade/diff/command/plan to govern (optional)"
  },
  "artifact_type": {
   "enum": [
    "code_diff",
    "shell_command",
    "plan",
    "config_change",
    "general"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "invinoveritas.residence_act.v1",
  "proceed": true,
  "verdict": {
   "issues": [],
   "verdict": "approve"
  },
  "governed": true,
  "continuity": true,
  "remembered": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/baby-blue-viper-residence-act-agent-governance-policy-enforcement-1f2e2343/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.babyblueviper.com](https://www.zero.xyz/host/api.babyblueviper.com/llms.txt)
