vc_agent_state_guard
Prevents duplicate, stale, or invalid external actions by checking invariants and state before spending money or writing outside the agent sandbox. Returns a clear GO/NO-GO decision.
Instructions
Preflight financial or external-write actions for duplicates, stale state, or unmet invariants.
Use before spending money or writing outside the agent sandbox. Do not use for generic search — use vc_web_search. Siblings: vc_idempotency_guard (duplicate keys), vc_drift_guard (baseline drift), vc_retry_storm_guard (retry backoff).
Auth: X-Vibes-Key or x402 (~$0.02). Advisory only; no local writes. Returns GO/NO-GO style JSON with reasons, or payment_required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Current agent/business state snapshot. | |
| action | Yes | Proposed action label (e.g. transfer, write_external, publish). | |
| invariants | No | Optional invariant strings that must still hold. | |
| payment_signature | No | Optional x402 PAYMENT-SIGNATURE if not using X-Vibes-Key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |