Failure stories

Ten things that went wrong while running an app factory with always-on AI workers, and the rule each one left behind. Names, ids and numbers are removed; the mechanics are real. Most of the kit's rules, checks and skills exist because of one of these. Read them when a rule looks fussy and you want to know why it is there.

Each story: what happened, the cause, and the rule that was added.


1. The bot went deaf after a harmless-looking command

What happened. A worker ran claude mcp list in its own shell to check its tool setup. Right after, it stopped receiving and sending chat messages. Nothing looked broken from the inside.

Cause. The nested claude process loaded the same chat plugin with the same bot token and state folder. On startup the plugin clears "stale" pollers, which meant it killed the worker's live one.

Rule added. Workers never run the claude CLI from inside a chat-connected session. If a script truly must, it points the plugin at a separate headless state folder. To inspect tool config, read the config file instead.


2. "The server crashed" (it hadn't, it was swapping)

What happened. During a milestone the owner reported the server was down. The bots were alive but answering after minutes. Load average was over 100 on a 4-core box and swap was full. A full test gate ran for 31 minutes until its timeout killed it; the retry on a fresh Gradle daemon passed in 3 minutes.

Cause. The gate started on the eighth build of a bloated Gradle daemon plus a large Kotlin daemon, with under 1 GB really free. The "is the box calm?" check had been switched off, and a proposed improvement would have counted idle daemon memory as available, which it is not unless you stop them.

Rule added. Every build goes through a single build slot that checks free memory, stops idle daemons when memory is low, caps CPU priority, and refuses to run a heavy gate next to another one. Gates always run with a timeout. Release bundles and web builds run alone, never combined with a full gate.


3. Live on the store, but nobody outside one country could pay

What happened. An Android app went live. A tester in Europe opened the paywall and saw "Prices not available. Check your connection." So did everyone outside the US.

Cause. The store config had US-only prices with purchasing-power pricing switched off, and the push tool only priced the regions listed in the config. The release check confirmed the products were active, but never looked at per-country prices.

Rule added. Every product is priced in every billable country, and after every pricing push a read-back script checks each region through the store API. The release gate fails on any unpriced region.


4. Daily reminders that never appeared

What happened. An app shipped to production with a daily reminder feature. Users who opted in never got a single notification. All unit tests and snapshot tests were green.

Cause. The notification library's "schedule" call only set an alarm. When the alarm fired, its receiver logged the event and did not post a notification. The tests used a fake notification poster, the build box had no emulator, and no milestone ever checked the system notification list after an alarm fired.

Rule added. Scheduled notifications are verified on a real device (dumpsys notification after the alarm) before release. Where a library's fire path is in doubt, the app posts the notification itself when the alarm event arrives.


5. Every cold start crashed on iPhone, every gate was green

What happened. On iOS, relaunching the app as an existing user crashed every time. On Android the same path worked, and every gate on the build box passed.

Cause. A database query was built with a range bound that could be an empty string before data had loaded. The iOS SDK threw an Objective-C exception, which Kotlin's runCatching cannot catch, so the process aborted. Android threw a normal exception that was caught and ignored.

Rule added. Never pass a possibly blank id, path or bound into a native iOS SDK call; guard before the call. More broadly: a device walk on both platforms (simulator automation on a Mac counts) happens before the first internal or TestFlight build. One such walk found 27 bugs that every automated gate had missed.


6. iOS rejected on three guidelines at once

What happened. An iPhone app was rejected for: a price reference on the screenshots, screenshots that did not show the app, and asking for a review too early.

Cause. The last screenshot said "Start free today", and Apple treats "free", "trial", "discount" and "% off" as price references. Four of six slides were mascot art with little or no real UI. And the purchase-success screen asked for a store review; since the paywall follows onboarding, that fired before the user had done anything, which Apple counts as an onboarding review ask.

Rule added. No pricing words on slides in any locale; most slides show the real app in a phone frame with an outcome caption. Review asks happen only after a real core action, never on purchase success. The screenshot skill has a hard Apple gate for all of this.


7. The reviewer code that got the iOS build rejected

What happened. Play had rejected an earlier build because reviewers cannot buy subscriptions and could not reach the paid part. The fix was a reviewer access code. Later the iOS build was rejected for "hidden features".

Cause. The code check lived in shared code, so it shipped in the iOS binary too. It compared against a hash held in remote config, behind a remote kill switch, and keys and strings were named after review. Apple read that as remotely switched hidden functionality.

Rule added. Reviewer access is Play-only: the code lives in Android-only source and resources, is never named after review, and never sits in remote config. iOS reviewers test premium with sandbox purchases. Check with strings on the iOS framework before submitting.


8. "OK" from the tool, nothing in the store

What happened. A data-safety declaration was pushed with a CLI that printed "OK". Weeks later the store console still showed no declaration.

Cause. The API returned an HTTP 400 and the tool swallowed the error. The same tool had been used the same way for several earlier apps.

Rule added. Every store push (data safety, listings, prices, products) is followed by a read-back through the API or a look in the console. A tool's exit message is never proof.


9. Almost called "ready" with half the app missing

What happened. The dispatcher was about to tell the owner an app was production-ready. Still open: animations never made, two weeks of content missing, a stub landing page, screenshots and translations not reviewed, no device tests, no iOS build.

Cause. Items deferred "for later" lived in plans, decision logs and chat. Nothing resurfaced them when the question "is it ready?" came up.

Rule added. Each app keeps a READINESS ledger of everything deferred. Every "what's left?" answer and every release check lists all open items unprompted, and the release gate blocks a production publish while any item is open unless the owner accepts it by name.


10. A template file became empty everywhere

What happened. After a routine update to one agent's instructions, that agent was suddenly empty in every app on the box.

Cause. The per-user agent files are symlinks into the shared template. A shell command redirected output into the "user copy", which truncated the template file itself to zero bytes, and the next sync copied the empty file into every app.

Rule added. Before writing to an agent file, check whether it is a symlink. Edit the template, then run the agent sync. Never redirect into a file you have not checked.


11. Copy that passed the checker and still read like AI

What happened. Store screenshot captions went through the automated copy check with zero hits. The owner rejected them as "AI slop" twice.

Cause. The checker caught banned words, not rhythm: two short fragments with full stops ("Your brain glitched. Here's why."), cute metaphors, abstract benefit-speak, and feature names users do not know.

Rule added. All user-facing copy goes through the copywriter agent before the owner sees it, and the test is human: would a friend say this out loud, would a kid understand it? Captions lead with the user's problem and outcome, never the feature.

Docs for the App Army kit. The Claude Code plugin has its own page.