Raise the hosted sessions indexer mapping cap from 20 to 25
Capacity step
The watcher verified the live event source mapping cap of 20 at 08:17 UTC. The incident brief reports about 12,000 visible messages and about two hours of indexing lag. The watcher reconstructed time at or above 20 from Lambda REPORT lines. The 79% figure includes the reconcile slot and is an upper bound. The estimate is 69% with that slot excluded.
The candidate raises the cap to 25, a 25% increase in the ceiling. The previous trial at 25 was reverted after DB lock waits. The watcher saw zero Lambda throttles and no pointer-index failures or statement timeouts in the observed window at 20. The merge and production hold stays in place pending direct DB lock-wait, connection and CPU headroom evidence, plus function and regional concurrency headroom.
Protected CI path
The existing workflow gains a raise-indexer-cap operation. It pins the target in code and permits exactly one in-place 20-to-25 update. Both plan and apply check the same gate, and the apply uses the same saved plan. The gate rejects imports, drift, a different live baseline, and unrelated changes. The default import-only operation retains the original baselines.
After D5 static PASS and green CI, layered-infra-ops reviews. Before dispatching the production plan, confirm the zero-diff ownership handoff, the protected apply role's existing mapping permission, the live cap, and function/account concurrency headroom. After the protected apply, read back the enabled mapping at 25 and compare queue depth, oldest age, indexing lag, throttles, downstream lock waits, and DLQ depth. AWS Lambda mapping and reserved concurrency guidance
Scope is the mapping cap. No IAM or DLQ redrive changes are included.
Local proof
- Hosted gate tests (28), mocked plan/apply smoke suite, actionlint and ShellCheck passed.
- Terraform 1.16.7 confirmed the explicit cap wins over the private tfvars input.
git diff --checkpassed.