Skip to content

docs(alpha,Lane A): multi-source-of-truth merge gate from live UI QA - #1422

Merged
joelteply merged 1 commit into
canaryfrom
docs/lane-a-multi-source-of-truth-block
May 18, 2026
Merged

joelteply merged 1 commit into
canaryfrom
docs/lane-a-multi-source-of-truth-block

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

Live UI QA at http://localhost:9000/chat/general after the panic-fix landed (canary at `e58b49ffd`) surfaced:

Vision AI error: model id 'Qwen/Qwen2-VL-7B-Instruct-GGUF' not in registry — add it to models.toml

That error message admits the architecture violation in its own text. A peer traced the full end-to-end chain on AIRC:

  • `scripts/seed/personas.ts` seeds Vision AI with `VISION_DEFAULT='vision-default'`
  • `src/shared/ModelRegistry.ts` resolves `'vision-default'` → `models.json` symbolic_refs → short id `'qwen2-vl-7b'` → hf_repo `'Qwen/Qwen2-VL-7B-Instruct-GGUF'`
  • Rust `models.toml` uses canonical id `'qwen2-vl-7b-instruct'` — different from both the TS short id and the HF repo string
  • TS asks Rust for `Qwen/Qwen2-VL-7B-Instruct-GGUF`; Rust's TOML doesn't have that key; resolver returns "not in registry — add to models.toml"

The two halves of the same app disagree on what models exist because there are six sources of model-definition truth.

What this PR adds

A hard merge gate to Lane A: Rust Model Registry And Admission stating that Lane A is not shipped until these conditions hold:

  • `models.toml` is DELETED (model catalog is code, not config)
  • `models.json` and hand-edited `ModelRegistry.ts` variants deleted or auto-generated from the Rust crate via `ts-rs`
  • Rust resolver resolves every model any persona requests from the curated catalog with NO config-file fallback
  • Missing coverage surfaces as `Unavailable(NotInCatalog)` — never "add to models.toml"
  • Capability-driven admission ("vision-capable Qwen-class"), not hardcoded model strings in persona seeds

Also corrects the "Lane claim updates" line that previously claimed "Lane A has shipped its first wave" — that claim is contradicted by today's live UI QA. New language: "Rust crate skeleton exists, alpha contract not met."

Inventory of model-definition sources (current state)

  1. `src/workers/continuum-core/src/model_registry/` — Rust crate (THE canonical owner)
  2. `src/workers/continuum-core/config/models.toml` — Rust-side config file (DELETE)
  3. `src/shared/models.json` — TS source (DELETE or auto-generate)
  4. `src/shared/ModelRegistry.ts` — TS source (DELETE or auto-generate)
  5. `src/system/shared/ModelRegistry.ts` — TS variant in some worktrees (DELETE)
  6. `src/shared/generated/inference/ModelRegistry.ts` — generated TS (regen only from Feature: CLI Implementation with Testing #1)

The `.d.ts` files at `src/dist/shared/generated/cognition/ResolvedModel.d.ts` and `PersonaResponseGenerator.d.ts` explicitly call `models.toml` "the canonical source" — that comment is documenting the bug.

Test plan

  • Pre-commit (TypeScript compile + chat-roundtrip e2e) PASSED
  • Pre-push validation PASSED
  • This is docs-only; no runtime change. The merge gate it introduces is the test plan for any future Lane A PR.

🤖 Generated with Claude Code

Joel ran the live UI at http://localhost:9000/chat/general after the
panic-fix landed (canary at e58b49f) and observed Vision call failing
with:

    Vision AI error: model id 'Qwen/Qwen2-VL-7B-Instruct-GGUF' not in
    registry — add it to models.toml

A peer traced the end-to-end mismatch on AIRC:
  - scripts/seed/personas.ts seeds Vision AI with VISION_DEFAULT='vision-default'
  - shared/ModelRegistry.ts resolves 'vision-default' via models.json
    symbolic_refs to short id 'qwen2-vl-7b' with hf_repo
    'Qwen/Qwen2-VL-7B-Instruct-GGUF'
  - Rust models.toml uses canonical id 'qwen2-vl-7b-instruct' — different
    from both the TS short id and the HF repo string
  - TS asks Rust for 'Qwen/Qwen2-VL-7B-Instruct-GGUF'; Rust's TOML doesn't
    have that key; resolver returns "not in registry — add to models.toml"

Inventory of model-definition sources in canary (six places, all claiming
to be canonical somewhere):

  1. src/workers/continuum-core/src/model_registry/  (Rust crate)
  2. src/workers/continuum-core/config/models.toml   (Rust-side config)
  3. src/shared/models.json                          (TS source)
  4. src/shared/ModelRegistry.ts                     (TS source)
  5. src/system/shared/ModelRegistry.ts              (TS variant)
  6. src/shared/generated/inference/ModelRegistry.ts (generated TS)

The .d.ts files at ResolvedModel.d.ts and PersonaResponseGenerator.d.ts
explicitly call models.toml "the canonical source" — that comment is the
documentation of the bug.

This commit adds a hard merge gate to Lane A:

  - models.toml DELETED. Model catalog is code (model_registry/), not
    config. Engineers commit curated rows; operators do not edit a TOML.
  - models.json and hand-edited ModelRegistry.ts variants deleted or
    auto-generated from the Rust crate via ts-rs. Hand-editing forbidden.
  - Rust resolver resolves every model any persona requests from the
    curated catalog with NO config-file fallback. Missing coverage
    surfaces as Unavailable(NotInCatalog) with a remedy that points to
    the Rust catalog, NEVER "add to models.toml."
  - Capability-driven admission: personas request vision-capable
    Qwen-class, not exact strings. Hardcoded model IDs in persona seeds
    become source #7 and are also forbidden.

Lane A is NOT shipped until: grep proves only model_registry/ defines
models in source; every persona that references a model produces a typed
response or typed Unavailable (no silent failure); browser smoke at
/chat/general proves vision works visibly.

Also corrects the "Lane claim updates" line — previously claimed "Lane A
has shipped its first wave," now reflects "Rust crate skeleton exists,
alpha contract not met."

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joelteply
joelteply merged commit 1643f02 into canary May 18, 2026
2 checks passed
@joelteply
joelteply deleted the docs/lane-a-multi-source-of-truth-block branch May 18, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant