You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Evolved CUDA "not implemented" to typed `ToadStoolError::runtime` with alternatives
16
+
17
+
#### Phase 2: Hardcoding → capability-based
18
+
- Created `CapabilityDomain` enum (7 variants: Security, Coordination, Storage, Compute, Routing, Intelligence, Monitoring) with `from_label()` for legacy primal name resolution
19
+
- Replaced ~30 hardcoded primal name sites across `capability_helpers.rs`, `paths.rs`, `ecosystem/types.rs`
`monitor_deployment_health` and `perform_health_check` are complete implementations
33
-
but not yet wired into a production background loop. Phase 2+ integration.
27
+
### D-LOCKED-MEMORY — RESOLVED S172
28
+
Created `LockedMemory` RAII type in `hw-safe` composing `AlignedAlloc` + `rustix::mm::mlock`/`munlock`. Includes `Send`/`Sync`, `Drop`-based `munlock`, page-aligned convenience constructor. 5 tests.
29
+
30
+
### D-BYOB-HEALTH-LOOP — RESOLVED S172
31
+
Wired `monitor_deployment_health` into a background `tokio::spawn` task. Added `health_handles: Arc<RwLock<HashMap<Uuid, JoinHandle<()>>>>` to `ByobComputeExecutor`. `deploy_biome` spawns health monitor; `stop_deployment` aborts it.
32
+
33
+
### Deep debt evolution (S172 Plan)
34
+
-**D-IOCTL-TYPED-S172**: Replaced generic ioctl dispatch in `nvpmu/vfio.rs` with typed helper functions for stronger compile-time safety.
35
+
-**D-LOCKED-MEMORY-S172**: Created `LockedMemory` RAII type in `hw-safe` composing `AlignedAlloc` + `mlock`/`munlock`.
36
+
-**D-BYOB-HEALTH-S172**: Wired `monitor_deployment_health` into background `tokio::spawn` task with `JoinHandle` tracking.
37
+
-**D-EMBEDDED-EVOLVE-S172**: Evolved embedded placeholder macros with clearer feature gating (`embedded-placeholder-impls` vs `embedded-hw`).
38
+
39
+
### Production stubs evolved
40
+
-**D-STUBS-DISTRIBUTED-S172**: Evolved 6 production stubs in `distributed/` to real implementations: `validate_delegation_proof` (crypto_lock), `CachedResult` with TTL (crypto_lock cache), `CloudCostTracker`/`CloudPerformanceTracker` (cloud scheduling), `update_node_health` (songbird registry), `UniversalJobProcessor` with `new()` constructor.
-**D-CUDA-ERRORS-S172**: Evolved CUDA "not implemented" runtime error to typed `ToadStoolError::runtime` with operation name and alternative suggestions.
43
+
44
+
### Hardcoding elimination
45
+
-**D-CAPABILITY-DOMAIN-S172**: Created `CapabilityDomain` enum with 7 variants (Security, Coordination, Storage, Compute, Routing, Intelligence, Monitoring). `from_label()` resolves legacy primal names. Replaced ~30 hardcoded primal name sites across `capability_helpers.rs`, `paths.rs`, `ecosystem/types.rs`.
46
+
-**D-SYSFS-DISCOVERY-S172**: Routed hardcoded `/dev/dri/card0` and PCI BDF paths through `toadstool_sysmon::gpu::discover_gpus()` and `GpuDevice::card_path()`. Hostname resolution via new `toadstool_sysmon::system::hostname()`.
47
+
-**D-FALLBACK-PORTS-S172**: Migrated legacy fallback port constants to `resolve_env_port()` helper in `primal_discovery_complete`.
48
+
49
+
### Unsafe reduction
50
+
-**D-MEMMAP2-S172**: Replaced hand-rolled `rustix::mm::mmap`/`munmap` in `hw-safe/safe_mmap.rs` with `memmap2::MmapRaw`. Eliminated 4 unsafe blocks (mmap syscall ×2, manual munmap Drop, unsafe Send/Sync impls). Only 1 irreducible unsafe remains (`VolatileMmio::new`).
| D-SOV |~~Sovereignty: primal-name → capability~~|**RESOLVED S94b**| All production callers migrated to `get_socket_path_for_capability()`. Deprecated definitions retained for fallback only. |
415
441
| D-WC |~~Wildcard re-exports remaining~~|**RESOLVED S132**| 4 high-traffic crates narrowed to explicit exports (constants, distributed, ipc, universal_adapter). Remaining wildcards justified (15+ items all used, or private submodule re-exports). |
Copy file name to clipboardExpand all lines: DOCUMENTATION.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ToadStool Documentation Hub
2
2
3
-
**Last Updated**: April 1, 2026 — S171
3
+
**Last Updated**: April 2, 2026 — S172
4
4
5
5
---
6
6
@@ -30,14 +30,15 @@ These root documents were **fully resolved** and **fossilized** in wateringHole
30
30
31
31
---
32
32
33
-
## Current State (S171 — April 1, 2026)
33
+
## Current State (S172 — April 2, 2026)
34
34
35
35
**Post-budding, dependency-sovereign, IPC-first, fully concurrent.** barraCuda is a separate primal at `ecoPrimals/barraCuda/`. ToadStool is the hardware infrastructure layer — GPU/NPU/CPU discovery, capability probing, workload orchestration, and shader dispatch.
36
36
37
-
-**21,700+ tests**, 0 failures, 0 clippy warnings. Full workspace concurrent test suite.
37
+
-**21,500+ tests**, 0 failures, 0 clippy warnings. Full workspace concurrent test suite.
38
38
-**~65 JSON-RPC methods**. IPC compliant (`health.liveness/readiness/check`, `capabilities.list`, socket at `$XDG_RUNTIME_DIR/biomeos/toadstool.sock`).
0 commit comments