Model lifecycle updates

The hourly Model lifecycle discovery workflow reads the four official provider catalogs, inventories every primary, the global backup, and image delegates, and retains a timestamped report. Nothing in this workflow routes a production call, merges a pull request, dispatches a deployment, or changes a protected gate.

config/model_update_policy.json is the reviewable policy. Current activation is discover_and_prepare_review; production auto-promotion is not armed. The Gemini upgrade and any later exact model change still need the existing owner review and deployment pathway. Once this workflow is merged, hourly discovery starts automatically, subject to Actions scheduling and credentials. A provider release can be detected only after its catalog lists it; schedules are not an instantaneous release webhook.

Discover

python3 scripts/model_lifecycle.py --base-sha "$(git rev-parse HEAD)" \
  --output /tmp/model-catalog-report.json

Credentials are read from MODEL_CATALOG_GOOGLE_ACCESS_TOKEN (a short-lived Google access token), ANTHROPIC_API_KEY, OPENAI_API_KEY, and XAI_API_KEY. Missing credentials produce not_configured; a failed or incomplete provider catalog produces error and cannot be used to infer a model's retirement. Providers continue independently. No credential value or provider error body is included in the report.

The Google catalog is Vertex/Agent Platform, rather than the AI Studio catalog. Its access token must be supplied by the existing approved identity path; do not create a long-lived key or a new principal for this workflow. The checked-in workflow can consume a token secret, but refreshing that secret is an operator integration still needed before unattended Google discovery works reliably.

Catalogs do not uniformly expose release dates, GA status, role capabilities, reasoning controls, or prices. Unclassified models remain visible in the report. They cannot become candidates from their names, aliases, version numbers, or creation timestamps alone. releases records reviewed official metadata with an exact model ID, vendor, role family, release time, GA status, capabilities and official source. Baseline metadata must also be known before selecting a newer release. Future family transitions require policy review; a newer model from another vendor never silently takes over a primary role. Live provider lifecycle flags take precedence over stale curated GA metadata; Google requires its catalog's GA stage plus stable version state, and Anthropic requires active lifecycle. Google GA/stable does not itself prove unretired availability; official lifecycle notices and the provider smoke gate still apply. For providers without a lifecycle field, project smoke evidence remains required. The hourly assistant review can research official release metadata and prepare a policy proposal; the catalog-polling script itself does not manufacture it.

The global fallback and image delegates are inventoried but intentionally marked unsupported_slot_requires_policy; their changes need a specialist policy and validation suite before automated patch preparation is enabled.

Validate and prepare

The discovery job cannot attest its own result. A separately trusted verifier must run real provider calls on the exact source commit and store a signed receipt under ops/model-updates/attestations/<role>.json. Its HMAC key is supplied as MODEL_UPDATE_VERIFIER_KEY, separate from model API credentials. Provisioning that verifier and its identity remains an explicit activation task; it is not claimed as completed by these scripts or their network-free tests.

The receipt binds the source SHA, source-file hashes, policy hash, candidate-plan hash, role, exact model, project, location, timestamp, verifier identity, every required gate, and an available rollback target. The rollback model must be listed at the matching provider now, pass its current lifecycle checks and remain available for at least the policy's seven-day rollback horizon; a signed date alone is insufficient. This rollback pin stays within the primary vendor; the separate cross-vendor fallback still requires its own drill. Every gate must cite an HTTPS artifact and its SHA-256 digest. Required gates cover project endpoint access, request/response contracts, tool history and signatures, structured output, causal regressions, tenant/privacy controls, fallback and rollback drills, and measured latency/cost. The trusted verifier must apply the owner-approved numerical acceptance bounds; the discovery script does not invent benchmark thresholds or claim that a catalog listing proves them. Receipts expire after 24 hours and cannot be reused for a changed commit, adapter/source bytes, policy or candidate. Preparation with receipts also refuses a checkout whose HEAD differs from the claimed source SHA or whose relevant tracked source is dirty/untracked. Source hashes include the migrated MultiModelClient, Boss KG pipeline and Cell03 structurer, plus the affected Docker/build definitions and dependency manifests.

Only one fully validated candidate can produce a patch per run. It updates the specific role pin, canonical values and registered mirrors using AST-bound edits; unknown shapes, pending flips or mirror drift stop patch generation. Source is never rewritten by discovery. The proposal job applies the patch on chore/model-updates, runs model governance checks, pushes the branch and dispatches open-review-prs.yml for it. That workflow runs main's code and opens the owner-review PR (labelled protected-path-review, not a draft); the proposal job itself never creates a pull request, because the repository token cannot create one here and the create call lives only in the shared scripts (tests/governance/test_open_review_pr.py). Until the owner sets the AUTO_MERGE_PR_TOKEN secret, the opener is red and files one blocked issue for the branch instead. Every later run asks the opener again while the branch has no pull request, so setting the secret is enough to open it; a branch whose pull request was already closed or merged is never handed over again and must be deleted before the next proposal. A diverged existing proposal branch refuses a push instead of overwriting review edits. An open proposal causes later runs to leave that branch untouched. Resolve or merge the current proposal before the next one; no force push or automatic merge is used.

The scheduled workflow and signed-receipt protocol are preparation machinery. No live catalog access, provider smoke test, benchmark, fallback drill or production promotion is established by their unit tests. Before enabling unattended promotion, review a separate proposal for validator execution, policy-bounded auto-merge authority, protected rollout/canary behavior, metric alarms and tested rollback. This change preserves the current production gates.

Official catalog references:

← All docsView source on GitHub →