Skip to content

feat(app): emit optional check progress boundaries (#2608) - #4829

Closed
EffortlessSteven wants to merge 5 commits into
mainfrom
cursor/2608-progress-producer-9fdb
Closed

EffortlessSteven wants to merge 5 commits into
mainfrom
cursor/2608-progress-producer-9fdb

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

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 for
trusted same-repo ripr work. Confirm the change belongs here:

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge,
    dependency, or repo-ops development for ripr-swarm

Source-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-9fdb
Proposed 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 (None sink).

Scope Classification

  • One production behavior
  • One architectural seam

Production delta:

  • check_with_progress emits LoadingInput / Analyzing / BuildingOutput plus one Completed / Cancelled / Failed terminal
  • elapsed time is observational; completed_units and total_units stay None
  • Drop classifies cancel vs failure from the recorded abort kind and does not call checkpoint() (so it cannot invent a deadline)

Evidence/support delta:

  • focused tests in crates/ripr/src/app/progress.rs

Single acceptance criterion:

  • A real check through check_with_progress records the producer stage order with unknown totals, and failure/cancel/sink-panic paths cannot publish a fake completed or change findings

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • none

Proof

Exact head: 6df2a4aba1052145ebbd46d880a7f94b5087abca

cargo 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...HEAD

Local results on that head:

  • progress tests: 13 passed (sample-diff and sample-repo subjects nonempty)
  • clippy -D warnings: pass
  • check-fast: pass; base=origin/main, 4 files, matches independent git diff --name-only
  • precommit: pass
  • Hosted Ripr Rust Small was still in progress at review time

What 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

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

CI Economics

n/a — no workflow or lane changes.

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code or tests.

Gates

Local precommit passed. Hosted merge-gate is the required matrix.

Open in Web Open in Cursor 

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>
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 71eaf84d-a0f0-4e75-90cb-8d9898ae022c


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

cursoragent and others added 4 commits September 29, 2026 06:09
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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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::progress owns the closed stage/scope DTO, optional sink, and Drop terminal
  • app::check::check_with_progress is the retained producer; existing public check_workspace* wrappers pass None
  • analysis::cancellation::current_abort_kind is a pure query so Drop cannot invent DeadlineExceeded via checkpoint()
  • 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_progress lives in private mod check; #4810 will need a pub(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-format passed 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: pass
  • cargo xtask precommit: pass
  • cargo xtask check-fast: pass; selector base=origin/main, 4 files (cancellation.rs, app.rs, check.rs, progress.rs), independently matches git 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::emit fails 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.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Superseded — closing without merge

This draft PR (progress PR A, producer-owned stage events) has been fully landed on main through other routes; merging it now would revert newer landed work.

Evidence (compared PR head 6df2a4a against origin/main by blob identity):

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 cursor/2608-progress-producer-9fdb can be deleted at owner discretion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants