Skip to content

Commit 1425a27

Browse files
BiomeOS Developercursoragent
andcommitted
docs: S221 handoff, DOCUMENTATION.md → S221, fix stale spec links
- Create S221 handoff (capability names, dep hygiene, stub evolution, coverage) - Update DOCUMENTATION.md: S219→S221, test count 22,538→22,580, unsafe 49→46, add S220/S221 session summaries - Fix broken links in specs/README.md and SOVEREIGN_COMPUTE_EVOLUTION.md: SOVEREIGN_COMPUTE_GAPS.md fossilized S166, wateringHole quick links updated to fossil record paths - Clean 3 orphan showcase dirs (01-songbird, 02-beardog, 03-nestgate) — untracked build debris from renames, no git content lost Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 82a53e7 commit 1425a27

4 files changed

Lines changed: 91 additions & 9 deletions

File tree

DOCUMENTATION.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ToadStool Documentation Hub
22

3-
**Last Updated**: May 2026 — S219
3+
**Last Updated**: May 2026 — S221
44

55
---
66

@@ -30,11 +30,11 @@ These root documents were **fully resolved** and **fossilized** in wateringHole
3030

3131
---
3232

33-
## Current State (S219 — May 2026)
33+
## Current State (S221 — May 2026)
3434

3535
**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.
3636

