Add no-network model-name validation check and test #37
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 276 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.336
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #37"
general
weight: 0.35
jefftriplett
Adds an offline Django system check and tests so a misconfigured pydantic-ai model identifier fails at
manage.py check/ CI instead of as a runtime 404.races/agents.py:_build_model_identifier()is now the single place that builds the identifier. Both the race agent and the chat agent use it, so the check exercises the real construction path.races/checks.py(registered through the newraces/apps.pyready()):check_pydantic_ai_modelbuildsAgent(_build_model_identifier()). It reports:-
ai.E001if the model name still contains:(double prefix),-
ai.E002if the model class isn'tOpenAIChatModel(for example bareopenai:oropenai-responses:),-
ai.E003if the model can't be resolved at all.It supplies a placeholder
OPENAI_API_KEYonly when none is set, because the provider constructor requires one. No request is ever made.tests/test_ai_model_check.py: asserts the configured model resolves with no:in the name and is anOpenAIChatModel, and that the check flags double-prefix,openai:,openai-responses:and unknown-provider identifiers.manage checkstep before pytest.pyproject.toml: whitespace change from the repo's TOML formatter, whichjust lintapplies.Notes:
AI_MODEL, but this project's setting isPYDANTIC_AI_MODEL, so the check and the error messages use that name.openai-responses:gpt-5.6-luna, which the new check rejects (it resolves toOpenAIResponsesModel). I changed the default inconfig/settings.pyand.env-disttoopenai-chat:gpt-5.6-luna. Deployments that setPYDANTIC_AI_MODELexplicitly, and local.envfiles copied from the old.env-dist, need updating, ormanage.py checkwill fail.Testing:
PYDANTIC_AI_MODEL=openai-chat:gpt-5.6-lunaandSECRET_KEYset.manage checkreports no issues..env(openai-responses:), the new tests fail withai.E002, as intended.just lintpasses.Closes #24