Skip to content

feat(core): enforce managed provider policies - #48403

Draft
adamdotdevin wants to merge 1 commit into
v2from
managed-policies
Draft

feat(core): enforce managed provider policies#48403
adamdotdevin wants to merge 1 commit into
v2from
managed-policies

Conversation

@adamdotdevin

Copy link
Copy Markdown
Member

Issue for this PR

Paired with https://github.com/anomalyco/opencode-console/pull/2191.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Applies Console organization rules after authored policies at catalog reads and model resolution. Protects the managed loader from plugin-removal directives and binds snapshots to the active connection.

Revision-zero defaults work without policy publication. A cold-start config failure blocks all normal providers, even for an org with no custom rules; transient refresh failures retain a valid same-identity snapshot. Console's contract must deploy before this client. The availability tradeoff is called out in the spec.

How did you verify your code works?

  • 155 tests across policy, config, provider, model, catalog, session, and supervisor suites; 10 matcher tests.
  • Full 35-package typecheck with the required Bun 1.4.2.
  • Paired Console browser/API/MySQL run passed and exercised this real loader; matcher/fixture conformance passed.

Screenshots / recordings

N/A: runtime changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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