Wayfinder map: Cold Turkey — the writing lock inside focus mode (#140) #158

Closed
opened 2026-11-04 11:01:22 +01:00 by AlexKucera · 1 comment
Owner

Destination

Cold Turkey (#140) landed: a self-imposed writing lock nested inside focus mode — armed from a quiet arm-bar, enforced by the macOS app-kiosk (fullscreen + presentation options), editor-only, goal of net-new words or minutes, quiet return to focus that never interrupts typing — ruled calm at the calibration gate. The map closes when the build slices land on #140.

Work issue: #140.

Map closed 2026-11-04 — destination reached; closure rationale in the comments.

Notes

  • Domain: Museion, native SwiftUI macOS app (root AGENTS.md contract, DOX pass on edits). Language: English artifacts and dialogue.
  • Skills every session consults: grilling + domain-modeling (resolve rounds); swift-testing-cli and the xcodebuild lessons (#31, #134 — count executed tests in the xcresult, never trust the SUCCEEDED banner); anything visual speaks the editorial two-color voice (#154 contract; #155/#156 chrome: serif-15/600 heads, mono-10 uppercase tracked, terracotta accents, DesignTokens from ref/Web-Prototype).
  • Standing rules: no autonomous commits/pushes (root AGENTS.md) — slices land as uncommitted working trees unless landing is authorized; the wayfinder invocation authorizes map + ticket tracker writes. Every session writes a devlog (write-log).
  • Known hazard: toggling focus remounts MentorPaneView/PostsLibraryColumn (#87) — the lock/unlock transitions must not add a remount of the editor (typing-continuity AC).

Settled at charting — do not re-ask

  1. Destination shape: decision map → build slices hanging off #140.
  2. Blocking scope: app-kiosk lock — fullscreen + NSApplicationPresentationOptions (⌘Tab / Force Quit / menu bar suppression). No OS-wide shield.
  3. Hardness: the block dies quietly — session-scoped, no persistence across quit/relaunch, no break ledger.
  4. Goal semantics: ONE goal per block — net new words in the open Piece (baseline at arm; deleting costs) OR a minutes countdown. No pause; no combined goals.
  5. Mentor mid-block: fully blocked — nothing but the editor (passes AND chat).
  6. Architecture: strict nest, lock ⇒ focus (normal → focused → locked). Entered only from focus mode; ⌥⌘F is refused while locked — that refusal IS the lock; completion drops back to plain focus. One chrome lineage: FocusChrome.swift grows the lock.
  7. Name: "Cold Turkey" (glossary + UI); internal Swift state writingLock. "Block" stays with Outline nodes.
  8. Arming: quiet arm-bar inside focus mode — minutes|words + value + Start; once started it shrinks to a live progress readout. No modal sheet. Amended by #160 (2026-11-04): arm-path is dot-first — a persistent muted dot in focus's bottom-right corner opens the arm-bar; the menu item stays as the second path.
  9. Fullscreen: true fullscreen on lock; completion restores the previous window size.
  10. Completion: quiet return to focus + small mono note ("500 words · 14:02"). Hard AC (2026-11-04, Alexander): typing is never interrupted by the unlock transition — no remount, no first-responder loss, no caret/scroll jump while mid-thought.
  11. Folded assertions (veto window closed): hover-reveal zones suppressed while locked (library + mentor stay hidden; the open Piece is stable for counting); drafts supported (⌘S armed, inherited from focus); Posts + drafts only, not Outline pieces; the timer never pauses; arming menu-first v1 (amended by #160: dot-first, menu second).

Decisions so far

  • Cold Turkey lock mechanics — macOS kiosk factsheet (probe): exact recipe pinned — the 6-option presentation combo + toggleFullScreen, options set before the toggle (invalid combos throw); ⌘Q/⌘W covered by delegate refusals, no menu surgery; the lock holds even windowed (fullscreen stays a UX commitment, not an enforcement need); typing continuity CLEAN — direct fullscreen exit preserves first-responder identity, no idle-deferral machinery needed; macOS 27: readback is currentSystemPresentationOptions, .disableScreenCornerInteractions new. Full factsheet lives in the ticket comment.

  • Cold Turkey arm-bar + progress readout — contract render: contract ruled in ref/prototypes/wf160-cold-turkey-prototype.html — bare mono surfaces on the focus ground (no chip), readout = numerals + 2px hairline (piece title absent, terracotta @80% near-goal), completion note fades ~6s; arming amended dot-first (persistent muted dot, bottom-right, hover-labeled); save-fail keeps the top chip seat. Baked defaults in the render ARE the build contract for #161/#162. AMENDED 2026-11-04 (live dogfood, on #160): the ARM-BAR carries a chip that blends into the focus ground (ground color, faintest hairline, no shadow — the bare seat let text show through); the value is directly typeable; defaults 250 words / 5 min. Readout + note stay bare.

  • Build S1: Cold Turkey goal engine — net-words delta + countdown: built and green — WritingGoal (words|minutes) + WritingGoalRun (injected now, no owned clock — never-pauses by construction; isMet live/unlatched; progress 0…1); word counting rides the NEW internal DraftStats.words(in:) so net-words and first-draft stats share one tokenizer forever. Suite 601/601 (xcresult-counted). #162 unblocked.

  • Build S2: Cold Turkey WritingLock — kiosk, chrome, unbroken typing: built and green (617/617 xcresult-counted, +16 tests) as an uncommitted working tree — WritingLockState + the #159 kiosk recipe verbatim (7-bit combo incl. corner-interactions, already-fullscreen handled) + the #160 chrome in FocusChrome (dot/seat/arm-bar/readout/note); typing AC by construction (lock ⇒ focus freezes the branch under the editor; chrome is overlay-only; fullscreen round trip responder-clean). Deviation: ⌘W via a local key monitor — macOS SwiftUI has no .closeItem placement and owns the window delegate. #163 unblocked.

  • Calibration gate: does the Cold Turkey lock rule calm?: CALM (2026-11-04, live block on the pinned corpus; env: main @ a9e199f, build green, relaunched) — all four felt checks held (surface calm, typing-continuity hard AC, lock honesty incl. the ⌘Q asks-once bail, completion note + quiet return); knobs keep as built (readout bottom-center, near-goal terracotta @80%). Fog graduates both: S5.1 tie-in (#165) + preset chips (#166); keyboard-shortcut fog stays.

  • S5.1 tie-in: does a completed Cold Turkey block make the draft first-draft-eligible?: NO — capture stays pass-gated; the glossary's pinned first-Pass-invocation moment (Unaided First Draft) stands, Walk Away keeps nothing, no new gate interactions (origin-ai drafts already refused by the frontmatter gate). Revisit trigger parked in Out of scope.

  • Preset chips on the Cold Turkey arm-bar?: NO (2026-11-04, ruled live) — typeable value + defaults 250/5 + steppers cover arming; the built arm-bar stands unchanged. The pattern holds: the built bar is the contract surface for micro-changes — no render amendment pass. Revisit only on recurring arming friction.

Not yet specified

None at closure — the frontier was empty when the map closed (2026-11-04).

Out of scope

  • OS-wide shield (Screen Time / Family Controls) — app-kiosk chosen; only a fresh effort revisits.
  • Block persistence across relaunch; sprint records / history / streaks — the block dies quietly.
  • Gross-words-typed counting — net new words only.
  • Mentor chat or passes mid-block — editor only.
  • Cold Turkey on Outline pieces — v1 is Posts + drafts.
  • S5.1 block-completion stats capture — ruled out 2026-11-04 (#165): returns only as a fresh effort if Cold Turkey becomes the primary drafting mode AND trend points stay sparse for block-heavy pieces.
  • Keyboard arming shortcut — dot + menu cover v1 (#160); a hotkey is fresh-effort material needing the #87 probe discipline (global hotkeys AND Emacs bindings). Ruled out at closure 2026-11-04: cannot graduate past the reached destination.

[Generated by AI]

## Destination Cold Turkey (#140) landed: a self-imposed writing lock nested inside focus mode — armed from a quiet arm-bar, enforced by the macOS app-kiosk (fullscreen + presentation options), editor-only, goal of net-new words or minutes, quiet return to focus that never interrupts typing — ruled calm at the calibration gate. The map closes when the build slices land on #140. Work issue: #140. Map closed 2026-11-04 — destination reached; closure rationale in the comments. ## Notes - **Domain**: Museion, native SwiftUI macOS app (root AGENTS.md contract, DOX pass on edits). Language: English artifacts and dialogue. - **Skills every session consults**: grilling + domain-modeling (resolve rounds); swift-testing-cli and the xcodebuild lessons (#31, #134 — count executed tests in the xcresult, never trust the SUCCEEDED banner); anything visual speaks the editorial two-color voice (#154 contract; #155/#156 chrome: serif-15/600 heads, mono-10 uppercase tracked, terracotta accents, DesignTokens from `ref/Web-Prototype`). - **Standing rules**: no autonomous commits/pushes (root AGENTS.md) — slices land as uncommitted working trees unless landing is authorized; the wayfinder invocation authorizes map + ticket tracker writes. Every session writes a devlog (`write-log`). - **Known hazard**: toggling focus remounts MentorPaneView/PostsLibraryColumn (#87) — the lock/unlock transitions must not add a remount of the editor (typing-continuity AC). ### Settled at charting — do not re-ask 1. **Destination shape**: decision map → build slices hanging off #140. 2. **Blocking scope**: app-kiosk lock — fullscreen + NSApplicationPresentationOptions (⌘Tab / Force Quit / menu bar suppression). No OS-wide shield. 3. **Hardness**: the block dies quietly — session-scoped, no persistence across quit/relaunch, no break ledger. 4. **Goal semantics**: ONE goal per block — net new words in the open Piece (baseline at arm; deleting costs) OR a minutes countdown. No pause; no combined goals. 5. **Mentor mid-block**: fully blocked — nothing but the editor (passes AND chat). 6. **Architecture**: strict nest, lock ⇒ focus (`normal → focused → locked`). Entered only from focus mode; ⌥⌘F is refused while locked — that refusal IS the lock; completion drops back to plain focus. One chrome lineage: FocusChrome.swift grows the lock. 7. **Name**: "Cold Turkey" (glossary + UI); internal Swift state `writingLock`. "Block" stays with Outline nodes. 8. **Arming**: quiet arm-bar inside focus mode — minutes|words + value + Start; once started it shrinks to a live progress readout. No modal sheet. Amended by #160 (2026-11-04): arm-path is dot-first — a persistent muted dot in focus's bottom-right corner opens the arm-bar; the menu item stays as the second path. 9. **Fullscreen**: true fullscreen on lock; completion restores the previous window size. 10. **Completion**: quiet return to focus + small mono note ("500 words · 14:02"). **Hard AC (2026-11-04, Alexander): typing is never interrupted by the unlock transition** — no remount, no first-responder loss, no caret/scroll jump while mid-thought. 11. **Folded assertions** (veto window closed): hover-reveal zones suppressed while locked (library + mentor stay hidden; the open Piece is stable for counting); drafts supported (⌘S armed, inherited from focus); Posts + drafts only, not Outline pieces; the timer never pauses; arming menu-first v1 (amended by #160: dot-first, menu second). ## Decisions so far - [Cold Turkey lock mechanics — macOS kiosk factsheet (probe)](https://git.babylondreams.de/AlexKucera/museion/issues/159): exact recipe pinned — the 6-option presentation combo + `toggleFullScreen`, options set *before* the toggle (invalid combos throw); ⌘Q/⌘W covered by delegate refusals, no menu surgery; the lock holds even windowed (fullscreen stays a UX commitment, not an enforcement need); **typing continuity CLEAN** — direct fullscreen exit preserves first-responder identity, no idle-deferral machinery needed; macOS 27: readback is `currentSystemPresentationOptions`, `.disableScreenCornerInteractions` new. Full factsheet lives in the ticket comment. - [Cold Turkey arm-bar + progress readout — contract render](https://git.babylondreams.de/AlexKucera/museion/issues/160): contract ruled in `ref/prototypes/wf160-cold-turkey-prototype.html` — bare mono surfaces on the focus ground (no chip), readout = numerals + 2px hairline (piece title absent, terracotta @80% near-goal), completion note fades ~6s; arming amended dot-first (persistent muted dot, bottom-right, hover-labeled); save-fail keeps the top chip seat. Baked defaults in the render ARE the build contract for #161/#162. AMENDED 2026-11-04 (live dogfood, on #160): the ARM-BAR carries a chip that blends into the focus ground (ground color, faintest hairline, no shadow — the bare seat let text show through); the value is directly typeable; defaults 250 words / 5 min. Readout + note stay bare. - [Build S1: Cold Turkey goal engine — net-words delta + countdown](https://git.babylondreams.de/AlexKucera/museion/issues/161): built and green — `WritingGoal` (`words|minutes`) + `WritingGoalRun` (injected `now`, no owned clock — never-pauses by construction; `isMet` live/unlatched; `progress` 0…1); word counting rides the NEW internal `DraftStats.words(in:)` so net-words and first-draft stats share one tokenizer forever. Suite 601/601 (xcresult-counted). #162 unblocked. - [Build S2: Cold Turkey WritingLock — kiosk, chrome, unbroken typing](https://git.babylondreams.de/AlexKucera/museion/issues/162): built and green (617/617 xcresult-counted, +16 tests) as an uncommitted working tree — WritingLockState + the #159 kiosk recipe verbatim (7-bit combo incl. corner-interactions, already-fullscreen handled) + the #160 chrome in FocusChrome (dot/seat/arm-bar/readout/note); typing AC by construction (lock ⇒ focus freezes the branch under the editor; chrome is overlay-only; fullscreen round trip responder-clean). Deviation: ⌘W via a local key monitor — macOS SwiftUI has no .closeItem placement and owns the window delegate. #163 unblocked. - [Calibration gate: does the Cold Turkey lock rule calm?](https://git.babylondreams.de/AlexKucera/museion/issues/163): **CALM** (2026-11-04, live block on the pinned corpus; env: main @ a9e199f, build green, relaunched) — all four felt checks held (surface calm, typing-continuity hard AC, lock honesty incl. the ⌘Q asks-once bail, completion note + quiet return); knobs keep as built (readout bottom-center, near-goal terracotta @80%). Fog graduates both: S5.1 tie-in (#165) + preset chips (#166); keyboard-shortcut fog stays. - [S5.1 tie-in: does a completed Cold Turkey block make the draft first-draft-eligible?](https://git.babylondreams.de/AlexKucera/museion/issues/165): NO — capture stays pass-gated; the glossary's pinned first-Pass-invocation moment (Unaided First Draft) stands, Walk Away keeps nothing, no new gate interactions (origin-ai drafts already refused by the frontmatter gate). Revisit trigger parked in Out of scope. - [Preset chips on the Cold Turkey arm-bar?](https://git.babylondreams.de/AlexKucera/museion/issues/166): NO (2026-11-04, ruled live) — typeable value + defaults 250/5 + steppers cover arming; the built arm-bar stands unchanged. The pattern holds: the built bar is the contract surface for micro-changes — no render amendment pass. Revisit only on recurring arming friction. ## Not yet specified None at closure — the frontier was empty when the map closed (2026-11-04). ## Out of scope - OS-wide shield (Screen Time / Family Controls) — app-kiosk chosen; only a fresh effort revisits. - Block persistence across relaunch; sprint records / history / streaks — the block dies quietly. - Gross-words-typed counting — net new words only. - Mentor chat or passes mid-block — editor only. - Cold Turkey on Outline pieces — v1 is Posts + drafts. - S5.1 block-completion stats capture — ruled out 2026-11-04 (#165): returns only as a fresh effort if Cold Turkey becomes the primary drafting mode AND trend points stay sparse for block-heavy pieces. - Keyboard arming shortcut — dot + menu cover v1 (#160); a hotkey is fresh-effort material needing the #87 probe discipline (global hotkeys AND Emacs bindings). Ruled out at closure 2026-11-04: cannot graduate past the reached destination. [Generated by AI]
AlexKucera added the wayfinder:mapwayfinder:map labels 2026-11-04 11:01:22 +01:00
Author
Owner

Map closed — destination reached. (2026-11-04)

Frontier empty at session start: all seven children closed — kiosk probe (#159), contract render (#160), build S1 goal engine (#161), build S2 the lock (#162), calibration gate CALM (#163), S5.1 tie-in (#165), preset chips (#166). No open wayfinder: tickets anywhere in the repo.

  • Build landed on main: goal engine e3195d6, contract render 96e8b5e, the writing lock a9e199f. Calibration ruled CALM at a9e199f; nothing code-touching landed after (only devlog docs).
  • Keyboard arming shortcut — the last fog — moved to Out of scope: dot + menu cover v1 (#160); a hotkey is fresh-effort material needing the #87 probe discipline, and fog cannot graduate past a reached destination.
  • #140 (Cold Turkey Writer): factually complete, but it is the work issue, not a wayfinder ticket — closing it stays Alexander's call under the root AGENTS.md forge rule.

[Generated by AI]

**Map closed — destination reached.** (2026-11-04) Frontier empty at session start: all seven children closed — kiosk probe (#159), contract render (#160), build S1 goal engine (#161), build S2 the lock (#162), calibration gate CALM (#163), S5.1 tie-in (#165), preset chips (#166). No open `wayfinder:` tickets anywhere in the repo. - **Build landed on main**: goal engine `e3195d6`, contract render `96e8b5e`, the writing lock `a9e199f`. Calibration ruled CALM at `a9e199f`; nothing code-touching landed after (only devlog docs). - **Keyboard arming shortcut** — the last fog — moved to Out of scope: dot + menu cover v1 (#160); a hotkey is fresh-effort material needing the #87 probe discipline, and fog cannot graduate past a reached destination. - **#140 (Cold Turkey Writer)**: factually complete, but it is the work issue, not a wayfinder ticket — closing it stays Alexander's call under the root AGENTS.md forge rule. [Generated by AI]
AlexKucera removed the wayfinder:map label 2026-11-04 18:26:37 +01:00
Sign in to join this conversation.