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
Copy file name to clipboardExpand all lines: DOCUMENTATION.md
+4-3Lines changed: 4 additions & 3 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 12, 2026 — S203c
3
+
**Last Updated**: April 12, 2026 — S203e
4
4
5
5
---
6
6
@@ -30,7 +30,7 @@ These root documents were **fully resolved** and **fossilized** in wateringHole
30
30
31
31
---
32
32
33
-
## Current State (S203c — April 12, 2026)
33
+
## Current State (S203e — April 12, 2026)
34
34
35
35
**Post-budding, dependency-sovereign, IPC-first, fully concurrent, capability-based.** 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
@@ -39,7 +39,8 @@ These root documents were **fully resolved** and **fossilized** in wateringHole
39
39
-**Pipeline dispatch** — `compute.dispatch.pipeline.submit` + `.status` for ordered multi-stage workloads (DAG, topological sort, result forwarding). Resolves neuralSpring PG-05.
40
40
-**Capability-based everywhere (S202)**: 0 production hardcoded primal names, 0 production mocks, 0 production unwraps, 0 TODOs/FIXMEs. All primal references use `PRIMAL_NAME` constant or capability identifiers. API keys evolved (e.g., `shader_compiler_available`).
41
41
-**TS-01 / shader compiler discovery** — `visualization_client.rs` uses unified `capability.discover` (no `CORALREEF_*` env, no coralreef-core.json, no coralreef dir scan).
42
-
-**BTSP Phase 2** — Handshake enforced on every UDS accept path (JSON-RPC + tarpc + daemon servers).
42
+
-**BTSP Phase 2 + Auto-Detect** — Handshake enforced on every UDS accept path; auto-detects plain-text clients (primalSpring) and degrades gracefully.
-**34 unsafe blocks (all in hw-safe/GPU/VFIO/display containment crates)**; all SAFETY-documented. 41 crates forbid, 6 deny `unsafe_code`.
44
45
-**ecoBin v3.0** — Zero C FFI deps. `serialport` feature-gated in specialty crate (S202). Crypto delegated to security service. HTTP delegated to coordination service.
45
46
-**Headless GPU** — `TOADSTOOL_HEADLESS=1` env var for pure headless operation. wgpu crash isolation via `catch_unwind` + thread timeout.
| Hardware transport | Implemented | DRM display, V4L2 capture, serial — frame protocol + router |
60
60
| License | AGPL-3.0-or-later -- root LICENSE file + SPDX headers on all files |
61
-
| File size limit | All production files **< 500 lines** (S203c: 14 large modules refactored via test extraction; all production files target <500 lines) |
61
+
| File size limit | All production files **< 500 lines** (S203e: 14 large modules refactored via test extraction; all production files target <500 lines) |
62
62
| Test concurrency | Unlimited parallelism (removed global throttle); zero `#[serial]`; test-time mDNS/TCP timeouts via `cfg!(test)`; zero fixed sleeps in non-chaos tests |
63
63
| Environment safety | All env-var tests use `temp_env` (thread-safe), zero `std::env::set_var` in tests |
**We are still evolving.** barraCuda (separate primal) owns all math and shaders. ToadStool focuses on hardware discovery, capability probing, and workload orchestration. All 5 spring handoffs absorbed.
-**S203e (Apr 12, 2026)**: Deep debt — 8 hardcoded network constants centralized to `core/config/defaults/network.rs` (RFC1918 scan ranges, gateway, subnet, scan suffixes, TEST-NET-3). 5 production files >550 LOC refactored via test extraction (byob_types, cross_spring_provenance, gpu_job_queue, silicon, registry). Full deep audit: zero TODO/FIXME/HACK/dbg/unwrap/set_var in production; all unsafe in containment; all mocks test-gated; all hardcoding centralized.
275
+
-**S203d (Apr 12, 2026)**: LD-04 resolution — BTSP auto-detect on UDS sockets. Plain-text clients (primalSpring `CompositionContext`) now get graceful fallback to NDJSON/HTTP on BTSP-enabled sockets. `PrependByte<S>` adapter for first-byte protocol detection. 2 env-dependent tests hardened (ephemeral port bind). +7 tests.
274
276
-**S203c (Apr 12, 2026)**: Deep debt audit + smart file refactoring. Extracted test modules from **10** production files >550 LOC (jsonrpc_server 638→391, edge/lib 636→404, policies/types 604→407, cpu_resource 596→511, power_manager 595→483, performance/mod 594→194, gpu/distributed 590→417, transport 588→308, scheduling 588→409, client/lib 586→140). Deprecated 4 internal OpenCL detection stubs. Full audit confirms: all unsafe in containment zones with SAFETY docs, all mocks test-gated, all hardcoding centralized, blake3 pure-Rust verified. Zero `Box<dyn Error>`, `.unwrap()`, or `std::env::set_var` in production. All quality gates green.
275
277
-**S203b (Apr 12, 2026)**: primalSpring LD-04/LD-05 resolution. HTTP mode evolved from single-shot to HTTP/1.1 keep-alive loop (multi-step dispatch no longer gets broken pipe). NDJSON mode resilient to blank lines. JSON-RPC and tarpc sockets separated (`compute.sock` + `compute-tarpc.sock`) — fixes internal bind collision and clears namespace for barraCuda. +7 tests.
276
278
-**S203 (Apr 12, 2026)**: Composition Elevation Sprint + Deep Debt Execution. **Dispatch wire contract standardized** — all 8 `compute.dispatch.*` handlers share canonical `{domain, operation, job_id, status, output, error, metadata}` envelope (unblocks primalSpring typed extractors for Node Atomic composition). Smart file refactoring: 4 production files >550 LOC refactored (test extraction from background 608→72, federation 594→109, encryption 568→257, runtime 576→249+stats). Primal name evolution: `get_primal_default_port` deprecated with migration to `resolve_capability_port`. Unsafe evolution: GPU buffer access evolved to `NonNull::slice_from_raw_parts` pattern. Port centralization: discovery fallback ports unified in `common/constants/discovery_ports.rs`. Clippy suppressions resolved (cast lints, unused_self). `deny.toml`: 6 stale RUSTSEC advisories removed. Wire contract documented in `specs/DISPATCH_WIRE_CONTRACT.md`. All quality gates green.
@@ -315,7 +317,7 @@ See [CHANGELOG.md](CHANGELOG.md) for full session-by-session detail.
315
317
316
318
| ID | Description | Status |
317
319
|----|-------------|--------|
318
-
| D-COV | Test coverage → 90% | Active -- 21,600+ tests (S203c); ~83.6% lib-only line (185K instrumented); remaining gap: hardware paths |
320
+
| D-COV | Test coverage → 90% | Active -- 21,600+ tests (S203e); ~83.6% lib-only line (185K instrumented); remaining gap: hardware paths |
| D-S18-002 |~~cubecl transitive `dirs-sys`~~|**RESOLVED** -- cubecl removed; dirs-sys only via wasmtime-cache (feature-gated) |
321
323
| D-BTSP-PHASE2 |~~BTSP on all UDS accept paths~~|**RESOLVED** -- S198: handshake wired in `tarpc_server.rs` and `daemon/jsonrpc_server.rs` (pure JSON-RPC already had it) |
@@ -360,7 +362,7 @@ See [DEBT.md](DEBT.md) for full register and evolution paths.
360
362
361
363
---
362
364
363
-
**Last Updated**: April 12, 2026 — S203c. **21,600+** workspace tests, 0 failures. ~83.6% lib-only line coverage (target 90%). **~67 JSON-RPC methods** with **Wire Standard L3** (cost_estimates + operation_dependencies). AGPL-3.0-or-later. Zero C FFI deps (ecoBin v3.0). **~66 unsafe blocks** (all in hw-safe/GPU/VFIO/display containment crates); **41 crates forbid, 6 deny**`unsafe_code`. IPC-first JSON-RPC (Unix sockets). Capability symlinks (`compute.sock`). Rust 1.85+ (edition 2024, MSRV). **S198**: TS-01 (`capability.discover`), BTSP Phase 2 UDS, health triad, OpenCL deprecation, module splits (<500 lines target), musl static binary, net −5K lines — quality gates green. **Capability-based discovery compliant** per `CAPABILITY_BASED_DISCOVERY_STANDARD.md` v1.2.
365
+
**Last Updated**: April 12, 2026 — S203e. **21,600+** workspace tests, 0 failures. ~83.6% lib-only line coverage (target 90%). **~67 JSON-RPC methods** with **Wire Standard L3** (cost_estimates + operation_dependencies). AGPL-3.0-or-later. Zero C FFI deps (ecoBin v3.0). **~66 unsafe blocks** (all in hw-safe/GPU/VFIO/display containment crates); **41 crates forbid, 6 deny**`unsafe_code`. IPC-first JSON-RPC (Unix sockets). Capability symlinks (`compute.sock`). Rust 1.85+ (edition 2024, MSRV). **S198**: TS-01 (`capability.discover`), BTSP Phase 2 UDS, health triad, OpenCL deprecation, module splits (<500 lines target), musl static binary, net −5K lines — quality gates green. **Capability-based discovery compliant** per `CAPABILITY_BASED_DISCOVERY_STANDARD.md` v1.2.
0 commit comments