Skip to content

docs(methodology): backlog +1 — running implementation-notes log - #9

Merged
wei18 merged 1 commit into
mainfrom
docs/methodology-backlog-impl-notes
May 20, 2026
Merged

wei18 merged 1 commit into
mainfrom
docs/methodology-backlog-impl-notes

Conversation

@wei18

@wei18 wei18 commented May 20, 2026

Copy link
Copy Markdown
Owner

User ask 2026-05-20.

Subagents currently write a phase meeting log after they finish. The phase log is summative — by the time it's written, the in-flight micro-decisions are already fading. Proposal: subagents also maintain a meetings/{date}_{topic}.impl-notes.md during execution capturing:

  1. 設計決定 — what subagent chose when spec was ambiguous
  2. 偏離 — intentional deviations from spec + why
  3. 折衷 — alternatives considered + reason for current pick
  4. 未決 — open questions for Leader/User review

When picked up from backlog, will need to update ai-collaboration-mode SKILL.md to bake this into the dispatch contract.

🤖 Generated with Claude Code

…ng subagent work

Capture user's 2026-05-20 ask: a new kind of agent log under meetings/ that
subagents maintain *during* execution (not just after). Records 4 things
that wall-clock phase meeting logs miss because they're summative:

  1. 設計決定 — what subagent chose when spec was ambiguous
  2. 偏離 — intentional deviations from spec + why
  3. 折衷 — alternatives considered + reason for current pick
  4. 未決 — open questions for Leader/User review

