Skip to content

agent-team: steward deactivation via the /admin twin before v3 #750 - #77

Merged
austpryb merged 1 commit into
mainfrom
fix/admin-twin-set-active
Nov 27, 2026
Merged

austpryb merged 1 commit into
mainfrom
fix/admin-twin-set-active

Conversation

@austpryb

@austpryb austpryb commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Why

enforcer-v3 #750 (phase 2) makes core routes act only on the caller's own data for every role. demos/graph-live/agent-team/run.mjs deactivates and re-activates the steward account with the tenant admin key via PUT /api/v1/enforcer/accounts/{id}/active; after #750 that would no longer reach the steward.

What

  • Both calls now use PUT /api/v1/enforcer/admin/accounts/{id}/active (adminSetAccountActive, the #749 twin, live in prod). Same handler and body.
  • README step description updated.

Works both before and after #750.

Edge IP gate

The script targets GRAPH_BASE_URL (default https://api.instruxi.dev). The /admin edge IP gate in enforcer-digital-ocean matches only host api.megprimepay.com (and instruxi-prod sets no admin_allowlist_ips), so these calls pass from any IP on the default host.

Verify

node --check only; the scenario was not run (it writes to a live tenant).

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ntActive)

enforcer-v3 #750 makes core routes own-only for every role, so a tenant
admin's PUT /accounts/{steward}/active would no longer reach another
account. Use PUT /admin/accounts/{id}/active (live since v3 #749), which
works before and after #750.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@austpryb
austpryb merged commit 72bebd8 into main Nov 27, 2026
3 checks passed
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