Skip to content

fix(config): stop discovery at broken Git boundary entries - #7597

Merged
EffortlessSteven merged 2 commits into
mainfrom
fix/config-precedence-candidate
Oct 13, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
fix/config-precedence-candidate

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Broken .git symlinks allowed enclosing workspace policy to govern a selected project. This repair bounds both configuration discovery and implicit root selection, so ripr check and cache root resolution retain the local project and its policy. Local config and explicit CLI flags keep precedence.

Candidate: 9ca133296d903c5e926c87c5317c5b9496012933; accepted/tested base be2ad06fa86edf2cca68f9dd0ffb107b94c16484. Ordinary ripr-swarm configuration compatibility repair authorized by the isolated configuration lane and follow-up instruction to address the independent review finding.

Implementation and acceptance

  • config::is_repository_boundary checks .git directory-entry presence without following symlinks.
  • Shared implicit_git_boundary also detects that entry; dangling/cyclic targets remain Unverified barriers, while resolving entries retain the existing Git provenance probe.
  • Public implicit check and cache root resolution cannot adopt an enclosing Cargo workspace across a broken marker.
  • Nearest local config and explicit CLI mode/unchanged-test settings retain precedence.

SPEC0009, CONFIGURATION.md, traceability and changelog.d/config-broken-git-boundary.md track the change. The fragment uses the canonical Fixed section, bullet and current PR reference. #7353 is actively owned by #7537 and was excluded. Per-crate overlays #2671/#2965 and all cache-retention work remain excluded.

Proof and review status

Original shaping on refreshed main:

  • Base all-target check, doctor and baseline check-fast passed.
  • Config boundary red: 1 executed / 1 failed, parent config leaked.
  • Repaired config/LSP config suite: 144 passed; CLI/environment timeout fallback control: 1 passed.
  • Initial candidate 039e3d8 passed exact-head check-fast and precommit. These remain historical evidence, not successor aggregate passes.

Independent reviewer and Devin identified the public implicit-root bypass. This successor accepts and repairs it:

  • New public regression on prior candidate 039e3d8: intended native 101, implicit mode deep instead of draft after the explicit-root positive succeeded.
  • Repaired complete cli_smoke implicit_git_root:: suite: 6 passed, native 0. The new test covers dangling/cyclic links below an enclosing Cargo workspace, project/src invocation, nonempty probes/findings, explicit/implicit defaults, local cache root, local ready config and explicit draft/instant overrides.
  • Exact committed-head cargo test -p ripr --lib project_root_: 10 passed, native 0, including genuine Git, linked worktrees, inert markers, root boundaries and JS/Python workspace controls.
  • Successor exact-head public regression: 1 passed, native 0. Actual CLI reports full candidate SHA; binary SHA256 5c3460625e3d0b14ee96e444409716a0e4585b06d3a8c53f4f6f4a50436aea43.
  • Explicit process-policy check: pass, native 0, before aggregates.
  • Exact-head check-fast: native 0, 14 passing gates including strict workspace Clippy, expected fixture-contract skip, stable eight-file selector matching the independent Git diff.
  • Exact-head precommit: native 0; report binds head 9ca133296d903c5e926c87c5317c5b9496012933, accepted base be2ad06fa86edf2cca68f9dd0ffb107b94c16484, eight complete committed records, seven passing command outcomes, no skips or limitations. Report digest sha256:c7a72bcfd1a3e31fffc7b020ed10131cf0fca6e928ac3cda51eb17ac2d40da71; target/ripr/reports/precommit-v2.{json,md}. Raw precommit log SHA256 104b666a9a21889add8925a8841a81c76ed3a182d73a57bb6469f5f81f86da14.
  • Conflict-free merge-tree check with observed main 86b026749ba1b5e56d707826d737b392cdc6c018: native 0, tree a5808abe1ecc9730bf782b4a39a5fd2323b4b6a8. No combined-tree runtime pass is inferred.
  • Hosted qualification and renewed independent review remain pending; local passes do not close the open finding.

Logs: target/ripr/config-boundary-proof/implicit-{red,green,exact-head,process-policy,check-fast,precommit}.log and root-green.log. The six-test public-suite shaping run predates the commit with identical product/test bytes. Root unit tests, the fresh public regression, process-policy and aggregate checks are committed-head proof. Initial config tests retain their original 039e3d8 shaping identity; config implementation/tests are unchanged by the successor.

Review thread repair reply: #7597 (comment). Thread intentionally remains unresolved for renewed independent review. Earlier author review at 039e3d8 is historical for changed root-selection/test/public-claim dimensions. Disposition REPAIR_SUBMITTED / REVIEW_INCOMPLETE, draft; no integration readiness.

Limits and continuation

Git entry presence bounds traversal without certifying a repository. Native Windows symlink execution and full required hosted gates remain unestablished. No global settings, generic help, cache-retention, releases, deployments, credential/security settings or support-tier changes. Rollback is a revert of this bounded repair.

Parent owner resumes renewed independent review on the exact repaired head and qualified Ready admission only after applicable findings and proof are satisfied. After pushing the repair, readback showed the PR had previously been marked Ready outside this lane. It was returned to Draft under the repository material-push procedure. This lane has not marked the successor Ready or merged it; renewed review of the open finding is required.

Owned checkout, build state and proof logs are retained for parent reproduction; no frozen duplicate executable or archive is generated. This repair admits up to 5 GiB additional output against observed 15 GiB free, preserving the real 5 GiB reserve. Final target is 21 GiB and host free space 11 GiB. All lane command sessions have terminated; checkout/branch/build state and logs remain retained for parent review and reproduction.

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

Copy link
Copy Markdown

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 44eb15e4-7a80-4c92-bdba-f11063bfb0ea
📥 Commits

Reviewing files that changed from the base of the PR and between 01e8a45 and 9ca1332.

📒 Files selected for processing (8)
  • .ripr/traceability.toml
  • changelog.d/config-broken-git-boundary.md
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/config.rs
  • crates/ripr/src/config/tests.rs
  • crates/ripr/tests/cli_smoke/implicit_git_root.rs
  • docs/CONFIGURATION.md
  • docs/specs/RIPR-SPEC-0009-defaults-first-adoption.md
  • 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.

Author source/oracle inspection; disposition REVIEW_INCOMPLETE, with no blocking source finding.

reviewed_head_sha: 039e3d8
integration_basis: tested base be2ad06; observed main 01e8a45 has unchanged config discovery.
claim_boundary: Config discovery does not cross dangling/cyclic .git entries. Local config and explicit CLI precedence survive. Git validity and implicit root selection remain outside this patch.
changed_surfaces_and_semantic_owners_inspected: Full six-file diff; config::discover_config_path/is_repository_boundary/apply_to_check_input, default language detection, CLI config validate and check consumers, LSP config controls, SPEC0009, CONFIGURATION.md, traceability and canonical changelog format.
blocking_findings: none in inspected source/oracle surfaces.
non_blocking_suggestions: none.
refuted_or_stale_findings: #7353 is actively covered by PR #7537 and was not duplicated.
proof_and_ci_observed: Base all-target check/doctor/check-fast passed. Behavioral red on unrepaired base: parent config leaked, 1/1 failed. Repaired config/LSP tests 144/144; git-timeout environment/CLI fallback control 1/1. Published-head check-fast native 0, 14 gates, expected fixture skip, stable six-file selector matching independent Git diff. Public CLI replay prints defaults across malformed parent config and accepts local policy; version names this head, SHA256 660a1887a712c1d8d11bc3bbd80da579998959a3e967a61c0fcf050db4d06ee2. Hosted workflows observed in flight; no hosted qualification pass claimed.
proof_or_review_missing: Local precommit is running (owned session 39952, target/ripr/config-boundary-proof/precommit.log); independent review, complete hosted gates and native Windows symlink execution remain unestablished.
affected_currentness_dimensions: implementation/test/oracle/docs/traceability bound to this head; precommit metadata affects no source.
residual_assumptions_and_non_claims: symlink_metadata is portable, but regression symlink creation executes on Unix only. Existing ordinary boundary controls are portable. Directory entry presence bounds policy and does not authenticate Git. Permission-denied metadata and explicit config symlink targets preserve their prior semantics. The same .git.exists pattern in implicit root selection is a separate source lead.
disposition: REVIEW_INCOMPLETE. Draft publication enables review; no Ready admission, auto-merge or merge authorization is inferred from this comment.

