4343 "paired_evidence_status: insufficient" ,
4444 "public_superiority_claim_supported: false" ,
4545)
46+ STALE_DEEPSEEK_MODELS = re .compile (r"\bdeepseek-(?:chat|reasoner)\b" , re .IGNORECASE )
4647
4748
4849def _command_blocks (text : str ) -> list [str ]:
@@ -220,6 +221,21 @@ def _check_readme_endpoint_table(path: Path, text: str, routes: set[tuple[str, s
220221 return errors
221222
222223
224+ def _check_provider_defaults (path : Path , text : str , defaults : dict [str , tuple [str , str ]]) -> list [str ]:
225+ """Keep README model examples tied to the provider's current defaults."""
226+ simple , complex_model = defaults ["deepseek" ]
227+ errors : list [str ] = []
228+ if STALE_DEEPSEEK_MODELS .search (text ):
229+ errors .append (f"{ path .name } : README contains a retired DeepSeek model name" )
230+ simple_match = re .search (r'"model_simple"\s*:\s*"([^"]+)"' , text )
231+ complex_match = re .search (r'"model_complex"\s*:\s*"([^"]+)"' , text )
232+ if not simple_match or simple_match .group (1 ) != simple :
233+ errors .append (f"{ path .name } : model_simple example must match provider default '{ simple } '" )
234+ if not complex_match or complex_match .group (1 ) != complex_model :
235+ errors .append (f"{ path .name } : model_complex example must match provider default '{ complex_model } '" )
236+ return errors
237+
238+
223239def _check_verification_record () -> list [str ]:
224240 if not VERIFICATION_DOC .exists ():
225241 return ["docs/self-evolution.md is missing" ]
@@ -254,6 +270,7 @@ def _check_verification_record() -> list[str]:
254270def main () -> int :
255271 expected_inventory = render_inventory ()
256272 import main as agent_main
273+ from providers import PROVIDER_DEFAULT_MODELS
257274
258275 runtime_tool_count = len (agent_main .AVAILABLE_TOOLS )
259276 git_tool_count = sum (name .startswith ("git_" ) for name in agent_main .AVAILABLE_TOOLS )
@@ -268,6 +285,7 @@ def main() -> int:
268285 errors .extend (_check_verification_record ())
269286 for readme in README_FILES :
270287 text = readme .read_text (encoding = "utf-8" )
288+ errors .extend (_check_provider_defaults (readme , text , PROVIDER_DEFAULT_MODELS ))
271289 if readme .name == "README.md" :
272290 errors .extend (_check_readme_endpoint_table (readme , text , set (routes )))
273291 for pattern in STALE_TOOL_PATTERNS :
0 commit comments