Repository navigation
fix(lsp): disclose budget omissions in pull diagnostics - #7861
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 14 minutes. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE — exact-head source/oracle review found no actionable defect; hosted qualification remains missing.
Reviewed head: ae1f17f, original base 78312b3. Published head readback matches; current base d07de9f is mergeable. Main movement is unrelated to the seven-file repair and does not require restacking.
Inspected complete diff, shared marker renderer, omission projection, snapshot/cache commit coupling, admitted URI lookup, ordinary refresh/rollback/restoration consumers, both pull handlers, quarantine and previous-only clearing, spec, traceability and new oracles. The stored selection remains the only budget authority. Cached omissions are derived from the immutable committed snapshot; latest_pull_snapshot checks Arc identity before cache reuse. Both rendering and result-ID hashing consume the same delivered payload. Quarantine serves empty reports under a distinct ID; previous-only URIs cannot acquire an omission marker. Synthetic limitations remain outside canonical counts and finding-context actions.
The strongest plausible partial fix (append a marker but hash only the selected findings) is rejected by the identity test: selected payload and supplied selection identity remain constant, omitted count changes, and both real pull handlers must return full/new ID. Regression-only bde5ad7 executed four intended failures, Cargo 101. Exact head now passes 12 parity/selection tests, 3 existing identity controls, and 1 no-action control, with zero failures or ignored subjects. A separate read-only reviewer independently inspected the cache/oracle/consumer paths and found no actionable source or test defect; that report is source/oracle evidence, not external GitHub approval.
The framed push proof exercises the production committed-snapshot restoration path and compares its actual publishDiagnostics payload with both real pull handlers, with literal count/code/scope/budget/evidence pins for document, workspace, byte, zero-selected and under-budget cases. This is bounded server transport proof, not a full initial refresh or packaged editor test. A non-blocking future oracle could vary only retrieval route or complete-evidence identity; current source hashes both, while the executed identity discriminator specifically varies counts.
Local check-fast/precommit are still in progress. Ordinary Draft checks are running; required Routed Rust Small qualification has not been requested (the repository requests it via Draft to Ready). Native Windows, packaged editor acceptance and whole #2596 closure are not established. #7757 app/pipeline and #7408 extension ownership stay separate. Rolling polish remains outside the 0.11 hard cut absent #2766 admission. No release, deployment, cutover, upstream, protection or credential actions.
Keep Draft. Parent delivery owner resumes exact published-head review and qualified protected integration after terminal local/hosted evidence and current findings are reconciled. No auto-merge is armed.
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm review evidence is partial: cargo-test scheduled-late, ripr sensor failed exit 2, cargo-check/clippy/fmt/build/mutants/miri disabled by profile; cannot independently confirm diff compiles, lints, tests pass at published head beyond the disposed-as-of REVIEW_INCOMPLETE author comment.
Refuted
Box::from(slice)allocation failure does not returnNone; recoverable fallback claims are dropped.- Should the omission marker be appended inside served_diagnostics_for_uri so all transports (incl. transactional rollback publishers and ordinary refresh) inherit it without per-call plumbing?; refuted because: The omission marker is a transport payload over the stored selection, not canonical evidence; folding it into served_diagnostics_for_uri would inflate snapshot.diagnostic_count(), break selected-ID parity oracles and the existing ledger of tests that filter canonical evidence. The shared delivered_diagnostics_for_uri helper plus the snapshot-scoped omissions cache is the exact smallest-complete-fix boundary the spec mandates.
- Workspace pull handler re-evaluates budget when applying omission to items, double-computing budget across many URIs.; refuted because: rebuilt once per snapshot via DiagnosticResultIdCache::for_snapshot; cache holds delivery_omissions derived from committed selection; pull handlers only read it.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE — no actionable source, contract, or test-oracle defect found on the exact published head. Next stage: reconcile actual missing local proof receipts, then parent-owned Ready-generated qualification.
Reviewed head: ae1f17f (tree 470970c9974007e7a330e99667f27c46e8f54213). Original/merge-base basis: 78312b3. Governing claim: #7770, RIPR-SPEC-0126; this is server omission/identity parity, not completion of #2596 or packaged editor acceptance.
Integration observed directly through Git: remote pull/7861/merge remains 535fc39, parents d07de9f and reviewed head, tree 165c041ac72229d008553ce3b66cdc65aad89684. Actual main is 405deb0. Main's intervening changes affect analysis/app/corpus and separate traceability entries, with no changed LSP omission/identity consumer. Local merge-tree with actual main is conflict-free, tree 84c2f6812cb45044059b440fc51ebec9c7071a5b; this is composition inspection, not executed combined-tree qualification. The remote subject is behind; no material missing prerequisite for this omission repair was identified. Parent must still inspect the actual qualification checkout. Behind-only movement does not justify restacking.
Inspected complete seven-file diff, original #7770 and parent #2596 contracts, all-state claim searches, existing substantive review and threads, diagnostics/state/backend production consumers, selector/document omission projection, ordinary push refresh, rollback, quarantine restoration, both pull handlers, result-ID cache construction/commit/read coupling, URI aliases, previous-only clearing, canonical counts and action exclusion, spec, traceability and changelog. Claim-specific all-state search found this current repair and historical push-only #4191, with no equivalent competing #7770 candidate; #7757 app/pipeline and #7408 extension ownership remain separate.
Why no source finding: stored selection is the membership and omission authority; the renderer is unchanged apart from its shared owner. Cache reuse requires matching snapshot Arc identity, with snapshot and cache committed under the existing locks. IDs and delivered reports consume the same marker projection. Missing/profile-only/unavailable selections cannot invent markers; dirty-buffer quarantine returns empty reports under distinct IDs; previous-only URIs clear without an omission. Synthetic limitations retain no canonical evidence/action identity. No platform/dependency/workflow/security authority was added.
Observed independent Linux/Bash execution using officially recovered pinned Rust/Cargo 1.95.0, locked dependencies, isolated review-owned source/target:
- cargo test --locked -p ripr --lib delivery_selection_parity_tests -- --test-threads=1: native 0; 12 passed, 0 failed/ignored, 10554 filtered. Includes all five new tests and framed real publishDiagnostics restoration-path parity, document/workspace/byte limits, zero selected, retraction, alias, quarantine and fallback controls.
- Exact-head compiled executable: diagnostic_result_ids filter, native 0, 3 passed; delivery_omission_has_no_finding_context_action filter, native 0, 1 passed. Full test inventory retained.
- Deliberate partial fix in the review-owned tree only: in document_diagnostic_result_id_with_omissions, replace delivered_diagnostics_for_uri(snapshot, uri, omissions) with snapshot.served_diagnostics_for_uri(uri), while keeping marker rendering intact. cargo test --locked -p ripr --lib omission_tests -- --test-threads=1 compiled and exited 101: 3 passed, 2 failed, 0 ignored. Count-change assertion at omission_tests.rs:129 and under-budget retraction assertion at :160 each observed left String("unchanged"), expected "full". Wire parity/alias/fallback remained green. These are intended behavioral failures, not setup or compiler failures; they establish that merely displaying the marker cannot satisfy the identity/retraction oracles. The failures occur at document assertions; later workspace assertions in those failing tests were not reached.
- Additional review-only control, with submitted production unchanged: separately mutate only continuation_or_inspect_route or complete_evidence_identity on the stored Applied result, while retaining identical selected diagnostics, counts and snapshot_profile_budget_identity. Both real pull handlers returned full/new identical IDs and the literal changed marker field. One test containing both cases passed, native 0, 0 failed/ignored. This closes the route/evidence-only question raised in the preceding review; it is experimental proof, not a committed test on the submitted head.
Retained artifact hashes: exact-head tests SHA256 45c45041116d22b77dcada4e5efa418d9b856dc12f023e30b3b6d0fcb83cecc2; partial-fix witness c7b29a20528e1b2da905e4d61d382a218d75fee7b92dc7566fb0f74adade82c3; additional-control witness d3b1cac4aa25a1287554d6898dd8b2e46a89ae093978a40b0d8c32bb17ec6dda. Raw logs, exact patches, full inventories and admission receipt are retained in this review environment under /workspace/review-7861-evidence. These paths are environment-local locators; the observed commands, results, mutation and hashes above are the durable GitHub record. Source was restored to the reviewed object; submitted branch/shared writer checkout were not edited.
Observed hosted jobs: CI run 38508095586 has Rust-only feature tests in progress; MSRV, Perl/release and VS Code jobs are skipped. Security run 38508095564's dependency-review and cargo-deny jobs completed successfully. Droid is queued; Gemini and CodeRabbit quota notices provide no substantive review. Review-thread read returned no threads. Running CI job-log retrieval returned 404 BlobNotFound, so its terminal execution/checkout is not established here. Required Routed Rust Small has not been generated; routed-rust.yml requests it on ready_for_review. No CI was dispatched, cancelled or duplicated.
Reported, not independently observed here: author check-fast/precommit remain in progress per current continuation; original regression-only witness and author's prior focused executions are reported evidence, not this review's new execution receipts. Native Windows, complete initial-refresh/editor composition, packaged VS Code and full #2596 acceptance remain outside this server proof.
Disposition/continuation: REVIEW_INCOMPLETE for missing terminal writer check-fast/precommit receipts and required hosted qualification, not REPAIR_REQUIRED. Parent obtains the existing local drivers' terminal receipts and reconciles affected current findings; after those are sound and qualification is reasonably expected green, parent requests the single normal Draft-to-Ready qualification, verifies actual checkout/parents/tree and required jobs, then completes published-head merge review. No source repair or integration conflict identified. Do not require the Ready-generated result before the transition that creates it. No defect issue filed because no verified current defect was found. No release/deployment/access/policy/hold change; Ready and protected merge remain parent-owned.
#12444) * fix(editor): surface diagnostic budget overflow in Show Status (#2596) Advances #2596 by projecting the collectWorkspaceStatus delivery-budget omission record into the VS Code output channel and correcting stale transport docs after pull parity landed in #7861. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com> * fix(editor): tighten budget overflow status parsing (#2596) Count only delivery omissions (exclude profile_filtered), surface byte-cap overflow when omitted_count is zero, add changelog fragment, and extend tests including Show Status wiring. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
Summary
Budget-truncated pull diagnostics now carry the same typed limitation as push diagnostics. The result ID hashes the complete delivered payload, so changed omission state cannot be hidden by
unchangedwhen the selected findings stay identical.Fixes #7770. Refs #2596; governing spec RIPR-SPEC-0126. Ordinary same-repository LSP repair in EffortlessMetrics/ripr-swarm.
Scope and relationships
One production behavior: visible omission and result-identity parity across existing diagnostic transports. Branch
fix/7770-pull-omission; base78312b335cdb1558372aded3a4911073052753a9. No stack or replacement. Current issue/comment and all-state claim-specific PR searches found no equivalent writer before editing.The existing selector remains the sole budget authority. The unchanged marker renderer moves into the shared diagnostics owner. Pull handlers and IDs consume the stored selection's omission record; a snapshot-scoped cache avoids rebuilding that record for every workspace item. Stored document keys handle admitted request aliases. Canonical evidence, default budgets, quarantine, logging and action eligibility remain under their existing owners.
#7757 retains app/pipeline performance ownership; #7408 retains extension ownership. This is rolling polish outside the 0.11 hard cut absent #2766 admission. It does not complete #2596, packaged VS Code acceptance, complete-evidence delivery, or overall editor/release readiness. No release, deployment, production-cutover, upstream, credential or protection change.
Acceptance and proof
publishDiagnosticsfrom the production committed-snapshot restoration path, compared with both real pull handlers; literal counts/budgets/code/scope pinsExact-base doctor, zero-path check-fast (six applicable gates) and
cargo check --locked -p ripr --libpassed on Linux/Bash, Rust 1.95.0 with unchanged declared locked dependencies.Regression-only witness
bde5ad7b5fca92499d1e37b7ce09aeeadf838a7c:cargo test --locked -p ripr --lib omission_tests -- --test-threads=1executed four tests; all four failed on the intended payload/identity assertions, Cargo exit 101. The preceding interrupted undriven-socket run is excluded from terminal red evidence.Exact candidate
ae1f17f59a3bc65ff5b60e0f0beb92ae9c6812e8passes 12 parity/selection tests (including five new tests), three existing diagnostic identity controls, and one synthetic-marker no-action control. All have zero failures/ignored and native Cargo exit 0. The wire test covers document cap, workspace cap, byte cap, zero selected findings with one marker, and later under-budget replacement. Exact-head check-fast passes 14 applicable gates and one fixture-contract skip; its seven-path selector was independently matched. Precommit v2 passes, including aggregate policy/fixture contracts and selected ripr/xtask all-target Clippy, with native driver exit 0. Report digest:sha256:4ec6cbb19c862293726f4278bdb1aca8858cbc22470ceae978a752a86428012e.Traceability, engineering and rollback
Spec/test/code mapping updated in RIPR-SPEC-0126 and
.ripr/traceability.toml; the focused payload tests live incrates/ripr/src/lsp/backend/delivery_selection_parity_tests/omission_tests.rs. Existing selected-ID tests explicitly exclude the synthetic transport limitation from canonical evidence IDs. No analyzer/golden/schema/dependency/workflow/process/network surface changes. Support-tier impact: none. CI economics: n/a; no labels or broad CI requests added.Changelog:
changelog.d/7770-pull-diagnostic-omission.mdmatches the canonical Fixed marker, bullet and trailing issue reference. Revert the scoped squash to restore prior pull behavior; no migration or external state rollback.Continuation
Candidate:
ae1f17f59a3bc65ff5b60e0f0beb92ae9c6812e8. A separate read-only exact-head review inspected the complete seven-file diff and authority/cache/URI/quarantine/previous-result paths, found no actionable source/oracle defect, and confirmed the count-only identity oracle rejects a marker-rendering-only partial fix. The COMMENT review records its source/oracle conclusions; local checks that were pending there are now terminal green. No external approval is implied. Gemini/CodeRabbit quota notices are missing reviews, not clean reviews; no paid or repeated request was made.Remote merge subject read through git:
535fc39f2a17a3a2f4289896dcf847b3e41e684a, parentsd07de9f35b6909feb066290d726eaea1c802dfd7and the reviewed head, tree165c041ac72229d008553ce3b66cdc65aad89684. It includes landed #7757 and carries identical LSP repair bytes. Main subsequently reached405deb02681372f9b6f684d4d22c53e82b260ad6through unrelated Rust analyzer repairs; its traceability additions concern SPEC-0197, not this SPEC-0126 mapping. Read-only merge-tree succeeds; it is not substituted for hosted checkout evidence. No behind-only restack or unaffected rerun. Latest observed threads: zero; no material findings. Security, Source of Truth and Printed Command Paste are green; ordinary Draft CI/advisory/provider work remains pending.Requested exactly one expected-green Ready-triggered qualification after exact-head local proof, separate review, current findings and remote subject inspection. Ready readback confirms unchanged head and
draft=false. Routed Rust Small run 38509185416 is in progress on GitHub Hosted; Rust gates job115673590436completed checkout, formatting and agent-skill preflight and is executing repository policy preflight. Required tests/Clippy/goldens and the terminal aggregate remain pending. Fetching that running job's decoded logs returned HTTP 404 BlobNotFound, so its actual checkout commit/parents/tree are not yet observed. This is not replaced by the separately read pre-Ready merge ref. No repeated Ready toggle or CI rerun.Disposition remains REVIEW_INCOMPLETE until actual hosted checkout, jobs, denominators and current findings are reconciled.
ghclassic-review-protection and active-rules GETs both returned Forbidden; that is an unreadable-policy gap, not absence of protections, and must be resolved by the parent before protected integration. Gemini/CodeRabbit quota notices remain missing provider reviews; no paid request was made. Ordinary Draft CI and ub-review now report aggregate success, without promoting skipped/uninspected steps into required qualification.Retained local proof:
/tmp/7770-proof/{baseline-doctor,baseline-fast,baseline-check,red-complete,head-parity,head-identity,head-marker,head-fast,head-precommit}.logandtarget/ripr/reports/{check-fast,precommit-v2}.md/jsonin the selected saved environment. Source/tests and this proof summary are delivered through this PR; raw local logs are retained there rather than claimed as uploaded artifacts. Red log: 37022 bytes, SHA2568dfde1a3e0278ce2f5d9202cc50ebbb7aba00cc25ae353d535a1635bdce604ce; exact-head parity log: 1862 bytes, SHA2566ffcf15cfe2e6372e2a7063c8f6559a0e3982a9176eae70486fb94cbb675234d. Rust 1.95.0 / Cargo 1.95.0, Linux/Bash; no local command remains running. Worktree, branch, cached target and small proof logs are retained for the pending integration consumer; no unrelated artifacts were deleted.Owner: delegated #7770 LSP repair writer through local admission; parent delivery owner resumes actual hosted-subject inspection, exact published-head review and qualified protected integration. No auto-merge armed. Native Windows and packaged editor acceptance remain unverified and outside this bounded server proof. No issue or parent closure is claimed before landing/acceptance reconciliation.