Differs from existing phase meeting logs (post-hoc) — impl-notes runs
concurrently with work, captures micro-decisions that would otherwise
be lost in the diff. Implementation will need ai-collaboration-mode
SKILL.md update to bake this into the dispatch contract.
@wei18
wei18 merged commit b292c2b into main May 20, 2026
@wei18
wei18 deleted the docs/methodology-backlog-impl-notes branch May 20, 2026 03:32
wei18 added a commit that referenced this pull request May 22, 2026
…96) (#98)

Fixes #96. Build #9 failed:
  xcodebuild: error: Could not resolve package dependencies:
    a resolved file is required when automatic dependency resolution is disabled
    Running resolver because: 'swift-package-manager-google-mobile-ads' was added

Tuist disables automatic resolution; workspace has no Package.resolved
(generated, gitignored). Run explicit xcodebuild -resolvePackageDependencies
with -onlyUsePackageVersionsFromResolvedFile NO to allow first-fetch.

bash -n OK.

Closes #96.

Co-authored-by: Claude Opus 4.7 <[email protected]>
wei18 added a commit that referenced this pull request Jun 3, 2026
…0) (#282)

* fix(minesweeper): scale board + add reveal/flag mode toggle (refs #278)

Tier-0 UX blockers from the Designer critique (#278), all in
MinesweeperBoardView. Three coupled fixes, one dispatch:

#1 Board scaling. The cell button was hardcoded frame(30,30) inside a
naked VStack/HStack with no GeometryReader, so Expert (16x30 ~ 960pt)
overflowed every iPhone and most Mac windows. The grid is now wrapped in
a GeometryReader that derives a single square cell side fitting the
NON-square board by its longer axis:
  cellSide = floor(min(availW/cols, availH/rows))
where availW/availH subtract the inter-cell spacing first. The cell
frame and the number/flag/mine glyph (font ~ cellSide * 0.55, replacing
the literal 16) both scale from it.

#2 Tap-target floor. minCellSide = 32pt. When the fitted side would drop
below the floor (e.g. Expert on iPhone fits ~10pt), cellSide is clamped
to 32 and the board scrolls (ScrollView([.horizontal,.vertical]))
instead of shrinking into an un-tappable grid. When it fits, the
ScrollView is inert.

#3 Discoverable reveal/flag toggle. Added an on-screen segmented Picker
(Reveal / Flag) above the board, modeled on Sudoku's pencil-mode toggle.
In Flag mode a tap flags; in Reveal mode a tap reveals. Long-press (iOS)
and right-click contextMenu (Mac) stay as flag accelerators in either
mode — Mac users no longer depend on an invisible right-click. Mode is
view-local @State (no engine semantics). Added .contentShape(Rectangle)
so the whole cell square is hit-testable.

Deferred: Tier-1 theme tokens, Tier-2 Mac side-rail (#6), win/lose
overlay (#7), VoiceOver (#10), .task loop cleanup (#9) — separate
dispatches.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* fix(minesweeper): address #278 Tier-0 CR — flag double-toggle + fit centering

CR REQUEST-CHANGES:
- iOS .flag-mode long-press double-toggle: in .flag mode the button tap +
  long-press both fired onToggleFlag, netting a no-op. Long-press now only
  flags in .reveal mode (redundant in .flag mode where tap already flags).
- Fitted board was pinned top-leading; now center the floored grid in the
  offered rect (mirrors Sudoku BoardView), only scrolling when clamped to floor.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
wei18 added a commit that referenced this pull request Jun 4, 2026
…op (refs #298 #9)

The status bar drove its 1 Hz elapsed refresh via a TimelineView whose
nested .task re-fired on every timeline tick (a .task re-fire footgun).
Replace with Sudoku BoardView's pattern: a single .task(id:) on the body
owning a `while !Task.isCancelled { if playing { refresh }; sleep(1) }`
loop, cancelled automatically on disappear, keyed on the VM identity so
Retry restarts it. Status bar is now a plain HStack reading the @observable
snapshot. Non-visible; correctness/perf only.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
wei18 added a commit that referenced this pull request Jun 4, 2026
* feat(minesweeper): Mac side-rail 2-column board layout (refs #298 #6)

Add a horizontalSizeClass == .regular branch to MinesweeperBoardView so
the Mac/iPad detail pane no longer renders the iPhone vertical stack.
Mirrors Sudoku's BoardView.macLayout: centered + size-capped board (600pt
square) on the left, a 260pt control rail on the right carrying the status
bar + Reveal/Flag toggle (MS has no digit pad). Outer width capped at
900pt and centered.

Compact (iPhone) layout extracted unchanged; spacing literal 12 preserved
verbatim so the recorded covered-board snapshots don't churn. New Mac
layout uses theme.spacing tokens.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* feat(minesweeper): reveal all mines on loss + clearer mine glyph (refs #298 #7 #8)

#7: on a loss, surface every mine, not just the detonated cell. No engine
accessor needed — the actor snapshot already carries the full cells array
with isMine populated once mines are placed, so the renderer paints still-
hidden mines from cell.isMine when status == .lost. Detonated cell keeps
the bold mineHit red; surfaced mines use the soft mine fill. Correctly-
flagged mines keep their flag glyph. The Completion overlay (#292) sits on
top via the outer overlay, so the revealed board shows behind it.

#8 (partial): swap the mine glyph burst.fill -> xmark.octagon.fill for a
clearer hazard read. The covered-vs-revealed contrast raise + raised-tile
bevel are deferred — they churn the covered-board snapshot baseline, which
the sandbox can't re-record (see impl-notes).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* feat(minesweeper): VoiceOver labels + flag action on board cells (refs #298 #10)

Mirror Sudoku's BoardCellView AX. Each cell collapses into one element with
a "Row R, Column C, <state>" label (1-based, state covers hidden/flagged/
N/empty/mine incl. the lost-mine surfacing), the .isButton trait, and a
named Flag/Unflag accessibilityAction so VoiceOver users can flag without
the long-press / right-click accelerators (which VO can't reach). Flag
action is inert on revealed cells and once the board is terminal.

Threads zero-based row/column into MinesweeperCellButton from the grid.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* refactor(minesweeper): replace TimelineView ticker with .task(id:) loop (refs #298 #9)

The status bar drove its 1 Hz elapsed refresh via a TimelineView whose
nested .task re-fired on every timeline tick (a .task re-fire footgun).
Replace with Sudoku BoardView's pattern: a single .task(id:) on the body
owning a `while !Task.isCancelled { if playing { refresh }; sleep(1) }`
loop, cancelled automatically on disappear, keyed on the VM identity so
Retry restarts it. Status bar is now a plain HStack reading the @observable
snapshot. Non-visible; correctness/perf only.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* refactor(minesweeper): board outer padding via theme spacing token (refs #298 #11)

Migrate MinesweeperBoardView's outer .padding() to theme.spacing.medium
(value-identical 16, no snapshot churn) and the new Mac layout to the
spacing scale. The compact VStack(spacing: 12) literal is deferred — it's
the only remaining spacing-scale literal and migrating it churns the
covered-board snapshot baseline (sandbox can't re-record). Grid geometry
constants (minCellSide, cellSpacing, cornerRadius) are tap-target/shape
values, left as literals. Also seals the #298 impl-notes.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
@wei18 wei18 mentioned this pull request Jul 9, 2026
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.

1 participant