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
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/plugin2.2.1) - tmux 3.5a, Linux
node_modulessymlinked from the parent checkout; no tracked files were touched by that link.
Command results
| Exact command | Result |
|---|---|
npm run check | Exit 0; strict no-emit TypeScript check. |
npm run verify | Exit 0; 877 passed before the integration merges, 889 passed after 95a4bc5, 905 passed after f12eda8. |
git diff --check | Exit 0; no whitespace errors. |
npm run test:live:sizes | Exit 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
workCardForTasknow returns identity-onlyWorkCarddata: header layout, title, detail, status, needs-you, terminal, tones, tide variant, and content width. It accepts no animation tick or process env.workCardGlyphreads only the 4 fps chrome tick;workCardTidereads only the 10 fps work tick (plus the existing needs-you freeze state). Terminal cards stay flat without reading either clock.workCardForTaskCachedkeeps the previous card reference when every identity field is value-equal.workPaneno longer readsmotionFrame()orworkFrame(), so a tick cannot rebuild titles, names, details, statuses, tones, or layout.WorkCardViewreceivesglyphandtideas 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/shouldRunWorkClockgates; the still frame is verified live withNO_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 shold.
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 cards | Baseline (d9bc3c3, pre-change) | Post-change run 1 | Post-change run 2 | Post-merge (95a4bc5) | Final tip (f12eda8) |
|---|---|---|---|---|---|
| 1 | 27.8% | 6.7% | 8.9% | 5.6% | 8.9% |
| 2 | 25.6% | 8.9% | 13.3% | 4.4% | 11.1% |
| 3 | 24.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.