37-
- **22,538 tests** (7,842+ lib-only), 0 failures, 0 clippy warnings, 0 fmt diffs. Full workspace concurrent test suite.
37+
- **22,580 tests** (7,842+ lib-only), 0 failures, 0 clippy warnings, 0 fmt diffs. Full workspace concurrent test suite.
3838
- **65 JSON-RPC methods** (incl. `compute.execute` direct route S203f). Wire Standard L3 (partial): `cost_estimates`, `operation_dependencies`. IPC compliant (`health.liveness``{"status":"alive"}`, `health.readiness` → ready+version, `health.check` full envelope, `capabilities.list`, `identity.get`).
3939
- **Dual-socket IPC**`compute.sock` (JSON-RPC primary, biomeOS routes here) + `compute-tarpc.sock` (tarpc hot-path). Override: `TOADSTOOL_SOCKET` / `TOADSTOOL_TARPC_SOCKET`. Family: `compute-{fid}.sock` / `compute-{fid}-tarpc.sock`.
4040
- **Pipeline dispatch**`compute.dispatch.pipeline.submit` + `.status` for ordered multi-stage workloads (DAG, topological sort, result forwarding). Resolves neuralSpring PG-05.
@@ -44,7 +44,7 @@ These root documents were **fully resolved** and **fossilized** in wateringHole
4444
- **BTSP Phase 2 + JSON-line relay (S176)** — Handshake enforced on every UDS accept path; auto-detects plain-text clients (primalSpring) and degrades gracefully. JSON-line BTSP auto-detection on `0x7B` path routes `"protocol":"btsp"` to `relay_json_line_handshake()` (4-step BearDog IPC relay). Family seed loading via `load_family_seed_for_btsp()` (env→file cascade).
4545
- **async-trait DEPRECATED** (S203r) — fully removed and banned in `deny.toml`. All ~91 annotations evolved to manual `Pin<Box<dyn Future>>` (dyn-dispatched) or native AFIT (non-dyn), and subsequently enum dispatch + RPITIT (S203s). Zero runtime behavior change. Transitive only via axum/config/wiggle.
4646
- **`deny.toml` ring ban active** — ecoBin v3 compliant. `ring` absent from lockfile.
47-
- **49 unsafe blocks (all in hw-safe/GPU/VFIO/display/plugin containment crates)**; all SAFETY-documented (S204: ffi\_loader.rs gap closed). Workspace `unsafe_code = "deny"`, **41 crates `forbid`** + 5 hw crates with narrow `#[allow(unsafe_code, reason)]`. All lint attrs have `reason =` (S211+S213).
47+
- **46 unsafe blocks (all in hw-safe/GPU/VFIO/display/plugin containment crates)**; all SAFETY-documented (S204: ffi\_loader.rs gap closed, S221: count reconciled 49→46). Workspace `unsafe_code = "deny"`, **41 crates `forbid`** + 5 hw crates with narrow `#[allow(unsafe_code, reason)]`. All lint attrs have `reason =` (S211+S213).
4848
- **Encrypted compute dispatch (S205)** — payloads encrypted via Tower `crypto.encrypt` before dispatch, decrypted on result return. `DISCOVERY_SOCKET` wired as highest-precedence capability resolution tier.
4949
- **Dep hygiene (S206)**`humantime-serde`, `rand`, `tokio-util`, `temp-env` unified to workspace. GPU `spirv`/`jit`/`testing` stale features removed. `test-mocks` removed from core default features.
5050
- **Coverage push (S212)**~100 new inline tests across 10 previously-untested files (server handlers, CLI collectors, platform monitoring, auto_config, distributed security). 1,004 new test lines.
@@ -55,6 +55,8 @@ These root documents were **fully resolved** and **fossilized** in wateringHole
5555
- **BTSP Phase 3 transport switch verified (S218)** — Closed primalSpring audit: negotiate→encrypted framing transition confirmed correct. 15 new E2E tests. BufReader pipelining hazard documented. NegotiateOutcome key redaction.
5656
- **Flaky test fix (S217+S218)**`primal_sockets` convenience API tests isolated with `temp_env::with_vars` — zero env-var race conditions in parallel workspace runs. 6 additional discovery tests wrapped.
5757
- **Orphan module recovery (S217)** — 6 dead-code modules in `integration-primals` wired into module tree (error, client, orchestrator, services, manifest, types). 35+ new tests.
58+
- **primalSpring Phase 58 audit response (S220)** — Phase 3 encryption confirmed resolved. +22 tests (wasm metrics, stub runtime engine, os layer manager, container engine). OSLayerManager fallback evolved to `ToadStoolError::not_supported`.
59+
- **Capability names + dep hygiene (S221)** — All `barraCuda/coralReef` hardcoded primal refs evolved to capability-based language (`gpu.dispatch.opencl capability provider`). `reqwest` 0.12→0.13 removes `ring` from dep graph. `verify_migration_success` dead code fixed. Unsafe count reconciled (49→46). +20 tests (daemon routes, zero-config).
5860
- **Edge discovery evolved (S203m)** — USB via `/sys/bus/usb/devices/`, Bluetooth via sysfs adapter enumeration, IPv6 via `/proc/net/if_inet6`. All gracefully degrade on non-Linux.
5961
- **Scheduler queuing (S203m)**`schedule_job``UniversalJobQueue::add_job` inserts into per-priority queues (was metadata-only). `schedule_local_job` logs post-enqueue telemetry.
6062
- **Hardcoding sweep (S203m–p)** — sysfs/procfs paths centralized to `platform_paths`; all `TOADSTOOL_*` env var literals interned to `socket_env` constants (~55 new in S203p). `env_overrides` subsystem fully converted.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# ToadStool S221 — Deep Debt: Capability Names + Dep Hygiene + Stub Evolution + Coverage
2+
3+
**Date**: May 4, 2026
4+
**Session**: S221
5+
6+
---
7+
8+
## Summary
9+
10+
Comprehensive deep-debt sweep targeting hardcoded primal names, dependency
11+
hygiene, production stub dead code, unsafe audit reconciliation, and test
12+
coverage expansion.
13+
14+
---
15+
16+
## Changes
17+
18+
### 1. Hardcoded Primal Names → Capability-Based (10 files)
19+
20+
All `barraCuda/coralReef` references in production error messages, deprecation
21+
attributes, and doc comments evolved to capability-based language
22+
(`gpu.dispatch.opencl capability provider via IPC`).
23+
24+
Files: `gpu/compiler.rs`, `gpu/engine/init.rs`, `gpu/types.rs`,
25+
`gpu/unified_memory/manager.rs`, `gpu/unified_memory/types.rs`,
26+
`distributed/universal/types/specialized.rs`, `core/toadstool/workload/types.rs`,
27+
`auto_config/hardware/gpu.rs`, `cli/zero_config/types.rs`,
28+
`cli/utils/error_formatting.rs`.
29+
30+
Self-references to `toadStool` remain correct (primal knows its own identity).
31+
32+
### 2. Dependency Hygiene: reqwest 0.12 → 0.13
33+
34+
`toadstool-runtime-edge` upgraded `reqwest` from 0.12 to 0.13. The 0.13 release
35+
defaults to `aws-lc-rs` instead of `ring` as the rustls crypto provider. `ring`
36+
is no longer in the resolved workspace dependency graph, aligning with the
37+
`deny.toml` ring ban.
38+
39+
### 3. Production Stub Evolution: Migration Dead Code
40+
41+
`verify_migration_success` was always returning `Ok(true)`, making the failure
42+
branch in `execute_live_migration` dead code. Evolved to return `Ok(false)` with
43+
a `tracing::warn` about unimplemented verification. The failure path is now live
44+
and honest.
45+
46+
### 4. Unsafe Audit Reconciliation: 49 → 46
47+
48+
Literal `unsafe {}` block count is **46** (not 49 as documented since S216).
49+
All are kernel FFI / mmap / ioctl / volatile MMIO / plugin loading. All
50+
SAFETY-documented. None replaceable with safe Rust without performance loss.
51+
Updated across DEBT.md, README.md, CONTEXT.md, NEXT_STEPS.md.
52+
53+
### 5. Coverage Push: +20 Tests
54+
55+
- `cli/daemon/routes.rs`: 11 new unit tests (identity.get, health aliases,
56+
metrics, get/delete workload params, unknown method, invalid JSON-RPC version)
57+
- `cli/zero_config/configuration.rs`: 9 new tests with `temp_env::async_with_vars`
58+
(biome CPU scaling, runtime docker/cuda, security/network/storage provider env gates)
59+
60+
---
61+
62+
## Quality Gates
63+
64+
| Gate | Status |
65+
|------|--------|
66+
| `cargo test --workspace` | **22,580 tests, 0 failures** |
67+
| `cargo build --workspace` | Clean |
68+
| `cargo clippy --workspace` | 0 new warnings |
69+
| `cargo fmt --all --check` | 0 diffs |
70+
71+
---
72+
73+
## Files Modified (18)
74+
75+
- 10 GPU/distributed/core/cli files: primal name → capability language
76+
- `crates/runtime/edge/Cargo.toml`: reqwest 0.12 → 0.13
77+
- `crates/cli/src/universal/operations/migration.rs`: dead code fix
78+
- `crates/cli/src/daemon/routes.rs`: +11 tests
79+
- `crates/cli/src/zero_config/configuration.rs`: +9 tests
80+
- Root docs: DEBT.md, README.md, CONTEXT.md, NEXT_STEPS.md

