Repository navigation
Description
Parents
- dogfood(rust): compile authorized real-repository repair corpus and scorecard #1560 — governed Rust repair corpus
- epic: editor/LSP usable alpha — trustworthy saved-workspace evidence to bounded repair #1574 — editor/LSP usable alpha
- gate: ripr-review-comments timeout blanks the seam location — gate fails a real gap it cannot name (residual of #1077) #1419 — enhancement timeout must not blank already-computed static evidence
- perf(lsp): define and enforce interactive latency, work, memory, and output envelopes #1578 — measured interactive performance envelopes
Problem
The fresh governed pilot could not classify two authorized Perl repository candidates even with a 900-second operator bound:
| Candidate | Base | Head | Result |
|---|---|---|---|
| perl-lsp-swarm #4022 | 1a25013ad341caacbaf96ab2298edeea4f1a5e90 |
968464954e5da8e69a0b6b55de8ac349056924f6 |
timeout; no completed report |
| perl-lsp-swarm #4037 | 26ed34f8f1357076f91aed418949dbe7288c93b3 |
6f175766ee03921a7ae13887d915ce9331647516 |
timeout; no completed report |
Commands:
ripr review-comments --root . --base 1a25013ad341caacbaf96ab2298edeea4f1a5e90 --head 968464954e5da8e69a0b6b55de8ac349056924f6 --out target/ripr/fresh-pilot-4022.json
ripr review-comments --root . --base 26ed34f8f1357076f91aed418949dbe7288c93b3 --head 6f175766ee03921a7ae13887d915ce9331647516 --out target/ripr/fresh-pilot-4037.jsonA bounded timeout is acceptable during engineering preview. Returning no machine-readable receipt is not: the operator cannot tell whether time was spent in diff discovery, language facts, canonical comparison, route construction, LLM guidance, rendering, or artifact I/O, and no completed work can be reused.
Required outcome
review-comments must always terminate at or before its configured bound with one typed receipt:
completewhen the requested analysis and rendering finished;limited_timeoutwhen the bound expired;failedfor a named non-timeout error.
A timeout receipt must preserve completed static evidence and name the exact unfinished phase. Expensive optional guidance cannot erase or delay static seam/canonical facts already produced.
Receipt contract
Add a versioned run/phase receipt with at least:
{
"schema_version": "0.1",
"status": "limited_timeout",
"root_identity": "...",
"base_sha": "...",
"head_sha": "...",
"configured_timeout_ms": 900000,
"last_completed_phase": "canonical_gap_projection",
"active_phase": "review_guidance",
"completed_artifacts": ["repo-exposure.json","canonical-delta.json"],
"missing_artifacts": ["comments.json"],
"reusable_cache_identity": "...",
"limitations": [{"category":"analysis_timeout","repair_route":"perf/review-comments-phase-budget"}],
"non_claims": ["no complete route inventory","no all-clear"]
}Exact fields should compose with #1146 and existing run-status vocabulary.
Implementation slices
PR 1 — phase telemetry and receipt
Instrument Git/diff, cache, language producer, canonicalization, route construction, static rendering, optional LLM guidance, and file writes. Write the receipt incrementally and atomically.
PR 2 — cooperative budget propagation
Pass one deadline/cancellation token through bounded analysis loops. Stop at safe boundaries, never publish a partial structure as complete, and distinguish cooperative cancellation from a still-running spawn_blocking task.
PR 3 — reuse completed work
Key reusable artifacts by root/base/head/config/language identity. A retry with unchanged inputs must reuse completed static phases instead of starting the full scan again.
PR 4 — exact-head performance receipt
Re-run the two governed candidate commands and record cold/warm phase timings, memory where reliably measurable, cache behavior, and final status.
Acceptance
- A deterministic fixture forced to exceed the budget writes valid
limited_timeoutJSON before exit. - No timeout path reports zero findings or complete analysis unless that fact was independently completed.
- Static seam locations and canonical identities survive optional review-guidance timeout.
- The two exact Perl commands either complete or produce typed timeout receipts with last-completed/active phases and reusable artifact identities.
- Repeating an unchanged timed-out run reuses completed phases and reports the reuse.
- Wall-clock values remain telemetry only and never enter canonical gap, diagnostic, or result identities.
- Cancellation leaves no orphaned child process, locked cache, half-written JSON, or repository file changes.
- Focused performance fixtures, output schemas, process policy, cache tests, and protected CI pass.
Budget policy
- Measure current cold and warm behavior first.
- Ratify an engineering-preview envelope from evidence rather than choosing an arbitrary success threshold in this issue.
- The configured operator timeout is always a hard upper bound for receipt delivery.
- Real-repository timings remain advisory until host classes and variance are documented.
Non-goals
- No claim that Perl route quality is solved.
- No support-tier promotion from faster execution alone.
- No silent timeout extension.
- No default mutation execution.
- No requirement that optional LLM guidance finish before static output is usable.
Source evidence
docs/dogfood/2026-07-13-rust-pilot.md and the governed corpus rows for #4022/#4037 are the exact-head authorities.
Activity
coderabbitai commentedon Jul 14, 2026
🔗 Related PRs
#651 - Pin Python outcome receipt states [merged]
#706 - dogfood(py): record real-repo eval receipt [merged]
#1491 - feat(perl): add real producer two-binary proof [merged]
#1556 - docs(rerun): close targeted-rerun source of truth [merged]
#1557 - docs(goals): compile remaining Rust repair work into packets [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Jul 14, 2026
Implementation packet: PR1 will add a versioned phase/run receipt at the review-comments orchestration boundary. It will capture exact root/base/head inputs, configured bound, completed and active phase, reusable identity, missing artifacts, limitation/non-claim fields, and atomic write status. The first slice will not change analyzer semantics, add an always-on CI job, or claim that timeouts are resolved; cooperative cancellation and cache reuse remain PR2/PR3. Proof will use a deterministic fixture that forces a bounded timeout and verifies the receipt preserves completed static evidence without fabricating completion.
EffortlessSteven commentedon Jul 14, 2026
PR #1670 implements PR1 of the bounded review-comments receipt lane from commit
337e47af: phase telemetry, exact root/base/head identities, configured timeout, reusable identity, artifact/limitation/non-claim fields, atomic child receipt writes, typed timeout/error fallback, stale-artifact cleanup, and schema/fixture updates. Focused proof is green: 10 ripr review-comments tests, 13 xtask wrapper tests, clippy, output-contract validation, no-panic policy, formatting, and diff checks. The requiredRipr Rust Small Resultgate is still running; auto-merge is enabled. PR2 cooperative cancellation and PR3 reuse remain separate.EffortlessSteven commentedon Jul 15, 2026
Issue update — 2026-07-14
Title: perf(analysis): bound review-comments on large workspaces and always emit a type
Status
This issue is part of the LSP/editor/protocol improvement wave. Based on codebase research:
crates/ripr/src/lsp/) and VS Code extension (editors/vscode/) are the affected surfaces.Recommendations
EffortlessSteven commentedon Jul 15, 2026
Remaining implementation sequence — 2026-07-15
The first slice is open as PR #1670: typed phase/run receipt, atomic write, exact root/base/head identity, completed/active phases, and complete/limited_timeout/failed terminal states.
The remaining work is now split into:
Dependency order:
The parent acceptance remains unchanged: a timeout may limit the result, but it may not return silence, erase completed static evidence, inherit stale artifacts, or resemble an all-clear.
EffortlessSteven commentedon Jul 17, 2026
Codebase Context & Plan Review
Reviewed: 2026-07-17
Current Implementation State
The CLI command
ripr review-commentsis used to generate comments, but when it times out, it does not output a structured receipt. There is no cooperative cancellation or timeout boundary preserving already-completed static phases.Relevant Files
crates/ripr/src/cli/(or whereverreview-commentscommand is defined)crates/ripr/src/analysis/— where phases must respect a cancellation tokenxtask/— likely location for running dogfood tests and collecting metricsPlan Review
The plan correctly diagnoses the unacceptable state of a timeout causing a complete loss of static evidence. Implementing a
limited_timeoutreceipt that preserves completed artifacts and reusing them on retry is crucial for large repositories like Perl. The phased PR approach correctly isolates telemetry, cooperative cancellation, and caching.Blockers
Prerequisite #1419 (enhancement timeout) and #1578 (performance envelopes).
Readiness Assessment
ready-to-implement
Next Action
Implement the
limited_timeoutreceipt schema and cooperative cancellation tokens in the analysis loops.EffortlessSteven commentedon Jul 18, 2026
Codebase Context & Plan Review
Reviewed: 2026-07-17
Current Implementation State
No timeout mechanism exists for large workspace analysis in �ackend.rs.
Relevant Files
Plan Review
Coherent.
Blockers
None.
Readiness Assessment
ready-to-implement
Next Action
Implement budget policy and timeout.
Deep Research Follow-up
EffortlessSteven commentedon Jul 18, 2026
Status review (2026-07-17)
Current status:
partially-done— PR 1/4 (#1670) merged: receipt scaffolding + phase telemetry landed and is wired. But the headline requirement — a typedlimited_timeout/failedreceipt on actual timeout — is NOT yet satisfied. This is the durable parent of #1419. The 2026-07-17 bot comments are both wrong/stale — they missed the merged #1670 and bot #2 mislocates the surface to the LSPbackend.rs(this is theripr review-commentsCLI).What landed (PR #1670, HEAD
be4a33d1)crates/ripr/src/output/review_comments_receipt.rs(185 lines) —ReviewCommentsRunReceiptwithschema_version,status,root_identity,base_sha/head_sha(git-resolved),configured_timeout_ms,last_completed_phase,active_phase,completed_artifacts,missing_artifacts,reusable_cache_identity(sha256 of root/base/head),limitations,non_claims,atomic_write_status. Wired incrates/ripr/src/cli/commands.rs:1485-1614with full phase progression (input_validation→configuration→diff_discovery→language_facts→canonical_analysis→route_construction→static_rendering→artifact_io) and atomic writes.The gap (load-bearing)
The receipt API exposes only
{new, phase, complete, write_atomic, path_for_output, attach_to_json}— there is NOlimited_timeoutorfailedterminal setter, andcommands.rsonly ever calls.phase()and.complete(). Thestatusfield defaults to"in_progress"and reaches"complete"only on the happy path. A timeout/failure does not produce alimited_timeout/failedreceipt today — exactly what #1699/#1700 are scoped to deliver.Children (both OPEN)
#1699 (cooperative deadlines + cancellation through phases), #1700 (reuse completed phases after timeout + cold/warm receipts for perl #4022/#4037). Neither merged.
Recommended next step
Start #1699 — add a
limited_timeout/failedterminal setter toReviewCommentsRunReceiptand a cooperative deadline/cancellation token threaded through the analysis phases incommands.rs, ensuring the receipt is atomically written with the active phase on timeout. #1700 (reuse + measured cold/warm receipts for the two governed Perl candidates) follows. Ignore the 2026-07-17 bot comments — they missed #1670 entirely and bot #2 mislocated the surface to the LSP.EffortlessSteven commentedon Aug 2, 2026
Earnest review (2026-08-02)
Perf(analysis): bound review-comments on large workspaces + always emit a typed timeout receipt. The timeout-receipt work is sliced (#1756, #1778, #1779); #1419 is the user-facing symptom.
Action: keep open as the parent; the receipts and phase-reuse slices are the execution path.
EffortlessSteven commentedon Aug 3, 2026
Deep re-review (2026-08-02)
STATUS: open
EVIDENCE:
limited_timeout/ typed timeout receipt exists forreview-comments. Grep forlimited_timeout,TimeoutReceipt,timeout_receipt,bounded_timeoutacrosscrates/ripr/src/finds onlyverification_execution.rs:118(verification_timed_out) anddomain/verification_result.rs:498-501(a verify-process timeout), neither of which is the review-comments run/phase receipt the issue requires.crates/ripr/src/output/review_comments/scope.rs:17,41,66has arun_statusfield but its values arelimited_diff_scope/scoped/artifact_scope— i.e. diff-scope classification, not thecomplete/limited_timeout/failedrun-phase receipt the issue asks for. Confirmed bycli/commands.rs:5917,5979,6050which assert those scope values.limited_timeoutreceipt naming the unfinished phase.PLAN QUALITY: good. "Always terminate at or before the bound with one typed receipt; preserve completed static evidence; name the exact unfinished phase" is the correct contract and directly addresses the operator's inability to tell where time was spent.
ACTION: keep. This is unresolved and high-value (it blocks trustworthy #1560/#1579 dogfood on large Perl repos). The phase-receipt design should land before counting real Perl attempts.
EffortlessSteven commentedon Sep 20, 2026
Fresh exact-subject evidence from perl-lsp-swarm #16211 local guidance, using ripr source 39290a8 (0.11.0), native Windows Rust 1.95, binary SHA256 BE3C922229C79BCEE78C89FC2E57533CD14C739CB098D5B3435A106431977CD6.
One cold run and one warm traced run both exhausted the unchanged 600000 ms operator bound. Warm execution 2026-09-20T19:14:29.458Z to 19:24:31.968Z exited 124 under the outer process-tree timeout; no ripr process remained and no comments.json/cards were produced. This is TIMEOUT_NOT_PROVEN, not an empty finding set. The internal run receipt remained in_progress/canonical_analysis, so it is not a producer-authored terminal receipt.
Exact subject: base 8908f58e13bdb9c16cd1ce1690f8f00ba59afc42, synthetic head 935f38ff88dc84b4c4d43cf1c10a0594fcfb42d6; 10 changed paths, 88376-byte three-dot patch SHA256 49081be8cf8a8c743e23c8b29665d900bf574f41cb8ab864747adb7b41858f67. No scope exclusions were introduced.
With RIPR_REPO_EXPOSURE_LATENCY_TRACE=1, the warm trace established:
Current source seams: crates/ripr/src/analysis/seam_inventory.rs inventory_diff_scoped_classified_seams_at_with_config (821–925), test_grip_evidence.rs evidence_for_seams (186–215), and test_grip_evidence/related_tests/context.rs CompactGripContext::new (37–175). Cache reuse helps indexing; context construction and subsequent evidence join remain expensive. Store errors need separate classification, not an assumption that cache reuse failed entirely.
This strengthens existing #1604, #1700 and #1699 rather than opening a duplicate. A bounded optimization must preserve immediate-caller closure, seam identities, relation priority, evidence and limitations; compare semantic outputs on completed fixtures before another exact-subject run. Preserve timeout as incomplete evidence, improve cooperative terminal receipts, and do not raise the bound or drop selected seams to manufacture completion. No additional identical run is planned. The parser PR's existing 0.10 required gate remains unchanged and its 63 gaps remain unresolved by this advisory experiment.
EffortlessSteven commentedon Sep 25, 2026
Consumer evidence supporting this (perl-lsp-swarm, ripr v0.10.0, 1,700+-file workspace): the bound is currently unreachable for large diffs, and when it is hit the failure is indistinguishable from infra death. Measured on our required CI gate: the guidance pass starts only after a ~58m fixed consumer floor (build + PR analysis + repo-wide baseline receipt), so a 3600s guidance bound implies ≥115–130m total job time — our hosted runners get evicted (lost-comms/shutdown, 49–132m) before the bound ever fires; zero 3600s SIGTERMs in 424 runs since 09-15. When the child dies we cannot attribute the sink because v0.10.0 emits no phase timings or typed timeout receipt (our xtask writes a fallback
review_guidance.status=incompletereceipt with no stage data, xtask/src/tasks/ripr_evidence.rs). The unreleased main work (per-phase duration_ms receipts, --timeout-ms, typed limited_timeout, RIPR_REPO_EXPOSURE_LATENCY_TRACE) is exactly what we need on the pinned version — a 0.11.0 release would make our gate's failures classifiable tonight.9 remaining items
Correct the registration-budget test comment: the index is unchanged,…
EffortlessSteven commentedon Oct 25, 2026
Reuse investigation result: no single cache change makes a timed-out retry progress; the
language_factsphase is several uncached passes.Same setup as above (debug build, 30 s bound,
RIPR_REVIEW_GUIDANCE_MAX_INDEX_FILES=5000). I tried the obvious fix: route owner attribution through the file-fact cache (build_index_from_paths_with_cache_and_test_harnesses, as seam inventory does) instead of the uncachedbuild_index. Three consecutive runs still timed out inlanguage_factswithlast_completed_phase = diff_discovery. I discarded that change rather than ship an unproven one.Where a warm run spends its time (gdb samples at 8, 16 and 24 s of a 60 s run):
test_changes::touches_test->summarize_file_with_parser, re-parsing changed files with no cache.diff::source::reconstruct_old_source.FileFactsdeserialize throughChecksumWriter), i.e. the cache is read, and the decode itself is a visible cost.So
language_factsis a sequence of passes over the changed files (test-change detection, old-source reconstruction, owner attribution, macro registration, cache decode), most of which re-derive their result per run. A retry cannot resume because none of that work is keyed and persisted, and the phase has no sub-phase receipt saying which pass was running.Smallest useful next steps, each its own PR with a before/after timing on this repro:
language_factsin the receipt, so a timeout says which pass was active.touches_testclassification and the reconstructed old source by content digest.Not done here, and not claimed: any speedup of retries. The Perl re-run (slice 4) still waits for a Perl-capable thread.
Generated by Claude Code
Check the run budget per file while registering macro-generated tests (…
EffortlessSteven commentedon Oct 25, 2026
#10323 landed (f7908af): the macro-generated-test registration loop now checks the run budget per file. Measured before/after on this repo (debug build, 30 s bound): 2 of 4 runs took ~45 s before; 6 of 6 took 30.1 to 31.1 s after.
Still open on this issue, with the evidence on the comments above: sub-phase names inside
language_factsin the timeout receipt, caching the per-run re-derived passes so a retry can progress, receipt-level reuse reporting, and the Perl re-run (needs a Perl-capable thread). Known unchecked steps:MacroVisibility::newand the per-expansion parses inside a single file.Generated by Claude Code
Allow active_step in the review-comments run_receipt schema (#1604)
Name the active language_facts pass in the review-comments receipt (#…
EffortlessSteven commentedon Oct 25, 2026
#10350 merged (2132d48): the review-comments receipt now carries an optional
active_step(corpus_admission,test_change_detection,owner_attribution) whilelanguage_factsruns, cleared on phase advance and completion, and allowed by therun_receiptschema. A timed-out retry can now say which pass spent the budget.Reuse on an unchanged retry is still not claimed. The next slice is caching the re-derived
language_factspasses (test-change classification and reconstructed old source, keyed by content) so a retry can progress, each with before/after timing. A CLI-levelcorpus_admissionassertion rides that PR.Generated by Claude Code
EffortlessSteven commentedon Oct 30, 2026
Measurement for the
language_factscaching slice, release build of main 4995cf0 (+ the #10371 test commit),ripr review-commentson this repo,HEAD~40..HEAD(412 files, +17,328/−1,101),RIPR_REVIEW_GUIDANCE_MAX_INDEX_FILES=5000, default timeout, one run, phase/step read from the run receipt every 0.2 s:timed out during canonical_analysis)Findings:
language_factsis ~26 s of the run;test_change_detectionis half of it. Caching its re-derivation would save at most ~13 s on a retry.canonical_analysis, which takes ~94 s of this run and is where the timeout lands. Cachinglanguage_factsalone would turn a ~121 s failing run into a ~108 s failing run. I'm therefore not building thelanguage_factscache as the perf(analysis): bound review-comments on large workspaces and always emit a typed timeout receipt #1604 reuse slice: it would not change the outcome on this input, and the canonical-analysis cost is in the warm-check parse paths that the inner-loop thread owns (dx-scoreboard: nightly gate red since 10-07 (warm-check slowdowns, R1 self_contradictions, incomplete rows, Perl comparisons) #10809 / perf(analysis): answer the parent-chain shadow check once per file and name #10823).Next: look at what
canonical_analysisre-derives on a retry (same input, same budget) and whether the existing seam/file-fact caches already persist across runs for this command; I'll post that result here. If persisted reuse already covers it, the remaining gap is thatreview-commentsdoesn't use the persisted cache the waycheckdoes, and that is the slice worth building.Generated by Claude Code
EffortlessSteven commentedon Oct 30, 2026
Follow-up measurement (same release build, same 412-file diff, run immediately after the first): the second run is identical in outcome and time: exit 2, ~121 s,
limited_timeoutincanonical_analysis,last_completed_phase: language_facts. So a retry on an unchanged input makes no progress today.Why persisted reuse doesn't help here:
target/ripr/cache/repo-file-factsalready holds 2,574 entries (~751 MB) for this repo's 2,719.rsfiles, and none were written or touched by either run. File facts are warm; the ~94 s incanonical_analysisis downstream compute (probe classification and related-test work), which is the repeated-parse cost being worked on under #10809 / #10823, not a missing cache layer I can add inreview-comments.Conclusion for #1604, with limits (one repo, one diff, one machine):
language_factscache. It would save ≤13 s of a run that needs >121 s.canonical_analysiscost (dx-scoreboard: nightly gate red since 10-07 (warm-check slowdowns, R1 self_contradictions, incomplete rows, Perl comparisons) #10809 owns it), or persisting partial classification results so a timed-out run leaves reusable work. The second is a design question about what a partial result is allowed to claim, so I'm not starting it without a decision; I'd propose it as its own issue if wanted.The Perl re-run (slice 4) still waits for a Perl-capable thread.
Generated by Claude Code
Assert the corpus_admission step in the over-ceiling refusal receipt (#…
EffortlessSteven commentedon Oct 30, 2026
Filed the partial-classification idea as #11107, framed around the open question of what a persisted partial
canonical_analysisresult may claim (reuse identity, unit of reuse, retry claim, fail-closed, cost). Not started; #11107 says to prefer cuttingcanonical_analysiscost (#10809 / #10823) if the input set of a classification can't be known exactly. Whole-phase reuse stays with #1700.Generated by Claude Code
Assert the corpus_admission step in the over-ceiling refusal receipt (#…
EffortlessSteven commentedon Nov 4, 2026
Related retained #1601/#1580 replay (producer-reported; identity and outcome):
language_factscompleted andcanonical_analysisremained active at the 120-second product deadline, with 32 seams evaluated and no comments packet. Retained logs do not include phase-entry/exit or per-seam timing; 122.08 seconds is wrapper elapsed including post-run checks, not exact analysis time. The receipt states pre-timeout canonical work was not persisted. No hot seam or evaluation of either original gap is established.A next discriminator for the existing cost work is phase-entry/exit plus bounded per-seam timing or sampling on a separately selected representative case, under that owner's admission. Preserve #11107's established no-partial-reuse boundary unless exact dependency identity becomes available. This is not a request to rerun the retained case or increase its deadline.