Skip to content

fix(main): clear both main breaks (xtask dead-code Clippy and owner-built-expected corpus row) - #10663

Merged
EffortlessSteven merged 3 commits into
mainfrom
claude/fix-xtask-dead-parent-dir-symlink
Oct 26, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
claude/fix-xtask-dead-parent-dir-symlink

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

Source-of-truth Links

Governing issue or accepted claim: #10341
Acceptance delta (one sentence): main's strict Clippy gate and Rust verdict corpus check pass again so required runs reach the test phase.

Validation

  • cargo clippy -p xtask -p ripr --all-targets -- -D warnings clean; cargo fmt --check clean.
  • cargo xtask verdict-corpus check: 723 cases, false verdicts 0/723, spec examples 292/292.
  • On the first head the hosted run passed Clippy, goldens, fixtures and capability checks and failed only at Verdict corpora (run 40309570358), which this head's relabel addresses.

🤖 Generated with Claude Code

https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV

…h-includes (main Clippy, #10624)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1HLQzDSYhzcGBd9baf3RV
@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 26, 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 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 195 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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: e75a575a-d331-4d03-bad4-2be3f104ed71
Commits

Reviewing files that changed from the base of the PR and between 89c007d and dbc768e.

Files selected for processing: 6
  • changelog.d/10624-symlink-helper-dead-code.md
  • changelog.d/relabel-owner-built-expected-after-7135.md
  • crates/ripr/src/agent/loop_commands.rs
  • crates/ripr/src/cli/commands/agent.rs
  • fixtures/rust-verdict-corpus/cases/spec0228-pushed-literal-owner-built-expected.json
  • fixtures/rust-verdict-corpus/expected/rows/spec0228-pushed-literal-owner-built-expected.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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

Confirmed findings

  • No changed line adds unsafe code, raw memory access, type confusion, unbounded allocation, secret logging, or an externally reachable bypass.
  • is_symlink becomes crate-visible but remains non-public outside the crate and exposes only a boolean filesystem check, not path contents or secret material.

Verification questions

  • Confirm no changed test or focused receipt proves the old implementation fails the intended check while the relocated implementation passes.
  • Confirm no new test in this diff directly exercises the relocated helper through the agent status command.
  • Confirm the shared is_symlink helper is intentionally widened to pub(crate), but the supplied packet lacks a repository-wide route proving there are no additional consumers or path-inclusion-sensitive sibling uses.

Refuted

  • The visibility change could disclose sensitive path information or secret material.; refuted because: is_symlink returns only a boolean derived from symlink_metadata and does not return, print, or otherwise expose the path.
  • Widening is_symlink to pub(crate) unnecessarily expands the module boundary.; refuted because: The helper is already used across modules by lexically_clean, and the relocated parent helper requires the same crate-local predicate; pub(crate) is narrower than pub and avoids duplicating filesystem logic.
  • The old implementation is already the failing red test and therefore proves the new one green.; refuted because: The old code is not represented by a test in this diff; ripr failed and cargo-test evidence is not yet available. A focused behavioral test remains necessary to distinguish behavior explicitly.
  • The PR's no-behavior-change claim is disproved by making is_symlink pub(crate).; refuted because: Visibility changes compile-time reachability only; the function body and lexical-cleaning behavior are unchanged.

Evidence gaps

  • The PR body’s validation claim is not independently substantiated by the supplied sensor packet because ripr failed and cargo-test is only scheduled late.
  • Model proof intent was rejected by deterministic validation.
  • Runtime and strict-Clippy equivalence is not fully witnessed in the supplied evidence.

@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 source findings emitted. The bounded source/proof review is complete; final merge disposition remains REVIEW_INCOMPLETE because the existing required qualification failed later at verdict-corpus drift.

  • reviewed_head_sha: 51138f353bfbabc9476dccdce52aab3053357de7, re-read before submission on 2026-10-26 at approximately 11:12 UTC.
  • integration_basis: main at dc38b8cdcbcf0ab44719ebc54d4d013e07bf2b86. The executed GitHub merge object c5ce38c5f3ed7109fe0ecb16a932c28b57e067c8 has those base/head parents. Both head and merge object have tree 0f2c72b6d30b0ac43164a9334136b4e46d2f34db; checkout identity was verified in the job logs and tree/parents independently inspected locally.
  • claim_boundary: repair xtask's strict-Clippy dead code after #10624, preserving the existing status-path contract. #10341 supplies CI context; RIPR-SPEC-0011 lines 48–57 define the accepted equivalent spellings and symlink-before-.. refusal.

Changed surfaces and semantic owners inspected: all three changed files; the CLI's run_agent_status and resolve_agent_start_out_dir; loop_commands::{clean_bound_path,lexically_clean,is_symlink}; xtask's path inclusion in reports/operator.rs; the existing CLI smoke test; applicable process policy, spec and traceability.

The moved helper is text-identical after normalizing qualified paths and rustfmt's match-arm braces. It still checks the spelled component before popping it, refuses an unchecked leading relative .., and preserves the Unix-only symlink predicate. Its only production caller is now adjacent in the CLI. The remaining predicate is crate-visible, with unchanged filesystem behavior; clean_bound_path keeps it reachable in the path-included module. Small description correction: that existing caller is clean_bound_path, rather than lexically_clean. There is no new process spawn, dependency, lint suppression, public API, output/schema or filesystem-write behavior. The existing spec remains accurate; this relocation requires no new behavior spec.

Proof and CI observed; reused without another campaign:

  • Required Rust-gates job: actual checkout is the merge object above, Rust 1.95.0 on Ubuntu. cargo clippy --workspace --all-targets -- -D warnings passed, including xtask; formatting, repository/process/network policy and the all-features target check also passed. The earlier failure receipt separately records the old path-included helper's dead-code diagnostic and Clippy exit 101 on its original checkout; it is historical evidence, not an exact-base rerun.
  • Rust feature-lane job: the same merge tree passed cargo test -p ripr --locked --no-default-features --features lang-rust --no-fail-fast. Logs explicitly show agent_status_refuses_non_default_out_dir ... ok. Inspection of that unchanged test confirms default, ./target/ripr/workflow, trailing slash and real-directory parent-pop positives, plus elsewhere and Unix target/ripr/alias/../workflow refusals. The symlink fixture targets a different parent, so accepting lexical equality alone would violate its refusal assertion. This is existing production-CLI discrimination; a new duplicate test is unnecessary.
  • Local read-only comparison confirmed the normalized helper equivalence, identical submitted/executed trees, unchanged smoke-test/spec-traceability/process-allowlist inputs, and clean git diff --check. No source experiment or local Cargo campaign was run.

Reconciliation of existing review: Devin's no-issues review is retained. Gemini/CodeRabbit quota notices establish no review result. The automated verification questions about missing runtime/Clippy evidence are answered by the inspected receipts above; the consumer scan confirms the CLI caller and retained shared-module caller. No inline threads are currently present. Those proof questions do not require changing an otherwise identical algorithm or duplicating its existing CLI test.

Blocking findings / proof missing: no introduced source or oracle defect found. The required job nevertheless failed at Verdict corpora: spec0228-pushed-literal-owner-built-expected changed changed_since_labeling from false to true. Its Required Rust tests and doctests were skipped. The existing mainline corpus repair is #10660, currently head 1423f1aa61824040617304702bead9b089c78458; retain that ownership and reconcile it through the current PR owner. The feature lane is useful focused proof, not a substitute for the skipped required nextest/doctest matrix.

Affected currentness dimensions / residuals: source, test stimulus/oracle, spec/output parity and the stated base/head were inspected. Windows semantics were read but not independently executed in this review. Full required qualification and final protected-merge judgment remain with the existing owner. No CI dispatch, source edit, lifecycle change, merge or protection/settings operation was performed.

Disposition and handoff: non-blocking technical review of this exact relocation; REVIEW_INCOMPLETE for final merge pending the existing corpus-repair/qualification path. Reuse the valid Clippy and focused CLI receipts; refresh only evidence affected by a later head or prerequisite change.

Copy link
Copy Markdown
Member Author

Integration dependency cycle identified: your Clippy relocation passes strict Clippy and CLI checks, with independent exact-head review 5651105857, but qualification stops at the one-row corpus drift owned by #10660. Conversely, #10660 comment 6414400386 is waiting for #10663 because its gate stops at the Clippy defect. Neither can complete qualification alone on the current base. Please coordinate the existing two owners on one explicit combined integration candidate or reviewed dependency stack, preserving both source patches and proof custody, then qualify that composition once. Do not weaken Clippy/corpus checks, relabel unrelated cases, or launch two competing recovery campaigns. Existing #10660 owner should confirm its precise row repair and existing #10663 owner retain this relocation; final combined-head review is required.

Copy link
Copy Markdown
Member Author

Independent source/delivery audit by /root/review_shared_clippy_repair at head51138f353bfbabc9476dccdce52aab3053357de7, base dc38b8c. The relocation is source-equivalent; complete consumers include product agent::loop_commands, the CLI agent module, and xtask reports/operator.rs's path inclusion. is_symlink retains cfg!(unix) semantics and remains used by clean_bound_path plus the relocated helper. Complete cli_smoke.rs was inspected: agent_status_refuses_non_default_out_dir already covers ordinary/default/dotted/trailing-slash parent positives and Unix symlink-before-.. refusal. Those tests did NOT run in the failed hosted qualification.

Small source follow-up: update .ripr/traceability.d/10542-agent-status-out-equivalence.toml:10 from agent/loop_commands.rs::parent_dir_follows_symlink to its new CLI location. Passing traceability parsing does not establish symbol-map correctness.

Blocking integration cycle is now observed, not speculative: required40309570358/job121527339071 executed mergec5ce38c5f3ed7109fe0ecb16a932c28b57e067c8, passed strict workspace Clippy, then failed Verdict corpora ONLY on spec0228-pushed-literal-owner-built-expected changed_since_labeling=true, exactly #10660's repair. #10660 in turn cannot qualify until this Clippy repair lands.

Please close this through one reviewed combined candidate under the existing owners: incorporate #10660's three-file relabel/changelog delta into this existing branch with its attribution, correct the traceability mapping, verify the combined diff and exact head, obtain affected independent review and run one normal complete qualification. Do not relabel the historical Clippy pass as combined-head proof, blindly refresh either unchanged branch, or bypass the corpus/check protections. After normal protected landing, #10660's owner can verify its exact delta on main and dispose of the superseded PR rather than rerunning it. Existing #10559/#10564 owners are waiting on both fixes; no competing implementation or CI was started by this audit.

Copy link
Copy Markdown
Member Author

Landing verified: normal expected-head squash succeeded as e4b0aaf, parent89c007da823cca93054e994a9ab1735f86cbbfb6, tree2cc7108fc377104c2964ae0393040618c1f3ccad. Current main equals that commit and the tree exactly equals reviewed/qualified c461f31. #10660 is closed as incorporated after verifying its three exact blobs; no new CI was requested. The documented non-blocking traceability symbol-path correction remains a real follow-up, not a completed change. Dependent owners have been told this releases only the shared Clippy/corpus prerequisite, not their separate findings or holds.

EffortlessSteven pushed a commit that referenced this pull request Oct 26, 2026
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
The cached refs/pull/*/merge still pointed at a pre-#10663 main, so the
heavy gate kept testing against the old broken tree. An empty head
commit forces GitHub to recompute the merge ref.

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
The cached refs/pull/*/merge still pointed at a pre-#10663 main, so the
heavy gate kept testing against the old broken tree. An empty head
commit forces GitHub to recompute the merge ref.

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
The cached refs/pull/*/merge still pointed at a pre-#10663 main, so the
heavy gate kept testing against the old broken tree. An empty head
commit forces GitHub to recompute the merge ref.

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven pushed a commit that referenced this pull request Oct 26, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FYNejJJF82dVq4XHXddgrd
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
… one-liners (#10619)

* docs(agent): plain-English help for cancel-after-ms, verify redirect, one-liners

Three help paper-cuts from the #10542 UX audit:

- --cancel-after-ms said only 'Optional bounded cancellation request'. It
  is a safety flag: the operator deadline kills the verify process
  before the packet's own timeout, and a hit is a bounded observation,
  not an error -- the result records the cancelled disposition and the
  exit status stays 0. Say that.
- agent verify's stdout is the artifact agent receipt --verify-json
  reads, but the help showed no way to save it. Add the redirect
  example from the verify loop.
- The agent overview one-liners for brief and verify-execute read as
  internals-speak ('agent-active router', 'producer-owned direct verify
  route'); rewrite them in user terms.

Co-authored-by: Claude <noreply@anthropic.com>

* docs(agent): add 'that' to the verify-execute overview line

Gemini review nit on #10619: 'the one validated, bounded, read-only verify command a packet names' reads awkwardly; 'command that a packet names' parses more easily.

Co-authored-by: Claude <noreply@anthropic.com>

* chore: rebase-adjacent no-op to refresh the stale merge ref

The cached refs/pull/*/merge still pointed at a pre-#10663 main, so the
heavy gate kept testing against the old broken tree. An empty head
commit forces GitHub to recompute the merge ref.

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
…e fact short (#10642)

* fix(repair): name the predicate-stub route when a boundary seam is one fact short

Governing issue or accepted claim: #10622

A Rust predicate boundary whose only missing repair evidence is the boundary discriminator previously dead-ended the reader at 'producer-owned missing discriminator fact: boundary_value'. That phrasing names a producer-internal fact and no route, leaving a user with no next action.

Name the existing manual route in the refusal: ripr agent stub --at <file>:<line> --kind predicate derives the boundary input from the changed comparison, so the user writes the boundary test by hand, fills the todo!() values, and reruns ripr repair. The tight condition (exactly one missing fact, boundary_value, predicate-boundary kind) deliberately excludes seams that also miss a safe test target, where the stub alone would not ready the route.

Guidance, not evidence: crediting boundary_value from static derivation would violate the evidence-promotion honesty invariants, so this only names the manual route.

Co-authored-by: Claude <noreply@anthropic.com>

* fix(repair): word the stub route with its root, quoting, and honest derivation limits

Review round on #10642. Devin found three real gaps in the refusal's suggested command: (1) it named no --root, so a repair run with --root from elsewhere pasted a stub command against the wrong workspace — repair_refusal now takes Option<&Path> and the root-bearing surfaces (resolve_repair_start, resolve_repair_subject_outcome, repair_start_refusal_for_entry, check_repair_route) pass Some(root), rendered with the existing bound_root/shell_arg house pattern; the MCP admission passes None since its verdicts are already relative to the server workspace. (2) An --at value with spaces split into multiple arguments when pasted — the value now goes through shell_arg. (3) The text promised the stub derives the boundary input, but boundary_inputs only derives for a bare parameter against a literal; compound operands leave todo!() fill-ins — the wording now says the input is prefilled when it derives. Also adopts the suggested slice-pattern match for the single-missing-fact condition.

Verified live on the #10622 repro: the refusal now reads 'ripr agent stub --root <repo> --at src/lib.rs:2 --kind predicate writes a fill-in skeleton for the changed comparison; the boundary input is prefilled when it derives, otherwise fill the todo!() values, then rerun ripr repair'. fmt + cargo check + check-no-panic-family pass; hosted gate owns the unit test.

Co-authored-by: Claude <noreply@anthropic.com>

* chore: rebase-adjacent no-op to refresh the stale merge ref

The cached refs/pull/*/merge still pointed at a pre-#10663 main, so the
heavy gate kept testing against the old broken tree. An empty head
commit forces GitHub to recompute the merge ref.

Co-authored-by: Claude <noreply@anthropic.com>

* docs(changelog): qualify the boundary-input claim per review

The stub prefills the boundary input only when it derives; otherwise the
skeleton keeps todo!() values (matching the refusal message's own wording).
The fragment now says the same instead of overclaiming.

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
…al re-runs qualify (#10669)

* fix(ci): accept each shard's latest attempt at verify so partial re-runs qualify

A partial "re-run failed jobs" uploads fresh artifacts only for the
re-run shards, so verify must read each shard's latest artifact for this
run at or below the verifying attempt instead of requiring the exact
current attempt directory for every shard. Suffixes that are not
attempts, or name a future attempt, are not evidence. When shards were
proven from more than one attempt the verification context records
verified_attempts so provenance stays honest.

Governing issue: #10605

Co-authored-by: Claude <noreply@anthropic.com>

* docs(changelog): swap 'proven' for 'verified' to satisfy static-language gate

Co-authored-by: Claude <noreply@anthropic.com>

* chore: rebase-adjacent no-op to refresh the stale merge ref

The cached refs/pull/*/merge still pointed at a pre-#10663 main, so the
heavy gate kept testing against the old broken tree. An empty head
commit forces GitHub to recompute the merge ref.

Co-authored-by: Claude <noreply@anthropic.com>

* fix(ci): disclose verified_attempts for a single reused attempt; sync gate plan doc

Review follow-up on #10669: when only the verification job re-runs, every
shard is reused from one earlier attempt, and the old >1 condition omitted
the only field distinguishing reused results from fresh ones. The combined
context now emits verified_attempts whenever any accepted shard's attempt
differs from the verifying attempt, with a regression test pinning the
single-earlier-attempt case. docs/ci/PRODUCT_GATE_PLAN.md now documents
the accepted earlier-attempt boundary and the disclosure.

Co-authored-by: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
EffortlessSteven added a commit that referenced this pull request Oct 26, 2026
… ref

The 10:42Z run failed 'Strict workspace Clippy' on parent_dir_follows_symlink
dead-code in the xtask include of crates/ripr/src/agent/loop_commands.rs. The
PR diff does not touch that file; the break arrived from main via the merge
ref (introduced by #10624) and was repaired on main by #10663 (e4b0aaf,
13:04Z). This empty commit forces a merge-ref recompute against post-#10663
main; no product change.
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.

2 participants