Repository navigation
feat: migrate validated usage kernels to Rust - #75
Merged
Merged
Conversation
softmaxe
enabled auto-merge (squash)
November 16, 2026 12:02
softmaxe
disabled auto-merge
November 16, 2026 12:03
softmaxe
enabled auto-merge (squash)
November 16, 2026 12:04
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
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.
Summary
Move five validated usage kernels to a statically linked Rust core while preserving Swift UI, actor ownership, SQLite transactions, history and authentication behavior.
Foundation remains the Claude compatibility fallback. Aggregation preserves checked-error order, floating-point order and original Unicode key spellings.
CI installs the pinned Rust toolchain in both required macOS checks, release packaging and CodeQL's Swift build. Add build-free Rust CodeQL analysis, Cargo Dependabot updates and the repository's custom runner label for actionlint. Rust/C bridge/toolchain changes continue to require both macOS checks; documentation-only changes retain the skip path.
Evidence
f8df98b129c9138ccb9e6290d6c801e805fed1be.After: 1,861 Swift assertions, 20 Rust unit tests, formatting and Clippy pass. Seven lifecycle checkpoints and four workloads × seven alternating pairs match SQLite schema/rows, cursor state and snapshots.
--scratch-path; pinned Rust setup succeeds; nine isolated classification cases pass; staged secret scans pass. Local release packaging and strict signature verification pass.Methods, limits and reproduction:
docs/rust-migration.md,docs/rust-validation.md,Scripts/validate_rust_pipeline.py.Merge Danger
Door: two-way
No database/schema/settings migration. Reverting code and build integration restores Swift without converting stored history.
Blast Radius: core
Rust adds a compiler, C ABI and build maintenance. Small-group aggregation adds approximately 0.391 ms initial / 0.098 ms appended scan time in its isolated full-chain comparison; retained under the explicit preference for Rust at comparable performance. Bare SwiftPM/Xcode package builds require the documented wrapper integration. Real credentials, hosted release publication and new platform support are outside this validation.