Repository navigation
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
force-pushed
the
steipete/coldload-route-binding-from-snapshot
branch
from
October 19, 2026 07:44
e3267b3 to
48ffbd7
Compare
steipete
force-pushed
the
steipete/coldload-route-binding-from-snapshot
branch
from
October 19, 2026 07:57
48ffbd7 to
9e1ebd0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
A warm reload of an off-roster full-UUID chat deep link waits for
sessions.resolvebefore mounting its cached conversation. This adds a shell-to-transcript waterfall even though the existing scoped conversation snapshot already proves the exact UUID and agent.Selected variant B: immediate snapshot admission. In 11 interleaved triplets per face, B improves transcript-visible paint in all 11 pairs on both faces: median paired deltas −288 ms (chat) and −264 ms (dashboard). Its FCP costs are +80 ms and +48 ms, within the lead's explicitly accepted tradeoff. The first transcript Element Timing entry equals FCP, and the first LCP entry is transcript text, in all 22 B reloads. The first contentful frame contains the conversation.
Variant C, which yields through one animation frame and a task before admission, fails the primary paint gate on both faces and regresses dashboard LoAF blocking. It is not included in the production change. B passes the seven-pair exact-key dashboard control, including FCP, final rows, LoAF blocking, RPC attempts, and board readiness.
Change
Admit only a complete UUID (32 hex digits, dashes optional) and matching agent from the already-started host/account/profile-scoped conversation snapshot. The snapshot store remains the validation owner; the route and pane share its validated promise instead of reading/decoding the record twice. No new store, persisted fields, scope, product configuration, or server schema.
Keep
sessions.resolveauthoritative: preserve a matching key, replace a moved key, or show not-found and remove cached rows. Prefixes, slug-only URLs, and ambiguity retain their existing resolution behavior.chat.startupfollows the earlier pane mount. Keep the full input URL until authoritative canonicalization; preserve validated navigation handoffs so canonical navigation sends only one resolver request.The bench supports two- or three-bundle cycles and records Element Timing on direct transcript text owners before paint, plus LCP render times and element identity. It does not add a production attribute. Its closed-socket probe repair retains abandoned requests in RPC counts while allowing the benchmark to settle.
Evidence and predeclared decision
Common main baseline cf0ad5c, including L150/#176696. B plus common tooling ec80a8c. B replays the reviewed
9e1ebd03implementation unchanged on this common base. C adds only the recorded three-line frame/task yield for its comparison bundle.Quiet AWS c7a.4xlarge, 16 CPUs, AMD EPYC 9R14; repository headless Playwright Chromium. Eleven continuous A/B/C triplets for each face, same browser per face, identical warm storage restored before every reload. General wire latency 20 ms; resolve/description latency minimum 195 ms. All samples retained. Untraced runs use the same LoAF/RPC probes. The separate seven-pair control uses a normal exact-key dashboard URL, which bypasses UUID admission.
Rule declared before this series:
Times are milliseconds; RPC attempts are counts. Quartiles use the inclusive method.
All eleven paired deltas, variant minus A
chat B
chat C
dashboard B
dashboard C
LCP corroboration
Exact-key dashboard control (seven pairs)
Board readiness is the existing sandbox resource-load milestone, not a presentation timestamp.
Per-pair control deltas:
Validation
Final-head validation is running: focused route/snapshot/reconnect and browser tests, baseline-red visual reproduction, changed-file checks, the Control UI boot budget against the pinned main, and the full UI e2e suite. The new Element Timing browser regression passed locally and on AWS: opacity-hidden nested text does not count as painted until shown. Codex autoreview is clean through P2; subsequent rebases preserved the lane's diff.
AWS lease:
cbx_bb3810ce5dd8; measurement run. Initial pre-measurement lease was released to incorporate newly landed L150; it contributed no samples. Exact-head validation and refreshed synthetic screenshots will be recorded before handoff. No merge requested.Size
Requested non-test/non-doc stat: 341 insertions, 39 deletions; net +302 LOC across nine files. Application runtime: net +109 LOC; benchmark/probe tooling: net +193 LOC. Added tests: +346 LOC; docs net 0. Growth implements the exact-identity and scope checks, authoritative after-hello replacement, and reproducible paint measurement. The duplicate snapshot read-validation path is removed, and the pane reuses the validated snapshot promise.