EffortlessSteven commented Oct 13, 2026 •

Copy link
Copy Markdown
Member Author

Read-only independent inspection complete for 039e3d8c936164c9df9ab6cd42ba9f34fc51e349, reverified on the published PR at 2026-10-13 03:00 UTC. The original writer retains source and delivery ownership. No competing source edits, PR, Ready transition, candidate check-fast/precommit/hosted qualification run or merge was performed. The previously proposed qualification continuation is superseded by the parent's explicit read-only steering.

No blocking source or oracle findings. All six changed files were inspected against be2ad06fa86edf2cca68f9dd0ffb107b94c16484. symlink_metadata recognizes dangling/cyclic Git marker entries while config discovery still checks the nearest file before the boundary; local policy and explicit CLI settings preserve their precedence. SPEC-0007's repository-config contract, the SPEC-0009 amendment, docs, traceability and changelog agree. No schema, workflow, dependency or permission change is present.

Observed nonempty public-consumer proof: the same independent literal-expectation driver ran ten controls before and after repair. Baseline RED rejected three cases: dangling and cyclic markers let outside mode = "ready" govern instead of draft, and malformed outside TOML made config validate exit 2. Seven controls passed on the baseline. Exact candidate GREEN passed 10/10: absent marker parent inheritance; dangling/cyclic barriers; malformed outside config ignored; local boundary config; explicit --mode instant plus --git-timeout 0 overriding invalid RIPR_GIT_TIMEOUT; regular Git file/directory and resolved-link barriers; malformed local config refused. Every eight analysis invocations produced exactly one changed Rust file, one probe and one finding. Each invocation had a 30-second process-group deadline. This challenges implementations that disable all parent discovery, stop before local policy, or overwrite explicit settings.

Baseline executable: source 0e4e630d6bbaf520790d4207032d0afeb489a531, SHA256 7823a5239da93899931bf0de18aec8cb10baee1ab4f519824d1e11c7c317eb76. Its config.rs and the PR's parent are byte-identical (SHA256 652e05f30fe6fd530adb332e5cfccea6321facca85afbcbe7f0f439eb03b12a2); this is baseline consumer evidence for that identical faulty decision, not a claim to have built the exact PR parent. Candidate executable: actual clean-head build/version 039e3d8c936164c9df9ab6cd42ba9f34fc51e349, SHA256 ce3fea0164a3f9d463a56fbbe3b9c60335695a8d64cac86fafc1e39741403920. Both actual witnesses and stdout/stderr are preserved independently from mutable Cargo output.

Pinned Rust 1.95.0/Linux x64, serial builds: baseline worktree doctor, six applicable check-fast gates (independent empty selector), all-target compile and public binary build passed. Candidate cargo build --locked -p ripr --bin ripr passed in 161.908 s; maximum child RSS 3,569,868 KiB. Baseline all-target compile maximum child RSS 5,831,240 KiB. Target allocation observed after candidate build: about 5.7 GiB; this is a terminal measurement, not a full-run disk peak. Free disk remained about 23 GiB, inside the admitted 12 GiB growth budget and 10 GiB reserve.

Retained local receipts: /workspace/config-precedence-evidence/consumer-{red,green}/receipt.json, consumer-{red,green}.log, base-{fast,check,bin}.resources.json, candidate-bin.resources.json, the frozen executables/version/hash records, and the independent driver consumer_control.py. Original task/driver handles 6855, 4204 and 30645 all reached native exit 0; consumer RED wrapper exited 1 for the three intended behavioral failures and GREEN exited 0. No new Cargo command will be started by this lane.

Disposition: REVIEW_INCOMPLETE for delivery qualification. The source/oracle/public-consumer dimensions are established for the published head; required Ready-triggered Ripr Rust Small Result, final hosted evidence and native Windows damaged-symlink execution are not established by this pass. The original writer owns remaining qualification, Ready and eligible protected integration. Verified claim/owner handoff: this PR, branch fix/config-precedence-candidate; no separate writer task URL was available. The adjacent implicit-root .git.exists() remains an excluded source lead, not part of this acceptance.

