DEV Community

Sam Rivera
Sam Rivera

Posted on

Five Gates Before You Promote a Shared AI Endpoint

Illustrative: a shared AI endpoint serves a CLI helper, review bot, and docs generator. A proposed change swaps the model ID and adds two tools. What evidence belongs before each caller gets it? Gates are proposed practice; linked docs supply documented behavior.

Steps

  1. Record the change. Model ID, tool allowlist, owner, review date, expiry. No owner, no promotion.

  2. Review config and permissions. Diff the model ID and allowlist. Name the permission binding reviewed: access can change outside the model diff. Kubernetes RBAC grants are additive; RoleBinding scope is namespace, ClusterRoleBinding is cluster-wide; removing one binding may leave another grant (RBAC docs).

  3. Check dependency behavior where relevant. The official npm lockfile-install documentation says the install requires a lockfile and exits when dependencies disagree with package.json. Match tree-affecting flags to lockfile creation.

  4. Name rollback and blast radius. Kubernetes documents that a Deployment creates a revision on a Pod template change; scaling alone does not. Rollback restores the Pod template, not unrelated database changes. Record revision and non-reversible state.

  5. Promote to one caller, then observe. Set window and abandonment rule first: two tool-permission denials or errors above threshold.

Test

No commands or code were executed.

Gate 2: list bindings affecting endpoint or caller namespace; if access survives removing one, inspect other grants.

Gate 3: start with a passing install; change a declared dependency but keep the lockfile fixed, repeat the CI install. Disagreement should error. A success evidences lockfile/package.json agreement, not unrelated dependency state; inspect inputs and CI if unexpected.

Gate 4: in a scratch namespace, record a Deployment's revision, scale it, compare templates; scaling should not create a revision. A Pod-template change should create one. Roll back and compare; check external data separately.

Gate 5: record window and threshold first. If crossed, return the caller to the prior revision and record observations.

When this does not apply

Single caller, no shared credential or permission change: drop gate 5; keep owner and expiry. No dependency install: skip gate 3. Prompt-only edits may affect cost or output.

This article was created with AI assistance.

Top comments (0)