Skip to content

docs(#607): scope the .task footgun rule to the app-root bootstrap - #626

Merged
wei18 merged 1 commit into
mainfrom
docs/607-narrow-task-rule
Jun 26, 2026
Merged

wei18 merged 1 commit into
mainfrom
docs/607-narrow-task-rule

Conversation

@wei18

@wei18 wei18 commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Resolves #607 (verify-then-decide).

Verification

mise run tf:upload sudoku ios --archive-only produced a clean arm64 device Release archive — config=Release, Release-iphoneos, build 202606260559, zero link errors (only benign GoogleMobileAds umbrella-header warnings) — with all 7 bare .task leaf-view bootstraps + the BoardView .task(id:) tickers present. The same code also already TestFlight-shipped (202606251429 / 202606251431). If "every .task overload links undefined in arm64 device Release" were true, none of these could ship.

→ The blanket rule is overbroad (disproven by the archive).

Decision (owner): narrow the doc, keep .task

  • CLAUDE.md: the .onAppear { Task } requirement is now scoped to the app-root composition bootstrap (GameRoot / MakeGameApp) — where 🔍 Upkeep Report #361 was actually observed — not a blanket ban. Leaf-view one-shot .task is the idiomatic choice and verified link-clean.
  • GameRoot.swift / MakeGameApp.swift: softened the two comments that asserted "every .task overload links undefined" to match (comment-only — no code change).
  • The 7 leaf-view sites now conform to the narrowed rule, so they need no per-site exemption note (the audit's concern is resolved by scoping, not annotation).

Scope

Comment/doc-only. GameAppKit builds clean. No behavior change.

🤖 Generated with Claude Code

Verify-then-decide (#607): the CLAUDE.md rule + the GameRoot/MakeGameApp comments
claimed Xcode 26 lowers EVERY `.task` overload to an opaque descriptor that links
undefined in the arm64 device Release archive — a blanket "never bare `.task`"
ban. The 7 shipped leaf-view `.task` bootstraps (Settings / Daily hub / banner)
had no exemption note.

Verified the blanket claim is overbroad: `mise run tf:upload sudoku ios
--archive-only` produced a clean arm64 device Release archive (config=Release,
Release-iphoneos, build 202606260559) with all 7 bare `.task` sites + the
BoardView `.task(id:)` tickers present — zero link errors. If "every `.task`"
broke the link, those builds could not ship (and they already TestFlight-shipped
as 202606251429 etc.).

Decision (owner): narrow the doc, keep `.task`. The `.onAppear { Task }`
requirement is scoped to the app-root composition bootstrap (GameRoot /
MakeGameApp), where #361 was actually observed; leaf-view one-shot `.task` is the
idiomatic choice and is verified link-clean. Softened the two GameRoot/MakeGameApp
comments to match (no code change — comments only). The 7 sites now conform to
the narrowed rule, so they need no per-site exemption note.

Comment/doc-only; GameAppKit builds clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@wei18
wei18 merged commit 20d734b into main Jun 26, 2026
4 checks passed
@wei18
wei18 deleted the docs/607-narrow-task-rule branch June 26, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

audit(#592): reconcile .task footgun rule vs 7 shipped bare-.task bootstraps

1 participant