{
  "standard": ".agent-budget",
  "version": "1.0",
  "status": "proposed",
  "description": "Agent payment authorization standard — tells an agent how much it may spend, per call, per task, per day, and when it must confirm. Formalizes the 6-dimension model (aligned with AIsa autonomous-purchasing requirements and the 402 challenge contract).",
  "dimensions": {
    "max_per_call_usdc": { "type": "number", "description": "Single-call cap. The 402 challenge advertises amount; agent refuses if amount > this." },
    "per_task_limit_usdc": { "type": "number", "description": "Task-scoped spend cap (cumulative across calls of one task), reset on new task." },
    "daily_limit_usdc": { "type": "number", "description": "Rolling 24h spend cap." },
    "confirmation_threshold_usdc": { "type": "number", "description": "If a call amount exceeds this, the agent must get human/secondary confirmation before paying. This dimension is enforced by the agent framework, not by minia2a. Independently, minia2a sets confirmationRequired:true on every 402 challenge priced at or above $50 (5000 cents); a lower agent-side threshold is the agent own to enforce." },
    "duplicate_charge_handling": { "type": "string", "enum": ["receipt_binding", "replay_lock", "idempotency_key"], "description": "How double-charge is prevented. minia2a uses replay_lock + IsAlreadyCommitted + unique receipt ref." },
    "settlement_check": { "type": "string", "enum": ["pre_delivery_commit", "onchain_receipt"], "description": "How settlement is verified. minia2a commits before delivery and verifies on-chain transfer." }
  },
  "example": {
    "agent": "my-agent",
    "max_per_call_usdc": 2.0,
    "per_task_limit_usdc": 20.0,
    "daily_limit_usdc": 100.0,
    "confirmation_threshold_usdc": 10.0,
    "duplicate_charge_handling": "replay_lock",
    "settlement_check": "pre_delivery_commit"
  },
  "enforced_by": "agent_framework"
}
