Skip to content

Admit a safe Integration new-test proposal when no existing test owns the repair - #4625

Merged
EffortlessSteven merged 28 commits into
mainfrom
cursor/new-integration-test-target-e401
Sep 29, 2026
Merged

EffortlessSteven merged 28 commits into
mainfrom
cursor/new-integration-test-target-e401

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Producer-owned Integration NewTestTargetProposal admission for seams that have no safe existing test target. Ordinary public-library owners with an established tests/ layout and default Cargo autodiscovery earn one new tests/ file. Private owners, private-module owners, autotests = false, and autolib = false without an explicit [lib] stay Missing. A dangling proposed-file leaf is occupancy, not absence. Proposed is not Existing; RIPR still does not invent expected values or generate/apply the test body.

After main landed InlineUnit (#4839), this candidate keeps both producers: prefer a Proposed Integration, then a Proposed InlineUnit. Combined Missing keeps Integration Cargo/layout blockers; a PrivateOwner Integration refusal does not replace an InlineUnit module reason.

Closes #4576

Exact candidate SHA: afc47aa7bec259c33f40336054e9d7ad75c728ef

Swarm / Source Boundary

This PR targets EffortlessMetrics/ripr-swarm, the normal development trunk for
trusted same-repo ripr work. Confirm the change belongs here:

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

Source-of-truth Links

Proposal: reserved RepairTargetSelection::{Existing, Proposed, Missing} / NewTestTargetProposal on main after #3410
Spec: RIPR-SPEC-0005 test-grip evidence; producer-owned repair-route readiness
ADR: n/a
Plan item: #3162 Integration leaf only
Governing issue or accepted claim: #4576
Acceptance delta (one sentence): a value-route seam with no existing test target earns one producer-owned Integration proposal when the owner is a crate-root public library item with established tests/ autodiscovery, and stays Missing for private owners, private-module owners, disabled autotests, disabled autolib without [lib], or an occupied proposed-file leaf.

Candidate Relationships

Candidate branch: cursor/new-integration-test-target-e401
Stack parent or prerequisite PR: #3410 (landed; reserved types)
Merged origin/main at 1b133c68d (including #4839 InlineUnit). Later main 26603f1fc is behind-only; git merge-tree --write-tree stays clean. Full classified stays 1.18 / sharded 0.24. Compact stays at main's 0.24.

Scope

One Integration-leaf producer: admit or refuse a new integration-test file from RustIndex facts, persist it on full TestGripEvidence, and have repair-packet eligibility prefer Existing over Proposed.

Scope Classification

  • One production behavior

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • none

Proof

cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route
cargo test -p ripr --lib output::schemas::tests::rerun_example_nested_versions_match_live_cache_identity
cargo check -p xtask

60 producer/repair-route tests and schema identity passed on beeb3f2ad. a68ca0746 repaired the IS_TEST_FILE_CONSUMERS length. afc47aa7b repairs hosted clippy collapsible_if on the Proposed present-reason push. Hosted Ripr Rust Small Result is not yet current for afc47aa7b.

Claim Boundary

What may be claimed: a producer-owned Integration new-test file can be selected when no existing test owns the repair and admission facts are present.

What must not be claimed: RIPR does not write the test, invent oracles, insert inline units, or authorize production-file edits. This is not a 0.11 support promotion.

Rollback

Revert the PR. Cache generations 1.18 / sharded 0.24 miss warm pre-proposal classified entries, including main's 1.17 / 0.23. Compact 0.24 is unchanged from main.

Static Language Check

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

Engineering Check

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

Claim / non-claim

Selected seam: Integration new-test target proposal when no existing test can own the repair.

Open in Web Open in Cursor 

Add production-path RustIndex/readiness tests for a public library plus
established tests/ layout, and the matching autotests-disabled and private
owner negatives, before the producer exists.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@gemini-code-assist

Copy link
Copy Markdown

Warning

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

@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: c2f94f3b-97f5-4385-b51e-56bf455bcd43


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

…4576)

When no existing test can own a value-route repair, the producer now
earns one root-contained tests/ file from public library visibility and
Cargo autodiscovery facts. Existing targets still win; private owners
and autotests=false stay Missing. Proposed is not Existing, and the
proposal does not invent expected values or a test body.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@cursor cursor Bot changed the title analysis(rust): propose a safe new integration-test target (#4576) Admit a safe Integration new-test proposal when no existing test owns the repair Sep 29, 2026
cursoragent and others added 8 commits September 29, 2026 02:20
Skip serializing after-edit details so public readiness JSON stays the
reserved kind/file/owner/provenance shape.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
The Integration producer now uses the Proposed types, so the
repair_route dead_code budget is closed rather than left unread.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…4576)

Route the Integration admission proofs through the producer-owned
repair-packet authority instead of calling readiness directly.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…ise (#4576)

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
Readiness fail-closes to Missing unless the persisted proposal is an
Integration file with producer-owned provenance.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
)

Do not re-derive integration layout from path-string heuristics; use the
typed rust_index test-file authority.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…er (#4576)

The Integration producer is a reviewed consumer of the typed test-file
authority; tests assert path containment instead of re-deriving role.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…ields (#4576)

Drop in-memory after-edit command details so Proposed stays a small
typed identity and does not invent verification authority.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: 0fa83a6b12c4d9d482d619cf3ea09438e6e5d470
integration_basis: origin/main at 4a95f7d8616244bedb5ed358df89fa5e390a9c4e (behind-only; no restack)
claim_boundary: Integration NewTestTargetProposal when no existing test can own a value-route repair. Private owner and autotests = false stay Missing. Proposed is not Existing. No inline unit insertion, production-file edit permission, invented expected values, or 0.11 support promotion.

changed_surfaces_and_semantic_owners_inspected:

  • analysis/new_test_target.rs producer (RustIndex + Cargo discovery + crate-root pub fn)
  • test_grip_evidence::evidence_for_seam_with_context persist; compact evidence stays empty
  • repair_route_readiness / repair_packet_eligibility prefer Existing; fail-closed Integration + ProducerOwned
  • discriminator matcher accepts " (boundary value)" for no-related-test seams
  • cache generations 1.16 / sharded 0.22; compact 0.22 unchanged
  • production-path tests through inventory_classified_seams_at + repair_packet_eligibility

blocking_findings: none from source/oracle inspection of this head

non_blocking_suggestions:

  • Admission re-reads the owning Cargo.toml rather than reusing cargo_targets facts; acceptable for this leaf.
  • Only crate-root src/lib.rs public items are admitted; submodule pub fn stays out of this Integration leaf.

refuted_or_stale_findings: none

proof_and_ci_observed:

  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 8 admission + 20 repair-route/schema tests passed
  • cargo xtask precommit passed on this candidate
  • Hosted on this SHA so far: GitGuardian success; CodeRabbit skipped (manual OSS review). Required merge-gate jobs are not yet present for this head.

proof_or_review_missing:

  • Hosted required PR CI / merge-gate artifacts for 0fa83a6b12c4d9d482d619cf3ea09438e6e5d470
  • External reviewer other than this author COMMENT

affected_currentness_dimensions: production implementation, test stimulus, test oracle, public claim (reserved 4-field Proposed), generated relationships (full/sharded cache generation), candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body or invent expected values.
  • Compact classified-seam cache does not carry proposals.
  • Rolling work only; not a 0.11 support promotion.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted required checks and a later REVIEW_READY pass.

…roposals

Keep main's typed semantic-body integrity generations, then move full
classified 1.16 -> 1.17 and sharded 0.22 -> 0.23 so a warm 1.16 hit
cannot hide a now-admitted Proposed Integration target. Compact stays
at 0.23 because compact evidence does not carry the admission.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review September 29, 2026 02:47
@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!

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T02:51:35.477172Z 2a7c67d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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 6 potential issues.

Devin Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a7c67daf6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…4576)

Documented crate-root pub fn items keep earning an Integration proposal.
A pub fn inside a private module stays Missing so the route cannot name
an unbuildable test. Admission uses the declared [lib] path and parser
symbol identity instead of walking trivia or assuming src/lib.rs.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: ddaa70e7b94a87340f3a097af175e0e68208e864
integration_basis: origin/main at eb3a2e9ce5affe144c99767ebe5b25ab6bac9d6b (combined-tree conflict repair landed on this candidate; no second PR)
claim_boundary: Integration NewTestTargetProposal when no existing test can own a value-route repair. Private owner, private-module owner, and autotests = false stay Missing. Proposed is not Existing. No inline unit insertion, production-file edit permission, invented expected values, or 0.11 support promotion.

changed_surfaces_and_semantic_owners_inspected:

  • analysis/new_test_target.rs producer (RustIndex + Cargo discovery + declared [lib] path + crate-root pub fn at start_line + parser symbol identity)
  • test_grip_evidence::evidence_for_seam_with_context persist; compact evidence stays empty
  • repair_packet_eligibility prefers Existing; fail-closed Integration + ProducerOwned
  • discriminator matcher accepts " (boundary value)" for no-related-test seams
  • cache generations 1.17 / sharded 0.23 after keeping main's #4382 1.16 / 0.22 / compact 0.23
  • production-path tests through inventory_classified_seams_at + repair_packet_eligibility

blocking_findings: none from source/oracle inspection of this head

non_blocking_suggestions:

  • Lexical-fallback files stay OwnerUnresolved; parser-backed crate-root identity is required.
  • Nested pub mod items stay Missing on this Integration leaf (extra symbol segments).

refuted_or_stale_findings:

  • Devin cache-key/Cargo.toml finding: RepoSeamCacheKey already hashes workspace manifests via hash_workspace_manifests.
  • Devin changelog/traceability ask: rolling work under RIPR-SPEC-0005; no 0.11 support promotion.
  • Devin top-level tests/*.rs layout: intentional fail-closed established-layout gate.

proof_and_ci_observed:

  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 10 admission + 19 repair-route tests passed
  • cargo xtask precommit passed on ddaa70e7b94a87340f3a097af175e0e68208e864
  • Hosted required merge-gate jobs are not yet complete for this new head (previous head's CI was superseded)

proof_or_review_missing:

  • Hosted required PR CI / merge-gate artifacts for ddaa70e7b94a87340f3a097af175e0e68208e864
  • CodeRabbit/Gemini quota-skipped output is missing review, not a clean pass

affected_currentness_dimensions: production implementation, test stimulus, test oracle, conflict resolution, integration basis, candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body or invent expected values.
  • Compact classified-seam cache does not carry proposals.
  • Rolling work only; not a 0.11 support promotion.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted required checks and a later REVIEW_READY pass.

cursoragent and others added 2 commits September 29, 2026 03:45
Required status checks are strict. Combined tree keeps this leaf's
Integration producer and main's new path_glob module.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…n-test-target-e401

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: 1659711e4c0a709552c6cd5cd0099abac31a5dc3
integration_basis: origin/main at e9ec4a436 (merged; kept #4576 cache generations 1.17/0.23 and is_test_file inventory; took main's marker-auto Python docs checker)
claim_boundary: Integration NewTestTargetProposal when no existing test can own a value-route repair. Private owner, private-module owner, and autotests = false stay Missing. Proposed is not Existing. No inline unit insertion, production-file edit permission, invented expected values, 0.11 support promotion, or absorption of #4739's TypeScript #4635 leftover.

changed_surfaces_and_semantic_owners_inspected:

  • analysis/new_test_target.rs producer (RustIndex + Cargo discovery + declared [lib] path + crate-root pub fn at start_line + parser symbol identity)
  • test_grip_evidence::evidence_for_seam_with_context persist; compact evidence stays empty
  • repair_packet_eligibility prefers Existing; fail-closed Integration + ProducerOwned
  • discriminator matcher accepts " (boundary value)" for no-related-test seams
  • cache generations 1.17 / sharded 0.23 after keeping main's #4382 1.16 / 0.22 / compact 0.23
  • production-path tests through inventory_classified_seams_at + repair_packet_eligibility
  • combined-tree merge of e9ec4a436 (CONFIGURATION.md, xtask auto-merged without losing the #4576 inventory row)

blocking_findings: none on the #4576 producer/oracle after this main merge

non_blocking_suggestions:

  • Nested pub mod items stay Missing on this Integration leaf (extra symbol segments).
  • Lexical-fallback files stay OwnerUnresolved.

refuted_or_stale_findings:

  • Prior Devin/Codex threads remain resolved; no new threads on this head.
  • Inherited hosted rust-gates failure on superseded 2a6b5a7e3 was cargo fmt --check on typescript/mod.rs module order from main #4635/#4526, plus the leftover production line_for_offset call. That is #4739's claim, not a #4576 source defect.

proof_and_ci_observed:

  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 29 passed on this head
  • Hosted Ripr Rust Small Result on 2a6b5a7e3 failed at Formatting preflight (typescript/mod.rs); that head is superseded
  • Hosted required merge-gate jobs are not yet present for 1659711e4

proof_or_review_missing:

  • Hosted required PR CI / merge-gate artifacts for 1659711e4c0a709552c6cd5cd0099abac31a5dc3
  • CodeRabbit/Gemini quota-skipped output is missing review, not a clean pass
  • Combined-tree rust-gates formatting/lib-check remain blocked until #4739 lands on main

affected_currentness_dimensions: integration basis, candidate head identity (production implementation, test stimulus, and test oracle of the #4576 leaf are unchanged by this merge)

residual_assumptions_and_non_claims:

  • RIPR does not write the test body or invent expected values.
  • Compact classified-seam cache does not carry proposals.
  • Rolling work only; not a 0.11 support promotion.
  • This candidate does not restore main's TypeScript build/fmt.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for #4739 to restore main's rustfmt/lib-check, a current published-head hosted required check, and a later REVIEW_READY pass.

cursoragent and others added 2 commits September 29, 2026 04:20
…n-test-target-e401

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…n-test-target-e401

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: 84c8673c2374895b28bffc9f4c2724fc1a4b7622
integration_basis: origin/main at 172b165bc (merged #4673 TypeScript leftover repair and #4520 UX/schema; 0 behind)
claim_boundary: Integration NewTestTargetProposal when no existing test can own a value-route repair. Private owner, private-module owner, and autotests = false stay Missing. Proposed is not Existing. No inline unit insertion, production-file edit permission, invented expected values, 0.11 support promotion, or #4739 TypeScript index-reuse.

changed_surfaces_and_semantic_owners_inspected:

  • analysis/new_test_target.rs producer (RustIndex + Cargo discovery + declared [lib] path + crate-root pub fn at start_line + parser symbol identity)
  • test_grip_evidence::evidence_for_seam_with_context persist; compact evidence stays empty
  • repair_packet_eligibility prefers Existing; fail-closed Integration + ProducerOwned
  • discriminator matcher accepts " (boundary value)" for no-related-test seams
  • cache generations 1.17 / sharded 0.23 after keeping main's #4382 integrity generations
  • production-path tests through inventory_classified_seams_at + repair_packet_eligibility
  • combined-tree: #4673 SourceText computed-title + rustfmt module_entries order now present; #4576 inventory row and cache generations retained

blocking_findings: none on the #4576 producer/oracle after this main merge

non_blocking_suggestions:

  • Nested pub mod items stay Missing on this Integration leaf.
  • Lexical-fallback files stay OwnerUnresolved.

refuted_or_stale_findings:

  • Hosted rust-gates failure on 1659711e4 was inherited typescript/mod.rs rustfmt from main #4635. That leftover landed on main via #4673; this head includes it. #4739 is now a later index-reuse follow-up, not the compile/fmt repair.
  • Prior Devin/Codex threads remain resolved.

proof_and_ci_observed:

  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 29 passed on this head
  • cargo check -p ripr --lib passed on this head
  • cargo xtask precommit passed on 8aaa635f1 (main at #4673); not re-run after the #4520 golden/UX auto-merge
  • Hosted required merge-gate jobs are not yet present for 84c8673c2

proof_or_review_missing:

  • Hosted required PR CI / merge-gate artifacts for 84c8673c2374895b28bffc9f4c2724fc1a4b7622
  • CodeRabbit/Gemini quota-skipped output is missing review, not a clean pass

affected_currentness_dimensions: integration basis, candidate head identity (production implementation, test stimulus, and test oracle of the #4576 leaf are unchanged by this merge)

residual_assumptions_and_non_claims:

  • RIPR does not write the test body or invent expected values.
  • Compact classified-seam cache does not carry proposals.
  • Rolling work only; not a 0.11 support promotion.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted Ripr Rust Small Result and a later REVIEW_READY pass.

The #4520 schema-identity test requires the targeted-rerun example to track
live CACHE_SCHEMA_VERSION. This leaf moved full classified evidence to 1.17
for Integration proposals.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: 9e47f33a96a26fe8f8c55c04085f94d2171ae97a
integration_basis: origin/main at 172b165bc (0 behind)
claim_boundary: Integration NewTestTargetProposal when no existing test can own a value-route repair. Combined-tree only: targeted-rerun example fingerprint now tracks live classified cache 1.17.

changed_surfaces_and_semantic_owners_inspected:

  • docs/OUTPUT_SCHEMA.md targeted-rerun cache.input_fingerprint.schema_version 1.16 → 1.17
  • output::schemas::tests::rerun_example_nested_versions_match_live_cache_identity (main #4520 pin)
  • #4576 producer/oracle unchanged from 84c8673c2

blocking_findings: none

non_blocking_suggestions: none new

refuted_or_stale_findings:

  • Hosted rust-only feature lane failure on 84c8673c2 was the #4520 example still pinning classified 1.16 after this leaf moved CACHE_SCHEMA_VERSION to 1.17. That lane is not the required merge-gate.

proof_and_ci_observed:

  • cargo test -p ripr --lib output::schemas::tests::rerun_example_nested_versions_match_live_cache_identity passed on this head
  • Hosted required Ripr Rust Small Result is not yet present for 9e47f33a9

proof_or_review_missing:

  • Hosted required PR CI / merge-gate artifacts for this SHA

affected_currentness_dimensions: public claim / contract parity (example pin), candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body or invent expected values.
  • Rolling work only; not a 0.11 support promotion.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted Ripr Rust Small Result and a later REVIEW_READY pass.

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

Targeted admission review — REPAIR_REQUIRED

Reviewed head: 9e47f33a96a26fe8f8c55c04085f94d2171ae97a, re-read immediately before posting. This is a targeted source/contract review of the new integration-test producer, not a complete clean review of every file or a claim of native runtime reproduction. Preserve the existing candidate and writer.

1. P1 — a dangling final symlink is admitted as a new test file. proposed_integration_file uses !root.join(...).exists() to select a candidate; is_root_contained_new_test_file repeats full.exists() and canonicalizes only the parent. Rust Path::exists follows symlinks, so a pre-existing dangling leaf is reported absent. Its parent can be perfectly root-contained while the proposed leaf is not a genuinely new regular-file location. That violates #4576's new-file/symlink boundary before the external editor acts. Use no-follow leaf metadata: only an actual NotFound permits a new target; an existing link or other entry must be rejected or skipped, and other metadata errors must not be converted to absence. try_exists alone does not fix dangling-link semantics. Add a production admission/readiness control plus an ordinary genuinely absent-file positive. Reference: https://doc.rust-lang.org/std/path/struct.Path.html#method.exists .

2. P1 — library target existence is inferred from a source file while ignoring disabled library auto-discovery. At owning_package, has_library_target = ...is_file() does not consume [package].autolib. A retained src/lib.rs is not a Cargo library target when autolib = false and no [lib] target is declared. The proposed library_crate_name::owner then lacks the target authority required by this leaf. Consume the existing Cargo target authority or conservatively apply explicit-library versus auto-discovery semantics before admission. Add a full inventory/readiness negative for disabled auto-discovery with retained source, and a positive for an explicitly declared [lib] under the same setting. If upstream indexing excludes that negative before this producer is reached, retain that discriminating evidence and make the guard explicit rather than assuming file existence establishes target authority. Cargo's rule: https://doc.rust-lang.org/cargo/reference/cargo-targets.html#target-auto-discovery .

The existing private-container and function-trivia fixes remain valid; these are different admission boundaries. Repair in this PR, not another implementation branch. No whole-program target rewrite, source editing, or support/release promotion is requested.

Proof observed: exact-head source, parent acceptance and prior review discussion. Native positive/negative execution for these two cases is NOT_ESTABLISHED in this session. Expected next evidence is the real producer/readiness test on the repaired head, with nonzero subjects, preserving the existing public-library, private-owner, autotests and Existing-preference controls. This author COMMENT is not approval; no merge-ready disposition is given.

Copy link
Copy Markdown
Member Author

@cursor Address the targeted admission findings in review 5347863523 on this existing candidate, coordinated with the current writer rather than a competing branch. Head inspected: 9e47f33a96a26fe8f8c55c04085f94d2171ae97a.

Keep the #4576 Integration leaf scope. Add the discriminating admission/readiness tests first: (1) a dangling final proposed-file symlink is not a genuinely new safe target; use no-follow leaf metadata rather than exists/try_exists as an absence proof; (2) retained src/lib.rs with autolib=false and no explicit [lib] is not an admitted Cargo library target; explicit [lib] under the same setting remains a positive. If the full upstream indexing path already prevents either candidate, retain that native negative result and explain the authority rather than silently dismissing the reviewed producer gap. Preserve Existing preference, private-container/trivia fixes, autotests, exact package selection, current cache generation and cage boundaries.

Run actual focused tests with nonzero selected subjects and the relevant current gates; repair only these admission boundaries and necessary contract consequences in this same PR. Re-read current source/head first, preserve any current writer's work, and return exact-head proof and the disposition of each review finding. Do not turn a passing source-only helper check into installed-journey proof, create a second implementation, or change release scope.

@cursor

cursor Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Review 5347863523 is already repaired on this same candidate. Current head is 5a701cdfb on #4625. No second branch.

Finding 1 — dangling proposed-file symlink (P1): repaired.
leaf_is_absent uses no-follow symlink_metadata; only NotFound is a new leaf. Occupied dangling leaves skip or become FileCollision.
Proof: dangling_proposed_file_symlink_is_not_a_new_safe_target and dangling_first_candidate_skips_to_a_free_boundary_file. Inventory cannot read a dangling tests/*.rs leaf, so those cases inventory first, then re-admit through the production producer.

Finding 2 — autolib = false without [lib] (P1, r4129764478): repaired and resolved.
has_library_target requires an explicit [lib] whose source exists, or autolib (default true) with auto src/lib.rs.
Proof: retained_lib_rs_with_autolib_false_and_no_explicit_lib_stays_missing (red on 15e2b176a, then green) and explicit_lib_under_autolib_false_still_earns_integration_proposal.

Preserved: Existing preference, private-container/trivia, autotests, package selection, cache 1.17/0.23, cage. No inline unit, production-edit permission, or 0.11 promotion.

Exact-head proof: cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 33 passed on 5a701cdfb. Hosted Ripr Rust Small Result is not current for this SHA (CI success on superseded 87f903dcc does not count). Author COMMENT remains REVIEW_INCOMPLETE. Main moved behind-only; no restack. Waiting on required checks for this head before REVIEW_READY / squash.

Open in Web Open in Cursor 

cursoragent and others added 3 commits September 29, 2026 05:00
Discriminate two fail-closed Integration proposal cases before repairing
the producer: retained src/lib.rs under autolib=false without [lib] stays
Missing, explicit [lib] remains Proposed, and a dangling proposed-file
leaf is occupancy rather than absence.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
…ng leaves

Treat a retained src/lib.rs as a library target only when Cargo would:
explicit [lib], or autolib (default true) with the auto path. Occupied
proposed-file leaves use no-follow metadata so a dangling symlink is not
a new safe target.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
Keep Windows lib-test compiles free of unused imports from the no-follow
occupancy fixtures that only run on unix.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: 5a701cdfb50c1d18d839c12cab5515fc4758c4e1
integration_basis: origin/main at 172b165bc (0 behind)
claim_boundary: Integration NewTestTargetProposal when no existing test can own a value-route repair. Private owner, private-module owner, autotests = false, and autolib = false without [lib] stay Missing. A dangling proposed-file leaf is occupancy, not a new safe target. Proposed is not Existing. No inline unit insertion, production-file edit permission, invented expected values, 0.11 support promotion, or #4739 TypeScript index-reuse.

changed_surfaces_and_semantic_owners_inspected:

  • analysis/new_test_target.rs producer (RustIndex + Cargo autolib/explicit [lib] + declared [lib] path + crate-root pub fn at start_line + parser symbol identity + no-follow leaf occupancy)
  • test_grip_evidence::evidence_for_seam_with_context persist; compact evidence stays empty
  • repair_packet_eligibility prefers Existing; fail-closed Integration + ProducerOwned
  • production-path tests through inventory_classified_seams_at + repair_packet_eligibility (unix dangling-leaf cases inventory first, then re-admit; full re-inventory cannot read a dangling tests/*.rs leaf)

blocking_findings: none on this repaired head

non_blocking_suggestions:

  • Nested pub mod items stay Missing on this Integration leaf.
  • Lexical-fallback files stay OwnerUnresolved.
  • Library-source existence still uses is_file() after the autolib/explicit-[lib] gate; that matches Cargo follow-for-source, not proposed-file absence.

refuted_or_stale_findings:

  • Review 5347863523 P1 dangling proposed-file symlink: repaired. leaf_is_absent uses symlink_metadata; only NotFound is a new leaf. Covered by dangling_proposed_file_symlink_is_not_a_new_safe_target and dangling_first_candidate_skips_to_a_free_boundary_file.
  • Review 5347863523 P1 autolib: repaired. has_library_target requires explicit [lib] or autolib (default true). Covered by retained_lib_rs_with_autolib_false_and_no_explicit_lib_stays_missing and explicit_lib_under_autolib_false_still_earns_integration_proposal. Thread r4129764478 replied and resolved.
  • Prior Devin/Codex threads remain resolved.

proof_and_ci_observed:

  • Discriminating P1 tests failed on 15e2b176a (Proposed for autolib-off and dangling leaves), then passed after the producer repair.
  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 33 passed on this head
  • Hosted required Ripr Rust Small Result is not yet present for 5a701cdfb

proof_or_review_missing:

  • Hosted required PR CI / merge-gate artifacts for 5a701cdfb50c1d18d839c12cab5515fc4758c4e1
  • CodeRabbit/Gemini quota-skipped output is missing review, not a clean pass

affected_currentness_dimensions: production implementation, test stimulus, test oracle, candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body or invent expected values.
  • Compact classified-seam cache does not carry proposals.
  • Rolling work only; not a 0.11 support promotion.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted Ripr Rust Small Result and a later REVIEW_READY pass.

Reconcile the real seam_cache generation conflict: main now owns
classified 1.17 / sharded 0.23 / compact 0.24 / file facts 1.11 (#4597).

# Conflicts:
#	crates/ripr/src/analysis/seam_cache.rs

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: 20634489157cd6f1dd2e29c27a9fd5780a4f7033
integration_basis: origin/main at 13c7ec58a (merged; real seam_cache.rs conflict, not behind-only)
claim_boundary: Integration NewTestTargetProposal when no existing test can own a value-route repair. Private owner, private-module owner, autotests = false, and autolib = false without [lib] stay Missing. A dangling proposed-file leaf is occupancy. Proposed is not Existing. No inline unit, production-file edit permission, invented expected values, or 0.11 support promotion.

changed_surfaces_and_semantic_owners_inspected:

  • analysis/new_test_target.rs producer (unchanged by this merge except integration basis)
  • seam_cache.rs generations: keep main #4597 1.17/0.23/0.24/1.11, then move full 1.18 and sharded 0.24 so a warm main 1.17 cannot hide Proposed; compact stays 0.24
  • docs/CONFIGURATION.md integrity generations and docs/OUTPUT_SCHEMA.md rerun fingerprint 1.18

blocking_findings: none on the #4576 producer after this conflict repair

non_blocking_suggestions: none new

refuted_or_stale_findings:

  • Hosted Ripr Rust Small Result success on 5a701cdfb is superseded by this merge head.
  • All prior review threads remain resolved; no new unresolved threads.

proof_and_ci_observed:

  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route plus schema identity — 34 passed on this head
  • GitHub mergeable_state was dirty against main because of seam_cache.rs; that conflict is now resolved on this candidate
  • Hosted required Ripr Rust Small Result is not yet present for 206344891

proof_or_review_missing:

  • Hosted required PR CI / merge-gate artifacts for 20634489157cd6f1dd2e29c27a9fd5780a4f7033

affected_currentness_dimensions: generated relationships, conflict resolution, integration basis, candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body or invent expected values.
  • Rolling work only; not a 0.11 support promotion.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted Ripr Rust Small Result and a later REVIEW_READY pass.

Keep the live classified cache fingerprint at 1.18 so the targeted-rerun
example tracks this leaf after main reused 1.17.

# Conflicts:
#	docs/OUTPUT_SCHEMA.md

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: fb3b3f2bd4fdb8d738b30f8795a60597e72b6379
integration_basis: origin/main at df1b435f7 (merged; real OUTPUT_SCHEMA.md conflict after #4564 analyzer_version example)
claim_boundary: Integration NewTestTargetProposal only. Inline-unit siblings #4839/#4837 are out of scope.

changed_surfaces_and_semantic_owners_inspected:

  • docs/OUTPUT_SCHEMA.md targeted-rerun fingerprint keeps classified 1.18 and takes main's analyzer_version 0.11.0+<commit> example
  • cache generations unchanged from 206344891: full 1.18, sharded 0.24, compact 0.24

blocking_findings: none

non_blocking_suggestions: none

refuted_or_stale_findings:

  • Hosted Ripr Rust Small Result success on 206344891 is superseded.
  • #4839/#4837 are different InlineUnit claims, not equivalents of #4576.

proof_and_ci_observed:

  • Required check was green on superseded 206344891
  • Hosted required Ripr Rust Small Result is not yet present for fb3b3f2bd

proof_or_review_missing:

  • Hosted required PR CI for fb3b3f2bd4fdb8d738b30f8795a60597e72b6379

affected_currentness_dimensions: public claim / contract parity (example pin), conflict resolution, integration basis, candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body.
  • Rolling work only.

disposition: REVIEW_INCOMPLETE

Merge convergence waits for exact published-head hosted Ripr Rust Small Result and a later REVIEW_READY pass.

…n-test-target-e401

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

review-pr (author COMMENT)

reviewed_head_sha: 761d6cd1ee31c9e7f9920e40e255711a2af2a17d
integration_basis: origin/main at 6ce048205 (#4768; merged; real docs overlap, not behind-only)
claim_boundary: Integration NewTestTargetProposal only. Inline-unit siblings #4839/#4837 are out of scope.

changed_surfaces_and_semantic_owners_inspected:

  • docs/CONFIGURATION.md keeps file facts 1.11 / full 1.18 / compact 0.24 / shards 0.24 and takes main's --worktree merge-base wording
  • docs/OUTPUT_SCHEMA.md keeps targeted-rerun fingerprint 1.18 and analyzer_version 0.11.0+<commit>, and takes main's selected.static_recheck_command contract text
  • producer/oracle unchanged from fb3b3f2bd

blocking_findings: none

non_blocking_suggestions: none

refuted_or_stale_findings:

  • Hosted required-check greens on 206344891 and rust-gates in progress on superseded fb3b3f2bd do not bind this head.
  • #4768 is UX first-pr / --worktree merge-base, not an equivalent of #4576.
  • All 9 prior review threads remain resolved.

proof_and_ci_observed:

  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 33 passed on this head
  • cargo test -p ripr --lib output::schemas::tests::rerun_example_nested_versions_match_live_cache_identity — passed
  • merge-tree vs origin/main 6ce048205 is clean after this merge
  • Hosted required Ripr Rust Small Result is not yet present for 761d6cd1e

proof_or_review_missing:

  • Hosted required PR CI for 761d6cd1ee31c9e7f9920e40e255711a2af2a17d
  • CodeRabbit skip / Gemini quota is missing review, not a clean pass

affected_currentness_dimensions: public claim / contract parity, conflict resolution, integration basis, candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body.
  • Rolling work only.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted Ripr Rust Small Result and a later REVIEW_READY pass.

…n-test-target-e401

# Conflicts:
#	xtask/src/main.rs

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@cursor

cursor Bot commented Sep 29, 2026

Copy link
Copy Markdown

review-pr (author COMMENT)

reviewed_head_sha: 1e675bca9e856c04cdf1b8e109f3f92d97c482b6
integration_basis: origin/main at cfcf53053 (merged; real xtask inventory conflict after #4785 rust.rs → rust/mod.rs)
claim_boundary: Integration NewTestTargetProposal only. Inline-unit siblings #4839/#4837 are out of scope.

changed_surfaces_and_semantic_owners_inspected:

  • xtask/src/main.rs IS_TEST_FILE_CONSUMERS: keep new_test_target.rs and take main's language/rust/mod.rs
  • crates/ripr/src/lsp/tests.rs TestGripEvidence literals auto-merged with new_test_target: None
  • producer/oracle unchanged from 761d6cd1e

blocking_findings: none

non_blocking_suggestions: none

refuted_or_stale_findings:

proof_and_ci_observed:

  • cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route — 33 passed on this head
  • schema identity test passed
  • merge-tree vs origin/main cfcf53053 is clean after this merge
  • Hosted required Ripr Rust Small Result is not yet present for 1e675bca9

proof_or_review_missing:

  • Hosted required PR CI for 1e675bca9e856c04cdf1b8e109f3f92d97c482b6
  • Formal GitHub review COMMENT was rate-limited (submitted too quickly); this is the same author disposition on the PR thread

affected_currentness_dimensions: conflict resolution, integration basis, candidate head identity

residual_assumptions_and_non_claims:

  • RIPR does not write the test body.
  • Rolling work only.

disposition: REVIEW_INCOMPLETE

GitHub cannot request changes from the author; this COMMENT is not approval. Merge convergence waits for exact published-head hosted Ripr Rust Small Result and a later REVIEW_READY pass.

cursoragent and others added 2 commits September 29, 2026 07:40
…n-test-target-e401

Reconcile landed InlineUnit (#4839) with this Integration leaf: keep
both producers, prefer a Proposed Integration, then Proposed InlineUnit,
and retain Integration's PrivateOwner or layout blocker when both stay
Missing so visibility negatives still name the reason.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
PrivateOwner fires before tests/ layout, so preferring it hid landed
InlineUnit module blockers. Combined admission still stays Missing;
the Integration producer itself still names PrivateOwner.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@EffortlessSteven

Copy link
Copy Markdown
Member Author

review-pr disposition — beeb3f2ad — REVIEW_INCOMPLETE

Author COMMENT (GitHub cannot request changes from the author). This is not approval.

Exact head: beeb3f2ad0ac6abe363325930d3bd5c2bdb179cd
Base: origin/main 1b133c68d (includes landed InlineUnit #4839 / #4837)
Claim: #4576 Integration leaf only. Combined-tree merge keeps both producers; this PR does not absorb InlineUnit as its claim.

Inspected

  • admit_new_test_target prefers Proposed Integration, then Proposed InlineUnit; combined Missing keeps Integration Cargo/layout blockers only. PrivateOwner is not preferred, because it fires before tests/ layout and would hide landed InlineUnit module reasons.
  • Integration producer still refuses private owners and private-module owners (PrivateOwner); combined route stays Missing. Covered by private_owner_stays_missing_without_an_inline_unit_proposal and public_fn_inside_private_module_stays_missing.
  • value_target_selection accepts Integration or InlineUnit + ProducerOwned; Existing still wins.
  • Autolib / no-follow dangling-leaf admission remains in integration.rs.
  • All 9 prior review threads remain resolved / outdated.
  • git merge-tree --write-tree HEAD origin/main exited 0.

Local proof on this head

cargo test -p ripr --lib -- analysis::new_test_target analysis::repair_route
# 60 passed
cargo test -p ripr --lib output::schemas::tests::rerun_example_nested_versions_match_live_cache_identity
# 1 passed

Missing for REVIEW_READY

Hosted required check Ripr Rust Small Result is not yet current for beeb3f2ad (rust-gates still in progress). Do not squash until that exact-head receipt is green and merge-tree vs then-current main stays clean.

Non-claims

No InlineUnit claim absorption, no production-edit permission, no invented oracles, no 0.11 support promotion.

The merged Integration consumer list has eight approved sites, not nine.
Hosted rust-gates failed precommit compile on the length mismatch.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@EffortlessSteven

Copy link
Copy Markdown
Member Author

review-pr disposition — a68ca0746 — REVIEW_INCOMPLETE

Author COMMENT (not approval).

Exact head: a68ca0746c572b5bff27bdd125e232ce43e77d4f
Cause of required red on beeb3f2ad: cargo xtask precommit failed compiling xtask — IS_TEST_FILE_CONSUMERS: [&str; 9] had eight entries after the InlineUnit merge. Inventory still lists new_test_target.rs and new_test_target/integration.rs (both call is_test_file). Length corrected to 8.

Claim unchanged. Hosted Ripr Rust Small Result is not yet current for this SHA. Do not squash until that exact-head receipt is green and merge-tree vs then-current main stays clean.

Hosted rust-gates failed clippy::collapsible_if on the Integration
present-reason push. Let-chain the Proposed match with the admission.

Co-authored-by: Steven Zimmerman, CPA <EffortlessSteven@users.noreply.github.com>
@EffortlessSteven

Copy link
Copy Markdown
Member Author

review-pr disposition — afc47aa7b — REVIEW_INCOMPLETE

Author COMMENT (not approval).

Exact head: afc47aa7bec259c33f40336054e9d7ad75c728ef
Required red on a68ca0746: hosted rust-gates clippy -D warnings failed clippy::collapsible_if at repair_route.rs on the nested Proposed / admission present-reason push. Collapsed to a let-chain. Claim unchanged.

git merge-tree --write-tree vs current origin/main (26603f1fc) was clean before this one-line clippy repair (behind-only; no restack).

Do not squash until hosted Ripr Rust Small Result is green on this exact head and merge-tree vs then-current main stays clean.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

review-pr disposition — afc47aa7b — REVIEW_READY

Author COMMENT (not approval).

Exact published head: afc47aa7bec259c33f40336054e9d7ad75c728ef
Required check: Ripr Rust Small Result success at 2026-09-29T08:24:10Z (rust-gates success 08:24:02Z) on this SHA.
Integration: git merge-tree --write-tree vs origin/main 905294be0 exited 0 (behind-only; no restack).
Threads: all 9 remain resolved.
Claim identity: only #4625 owns #4576; #4839 is the landed InlineUnit sibling, not an equivalent.

Source and oracle inspection from the published-head pass still holds: Integration admission for crate-root public library items with established tests/ autodiscovery; private / private-module / autotests-off / autolib-off-without-[lib] / dangling-leaf occupancy stay Missing; Existing preferred; combined dispatcher keeps both producers without absorbing InlineUnit as this claim.

Proceeding to protected squash-merge.

@EffortlessSteven
EffortlessSteven merged commit c77fa60 into main Sep 29, 2026
23 checks passed
@EffortlessSteven
EffortlessSteven deleted the cursor/new-integration-test-target-e401 branch September 29, 2026 08:26
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.

analysis(rust): produce a safe new integration-test target when no existing test can own the repair

2 participants