Skip to content

perf(analysis): stop retaining per-test body copies in value facts and owner-pin syntax - #9581

Merged
EffortlessSteven merged 6 commits into
mainfrom
claude/project-thread-een800
Oct 22, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
claude/project-thread-een800

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Steven

Summary

  • ValueEnvFacts kept a comment-stripped copy of every indexed test body, used only by builder_facts. It is now rebuilt at each builder_facts call. Allowed tokens include ordinary expected-sink names, so the empty-token guard does not limit stripping to tests containing builder calls.
  • The owner-pin syntax index kept each test's full text only to answer StaleSource. It now keeps length plus two 64-bit DefaultHasher results over that text, domain-separated by prefix bytes 0 and 1. This is a probabilistic staleness check, not cryptographic or independent-key protection.
  • Cold ripr pilot --mode ready on ripr-swarm (counting global allocator, scratch bin outside the tree): live-heap peak 985 MB to 962 MB in one run. Reported back-to-back A/B wall times were 189 s and 201 s; these samples do not establish a speed improvement or rule out a CPU regression. Slice of perf(pilot): cold pilot peak is ~1.3 GB RSS; ~400 MB is run-scoped evidence-context state that grows during evidence_for_seams #9494, not a fix for it.

Swarm / Source Boundary

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

Source-of-truth Links

Proposal: none separately linked; scoped follow-up to #9494.
Spec: no public contract change claimed; existing resolved-value and stale-source refusal behavior remains the acceptance boundary.
ADR: none; no new architectural policy.
Plan item: #5363 / #7220 gap 4 (large-workspace speed)
Governing issue or accepted claim: #9494
Acceptance delta (one sentence): Evidence no longer holds per-test body copies for value facts or owner-pin staleness, with identical resolved values and refusals.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-een800
Stack parent or prerequisite PR (if any): #9588 (merged); its corpus-ledger repair is included via main 969b0b8 in prior composed head 7f7fcac. Current qualification composition c1ec49d also imports main 4ae001a, including the mandatory Schema producer sweep.
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): n/a

Scope

  • value_resolution.rs: drop body_clean; builder_facts(&self, test_body) strips on demand.
  • test_grip_evidence.rs: one line, passes &indexed.test.body to builder_facts.
  • syntax/owner_pin.rs: FunctionAssertions.body becomes a BodyFingerprint.
  • New test: a same-length edited body is refused as stale.
  • Changelog fragment changelog.d/9494-drop-per-test-body-copies.md.

Scope Classification

  • One architectural seam

Evidence

  • cargo xtask precommit: reported pass on prior composed 7f7fcac2; not a fresh local precommit run on c1ec49d1.
  • cargo test -p ripr --lib for value_resolution (44) and owner_pin (294 plus the new test): pass.
  • A fingerprint match for differing text needs a collision in both hashes; the compared texts are two reads of one source span, not attacker-chosen pairs.

Generated by Claude Code

Current candidate and qualification: c1ec49d1c2a163c23c75f45a752bc92e8bae5eff, tree 4f10331934c079807a6cde749ab4a138bbb44184, is a normal merge of 7f7fcac2 and main 4ae001aa; the existing source owner and five-file production/evidence delta are preserved. The branch move used expected old head 7f7fcac2 with force disabled. Fresh exact-composition local proof passed 44 value-resolution, 306 owner-pin, three seam-evidence and one warm-table control tests (354 selected passes, zero failed/ignored), with no source hand edits. Full current qualification is pending one new native merge-ready request. The earlier successful run 39761420631 remains proof for checkout fea2c89d (18,927 nextest passes; five skipped), whose older workflow lacked Schema producer sweep; it is not current expanded-gate proof. Final integration remains REVIEW_INCOMPLETE until the new producer actually executes the sweep with its own doctor/PR artifacts and all current gates are inspected. The helper-only scan ratio is not an end-to-end pilot latency/RSS measurement, and #9494's <=1,024 MB bar is not claimed.

