Troubleshooting
Start with kappmaker-army doctor. It checks the toolchain, the guard hook, agent drift and leftover placeholders, one line
each. Most problems below show up there first.
Install and setup
army: command not found
kappmaker-army init added ~/.army/bin to your shell profile. Open a new shell. If you used --no-path, add it yourself.
bash 4+ needed on macOS
brew install bash. army switches to Homebrew bash by itself. kappmaker-army init, doctor, update, worker and
board work on the stock bash 3.2.
flock missing
Fine. The tools fall back to mkdir locks. On Linux, apt install util-linux gives you flock.
guard-hook FAIL
Run kappmaker-army init again (or enable the army-core plugin). Until this is green, workers start without
skip-permissions.
agents out of sync
kappmaker-army agents sync. If you edited a file in ~/.claude/agents/ by hand, that edit is lost on sync. Put the change in
the kit source or in models.conf instead.
files still hold {{...}}
A value is missing in army.conf. kappmaker-army render vars shows what the renderer has. Set the missing one, then
kappmaker-army update --no-pull.
<file>.army-new files appeared
kappmaker-army update found a kit change in a file you had edited. Compare the two, keep what you want, delete the
.army-new copy.
Builds
"waiting for build slot"
Another build is running on this machine (often another worker's). Wait. Do not kill it. gradle-slot status
shows who holds the slot and who is queued.
Gate TIMED OUT or the box crawls
Usually memory: two Gradle daemons, or swap thrash. Say "is the box ok?" and the box-overload-triage skill checks
it. More swap or more RAM is the real fix. Never run two Gradle milestones in parallel on an 8 GB box.
Red gate with only snapshot diffs
The gate prints SNAPSHOT-ONLY. Look at each compare image in the build output. If every change is intended,
scripts/loop-guard.sh accept-snapshots. Do not copy the _actual files over the goldens by hand.
Wrong JDK
KMP builds expect JDK 17 (Temurin). kappmaker-army doctor warns on any other version. Set JAVA_HOME.
Workers and Telegram
The bot stopped answering
Check kappmaker-army worker status <name>. Common causes:
- someone ran a bare
claudeorclaude mcp listinside the worker, which started a second poller. Restart the worker:kappmaker-army worker restart <name>; - the worker is stuck on the usage-limit dialog.
bot-limit-watchdogfrom cron fixes that; run it once by hand to check; - the worker is "waiting": Claude is not logged in for that user, or the token file is missing. The runner retries
every 15 seconds. Run
claudeonce as that user, orkappmaker-army worker add <name>again.
The bot does not reply to me at all
Pairing. DM the bot, take the code, then kappmaker-army worker attach <name> and /telegram:access pair <code>.
A worker forgot what it was doing after a restart
It reads ~/.claude/session-history-<worker>.md when it lacks context. Tell it "check your session history". For
planned restarts, ask it to write a handoff note first.
Loop
The loop does nothing
It runs only while .claude/.loop-active exists in the app. Start it in plain words, or run
scripts/start-loop.sh "<goal>".
It stopped after 8 passes
No item got finished in 8 passes. The plan has an item the agent cannot do (often a console step or a device test).
Move it to OWNER_TODO.md, or split it, and start again.
It stopped on a red build and the flag is still there That is on purpose. Fix the build (or ask the agent to), then say "continue".
Stores
Play API says "Package not found" The package name in Play Console does not match the app id exactly. Check for a typo before anything else.
Users see "prices not available"
Some Play countries have no price. Run play-price-all-regions.py <package> in check mode after every
kappmaker gpc monetization push. --apply fills only the missing regions with plain conversions.
App rejected for review access
Reviewers cannot buy or use trials. Say "Apple rejected the app" and paste the message; store-rejection-intake
handles it. For a Play app with a hard paywall, see the reviewer-redeem-code recipe and read its warning first.
Guard blocked something I wanted
The block message names the rule id. If you are sure, from your own terminal:
echo <rule-id> >> ~/.army/guard-allow-once
~/.army/logs/guard.log has every decision. To loosen a rule for good, use ~/.army/guard.json
(CONFIG.md).
Still stuck
Where to ask: App Army buyers use GitHub Discussions on the release repo. Mentor and Build With Me buyers use the private Discord.
Docs for the App Army kit. The Claude Code plugin has its own page.