Skip to content

feat(managed-config): move untouched seeds to the current default - #287

Merged
vossiman merged 2 commits into
mainfrom
feat/reseed-model-defaults
Nov 22, 2026
Merged

vossiman merged 2 commits into
mainfrom
feat/reseed-model-defaults

Conversation

@vossiman

@vossiman vossiman commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Seeded keys were written once and never again, so changing a default (like gpt-6.1-sol to gpt-6.2-sol in chore(models): gpt-6.2-sol for Codex and OpenCode, Fable 5.2 docs #285) reached only new installs.
  • New reseeded_keys list in configs/managed-config.json, next to retired_keys: each entry names a seeded key and the values the blueprint shipped before. If the user's value is still one of those, sync replaces it with the current seed. Any other value is the user's choice and stays.
  • Implemented in both merge paths: the JSON jq merge (lib/blueprint-deploy.sh) and the TOML merge (lib/managed_toml.py). It runs after seeding and before retirement.
  • Entries: Codex model (shipped gpt-5.5, gpt-5.6-sol, gpt-6.1-sol, requires codex 0.171.0+) and OpenCode model (shipped openai/gpt-6.1-sol only, requires opencode 2.3.1+). Values come from the git history of both config files; the old Anthropic OpenCode defaults are left out so no reseed switches provider.
  • requires gate: the reseed waits until that tool reports at least min_version, so a v1 or older v2 OpenCode keeps its working model. The tool is probed only when the file still holds an old value, so normal passes and dry runs start nothing.
  • Docs: README managed-config rule 2 and the Codex note; the 2026-11-22 audit entry no longer says existing machines keep the old model.
  • Matching is by value: an old default set on purpose moves too; any value outside the shipped list stays. README and audit say so.
  • When the default changes again, add the old value to shipped. A guard test checks that each reseeded key is a seeded key and that shipped never contains the current seed.

Independent review

Codex gpt-6.2-sol, effort high, review-only, on cf81056.

  • P2, the OpenCode reseed could swap a working default for one the installed OpenCode cannot run (v2 < 2.3.1, or OpenAI disabled with an old Anthropic default): real, fixed with the requires version gate and by dropping the Anthropic values.
  • P2, docs promised hand-picked values stay although matching is by value: real, fixed (README, audit, test renamed to "a model outside the shipped list is never reseeded").

Test plan

  • New tests: an old default moves to the current seed (TOML and JSON, other keys untouched); a user-chosen model (gpt-6.2-astra, openai/gpt-6-luna) is left alone; the guard test above
  • New test: a reseed waits while the tool is too old (codex 0.170.0, opencode 1.19.6) and when the tool is absent
  • Full suite: 1704/1704 ok (the dry-run test proves no agent CLI starts)
  • aicoding-sync --blueprint <branch> --dry-run on the desktop: would update ~/.config/opencode/opencode.json (still on openai/gpt-6.1-sol); Codex is untouched because its model is a personal gpt-6-astra

🤖 Generated with Claude Code

vossiman and others added 2 commits November 22, 2026 23:01
A seeded key listed in reseeded_keys takes the current seed while it
still equals a value the blueprint shipped before. The Codex and
OpenCode default model use it, so machines still on gpt-6.1-sol (or an
older default) follow the gpt-6.2-sol default on their next sync; a model
chosen by hand stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review findings (Codex gpt-6.2-sol): a reseed entry can now require a
minimum tool version, so OpenCode only moves to gpt-6.2-sol on 2.3.1+
(v1 and older v2 keep their working model) and Codex on 0.171.0+. The
OpenCode list keeps only the OpenAI default, so no reseed switches a
provider. Tools are probed only when the file still holds an old value.
Docs say plainly that matching is by value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vossiman
vossiman merged commit e37a92c into main Nov 22, 2026
1 check passed
@vossiman
vossiman deleted the feat/reseed-model-defaults branch November 22, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant