Skip to content

feat(xtask): complete loadout alpha with rust-shed codecs and xwork cache - #8

Merged
todie merged 7 commits into
unsignedfrom
feat/e4-loadout-alpha-rust-shed-xwork-cache
Nov 1, 2026
Merged

todie merged 7 commits into
unsignedfrom
feat/e4-loadout-alpha-rust-shed-xwork-cache

Conversation

@todie

@todie todie commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

License

BUSL-1.1 (Christian, 2026-11-01 ~20:55Z). The public fork carries source-available, not open-source, code in vendor/rust-shed. The manifest now says BUSL-1.1, vendor/rust-shed/LICENSE holds the BUSL-1.1 text, and vendor/rust-shed/NOTICE lists the files that keep upstream MIT OR Apache-2.0 terms.

Loadout citation. vilicus/xtask/src/loadout.rs:86-113 (Alpha spec: vendor/rust-shed, features core sync time async cli auth0, target_repos includes unsigned/herdr), vilicus main 93287f59823149e4a62074b77c6b433b76cfe95b. Hardpoint matrix row E4.

Scope. This PR completes only the vendor/rust-shed and xwork-cache part of Alpha. The four other Alpha components, vendor/classifier, vendor/spiffe-svid, vendor/glaeda-xwork and auth0-adapter, are NOT included and are pending a ruling from Christian. The existing xtask loadout check from PR #7 still reports classifier and spiffe-svid as missing.

Source used for the cache. The vilicus main xtask/src/xwork_cache.rs (generic subset). The 5-tier reverie snapshot was not used: its extra tiers are the scorcher benchmark harness.

State found. The matrix row said the fork had neither piece. PR #7 had already landed an older vendor/rust-shed and a minimal xtask. This PR adds only what was missing.

Added (all additive, no upstream distribution/* or .github/workflows/* touched)

  • vendor/rust-shed/src/{varint,delta,wire_delta}.rs, copied byte-identical (verified with cmp) from vilicus vendor/rust-shed, plus three pub mod lines in lib.rs.
  • xtask/src/xwork_cache.rs: generic L1 (/dev/shm) and L2 (~/.cache/herdr-xwork) content-addressed RUSTC_WRAPPER cache. SHA-256 keying, rustc argv classifier, restore and store, cache stat|clear.
  • xtask/src/bin/xwork_rustc.rs wrapper binary, cargo xtask cache subcommand, rust-shed dependency in xtask/Cargo.toml.

Deliberately left out of xwork_cache.rs (scorcher-specific in the source): L3 peer fetch/serve, deadline policy and watchdog, CxshHeader SHM header, scorer engine, NCCL row, benchmarks and demo. Europa paths (/Volumes/CortexMemFS, ~/.cortex) were replaced.

Provenance. Christian accepted shm-class code in the public fork on 2026-11-01. The copied varint.rs, delta.rs and wire_delta.rs carry scorcher-derived header comments. The vendored crate declares MIT OR Apache-2.0 in its manifest, but vilicus has no LICENSE file under vendor/rust-shed, and the vilicus root LICENSE is all-rights-reserved. Please confirm the licence intent before this leaves draft.

Checks (ceres, -j 2)

  • cargo test -p rust-shed -p xtask: pass. cargo test -p rust-shed --all-features --lib: 28 pass.
  • cargo clippy -p rust-shed --all-targets -D warnings: clean.
  • cargo check -p rust-shed --no-default-features: pass.
  • cargo clippy -p xtask --bin xtask -D warnings: fails on type_complexity at xtask/src/main.rs:181, existing code, not changed here.
  • cargo check --workspace: blocked at ghostty-vt build script, zig 0.15.2 rejects build.zig (unrelated to this change). Non-ghostty crates check clean.
  • Not verified: CI result, xwork-rustc used as a real RUSTC_WRAPPER on a full build.

…ache

Add varint, delta, and wire_delta modules to vendor/rust-shed and an
xtask xwork_cache module with an xwork-rustc RUSTC_WRAPPER binary. Only the
generic L1/L2 cache tiers are included.
@todie todie added the hold Do not merge; the lead removes it when landing label Nov 1, 2026
todie added 3 commits November 1, 2026 14:29
… source

Restore the unformatted vilicus copies so provenance is verifiable by cmp.
Set the manifest license to BUSL-1.1, add the LICENSE text, and add a NOTICE for files that keep upstream MIT OR Apache-2.0 terms.
Mark varint, delta and wire_delta rustfmt::skip so the copies stay verifiable by cmp and cargo fmt --check adds no new diffs.
@todie todie removed the hold Do not merge; the lead removes it when landing label Nov 1, 2026
todie added 3 commits November 1, 2026 15:42
…layout

Use the vilicus NOTICE wording and switch the first-party auth0.rs SPDX header from MIT to BUSL-1.1.
…list

The workspace lists both as members, so the Nix source fileset must carry them.
Formatting only. auth0.rs also switches its SPDX header to BUSL-1.1 earlier in this branch; no logic changes here.
@todie
todie marked this pull request as ready for review November 1, 2026 21:02
@todie
todie merged commit 7375756 into unsigned Nov 1, 2026
6 checks passed
@todie
todie deleted the feat/e4-loadout-alpha-rust-shed-xwork-cache branch November 1, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant