fix: seed standalone MCP RBAC config #32

Merged
hongming merged 1 commits from fix/standalone-mcp-rbac-config-default into main 2026-05-21 17:36:52 +00:00
Owner

What

  • Make runtime config loading use the same configs_dir fallback as standalone MCP when WORKSPACE_CONFIG_PATH is unset.
  • Seed a minimal standalone MCP config.yaml with rbac.roles=[operator] when no config exists.
  • Add a regression test proving external MCP gets operator RBAC instead of read-only fallback.

Why

External laptop MCP installs usually do not have /configs/config.yaml. The MCP RBAC gate fail-secured to read-only, which blocked delegate_task/delegate_task_async even though operator is the documented default role. This fixes the runtime SSOT path instead of mutating platform workspace.role metadata or prod DB rows.

Verification

  • /tmp/runtime-local-311-venv/bin/python -m pytest tests/test_audit.py tests/test_a2a_mcp_server.py tests/test_mcp_cli_multi_workspace.py -q
  • /tmp/runtime-local-311-venv/bin/python -m pytest -q

Tier

Tier 2 — standalone MCP behavior fix with local regression coverage.

## What - Make runtime config loading use the same configs_dir fallback as standalone MCP when WORKSPACE_CONFIG_PATH is unset. - Seed a minimal standalone MCP config.yaml with rbac.roles=[operator] when no config exists. - Add a regression test proving external MCP gets operator RBAC instead of read-only fallback. ## Why External laptop MCP installs usually do not have /configs/config.yaml. The MCP RBAC gate fail-secured to read-only, which blocked delegate_task/delegate_task_async even though operator is the documented default role. This fixes the runtime SSOT path instead of mutating platform workspace.role metadata or prod DB rows. ## Verification - /tmp/runtime-local-311-venv/bin/python -m pytest tests/test_audit.py tests/test_a2a_mcp_server.py tests/test_mcp_cli_multi_workspace.py -q - /tmp/runtime-local-311-venv/bin/python -m pytest -q ## Tier Tier 2 — standalone MCP behavior fix with local regression coverage.
hongming added 1 commit 2026-05-21 17:32:24 +00:00
fix: seed standalone mcp rbac config
ci / unit-tests (pull_request) Successful in 1m7s
ci / lint (pull_request) Successful in 49s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
ci / smoke-install (pull_request) Successful in 1m11s
ci / build (pull_request) Successful in 1m34s
3261af553e
infra-runtime-be approved these changes 2026-05-21 17:36:44 +00:00
infra-runtime-be left a comment
Member

Approved: targeted standalone MCP RBAC config fix with local Python 3.11 regression coverage and green CI.

Approved: targeted standalone MCP RBAC config fix with local Python 3.11 regression coverage and green CI.
core-devops approved these changes 2026-05-21 17:36:46 +00:00
core-devops left a comment
Member

Approved: targeted standalone MCP RBAC config fix with local Python 3.11 regression coverage and green CI.

Approved: targeted standalone MCP RBAC config fix with local Python 3.11 regression coverage and green CI.
hongming merged commit 6ede662598 into main 2026-05-21 17:36:52 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-ai-workspace-runtime#32