Repository navigation
feat(dx-scoreboard): check editor save bursts and restart after termination - #11731
Conversation
…ination (#11586) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvmPmmYH8ds2iJRdXvpvLW
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review of record, head 0cf643145 amended to the pushed head (see PR head SHA) Angles (inline pass by the owning session; no external provider review available):
Blocking findings: none. Generated by Claude Code |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 39 minutes. View limit details
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Review of record, head b53af14 (supersedes the earlier comment, which named a pre-amend SHA; the reviewed diff is the same four files at this head). Angles, findings and resolutions are as stated above: no blocking findings, one non-blocking limit (tiny fixture may finish before the 500 ms termination). Generated by Claude Code |
|
CI on b53af14: Generated by Claude Code |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The burst check accepts the first save whose notification succeeds, then waits only for a terminal attempt; if a later save notification fails, the metric can remain zero despite not processing all four saves.
Verification questions
- Confirm the crash scenario is not guaranteed to terminate a server mid-refresh: the code sleeps 500 ms after saving and unconditionally kills the server, even if its refresh already succeeded.
- Confirm the real-server test is opt-in through RIPR_DX_EDITOR_BINARY and therefore the default test suite does not execute the new instrument.
- Confirm the only added test is opt-in through RIPR_DX_EDITOR_BINARY and returns success when unset, so normal CI can pass without executing any resilience behavior.
- Confirm the real-server test asserts only an empty failure list; it does not prove four saves settle on one succeeded attempt, that superseded attempts are handled, or that termination occurs during refresh.
- Confirm the burst loop awaits each save_edit call before starting the next save, so the comment claiming each save lands while the previous refresh is in flight is not established by this code.
- Confirm the burst check waits for one terminal did_save after all saves, but does not assert that intermediate attempts were superseded or that multiple attempts were actually created.
Evidence gaps
- The seeded thread reports cargo xtask precommit and an opt-in real-server test passed on reviewed head b53af14, but the current cargo-test receipt is absent and no base-plus-new witness is shown.
- Model proof intent was rejected by deterministic validation.
- The restart path is explicitly covered only when the real-server environment variable is set; the unit test otherwise returns success without exercising the instrument.
|
Reply to the advisory review on b53af14.
Not a merge blocker, so no code change. Waiting on #11734 for the unrelated role-authority failure. Generated by Claude Code |
|
Review of record, head 9f361c9 (4 files, +254; main merged).
No blocking findings. Threads: 0. Merge gate: exact-head Generated by Claude Code |
Requested by Steven · project thread
Governing issue or accepted claim: #11586
Acceptance delta (one sentence): The DX scoreboard fails when a burst of editor saves does not settle or a restarted editor server cannot refresh the checkout a terminated one left behind.
What changed
measure_editor_resiliencedrivesripr lsp --stdiothrough two checks per corpus repo: four saves 100 ms apart must end in onesucceededrefresh, and after the server is terminated mid-refresh a fresh server must refresh the same checkout tosucceeded.trust.editor_resilience_failures(count, target 0, no regression margin), emitted next totrust.self_contradictions.RIPR_DX_EDITOR_BINARYnames a binary (skipped otherwise, as xtask tests build none).Limits
On the tiny fixture the analysis can finish before the 500 ms termination, so that check proves the restart path, not termination exactly mid-analysis. Nightly corpus repos analyse for seconds, which exercises it.
Generated by Claude Code