Skip to content

feat(skill): agent-impl-notes-log — running concurrent dispatch log - #10

Merged
wei18 merged 1 commit into
mainfrom
feat/impl-notes-running-log
May 20, 2026
Merged

wei18 merged 1 commit into
mainfrom
feat/impl-notes-running-log

Conversation

@wei18

@wei18 wei18 commented May 20, 2026

Copy link
Copy Markdown
Owner

Promotes the user-requested impl-notes log from methodology.md §Backlog (PR #9) to an established subagent dispatch convention.

What ships

File Change
.claude/skills/agent-impl-notes-log/SKILL.md New project-local skill: when to invoke, file layout, 4-section format (設計決定 / 偏離 / 折衷 / 未決), status transitions, anti-patterns
docs/methodology.md §Sub-agent dispatch contract Adds item #6: impl-notes required on non-trivial dispatches
docs/methodology.md skill matrix Lists agent-impl-notes-log under implementation phase
docs/methodology.md §Backlog Entry removed (now active)

Behavior

Future subagent dispatches matching the invoke criteria (>3 files / ambiguous spec / new module / proposal-first flow) MUST:

  1. Create meetings/{date}_{topic}.impl-notes.md at task start
  2. Update incrementally — during work, not at end
  3. Mark Status: COMPLETE before final report
  4. Include the file path in the report

Leader reviews the impl-notes alongside the diff before merging. Open §未決 items must be resolved or moved to backlog before COMPLETE.

🤖 Generated with Claude Code

Promote 'Running implementation notes log' from methodology.md §Backlog
to an established subagent dispatch convention.

What changes:

1. New project-local skill .claude/skills/agent-impl-notes-log/SKILL.md
   defining when to invoke, file layout, the 4-section format
   (設計決定 / 偏離 / 折衷 / 未決), status transitions, and the
   anti-patterns to avoid.

2. methodology.md §Sub-agent roster dispatch contract gains item #6:
   subagent must create meetings/{date}_{topic}.impl-notes.md at task
   start, update incrementally, mark COMPLETE before report. Leader
   reviews impl-notes before merging.

3. methodology.md skill matrix lists agent-impl-notes-log under the
   implementation phase.

4. Backlog entry removed from methodology.md §Backlog (now active).

Concurrent log differs from existing post-hoc phase meeting log: phase
log is summative and written at session wrap; impl-notes is updated
*during* work to capture micro-decisions that would otherwise be lost
to the diff. The two artifacts pair — phase log can reference
impl-notes for the trail of mid-flight context.
@wei18
wei18 merged commit b43ffd2 into main May 20, 2026
@wei18
wei18 deleted the feat/impl-notes-running-log branch May 20, 2026 03:50
wei18 added a commit that referenced this pull request May 22, 2026
Build #10 (after PR #98) failed:
  Could not resolve package dependencies:
    Running resolver because: 'swift-snapshot-testing' was added

PR #98's -scheme Sudoku limited resolve to app-target deps; snapshot-
testing is a SudokuKit test-target dep. Drop -scheme for workspace-wide
resolve.

bash -n OK. Closes #99.

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
…#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]>
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 added a commit that referenced this pull request Jun 17, 2026
…es filed) (#542)

Records this session's drivable-case sweep on the current sim:
- pass: #5 rapid double-tap Leave, #28 zh-Hant strings (+ earlier #1/#2/#10/
  #18/#25/#39 from #536 work)
- fail: #22 Dynamic-Type header clip (#540), #34 timer accrues background
  time (#539)
- pend w/ findings: #8 (near-win harness can't model home-return),
  #23 (digit-pad frames ≥44pt but glyphs render blank, #540),
  #29 (no tofu, but Purchases section unlocalized, #541)

New issues: #539 (solve timer counts background time — leaderboard fairness),
#540 (Dynamic Type AX3+ header/digit-pad breakage), #541 (Purchases/IAP
section unlocalized; L10n gate misses catalog-less literals).

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