mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
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:
@@ -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") == ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user