Add weighted path sidecar - #67
Closed
MesTTo wants to merge 2 commits into
Closed
Conversation
MesTTo
marked this pull request as ready for review
June 23, 2026 10:23
Contributor
Author
|
Folding this into #101: its two commits are the strict prefix of that branch, which adds the Catamorphism-built selection tree and wires the primitive as the (wselect ...) grounded sink behind a default-off feature, with tests and a runnable resource. #101 is mergeable against current main; this branch conflicts. One wired PR to review instead of an un-wired base. |
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.
Adds a derived weighted-path sidecar over encoded MORK paths.
The branch keeps signed path weights outside the authoritative
PathMap<()>atom store, supports set and delta updates, tracks positive-weight totals, and selects paths by cumulative positive-weight offset. Negative weights are retained as maintenance state but are ignored by weighted selection.Validation:
cargo +nightly-2026-06-01 test -p mork --test weighted_pathswithRUSTFLAGS='-C target-cpu=native'CARGO_HOME=/home/user/Dev/.cargo-isolated RUSTFLAGS='-C target-cpu=native -Awarnings' cargo +nightly test -p mork --test public_apicargo +nightly-2026-06-01 test -p mork --libwithRUSTFLAGS='-C target-cpu=native'rustfmt --checkonkernel/src/weighted_paths.rs,kernel/tests/weighted_paths.rs, andkernel/tests/public_api.rsjscpdonkernel/src/weighted_paths.rs,kernel/tests/weighted_paths.rs, andkernel/tests/public_api.rsgit diff --check