Protection evidence limits remain explicit: shell GitHub API reads returned Forbidden and stopped; connected-app review-protection read returned 403 Resource not accessible by integration; the branch-rules URL was unsupported. Readable branch metadata identified protected main and required Ripr Rust Small Result. No missing rule is inferred and no settings/admin bypass is proposed.

Resource handoff: frozen RED/GREEN executables, source bundle (verified against be2ad06), driver, command/resource/consumer receipts and copied base reports are retained for parent verification. Both inspection checkouts are clean; an owned-process audit found no active lane consumers. The shared mutable Cargo target and staged pinned toolchain remain inactive and await parent verification before resource retirement; neither is delivery authority. The prepared candidate_qualification.sh and Rust regression scaffold were never executed or added to source. No further command or background monitoring is arranged.

Late review evidence: the unresolved Devin thread #7597 (comment) is a valid inherited implicit-root defect, not a refuted symptom. The frozen exact candidate was run from outer/project/src with an enclosing Cargo workspace and dangling project/.git. Implicit check selected outer, consumed outside ready policy and produced one changed file/probe/finding; explicit --root .. selected the project, used draft/null config identity and produced the same nonempty subject. Frozen baseline also selected outer/ready implicitly (and still leaked ready on the explicit path). The root resolver source is unchanged by this PR. Receipt: /workspace/config-precedence-evidence/implicit-root-control/receipt.json. This validates the previously excluded source lead without broadening or repairing the selected-root config claim. The thread remains unresolved; original writer owns scope and integration disposition. No automatic merge or REVIEW_READY is claimed.

The UB review's proposed no-held-handle note is a non-blocking documentation suggestion: symlink_metadata returns Metadata by value, the function returns bool, and no entry handle or metadata reference is retained. The same review already refutes the alleged UAF; this patch introduces no held-entry/lifetime guarantee.

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

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • crates/ripr/src/config.rs:195 — Add a one-line note near is_repository_boundary that the parent walk does not retain the symlink_metadata handle beyond this call, so future readers cannot infer a held entry.

Verification questions

  • Confirm new regression covers dangling and cyclic .git symlinks but is gated #[cfg(unix)]; Windows boundary behavior unverified.

Refuted

  • Using symlink_metadata inside is_repository_boundary could buffer a directory entry that the caller later dereferences after the filesystem mutates, causing a UAF or aliasing of stale metadata.; refuted because: symlink_metadata is a value-returning syscall (no handle); is_repository_boundary returns bool by value and stores nothing. The diff replaces .exists() with an equivalent metadata check; ownership and lifetime surface is identical.
  • Existing config_file_discovery_stops_at_git_boundary already implicitly covers broken-marker behavior because metadata would also be Ok for a normal directory.; refuted because: That baseline test uses a real directory .git so symlink_metadata both Ok and follows; the unresolvable distinct path (.is_ok() vs .exists() resolving only when target exists) is exercised only by the new test, which is registered in traceability.
  • The repair should be broadened to all fs-metadata callers (e.g., worktree doctor, init).; refuted because: Worktree doctor and init operate on already-discovered roots and don't traverse parent directories looking for .git boundaries; broadening would be scope creep without evidence of leak.
  • symlink_metadata change might broaden the boundary to include any non-error stat (e.g., a zero-byte regular file named .git) and falsely stop discovery.; refuted because: Zero-byte regular .git is a degenerate case unrelated to this fix scope; existing .exists() also returned true for it, so no regression introduced. Adding special-casing would expand scope beyond smallest complete fix.