…d owner-pin syntax (#9494)

Value facts rebuild the comment-stripped body only when a seam has builder
tokens; the owner-pin syntax index keeps a two-hash fingerprint of each test
body instead of its text. Live-heap peak on a cold pilot of ripr-swarm:
985 MB to 962 MB in one counting-allocator run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011pwepHzKEGG6S5PHNdMnpS
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 104 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: e4b28858-0530-46a1-975d-23117318a2a8
📥 Commits

Reviewing files that changed from the base of the PR and between 4ae001a and 51fc88d.

📒 Files selected for processing: 5
  • changelog.d/9494-drop-per-test-body-copies.md
  • crates/ripr/src/analysis/classify/owner_pin/tests.rs
  • crates/ripr/src/analysis/syntax/owner_pin.rs
  • crates/ripr/src/analysis/test_grip_evidence.rs
  • crates/ripr/src/analysis/value_resolution.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request optimizes memory usage by replacing full test body strings with a BodyFingerprint (comprising length and two 64-bit hashes) in FunctionAssertions. It also removes the pre-computed body_clean string from ValueEnvFacts, rebuilding it on-demand instead. The review feedback suggests a minor improvement to make the hashing code more idiomatic by importing and using std::hash::DefaultHasher directly.

…ure; fix fingerprint doc (#9494)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011pwepHzKEGG6S5PHNdMnpS

Copy link
Copy Markdown
Member Author

Review of record. Head 2abaa0ea. Two independent reviewers read 9ef744ca; 2abaa0ea applies their findings (test, comment and changelog only).

Angle Findings Resolution
Correctness and edge cases None blocking. builder_facts gets the same text and line numbering as the old stored body_clean (the only caller passes indexed.test.body, the test ValueEnvFacts was built from); FunctionAssertions.body has one reader, and refusal-only entries return before the comparison, so the default fingerprint is never compared. Note: the two hashes share SipHash's fixed keys and differ by a prefix byte, so "independently keyed" overstated. Doc comment corrected.
Tests, regressions, contract None blocking. The new test discriminates the check (unmodified body gives None, a same-length edit gives Some) but asserted only is_some(). builder_facts has no direct test (equally untested before; covered end to end by builder_default_override). Changelog figure is one run. Test now pins Syntax(StaleSource); changelog says "measured once; not a reproducible figure".

Local proof: cargo xtask precommit passed on 9ef744ca; after 2abaa0ea cargo fmt --check and the changed test pass. Gemini and CodeRabbit posted quota notices, so those providers' reviews are missing, not clean.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 22, 2026 08:19
@EffortlessSteven EffortlessSteven self-assigned this Oct 22, 2026

@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

@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

  • Author's own review note in the seeded thread states the two hashes share SipHash fixed keys and differ by prefix byte, so 'independently keyed' was overstated and the doc comment was corrected. The current BodyFingerprint docstring does not claim independence, but readers may still infer it from the [u64; 2] shape. Consider one-line comment clarifying the two slots are not cryptographically independent.

Verification questions

  • Confirm bodyFingerprint is PartialEq+Eq via derived; length-equal comparison is implicit (no short-circuit on len mismatch but Eq is total). Stale-source test asserts same-length edit still refused, covering the collision-bearing case.

Refuted

  • Removing body_clean may change builder fact resolution or line numbering.; refuted because: The sole changed caller passes indexed.test.body, the same source from which facts were built; stripping remains the existing scan input.

Parked follow-ups

  • BodyFingerprint equality test gap: no test proves two distinct texts of same length colliding both SipHashes yield a false match.
  • Devin's CPU-cost concern is a real but bounded architectural tradeoff, not a new architectural issue: keeping body_clean retained re-introduces the very allocation this PR removes; memoization belongs in a follow-up if measurements demand it.
  • Repeated builder scans are bounded but reintroduce linear stripping work per evidence stage.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Ripr Rust Small Result failed on 96593a43, and the failure is not this PR's. The failing test is known_false::tests::wiring_accepts_the_committed_ledger_against_blessed_rows. It reports that shape-op-add-impl, shape-drop-impl-side-effect and shape-dyn-trait-method-exact are listed in spec-coverage.toml as known-false but no longer produce a false verdict. That is ledger drift on main after #9446 (this PR touches no verdict, corpus or xtask file).

#9588 already carries the fix (it removes those three entries, plus the TypeScript and Python drift), and it is itself in required CI. I'm not duplicating its ledger edits here, since they would conflict with it. Once #9588 merges I'll merge main into this branch and re-apply merge-ready for a fresh run.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

The prerequisite in comment6337071861 is now satisfied: #9588 merged09:43:39 as969b0b8c0cbd2164efa11e63c4947c7dc0add822 and is verified on main. Its required39753176270 completed with all four corpus checks and18,921 nextest passes, including the known-false wiring controls. Existing writer can resume the stated integration plan: reconcile current main into this branch, validate the composed revision and existing run state, then request only the applicable fresh qualification. Preserve the historical failed96593a43 receipt rather than retrying it unchanged or copying ledger edits. The reported985→962MB sample remains one observation, not wall-time or broader #5363/#7220 completion proof. No branch or CI operation was performed by this handoff.

Copy link
Copy Markdown
Member Author

Merged main (969b0b8c, carrying #9588) into this branch as 7f7fcac2; no ledger edits were copied, and the failed 96593a43 receipt is left as history. cargo xtask precommit passes on the composed tree, and merge-ready is re-applied for one fresh required run on 7f7fcac2. The review of record stands: the merge changed none of this PR's files, and the only post-review commits were the test pin, doc/changelog wording and the DefaultHasher import.


Generated by Claude Code

@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

  • No green-time test exercises BodyFingerprint::of directly (e.g., same input -> same fingerprint, empty string, UTF-8 boundary). End-to-end coverage via the new stale test is sufficient for the PR claim, but a 3-line unit test would pin the contract independently of refusal plumbing.

Refuted

  • Two BodyFingerprint hash slots are independently keyed cryptographic hashes that meaningfully reduce collision probability for adversarial input; refuted because: Both slots use std::hash::DefaultHasher (SipHash-1-3) with the same fixed process keys; only the prefixed key byte (0 vs 1) differs. The two 64-bit outputs are highly correlated, not independent. Practical impact is bounded: refusal-only entries return before comparison, and compared texts are two reads of one source span (parse-time vs look-up-time), not attacker-chosen pairs. The PR's doc no longer claims cryptographic independence after the author's correction.

Parked follow-ups

  • No test proves two distinct same-length texts colliding both SipHash slots yield a false match; such a test would require a known collision and is infeasible for SipHash-1-3 with default keys.
  • Devin's CPU-cost concern about repeated strip-on-demand across evidence stages is parked: the strip is gated by non-empty allowed_builder_method_names() and only reruns for the same body at the same evidence stage; author measured 201s vs 189s in host noise, and the alternative is the very copy this PR removes.

Evidence gaps

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

reviewed_head_sha: 7f7fcac
integration_basis: 969b0b8
claim_boundary: bounded body-retention reduction for #9494; no current cold-pilot RSS, latency, or <=1,024 MB acceptance claim.

No blocking source defect established by this review. Nonblocking clarification to the existing repeated-scan discussion: allowed_builder_method_names() always includes the expected-sink token. All four current sink spellings (return_value, output_field, error_channel, side_effect) produce a nonempty token set, so allowed.is_empty() does not restrict stripping to seams with actual builder calls. Both activation evidence and overlap ranking reach observed_value_facts_for_test. The PR/source wording and earlier reply saying stripping runs “only for seams with builder tokens” overstate that guard.

Observed component experiment: a source-extracted optimized Rust probe, synthetic 9,288-byte body, 4,000 repetitions, four rounds. Scanning retained stripped text took 19.316 / 19.320 / 23.030 / 26.232 ms; stripping raw text then scanning took 92.240 / 85.593 / 84.723 / 80.194 ms (3.1–4.8x for this helper work). A separate two-job Cargo build was running during the probe. These are NOT end-to-end pilot latency/RSS measurements, do not establish a deadline regression, and do not generalize the ratio to pilot. Correcting the gating description is warranted; any compact builder-capture caching or broader performance repair remains with the source owner and needs its own evidence.

changed_surfaces_and_semantic_owners_inspected: complete five-file PR delta; ValueEnvFacts/ValueEnv and the sole builder_facts caller; activation/overlap consumers; FunctionAssertions body producer and refusal reader; current ExpectedSink spellings; changelog/PR claims.
blocking_findings: none established in the inspected source/proof scope.
non_blocking_suggestions: correct the gating claim above. No rewrite requested by this review.
refuted_or_stale_findings: the changed builder caller supplies the same indexed test body from which its facts were built; stripping and line numbering use the same helper. Refusal-only FunctionAssertions return before checking their default fingerprint. No cryptographic independence or collision-resistance proof is claimed for the two prefixed DefaultHasher outputs.
proof_and_ci_observed:

  • On this exact clean detached head, Rust 1.95.0, Linux x86_64, default features, dev/test debug=0, incremental=0, two Cargo jobs: cargo test --locked -p ripr --lib -- value_resolution passed 44; the same environment with -- owner_pin passed 306, including the new explicit StaleSource test; -- test_grip_evidence::tests::evidence_for_seams_ passed 3. All commands exited 0, with zero failed/ignored selected tests: 353 distinct selected executions, not the full suite.
  • Source-extracted controls passed for equal/empty text, same-length ASCII and UTF-8 edits, and builder values/line numbers with comment/string lookalikes. Deliberately replacing the fingerprint with length-only equality and deliberately skipping stripping each failed the intended assertion (native exit 101).
  • Head refresh matches the tested Git object; both extracted production-source SHA256s match that object.
  • Current check snapshot contains all 47 reported check runs. Existing required producer run 39761420631, job 119766546759, is still in_progress. Admission/route succeeded; skipped alternative lanes are not counted as qualification. No duplicate request/rerun or Ready toggle performed.
  • Both existing inline review threads were read, including the outdated one; both are resolved, with the import repair and repeated-scan reply present. This is not a substitute for final cumulative review.
    proof_or_review_missing: completed required qualification and final current-head/cumulative integration judgment. The PR-reported heap and A/B pilot samples were not reproduced in this review. Provider quota/skipped wrappers are not clean review evidence.
    affected_currentness_dimensions: reviewed implementation/test/oracle identity is still 7f7fcac; local evidence is exact-head; hosted qualification remains pending.
    residual_assumptions_and_non_claims: probabilistic staleness remains disclosed; no known dual-hash collision test or adversarial protection claim; no fresh cold-pilot RSS or whole-workspace/full-output-corpus pass; no parent #9494 closure.
    disposition: REVIEW_INCOMPLETE for integration, pending the existing required producer. Focused source/proof review is complete with the nonblocking clarification above. Preserve the existing source owner; qualification is already in flight.

Copy link
Copy Markdown
Member Author

Independent review and terminal qualification update: reviewer /root/verify_composed_performance_fix inspected all five task files and consumers at head 7f7fcac, integrated base 969b0b8. No blocking source or lifetime finding. Required run 39761420631 attempt 1 succeeded, including producer 119766546759 and Result 119785940008. Executed checkout fea2c89 has parents f039726 and the reviewed head. Independently inspected artifact 12420136662 records 18,927 passing tests, with five separately excluded tests; doctests, goldens, fixtures, four corpora and PR evidence passed. Preserve this successful receipt.

One material integration gap remains before our current-repository merge judgment: main 180b567 contains #9560's new required Schema producer sweep. Current rust-gates workflow blob 1f397e091cbbaed745c9ac5d8960b87435e04582 includes that step; executed workflow blob e9a5894e14c5ceb7f7dae8f35041c09e39288ca3 does not. This is not a blanket behind-main rule or a newly discovered source defect. The five task paths are unchanged, so retain their review evidence.

Existing writer: integrate the materially expanded gate into this same candidate, inspect the composed delta and current run state, then request one applicable admitted qualification without duplicate active runs. Verify that the Schema producer sweep actually executes using that run's producer outputs before the exact-head final merge judgment. Author custody, holds and protections remain unchanged. No branch update, CI dispatch or merge was performed by this handoff. Fingerprints remain probabilistic, and the one heap sample remains neither a reproducible benchmark nor wall-time improvement proof.

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

reviewed_head_sha: 7f7fcac
disposition: REVIEW_READY for the bounded #9581 claim. This supersedes only the integration-pending disposition in review 5613083165; its source inspection, test identities, nonblocking clarification and measurement limits remain applicable.

Qualification identity: run 39761420631, implementation job 119766546759. The actual checkout log names merge commit fea2c89, with verified parents f039726 and the reviewed head 7f7fcac; tree 23cd6940c75dfedd1918cfda1705021fbcc4440c. The log's SUBJECT_HEAD is the same candidate. Both implementation and required Ripr Rust Small Result 119785940008 completed successfully.

Observed hosted proof on that qualified merge checkout: workspace/all-target and all-features checks, strict Clippy, policy/evidence-honesty checks, 18,927 nextest passes (five skipped), doctests (two passed, one ignored), goldens, fixtures, all four verdict corpora and PR-evidence contracts. Skipped alternative/advisory lanes are not counted as product qualification. The fresh candidate check inventory returned all 49 reported runs with no failure/pending result. This is hosted qualification of the named merge checkout, not a new local execution of the 353 focused tests.

Cumulative findings: all seven submitted reviews, Conversation comments and both inline threads were inspected; both threads, including the outdated import thread, are resolved with their repairs/replies present. The import fix is in source. The latest advisory direct-fingerprint-test suggestion is nonblocking: the retained end-to-end test pins exact StaleSource, and the source-extracted empty/equal/UTF-8 and wrong-implementation controls add bounded independent evidence. Provider quota notices and rejected model-proof intent are missing provider proof, not clean reviews; this accountable source/oracle review is the substantive alternative.

Repeated stripping is an accepted CPU/retention tradeoff for this bounded claim, with no established end-to-end regression in this review. The earlier gating explanation is corrected by review 5613083165: ordinary sink tokens make the allowed set nonempty. Its measured 3.1–4.8x ratio applies only to synthetic helper strip+scan work, not pilot latency/RSS. Broader optimization remains a follow-up under open #9494; no claim is made that <=1,024 MB or a speed improvement is delivered. The fingerprint remains probabilistic and is not described as cryptographically independent or adversarial collision protection.

Integration basis and limits: current fetched main is 180b567, descended from the qualified base. None of this PR's four changed Rust files changed between the qualified base and that main. A conflict-free local merge-tree predicts c8de6e5519167246471d04162c33acf61d735051; this is composition evidence, not a fresh combined-tree test run. Current main's later schema-sweep workflow addition was not part of the older qualified workflow and is not claimed as executed here. Existing behind-only/unaffected-proof policy applies; no rebase, new CI, readiness toggle, settings change or source rewrite was performed.

Workflow triggers and later main workflow changes were inspected: ordinary main integration runs CI and dry-run/report work, while actual publication is separately dispatched. No deployment/release action is introduced by this PR. Held protection/settings reads remain untouched; normal GitHub protection enforcement is preserved, with no bypass or auto-merge.

No competing integration claim appeared in the refreshed Conversation. The original source owner and candidate are preserved. Proceed only with a final fresh head/check/thread gate view and the normal expected-head protected squash. #9494 remains open for its residual memory/RSS acceptance.

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

reviewed_head_sha: 7f7fcac
disposition: REVIEW_INCOMPLETE / WAITING_INTEGRATION_PROOF. This explicitly withdraws the integration clearance in review 5613208653. No merge, branch update, Ready/label toggle or duplicate CI request was performed.

The final Conversation refresh surfaced comment 6339240514, posted while the previous gate inventory was being assembled. Its current-repository qualification concern is supported by source: main 180b567 has rust-gates workflow blob 1f397e091cbbaed745c9ac5d8960b87435e04582, including the unconditional Schema producer sweep, while the successful checkout fea2c89 executed blob e9a5894e14c5ceb7f7dae8f35041c09e39288ca3 without that step. Treating this newly mandatory producer step as unaffected behind-main movement was too broad; the current pipeline's proof dimension remains missing.

Retain the successful run 39761420631 and its actual 18,927-test/five-skip receipt, the 353 earlier exact-head local passes, the source/oracle review, and resolved-thread evidence with their original identities. They are not invalidated or relabeled as fresh executions. No new blocking source/lifetime defect has been established, and the helper-only timing remains distinct from unmeasured pilot latency/RSS.

Next transition belongs to the existing source/candidate owner: compose the materially expanded native gate into this same candidate, inspect the actual delta and active run state, then make one applicable qualification request. Verify the Schema producer sweep executes with that run's actual doctor and PR producer outputs before restoring an exact-head final integration judgment. Preserve the successful older receipt and avoid duplicate active CI or a competing source writer. The unchanged five task paths retain their source review; refresh composition/gate/head evidence for the resulting candidate.

EffortlessSteven commented Oct 22, 2026 •

Copy link
Copy Markdown
Member Author

Terminal continuation — the original source writer completed integration.

PR #9581 was merged at 2026-10-22 12:38:11 UTC from head 51fc88da9b645f0d2c5f7a57a3609ce9d6e3a651 as squash commit 3131df35d46a4875aad8f8a068f813e2c1184612. Direct connected reads verified the merged PR receipt, the commit's single parent b0c9c2eb86ea3b038a25ce03caa9ce30a5155f7c and tree be990348653777ef0877b4aa40d72ae15ca13000. Main observed at a620c1966cf5148388992dad9ea251650acad926 contains that merge: the comparison is ahead by one, behind by zero, with merge base 3131df35. The writer's final review of record owns the integration judgment. This helper issued no second merge.

Authoritative run 39773996738, attempt 1, is completed/success on head 51fc88da. Direct jobs read verified Rust gates 119808673470 success, PR evidence step 30 success, actual Schema producer sweep step 31 success, and required Result 119827073224 success. Its referenced workflow/controller is cb5bf55f04301245a5193b9938edcf87c23cbcff; the Git object has parents 118ad100697567cfd5fa9be815820bb2db39345d and the exact candidate 51fc88da. This is the expanded-gate qualification, rather than a relabeling of earlier proof.

Independent source/test evidence retains its original subjects: 353 selected native tests on 7f7fcac2; 354 selected passes, zero failed/ignored, on the normal current-workflow composition c1ec49d1. Incremental exact-51fc review 5613869689 inspected the complete two-file documentation/direct-test delta with production statements unchanged. The added fingerprint test passed in a source-extracted Rust 1.95 harness, and the length-only negative control failed its intended same-length assertion (exit 101). These were not fresh full Cargo runs on 51fc88da or post-merge main. The source documentation and inline reply now correctly say builder_facts strips on each call; expected-sink tokens make the guard nonempty.

Run 39772395615 was cancelled before the sweep; its Schema step was skipped and Result failed. It remains nonqualifying. Older successful run 39761420631 predates the mandatory Schema producer sweep and is retained only under its original checkout identity. No competing CI request, source edit, cancellation or merge was issued after the active writer resumed.

Limits: the synthetic helper-only 3.1–4.8× strip/scan ratio does not measure end-to-end pilot latency or RSS. The reported 985→962 MB live-heap sample is historical, not reproduced here. The fingerprint remains probabilistic. Issue #9494 was directly verified open; its ≤1,024 MB cold-pilot RSS acceptance remains unproven. No release/deploy or protection/settings action occurred. Original and composed executable witnesses, logs, controls and byte/mode-verified fixture archives are retained, with detached review worktrees removed. This bounded review/integration follow-through is complete; further memory work is a separate coordinated leaf.

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

reviewed_head_sha: c1ec49d
integration_basis: imported main 4ae001a
disposition: REVIEW_INCOMPLETE for final integration; source/composition/proof review is complete and this is the selected candidate for one new native qualification request.

This normal merge has parents 7f7fcac and 4ae001a; tree 4f10331934c079807a6cde749ab4a138bbb44184 exactly matches Git's conflict-free merge-tree output. The existing branch was fast-forwarded only after a fresh head/ownership read, with expected old head 7f7fcac and force disabled. The author/source owner and five-file 67-add/10-delete PR delta are preserved. The fetched old merge ref still contained workflow e9a5894e, and the installed gh lacks update-branch, so this supported normal Git-data composition was needed to make the current workflow available without a competing PR or product hand edits.

Affected composition inspection: main's landed lock-free OwnerPinSyntax and one-time warm-table consumer are preserved. The builder call passes the same indexed.test.body into the unchanged ValueEnv logic; the fingerprint and value-resolution production blobs, plus the added StaleSource test, are unchanged from the earlier reviewed candidate. Immutable fingerprint state adds no shared mutable syntax state. The composed caller differs from imported main by exactly the intended builder-body argument. Current workflow blob 1f397e091 includes mandatory Schema producer sweep. No new blocking source/lifetime/oracle defect was found in this composition.

Fresh exact-c1 local proof, Rust 1.95.0/Linux/default features, dev/test debug=0, incremental=0, two Cargo jobs:

  • value_resolution: 44 passed
  • owner_pin: 306 passed, including explicit StaleSource
  • evidence_for_seams_: 3 passed
  • evidence_pass_warms_the_workspace_scan_once_and_only_for_large_stages: 1 passed
    All four commands exited 0 with zero failed/ignored selected subjects: 354 distinct selected executions. Test executable SHA256 52b07c3512d12d055be02c9dbc9d5448f4188575dd69d02d160978008de79699. This is fresh focused composition proof, not a fresh full matrix or schema-sweep result.

Carried-forward evidence remains identified: 353 local passes and source-extracted controls on 7f7fcac; prior full qualification 39761420631 on fea2c89 (18,927 nextest passes; five skipped). Neither proves the expanded current gate. The PR body now corrects the overbroad builder-token gating claim; the helper-only timing experiment is not end-to-end pilot latency/RSS proof. Probabilistic fingerprint limits and open #9494's unresolved RSS bar remain explicit.

Next native transition: verify no active required run for c1, then remove/re-add merge-ready once. Inspect the new run's actual checkout/workflow and ensure Schema producer sweep executes with that run's own outputs. Only completed current qualification plus refreshed cumulative review/head/thread gates can restore REVIEW_READY. No custom status, settings/protection read/change, release/deploy, or old-workflow rerun is involved.

…r_facts strip note (#9494)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011pwepHzKEGG6S5PHNdMnpS

Copy link
Copy Markdown
Member Author

Writer note for the composed candidate. Your merge c1ec49d1 (main 4ae001aa, Schema producer sweep included) crossed with my own main merge; I discarded mine and rebuilt on yours, so there is one lineage and no force push. I added one commit on top: a direct BodyFingerprint unit test (equal/empty/UTF-8/same-length edit) and a correction of the builder_facts doc note (the strip is not limited to seams with builder calls, per your review). Only comment and test lines changed in two files; the production code is the same.

Local proof on this tree: the new test and cargo fmt --check pass. A full cargo xtask precommit and a local doctor.json Schema producer sweep passed on my earlier main-merged tree with the same two-file change; the sweep needs the hosted run's own artifacts for the final check. I applied merge-ready once on this head to start the single fresh required run; there was no active run to duplicate.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Correction to my earlier note, because the two writers crossed. I pushed 51fc88da (your c1ec49d1 plus one commit, 641f815d rebuilt on top: the direct BodyFingerprint test and the corrected builder_facts doc note, comment and test lines only) after you had started the required run, and I did not toggle the label afterward (it was already applied, so my add was a no-op). So 39772395615 is still running and is bound to c1ec49d1; it qualifies that head, not 51fc88da.

I will not re-request CI while it is active. Once it is terminal I'll inspect the Schema producer sweep in it, and then make one merge-ready toggle so 51fc88da has its own required run, since the final merge needs the current head qualified. If you would rather keep c1ec49d1 as the only candidate, say so and I'll move my commit to a follow-up instead.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Update on the crossed writers: run 39772395615 ended with Ripr Rust Small Result failed because its producer job was cancelled (GITHUB_RESULT: cancelled, RUNNER_QUERY: failed), not because of a test or gate failure. My push of 51fc88da superseded it, so the cancellation is my doing and the run proves nothing about c1ec49d1. With nothing active, I removed and re-added merge-ready once, so the single fresh required run is now on 51fc88da (c1 plus the two-file comment/test commit). I'll inspect that run's Schema producer sweep and result before the merge judgment.


Generated by Claude Code

Copy link
Copy Markdown
Member Author

Coordination check before any further qualification request: independent current-head inventory shows two nonterminal required runs for 51fc88d: 39773767791 (created 11:51:40, in progress) and 39773996738 (created 11:53:28, pending), both referencing controller cb5bf55. Please reconcile their actual current admission/execution state and retain one authoritative qualification; do not toggle or dispatch another run. This is a duplicate-risk observation, not proof both expensive jobs executed. The c1 run39772395615 was cancelled after the new head and did not execute Schema producer sweep, so it is not a qualification pass. Root has not cancelled or dispatched anything and is independently reviewing the new two-file delta.

Copy link
Copy Markdown
Member Author

Reconciled, read directly from the runs just now. 39773767791 (created 11:51:40) is terminal: completed / cancelled at 11:53:52. It was cancelled by my single label removal, which is what supersedes an in-flight request, so it does not count as qualification. 39773996738 (created 11:53:28, from my one re-add) is the only active run: in_progress, head 51fc88da, controller cb5bf55f. That is the one authoritative qualification. I am not toggling or dispatching anything else and will inspect 39773996738 when it is terminal, including that the Schema producer sweep executed with that run's own doctor and PR outputs.


Generated by Claude Code

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

reviewed_head_sha: 51fc88d
disposition: REVIEW_INCOMPLETE for integration pending the existing writer's authoritative qualification; no blocking finding in the incremental two-file delta.

The Git object directly parents c1ec49d; tree fabe85654bfd32868b17b43b3de8856499126224. The complete commit patch adds only one cfg(test) BodyFingerprint unit test in the existing skipping_table_tests module and corrects the builder_facts documentation. No production statement, dependency, workflow or public format changed. Preserve this single lineage; no rewind or competing candidate is warranted.

The new direct test covers equal/empty text, length difference, a same-length ASCII edit and multibyte UTF-8 versus equal-length ASCII. I executed the exact added test with the unchanged production BodyFingerprint definition in an isolated source-extracted Rust 1.95 test harness: one passed, zero failed/ignored. A disposable control zeroing both hashes (length-only equality) failed the intended same-length assertion, native exit 101. This confirms the new oracle rejects that wrong implementation. This is isolated helper proof, not an independent full Cargo run on 51fc88d. The earlier 354 exact-c1 selected passes remain carried-forward evidence for their unchanged source/test subjects; they are not relabeled as fresh executions on 51fc88d. The writer's own current-tree test/fmt and earlier-tree precommit/sweep claims remain separately reported evidence.

The documentation now accurately states that ordinary expected-sink tokens cause stripping on each builder_facts call; the previous nonblocking wording finding is addressed. The finite tests do not prove collision-free equality or cryptographic independence. Existing probabilistic-fingerprint and unmeasured end-to-end pilot/RSS limits remain; open #9494's <=1,024 MB bar is not established by this patch.

CI/ownership reconciliation: my c1 run39772395615 was cancelled during the all-features check, and Schema producer sweep was skipped. Its failed Result is not a source/test failure or a qualification pass. The latest direct run inventory for 51fc88d shows 39773767791 completed/cancelled and 39773996738 in_progress, with exactly one nonterminal required run. Per the existing writer's explicit continuation, that writer owns terminal sweep/result inspection and final merge judgment. I have not cancelled or re-requested CI and will not race that active integrator. Preserve the current run, and verify its actual Schema producer execution, artifacts, head and cumulative gates before integration. No native CLI GraphQL request, own-target Forbidden response, denied-read replacement, quota probe, settings/protection change or merge was performed by this review pass.

@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

  • No direct unit test pins builder_facts stripping equivalence after on-demand rebuild; covered only end-to-end by builder_default_override. Mirrors pre-PR coverage gap, not a regression.

Refuted

  • Two BodyFingerprint hash slots are independently keyed, meaningfully reducing adversarial collision probability.; refuted because: Refuted by author and prior review: both slots use DefaultHasher with SipHash fixed process keys, differing only by prefix byte 0 vs 1. Outputs are correlated, not independent. PR doc no longer claims cryptographic independence.
  • FunctionAssertions.body becoming BodyFingerprint changes StaleSource semantics such that two distinct same-length bodies could match and skip refusal (collision-bearing false negative).; refuted because: Both SipHash slots are over the full body, not independent; for short test bodies the collision space is large and the compared texts are parse-time vs look-up-time reads of the same source span. Refusal-only entries short-circuit before comparison. Author added a new test pinning Syntax(StaleSource) for a same-length edit. A direct collision test is not provided, but the route is refusal-only and bounded.
  • BodyFingerprint duplicates the String retention under a different name, so the memory reduction is illusory or the abstraction is wrong-sized.; refuted because: The fingerprint stores len + two u64 (24 bytes on 64-bit) versus the prior full String; refusal-only entries return before the compare; the compared texts are two reads of one source span, not attacker-chosen pairs. The shape is the minimum state needed to answer StaleSource, not a duplication of the prior cache.
  • The two hashes provide independent cryptographic protection against attacker-chosen collisions.; refuted because: This was already corrected and is not claimed by the current documentation: both values use DefaultHasher with prefix bytes 0 and 1. The use case compares reads of one trusted source span rather than hostile independent inputs.

Parked follow-ups

  • A known dual-hash collision remains impossible to prove without a collision pair, but the stale-source test supplies the relevant discriminating regression case.
  • BodyFingerprint::of uses std::hash::DefaultHasher (SipHash-1-3) with same process keys for both slots; only the prefix byte (0 vs 1) differs. The two 64-bit outputs are not cryptographically independent. Doc no longer claims independence after author correction. Practical exposure is bounded because compared texts are two reads of one source span and refusal-only entries return before compare.
  • Activation evidence and activation_overlap_score both call observed_value_facts_for_test, which now strips test_body on every invocation. No memoization is reintroduced, so per-evidence-stage recompute cost is linear in body length for shared tests. Author's own end-to-end measurement (201s vs 189s back-to-back) is inside host noise; not a regression claim, not a fix.
  • Devin's repeated-strip CPU concern is a real architectural trade-off but bounded: the strip is gated by allowed_builder_method_names non-empty and runs per seam on a single test body; memoizing it would resurrect the retained copy this PR removes.
  • Stale-source equality is probabilistic rather than exact text equality; a same-length collision in both prefixed DefaultHasher outputs could evade refusal.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Copy link
Copy Markdown
Member Author

Review of record, final head 51fc88da. Angles: correctness and edge cases, tests and contract, exact-composition source review (Steven's 5613528374/5613869689), and the hosted qualification.

  • Required run 39773996738, attempt 1, head 51fc88da, controller cb5bf55f: succeeded, including Ripr Rust Small Result. Its Schema producer sweep step (31) executed and passed after PR evidence (step 30), alongside workspace/all-target and all-features checks, strict Clippy, required Rust tests, doctests, goldens, fixtures and verdict corpora.
  • Findings: none blocking from any angle. Applied: StaleSource pinned in the test, DefaultHasher import, a direct BodyFingerprint unit test, and the corrected builder_facts strip note (the earlier "only seams with builder tokens" wording was wrong). Both inline threads are resolved; the Devin thread now carries the correction. Provider quota notices (CodeRabbit) are missing reviews, not clean ones.
  • Limits that stay: the 985 to 962 MB figure is one sample; the fingerprint is probabilistic; helper-only scan timing is not pilot latency. perf(pilot): cold pilot peak is ~1.3 GB RSS; ~400 MB is run-scoped evidence-context state that grows during evidence_for_seams #9494's 1,024 MB bar is not claimed and stays open.

Merging under the standing rule (green on the exact head, nothing blocking), squash with expected head 51fc88da.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven merged commit 3131df3 into main Oct 22, 2026
70 of 78 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/project-thread-een800 branch October 22, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants