Skip to content

Ticket #142 verification — Work card motion isolation — 2026-11-07 ​

Parent spec #130 (durable dispatch-group Work pane and event-driven state), child ticket #142 (split static Work-card data from animated glyph/tide cells). Worktree /home/tristan/dev/ensemble-t142, branch ticket/142-motion-isolation, based on integration/ensemble-v7 at d9bc3c3 (includes #136 group layout and #137 card visuals). The current integration tips 95a4bc5 (#140 shell feed) and f12eda8 (#139 message streaming) were merged before the final verification pass.

Environment ​

sh
export PATH=$HOME/.nvm/versions/node/v26.12.1/bin:$HOME/.local/bin:$PATH
  • Node v26.12.1, npm 12.2.1
  • OpenCode 2.2.6 (local host; package lock still pins @opencode/plugin 2.2.1)
  • tmux 3.5a, Linux
  • node_modules symlinked from the parent checkout; no tracked files were touched by that link.

Command results ​

Exact commandResult
npm run checkExit 0; strict no-emit TypeScript check.
npm run verifyExit 0; 877 passed before the integration merges, 889 passed after 95a4bc5, 905 passed after f12eda8.
git diff --checkExit 0; no whitespace errors.
npm run test:live:sizesExit 0 four times after the compact-row reactive fix; 80×24, 100×30, 120×40, and 160×50 group/layout/focus/composer checks; NO_COLOR still-motion check.

Static/motion split ​

  • workCardForTask now returns identity-only WorkCard data: header layout, title, detail, status, needs-you, terminal, tones, tide variant, and content width. It accepts no animation tick or process env.
  • workCardGlyph reads only the 4 fps chrome tick; workCardTide reads only the 10 fps work tick (plus the existing needs-you freeze state). Terminal cards stay flat without reading either clock.
  • workCardForTaskCached keeps the previous card reference when every identity field is value-equal. workPane no longer reads motionFrame() or workFrame(), so a tick cannot rebuild titles, names, details, statuses, tones, or layout.
  • WorkCardView receives glyph and tide as separate reactive props. Its header computation tracks only the glyph clock; its tide row tracks only the work clock.
  • Reduced motion continues to pin both clocks to frame zero through the existing effectiveTick/shouldRunWorkClock gates; the still frame is verified live with NO_COLOR=1.

Group hold and status expiry ​

Removing the animation clocks from workPane would have frozen the #136 1.2 s group hold and derived deadline/lease transitions. A dedicated one-shot timer now invalidates the static pane at the earliest of:

  • a non-terminal task's deadlineAt,
  • a working task's leaseUntil,
  • a complete group's latestTerminalAt + 1.2 s hold.

nextWorkInvalidation is pure and unit-tested. It is not an animation clock and does not rebuild glyph or tide data. Needs-you freeze frames for visible cards are refreshed during static invalidation, because a needs-you card stops the 10 fps clock and otherwise would age out after 8 s.

CPU load probe ​

npm run test:live:sizes records one 0.9 s TUI-process CPU sample per card count at 160×50. Samples are noisy observations, not thresholds.

Working cardsBaseline (d9bc3c3, pre-change)Post-change run 1Post-change run 2Post-merge (95a4bc5)Final tip (f12eda8)
127.8%6.7%8.9%5.6%8.9%
225.6%8.9%13.3%4.4%11.1%
324.4%18.9%14.4%10.0%18.9%

The baseline is a single sample from the unmodified integration tip in the same environment. All post-change runs trend materially lower; the harness does not gate on these numbers. The first post-change attempt failed the 80×24 compact-cursor check because compact rows had captured selection and glyph values when the static pane stopped re-running. That fallback now uses a local reactive memo, and all recorded runs above are from passing executions.

Residual risks ​

  • CPU figures are single short samples on Linux/tmux; they establish direction, not a precise regression budget.
  • macOS/Herdr checks are out of scope for this ticket and remain for #143.
  • The expiry timer is app-local; a suspended process reschedules the next due transition when it resumes and re-renders.

Released under the MIT License.