Repository navigation
perf(repair-card): borrow detail evidence during family ordering - #8028
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughThe RepairCard budget path now sorts and processes borrowed detail sources instead of cloning their payloads. A test checks family order and confirms that sorted results reference the original sources. ChangesRepairCard detail sorting
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Refactor Merge Risk: 🟡 Moderate · up to
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head inspection, recorded by the delivery owner with COMMENT because this is the author account.
reviewed_head_sha: bbd189b; tree 543df0e9547519ddde732eee1847dfd38725f38c. Authored basis322088b1760388fb7625d48897abe8e611cb9715; published base2af3f38a1de75ca48d5d84555a839d50710159b6. Separate reviewer inspected committed objects, actual raw evidence and published GitHub head, without source edits or Cargo builds.
No actionable findings emitted within the borrowing claim. Inspected the entire three-file diff, private sorter/budget engine, builder, CLI/LSP/MCP consumers and semantic digest; RIPR-SPEC-0193, traceability and changelog. The returned references borrow the immutable source slice; unchanged family keys/windows preserve order and duplicate refusal, while unchanged normalization/projection retains accounting/readiness/identity. Remaining payload creation, normalization serialization, card cloning and digest storage allocations are explicitly outside the claim. No platform/process/security/schema/dependency/limit change.
Observed independently: frozen RED binary/hash/log/patch identities; actual native101 with the sole intended pointer assertion failing, and all18 retained budget tests passing on that same executable. New test bytes/hash are identical on the candidate. Frozen GREEN identity/log and an independently executed19-test budget run pass; consumer log has124 distinct passing tests. All48 raw workload stream hashes, six cold/warm pairs and six edited/fresh pairs agree with24 executed observations. Four public raw card comparisons match bytes exactly in corresponding cold/warm JSON/human states; independent family ordering, dense ordinals, normalized accounting and complete digest calculations agree.
Inherited residual: the unchanged related-test cache table drops statically_contradicted_related_tests1→0, causing pre-existing cold/warm card identity differences. It is independently source/reproduction verified and retained on#8019, outside this candidate. It was not masked to obtain before/after parity.
Evidence: /workspace/perf-owned/evidence/{red-identity.json,green-identity.json,green-card-consumers.log,card-parity.json,workload-results.json}; canonical linked record#8019. These tiny/retained-subject observations establish no sorter speed/RSS, universal memory/latency, native-Windows, large-workspace or release claim.
Disposition: REVIEW_INCOMPLETE for merge qualification, with no source/oracle/public-output blocker. Source, stimulus, oracle, public claim and head identity dimensions are reviewed. Candidate check-fast/precommit, actual remote merge subject inspection and current published-head hosted qualification remain outstanding. Missing review-provider quota output is missing evidence for that provider, not approval. Keep Draft until local/composition proof and expected-green Ready admission are complete; parent coordinates merge.
There was a problem hiding this comment.
Decision
- Needs one test-proof clarification before upstream.
Verification questions
- Confirm ripr sensor failed (exit 2) so in-tree re-run of repair-card budget tests was not captured by this packet; rely on author-furnished frozen RED/GREEN receipts and the always-on cargo-test late phase for ground truth.
Refuted
- Patch could leak the original RepairCardDetailSource pointers past the function lifetime if they escape the borrow; refuted because: ordered holds &RepairCardDetailSource borrowed from sources; apply_repair_card_budget owns sources and never returns or moves it. No &-escape occurs; borrowed references are confined to the loop and dropped at function end.
- String error propagation path could panic or double-count if normalize_source returns Err on a borrowed source; refuted because: ? bubbles the same as before; no panic-prone unwrap added; clone of payload removed only at sort step, normalize still owns its serialization allocation out of scope.
Parked follow-ups
- Self-inspection review-summary on this PR is from the author account; not an independent reviewer finding.
Evidence gaps
- cargo-test receipt is scheduled-late; full-test green count (143) and SHA256-stamped test bytes are sourced from author PR body, not this packet.
|
Verification-question disposition for review5527017421: the UB packet's reported ripr sensor exit2 is not counted as test proof or behavioral RED. Its packet did not independently capture the in-tree budget-test rerun. The 143 figure here means143 focused local tests (19 budget +124 further card consumers/digest tests), not the complete repository suite. Frozen local RED/GREEN receipts remain separate evidence, with unchanged test-body SHA2561702f815af9c2b78c72ee70bb96278a2cd64406ffcaed44e113a393cef034602. The separate exact-head reviewer independently executed the frozen RED and GREEN controls; the author account recorded that inspection with COMMENT rather than presenting an author approval as independent GitHub approval. There is now public hosted execution evidence beyond the PR body: Rust-only feature lane job116196217068. Actual checkout log names merge0931e668861b1c8fae9e17d9b29be2bb88d98ad8, whose parents are2af3f38a1de75ca48d5d84555a839d50710159b6 + candidatebbd189b0b8b6b6dd69fed1fbb8c2bc8afbe16a71; tree4d0ad6b541449e0283ff359886f85ca75fe76aa2. Product/test blob matches the reviewed candidate. Rust1.95.0 and Candidate local qualification is complete:143 focused tests, four exact cold/warm JSON/human byte comparisons, independently checked3-path check-fast (13 selected gates including workspace/all-target Clippy), and aggregate precommit all exit0. The original600s aggregate timeout124 is separately retained; its direct unfinished Clippy pass and unchanged-head aggregate refresh do not relabel that timeout. Readiness is withheld for the shared fixture prerequisite #7942. Its exact affected cache_clear_safety blob bca0de4002aeb46e2e6f706bc32742c8e13e9a1b is unchanged on this candidate/basis. Parent is locating the existing owner; no rival fixture fix, skip, oracle weakening or extra Ready qualification starts here. Resume after a deterministic repair is delivered and present in the actual GitHub merge subject, then inspect normal required qualification. No borrowing source/oracle finding remains; merge-ready status is not claimed. |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: bbd189b
integration_basis: origin/main 20022bbfe06859dd3369fef39ff4fc5e4d2919d3
claim_boundary: #8019 — Borrow detail evidence during family ordering in crates/ripr/src/repair_card_budget.rs instead of cloning.
changed_surfaces_and_semantic_owners_inspected:
- crates/ripr/src/repair_card_budget.rs: borrow detail evidence during family ordering instead of cloning
- .ripr/traceability.toml: traceability mapping update for RIPR-SPEC-0193
- changelog.d/8019-borrow-repair-card-details.md: Fixed fragment for #8019
blocking_findings: none
non_blocking_suggestions: none
refuted_or_stale_findings: - Dependency on #7942: resolved and landed on main in PR #8045
proof_and_ci_observed: - cargo test -p ripr --lib repair_card_budget (19/19 pass)
- cargo xtask precommit (pass)
- Ripr Rust Small Result from Routed Rust Small run 38838358445
proof_or_review_missing: none
affected_currentness_dimensions: public-claim (changelog), performance (allocation removal)
residual_assumptions_and_non_claims: - No schema, analyzer meaning, or public API change
disposition: REVIEW_READY
Problem and change
RepairCard budgeting cloned every authority-owned detail payload into a sorting vector, including complete
serde_json::Valueevidence, then only read those copies. The private family sorter now sorts borrowed sources and passes them to the existing normalizer. Family ordering, duplicate-family refusal, byte accounting, identity, readiness, and output shape retain their owners.Closes #8019 for the bounded borrowing repair and baseline handoff. Existing integrated performance/reuse/read owners retain #3794/#3796/#6758/#5124/#7623. Canonical evidence and inherited residual.
Acceptance and evidence
322088b1760388fb7625d48897abe8e611cb9715; candidatebbd189b0b8b6b6dd69fed1fbb8c2bc8afbe16a71, tree543df0e9547519ddde732eee1847dfd38725f38c. Current main sorter blob was rechecked before publication and remains the same original implementation; all-state perf(repair-card): sort borrowed detail sources without cloning evidence payloads #8019/sorter searches found no competing PR.a2b377626e63c747f1809cad1fb8980e61ecce65: 1 selected test fails the intended original-source pointer assertion after successful compile; 18 retained budget tests pass on the same frozen executable.--test-threads=1). New test-body SHA256 is unchanged:1702f815af9c2b78c72ee70bb96278a2cd64406ffcaed44e113a393cef034602. Traceability maps it to existing RIPR-SPEC-0193.4806c1b66176be4f81a3022ddf93fe701e6723ce8db9a9c91086432a9fb9fc68; GREEN9d77c6ef637823ae5f0abca72bc6b3d993ec06e292943894fb31b829962d555a. Exact source/blob/log/test receipts retained under/workspace/perf-owned/evidence/{red-identity.json,green-identity.json}in the assigned saved environment.cargo check --locked -p ripr --all-targetspassed before source edits. Candidate validation now passes: 19 budget tests, 124 additional card consumers/digest tests, four exact public cold/warm JSON/human byte comparisons, independently verified 3-path check-fast with 13 selected gates, workspace/all-target Clippy with warnings denied, and aggregate precommit including selected Clippy. Budget tests used default harness threading; the 124 consumer tests used--test-threads=1.Host-scoped baseline, separate from this allocation repair
Two existing subjects: boundary-gap (2 Rust files) and hash-verified retained real semver1.0.23 (16 Rust files). Three independent application-cache-cold/unchanged-warm/first-production-edit journeys per subject: 18 measured rows plus 6 same-input fresh-edit oracles. All exit 0 with complete requested analysis,1 changed Rust file, nonempty literal subjects and no outcome limitations; raw stdout cold/warm and edited/fresh pairs match exactly. Semver retains static_unknown findings. No OS page-cache control or tail estimate.
Semver wall samples: cold 358.660/390.888/430.861ms; unchanged warm 192.822/216.132/207.424ms; small edit 276.717/265.585/300.599ms. Self peak RSS maxima 55.844/56.395/57.203MiB. Full raw wall/CPU/RSS, commands, effective inputs/config, phase observations and limitations are in the linked canonical record. One frozen base binary SHA256
c8edb06bd6ba33eec6d0e89cbea2e56082514a4f8e5a55bf0651f40dbad0163c.These ordinary-check observations do not execute the card sorter and establish no optimization timing/RSS benefit. This repair removes a source-demonstrated evidence copy; caller payload construction, normalization serialization and card/digest storage still allocate. No universal memory/latency or large-repository claim.
Inherited residual and scope
Base cold/warm packet reproduction loses
statically_contradicted_related_tests1→absent through the shared related-test cache table, changing the card's canonical-packet digest/accounting. Current-main blob matches the executed source. It is retained in #8019 for the parent/cache owner, outside this patch; corresponding cold and warm states must be compared without masking fields. The ordinary-check baseline parity remains separately verified. No new tracker or overlapping cache repair.No schema, analyzer meaning, cache format, limits, dependencies, toolchain pins, transport, workflow, support-tier, release or deployment change. No Corsair work.
Changelog:
changelog.d/8019-borrow-repair-card-details.mdmatches canonical Fixed marker, bullet and #8019 reference. Rollback: revert this borrowing delta, discriminator/trace mapping and fragment together. No successor optimization selected.Continuation
Owner / governing claim: assigned Codex performance lane / #8019; parent coordinates merge.
Candidate:
bbd189b0b8b6b6dd69fed1fbb8c2bc8afbe16a71, tree543df0e9547519ddde732eee1847dfd38725f38c, branchperf/8019-borrow-card-details, clean owned worktree/workspace/perf-8019. Last remote merge subject/parents/tree above were fetched and verified; product/test bytes match the reviewed candidate.Review: independent exact-head source/oracle/output inspection is complete with no actionable borrowing finding. Advisory verification question is dispositioned with public hosted execution; its own ripr sensor exit 2 remains a reported packet limitation, not our RED/GREEN proof. Materializing artifact 11943150308 (
ub-review-8028) through its returned file URI into the selected environment failedTunnel connection failed: 403 Forbidden; that route was stopped without retry or escalation.Validation: all focused local proof, public parity, current check-fast, workspace Clippy and precommit pass. Original timeout evidence remains separately retained. No merge or release qualification claimed.
Dependency / hold: #7942, cache-currentness semantic owner; parent reports no published repair or active PR owner and is settling the handoff. This candidate uses the same affected
cache_clear_safety.rsblobbca0de4002aeb46e2e6f706bc32742c8e13e9a1b. Both directory-swap siblings happened to pass in this PR's Rust-only run; that does not resolve the demonstrated shared required-gate setup flake. The original recovery branch is gone. This lane has not claimed or changed #7942 and awaits the parent's explicit ownership handoff before any new fixture source change. No duplicate fix, skip or oracle weakening is included here.Next: keep Draft. Parent resumes normal Ready qualification only after a deterministic #7942 repair is delivered and verified in this PR's actual GitHub merge subject, then inspects current required checks/review and coordinates merge. No Ready toggle, required-qualification rerun, auto-merge or background watch is started by this lane.
Resource closeout: all owned local Cargo/CLI drivers are terminal. Retain one clean candidate worktree, one 2.8 GiB build target and ~694 MiB exact proof under
/workspace/perf-owned/evidencefor parent verification, original RED/GREEN replay and CI repair. Pinned toolchain/dependency/setup state is retained for offline reproduction. Last free space 26,163,716,096bytes exceeds the original 12 GiB reserve; original resource limits and one-job policy retained. No shared-cache deletion or other worker worktree mutation. The inherited contradiction-count cache residual remains in #8019 for parent/cache-owner disposition, outside this repair.