Commit f35f7fc
migrate(C3): classify coprocessor wiring layer — no new brains (verified) (#541)
## C3 — coprocessor wiring layer: classified, not extracted
C3 (`src/shared/`, 17 files) is the coprocessor **bridge layer**, not a
leaf-kernel cluster. It has **no new integer brains** — it's the
host-side glue that exposes C1's already-migrated wasm brains to the
game engine.
### Verified de-dup (by constant, not file name)
`src/shared/` and `shared/src/` are distinct dirs carrying the **same
integer cores**; C1 already migrated + 4-gate-verified them. Confirmed
identical values:
| Brain | value | C1 staged kernel (verified) |
|---|---|---|
| compute data limits | 513/16/259/1024 |
`Kernel_Compute.data_limit_for_domain` (736/736) |
| concurrency cap | 10 | `Kernel_Compute.max_concurrent_compute` |
| preflight ladder | 504/413/404 | `Kernel_Compute.compute_gate` |
| retry transient class | `503\|\|504\|\|429` |
`RetryPolicy.is_transient` (124/124) |
| policy table | default/fast/patient | `RetryPolicy.policy_*` |
| DeviceType/GameEvent ordinals | — | C1 `DeviceType` (39/39) /
`GameEvent` |
### Classification
- **12 `*Coprocessor.res`** — pure-FFI passthrough (**0 embedded logic
lines**, scanned); load `kernel.wasm`, expose C1's brains as Int →
**senses**.
- **`Kernel_Compute`/`RetryPolicy`** (src/shared) — async/float wrappers
over the C1 brains → senses.
- **`DeviceType.portName`/`fromString`, `GameEvent.toTag`** —
string-gated (string wall, Phase F).
- **`Coprocessor_Backends`** — registry → senses.
**No 4-gate run** — nothing new to compile, parity-test, or prove.
Bridges stay host-side as the essential wasm-loading glue (ADDITIVE,
FeaturePacks-flagged); their ReScript→glue fate is a **Phase-Ω cutover**
decision, not a brain migration.
Evidence: `migrated/EVIDENCE-C3.adoc`. **C3 DONE** (wiring layer). NEXT
high-yield: C5 (engine coprocessors — maths/random), C11 ("pure integer
presentation state").
https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s
---
_Generated by [Claude
Code](https://claude.ai/code/session_01WoKhFQePiRsAj7aqnxbG8s)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent b37af77 commit f35f7fc
3 files changed
Lines changed: 90 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
157 | 166 | | |
158 | 167 | | |
159 | 168 | | |
| |||
0 commit comments