Role policy
Exact defaults are
us.anthropic.claude-haiku-4-5-20251001-v1:0, us.amazon.nova-2-lite-v1:0, and us.anthropic.claude-sonnet-4-6. agent/harmonia_agent/role_models.py defines per-role sampling and token limits. Configured targets fail visibly when unavailable; no provider fallback exists.
Reservation and usage lifecycle
The host estimates the operation’s maximum cost, reserves its budget atomically, calls the provider, and records usage or an unresolved outcome. Stable operation identities connect reservations, model usage, execution receipts and verification. A retry may reuse durable accounting but does not automatically authorize another provider call. Unknown external outcomes require reconciliation. Text pricing comes fromBEDROCK_TEXT_PRICING_JSON, keyed by exact model ID with positive input and output USD-per-million-token rates. The version is aws-configured-2026-09-10. Missing prices fail admission; they are not zero-cost operations. Operators must supply rates applicable to their model, region and account. Configured estimates are not a claim about actual billed charges.
HARMONIA_ALLOW_PAID_AWS defaults false. Media generation additionally requires GENERATIVE_MEDIA_ENABLED; music needs a server-side ElevenLabs key. Neither enabling flag proves provider readiness or grants approval for an output operation.
