Repository navigation
fix: publish PR producer authority only after success - #1830
EffortlessSteven merged 4 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a new test case, failed_producer_rerun_does_not_replay_same_subject, in both crates/ripr/src/app/pr_evidence.rs and xtask/src/reports/pr_evidence.rs. This test ensures that a failed producer rerun does not replay the same subject, verifying correct behavior during various failure scenarios such as runner failures, malformed/oversized conversions, markdown write failures, and blocked subject publications. There are no review comments, so I have no feedback to provide.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-source review of 384c925 / tree6d688a0d1c2a8654668d868a2553c9c807582f68 found no actionable source or oracle defect. Both producers invalidate subject authority first, retain failure propagation, and publish complete subject last. Installed reuses unchanged atomic writer; xtask's fallible saved-status guard precedes exclusive staged publication while runner-error rejection remains. Its File is closed before rename and only the owned stage is cleaned on failure. Successful payload construction, caps/readers/API/toolchain are unchanged. The controls admit real complete nonempty evidence, retain literal identity, assert named failure causes, exercise strict CLI admission and recovery.
Observed intended red at test-only4bed: CI37908162657/job113746697142 terminal FAILURE, new installed regression reports runner failure: stale same-identity producer was admitted, with7,492 other unit tests passing. Initialb2 was setup/cancelled evidence and is not the intended red. Current candidate formatting/compilation, green installed and xtask controls, native/integration and routed producer/check/review proof remain pending. Disposition REVIEW_INCOMPLETE; source supports normal Ready→hosted CI. Preflight, denied invalidation, concurrent writers/already-loaded readers and full-carrier qualification are explicit non-claims. This is COMMENT on an authored PR, not approval.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-source review of f40f054 / tree898965062207f55216b09ab22437f215e42b381c confirmed the 14 actual cargo_fmt hunks are entirely within new tests. Both production prefixes are byte-identical to reviewed384c; transaction ordering, failure propagation, exclusive stage ownership/cleanup, strict admission baseline, named causes and recovery controls are unchanged. No actionable source/API/cap/schema finding. Reviewer independently verified terminal corrected4bed intended red (runner failure: stale same-identity producer was admitted,7492/1/2) and repair384c installed green (7493/0/2 plus integration/docs). Routed384c stopped at fmt, not xtask or producer proof. Current f40 runtime/xtask/routed proof is pending; disposition REVIEW_INCOMPLETE, source clear for normal hosted checks. This is COMMENT on an authored PR, not approval or full-carrier qualification.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Published-head REVIEW_READY at f40f054 / tree898965062207f55216b09ab22437f215e42b381c against exactcarrier77c3ec742cbb59262053bfc5e2ff28e9b76ad3d6. Independent reviewer and accountable root inspected actual completed Routed37911273349/job113756825577: 13,236 nextest passed/5skipped, including BOTH installed and xtask failed-producer-rerun controls. Admitted real complete nonempty baseline, named failure causes, saved-check and actual strict CLI refusal, absent authority and successful recovery are observed. Actual producer→saved--check→review-comments→review--check completed successfully on literal77c→f40. Normalized113772211137 validated execution receipt verdict=passed with exactbase/head/headtree and testedsynthetic2e0b876702cd836962424820ae3c3a7f71292db3/tree898965; Git parents77c+f40 and identicaltree verified. All36 currentcheckruns complete23success/13skipped; no inline threads or changes-requested reviews. Prior4bed behavioralred retained. No actionable source/oracle finding; transaction semantics/caps/API/readers/schema/toolchain/protectedchecks unchanged. Scope is singlewriter localfilesystem, with preflight/deniedinvalidation/concurrentwriters/alreadyloadedreaders excluded. Full ab614→carrier qualification NOT_ESTABLISHED. Hosted artifacts retained:11608603978 reports sha256344425dc58ff5353e4917f7540cc387e5b3256c1490c82187112d9c66ca96590;11608968701 executionevidence sha256088704487d92e5f6720232b7dae2e5d9842c293637be0ed090ec16250814a1ea;11609903577 result sha256e688bb605444e833cb9984d2724935ce5d9c905c65a799d17787c10eef8428b6. Artifacts identified/retained remotely; binary archives not locally materialized. COMMENT on authoredPR; substantive REVIEW_READY, not an author approval.
e81fd3a
into
sync/history-ripr-engineering-20261004
A failed producer rerun previously left the prior same-identity subject receipt admissible to direct review. Both producers also published that receipt before later evidence writes and validation could fail. This #1627 source prerequisite invalidates subject authority first and publishes it only after successful completion.
Exact candidate
f40f054e2da5c80731c100013ea7cc8bd2e8c260, tree898965062207f55216b09ab22437f215e42b381c, based on merged prerequisite77c3ec742cbb59262053bfc5e2ff28e9b76ad3d6. The two producer files remove check.subject.json before setup/analysis, then remove check/review-input, tolerating only NotFound. Subject authority stays absent through packet construction, writes, validation and saved-status checks. Installed production reuses atomic_file::write; xtask uses private exclusive same-directory staging, write_all, sync, close and final rename. Its success-path status check precedes publication; runner-error rejection is preserved. No public API is added.Controls establish a real schema0.2, complete, nonempty admitted baseline and hold literal base/head/configuration fixed through runner failure, malformed/over-index conversion, Markdown-write failure, blocked final rename, invalidation failure before runner entry, missing old artifacts and successful recovery. They assert named failure causes plus saved --check and actual strict CLI review refusal (missing/malformed producer), not just file existence.
Observed intended red: corrected test-only head
4bed831e6f7a6819daa352355b4cc4f7fec93be8, CI job113746697142, terminal FAILURE. Its new installed control failed withrunner failure: stale same-identity producer was admitted; 7,492 other unit tests passed, 2 ignored. Production was unchanged on that witness. Initial b2 had a reviewed setup defect and a cancelled job; it is not behavioral-red proof. Repair head384c925ca638af97a0616f1cd2f23ee48491c1b2passed Rust CI job113751397269: 7,493 unit tests passed, 0 failed, 2 ignored, plus integration/docs. Its routed run stopped at cargo_fmt before xtask/default tests and producer proof. Current f40 applies all fourteen reported formatting hunks in new tests only; production is byte-identical to 384c. Current f40 Rust-only CI job113756597688 completed SUCCESS: installed regression passes, 7,493 unit tests passed/0 failed/2 ignored plus integration/docs. Default xtask control and routed producer/check/review proof remain pending in run37911273349. Independent exact f40 source review is clear; REVIEW_INCOMPLETE until that proof and current review reconciliation.Independent exact-head review is REVIEW_READY. Routed37911273349/job113756825577 completed SUCCESS: 13,236 nextest passed/5 skipped, both installed and xtask controls passed; actual producer→saved--check→review→review--check succeeded at literal77c→f40. Normalized113772211137 validates exact base/head/tree and tested synthetic2e0b8767/tree898965. All current checks completed successfully or explicitly skipped; no unresolved review threads. Hosted report/execution/result artifacts11608603978,11608968701,11609903577 are retained with API digests. Local execution remains unavailable at the recorded helper_unknown_error; no retry occurred.
Scope: one writer on a local filesystem, from write_pr_evidence_with_runner. Earlier CLI preflight, permission-denied revocation, concurrent writers and already-loaded readers are outside this guarantee. Successful payload construction, numeric caps, consumer schemas/readers, toolchain, protected workflows/checks, runner/permissions and release state are unchanged. Complete-carrier analysis is disabled; full base
ab614355d59d6c558b6756c88727bf507538ac41qualification is NOT_ESTABLISHED.Parent integration of #1829 is verified as
77c3ec74, parents8b0eef03andf7d06008, treef91933d0, identical to the qualified prerequisite. This leaf targets the existing carrier and does not compete with its ownership. Design/ownership: #1627 (comment). Rollback is confined to the two producer source/test files.