# 0010. Model independence (K-12) is checked when the workflow is built, not judged by the critic | | | |---|---| | Status | Accepted | | Date | 2026-11-05 | | Decided by | Product owner, 2026-11-05: "go with the recommendation" (check K-12 at build time; the critic reports it) | | Requirements changed | ALZ-ASM-06 K-12: the check runs in `scripts/build_workflow.py`; the critic reports its result. Refines [ADR 0005](0005.md) | ## Context - K-12 asks whether the critic runs on a different model from the agents it checks (PR-07). The workflow passes the critic both names as static inputs (ADR 0005), so the answer is fixed before any run starts. - The critic judged it anyway, and failed it on Discovery's models in two runs out of three: - `exec_4be193061c41`: a Discovery critic note that Discovery's network agent runs on `gpt-5.4`. - `exec_0b0afb70b8b9`: a Discovery critic note that Discovery's critic was validated on `gpt-5.4`. Every other check passed; the prompt (critic 0.1.2) already said that models named in Discovery's documents don't count. - Discovery is a separate run with its own critic. Its models have no bearing on this run's independence. ## Decision 1. **`build_workflow.py` checks K-12** before writing the export. It reads each agent's deployed model (`LITELLM_MODEL` in its `kubernetes/configmap.yaml`) and refuses to build unless: - the critic is deployed on the static `critic_model`; - every other step's agent is deployed on a model in `executor_models`; - `critic_model` is not in `executor_models`. 2. **The critic reports K-12** as `pass` when `critic_model` is not in `executor_models`, and reads nothing else for it. It has no code: the agent stays declarative (ADR 0001). ## Consequences - **A workflow with a critic on an executor's model can't be built,** so it never reaches KAB. - **The names the critic is given are checked against the deployments,** not just typed in. A model changed in a configmap without a rebuild of the workflow isn't caught: rebuild and update the workflow after any model change. - **The critic can still misreport K-12,** being a model. If it does, the report contradicts its own inputs, which is visible in the check's details.