Skip to content

feat(coderd): add model config coexistence#27344

Closed
mafredri wants to merge 1 commit into
mathias/codagt-709-new-chat-org-modelsfrom
mathias/codagt-709-model-config-coexistence
Closed

feat(coderd): add model config coexistence#27344
mafredri wants to merge 1 commit into
mathias/codagt-709-new-chat-org-modelsfrom
mathias/codagt-709-model-config-coexistence

Conversation

@mafredri

Copy link
Copy Markdown
Member

Why

Organization-owned model APIs need real organization rows before CODAGT-714 can implement management and sharing. This migration introduces those rows without changing existing runtime behavior or invalidating global model IDs.

Global rows remain authoritative during coexistence. Each active organization receives fresh-ID inherited copies with lineage and an Everyone-group read ACL. Existing chats and settings continue to reference global IDs until later stack layers activate organization runtime behavior and perform the final remap.

Depends on #27340, which stacks on #27338 and #27337.

Verification

  • migration up, fixture, focused assertions, and down migration
  • focused database and API regression tests
  • make gen
  • make fmt
  • make lint
  • make build
  • mandatory pre-commit hook

The full test suite reached 28,019 tests and failed nine unrelated CLI dotfiles tests because my-agent-sh is absent from the environment. Changed database, migration, coderd, SDK, chatd, and enterprise packages passed.

🤖 This PR was created with the help of Coder Agents, and will be reviewed by a human. 🏂🏻

Keep global model IDs authoritative while seeding organization-owned copies for the later scoped API and runtime layers.
@linear-code

linear-code Bot commented Jul 20, 2026

Copy link
Copy Markdown

CODAGT-709

@mafredri mafredri changed the title feat(coderd/database): add model coexistence feat(coderd): add model config coexistence Jul 20, 2026

Copy link
Copy Markdown
Member Author

$Closing this stack because its merge-safe compatibility direction was incorrect. CODAGT-709 will be rebuilt as review-only dependent diffs whose combined head is merged atomically.\n\n> 🤖 This review was automatically generated with Coder Agents.

@mafredri mafredri closed this Jul 20, 2026
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