Repository navigation
docs(alpha,Lane A): multi-source-of-truth merge gate from live UI QA - #1422
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Live UI QA at http://localhost:9000/chat/general after the panic-fix landed (canary at `e58b49ffd`) surfaced:
That error message admits the architecture violation in its own text. A peer traced the full end-to-end chain on AIRC:
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:
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)
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
🤖 Generated with Claude Code