A failure-mode prompt should enumerate the events that could break the chosen design, the user-visible effect, the signal that detects it, and the recovery step. For a queued system, examine duplicate delivery, full queue, poisoned message, worker loss, and downstream unavailability. For direct writes, examine request timeout after a successful commit and retry behavior. The prompt should require bounded retries and an explicit point where human operators take over. Observability is not a list of dashboards: each metric or trace must answer a recovery question. Define what is measured at the client boundary, because an internal healthy worker count can coexist with failing requests.
Architecture prompts: test the failure path and its signals
Operational case
Receipt Ingest's proposed queue accepts a request, then the writer fails for 90 seconds. New requests may enter the bounded queue only until its capacity is reached. The prompt requires queue depth, oldest-message age, acceptance failures, duplicate-suppression count, and end-to-end completion latency. A poisoned record moves to a reviewed failure path after a bounded retry count; it must not block every later receipt. Recovery replays by request ID so a duplicate delivery cannot produce a second durable receipt. An operator must know when backlog age exceeds the agreed target and whether the system is still accepting work it cannot complete.
Fault: writer unavailable for 90 seconds.
User effect: accepted receipt may remain incomplete; queue may fill.
Signals: acceptance failure, oldest age, depth, completion latency.
Recovery: bounded retry; isolate poison; replay by request ID.
Escalation: stop accepting beyond bounded capacity and page owner.Performance and operating cost
At a planning peak of 744 requests per second, a complete 90-second writer outage could add 66,960 arrivals before retries or rejection, if admission remains open and no work drains. That is a scenario calculation, not a recommended queue size; capacity must also account for payload bytes, burst duration, and recovery drain rate. Tracking M in-flight identities needs O(M) state until retention or compaction. A prompt that asks only for 'high availability' misses the concrete backlog and duplicate behavior operators must test.
Common Mistakes
- Do not describe queue depth as proof of completed receipts.
- Do not retry a poison record forever.
- Do not accept more work than bounded storage and recovery policy permit.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- Incident triage prompts: build a timestamped evidence ledger
- Tool loops: set budgets, state checks, and a stopping condition
- Tool effects: reconcile receipts before retrying
- Architecture prompts: start with constraints and an owner
- Capacity prompts: check units, headroom, and a failed worker
- Architecture decisions: compare real alternatives and consequences
- Architecture release: require evidence, rollback, and ownership
- Project: review a receipt-ingest architecture decision
- Architecture-decision prompt checks
