Skip to content

Commit ba7fc3a

Browse files
BiomeOS Developercursoragent
andcommitted
clean root docs, fossilize debris, handoff — S275 Wave 49
Root docs (README, DOCUMENTATION, sporeprint) bumped to S275 with 9,149+ lib tests. toadstool.toml HTTP-era 364L config fossilized and replaced with 30L IPC-first config. Stale docs fossilized or session- tagged (PRIMAL_INTEGRATION_GUIDE, TYPES_REFERENCE, DEPLOYMENT_GUIDE, DAEMON_MODE_EVOLUTION). primal-capabilities.toml annotated with Wave 49 note. amd_metal.rs #[allow(dead_code)] → #[expect] with reason. Wave 49 handoff created for primalSpring audit. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ecb7921 commit ba7fc3a

11 files changed

Lines changed: 163 additions & 384 deletions

File tree

DOCUMENTATION.md

Lines changed: 4 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 — S273
3+
**Last Updated**: May 2026 — S275
44

55
---
66

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

3131
---
3232

33-
## Current State (S273 — May 2026)
33+
## Current State (S275 — 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-
- **23,000+ tests** (9,131+ lib-only), 0 failures, 0 clippy warnings, 0 fmt diffs. Full workspace concurrent test suite.
37+
- **23,000+ tests** (9,149+ lib-only), 0 failures, 0 clippy warnings, 0 fmt diffs. Full workspace concurrent test suite.
3838
- **88 JSON-RPC methods** (direct) + semantic registry. Wire Standard L3 (partial): `cost_estimates`, `operation_dependencies`. **Recommended caller timeout: ≥3 seconds** for health probes during startup.
3939
- **Phase C complete** (S245–S253) — toadstool-cylinder (153 .rs, 700 tests), DRM/MMIO/AMD/NVIDIA/VFIO hardware modules absorbed from `coral-driver`. `OwnedFd` VFIO fd ownership (S253). SwapOrchestrator real quiesce/persist/restore (S253). `toadstool device` CLI with swap/list/status/warm subcommands (S253). GspBridge trait boundary.
4040
- **Phase D: Sovereign dispatch validated** (S250–S263) — `try_local_dispatch()` via `ComputeDevice` trait before `coral_client` IPC forward. Full buffer lifecycle. AMD DRM dispatch live. **NV VFIO e2e dispatch validated on Titan V** (S263): warm handoff → VFIO open → channel → DMA roundtrip → GR init. Current frontier: FECS PENDING_CTX_RELOAD.
@@ -49,7 +49,7 @@ These root documents were **fully resolved** and **fossilized** in wateringHole
4949
- **46 unsafe blocks** (all in hw-safe/GPU/VFIO/display/plugin containment crates); all SAFETY-documented. Workspace `unsafe_code = "deny"`, **41 crates `forbid`**.
5050
- **Dual-socket IPC**`compute.sock` (JSON-RPC primary) + `compute-tarpc.sock` (tarpc hot-path).
5151

52-
See [CHANGELOG.md](CHANGELOG.md) for full session-by-session history (S43–S273).
52+
See [CHANGELOG.md](CHANGELOG.md) for full session-by-session history (S43–S275).
5353

5454
---
5555

README.md

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

3-
**Sovereign Compute Hardware** | Pure Rust | ecoBin | May 2026 | S273 | v0.2.0
3+
**Sovereign Compute Hardware** | Pure Rust | ecoBin | May 2026 | S275 | v0.2.0
44

55
---
66

@@ -42,7 +42,7 @@ Nest = Tower + Storage <- storage
4242
| `cargo fmt --all -- --check` | 0 diffs |
4343
| `cargo clippy --workspace --all-targets -- -D warnings` | 0 warnings |
4444
| `cargo doc --workspace --no-deps` (RUSTDOCFLAGS="-D warnings") | 0 warnings |
45-
| `cargo test --workspace` | **23,000+ tests, 0 failures** (9,131+ lib-only), **~222** ignored (hardware-gated); full workspace ~7m |
45+
| `cargo test --workspace` | **23,000+ tests, 0 failures** (9,149+ lib-only), **~222** ignored (hardware-gated); full workspace ~7m |
4646
| Doctests | All passing (common, core, server, cli, testing, display) |
4747
| Standalone clone test | Pull to any machine, `cargo test` works (GPU-optional, CPU fallback, device-lost resilient) |
4848
| `unsafe` blocks | **46 actual** (all in hw-safe/GPU/VFIO/display/plugin containment crates); all SAFETY-documented (S204, reconciled S221); workspace `unsafe_code = "deny"`, **41 crates `forbid`** + 5 hw crates with narrow `#[allow(unsafe_code, reason)]`; **all lint attrs have `reason =`** (S211+S213) |

