fix(docs): grant head_marketing read-only documentation access

The spawn manifest mounts the roboco-docs MCP for head_marketing, but
the service READ_ROLES omitted the role, so list/read 403'd against a
tool the agent was handed. Add head_marketing to READ_ROLES so the
manifest and permissions agree (read-only; not added to WRITE_ROLES).
This commit is contained in:
Renn F
2026-06-03 19:13:17 +02:00
parent 5184d08287
commit 2bb83c96a3
3 changed files with 41 additions and 1 deletions
@@ -80,6 +80,15 @@ def test_qa_block_has_no_delegate_or_note_before_claim_noise() -> None:
assert "shell" in block.lower()
def test_head_marketing_block_lists_docs_server() -> None:
# Head of Marketing is handed the roboco-docs MCP at spawn for read-only
# oversight; the briefing must surface it (and the service READ_ROLES must
# agree, or list/read 403 against a tool the agent was given).
block = _orch()._build_verb_server_block("head_marketing")
assert "roboco-docs" in block
assert "roboco_docs_read" in block
def test_unknown_role_returns_empty() -> None:
assert _orch()._build_verb_server_block("nonexistent") == ""