Repository navigation
feat(app): emit optional check progress boundaries (#2608) - #4829
EffortlessSteven wants to merge 5 commits into
Conversation
Add a producer-owned, crate-internal progress sink to the shared check pipeline. Existing public check APIs stay unchanged and pass no sink. Events carry only reached stages, mode identity, and elapsed time; work totals stay unknown, and a sink panic cannot change analysis identity. Discriminating controls cover happy-path order, missing input, late suppression failure, git-candidate bind failure, worktree/repo scope, cancel and deadline terminals, Drop that must not invent a deadline via checkpoint(), and a no-sink baseline. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Subject validation is not the object producer. The producer still emits Analyzing before the named git-candidate error, so the control now rejects a fake completion without claiming analysis never started. Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
EffortlessSteven
left a comment
There was a problem hiding this comment.
review-pr (author self-review, COMMENT)
reviewed_head_sha: 6df2a4aba1052145ebbd46d880a7f94b5087abca
integration_basis: origin/main (f6aa0ab8c at branch creation; behind-only movement does not restack this candidate)
claim_boundary: #2608 PR A only — producer-owned optional progress events on the shared check pipeline. Not CLI stderr/heartbeats (#4810), not LSP work-done mapping (#4811), not public API expansion, not speed.
changed_surfaces_and_semantic_owners_inspected:
app::progressowns the closed stage/scope DTO, optional sink, and Drop terminalapp::check::check_with_progressis the retained producer; existing publiccheck_workspace*wrappers passNoneanalysis::cancellation::current_abort_kindis a pure query so Drop cannot inventDeadlineExceededviacheckpoint()- consumers of check (CLI, LSP, explain, context) are unchanged and still call the no-sink APIs
blocking_findings: none in source/oracle on this head
non_blocking_suggestions:
check_with_progresslives in privatemod check; #4810 will need apub(crate)re-export (or equivalent) before CLI can attach a sink. Left out here because a unused re-export fails-D warnings.- No ImplementationSlice file;
check-spec-formatpassed without one. Acceptable for this crate-internal seam.
refuted_or_stale_findings:
- Draft #4193 implemented the same PR A claim on a stale base and conflicts with current
main. This PR continues that claim; it is not a rival feature.
proof_and_ci_observed:
cargo test -p ripr --lib app::progress: 13 passed (nonempty sample-diff and sample-repo subjects)cargo clippy -p ripr --all-targets -- -D warnings: passcargo xtask precommit: passcargo xtask check-fast: pass; selectorbase=origin/main, 4 files (cancellation.rs,app.rs,check.rs,progress.rs), independently matchesgit diff --name-only origin/main...HEAD- Hosted: cargo-deny, dependency-review, pr-plan, rust-only feature lane, GitGuardian succeeded on earlier heads; Ripr Rust Small on GitHub Hosted is in_progress on this published head
proof_or_review_missing:
- exact-head required merge-gate (Ripr Rust Small) not yet terminal
- external review providers (CodeRabbit/Devin/droid) are quota/skip/in_progress, so they are missing, not clean
stimulus/oracle challenge:
- happy-path order + unknown totals would pass a fake percentage-free no-op only if stages still match; a silent
ProgressRun::emitfails that test - missing-diff, suppression-after-analysis, git-candidate, cancel, and deadline paths reject a fake
Completed - Drop+zero budget rejects Drop calling
checkpoint()(would invent Cancelled) - sink panic vs no-sink identity compare findings/summary, not elapsed
- Debug privacy check would catch a path/source field on the event
rendered_behavior: no CLI/LSP projection in this slice; machine stdout/public check APIs unchanged (contract-parity: check-public-api pass)
platform: no new process/network/path semantics; catch_unwind isolates sink panics only
affected_currentness_dimensions: production implementation, test stimulus, test oracle, candidate head identity
residual_assumptions_and_non_claims: substages (index/classify) are omitted until those producers own counters; elapsed is observational; CLI users still see silence; #2608 parent stays open
disposition: REVIEW_INCOMPLETE — source/oracle on this head look mergeable for PR A, but hosted exact-head required checks are not yet terminal. GitHub cannot REQUEST_CHANGES from the author; this COMMENT is not approval.
Will re-enter review-pr on the exact published head after Ripr Rust Small is terminal, then $finish-pr squash if still REVIEW_READY.
Superseded — closing without mergeThis draft PR (progress PR A, producer-owned stage events) has been fully landed on Evidence (compared PR head
Net unique delta of this PR vs main: zero production behavior. The producer claim this PR owned is accepted and on main; #4193 remains the stale producer draft; #4811 (LSP work-done mapping, PR C) stays open with both prerequisites now landed. Closing as superseded; branch |
Summary
Shared check application path emits optional, producer-owned progress boundaries for diff, worktree, and repo checks. CLI stderr and LSP work-done mapping stay in #4810 / #4811.
Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm, the normal development trunk fortrusted same-repo
riprwork. Confirm the change belongs here:dependency, or repo-ops development for
ripr-swarmSource-of-truth Links
Proposal: issue #2608 serial PR A (producer-owned events)
Spec: none added; this slice does not change output schemas
ADR: n/a
Plan item: #2608 comment (PR A); children #4810 / #4811 remain separate
Governing issue or accepted claim: #2608 PR A only
Acceptance delta (one sentence): a check run emits ordered, path-free stage events with unknown totals, one non-success terminal on failure/cancel, and unchanged findings when the sink panics or is absent.
Candidate Relationships
Candidate branch:
cursor/2608-progress-producer-9fdbProposed replacement of PR: #4193 (stale draft; conflicts with current
main; same PR A claim)Acceptance retained: closed stage/scope events, optional best-effort sink, unknown denominators, cancel/failure terminals, sink-panic isolation
Scope
Producer-owned progress DTO and optional sink on the shared check pipeline, plus discriminating edge-case tests in the progress module. Existing public
check_workspace*signatures are unchanged (Nonesink).Scope Classification
Production delta:
check_with_progressemitsLoadingInput/Analyzing/BuildingOutputplus oneCompleted/Cancelled/Failedterminalcompleted_unitsandtotal_unitsstayNonecheckpoint()(so it cannot invent a deadline)Evidence/support delta:
crates/ripr/src/app/progress.rsSingle acceptance criterion:
check_with_progressrecords the producer stage order with unknown totals, and failure/cancel/sink-panic paths cannot publish a fakecompletedor change findingsNon-goals:
--quiet, or TTY spinner (feat(cli): render bounded analysis stages and heartbeats on stderr #4810)workDoneProgressmapping or CLI/LSP parity (feat(lsp): map shared analysis stages to work-done progress and close parity #4811)Support-tier Impact
Policy Impact
Proof
Exact head:
6df2a4aba1052145ebbd46d880a7f94b5087abcacargo test -p ripr --lib app::progress cargo clippy -p ripr --all-targets -- -D warnings cargo xtask check-fast cargo xtask precommit git diff --name-only origin/main...HEADLocal results on that head:
-D warnings: passcheck-fast: pass;base=origin/main, 4 files, matches independentgit diff --name-onlyprecommit: passWhat this proves: the shared check pipeline emits bounded, path-free stage events for an optional observer, with fail-closed terminals and sink isolation.
What this does not prove: CLI visibility, LSP mapping, analysis speed, or parent #2608 closure.
Claim Boundary
May claim: the shared check pipeline can emit bounded, path-free stage events for an optional observer.
Must not claim: CLI users see progress; LSP clients see mapped work-done events; analysis is faster; totals or percentages are known; #2608 is closed.
Rollback
Revert this commit. No schema, persisted artifact, CLI output, release, or publication state changes.
Spec-Test-Code Traceability
crates/ripr/src/app/progress.rscrates/ripr/src/app/progress.rs,crates/ripr/src/app/check.rs,crates/ripr/src/analysis/cancellation.rsStatic Language Check
killed,survived,untested,proven, andadequate.CI Economics
n/a — no workflow or lane changes.
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code or tests.Gates
Local
precommitpassed. Hosted merge-gate is the required matrix.