Skip to content
1 change: 1 addition & 0 deletions pmoves/docs/AGENTS/AGNOTE4482PHI.t1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3449,6 +3449,7 @@ VILLAGE RULE: delivery delegated to a delivery-agent body; control and memory ar
- `2026-10-10T18:52:38Z` CLAIM `5090-CLAUDE` branch: `fix/cipher-mcp-streamable-roster` · **TTL 48h (expires `2026-10-12T18:52:38Z`)** · scope: CIPHER MCP TRANSPORT -- move the claude-code roster's two cipher entries (pmoves-cipher, pmoves-cipher-local) from legacy SSE to the stateless streamable-http endpoint (type http, POST /mcp), plus runbook and context notes. ROOT CAUSE MEASURED on 5090 2026-10-10: both cipher MCP entries failed at session start -- fleet entry 401 (per-node token, expected), local entry 400 'stream is not readable' on POST /mcp/messages with the CORRECT token. The 5090 container (pmoves-cipher-api-1, built 2026-09-04) predates the fork's express.json bypass (fork PR #27, 102d277e, inside pin a0ee2314); cipher-build-pin-check already documents this exact B850 incident. POST /mcp on the SAME stale container: initialize 200, tools/list 10 tools, tools/call search returns 5090-claude memories, and a claude -p session with the http entry answered TOOL_OK. So the http roster entry works on pre- and post-pin builds; sse only works post-pin. NOT in this lane: the fork needs no code change (bypass already landed); the 5090 container rebuild from the pin is a node-ops action taken separately via make up-cipher; the embedding path (TensorZero 500 -> tensorzero.toml api_base host.docker.internal:11434 while compose ollama publishes 11436; shim Ollama fallback same class) is a separate lane. Village Rule: delivery = this instance, control = operator/independent review.
- `2026-10-05T12:19:00Z` CLAIM `Mavis (5090-claude)` branch: `feat/mavis-collection-scaffold-2026-10-05` · **TTL 48h (expires `2026-10-07T12:19:00Z`)** · scope: SLICE G.1 from pmoves/docs/architecture/MAVIS_COLLECTION_DESIGN.md. Cut branch off `feat/claude-pmoves-mavis-launcher` @ 76ac1a0c8a (slice A's tip) per operator 2026-10-05 `agreed on G` + `ok to proceed`. Build Mavis Collection skeleton at ~/.mavis/collection/. (1) pmoves/configs/mavis_collection/manifest.schema.yaml -- CGP v1.0-derived schema, schema_version 1.0, spec=pmoves.bootstrap/v1. (2) pmoves/configs/mavis_collection/example.yaml -- populated manifest with auth/models/datasets/personas/mindmap/skills/plugins/chit super_nodes. (3) pmoves/tools/mavis_collection_resolve.py -- resolver CLI with validate/resolve/probe subcommands + 3-step probe gate (auth -> quota -> chat per memory entry 2026-10-05). (4) pmoves/tools/tests/test_mavis_collection_g1.py -- 24 tests / 5 classes. (5) pmoves/docs/AGENTS/mavis_collection_g1_LEARNINGS.md -- 4-bucket + 5-class taxonomy. Pre-push: 24/24 PASS. Pointer-only design: manifest never holds canonical data, only references to pmoves/config/datasets.yaml + pmoves/services/gateway/gateway/api/mindmap.py + PMOVES fork catalogs. Token Plan auth resolves from ~/.mmx/config.json (mmx is source of truth; Collection reads-only). TBDs resolved: 1 branch / 4 commits / 1 PR; ~/.mavis/collection/ root; CGP-derived schema; plaintext + ACLs; mmx direct read; api.minimax.io; advisory PMOVES_MAX_CONCURRENT_AGENTS; 5-class test contract. G.2-G.4 deferred to commits 2-4 on same branch.
- `2026-10-08T16:25:00Z` NOTE `Mavis (5090-claude)` branch: `feat/mavis-collection-scaffold-2026-10-05` scope: **Post-flip CI remediation for slice G (PR #3283) per operator `b -> a` (2026-10-08), paired with the slice A fix at `a083db41ee`.** 12 NEW python-test failures surfaced in `tools.tests.test_mavis_collection_g2.*` (all in the G.2 test class) because the test expected `pmoves/configs/model-suits/minimax-m3.yaml` (lowercase) but the file was named `MiniMax-M3.yaml` (capital M-M). Root cause: local Windows NTFS is case-insensitive and matched both spellings, hiding the case-sensitivity contract violation that broke on the Linux CI runner. Fixed by `git mv MiniMax-M3.yaml -> minimax-m3.yaml` and updating the verification report reference at `pmoves/docs/AGENTS/mavis_collection_g2_VERIFICATION_2026-10-06.md:107`. The 3 OTHER new G.2 suits (`minimax-m2.7-highspeed.yaml`, `minimax-image-01.yaml`, `minimax-speech-2.8-hd.yaml`) were already correctly lowercase. Local: 70/70 Mavis tests + 15/15 slice A MavisWrapperShapeTests + 17/17 launcher generator = 102/102 PASS. LEARNINGS at `pmoves/docs/AGENTS/mavis_collection_g2_case_sensitivity_LEARNINGS.md` (4-bucket + 5-class taxonomy). Open follow-ups (separate lanes): (a) pre-push or CI ratchet asserting `model-suits/*.yaml` filenames match `^[a-z0-9-]+\.yaml$`; (b) operator-side: run `pytest` under WSL2 before declaring local-green on Windows.
- `2026-10-11T15:44:40Z` CLAIM `5090-CLAUDE` branch: `docs/cipher-capacity-profiles` · **TTL 72h (expires `2026-10-14T15:44:40Z`)** · scope: design doc pmoves/docs/plans/CIPHER_NODE_CAPACITY_PROFILES_2026-10-11.md: per-node cipher embedding profile by capacity class (Qwen3-Embedding MRL dims), BRV as the lightweight layer, Ollama URL fix first; no code
- `2026-10-11T13:24:28Z` CLAIM `5090-CLAUDE` branch: `docs/overlay-anti-pattern-reviewer-gate` · **TTL 72h (expires `2026-10-14T13:24:28Z`)** · scope: Operator canon 2026-10-11 (verbatim in the room's Provenance): PMOVES connects and overlays a harness; it does not break, shim or paper over it. Lands the `overlay-paper-over` room in pmoves/docs/danger-room/anti-patterns.md (Live: #3282 regen regressions + minimax.json operator path, #3325 kimi --help regex, kilo-pmoves exec'ing opencode), wires the check into the three reviewer surfaces (kilocode-review.yml prompt section 2, pmoves-pair-review observation classes, .github/pull_request_template.md Required Checks), seeds pmoves/docs/TAC/TAC_HARNESS_OVERLAY_MAP.md (per-harness native settings/protocol surface vs what PMOVES overlays; ACP ids from acp_registry_map.json; A0 plugin seams incl. a0_acp, pmoves_coding_agents, jev_router, typesafe_ai) and enrols the map, the anti-pattern catalog and TAC_INTEGRATION_TOPOLOGY.md in living_docs_registry.yaml. Does NOT edit TAC_INTEGRATION_TOPOLOGY.md content (SPARK-CLAUDE holds it under #3345 until 2026-10-12T12:16Z); the topology refresh + Jev living-docs sweep is the follow-up lane after #3345 lands.
- `2026-10-12T01:31:21Z` CLAIM `agent0-sidecar (A0 digital-twin)` branch: `feat/chit-tour-regen-20261011` · **TTL 48h (expires 2026-10-14T01:31:21Z)** · scope: THREE-LANE OPERATOR-APPROVED BATCH 2026-10-11 ~21:15 EDT (no docker needed): (L1) chit-tour regen — regenerate website/chit-tour/data.generated.js from current registry via make chit-tour-data (measured 97→112 agents, 109→120 subjects; static data.js stale-count refs reviewed); (L2) auth flip-on doc — docs/operations runbook reconciling cloud auth docs vs implementation: Google creds custody (GH secrets + local env.shared), Supabase external-Google keys EMPTY today, SSO_GOOGLE_ENABLED=false today, yt-cookie-writer/refresher overlay, sso-auth service, plus Known-Roads review items (yt client auto-update-on-release policy absent; KVM desktop-context requirement undocumented; healthz yt_dlp-only blind spot measured 2026-10-11 during ffmpeg-whisper outage); (L3) ToKenism-Multi visibility verify — API check vs 'meant pub' operator intent, fork_registry intent record. Work in /tmp worktree off origin/main deeb5128e; PR after; Three-Body: delivery=agent0-sidecar, control=operator (merge gate), memory=this register + PR. agent_signature: `ACK::agent0-sidecar::THREE-LANE-CLAIM-20261011`
- `2026-10-12T02:02:09Z` UPDATE `agent0-sidecar (A0 digital-twin)` branch: `feat/chit-tour-regen-20261011` · scope: CORRECTION under CLAIM THREE-LANE-CLAIM-20261011 per operator review (CPU-fallback was the anti-pattern): nvidia runtime healthy on affected node (live nvidia-smi, driver 610.57.01, CUDA 13.3); only the compose deploy.resources.reservations.devices path fires the broken legacy prestart hook. Applied PR #3358 pattern (service-level runtime: nvidia + NVIDIA_VISIBLE_DEVICES env + HF_HUB_DISABLE_XET=1, devices block removed) to ffmpeg-whisper in docker-compose.yml + docker-compose.media.yml; runbook finding #4 rewritten (CPU fallback = AMD-node lane only); both files yaml-validated. Remedy for VES.AI: recreate from this branch — CUDA installs fine through runtime+env. agent_signature: `ACK::agent0-sidecar::GPU-WIRING-CORRECTION-20261011`
Expand Down
73 changes: 73 additions & 0 deletions pmoves/docs/plans/CIPHER_NODE_CAPACITY_PROFILES_2026-10-11.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Cipher per node capacity — embedding profiles, multi-dimension vectors, BRV as the floor (design)

| Field | Value |
|---|---|
| Status | **DRAFT, design only.** No code, compose or submodule edits ride on this document. |
| Owner | 5090-CLAUDE (`5090-claude`), lane `docs/cipher-capacity-profiles`, claim filed 2026-10-11 |
| Base | `origin/main` `6d179267a7` |
| Pairs with | `pmoves/docs/TAC/TAC_CIPHER.md` (service); PR #3317 §3c node evidence (the passport design doc lives on branch `docs/agint-passport-design`, not yet on main); B850 handoff `pmoves/docs/handoffs/B850_MEMORY_TRAVELS.md` (BRV, per-node token store) |

Operator canon, 2026-10-11 (verbatim): "your cipher config should be different based on node capacity and embeds are multi dimensions plus lightwieght brv".

## 1. What is true today (measured 2026-10-11 on 5090)

| Fact | Evidence |
|---|---|
| One static cipher config for every node: `embedding: ollama / qwen3-embedding:4b / dimensions: 2560` | `Pmoves-cipher/memAgent/cipher.yml:14-18`; `pmoves/docker-compose.yml:4189` `EMBEDDING_DIM=2560` (line numbers as of `origin/main` `6d179267a7`; `grep -n EMBEDDING_DIM pmoves/docker-compose.yml` re-derives them) |
| The embedding URL class is wrong on this node: the cipher stanza defaults `OLLAMA_URL` / `OLLAMA_BASE_URL` to `host.docker.internal:11434`, while every other Ollama consumer in the file defaults to `pmoves-ollama:11434`; at 15:30 EDT nothing answered on 11434 (re-measured 19:50: a host Ollama does, see below); the compose Ollama publishes on 11436 and is `pmoves-ollama:11434` in-network | `pmoves/docker-compose.yml:4170-4171` (cipher) vs `:2788`, `:3091`, `:3293`, `:5190` (`pmoves-ollama:11434`); `curl :11434/api/tags` no answer at 15:30, `:11436/api/tags` lists `qwen3-embedding:4b` (2.5 GB), `embeddinggemma:300m`, `nomic-embed-text` |
| Consequence: every memory stored this session landed `embedded: false` (four stores, ids `XJ9At38W6D8i`, `wQRWVtVC_tV8`, `qeHUXPilxlYe`, …) so recall is text-match only | cipher `pmoves_cipher_store` responses, 2026-10-11 |
| BRV (ByteRover CLI, the context-tree memory, BM25, no embeddings) is not installed on 5090; `pm-brv-check.sh` (#3313) says so at claude-pmoves launch | `command -v brv` → missing; `pmoves/scripts/pm-brv-check.sh` |
| Qwen3-Embedding is one family with Matryoshka (MRL) output: 0.6B up to 1024 d, 4B up to 2560 d, 8B up to 4096 d, each with user-defined dims from 32 | model cards `Qwen/Qwen3-Embedding-{0.6B,4B}` README, read 2026-10-11 |
| Capacity is already described per node: hardware profiles carry RAM/VRAM (`workstation_5090.yaml` ram 192; `dgx-spark-grace-blackwell.yaml` 128 unified; `z890-coordinator.yaml` 32; `jetson-orin-nano.yaml` 8 unified); `node_roles.yaml` has `gpu-compute` / `always-on` / `lab` / `gateway` roles and `persistent` / `ephemeral-microvm` runtime shapes | `pmoves/config/profiles/*.yaml`, `pmoves/config/node_roles.yaml:60-140` |
| Nothing connects the two: no profile, role or vocabulary entry names an embedding model or dimension; cipher reads one env | grep `EMBED|dimension` across `pmoves/config*`: only the compose literal above |

So "different based on node capacity" has no surface to be different on yet, and on this node the single surface it does have points at a port that is not listening.

Re-measured 19:50 EDT the same day: a host Ollama now answers on 11434 outside compose, and the next cipher store landed `embedded: true` (id `ZLkgU4VHM69c`). That does not close the row above: the compose default works only while that host process runs, which is node-local runtime state, not a fix in the files. The URL-class fix in section 3 still stands.

## 2. Design

### 2a. Capacity class → embedding profile (declared, never probed at runtime)

A `cipher_profile` key on each node's entry in `pmoves/configs/node-vocabulary.yaml`, resolved from the hardware profile when the entry is written, read by the launcher and the compose env (the harness-overlay rule: declare, do not detect).

| Class | Nodes (from profiles) | Embedding model | Dim | BRV |
|---|---|---|---|---|
| `gpu-large` (≥24 GB VRAM or ≥64 GB unified) | 5090 (32 GB), B850 (2×32 GB), SPARK (128 GB unified) | `qwen3-embedding:4b` | 2560 local, **1024 fleet** (see 2b) | yes |
| `gpu-small` / `cpu-rich` (8–16 GB VRAM, or ≥32 GB RAM no GPU) | 4090 (laptop, 16 GB VRAM, 14 GB usable: `pmoves/config/profiles/laptop-4090.yaml:4,72`), Z890, KVM4-1, KVM4-2 | `qwen3-embedding:0.6b` | 1024 | yes |
| `edge` (≤8 GB unified, or `ephemeral-microvm`) | Jetson Orin Nano, Jetson Nano, KVM2, tip-of-iceberg nodes | none local; embed through TensorZero to a `gpu-compute` node when reachable | 1024 (remote) | **BRV is the whole memory when offline** |

The class is a derived field with a documented rule, so a new profile gets a class without a judgement call; the rule lives next to `node_roles.yaml`'s role definitions. The rule assigns the class; the first draft of this table listed the 4090 under `gpu-large` by habit, and the kilo review caught it (16 GB is a class below the stated threshold). A node may still run a bigger embedder than its class says, but that is an explicit `cipher_profile` override written into its vocabulary entry, never an inference: the 4090's profile already inventories `qwen3-embedding:8b` (4.7 GB), so an override there is the expected case, and the record then says so.

### 2b. Multi-dimension vectors: one family, two named vectors, comparable fleet-wide

MRL prefix compatibility holds **within one model**, not across sizes: a 4B vector truncated to 1024 d is not in the 0.6B's space. So "multi dimensions" means two things at once:

1. **Fleet vector, `q06b_1024`:** every node that embeds at all writes this one (0.6B at 1024 d, or 4B output is not used for it). It is the dimension the cross-node collection is searchable in, and it is small enough that an `edge` node can compute it remotely and store it locally.
2. **Local vector, `q4b_2560`:** `gpu-large` nodes also write the 4B vector at full width for better local recall.

Qdrant named vectors carry both in one collection (`vectors: {q06b_1024: 1024 cosine, q4b_2560: 2560 cosine}`); a search names the vector it uses. Each point's payload records `embed_model`, `embed_dim`, `node`, so a vector's provenance is on the record, which is what the passport's node evidence (§3c) and the trail need anyway. The current single `EMBEDDING_DIM=2560` collection becomes the `q4b_2560` vector of the new one; migration is a re-embed of existing points for `q06b_1024`, done once per node.

### 2c. BRV as the floor

`brv` (byterover-cli, BM25 context tree) runs everywhere Node ≥20 runs, needs no GPU and no vector store, and is already what the Pmoves-cipher fork's upstream recommends. It is the memory an `edge` node has when the mesh is down, and the second retrieval path on every node (the Marco/Polo semantic bridge stays on embeddings). Install route stays the one `cli_tools.yaml` records (`npm install -g byterover-cli`); `pm-brv-check.sh` already says when it is missing. What is new: `edge` nodes treat `brv=MISSING` as a P1 at launch, not a WARN, because for them it is the only memory.

### 2d. Where each piece lands (and the road it needs)

| Piece | File | Road |
|---|---|---|
| `cipher_profile` per node | `pmoves/configs/node-vocabulary.yaml` | none (config, not protected) |
| class rule + table | `pmoves/config/node_roles.yaml` comment block, this doc | none |
| `OLLAMA_EMBED_MODEL`, `EMBEDDING_DIM`, named-vector config from the profile | `pmoves/docker-compose*.yml` cipher stanza, `env.shared` keys generated per node | `compose:pr:<n>` |
| named vectors + payload fields | `Pmoves-cipher` fork (`embedding.ts`, Qdrant provisioning) | submodule PR, then gitlink bump |
| TensorZero embedding route for `edge` | `pmoves/tensorzero/config/tensorzero.toml` embedding functions (the same 32 `host.docker.internal:11434` entries that are wrong today) | none, but see §3 |

## 3. Do this first: the URL class

None of §2 produces an embedding on 5090 until `OLLAMA_URL` / `OLLAMA_BASE_URL` in the cipher stanza and the `api_base` entries in `tensorzero.toml` point at the compose Ollama (`http://pmoves-ollama:11434` in-network; the published host port is `${OLLAMA_HOST_PORT:-11435}`, 11436 on this node). `tz_registry_sync.py` already defaults registry blocks to `pmoves-ollama:11434/v1`, so the fix is aligning the two hand-written defaults with the generator, under the compose road. That lane is unclaimed as of this writing; it is the precondition for every row above and for the `embedded: true` that the four memories stored today did not get.

## 4. Open questions for the operator

1. Fleet vector at 1024 d from 0.6B (every node can compute it) vs. 4B-only through TensorZero routing (one space, but `edge` nodes have no memory when the mesh is down). This doc recommends 2b: both, named.
2. Should `gpu-large` nodes also keep `embeddinggemma:300m` (already pulled on 5090) as a third named vector for the chat corpus, or is one family the rule?
3. Where does the class rule live for a node that is both `gpu-compute` and `ephemeral-microvm` (same box, two shapes)? Proposed: the shape decides, per request path.
Loading