Skip to content

test(rust): retain returned String rendering witness and decoys (#3161) - #7808

Merged
EffortlessSteven merged 3 commits into
mainfrom
investigate/3161-returned-render-buffer
Oct 14, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
investigate/3161-returned-render-buffer

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

A renderer can mutate a caller-owned String through a helper and return that same local to a substring assertion. Current RIPR cannot bind this route to the exact observer. Retain an executable fixture and conservative public-API matrix, distinguishing it from #7355's returned collection-ledger identity support. Refs #3161; follows the UB #1428 attribution investigation.

Evidence-only: no analyzer implementation or classification upgrade. Keep Draft.

  • crates/ripr/tests/data/returned_render_buffer.rs: dependency-free native subject. Preserves prefix write → mutable helper call → same-local return, plus a later-write positive and sibling-only, ignored-return, shadowed-buffer, wrong-helper and overwritten-buffer controls. The changed call remains inside append_diagnostic, which invokes the formatting/writing helper.
  • crates/ripr/tests/returned_render_buffer.rs: compiles all seven native tests and isolates seven static cases through the public API. Requires complete/nonempty analysis, a unique changed call and a retained oracle row; withholds exposed/discriminate=yes for this currently unsupported route.
  • crates/ripr/tests/data/returned_render_buffer.md: exact boundary, source lineage, reproduction, falsifiers and next partial-identity slice. Existing EffectTarget/DirectReturn edges retain some ledger identity, but the FieldConstruction/push gate supplies neither this free call's mutable argument/order receipt nor its String observer. Reuse the existing parser binding checks in a future partial-identity producer; keep ordered survival and observer/deletion sensitivity unresolved until separately established.

Frozen source: base c96a7929f8c694eb62cff2dbe2ad7ee94beea815, head c0c01c27c581c83d7736ad30436d6100f4d28108, tree 7bbfa92c19e7c1fc8244d273cac820e468ebeccf. Branch investigate/3161-returned-render-buffer. No production/shared files, #7794 reveal/aggregation files, #4478/#3215 linkage files, or UB files touched. #7794 coordination is recorded on its issue.

Observed Linux/Rust 1.95.0 proof:

  • cargo test --locked -p ripr --test returned_render_buffer: eight tests pass (seven native plus the isolated seven-case public-API matrix).
  • Standalone exact committed native fixture: seven pass. Delete only the complete render_pr_signal statement inside append_diagnostic: compiles, then precisely the two actual-buffer observers fail; all five decoys pass. This observes helper-call deletion, not a repeated direct-buffer mutation receipt. Final pristine source SHA256 30b0e1d6b93bff05911f487a9fd5cf78ca63e99318a23940aa789c735e545751; mutant source e78bf0ccc8c7a21ae983e9f1e6d86f22a744a1f0652bcdaad7952a6fe722644a.
  • Strict focused Clippy and explicit allow-attributes check pass. The shadowed-return helper has one narrowly scoped, reasoned let-and-return allowance to preserve its negative witness.
  • Exact-base check-fast passes six applicable gates / zero changed paths. Committed candidate check-fast selects exactly the three added paths and passes six applicable gates; Clippy and fixture-contracts are selector-skipped, so explicit focused execution supplies the new Rust target's proof. Formatting and diff checks pass. Initial exploratory check-fast --help actually entered the gate and found this lane's unformatted test; that shaping failure was corrected before these terminal receipts.
  • Worktree doctor reports behind-only main movement (three commits), not source conflicts. Recorded merge base remains c96. Main inspected at f9f30d56c8ae1cd5911004b35a8ae86a07ebed30; merge-tree is conflict-free, tree 969a194287b2e875578266c0573831910ee67980. This is composition inspection, not executed combined-tree or hosted qualification.
  • Independent prepublication reviewer reconstructed all seven isolated CLI cases: complete/nonempty/unique target, six propagation_unknown with weak discrimination, wrong-helper no_static_path/discrimination=no. Independently compiled the native fixture and deletion experiment: seven pristine pass; mutant two fail/five pass. No blocking source/oracle finding on final c0c01c2 candidate after independently checking the completeness assertion and narrowly scoped lint allowance, recompiling the exact final fixture, and reproducing its deletion controls. Independent published-head review is complete with no blocking source/oracle finding; disposition remains REVIEW_INCOMPLETE for hosted evidence. Keep Draft.

Changelog exemption: test/fixture-only internal evidence with no product behavior, API, output, workflow, support tier or documentation-system change (CHANGELOG_POLICY.md). No spec acceptance change; existing SPEC-0159 has its mapped helper-wrapper suite. These new non-support experiments intentionally add no acceptance mapping to the shared traceability file.

Limits: the fixture omits UB receipt activation, loops, sentence/Markdown transformations beyond trim/bullet formatting, and cap_review_body. Its direct returned-local route is not the complete UB caller. Runtime deletion discrimination does not grant static promotion. No hosted gate rerun, 3/max0 clearance, analyzer adoption, UB source/policy/pin/suppression change, Ready, merge, release or deployment. No full local golden/CI matrix is claimed for this test-only evidence slice. Rollback removes the three added files.

Raw lane receipts remain under /workspace/scratch/1428-render-returned; independent receipts under /workspace/scratch/1428-review/returned. Parent retains subsequent capability/consumer acceptance.

@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 14, 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 7 minutes.

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: d28d3f9b-a7dd-40b6-ba23-4d34cf2f777b
📥 Commits

Reviewing files that changed from the base of the PR and between f9f30d5 and c0c01c2.

📒 Files selected for processing: 3
  • crates/ripr/tests/data/returned_render_buffer.md
  • crates/ripr/tests/data/returned_render_buffer.rs
  • crates/ripr/tests/returned_render_buffer.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Published-head evidence review, submitted as COMMENT by the author account. A separate independent review agent performed source/oracle inspection and isolated native/static experiments; root inspected its raw receipts. This is not a provider APPROVE or hosted qualification.

Reviewed head c0c01c27c581c83d7736ad30436d6100f4d28108, tree 7bbfa92c19e7c1fc8244d273cac820e468ebeccf, source base c96a792 / remote main base f9f30d56c8ae1cd5911004b35a8ae86a07ebed30. Re-read remote head unchanged, Draft/open/unmerged. Exactly the three evidence files in the PR were inspected.

Independent reviewer confirmed the fixture preserves prefix write → mutable helper call → same-local return → actual returned-buffer assertion; later-write order is retained. Sibling-only, ignored-return, shadowed-buffer, wrong-helper and overwritten-buffer controls remain independent. Native final fixture: seven pass. Deleting only the complete render_pr_signal statement in append_diagnostic compiles, then fails precisely the two actual-buffer observers, five decoys pass. Root inspected independent logs; final source hash matches 30b0e1d6b93bff05911f487a9fd5cf78ca63e99318a23940aa789c735e545751.

Seven independent isolated static replays were complete with unique targets: six propagation_unknown/weak discrimination; wrong-helper no_static_path/discrimination=no. No static class is upgraded. Checked #7355 lineage in returned_ledger/retained witness: FieldConstruction/push/final-statement and unique-binding gates match the boundary note. Existing EffectTarget/DirectReturn identity pieces do not establish free-call mutable arguments, String writer semantics, ordered survival or exact observer/deletion sensitivity. The proposed partial-identity successor is conservatively scoped.

Final author receipts read by root: eight-test target passed; strict focused Clippy, explicit allow policy and check-fast passed. Selector independently agrees on three paths and six applicable gates; skipped Clippy is supplied by the explicit focused run. No public product/schema/rendering behavior, policy, support-tier or generated-output delta needs promotion; fixture/docs omission of full UB loops, activation, Markdown transformations and cap_review_body is explicit.

Disposition: REVIEW_INCOMPLETE — no blocking source/oracle finding. Published scope/body match the reviewed subject. No inline review threads were found by the reviewer; current Gemini quota and CodeRabbit limit notices supply no substantive review clearance. Hosted CI/Security/Windows Advisory/wheel/ub-review checks were pending or running and Droid review queued at its observation; workflow lookup covered only the returned first page. Skipped workflows are not successful proof. No global all-green assertion.

Keep Draft. This review supports a reusable exact fixture and documented next slice, not implementation/capability acceptance, UB #1428 three/max0 clearance, analyzer adoption, Ready, merge, release or deployment. Independent raw evidence retained in /workspace/scratch/1428-review/returned; author receipts /workspace/scratch/1428-render-returned. Parent owns subsequent hosted and capability acceptance.

@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 verification checks before upstream.

Verification questions

  • Confirm public-API matrix asserts classification != exposed and discriminate != yes for all seven cases by design; it intentionally cannot fail red and is a non-support pin, not a regression gate.
  • Confirm native deletion-control claim by author (delete render_pr_signal statement, expect 2 actual-buffer fails / 5 decoys pass) is a deterministic focused mutation-witness reproducible from the fixture in isolation.
  • Confirm public-API matrix uses assert_ne! guards against classification=exposed and discriminate.state=yes, but never asserts any specific positive outcome (e.g., expose, suppress, identity) — it pins non-support, not a target.
  • Confirm native fixture's observes_returned_buffer uses contains + starts_with; overwritten_buffer decoy would also pass if the helper were a no-op because text.clear(); text.push_str(DIAGNOSTIC) writes the literal directly — so the decoy does not independently refute 'helper is unnecessary' on the actual observer case.
  • Confirm late cargo-test receipt is scheduled but not yet landed; without it, the public claim that 'eight tests pass' (seven + matrix) is author-reported, not gateway-witnessed.

Refuted

  • Missing CI evidence for the deletion-mutation experiment raises trust below approval threshold.; refuted because: Diffs are tests-only, no production/source touched, fixture is dependency-free, and the mutation is a single-line deletion reproducible by any reviewer; central CI rerun adds little new information beyond the author's already-cited local receipt.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.
  • Native deletion experiment is documented only in PR body prose and the .md evidence file; no executable test in this PR encodes the 'delete render_pr_signal, expect 2 fail / 5 pass' mutation as a #[test] so CI cannot regress on it.

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

Fresh independent post-handoff review (2026-10-14 UTC). COMMENT disposition: REVIEW_INCOMPLETE — no blocking source/oracle finding. Keep Draft.

Reviewed head c0c01c27c581c83d7736ad30436d6100f4d28108, tree 7bbfa92c19e7c1fc8244d273cac820e468ebeccf; source/merge base c96a7929f8c694eb62cff2dbe2ad7ee94beea815. Read the full 358-line three-file addition, #3161 and its substantive continuation, prior review 5511682836, and current review 5511745603. Applied AGENTS and review-pr guidance. No production classifier, policies, support tiers, UB files or shared traceability changed.

Source/oracle inspection: the changed render_pr_signal call remains in append_diagnostic; prefix → mutable helper → same-local return → actual returned-String assertion is intact. Later suffix stays after the helper. Sibling-only, ignored-return, shadowed binding, wrong helper and clear/rewrite controls are intentionally independent. Existing returned_ledger gates require FieldConstruction/record/push, parsed unique mutable bindings and a final helper statement; retained EffectTarget/DirectReturn endpoints do not supply this free call's argument/order/String-writer/observer authority. The boundary note accurately withholds that support. Its omission of new acceptance mapping/changelog is justified by this evidence-only, non-support scope.

Observed fresh Linux x86_64 / rustc 1.95.0 proof, in detached reviewer-owned worktrees:

  • cargo test --locked -p ripr --test returned_render_buffer: 8/8 pass at the exact head (seven native controls plus the seven-case API matrix).
  • rustc --edition=2024 --test crates/ripr/tests/data/returned_render_buffer.rs -o <review-native> and execution: 7/7 pass. Delete only the complete render_pr_signal statement inside append_diagnostic in an isolated copy, compile and run: exit 101, precisely the two actual returned-buffer observers fail on contains; five decoys pass. Compile warnings are not the red witness. Pristine SHA256 30b0e1d6b93bff05911f487a9fd5cf78ca63e99318a23940aa789c735e545751; reviewer deletion source SHA256 e3db787d0de17f79b8055290df1f3b79d2e393efd88dbe04c949b29779315cac.
  • Independent prefix/helper order reversal compiles and fails only starts_with (1 fail/6 pass); suffix/helper reversal compiles and fails only ends_with (1 fail/6 pass).
  • cargo clippy --locked -p ripr --test returned_render_buffer -- -D warnings, cargo xtask check-allow-attributes, check-file-policy, check-no-panic-family, check-fixture-contracts and diff checks pass. Fixture-contracts validates repository contracts, not external executable custody or this runtime deletion experiment.
  • cargo xtask check-fast: six applicable gates pass; strict selector is stable with exactly three paths. Clippy/fixture-contracts were selector-skipped and explicitly executed above.

Executed current-main composition: main f9f30d56c8ae1cd5911004b35a8ae86a07ebed30 + reviewed head, local commit 9df11e8065be88c515ec675d34c9b7df5239ce27, tree 969a194287b2e875578266c0573831910ee67980. Focused target passes 8/8 and strict check-fast passes the same six gates/three paths. Connected GitHub merge object e3680d5e086223479404adcc7ee99057cb68231f has those exact two parents and tree. This establishes local combined-tree execution and remote source identity, not hosted checkout execution.

Review 5511745603 reconciliation: the matrix intentionally pins non-support, rather than promising a positive classification. It is not vacuous: complete/nonempty analysis, unique changed call and retained observes row are required. In separate reviewer harness copies, independently injecting false classification=exposed and discrimination.state=yes each produces the expected matrix assertion failure (exit 101). These are guard challenges, not producer/admission proof. The overwritten-buffer decoy deliberately survives a no-op/deletion; the two actual-buffer failures independently establish the helper's necessity for those observers. The deletion experiment is reproducible now, but is not an automated committed mutation gate; that remains an explicit durability limit, not a reason to infer production support. Fresh observed eight-test receipts replace reliance on the author's scheduled/reported receipt.

Hosted observation: all 23 returned exact-head check rows inspected; Droid review remains queued, several lanes skipped, while the Rust-only, UB-review, Windows subset, wheel/install and security rows report success. No inline review threads found. No all-green/required-gate or provider-approval claim; actual hosted job checkout/steps and protection were not qualified in this bounded review.

Residuals: contains is not exact-string discrimination; runtime deletion does not grant static promotion. Full UB activation, loops, cap_review_body and transformation survival remain unproven; no UB #1428 three/max0 clearance, analyzer adoption or parent #3161 completion. No Ready, merge, release or deployment. No broad unrelated build or full golden matrix claimed. Author checkout untouched; review experiments removed. Raw logs/reports retained under /workspace/scratch/postreview-7808.

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

Copy link
Copy Markdown
Member Author

Coordinator qualification update: fresh independent review #7808 (review) completed exact-head native, negative/oracle and executed f9f30d5 composition checks with no blocking source finding. A separate integration pass verified unchanged head c0c01c2 composes cleanly on main459ad8f2c112f2a8592585413ca89b0e0e2c665d, tree306459d4be637ce390b0dec43c6a86f89bbfc58d. The complete delta from the executed prior composition is exactly #7629's two documentation files; runtime subjects and candidate delta are unchanged. No runtime tests were rerun for that docs-only delta. Marked Ready solely to start required routed qualification. Earlier Keep Draft language describes the previous handoff state. Hosted exact-checkout qualification and required checks remain pending; no analyzer capability upgrade, UB gate clearance, merge, release or adoption is claimed.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

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

Devin Review

Copy link
Copy Markdown
Member Author

Final bounded qualification: required Ripr Rust Small Result passed at exact head c0c01c2 in run38493080782, result job115638817246 (GitHub Actions app15368). Hosted Rust job115622678495 actually checked out e3680d5, parents f9f30d5 and this head, tree969a194287b2e875578266c0573831910ee67980; 15,451 tests passed, two skipped. Fresh source/oracle review5511789830 and later Devin5511844540 remain clean, with no unresolved inline threads. Independent current-main integration on ff4a2fc cleanly produced tree13570a040411e731eeb496bfc95b8bc5e1c3278c: all eight API/native target tests, fixture contracts and diff checks passed; standalone native pristine7, helper-deletion2 failures/5 passes, prefix and suffix reversals each1 intended failure/6 passes. This local current-main composition is distinct from the hosted old-base tree; both identities are retained. No source change since review. This supports normal integration of the three-file non-support witness only, not a classifier capability upgrade, UB gate clearance, analyzer adoption or release.

@EffortlessSteven
EffortlessSteven merged commit ad9dbb7 into main Oct 14, 2026
35 of 36 checks passed
@EffortlessSteven
EffortlessSteven deleted the investigate/3161-returned-render-buffer branch October 14, 2026 01:59
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.

2 participants