Skip to content

test: validate CODAGT-74 organization-scoped AI stack#27402

Draft
mafredri wants to merge 11 commits into
mainfrom
mathias/codagt-74-aggregate-validation
Draft

test: validate CODAGT-74 organization-scoped AI stack#27402
mafredri wants to merge 11 commits into
mainfrom
mathias/codagt-74-aggregate-validation

Conversation

@mafredri

Copy link
Copy Markdown
Member

Validation contract

This draft PR validates the coordinated CODAGT-74 stack against main at d485786dfe399d7607f17d971d4366724e8cd3e9.

  • Validation only. Do not apply direct implementation fixes to this branch.
  • Do not merge this 11-commit aggregate as the delivery mechanism.
  • Defects belong to the earliest owning source PR. After an owner changes and descendants are rebased, discard this branch and rebuild it from the new immutable heads.
  • After the stack is accepted, squash the stack into one commit and rerun the complete validation suite on that exact squash commit before atomic merge.

Source and replay manifest

Unit Source PR Immutable source head Aggregate replay
Model database #27354 a827eb1566203dc66921d2699083425660142270 34bd4bebe183c58a51e53574112bfa85f9d26db7
Model RBAC #27355 5fd68d1e57f6db429e139d58a0557327796a4a1b 3e6301f0294c67c4ddefc935c2db143535e140d4
Model API #27356 546eb44e35892c9e063ae4d497ec3ed7aabf2e7d 54d68f8a3122559f08c406286a63af6b13ef1a0b
Model runtime #27357 39e7f510410d2dd3735733975af2e878c0c10cf0 24357052e5a2d153b01ea5229d34a186d8d4d954
MCP database #27380 ac584198c167df555179e35dc8fd83fbc8eb0407 f7f914044aad663a2f893f4f2cb335acaa66a65b
MCP RBAC #27381 595f1fa108ba3e4e689f448fa4452c9d8bc70906 597feaa3c5ff68a2aa1dc3c0dbe1c1109186718c
MCP API #27382 bbf7177b23228e55627ac264101964eb19166ca8 f2c6bfcbb4a2e2f3caf764b973ab8c99ca3b1b1f
MCP ACL #27383 098cf35450559373d13623842e78fa1b3efde718 1e76fc51acb73c3ec8a563035cdc5cb6e8a0b3b9
MCP runtime #27384 3ab6b8b4fc6fa591c99485052ae09771911420ce a21c6dc13ac59c8fbe05f330c241e462fad7d488
Frontend hard cut #27394 d8b0050ae61a46ce90c9e8a118dcd140467771f1 56ae76abeb7fd666049c254c42a089b4c822c7b9
Sharing UI #27396 867757b64db80473ee9be80804fb1e9ec4b07395 ee4ea8fa7657022d852de0e160c219ea4e1ef61c

All 11 stable patch IDs match between each source head and aggregate replay.

Local validation

Passed:

  • generation, formatting, and git diff --check, with a clean worktree
  • full Go test suite in an isolated Git environment: 28,207 passed, 57 skipped
  • repository lint
  • complete repository build
  • frontend check, unit tests, and production build
  • formerly failing AgentsPageView.stories.tsx: 24 passed
  • Storybook static build
  • repository-wide legacy route, zero-argument query helper, and global frontend cache-key searches

Storybook test runs reproduce only baseline failures from the captured main:

  • AgentChatPage.stories.tsx: With Message History
  • Tool.stories.tsx: MCP Tool Completed
  • AgentCreateForm.stories.tsx: Submits Reasoning Effort
  • full-suite-only timing failure in AgentChatPageView.stories.tsx: Scroll To Bottom Button Works With Inverse Scroll
  • AgentChatPageView.stories.tsx also reports the same xterm unhandled errors on aggregate and baseline

The aggregate-specific AgentsPageView provider defect from the prior cycle is corrected.

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

mafredri added 11 commits July 22, 2026 00:46
Clone existing model configuration into each organization and enforce organization-local references for chats, messages, settings, and defaults.
Use organization ownership and direct read ACLs for model discovery and management without introducing a separate use permission.
Replace global model and model-bearing settings contracts with organization-qualified CRUD, ACL, discovery, and SDK surfaces.
Resolve runtime settings and model caches within each chat organization, propagate scoped invalidations, and update backend operational callers.
Clone MCP data into each organization and require organization context for configuration and token queries.
Authorize organization-owned MCP configuration and token operations through a dedicated RBAC resource.
Move MCP configuration collections under organizations and conceal unauthorized item and OAuth access.
Add share authorization and ACL-aware MCP configuration filtering after organization isolation is established.
Validate MCP selections against organization ownership, enabled state, and current ACLs while keeping existing chat runtime loading organization-scoped.
Require explicit organization context for model and MCP resources so
queries, settings, and chat callers cannot fall back to deployment-wide
state. Preserve action-specific permissions and URL selection across the
existing frontend.
Model and MCP readers need an item-scoped sharing surface that does not depend on broad organization management permissions. Resolve each resource by ID, canonicalize its organization, and gate ACL mutations with the share permission.
@linear-code

linear-code Bot commented Jul 22, 2026

Copy link
Copy Markdown

CODAGT-74

@github-actions

Copy link
Copy Markdown

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

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