The executor runs on five safety primitives. Each one below names what it covers.
The five primitives
- Kill switch — operator-owned flag on stores.config, off by default. When you flip it on, the catalog, ads, customer-service, promotions, feed, reputation and social agents stop writing and spending; read-only ingestion, reporting, and alerting keep going.
- Per-action rate limits — cap writes per action type and per store, over a day or a week depending on the action.
- Tier-A discount gate — an underperformer gets a discount_test only with verified (Tier A) cost data and a margin above the floor. A competitor repricing skips the tier check, but every discount test still skips a variant with no cost and refuses a price below 1.8× its cost.
- LLM budget cap — a monthly per-store ceiling on model spend, enforced against month-to-date usage.
- Advisory locks — Postgres advisory locks serialize work on the same store so two cycles never collide.
The tunable flag
{
"anthropic_monthly_cap_usd": null,
"anthropic_daily_cap_usd": null
}Each store has a monthly model-usage cap, enforced against month-to-date usage. Left unset (null), it is the larger of a platform floor and your plan's allowance, which rises with each tier; a daily sub-cap keeps one busy day from spending the month. When a store reaches either, the current unit of work is skipped rather than the whole job aborted. Raise it as your decision_log accrues clean rows — never the other way around. The kill switch and advisory locks are not tunable; they always run.
Failure direction
The chain fails in a chosen direction: fail-open on propose, fail-closed on dispatch. If a check can't be evaluated, the system can still write a proposal for a human to read — but it can never execute a write. When something is broken, you get more review, never more autonomy.