Scheduling
Deferred optional upstream contribution. The standalone AIENOS repository and measurement under #32/#33 come first; this issue is not an initial test dependency. Revisit after the AIENOS result and when preparing the TandemLLM side.
Problem
Switching from a Qwen profile to Flint can leave the Qwen lookup corpus configured. The tokenizer fingerprint guard then raises an uncaught ValueError during startup. In the inspected tree, CorpusSuffixStore.load() calls check_store() without catching its mismatch. A CPU-only probe reproduced that underlying exception; full server/Spark startup was not exercised.
Upstream: https://github.com/0xBakeer/TandemLLM/issues/105
Baseline: 632c965aebbd7822c61ae0c75da383f419597a32.
Scope
Prepare a regression and a bounded startup/profile fix. Preserve refusal to consume token IDs from another tokenizer. Agree whether an optional mismatched corpus is skipped with a diagnostic or requires an explicit operator policy; do not broadly catch ValueError and hide corruption or unrelated configuration failures.
Acceptance
- Reproduce the mismatch with temporary metadata and distinct tokenizer fingerprints, without model downloads.
- Trace the loader/profile boundary and distinguish optional corpus mismatch from corrupt metadata, missing arrays and invalid user-required resources.
- Handle only the intended mismatch at an appropriate boundary, using a precise error type or equivalent classification.
- Emit one actionable diagnostic with effective corpus status; preserve conversation-local lookup when supported.
- Confirm correct-tokenizer corpora still load and wrong-tokenizer IDs are never used.
- Test Qwen-to-Flint and reverse profile transitions, absent corpus, malformed metadata and repeated starts.
- Test startup failure detection/rollback behavior relevant to this path without waiting through a real 600-second timeout.
- Run the native model startup smoke in a coordinated Spark window before claiming the end-to-end fix; otherwise report it NOT_RUN.
Delivery
Reviewable patch linked to #105, CPU regression logs and a separate hardware smoke receipt. This is an optional onboarding contribution and does not block the speculation-disabled Phase 1 benchmark.