1. Fixes applied this session:
- cubesys/src/lib.rs:136 — `store_code_cell` annotated with
`#[allow(clippy::too_many_arguments)]` (8 args is inherent to the
record-codec bridge; clippy -D warnings gate).
- cubesys/src/store.rs:699 — `put_code_cell` annotated identically.
- cubesys/src/commands.rs:819 — `cell.links().iter().copied().collect()`
replaced with `cell.links().to_vec()`.
- cubesys/src/commands.rs:991 — `while let Some(tok) = it.next()` loop
rewritten as direct `for tok in it`.
- cubesys/src/commands.rs:1187 — ls handler uses `parse_path` (not
`path_to_czyx`) for directory ACL gate; derived prefix coordinate
matches NullSpace acl_bucket convention.
2. cube-bench executed: ./check bench stage passes with correctness
assertions on every measurement path (100k puts, 100k gets, crypto
benchmarks, VM dispatch, session commands, concurrent RwLock stress).
3. cubecli extracted: standalone crate at cubecli/ with its own
Cargo.toml + src/main.rs; cube binary unchanged (same CLI surface,
demo, commands); cubesys/Cargo.toml no longer declares the `cube`
bin; workspace members updated.
4. ./check gate: fmt + tests + clippy -D warnings all green;
`./check bench` also passes.
Verification: ./check (full gate) + ./check bench both PASS.
Co-Authored-By: Hermes Agent
1.6 KiB
1.6 KiB
RESUME POINT — HashBackend (HashMap<u32, Vec>) work, 2026-08-20
WHAT WAS DONE THIS SESSION
- Scrapbed
cube-store-raw/andcube-fuse-proxy/— wrong-architecture duplicates that broke the build (103 errors). They referenced a non-existent backend plan. - Cleaned
Cargo.toml— removed the two stale members. - Added 7
HashBackend(HashMap) trait-level tests tocubestore/src/lib.rs:- put/get/delete roundtrip
- overwrite replaces value
- keys() returns sorted order
- scan_prefix filters C/Z/Y correctly
- empty backend edge case
- null coord (0,0,0,0) is a valid distinct key
- multiple backends are independent
- Cleaned up
_assert_backend_assocworkaround + deadHashMapimport inrecord_codec— no longer needed now that HashBackend has real tests. - Workspace green: 15/15 cubestore tests pass, cargo check clean.
CURRENT STATE
- Branch: feat/os-kernel-in-cube (HEAD
b97efa2) - cubestore has 15 tests: 8 original + 7 new HashMap/HashBackend tests
- No duplicate crates in workspace
NEXT STEPS (pick one)
- Wire HashBackend into cubefs-mount as the default in-memory backend (already wired via
--seed; verify it mounts and serves reads/writes without a daemon) - Benchmark HashBackend vs FileBackedStore — put/get latency to establish the in-memory baseline
- Continue reading the spec from CUBELinux.txt (offset ~360+) — the store trait and in-memory backend section, then implement the next piece
- Add a small CLI smoke test that exercises HashBackend directly (put/get/delete) without going through CubeStore