Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR restores cached dashboards before lazy transcript validation finishes and extends the existing benchmark to measure that behavior. Example: Reload Mission control with a saved dashboard while the history-validator download is delayed by 800 ms.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open as the maintainer-authored draft experiment explicitly marked “do not merge”; the source supports its premise, and no definite introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI reads an account-, Gateway-, agent-, and session-scoped IndexedDB snapshot, presents its board through the existing provider, and independently validates transcript receipts before adopting history. flowchart TD
A[Dashboard reload] --> B[Scoped snapshot reader]
B --> C[Board provider validation]
B --> D[Lazy transcript validation]
C --> E[Dashboard presentation]
D --> F[Transcript adoption]
G[Live Gateway] --> C
Technical reviewBest possible solution: Restore boards independently through the existing scoped snapshot reader and board provider while preserving transcript admission and live revalidation. Do we have a high-confidence way to reproduce the issue? Current main visibly chains board restoration behind a snapshot read that awaits the lazy history validator; the body also reports a baseline-failing browser regression, which was not independently run during this read-only review. Is this the best way to solve the issue? The runtime change is a small owner-preserving fix: expose the admitted board before the unrelated await and retain the existing validation and invalidation paths; the benchmark extensions serve the declared comparison. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 16ab1602cb48. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +7, Tests +115, Docs +3, Other +170. Total +295 across 9 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 20, 2026, 1:23 PM ET / 17:23 UTC. |
a23902b to
0fde6ec
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
0fde6ec to
bd14c59
Compare
What Problem This Solves
A signed-in reload of a dashboard deep link can wait for the lazy transcript-history validator before attaching its saved dashboard iframe. This experiment decouples those operations while retaining the existing board provider's shape, session, grant, ticket-aging and
board.getauthority checks. Snapshots without a history receipt continue restoring board and transcript together; in-memory state keeps precedence over stale disk data.Stopped: do not merge. The latest exact-head comparison fails the predeclared no-secondary-regression gate. The correctness regression is reproduced and early attachment is deterministic, but the earlier attachment adds work before connection. The separate compositor-reveal experiment also failed its no-white-flash gate and is excluded from this branch.
Head:
bd14c59f2c98897175ee1dde540fdff832a7b93e. Comparison base:81ad214a7ab33b3b6fc0ab45aaa75199ed5273bf.Evidence
The motivating private evidence recorded 14 visible states during a signed-in reload of a dashboard deep link. Only generic timings and synthetic fixture results are included here; no private captures or conversation content are published.
The latest comparison used AWS Crabbox
cbx_7bbfdb239317, fixedc7a.4xlarge(16 logical CPUs, AMD EPYC 9R14, approximately 32 GiB RAM), repository Playwright Chromium, 11 interleaved baseline/candidate pairs per scenario, a separate sandbox origin, rotating tickets, a 350 ms connect floor, 240 ms connect latency, 160 msboard.getlatency and 35 ms other RPC latency. Both bundles use the same benchmark build identity, with only the two runtime files replaced to produce the baseline.With the validator delayed 800 ms, iframe insertion improved from 813.0 [809.7, 822.6] ms to 366.6 [364.0, 369.6] ms, paired median −451.0 ms, 11/11 better. However, hello handling moved from 626.0 [623.2, 632.3] to 638.8 [634.2, 640.2] ms. These IQRs do not overlap, so the secondary gate fails even though the paired median increase is only +9.8 ms. Connect sent also has a separated worse IQR and paired median +9.6 ms; the paired median change from connect sent to hello handled is +2.4 ms. This places most of the measured shift before the connection request, consistent with the earlier board mount adding boot work. This is timing attribution, not proof of a particular CPU stack.
The ordinary dashboard, fast-valid-receipt dashboard and chat-route controls have no declared secondary regression. The preceding pre-rebase run had passed (iframe 803.6 → 361.3 ms, paired −452.1 ms, hello paired +7.8 ms with overlapping IQRs). It is retained as prior evidence; it does not override the latest gate failure. No repeated run was used to chase a passing result.
All values below are milliseconds, brackets are IQR, and deltas are candidate minus baseline.
Dashboard, 800 ms validator delay
Per-pair deltas
Dashboard, no history receipt
Per-pair deltas
Dashboard, fast valid receipt (1 ms validator delay)
Per-pair deltas
Chat-route control
Per-pair deltas
Separate reveal experiment — excluded
Making the transparent iframe compositor-visible immediately improved actual visible chart pixels in 11/11 pairs in each theme on AWS
cbx_085841bd11f2, also fixedc7a.4xlarge. These are sampled compositor trace screenshots, not host DOM timestamps.No-white-flash gate failed in 2/11 dark candidates. The sandbox root starts without matching
color-scheme; despite transparent backgrounds, the browser briefly paints an opaque UA canvas before the host's theme message.src/agents/sandbox-host.tsdocuments that mismatch. The experimental runtime/style/test patch is reverted and preserved locally, not included in this PR.The result does not establish that agent-authored app JS is the remaining limit: in one inspected dark candidate, inner-document paint occurred at 952.6 ms, visible chart pixels at 973.7 ms, and host resource-loaded handling at 1163.7 ms. A native MCP sibling comparison is incomplete because thin SVG strokes escaped the sampled pixel detector; that setup failure is neither a pass nor a product failure.
Reveal experiment html-light secondary metrics and per-pair deltas
Reveal experiment html-dark secondary metrics and per-pair deltas
Reveal experiment chat-control secondary metrics and per-pair deltas
Proof, CI, and remaining gaps
On
bd14c59f2c98897175ee1dde540fdff832a7b93e, AWS run:session-snapshot-store,chat-pane-history,chat-pane-board.loading,chat-pane-warm-reload).dashboard-cold-load,chat-history-loading,chat-cold-load-anchor). The held-validator dashboard regression fails on the original runtime and passes on the candidate.readsignature. These failures are attributable to this diff, not claimed as inherited failures.tsgowas unavailable through that command; no passing type result is claimed. The snapshot-custody assertion repair is still outstanding. No new commit or CI rerun follows the failed performance gate.pnpm test <file> --maxWorkers=1wall-time captures and Part 1 screenshot upload were not completed after the stop decision. No landing-ready or full-suite claim is made. Synthetic Part 2 filmstrips were inspected locally.Change and size
At the pushed head, the two runtime files total +6 lines net:
chat-pane-history.ts+28/−28 andsession-snapshot-store.ts+8/−2. The requested exclusion stat (git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*') is 315 insertions, 111 deletions (+204). The remaining +198 is the requested fixture and measurement tooling. The runtime growth preserves independent board restoration, invalidation and cache precedence under the existing owner.Nine committed files: the two runtime owners, snapshot tests, dashboard browser regression, offline/reconnect documentation, the cold-load benchmark, dashboard probe, and two synthetic fixture modules. No schema, security-model or configuration change; no changelog edit.
Both experiments stop before merge. A follow-up would need to preserve deterministic restoration while keeping the connect path clear, and separately establish the correct sandbox theme before exposing its canvas. Those changes are not part of this stopped lane.