specs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ gap closure, performance surface database. See `ALL_SILICON_PIPELINE.md`.
164164
| **[BARRACUDA_PRIMAL_BUDDING.md](./BARRACUDA_PRIMAL_BUDDING.md)** | barraCuda budding — fully untangled, zero cross-deps | **Mar 3** | ✅ Phase 5 Complete |
165165
| **[ARCHITECTURE_DEMARCATION.md](./ARCHITECTURE_DEMARCATION.md)** | 4-layer chain: barraCuda → coralReef → toadStool + songBird (wire) | **Mar 12** | 🔄 Active |
166166

167-
**Tracker**: [`../SOVEREIGN_COMPUTE_GAPS.md`](../SOVEREIGN_COMPUTE_GAPS.md) — remaining work before proceeding
167+
**Tracker**: Fossilized as `ecoPrimals/infra/wateringHole/fossilRecord/toadstool/TOADSTOOL_SOVEREIGN_COMPUTE_GAPS_S166.md` — remaining gaps tracked in [`../DEBT.md`](../DEBT.md)
168168

169169
### Performance & Evolution
170170

@@ -376,10 +376,10 @@ to complete implementations. External C dependencies evolve to pure Rust.
376376

377377
- **Immediate work:** `../NEXT_STEPS.md`
378378
- **Debt register:** `../DEBT.md`
379-
- **Sovereign gaps:** `../SOVEREIGN_COMPUTE_GAPS.md`
379+
- **Sovereign gaps:** Fossilized — `ecoPrimals/infra/wateringHole/fossilRecord/toadstool/TOADSTOOL_SOVEREIGN_COMPUTE_GAPS_S166.md`
380380
- **Architecture docs:** `docs/architecture/`
381381
- **Hardware traits:** `crates/toadstool-core/src/` (NpuDispatch, NpuParameterController)
382382
- **GPU backends:** `crates/runtime/universal/src/backends/`
383383
- **Tests:** `cargo test --workspace`
384-
- **Leverage guide:** `wateringHole/TOADSTOOL_LEVERAGE_GUIDE.md`
385-
- **All-silicon plan:** `wateringHole/GPU_FIXED_FUNCTION_SCIENCE_REPURPOSING.md`
384+
- **Leverage guide:** Fossilized — `ecoPrimals/infra/wateringHole/fossilRecord/toadstool/TOADSTOOL_LEVERAGE_GUIDE_S166.md`
385+
- **All-silicon plan:** Fossilized — `ecoPrimals/infra/wateringHole/fossilRecord/toadstool/GPU_FIXED_FUNCTION_SCIENCE_REPURPOSING_S166.md`

specs/SOVEREIGN_COMPUTE_EVOLUTION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ toadStool (interface) coralReef (transport)
440440

441441
### Remaining Phase 5 Gaps (toadStool side)
442442

443-
See `../SOVEREIGN_COMPUTE_GAPS.md` for full tracker.
443+
See `../DEBT.md` for active gap tracking (sovereign compute gaps fossilized as `ecoPrimals/infra/wateringHole/fossilRecord/toadstool/TOADSTOOL_SOVEREIGN_COMPUTE_GAPS_S166.md`).
444444

445445
- Multi-arch register classification (AMD, Intel alongside NVIDIA)
446446
- Unified PCI discovery (single scanner for GPU + NPU)

0 commit comments

Comments
 (0)