SumRaceKids — fleet issue
_Re-verified against live state: 2026-09-22. No app code was changed for this issue._
Status (one line): Not actually broken — build 3 archived and exported cleanly and is parked at the fleet's *intentional* manual publish gate (in_flight: pending_review, last_upload_status: held_for_review), which the doctor's discovery heuristic misreads as a stale/hung in-flight run; the healer correctly declined to act (Not auto-healing (fixable=false, autoHeal=true)) because there is no app defect to repair, so this needs a human publish decision plus a one-line fix to the discovery rule — not an app code fix.
Last known-good build number (App Store Connect): 1
Per /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/asc.json (generated_at: 2026-09-21T19:15:05Z):
"SumRaceKids": {
"bundle_id": "com.zhouzhengxi.sumgame",
"asc_id": "6773766461",
"asc_name": "Sum Race Kids",
"in_prod": true,
"latest_build_number": "1",
"latest_build_state": "VALID",
"latest_uploaded": "2026-05-27T07:23:02-07:00",
"build_count": 1,
"app_store_state": "READY_FOR_SALE",
"version_string": "1.0.0"
}
Build 1 / version 1.0.0 is live and READY_FOR_SALE. The held build 3 has never reached ASC — build_count: 1 confirms nothing after build 1 was ever uploaded. The production app is healthy; only the local pipeline is parked.
Root cause & evidence
1. The build did not fail
The 2026-07-30 pipeline run bumped the build to 3, archived, and exported with zero errors, then stopped *by design* at the human publish gate instead of uploading to App Store Connect.
The blocking log line — final lines of the 331-line log/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/runs/SumRaceKids-2026-07-30T20-54-24Z.log; the run never got further:
[04:54:56] BUILD READY — held for your review (build 3)
[04:54:56] IPA: /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SumRaceKids/build/Export/SumRaceKids.ipa
[04:54:56] to publish to ASC after review: fleet publish SumRaceKids
[04:55:01] done (awaiting publish approval)
Success markers are both present: ARCHIVE SUCCEEDED and EXPORT SUCCEEDED .grep -cEi "error:|ARCHIVE FAILED|EXPORT FAILED" <log> → 0 (re-run 2026-09-21). There is no failure anywhere in the run. The signed IPA still exists on disk (165,597 bytes, Jul 31 04:54).
Every subsequent driver run since then has been a no-op that re-states the same gate, not a failure. From the most recent run logs (all 2026-08-22):
[04:55:15] build 3 already held for review; run 'fleet publish SumRaceKids' to ship it, or --force to discard and rebuild
[04:50:08] no new changes since last build (ef18305471de18109bea9d040dcdb4cb994abfd0); skipping
The one run in that batch that did start work (20-54-44Z) was a dry run and explicitly did not touch state:
[04:54:44] starting build for SumRaceKids (commit ef18305, tool make, dry_run=1)
[04:54:49] [dry-run] complete — state NOT updated
This is policy, not malfunction. The app's own fleet config documents the gate explicitly —/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SumRaceKids/.fleet/config.sh lines 6–8:
# Review gate: the driver runs BUILD_PHASE_CMD only; `fleet publish SumRaceKids`
# runs UPLOAD_PHASE_CMD (`make upload`) after human review. Do NOT list upload here.
BUILD_CMD="make archive && make export"
The same policy is restated in /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/bin/fleet-build.sh (lines 290–292):
# REVIEW GATE: hold the IPA, do NOT upload. ----------------------------------
# Per user policy (2026-05-29): no automatic ASC publish. The signed IPA is
# left in place; `fleet publish <APP_NAME>` runs the upload after review.
2. Why the doctor still flags it as unhealthy (the real defect)
The discovery prompt in /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/bin/fleet-doctor.workflow.js (line 92) classifies an app as UNHEALTHY when:
- in_flight is non-null but stale (started > 2h ago — likely a hung/killed run)
SumRaceKids currently has, in /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/fleet.json:
"in_flight": "pending_review",
"in_flight_started": "2026-07-30T20:54:25Z",
"last_build_status": "success",
"pending_review_build": 3,
"pending_review_since": "2026-07-30T20:54:56Z",
"last_upload_status": "held_for_review"
That in_flight is non-null and its start is now ~7 weeks old, so the stale rule fires. But pending_review is not a hung run — it is the *terminal success state* of the review gate, and last_build_status is success. The exclusion note on lines 98–99 only whitelists ASC review states (WAITING_FOR_REVIEW / IN_REVIEW / PENDING_DEVELOPER_RELEASE / READY_FOR_SALE) and never mentions the local pending_review in-flight value. This is a false positive in the discovery heuristic, and it will re-fire on every doctor run for every app awaiting publish approval.
3. Why it was not auto-healed
The healer reports fixable=false because nothing in the app source, signing, or build tooling is broken. fleet-doctor.workflow.js lines 174–175 only auto-heal when diag.fixable is true:
if (!diag || !diag.fixable || !AUTO_HEAL) {
return { app: appName, attempted: false, compiles: false, diff: '', summary: diag ? `Not auto-healing (fixable=${diag.fixable}, autoHeal=${AUTO_HEAL})` : 'No diagnosis', commands: [] }
Verify verdict for this cycle: {"app":"SumRaceKids","isRealFix":false,"confidence":"high","reasoning":"No fix attempted","risks":""} — correct. Auto-healing here would have been wrong: there is no defect in the app to repair, and any edit would have been a fabricated fix.
Claude-ready fix prompt
> Two independent changes. Do not modify any code under /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SumRaceKids/ — the app is not broken.
>
> Part A — stop the false positive (the actual bug).
> Edit /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/bin/fleet-doctor.workflow.js.
> 1. On line 92, change the stale-in-flight rule so it excludes the review-gate state. Replace:
> - in_flight is non-null but stale (started > 2h ago — likely a hung/killed run)
> with:
> - in_flight is non-null, NOT equal to "pending_review", and stale (started > 2h ago — likely a hung/killed run)
> 2. Extend the exclusion note at lines 98–99 to cover the local gate, e.g. append a sentence:
> Also do NOT flag an app whose in_flight is "pending_review" (or whose last_upload_status is "held_for_review") — that is the intentional manual publish gate, not a hung run; last_build_status will be "success".
>
> Do not touch the diag.fixable guard at lines 174–175 — that logic is correct and is what (rightly) prevented a fabricated auto-heal.
>
> Verification: re-run the doctor's discovery stage and confirm SumRaceKids no longer appears in the unhealthy list, while genuinely stale in-flight runs (in_flight set to a non-pending_review value older than 2h) are still flagged. Confirm no other fleet app regressed.
>
> Part B — the human decision this issue is actually waiting on (requires the user; do not do it unprompted).
> Build 3 IPA is signed and sitting at /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SumRaceKids/build/Export/SumRaceKids.ipa. Ask the user which they want, then run exactly one:
> - Publish: fleet publish SumRaceKids (runs make upload, uploads build 3 to ASC).
> - Abandon: discard the held IPA and clear the gate fields in /Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/fleet.json for SumRaceKids (in_flight, in_flight_started, in_flight_log, pending_review_build, pending_review_ipa, pending_review_since, last_upload_status).
>
> Note the signing identity in the run log is Apple Development: Zhengxi Zhou (S27YGDPWN9). If build 3 is published, confirm the upload is accepted by ASC — a development-signed archive can be rejected at upload time; if that happens, that is a *separate, real* issue worth filing.
Key paths
- Issue file:
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/issues/SumRaceKids.md - Run log (evidence):
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/runs/SumRaceKids-2026-07-30T20-54-24Z.log - Latest no-op run logs:
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/runs/SumRaceKids-2026-08-22T20-55-15Z.log(and 20-54-44Z, 20-53-32Z, 20-50-08Z, 20-48-47Z) - Doctor heuristic (fix target):
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/bin/fleet-doctor.workflow.jslines 92, 98–99 - Fleet state:
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/fleet.json - ASC snapshot:
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/state/asc.json - Review gate policy:
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apple-apps-fleet/bin/fleet-build.shlines 290–292 - App fleet config:
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SumRaceKids/.fleet/config.shlines 6–8 - Held IPA:
/Users/zzxwill/Programming/go/src/zzxwill/apple-apps/apps/SumRaceKids/build/Export/SumRaceKids.ipa