crates/core/cylinder/src/vfio/amd_metal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ pub struct VegaInitResult {
372372
/// to AMD GCN/CDNA hardware with completely different register semantics.
373373
#[derive(Debug)]
374374
pub struct VegaInit {
375-
#[allow(dead_code)]
375+
#[expect(dead_code, reason = "BDF stored for future AMD metal init pipeline")]
376376
bdf: Option<String>,
377377
}
378378

docs/architecture/DAEMON_MODE_EVOLUTION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
> That proposal was for the HTTP-based daemon. The daemon is now fully IPC-first
77
> (JSON-RPC 2.0 over Unix sockets) as of S169.
88
9-
## Current Architecture (S170→S263)
9+
## Current Architecture (S170→S275)
1010

1111
```
1212
toadstool daemon start

docs/guides/PRIMAL_INTEGRATION_GUIDE.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# 🔗 Primal Integration Guide
22

3+
> **FOSSIL (S275).** This guide predates the S273 capability-based migration. Primal
4+
> integration is now capability-first — primals discover each other by capability at
5+
> runtime, not by name. BearDog/SongBird/NestGate names below are legacy references.
6+
> See `CAPABILITY_BASED_DISCOVERY_STANDARD.md` v1.2 for current patterns.
7+
38
**Date**: January 14, 2026
4-
**Status**: **ACTIVE**
5-
**Purpose**: Runtime integration with ecoPrimals and external systems
9+
**Status**: 📦 **FOSSILIZED** (Wave 49)
10+
**Purpose**: Runtime integration with ecoPrimals and external systems (historical)
611

712
---
813

docs/reference/PRODUCTION_DEPLOYMENT_GUIDE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@
99
## Current Deployment
1010

1111
ToadStool is a single binary (`toadstool`) following the UniBin standard.
12+
Distributed via **plasmidBin** depot (post-primordial mandate, Wave 49).
1213

1314
### Environment Variables
1415

1516
| Variable | Purpose | Default |
1617
|----------|---------|---------|
1718
| `XDG_RUNTIME_DIR` | Socket directory | `/run/user/$UID` |
18-
| `TOADSTOOL_DAEMON_API_PORT` | Optional TCP port (0 = OS-assigned) | `0` |
19-
| `COORDINATION_PORT` | Songbird capability port | `8080` |
20-
| `SECURITY_PORT` | BearDog capability port | `8082` |
21-
| `STORAGE_PORT` | NestGate capability port | `8083` |
19+
| `TOADSTOOL_SOCKET` | Override JSON-RPC socket path | biomeOS convention |
20+
| `TOADSTOOL_DEPLOYMENT_MODEL` | `multi` / `rental` for multi-tenant GPU scheduling | unset (LocalDirect) |
21+
| `TOADSTOOL_STANDALONE` | `1` to skip distributed coordinator | unset (distributed) |
22+
| `TOADSTOOL_FAMILY_ID` | Family ID for BTSP production mode | unset (development) |
2223

2324
### Running
2425

docs/reference/TYPES_REFERENCE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# ToadStool Types Reference Guide
22
## Canonical Type Definitions and Usage Patterns
33

4-
**Last Updated**: April 2026 — S177
5-
**Status**: Production-Ready
4+
**Last Updated**: April 2026 — S177 (fossilized S275)
5+
**Status**: 📦 Reference — types are canonical but session tag is historical
66

77
---
88

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# toadStool S275 — Wave 49: Ecosystem Tightening
2+
3+
**Date**: May 25, 2026
4+
**Session**: S275
5+
**From**: toadStool team
6+
**To**: primalSpring (downstream audit)
7+
**Audit**: primalSpring Wave 49 — ecosystem tightening (3 vectors + startup debt)
8+
9+
---
10+
11+
## Summary
12+
13+
All three Wave 49 cleanup vectors resolved. Startup latency pipeline debt
14+
addressed with deferred wgpu GPU enumeration and pre-bound socket optimization.
15+
16+
## Vector A — Stale Deploy Patterns (High — correctness)
17+
18+
| File | Change |
19+
|------|--------|
20+
| `.cargo/config.toml` | `target/release/toadstool` ref → plasmidBin wording |
21+
| `docs/guides/AKIDA_DRIVER_DEPLOYMENT.md` | `target/release/toadstool` Dockerfile → plasmidBin depot |
22+
| `crates/cli/README.md` | `cargo install toadstool-cli` → plasmidBin depot docs |
23+
| `scripts/install-akida-driver.sh` | Prefers plasmidBin depot binary, falls back to local build |
24+
25+
No `which toadstool` patterns found. `notify-plasmidbin.yml` confirmed active.
26+
27+
## Vector B — wateringHole Consolidation (Medium)
28+
29+
36 local handoffs mirrored to central `infra/wateringHole/`:
30+
31+
- **8 active** (S267–S274) → `handoffs/`
32+
- **28 historical** (S243–S266) → `handoffs/archive/`
33+
34+
Local handoffs remain as canonical source.
35+
36+
## Vector C — Showcase Fossilization (Low)
37+
38+
35 files (8 progressive API demos, 2 levels) archived to
39+
`fossilRecord/primals/toadStool/showcase_wave49/`. `showcase/` replaced
40+
with pointer README.
41+
42+
## Pipeline Debt — Startup Latency (>8s → ~3s)
43+
44+
### Root cause
45+
46+
`create_executor()` ran **before** socket bind, with wgpu GPU enumeration
47+
(1–5s Vulkan driver init) and mDNS coordination discovery (3s) on the
48+
critical path.
49+
50+
### Fix: deferred wgpu + pre-bound socket
51+
52+
1. **Deferred wgpu GPU enumeration**`query_local_capabilities()` now
53+
returns a fast baseline (cpu, memory, orchestration) immediately and
54+
spawns wgpu enumeration in a background `tokio::spawn`. Full GPU
55+
capabilities populate the `OnceLock` asynchronously. Saves 1–5s.
56+
57+
2. **Pre-bound JSON-RPC socket**`prebind_unix_listener()` binds the
58+
socket before `create_executor()` runs. `serve_unix_prebound()` accepts
59+
the pre-bound listener. Health probes can connect during init.
60+
61+
3. Default `LocalDirect` deployment: no orchestrator overhead.
62+
63+
### New public API
64+
65+
- `prebind_unix_listener(path) → UnixListener`
66+
- `serve_unix_prebound(handler, listener)`
67+
- `start_servers_with_fallback(..., jsonrpc_listener: Option<UnixListener>)`
68+
69+
## Additional Cleanup (S275)
70+
71+
| Item | Action |
72+
|------|--------|
73+
| `toadstool.toml` | HTTP-era 364-line template fossilized → `toadstool_wave49.toml`; replaced with 30-line IPC-first config |
74+
| `primal-capabilities.toml` | Added Wave 49 note: legacy primal name sections are reference only |
75+
| `docs/guides/PRIMAL_INTEGRATION_GUIDE.md` | Fossilized (S275) — predates S273 capability migration |
76+
| `docs/reference/PRODUCTION_DEPLOYMENT_GUIDE.md` | Env vars updated to IPC-first (removed Songbird/BearDog/NestGate ports) |
77+
| `docs/reference/TYPES_REFERENCE.md` | Session tag updated to reflect historical status |
78+
| `docs/architecture/DAEMON_MODE_EVOLUTION.md` | Session range updated to S275 |
79+
| `crates/core/cylinder/src/vfio/amd_metal.rs` | `#[allow(dead_code)]``#[expect(dead_code, reason)]` |
80+
81+
## Verification Checklist
82+
83+
- [x] No `showcase/` directory (pointer README only)
84+
- [x] Local `wateringHole/` active handoffs mirrored to `infra/wateringHole/handoffs/`
85+
- [x] No `which toadstool` or `target/release/toadstool` in scripts
86+
- [x] `notify-plasmidbin.yml` active in `.github/workflows/`
87+
- [x] Production TODO/FIXME/HACK: 0
88+
- [x] `toadstool.toml` HTTP-era template fossilized
89+
90+
## Metrics
91+
92+
| Metric | Value |
93+
|--------|-------|
94+
| Lib tests | 9,149+ |
95+
| Workspace tests | 23,000+ |
96+
| JSON-RPC methods | 88 |
97+
| Clippy warnings | 0 |
98+
| Showcase files archived | 35 |
99+
| Handoffs mirrored to central | 36 (8 active + 28 archive) |
100+
| Stale deploy refs fixed | 4 |
101+
102+
---
103+
104+
Ready for downstream primalSpring audit.

primal-capabilities.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
# Usage:
77
# let services = discovery.find_by_capability("cryptographic-operations").await?;
88
# // No hardcoded "beardog" - discovered by capability!
9+
#
10+
# NOTE (Wave 49, S275): External primal sections below (beardog, songbird, nestgate, etc.)
11+
# use legacy primal names and HTTP/gRPC protocols from pre-IPC era. These are retained
12+
# as reference for capability *names* only. Actual discovery is now via Unix socket
13+
# capability-based lookup. See CAPABILITY_BASED_DISCOVERY_STANDARD.md v1.2.
914

1015
[registry]
1116
version = "1.0.0"

sporeprint/validation-summary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title = "ToadStool Validation Summary"
3-
description = "Sovereign compute hardware primal — 9,131+ lib tests, 88 JSON-RPC methods, 47 crates, VFIO GPU init pipeline, v0.2.0"
4-
date = 2026-05-24
3+
description = "Sovereign compute hardware primal — 9,149+ lib tests, 88 JSON-RPC methods, 47 crates, VFIO GPU init pipeline, v0.2.0"
4+
date = 2026-05-25
55

66
[taxonomies]
77
primals = ["toadstool"]
@@ -10,8 +10,8 @@ springs = ["hotspring", "wetspring", "airspring", "groundspring", "neuralspring"
1010

1111
## Status
1212

13-
- **Version**: 0.2.0 (Session S273, May 24, 2026)
14-
- **Lib tests**: 9,131+ (0 failures, unlimited parallelism)
13+
- **Version**: 0.2.0 (Session S275, May 25, 2026)
14+
- **Lib tests**: 9,149+ (0 failures, unlimited parallelism)
1515
- **Workspace tests**: 23,000+ (0 failures, ~222 hardware-gated ignores)
1616
- **JSON-RPC methods**: 88 (direct) + semantic registry aliases
1717
- **Workspace crates**: 47

0 commit comments

Comments
 (0)