fix(posts): bind rides the WorkspaceView root task (#179 follow-up) #186

Merged
AlexKucera merged 1 commits from fix/posts-bind-root-task into main 2026-11-10 16:56:39 +01:00
Owner

Finish-audit follow-up to #179 (landed as 5bf0955), ported from the PR #185 audit.

Finding

The model bind rode PostsPaneView's pane-local .task(id: home), which unmounts with the Posts pane. After a Settings Home repoint, the Archive pane and every root sheet (import / new project / convert — all on the WorkspaceView root) kept writing through the stale watchedHome until Posts remounted. A regression window the pre-#179 code didn't have (its verbs read the gate's Home fresh at call time).

Fix

  • WorkspaceView root .task(id: gate.museionHome) { gate.posts.bind(home:) } — first frame + every repoint, whichever pane is showing. Stacks with the rail's existing mid-pass repoint refusal (that one guards the pass advance's minutes-long turn; this closes the global window).
  • Comments + Museion/AGENTS.md bullet corrected: bind is the one writer, driven by the root task (the old text claimed "construction + the Settings repoint" as two writers).

Not ported from the audit (already resolved on main): dead home: sheet params cut by 5bf0955; failure observability covered by the five rail pins + sheet-AND-strip createProject routing.

Verify

  • Full unit suite: executed 681 / passed 681 / failed 0 (xcresult count).
  • swiftformat 0 dirty; swiftlint 279/60 in 141 files — identical to main's baseline.
  • Unpinned delta: view wiring, no render harness — verified by build + suite; the bind seam itself is pinned by the nil-Home refusal pin.

Context

PR #185 was a second, complete #179 implementation (parallel to 5bf0955); merging the two was a semantic git cannot see, so #185 is closed as superseded per owner decision. Its audit survives here as this port.

Finish-audit follow-up to #179 (landed as 5bf0955), ported from the PR #185 audit. ## Finding The model bind rode PostsPaneView's pane-local `.task(id: home)`, which unmounts with the Posts pane. After a Settings Home repoint, the Archive pane and every root sheet (import / new project / convert — all on the WorkspaceView root) kept writing through the stale `watchedHome` until Posts remounted. A regression window the pre-#179 code didn't have (its verbs read the gate's Home fresh at call time). ## Fix - `WorkspaceView` root `.task(id: gate.museionHome) { gate.posts.bind(home:) }` — first frame + every repoint, whichever pane is showing. Stacks with the rail's existing mid-pass repoint refusal (that one guards the pass advance's minutes-long turn; this closes the global window). - Comments + Museion/AGENTS.md bullet corrected: `bind` is the one writer, driven by the root task (the old text claimed "construction + the Settings repoint" as two writers). Not ported from the audit (already resolved on main): dead home: sheet params cut by 5bf0955; failure observability covered by the five rail pins + sheet-AND-strip createProject routing. ## Verify - Full unit suite: executed 681 / passed 681 / failed 0 (xcresult count). - swiftformat 0 dirty; swiftlint 279/60 in 141 files — identical to main's baseline. - Unpinned delta: view wiring, no render harness — verified by build + suite; the bind seam itself is pinned by the nil-Home refusal pin. ## Context PR #185 was a second, complete #179 implementation (parallel to 5bf0955); merging the two was a semantic git cannot see, so #185 is closed as superseded per owner decision. Its audit survives here as this port.
AlexKucera added 1 commit 2026-11-10 16:56:34 +01:00
fix(posts): bind rides the WorkspaceView root task (#179 follow-up)
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
b8089534cf
The pane-local PostsPaneView .task(id: home) unmounted with the Posts
pane, leaving watchedHome stale after a Settings Home repoint while the
Archive pane and every root sheet (import / new project / convert) kept
writing through it. The bind now rides the WorkspaceView root task:
first frame + every repoint, whichever pane is showing. Comments and
the Museion/AGENTS.md bullet name the one writer honestly.

Follow-up to #179 (5bf0955) from the PR #185 finish-audit; PR #185
closed as superseded — two complete implementations of the same ticket,
main's stack carries six commits on top. Suite 681/681, lint parity.
AlexKucera merged commit 06ab149c55 into main 2026-11-10 16:56:39 +01:00
Sign in to join this conversation.