Skip to content

fix(reports): stabilize rejected lifecycle duplicate diagnostics - #8844

Merged
EffortlessSteven merged 2 commits into
mainfrom
fix/report-lifecycle-order
Oct 22, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
fix/report-lifecycle-order

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #8837. Reversing two otherwise identical rejected lifecycle observations used to change the selected digest-mismatch diagnostic, so JSON and Markdown differed under the same corpus identity. Equal lifecycle-ID representatives now break ties lexicographically by their existing rejection reasons.

Swarm / Source Boundary

  • Ordinary repo-ops development for EffortlessMetrics/ripr-swarm.

Source-of-truth Links

Governing issue or accepted claim: #8837 (spec RIPR-SPEC-0218, accepted implementation #4929/#5370; no proposal, ADR or plan change).
Acceptance delta (one sentence): Reordered equivalent rejected lifecycle observations yield identical JSON/Markdown, retain one nonempty deterministic diagnostic and remain outside all denominators.

Scope

One production behavior: a deterministic representative tie-break in deduplicate_assessed_lifecycles. Evidence: regression rejected_duplicate_digest_ties_preserve_json_and_markdown, spec clarification, traceability mapping and changelog.d/8837-lifecycle-rejected-duplicate-order.md. Non-goals: lifecycle validator/counting-law/schema changes, scorecards, workflow/CI changes.

Support-tier / Policy Impact

None. The advisory JSON/Markdown shape and version are unchanged.

