Skip to content

Commit e7077a6

Browse files
committed
feat(fleet): add relay custody and resilient transport
1 parent 8f7058b commit e7077a6

13 files changed

Lines changed: 1603 additions & 97 deletions

docs/SYSTEMS_CATALOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ _Verified 2026-06-16: `scbe -V` → `scbe 4.2.1`; CLI smoke green; wheel install
6262
- **M-TEF research packet**`docs/research/mtef_research_compendium_2026-06-17.md`
6363
and the linked PDF preserve the Magneto-Triboelectric Fluid Cell literature synthesis.
6464
Treat it as concept/prototype evidence, not proof of a working device.
65+
- **Magnetic pocket routing / wafer boundary**
66+
`docs/specs/MAGNETIC_POCKET_ROUTING_WAFER_RESEARCH_20260919.md` maps the existing
67+
magnetic-logic, ferrofluid-control, and wafer-router work to published physical-computing
68+
results and a gated tabletop-to-chip validation ladder.
6569
- **Space life-support animals packet**
6670
`docs/research/space_life_support_animals_husbandry_energy_2026-06-17.md` captures the
6771
animal-husbandry / micro-energy idea as an Idea Seed with required source, welfare,

docs/specs/FLEET_COMPOSITION_COORDINATION.md

Lines changed: 94 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,13 @@ Every governance check and every candidate assessment is billed. This avoids
8787
the execution-accounting error where a router evaluates many candidates but
8888
charges one operation.
8989

90-
The stress matrix uses nominal links, delay and reorder, duplicate delivery,
91-
loss with custody retransmission, blackout with custody, and permanent loss
92-
without custody. Duplicate bundles are deduplicated. Custody-backed loss must
93-
converge; permanent loss without custody must report divergence.
90+
The stress matrix uses seven conditions: nominal links, delay and reorder,
91+
duplicate delivery, loss with custody retransmission, a round-trip-dependent
92+
blackout control, the same blackout with pre-synchronized local autonomy and
93+
store-carry-forward custody, and permanent loss without custody. Duplicate
94+
bundles are deduplicated. Custody-backed loss must converge; permanent loss
95+
without custody must report divergence. Every eighth task is marked as truly
96+
remote and still requires the live link in both blackout conditions.
9497

9598
## Measured result
9699

@@ -100,44 +103,107 @@ Command:
100103
npm run benchmark:fleet-composition -- --tasks 180 --seeds 7,11,19,23,31,43,59,71,83
101104
```
102105

103-
This produces 270 runs: nine seeds, six network conditions, and five policies.
106+
This produces 315 runs: nine seeds, seven network conditions, and five policies.
104107

105108
| Policy | Completion | Cost per completed task | Mean transition stability | Churn | Capability misses |
106109
| --- | ---: | ---: | ---: | ---: | ---: |
107-
| sticky | 0.7943 | 77.9297 | 0.3756 | 0.0168 | 1.8704 |
108-
| distance | 0.7923 | 78.6584 | 0.0500 | 0.0056 | 2.8333 |
109-
| composition-aware | 0.7305 | 46.7603 | 0.6860 | 0.5134 | 0.0000 |
110-
| stability-guarded | 0.7869 | 61.1286 | 0.8360 | 0.2484 | 0.0000 |
111-
| round-robin | 0.4195 | 133.7831 | 0.5831 | 0.8994 | 67.1296 |
110+
| sticky | 0.7543 | 126.6063 | 0.3756 | 0.0168 | 1.8889 |
111+
| distance | 0.7525 | 128.1181 | 0.0500 | 0.0056 | 2.8571 |
112+
| composition-aware | 0.7014 | 79.1857 | 0.6871 | 0.5063 | 0.0000 |
113+
| stability-guarded | 0.7508 | 99.8604 | 0.8302 | 0.2489 | 0.0000 |
114+
| round-robin | 0.4113 | 277.5470 | 0.5831 | 0.8994 | 67.8254 |
112115

113116
The aggregate claim is **NO_LIFT** under the repository rule requiring the
114117
custom arm's completion delta to exceed twice pooled sample standard deviation
115118
against both controls. Stability guarding reduced cost per completed task by
116-
about 21.6% versus sticky and 22.3% versus distance, while completion was 0.74
117-
and 0.53 percentage points lower, respectively. Those cost effects are
118-
underpowered across the mixed scenarios. Compared with unguarded adaptive
119-
routing, the guard cut churn by about 51.6% and raised mean transition stability
120-
from 0.6860 to 0.8360.
119+
about 21.1% versus sticky and 22.1% versus distance, while completion was 0.35
120+
and 0.17 percentage points lower, respectively. Those aggregate cost effects
121+
remain underpowered across the mixed scenarios. Compared with unguarded
122+
adaptive routing, the guard cut churn by about 50.8% and raised mean transition
123+
stability from 0.6871 to 0.8302.
121124

122125
The measured result supports continued engineering, not a superiority claim.
123126

124-
Across nominal, delay/reorder, duplicate, and loss-with-custody scenarios, the
125-
guarded policy completed 0.9358 of tasks at a cost near 50.65 per completion;
126-
the two controls completed roughly 0.9370 to 0.9395 at costs from 66.22 to
127-
66.84. Blackout exposed the largest completion gap: 0.4247 for the guarded arm
128-
versus 0.4549 to 0.4568 for the controls. Under permanent loss without custody,
129-
all policies correctly reported state divergence. Scenario-specific effects and
130-
their uncertainty gates are retained in the JSON benchmark receipt.
127+
Under permanent loss without custody, all policies correctly reported state
128+
divergence. Scenario-specific effects and their uncertainty gates are retained
129+
in the JSON benchmark receipt.
130+
131+
## Mars relay blackout ablation
132+
133+
The blackout comparison changes one architectural assumption while keeping the
134+
task stream, loss, delay, reordering, custody, seeds, and policies paired. In the
135+
control, every task waits for the remote round trip. In the relay condition,
136+
157 of 180 tasks per seed are already authorized for local execution and their
137+
receipts are buffered; the remaining 23 tasks still need the remote link.
138+
139+
| Policy | Round-trip completion | Relay completion | Completion delta | Round-trip cost | Relay cost |
140+
| --- | ---: | ---: | ---: | ---: | ---: |
141+
| sticky | 0.1321 | 0.8389 | +0.7068 | 481.0277 | 74.2911 |
142+
| distance | 0.1315 | 0.8370 | +0.7056 | 488.0270 | 74.9010 |
143+
| composition-aware | 0.1148 | 0.7815 | +0.6667 | 326.9579 | 42.4208 |
144+
| stability-guarded | 0.1253 | 0.8333 | +0.7080 | 387.9293 | 57.0642 |
145+
| round-robin | 0.0395 | 0.4759 | +0.4364 | 1362.4905 | 101.9915 |
146+
147+
Every policy cleared the two-pooled-standard-deviation threshold for completion,
148+
cost, and deadline misses, so the architecture ablation is **SUPPORTED** in this
149+
simulation. For the stability-guarded policy, mean deadline misses fell from
150+
156.0 to 19.56. This is evidence for pre-synchronized local autonomy plus
151+
custody, not for a physical Mars link. The 14 blackout ticks are normalized
152+
stress units; they do not claim fourteen Earth days, RF throughput, hardware
153+
reliability, or deployment security.
154+
155+
## Multiplexed transport boundary
156+
157+
The six tongues, harmonic frequencies, and reversible views can form a useful
158+
transport braid when their jobs stay explicit:
159+
160+
1. Assemble commands into the canonical semantic opcode tape.
161+
2. Compress repeated structure with a declared lossless codec or shared
162+
codebook.
163+
3. Authenticate and encrypt with a standard signed/AEAD or PQC envelope.
164+
4. Add erasure coding, then assign shards to tongue/frequency lanes.
165+
5. Treat forward, reverse, complement, palindrome, spatial, or audio forms as
166+
bijective representations and independent checks only when exact decoding is
167+
tested.
168+
6. Reconstruct, authenticate, govern, and only then execute.
169+
170+
The repository already proves byte-to-token round trips in all six tongues,
171+
compact semantic-opcode assembly, and a separate FSK audio prototype. These
172+
pieces do not create free channel capacity. Ten arbitrary commands still require
173+
enough source entropy unless both ends share a codebook. A palindrome repeats
174+
the same symbols; two independent meanings require orientation-specific
175+
decoders or additional symbols. Spatial negative-space readings are suitable
176+
for human display or steganographic experiments, but not as an authoritative
177+
machine-command lane because ordinary reformatting can destroy them.
178+
179+
The first deterministic fixture is implemented in
180+
src/fleet/bijective_frequency_transport.py and
181+
scripts/benchmark/bijective_frequency_transport.py. Ten semicolon-separated
182+
commands occupied 97 UTF-8 bytes, assembled to 47 semantic-opcode bytes, and
183+
compressed to 44 bytes. Five data shards plus one parity shard used 54 wire
184+
symbols, or 1.2273 times the packed payload. That was 79.55% fewer symbols than
185+
sending six complete packed copies. All six possible single-lane erasures and
186+
all six single-lane corruptions reconstructed the exact opcode tape; all fifteen
187+
two-lane erasures were rejected; all six tongue views round-tripped exactly.
188+
189+
Those are structural software results for one deterministic fixture. The next
190+
benchmark must add multiple payload distributions, bit-error and burst-loss
191+
channel traces, decode latency, outer-envelope overhead, and standard erasure
192+
codes. Security claims remain attached to the standard authenticated envelope,
193+
not to geometric or linguistic transforms. Physical RF/audio performance is
194+
still untested.
131195

132196
## Production path
133197

134-
1. Stratify claims by network condition instead of relying only on a mixed
135-
aggregate.
136-
2. Add short-horizon planning so the router can price several upcoming tasks
198+
1. Bind the Mars relay abstraction to contact-window queues, finite buffers,
199+
relay-node loss, and delayed receipt conflicts.
200+
2. Benchmark the six-lane command braid against raw, repetition, and standard
201+
erasure-coded controls over the same noisy channel traces.
202+
3. Add short-horizon planning so the router can price several upcoming tasks
137203
rather than react one task at a time.
138-
3. Calibrate normalized costs with live model token, latency, queue, and dollar
204+
4. Calibrate normalized costs with live model token, latency, queue, and dollar
139205
measurements.
140-
4. Bind decisions to the signed fleet decision envelope and existing TypeScript
206+
5. Bind decisions to the signed fleet decision envelope and existing TypeScript
141207
governance gate.
142-
5. Validate against real Redis/DTN transport, concurrent workers, and process
208+
6. Validate against real Redis/DTN transport, concurrent workers, and process
143209
failure before using the router as a control-plane component.
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
# Magnetic Pocket Routing and Wafer Prototype Boundary
2+
3+
**Status:** research specification; software evidence exists, physical device unbuilt
4+
5+
**Date:** 2026-09-19
6+
7+
**Scope:** magnetic pocket nodes, field-directed routing, fluid actuation, and the Clay wafer design
8+
9+
## Engineering interpretation
10+
11+
The useful form of the concept is a closed-loop physical state machine. A goal does not
12+
directly move matter. Governance converts an explicit goal and measured state into a bounded
13+
control vector; coils or electrodes create a field; physical nodes move or switch; sensors
14+
measure the result; and the controller accepts, corrects, or rejects the transition.
15+
16+
| Design image | Engineering variable |
17+
|---|---|
18+
| pocket node | droplet trap, domain-wall site, nanomagnet, or skyrmion confinement region |
19+
| subtle magnetic shift | bounded coil current, voltage pulse, or bias-field change |
20+
| system intention | explicit goal vector plus policy constraints |
21+
| lever or ball bearing | mobile droplet, domain wall, or other measured state carrier |
22+
| dense/loose fluid | field-dependent flow or yield response; material must be specified |
23+
| wafer neighborhood | graph edge implemented by a wire, field coupling, waveguide, or software route |
24+
25+
A minimal controller can be written as
26+
27+
\[
28+
\mathbf B(\mathbf x,t)=\sum_i u_i(t)\,\mathbf b_i(\mathbf x),
29+
\qquad
30+
\mathbf u_t^*=\arg\min_{\mathbf u\in\mathcal U}
31+
\left\|F(\mathbf s_t,\mathbf u)-\mathbf s_{goal}\right\|_Q^2
32+
+\lambda\|\mathbf u\|_2^2,
33+
\]
34+
35+
where `s_t` is the sensed physical state, `u` is a bounded actuator command, `F` is a
36+
measured transition model, and `U` contains current, temperature, timing, and policy limits.
37+
This formalizes "nodes drifting with intention" without giving an unmeasured internal state
38+
direct control of hardware.
39+
40+
## What is already supported locally
41+
42+
1. `C:\dev\clay-wafer-net\clay_wafer_net\magnetic_logic.py` demonstrates the logical
43+
boundary of a threshold-coupled magnetic model. Three ferromagnetic inputs implement a
44+
monotone majority function. Antiferromagnetic coupling plus bias implements NAND and NOR.
45+
A single threshold node cannot implement XOR; a two-layer construction does so exactly.
46+
Clocking and fabrication remain outside that proof.
47+
2. `C:\dev\ferro_field.py` maps a small command grammar into field surfaces and rejects an
48+
unknown operation. It is a control-language simulation, not a material or device result.
49+
3. `C:\dev\ferrofluid_habitat_control_SPEC.md` already separates controllable magnet arrays
50+
and simulated surfaces from speculative integrated hardware.
51+
4. `C:\dev\tongue-compiler\artifacts\wafer_nvidia_review_20260912\REVIEW.md` found a real
52+
64-expert/top-4 software router and later repair evidence found finite router/gate gradients.
53+
It found no CUDA kernel, RTL, physical layout, or device benchmark. The wafer is presently a
54+
neural routing architecture.
55+
56+
## What published experiments establish
57+
58+
- Rotating magnetic fields and patterned tracks have moved ferrofluid droplets through AND,
59+
OR, XOR, NOT, and NAND gates, fanout, a full adder, a flip-flop, and a finite-state machine.
60+
This strongly supports a tabletop routing demonstrator, but the reported platform operated
61+
at fluidic rather than processor-clock timescales.
62+
- A water-based ferrofluid has experimentally shown memristive behavior, short- and long-term
63+
memory, and reservoir-computing classification with electrical programming and RF readout.
64+
- Nanomagnetic logic chains have shown sub-nanosecond signal propagation under explicit
65+
clocking. Domain-wall prototypes have shown inversion, buffering, gain, fanout, and cascaded
66+
room-temperature operation.
67+
- Geometrically confined magnetic skyrmions have performed physical reservoir computing. Their
68+
nonlinear trajectories and relaxation toward a stable region closely match the "pocket
69+
node" intuition, although the demonstrated systems require specialized thin films and
70+
readout hardware.
71+
72+
These are adjacent results. None demonstrates the full SCBE/Clay wafer.
73+
74+
## Material choice matters
75+
76+
Do not treat ferrofluid, magnetorheological fluid, and a spintronic thin film as interchangeable.
77+
78+
| Medium | Best fit here | Main limitation |
79+
|---|---|---|
80+
| ferrofluid droplets | visible routing, logic, memory experiments, education | slow, surface/flow variation, bulky sensing |
81+
| magnetorheological fluid or elastomer | variable damping, stiffness, clutching, and actuation | thermal and mechanical response is far slower than digital logic |
82+
| nanomagnets/domain walls | nonvolatile Boolean logic and memory | clocking, fabrication variation, write current, fanout |
83+
| skyrmions/spin waves | nonlinear reservoirs and wave/phase routing | specialized materials, noise, readout, integration maturity |
84+
| CMOS/GPU | controller, sensing, optimization, and high-throughput arithmetic | does not itself test the physical-field hypothesis |
85+
86+
For the user's "loosen and densify" actuator, magnetorheological material is the closer
87+
engineering category. For mobile information packets, ferrofluid droplets are closer. For an
88+
eventual chip, spintronic films are the relevant scale.
89+
90+
## Buildable hybrid prototype
91+
92+
The first physical machine should be a peripheral coprocessor, not a replacement PC.
93+
94+
```mermaid
95+
flowchart LR
96+
G[Verified goal and policy] --> C[Bounded controller]
97+
C --> D[Coil or electrode drivers]
98+
D --> P[Magnetic pocket array]
99+
P --> S[Camera, Hall, resistance, or RF readout]
100+
S --> E[State estimator]
101+
E --> C
102+
E --> R[Signed transition receipt]
103+
R --> G
104+
```
105+
106+
The host PC performs policy, optimization, logging, and training. The physical array supplies
107+
nonlinearity, hysteresis, memory, routing, or actuation. This division lets the idea be tested
108+
without pretending a fluid board can match a GPU.
109+
110+
## Acceptance ladder
111+
112+
1. **Simulation:** predict each transition, include hysteresis/noise, and reproduce NAND, NOR,
113+
XOR-through-depth, reset, and HOLD states. Compare against a size-matched digital control.
114+
2. **Macroscopic pocket board:** demonstrate closed-loop routing for at least 1,000 transitions;
115+
publish transition error, settling time, energy, temperature, and cross-talk. Repeat across
116+
at least three runs and devices.
117+
3. **Computation:** demonstrate universal gates, fanout of at least two, state retention, reset,
118+
and cascaded operation. A successful gate in isolation is insufficient.
119+
4. **Reservoir task:** use a fixed physical reservoir plus trained linear readout. Beat both a
120+
no-reservoir baseline and a parameter-matched software control by more than two pooled
121+
standard deviations; otherwise report `UNDERPOWERED` or `NO_LIFT`.
122+
5. **Chip path:** supply a device model, SPICE or micromagnetic co-simulation, clock network,
123+
I/O circuit, PDK-compatible layout, timing/power analysis, and fabrication partner.
124+
6. **Wafer performance:** only claim an accelerator after a compiled kernel beats the matched
125+
dense/sparse baseline in wall time, energy, memory traffic, and task quality on the same
126+
hardware.
127+
128+
## Wafer relationship to current NVIDIA systems
129+
130+
The shared problem is routing useful work and data among many compute units. NVIDIA's current
131+
platforms solve this through extreme codesign of GPUs, CPUs, switches, networking, memory, and
132+
software. The Clay wafer's current 64-cell/top-4 expert router is a software model of task
133+
placement. A graph coordinate is not a physical wire, six readout views are not six processors,
134+
and signed trits do not reduce storage unless an implemented encoding and kernel prove it.
135+
136+
The near-term research claim is therefore:
137+
138+
> SCBE can use a governed control language to address a simulated or tabletop magnetic state
139+
> array, while the wafer router can be evaluated as a sparse software scheduler. Physical
140+
> acceleration remains an experimental hypothesis.
141+
142+
## Primary sources
143+
144+
- Katsikis, Cybulski, and Prakash, [Synchronous universal droplet logic and control](https://www.nature.com/articles/nphys3341), *Nature Physics* 11 (2015).
145+
- Crepaldi et al., [Experimental Demonstration of In-Memory Computing in a Ferrofluid System](https://pubmed.ncbi.nlm.nih.gov/36919899/), *Advanced Materials* 35 (2023), DOI 10.1002/adma.202211406.
146+
- Colci et al., [Sub-nanosecond signal propagation in anisotropy-engineered nanomagnetic logic chains](https://www.nature.com/articles/ncomms7466), *Nature Communications* 6 (2015).
147+
- Currivan-Incorvia et al., [Logic circuit prototypes for three-terminal magnetic tunnel junctions with mobile domain walls](https://www.nature.com/articles/ncomms10275), *Nature Communications* 7 (2016).
148+
- Beneke et al., [Gesture recognition with Brownian reservoir computing using geometrically confined skyrmion dynamics](https://www.nature.com/articles/s41467-024-52345-y), *Nature Communications* 15 (2024).
149+
- NVIDIA, [Vera Rubin platform production announcement](https://nvidianews.nvidia.com/news/vera-rubin-full-production-agentic-ai-factory) (2026).
150+
151+
This specification records engineering connections and disconfirming tests. It is not evidence
152+
that the integrated device has been built and is not a patent-novelty determination.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
"benchmark:swe-verified:readiness": "python scripts/benchmark/swe_verified_readiness.py",
188188
"benchmark:cli": "python scripts/benchmark/cli_competitive_benchmark.py",
189189
"benchmark:fleet-composition": "python scripts/benchmark/fleet_composition_stress.py",
190+
"benchmark:fleet-transport": "python scripts/benchmark/bijective_frequency_transport.py",
190191
"aetherdesk:chemistry": "python scripts/aetherdesk_tile_actions.py chemistry",
191192
"aetherdesk:token": "python scripts/aetherdesk_tile_actions.py token",
192193
"aetherdesk:instrument": "python scripts/aetherdesk_tile_actions.py instrument",

0 commit comments

Comments
 (0)