feat(cold-turkey): the writing lock (#162)
CI / ci (push) Canceled after 0s

Wires #161's goal engine and #160's contract into the app: armed
from a corner dot or View ▸ Start Cold Turkey…, enforced by the
macOS app-kiosk (7-option presentation combo + fullscreen, restored
on completion), readout with hairline + near-goal terracotta, and
a completion note fading back into focus. While held: focus exit,
reading, new buffers, ⌘W/⌃⌘F/⌘N refused (key-code-matched monitor
— character matching is layout/Caps-blind; no .closeItem placement
exists), ⌘Q asks once per #163's ruling. Typing continuity holds by
construction — lock ⇒ focus freezes the branch under the editor and
chrome mounts as overlays only. Arm values type directly (1…1000
words / 1…60 min, defaults 250/5). Nothing persists.

Wayfinder map #158 Build S2; suite 620, flip-verified pins.
This commit is contained in:
AlexKucera committed 2026-11-04 15:58:47 +01:00
1 parent 7b6abb5d65
commit a9e199fce4
16 files changed
+1167 -19

No files matched your search

+16 -1
View File
@@ -47,14 +47,29 @@ struct PostsPaneView: View {
// the workspace background is all that remains. The mentor
// returns by right-edge hover (overlay below) — only while the
// width budget grants it (#17's collapse verdict stands here too).
// #162: hover reveal suppressed while a Cold Turkey block holds
// (editor-only — passes and chat unreachable, #158 settle 5);
// the Cold Turkey chrome mounts on this branch, so a lock
// transition never restructures the editor column itself
// (typing-continuity AC — the #87 remount hazard).
ZStack(alignment: .trailing) {
editorColumn
if showsMentor {
if showsMentor, !gate.writingLock.isLocked {
FocusOverlayPanel(edge: .trailing, panelWidth: DesignTokens.mentorWidth) {
mentorColumn
}
}
}
// #162: the Cold Turkey seat (arm-bar | readout | note,
// bottom-center) + the quiet corner dot — overlays only,
// never wrappers around editorColumn.
.overlay(alignment: .bottom) { ColdTurkeySeat() }
.overlay(alignment: .bottomTrailing) { ColdTurkeyDot(model: model) }
.onDisappear {
// Leaving focus mid-arm drops the bar (no stale bar on
// the next focus entry).
gate.writingLock.showsArmBar = false
}
} else {
HStack(spacing: 0) {
if showsLibrary {