|
| 1 | +# toadStool — Wave 53 "Primals on the Mountain" Response |
| 2 | + |
| 3 | +**Date**: May 26, 2026 |
| 4 | +**Session**: S275 |
| 5 | +**From**: toadStool team |
| 6 | +**To**: primalSpring (downstream audit) |
| 7 | +**Audit ref**: Wave 53 — Primals on the Mountain (May 26, 2026) |
| 8 | + |
| 9 | +--- |
| 10 | + |
| 11 | +## toadStool Items — Status |
| 12 | + |
| 13 | +### 1. Coverage push 83.6% → 90% — INCREMENTAL, on track |
| 14 | + |
| 15 | +Coverage infrastructure is solid: |
| 16 | +- `cargo llvm-cov` via `scripts/run-coverage.sh` (primary) |
| 17 | +- `cargo tarpaulin` via `tarpaulin.toml` (secondary) |
| 18 | +- 133 dedicated `*coverage*` test files across workspace |
| 19 | + |
| 20 | +Gap analysis: remaining ~6.4% concentrated in hardware-dependent paths |
| 21 | +(display/V4L2 ~3,800L, neuromorphic/VFIO ~2,000L, runtime backends ~1,000L). |
| 22 | +These require real hardware for meaningful coverage. Soft-testable modules |
| 23 | +are well covered (~90%+ in IPC/JSON-RPC/core logic). |
| 24 | + |
| 25 | +No blocking debt. Continuing incremental push. |
| 26 | + |
| 27 | +### 2. Expand sovereign VFIO dispatch — ACTIVE |
| 28 | + |
| 29 | +Upstream commits landed this session: |
| 30 | +- `reagent.rs` (841L) — reagent capture/distill pipeline |
| 31 | +- `pri_ring_anchor.rs` (187L) — PRI ring anchor for Volta+ |
| 32 | +- `sovereign_handoff.rs` expansion (+700L) — IMEM firmware capture, catalyst teardown |
| 33 | +- `profile-catalyst-teardown.sh` script |
| 34 | +- `sovereign.rs` handler — reagent JSON-RPC methods |
| 35 | + |
| 36 | +All absorbed with 0 clippy warnings (13 upstream clippy issues fixed during |
| 37 | +absorption: collapsible_if, derivable_impls, equatable_if_let, |
| 38 | +unnecessary_if_let, map_unwrap_or, single_match_else, too_many_lines, |
| 39 | +dead_code). |
| 40 | + |
| 41 | +### 3. Songbird `ipc.register` self-registration — ALIGNED |
| 42 | + |
| 43 | +**Already implemented** as outbound client registration at startup via |
| 44 | +`register_with_discovery()` in `connection.rs`. Fires at both unibin and |
| 45 | +CLI daemon startup. |
| 46 | + |
| 47 | +**Fixed this session**: Capability list was stale — registered |
| 48 | +`["compute.dispatch", "compute.capabilities"]` but should match Node Atomic |
| 49 | +set. Now registers via `DISCOVERY_CAPABILITIES` constant: |
| 50 | + |
| 51 | +``` |
| 52 | +["compute", "workload", "orchestration", "gpu", "wasm", |
| 53 | + "container", "hardware_transport", "shader_dispatch", "hardware_learning"] |
| 54 | +``` |
| 55 | + |
| 56 | +Aligned with `primal.announce` handler capabilities. Tests updated. |
| 57 | +Stale DEBT.md note about `capability.register` corrected (method is |
| 58 | +`ipc.register`, not `capability.register`). |
| 59 | + |
| 60 | +### 4. Cold-start latency >8s — ALREADY RESOLVED (S275) |
| 61 | + |
| 62 | +Fixed in S275 (Wave 49 ecosystem tightening): |
| 63 | +- Deferred wgpu GPU enumeration (1–5s savings) |
| 64 | +- Pre-bound JSON-RPC socket (health probes connect during init) |
| 65 | +- Socket listening within ~1s of startup |
| 66 | + |
| 67 | +--- |
| 68 | + |
| 69 | +## Upstream Clippy Absorption |
| 70 | + |
| 71 | +13 clippy warnings from upstream VFIO/reagent commits absorbed: |
| 72 | + |
| 73 | +| Crate | Issues | Fix | |
| 74 | +|-------|--------|-----| |
| 75 | +| cylinder (boot_follower) | 1 collapsible_if | Collapsed nested if-let | |
| 76 | +| cylinder (sovereign_handoff) | 2: equatable_if_let, too_many_lines | `.is_ok()`, `#[allow]` with reason | |
| 77 | +| cylinder (reagent) | 6: derivable_impls, unnecessary_if_let, 3x collapsible_if, map_as_ref | `#[derive(Default)]`, flatten(), collapsed | |
| 78 | +| glowplug (swap) | 1 single_match_else | `if let ... else` | |
| 79 | +| runtime-gpu (firmware) | 1 dead_code | `#[expect]` with reason | |
| 80 | +| server (sovereign) | 1 map_unwrap_or | `map_or_else` | |
| 81 | + |
| 82 | +## Metrics |
| 83 | + |
| 84 | +| Metric | Value | |
| 85 | +|--------|-------| |
| 86 | +| Lib tests | 9,158 | |
| 87 | +| Workspace tests | 23,000+ | |
| 88 | +| JSON-RPC methods | 88+ (reagent methods added) | |
| 89 | +| Clippy warnings | 0 | |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +All toadStool Wave 53 items addressed. Zero blocking debt. |
0 commit comments