Repository navigation
Canary green again on source-hygiene: viewstate_rag.rs's tests move out, its unwrap_or says why (card a0790c4b) - #5193
Merged
joelteply merged 2 commits intoOct 19, 2026
Conversation
…ut, its unwrap_or says why (card a0790c4b) #5015 (merged 17:16Z, built against an older base) added 138 lines to persona/viewstate_rag.rs, already past 1,000, and one production unwrap_or without a same-line reason, so canary 89a337c failed source-hygiene for every PR: lines past 1000 158,103 vs 157,971, unjustified unwraps 2,140 vs 2,139 (measured on canary alone, IntelMac, clean rebuild). - viewstate_rag.rs's test module moves to persona/viewstate_rag/tests.rs (#![cfg(test)]): 1,458 -> 771 lines. - viewstate_rag.rs:557's unwrap_or(Null) gets its reason on the line: an unstamped cursor is Null, never a fingerprint, so it is refused below by design (the comment above already said so; the ratchet reads the line). - BASELINE_LINES_OVER 157,971 -> 157,645, measured on this tree. source-hygiene 37/37. Not compiled here; CI compiles. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…(card a0790c4b) #5015 merged list_fingerprint(&[String]) beside callers whose units had meanwhile become Vec<RagRenderUnit>, so canary failed to compile (E0308 at viewstate_rag.rs:475 and :555, CI job 118197821836; the only two errors in the lib and lib-test build). The fingerprint now takes the units and hashes each one's rendered content, the same bytes it hashed when units were strings, so an offset's list identity is unchanged; metadata does not move an offset. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
Contributor
Author
|
Reviewed 614bf8c. The fingerprint repair preserves the byte encoding for identical rendered content: each unit contributes its UTF-8 byte length in the existing usize big-endian encoding, then those content bytes, in list order. Metadata is excluded and does not change the content offsets. This is preservation of the existing encoding, not a new architecture-independent cursor format. The test extraction previously compared equal ignoring line-edge whitespace. No source blocker found. Current merge CI has core tests, source hygiene, binding drift and standalone installer passing; Windows core compilation/custody is still pending. No live adoption claimed. |
joelteply
deleted the
a0790c4b/canary-is-red-on-source-hygiene-5015-gre
branch
October 19, 2026 18:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5015 (merged 17:16Z, built against an older base) added 138 lines to
persona/viewstate_rag.rs, already past 1,000, and one production unwrap_or
without a same-line reason, so canary 89a337c failed source-hygiene for
every PR: lines past 1000 158,103 vs 157,971, unjustified unwraps 2,140 vs
2,139 (measured on canary alone, IntelMac, clean rebuild).
(#![cfg(test)]): 1,458 -> 771 lines.
unstamped cursor is Null, never a fingerprint, so it is refused below by
design (the comment above already said so; the ratchet reads the line).
source-hygiene 37/37. Not compiled here; CI compiles.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE