Skip to content

Sub-50ms: total optimistic coverage + grounded Linear research, zero-flicker verified offline - #6

Merged
HomenShum merged 2 commits into
mainfrom
feat/all-artifact-edits-room-iso-ui
Jun 9, 2026
Merged

HomenShum merged 2 commits into
mainfrom
feat/all-artifact-edits-room-iso-ui

Conversation

@HomenShum

Copy link
Copy Markdown
Owner

What

Closes the perceived-latency loop from the sub-50ms research: every UI-surfaced mutation now paints locally, with zero-flicker reconcile guaranteed by Convex's atomic rollback + our shape-parity/replay-idempotent updates (per [email protected] OptimisticLocalStore semantics).

Added optimistic updates (src/app/store.tsx)

  • addResearchRows — exact client mirror of the server's deterministic row builder (same slugs, suffix-dedup, defaults)
  • createArtifact/uploadArtifact — placeholder-id insert + echo guard; authoritative id swaps atomically
  • job cancel/retry — status flips mirroring the server's own transition guards
  • resolveProposal deepened — approve paints the cell value too (killed a visible two-phase flick)
  • Bug fix: sendMsg replay guard on clientMsgId — retrySend could duplicate bubbles for the in-flight window (Convex replays optimistic updates on new server data)
  • Judged skip: startFreeAuto — idempotent-reuse may return an existing job; an optimistic insert would paint a phantom (guaranteed flicker)

Proof (not asserted)

context.setOffline(true) → chat painted 75ms, cell edit 85ms with the network physically unavailable (incl. Playwright overhead); reconnect flushed queued mutations to exactly 1 bubble + identical cell value. 192/192 unit tests, typecheck clean, live-DOM verified on noderoom.live (index-BphkbPrB).

Also

docs/audit/SUB50MS_RESPONSIVENESS.md — grounded research (the literal "sub-50ms" lives in Artman's talks; documented budget is the 100ms cause-and-effect threshold / RAIL input<50ms), 19-row judged technique map, P1 plan (per-artifact queries, render memo, lazy TipTap, upload worker).

🤖 Generated with Claude Code

HomenShum and others added 2 commits June 9, 2026 15:41
…m, judged with code citations

7-agent workflow: 3 research (performance.dev breakdown, Linear sync-engine posts, RAIL/INP) + 3 code audits + 1 judge. Key finding: the literal 'sub-50ms' lives in Artman's talks, not a blog; the documented budget is the 100ms cause-and-effect threshold (RAIL: input <50ms -> response <100ms). NodeRoom meets it on every hand interaction via 5 optimistic mutations; 4 P1s close the at-scale gap (per-artifact queries, render memo/slices, lazy TipTap, upload worker).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ints locally, zero-flicker verified offline

Per the sub-50ms thesis (Convex OptimisticLocalStore): rolled-back-atomically + replayed semantics make zero flicker structural IF updates are shape-parity-exact and replay-idempotent. Added: addResearchRows (exact deterministic mirror of the server row builder), createArtifact/upload (placeholder id + echo guard), job cancel/retry (server-guard-mirroring status flips), deepened resolveProposal (approve paints the cell too — killed a visible two-phase flick). Fixed real replay bug: sendMsg now guards on clientMsgId (retrySend duplicated bubbles). Judged skip: startFreeAuto (idempotent-reuse path would paint a phantom job). Factored withCellApplied shared by hand-edit + approve paths.

Proof: context.setOffline(true) -> chat painted 75ms, cell 85ms with network physically unavailable; reconnect flushed to exactly 1 bubble + identical cell value. 192/192 tests, live-DOM verified on noderoom.live (index-BphkbPrB).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@vercel

vercel Bot commented Jun 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
noderoom Error Error Jun 9, 2026 10:57pm

Request Review

@HomenShum
HomenShum merged commit cfca823 into main Jun 9, 2026
2 of 5 checks passed
HomenShum added a commit that referenced this pull request Jun 28, 2026
feat(grid): soft-wrap + dynamic row height + auto-grow cell editor (web-design audit #1/#2/#6)
HomenShum added a commit that referenced this pull request Jun 29, 2026
…board nav (#6) onto the fleet editor

Reconciles PR #81 with the concurrent commit 94c2986 (Nebius) that replaced the #71 cell editor
and dropped #6. Rebased onto main's editingId/.r-cell-editor editor (kept intact) + layered additively:
- #18: row-density presets (Compact clips, Default/Comfortable wrap; persisted per artifact) +
  name-box/value-bar (selected cell A1 + full value) + .num nowrap.
- #6 (restored): grid keyboard grammar - arrows move the active cell, Tab moves, Enter/F2 opens
  the fleet's editor (beginEdit), gated on locked/proposed/merged.

Verified live: namebox A1 / valuebar CardioNova; compact->nowrap, comfortable->normal; ArrowDown
moves sel (cardionova->mercury), Enter opens .r-cell-editor; no console errors. Typecheck/build clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

This branch had an error being deployed

1 failed deployment
Preview — 64d2cb27 Deployed Jun 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant