# Multi-device mesh access · cache · PWA · quantum gutter

## Principle

**No single device, user, or AI is the only gate to this knowledge.**

- Public orthography / geometry packs stay open (R2 / Pages).
- Live analysis envelopes publish on the **mesh room** so freya · gy · kbatch · mueee peers can reference the same tick.
- Optional room id coordinates peers (`?mesh=room` / NFC invite) — not DRM; a shared coordination token.

## Cache busting (low latency)

| Asset | Policy |
|-------|--------|
| HTML / `sw.js` | `max-age=0, must-revalidate` |
| `/js/*` `/css/*` with `?v=buildId` | long-cache immutable |
| `data/words` | SWR |
| `data/analyzed` | long-cache |

```bash
npm run version:stamp   # writes buildId, rewrites HTML ?v=, public/build.json
```

Runtime: `js/cache-bust.js` · service worker `sw.js`.

## PWA / mobile

- `manifest.webmanifest` · standalone display · safe-area CSS
- SW: network-first shell, cache-first versioned assets
- Installable on iOS/Android; NFC share/scan on **Android Chrome HTTPS**

## Quantum gutter fold-through

Vendored GlueLam:

```
vendor/gluelam/quantum-prefixes.js
vendor/gluelam/qbit-dac.js
vendor/gluelam/qbit-steno.js
vendor/gluelam/qbit-preflight.js
```

Every heavy Shadow Live tick → `js/quantum-gutter.js` classifies **code + speech** lines with the 11 symbols and broadcasts on `quantum-prefixes` + mesh.

## Terminal (Freya / GY)

Panel `#terminal` · `js/terminal-lane.js`

```
kb> help
kb> mesh my-room
kb> analyze type once
kb> gutter def hello():
kb> pub hello peers
kb> nfc share
```

## Mesh channels

| Channel | Use |
|---------|-----|
| `kbatch-mesh` | knowledge envelopes |
| `gy-stream` | GrokYtalkY-aligned |
| `freya-signal` | Freya units / terminal lane |
| `quantum-prefixes` | gutter state |
| `iron-line` | IronLine telemetry |

## Console

```js
kbatchDict.corpus.build()
kbatchDict.corpus.pwa()
kbatchDict.corpus.mesh()
kbatchDict.corpus.meshJoin("lab")
kbatchDict.corpus.meshPublish()
kbatchDict.corpus.gutter("type once")
kbatchDict.corpus.ensureGutter()
kbatchDict.corpus.nfcShare("hello")
```

## Quantum speed path (honest)

Today: JS capsule analyzer + local GlueLam vendor (no network hop).  
Next: inject `kbatch_t5.wasm` / native T5 for ns-class classify; gutter symbols already stable for that handoff.