Proof

  • Regression fails before the repair (reordered rejected duplicates must preserve JSON bytes) and passes after; cargo test -p xtask --bin xtask issue_lifecycle 113 passed on the tree merged with current main; cargo xtask precommit exit 0 on that tree.
  • Native issue-lifecycle-scorecard with opposite input orders: before, different JSON and Markdown diagnostics; after, byte-identical (author's earlier evidence).
  • Independent source review found no actionable defect.

Claim Boundary / Rollback

Stable selection for equal-ID rejected duplicates only; validation, conflict rejection and single-representative counting are unchanged. Revert this four-file change to roll back.

Static Language Check

  • Static language preserved.

Engineering Check

  • No new panic-family call, dependency, non-Rust source, process or network surface.

🤖 Generated with Claude Code

@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 Oct 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 97 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: c2a761e4-e2f0-43e6-aee7-d6c4e60c5ab8
📥 Commits

Reviewing files that changed from the base of the PR and between 899bee1 and 1953635.

📒 Files selected for processing: 4
  • .ripr/traceability.toml
  • changelog.d/8837-lifecycle-rejected-duplicate-order.md
  • docs/specs/RIPR-SPEC-0218-issue-lifecycle-attempt-extension.md
  • xtask/src/reports/issue_lifecycle.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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.

Independent candidate-review record for a789fa9 (tree b946ec53364577dead1613b0046645cbe4630045; proof basis 93b3918). Published head read back unchanged; PR is Draft and unmerged. This COMMENT records a separate read-only agent's substantive inspection, not a GitHub approval.

No actionable findings. Inspected the complete committed diff, retained digest/assessor authority, duplicate conflict gate, denominator paths, both serializers, downstream lifecycle consumers, spec, traceability and changelog. Retained identity binds lifecycle_id and synthetic; only the excluded recorded digest can vary the diagnostics for these otherwise equal observations. The reason tie-break therefore covers the production variation, and conflict rejection still precedes representative selection.

Evidence inspected: baseline native JSON/Markdown differ under the same corpus identity; the new test fails on old behavior at the intended JSON-byte assertion; committed-head focused run passes 113/113 with zero ignored; check-fast passes 14 selected gates including strict workspace/all-target Clippy. The reviewer independently read both native candidate output pairs and hashed the frozen candidate executable (bb2a008dddc23b3f12911ba24ae78e455154796fcf94311b413362ea8712c72c). Both format pairs are byte-identical, preserving one rejected representative, zero real/synthetic lifecycles and not_measured rate. Root subsequently completed exact-head precommit with exit 0.

Oracle challenge: the executed old comparator fails the regression. Source inspection shows opposite tie selection fails the pinned expected diagnostic, dropping diagnostics fails the nonempty representative assertion, and counting malformed duplicates fails denominator assertions. These latter alternatives were source-reviewed counterexamples, not additional executed mutant claims. Platform-specific, calibration-counter, cache-checksum, credential, workflow and orchestration-report changes are absent.

Disposition: source/focused proof supports Draft publication. Overall REVIEW_INCOMPLETE: hosted qualification and actual hosted integration evidence remain missing. No merge clearance.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Refuted

  • Reusing sample_lifecycle/assessed helpers in the new test mutates shared state and weakens the spec contract.; refuted because: Both helpers construct fresh values inside the test; only the locally-owned first/second rows are mutated and cloned. No shared state leakage observed.

Evidence gaps

  • cargo-test receipt absent pre-wave; targeted ship on the bin-level test plus full fast+clippy gates is requested as deterministic proof before merge disposition.
  • Model proof intent was rejected by deterministic validation.

@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.

Hosted-review adjudication for unchanged head a789fa9 (tree b946ec53364577dead1613b0046645cbe4630045), 2026-10-19 UTC. Disposition: REVIEW_INCOMPLETE; Draft retained.

ub-review attempt 1 completed successfully at 02:57:41 UTC. Its review refutes shared test-helper state: the helpers construct fresh locally owned values. No accepted actionable source defect was reported.

The green wrapper does not establish complete proof. The authorized job-log evidence report records RIPR sensor exit 2 (cause not established), cargo-test timeout after 900 seconds, six model proof intents rejected by deterministic validation, one successful head-only focused receipt, and two focused red/green tasks deferred by safe wind-down with zero matching receipts. A head-only pass does not establish discrimination. Requested legacy target resolution is not execution. No validator or budget bypass was attempted.

I executed the two approved locked commands locally on this same head:

  • cargo test --locked --package xtask --bin xtask issue_lifecycle::tests::rejected_duplicate_digest_ties_preserve_json_and_markdown: exactly 1 passed, 0 failed, 0 ignored; log SHA256 64ad8f630acaf0a10f9ad8ccc46bb0d4dd8addd05f687e88d1e243af2e6fc80b.
  • cargo test --locked --package xtask --bin xtask issue_lifecycle: 113 passed, 0 failed, 0 ignored; log SHA256 f50a9ff35ee4a04ed57f40bf2437363adf52fccfdb0c7d6efcdbb744209b5553.

The original executed pre-fix red witness, paired native JSON/Markdown evidence, exact-head check-fast with strict workspace/all-target Clippy, precommit and independent source review remain applicable. These local runs do not create hosted broker receipts or substitute for required Rust qualification.

Hosted Source of Truth and Linux wheel plus pip/uv consumers passed. The complete single-page check-runs response at 03:04:45 UTC contained 26/26 completed checks and no Ripr Rust Small Result or ub-review/gate check. No duplicate run or rerun was requested.

Remaining limits: Gemini and CodeRabbit reported quota limits; a green rate-limited CodeRabbit status is not a completed review. Classic review-protection read returned 403; branch-rule and broad scheduler reads were rejected by the app allowlist, so live enforced review requirements remain unverified. The artifact connector returned an authorized export descriptor, but transfer to the executor was denied by proxy CONNECT 403; raw ZIP bytes/digest were not verified and no alternate transfer route was tried. Receipt details above come from the independently authorized decoded job log.

Ownership remains with this worker under #8837. Required Rust is requested only by Draft→Ready in the installed workflow. The clarification of the current instruction to keep Draft while mandatory proof is missing is still pending; no transition, label, new qualification run, merge or protection change has been made.

@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.

UB prerequisite investigation for unchanged head a789fa9, base 007394b, verified merge d051717. Latest instruction supplies Draft→Ready authorization once current-candidate review prerequisites pass; the earlier task-local clarification is superseded. Current disposition remains REVIEW_INCOMPLETE for an external evidence prerequisite, not missing Ready permission.

  1. RIPR failure — exact diagnosis blocked. Job log installs ripr 0.10.0 and the terminal report records failed/exit 2/not timed out. Pinned command owner constructs ripr check --root <checkout> --diff <packet>/input/diff.patch --mode ready --format badge-json. The runner retains raw streams as sensors/ripr/stdout.txt and stderr.txt, but does not print them in this job log. Historical #7903 established an 800-file-cap refusal for another run; it does not establish this run's exit-2 cause. No finding IDs, current cap refusal or source defect can be inferred from this status alone.

  2. cargo-test timeout — command established, failure location unknown. Pinned command is cargo test --workspace --all-targets --locked; builtin timeout is 900s, matching the terminal timed-out receipt. Without sensors/cargo-test/stdout.txt and stderr.txt, compilation versus test-execution stage and any preceding failure are unestablished. This is not evidence of a failed lifecycle test. #7920's qualification lane retains hosted sanitized/cold-fixture acceptance; resolver #8018 and preparation #8174 are already merged. Their historic setup failure is not attributed to this timeout without its streams. #4987/#8082 retain qualification/duplicate-work integration ownership; their holds are preserved.

  3. Deferred proofs — allowance boundary, not a proved hard-wall expiry. Both recorded tasks have deferred_by_safe_wind_down plus the reason “remaining budget was reserved for higher-value candidates.” In the pinned selector, that combination requires a zero remaining test/file allowance; the separate expired-deadline and Required-floor branches emit different reasons. Thus the source-supported inference is optional allowance exhaustion. The gh-runner profile permits one focused task and the report has one head-only pass. Original leases/portfolio remain necessary to verify the exact consumption chain. UB #862/#992 and active #1503 own duration accounting; #1503 expressly retains consumed task/file slots. Those upstream repairs are not prerequisites to rerunning this already proved report defect.

  4. Rejected model requests — existing owner, no admission relaxation. Unsupported symbol targets/kinds and the requested 600s command over the approved 300s match UB #1500, owned by Draft #1501 at 2d1b85083c85e7f2ccab44b32ef26eb6ec9f78fa. It is held on its own required gate; do not duplicate or adopt it, change this action pin, widen targets or raise budgets.

  5. Candidate proof request — answered locally, not broker-receipted. The approved locked exact regression passes 1/1 and locked lifecycle filter passes 113/113 on this head. The executed pre-fix regression fails specifically on JSON byte ordering; paired production CLI JSON/Markdown now match. Exact-head check-fast/strict Clippy/precommit and independent source review remain valid. These answer the requested report behavior and tests; they cannot be injected or relabeled as missing hosted receipts. No new candidate source/oracle defect was established.

Concrete external handoff: obtain original byte-exact members from artifact 12160452457: plan.json; sensors/{ripr,cargo-test}/{stdout.txt,stderr.txt,ub-review-sensor-status.json}; review/{proof_portfolio.json,proof_receipts.json}; input/{revision-admission.json,diff.patch}; preferably the original ZIP (GitHub-reported SHA256 138248cfb43743298b6fd8236283c1634f06eba119ee6d76101fb836565cc53e, not locally verified). The connector returned an export descriptor; executor transfer previously failed proxy CONNECT 403. That denied transfer was not retried through another route. This candidate owner retains diagnosis; the coordinating owner with a permitted artifact-byte channel must supply those members. No exact current sensor-failure repair owner or warranted unowned in-scope patch can be established without them.

Ready procedure confirmed: PR_AUTOMATION.md Draft to Ready handoff explicitly says “Ready requests qualification.” The installed workflow consumes ready_for_review only for PR qualification; a feature-ref dispatch is diagnostic-only. After the substantive UB prerequisite is evidence-disposed, verify unchanged head, merge subject, reviews/threads and existing runs, then request one native Ready transition and inspect actual checkout plus admission/result through terminal. Hosted qualification need not exist before its request; REVIEW_READY and protected checks still govern merge. Latest read at 03:15:57 UTC: Draft/unmerged, same head/basis/merge, three submitted COMMENT reviews, no visible inline threads, all 28/28 head checks terminal, required Rust absent. Keep Draft for the named artifact evidence gap; no new run, rerun, credential, protection or readiness change was made.

@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.

No actionable candidate defect found in this independent bounded ordering review for #8837.

Reviewed published head a789fa9, tree b946ec53364577dead1613b0046645cbe4630045; current PR base 007394b; candidate parent/proof basis 93b3918. The connected PR read and fetched Git object agree. Re-read before posting: same head, open/Draft/unmerged.

Observed source: complete four-file diff, RIPR-SPEC-0218, traceability/changelog, retained-digest input, real assessor, conflict gate, representative selection, sorting/denominators, both serializers and intake/contract-plan consumers. Retained identity includes lifecycle_id, observation_key and synthetic plus every other row field except recorded row_digest. Non-conflicting production assessments therefore cannot tie on ID/reasons while differing on an omitted serialized synthetic flag, absent a retained-identity collision. Conflict rejection precedes selection, and serializers consume the same DTO. No dependency, platform, process, workflow or schema surface changes.

New executed adversarial case: derive six observations from the first committed real-row fixture. Group z-tie has three identical retained rows with recorded digests b×64, empty and a×64. Group a-conflict contains a correctly stamped row and its c×64-corrupted duplicate. Group m-synthetic contains one correctly stamped synthetic row. Recompute retained digests when changing IDs/keys/synthetic, independently checking the digest construction against the original fixture first. Run the actual candidate xtask issue-lifecycle-scorecard CLI at one fixed captured-input path for all 6! = 720 iteration orders.

Candidate: 720/720 orders passed with byte-identical JSON and Markdown. Each output retains exactly one z-tie diagnostic (the empty recorded digest, lexicographically first), both conflict rejections, one synthetic lifecycle, zero real lifecycles/successes, all-zero disposition totals and not_measured 0/0. Corpus identity: c4b85317426369421d8bd59b3df829bc671dde82c806b393f7cd9870a002f334. JSON SHA256 36a2661e33d9a08411b6729b553bfce60e447b0b05bd456f5ad77d09d0e0eff6; Markdown SHA256 347f0cc4414eeb42a9d184fd992b3a329bd862b593fe4cf2b39ea5b17415450e.

Executed negative control: remove only the reason tie-break in the review-owned checkout (experimental tree caefe62a79434636c60af57aa16a6b244ef2938e; no commit/branch publication). The same CLI case fails at permutation index 120, swapping positions 0/1: both JSON and Markdown change from the b-digest diagnostic to the empty-digest diagnostic while corpus identity stays equal. This establishes that the new mixed-corpus oracle detects the old wrong behavior. Restored the exact clean candidate afterward; submitted owner source was never edited.

Executed locked focused test: cargo test --locked -p xtask --bin xtask reports::issue_lifecycle::tests::rejected_duplicate_digest_ties_preserve_json_and_markdown -- --exact — 1 passed, 0 failed/ignored, 3949 filtered out. Linux x86_64 / Rust 1.95.0, isolated worktree/target, jobs=2, debug=0, incremental=0. Initial offline build stopped on missing cached signal-hook; subsequent locked registry-backed build and offline control build succeeded. Candidate executable SHA256 21bb178170fad6d6bfe2f0e6704d219daefd4b8cf81528126b0a156ecfcbe816; control executable SHA256 651f996352ed27285055fb6a4053ebb355a3140a93580d80b4b593341211aeff. Raw stimuli, script, outputs, logs and frozen executables are retained locally, not hosted artifacts.

Disposition: bounded source/focused ordering review found no repair request. Overall REVIEW_INCOMPLETE remains: this review does not dispose the existing external UB artifact/hosted qualification gap. Prior 113-test, Clippy/precommit and hosted results remain reported prior evidence, not rerun/requalified here. Current Conversation was inspected; no inline threads were returned. No full suite, hosted execution, Ready, merge or release action was performed. The existing #8837 candidate owner retains all implementation and follow-through custody.

Copy link
Copy Markdown
Member Author

Claimed for the open-PR sweep (thread "Hard-cut admission"), 2026-10-22 04:30Z. Plan: merge main, precommit, review of record, Ready + merge-ready, squash on green. Same claim on #8855.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Review of record, head 1953635 (= a789fa9 merged with current main; no conflicts).

  • Angles: correctness (the min_by comparator is a total order: lifecycle id, then rejection reasons, so equal-id groups pick the same representative in either input order; non-rejected groups are unaffected because their reasons are equal or empty); tests (the regression builds two same-identity rows that differ only in the recorded digest, asserts distinct reasons as setup, and compares both JSON and Markdown across orders plus the denominators); contract (RIPR-SPEC-0218 wording and traceability entry present; no schema or counting change).
  • Proof on the merged tree: issue_lifecycle tests 113 passed, 0 failed; cargo xtask precommit exit 0.
  • Findings: none blocking. The earlier hosted-artifact prerequisite (ub-review packet) concerns a non-required advisory; the required check is Ripr Rust Small Result, which this label requests.

Marking Ready and applying merge-ready; squash on green.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 04:43
@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!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Refuted

  • The fix requires serializer-specific changes or broader lifecycle-policy changes.; refuted because: Both serializers consume the shared scorecard DTO; the implementation changes only the existing deduplication owner and documents the bounded tie-break.
  • The change could broaden counting or alter denominator semantics by deduplicating rejected observations.; refuted because: The new logic only changes representative choice within the existing group; existing counted/rejected branches and denominator assertions remain intact.

Parked follow-ups

  • The hosted RIPR sensor failure remains unexplained by this source diff; the existing PR thread identifies it as an external artifact prerequisite rather than a candidate defect.
  • The PR’s hosted evidence gap is external to the changed route; the RIPR sensor exited 2 without accessible stdout/stderr, while targeted lifecycle proof is reported as passing.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record, head 1953635

Angles: correctness (tie-break only chooses the representative within an existing dedup group; counted/rejected branches and denominators unchanged), tests (deterministic ordering assertions), contract (both serializers consume the shared scorecard DTO, so no serializer change).

Findings: github-actions review refuted its own concerns against the diff; no review threads open. The non-required ub-review/RIPR sensor prerequisite is advisory and not a defect of this diff. Required Ripr Rust Small Result is green on this head. Merging.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit b49d67a into main Oct 22, 2026
47 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/report-lifecycle-order branch October 22, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(reports): stabilize rejected lifecycle duplicate diagnostics

2 participants