Parked follow-ups

  • symlink_metadata consults the directory entry itself, so any lifetime/aliasing risk predates this PR and is unchanged: caller pins &Path to a path joined in the caller frame.
  • Two parked follow-ups not broadened: Windows symlink semantics under symlink_metadata (per PR body's REVIEW_INCOMPLETE) and implicit-root .git.exists() in root selection (PR body explicitly disclaims).

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • ripr self-sensor returned exit code 2; spec/traceability/changelog were updated but the tool's own gate could not be exercised locally.

@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 review: no blocking source or oracle findings; local/public-consumer qualification passes. Eligible for the normal Draft → Ready admission; merge remains blocked on the required hosted qualifier.

reviewed_head_sha: 039e3d8
integration_basis: current main 6bd4e76; config owner/test files unchanged from the PR parent. merge-tree exit 0, combined tree 12cf00fad396c86a07abe1da90e0782a9c163edc (composition only).
claim_boundary: selected-root configuration discovery respects every .git directory entry, including unresolvable links; nearest local policy and explicit CLI precedence survive. No Git-provenance, implicit-root-selection, symlink-authentication, permission-denied, release or deployment claim.
changed_surfaces_and_semantic_owners_inspected: full six-file diff, discover_config_path/is_repository_boundary/load_for_root/apply_to_check_input; real check/config-validate consumers, LSP configuration controls, SPEC0009, CONFIGURATION.md, traceability and changelog. Local config is checked before the boundary.
blocking_findings: none.
non_blocking_suggestions: none.
refuted_or_stale_findings: UB review's requested handle-lifetime note is not a defect or required repair. symlink_metadata returns Metadata by value; is_ok() immediately converts that Result to bool and retains no metadata/handle. The existing source comment correctly describes entry presence. Filesystem races are neither introduced nor claimed solved. Windows symlink execution remains a limitation, rather than evidence that regular entry behavior regressed. No inline review threads were present.
proof_and_ci_observed: pinned Rust 1.95.0/Linux x64, clean detached exact-head checkout. cargo test -p ripr --lib config::tests:: -- --test-threads=1: 144 passed, 0 failed/ignored. Focused git_timeout_environment_is_a_fallback_and_zero_disables: 1 passed. Actual Cargo compiler-artifact executable /workspace/ripr-swarm/target/debug/ripr, fresh=false, version reports this complete head, SHA256 16125b39d59688a9f6470bdb344b74fcdb29c35ea8834e58ff36d44959621384.
Independent native boundary harness compiled the verbatim discovery functions from candidate and parent: candidate passes absent marker, regular directory/file, links to directory/file, dangling, self-cycle and two-link cycle, with boundary-local and nearest-local controls for each. Parent fails at dangling: parent leaked (native 101), after five ordinary controls pass. This is function-level RED/GREEN, not a baseline CLI build.
Actual public CLI: 47 invocations pass across those eight entry forms. Absent marker inherits parent deep mode; markers retain draft defaults and ignore malformed parent TOML; local config applies ready mode; explicit instant plus --git-timeout 0 overrides policy and invalid RIPR_GIT_TIMEOUT fallback; malformed local config refuses with exit 2. All 24 analysis invocations contain exactly one changed Rust file/probe/finding.
Local evidence: /workspace/proof-7597/{config.log,environment.log,boundary-{red,green}.log,public.log,public/receipt.json}; public receipt SHA256 845320d5c37b3f31f4901211449afcdae43c2bdda5c2fcd8b89eb749be37974d. The receipt retains every argv, exit, stdout/stderr and executable identity; detailed results above are the repository-readable evidence. Author check-fast/precommit reports were read as reported evidence, not independently relabeled as this run.
proof_or_review_missing: required Ripr Rust Small Result has no run yet on this draft head; no duplicate qualifier is active. Hosted Rust-only and provider work observed in flight. Gemini/CodeRabbit quota is missing provider review, not approval; this substantive review supplies independent semantic inspection. Native Windows damaged-symlink execution not performed.
affected_currentness_dimensions: implementation, test/oracle, docs/contracts and public consumers verified at unchanged published head; hosted admission is the next missing dimension.
residual_assumptions_and_non_claims: .git presence bounds policy without proving a usable Git repository; existing config-symlink and inaccessible-metadata behavior is retained. Active retention PR #7520 untouched. Ready and main push workflow inspection found validation/artifact qualification, no automatic public release or deployment.
disposition: REVIEW_INCOMPLETE solely for outstanding hosted integration qualification; source/oracle/public-consumer dimensions PASS. Proceed with authorized Ready admission, then refresh required check/review/thread state before any protected squash merge.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 13, 2026 03:05
@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!

@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 blocking source or test-oracle findings emitted.

reviewed_head_sha: 039e3d8
integration_basis: frozen diff parent be2ad06; no integration qualification is claimed.
claim_boundary: config discovery treats dangling/cyclic .git directory entries as a policy boundary, preserves local config and explicit CLI precedence, and does not establish Git provenance or change implicit root selection.
changed_surfaces_and_semantic_owners_inspected: all six files; config::is_repository_boundary/discover_config_path and consumers through check/config validate; unit stimulus/oracle; docs/spec/traceability/changelog parity.
blocking_findings: none in inspected source/oracle/public-consumer dimensions.
proof_and_ci_observed: three intended real-consumer failures before repair, seven unchanged controls passing; exact candidate 10/10 independent public controls passing. All eight analysis cases per executable had one changed file/probe/finding. Damaged-marker JSON now has actual draft mode and null config identity; local deep policy and explicit instant remain effective. Actual frozen executable versions/hashes, commands, stdout/stderr and resource receipts are recorded in the linked technical handoff.
proof_or_review_missing: candidate check-fast/precommit and required Ready-triggered Rust Small qualification are not established by this independent pass; native Windows damaged-symlink execution is not established. Review-provider quota notices are not semantic passes.
affected_currentness_dimensions: implementation, stimulus/oracle, public claim and generated relationships inspected at the named head; integration/required hosted qualification remains with the original writer.
residual_assumptions_and_non_claims: baseline 0e4e630 has byte-identical config.rs to the candidate parent, but its build is not relabeled as the parent build. No source changes, rival PR, Ready transition or merge by this read-only lane. Original writer retains branch fix/config-precedence-candidate and delivery ownership.
disposition: REVIEW_INCOMPLETE for delivery qualification; independent source/oracle/nonempty-consumer proof complete.

Exact receipts and original-writer continuation: #7597 (comment)

@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 found 1 potential issue.

Devin Review

Comment thread crates/ripr/src/config.rs Resolved

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

Late finding intake on unchanged head 039e3d8: independent CLI replay confirms the newly posted implicit-root leakage thread. Both dangling and cyclic .git markers remain invisible to the unchanged implicit_git_boundary resolver: candidate and equivalent-owner baseline choose enclosing workspace mode=deep when --root is omitted. Candidate explicit project root retains draft defaults while baseline explicit project root leaks deep. Every replay has one changed Rust file, one probe and one finding. This is a verified pre-existing defect in a resolver the PR explicitly excludes, not a regression in the reviewed load_for_root repair; it still blocks integration while the author/parent scope disposition and review thread remain open. A source/evidence-backed reply has been posted and read back; thread intentionally remains unresolved. No repair was silently accepted or candidate changed. Disposition REVIEW_INCOMPLETE now includes that open finding/thread plus outstanding required hosted qualifier 38340063054. Current main advanced to 5ba591221fetched locally; all four reviewed candidates remain conflict-free by fresh merge-tree, and the changed semantic owners are unchanged by the intervening main commits. No behind-only restack or duplicate CI requested.

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 13, 2026 03:46

@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

  • Both tests are cfg(unix); Windows behavior of is_repository_boundary under symlink_metadata is documented but not tested. PR body lists this as a known limitation.
  • Public API surface unchanged: discover_config_path signature, apply_to_check_input, CLI subcommands, and WorkTreeRootProbe variants are stable. No new external helper introduced; only a filesystem probe inside two existing functions changes. Downstream integration risk is test-gating only (#[cfg(unix)] on the new regressions).
  • crates/ripr/src/config.rs:195 — The one-line addition near is_repository_boundary should explicitly state that symlink_metadata is not a held handle, so future readers cannot infer aliasing/UAF risk. Minor comment-quality, not a bug.

Verification questions

  • Confirm both new regression tests are #[cfg(unix)] only; Windows symlink execution semantics and junction targets remain unverified on the same boundary.
  • Confirm unit regression gates #[cfg(unix)] for symlink creation; Windows surface (NTFS junctions, directory symlinks, drive-relative .git markers) remains unverified by this PR. Configuration.md and SPEC-0009 extend the boundary contract to all platforms; GitHub-actions bot already flagged this in the seeded thread.
  • Confirm new smoke test mutates a shared fixtures root and is not #[serial]/serial_test, so a parallel cargo-test worker could observe partial layout mid-run; outer is temp_root/unique_external_workspace but the env override of RIPR_CACHE_DIR is the only isolation knob.

Refuted

  • symlink_metadata in is_repository_boundary could buffer an entry that the caller later dereferences after filesystem mutation, causing UAF or aliasing of stale metadata.; refuted because: symlink_metadata is a value-returning syscall; it does not return a handle. is_repository_boundary returns bool by value and stores nothing. exists() in implicit_git_boundary is an independent fresh syscall, not a dereference of a prior handle. Ownership/lifetime surface is identical to the .exists() baseline.
  • symlink_metadata buffers a directory entry that callers later dereference after the filesystem mutates, causing UAF or stale metadata aliasing.; refuted because: symlink_metadata is a value-returning stat-family syscall with no kernel-allocated handle; both call sites consume the result into a bool or an enum variant and drop it before returning. Ownership and lifetime surface is identical to the prior .exists() check.
  • Another helper or runtime path could still follow a broken .git symlink past the new boundary (e.g., cache, LSP settings, init, or workspace_metadata).; refuted because: All filesystem boundary decisions observed for the new semantics are concentrated in discover_config_path and implicit_git_boundary; no other rs file uses symlink_metadata or independently inspects .git entries. Cache and check flow through these two anchors; LSP/CLAUDE.md-style config shares load_for_root.

Evidence gaps

  • Windows symlink execution and behavior at broken .git entries remain unverified; regression gated cfg(unix) only.
  • Windows boundary behavior remains unverified: both new tests are gated #[cfg(unix)] and PR body limits claim to POSIX symlink handling; hosted Windows witness is missing and effort is gated REVIEW_INCOMPLETE for that qualifier.
  • 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.

Author repair inspection on exact published head 9ca1332; disposition REVIEW_INCOMPLETE, not ready for integration.

The implicit-root finding is accepted and repaired, not scope-excluded. Inspected the shared root-selection helper and check/cache callers, directory-entry versus target/provenance distinction, complete public regression, existing genuine Git/linked-worktree/launch/timeout controls, config merge authority, eight-file diff, docs/spec/traceability and changelog. Resolving .git targets retain the Git probe; missing entries retain the prior no-boundary behavior; present unresolvable entries are Unverified barriers. Local Cargo roots and config precede enclosing policy, and explicit CLI settings still win.

Observed discriminator: prior published candidate with the new public test failed native 101 on deep versus draft, after the explicit-root positive. Repaired full public implicit-root suite 6/6; exact-head fresh public regression 1/1 and root-selection units 10/10. The fixture verifies one probe/one finding, local cache root, dangling and cyclic links, local ready plus explicit draft/instant controls. Explicit process-policy passed. Exact-head check-fast native 0, 14 gates and stable eight-path selector. Exact-head precommit native 0 binds candidate/base be2ad06 and all eight committed paths, seven passing outcomes, no skips/limitations; digest c7a72bcfd1a3e31fffc7b020ed10131cf0fca6e928ac3cda51eb17ac2d40da71. Ordinary merge-tree with observed main 86b0267 is conflict-free; no combined-tree runtime claim.

No additional source/oracle blocker found in this author inspection. The existing review thread remains unresolved for independent renewed verification. Native Windows symlink execution and complete required hosted qualification are not established. PR was returned to Draft after the material push; no Ready/merge operation follows this comment. Earlier head review and aggregate proof remain historical, and unaffected config-test evidence retains its original identity. Parent owns renewed review and thread disposition before any integration-ready classification.

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

Renewed independent review of repaired published head 9ca1332: the verified implicit-root leakage finding is addressed. No additional blocking source/oracle finding. Local qualification PASS; REVIEW_INCOMPLETE for fresh required hosted proof.

Changed currentness dimensions: shared implicit_git_boundary, public check/cache root selection, new real-CLI regression, expanded spec/docs/changelog/traceability. Full current eight-file diff and successor delta inspected. The prior config discovery/merge implementation and config test blobs are unchanged from independently reviewed 039e3d8; those earlier results retain their original identity.

Source/provenance: symlink_metadata identifies entry presence; an unresolvable target yields WorkTreeRootProbe::Unverified, never a certified Git root. Resolving entries retain the original probe and its failure/deadline recovery. Both workspace and project-root walks stop at Unverified; nearest local manifests are still selected. Check/cache share that owner. No cache-retention #7520/#7578, settings, generic help, support-tier, release or deployment change.

Exact-head native proof (Rust1.95.0/Linux): cargo test -p ripr --test cli_smoke implicit_git_root -- --test-threads=1: 6 passed, 0 failed/ignored, 446 filtered. Includes new broken-marker check/cache consumer and retained invalid markers, inherited selectors, launch failure, nested-boundary and fixed probe-timeout controls. cargo test -p ripr --lib project_root_ -- --test-threads=1: 10 passed, 0 failed/ignored, 10097 filtered, covering genuine Git/linked worktree and local workspace/root behavior.

Independent actual-CLI successor replay: 51 invocations across eight entry forms (absent, directory, file, links to directory/file, dangling, self-cycle, two-link cycle). Absent marker preserves parent workspace deep mode and parent cache root. Present barriers retain project root/cache and draft defaults; malformed parent policy is ignored; local ready applies; explicit draft/instant wins; --git-timeout0 ignores invalid environment fallback; malformed local policy refuses config_invalid. All 36 successful analyses contain exactly one changed Rust file, one probe and one finding; seven config refusals and eight cache status reads are counted separately. Explicit-root precedence/config controls from the earlier independent pass remain carried-forward evidence for unchanged code, not relabeled as successor executions.

Actual binary version names the complete successor SHA; frozen executable SHA256 93d03f786f02c7d271504c7d090c7f0d208c91b1eb5035dd1560a2029656d9f9. Logs/argv/exit/stdout/stderr: /workspace/proof-7597/{r2-implicit-tests.log,r2-root-units.log,r2-public.log,r2-public/receipt.json,ripr-repaired-exact-head}. Prior-head wrong behavior for dangling and cyclic implicit scans remains captured in implicit-lead-{verified,cycle} receipts. This directly distinguishes the repaired root selection from the previously confirmed bypass.

Author repair reply was read back; independent verification reply posted to the same finding and read back before resolution. Docs no longer exclude implicit scans; acceptance now matches runtime. Native Windows broken-symlink creation is unestablished on this host; standard API semantics and existing ordinary-entry controls are preserved, with no new platform-support claim.

Author process-policy/check-fast/precommit reports bind this successor but are reported evidence, not this review's reruns. No Ready-triggered routed run exists on this draft head; the historical 039e3d8 qualifier is not successor proof. Proceed with one normal Draft→Ready admission after repaired-thread resolution, then obtain fresh exact-head required result/reviews/protections before protected integration. No auto-merge is armed.
disposition: REVIEW_INCOMPLETE solely for outstanding hosted qualification; REPAIRED_FINDING_VERIFIED / independent source-oracle-public-consumer PASS.

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

@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_READY — independently reviewed repaired candidate 9ca1332. The earlier 039e3d8 implicit-root leakage was reproduced, returned to the author, and repaired; the finding is resolved after real public replay. Successor controls: six implicit-root CLI tests and ten project-root unit tests pass; independent 51 public invocations cover absent/directory/file/resolving symlink/dangling/self-cycle/two-cycle entries, implicit check/cache isolation, nonempty analysis, local configuration, explicit mode/timeout precedence, malformed parent/local policy and environment fallback. Frozen successor CLI SHA256 93d03f786f02c7d271504c7d090c7f0d208c91b1eb5035dd1560a2029656d9f9; receipts retained in /workspace/proof-7597.

Required exact-head hosted run 38345443993 now succeeds: selected Rust gates job 115125761624 reports 14,922 tests passed, 2 skipped, including all six implicit_git_root controls and the affected project-root tests. Ripr Rust Small Result check 115140228364 is SUCCESS on this head. Fresh review/thread readback has no requested changes or unresolved threads; current required context/app and active ruleset were checked. Current main 7ef7eed merges conflict-free (native merge-tree 0, tree a962f07d330339885cc2bedf3420380e286d3353); this is structural evidence, not a combined-tree runtime claim.

No introduced or claim-falsifying defect remains in the reviewed scope. Normal expected-head protected squash integration is qualified. Native full Windows symlink execution remains outside established proof; skipped optional jobs are not passes. No auto-merge, bypass, release, deployment, credentials/security changes or retention-lane changes.

@EffortlessSteven
EffortlessSteven merged commit b344e98 into main Oct 13, 2026
43 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/config-precedence-candidate branch October 13, 2026 05:13
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.

1 participant