mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
feat(grok): give the Grok Secretary its CEO-authority tools (blocker)
The Grok Secretary could chat but had zero directive tools — it could not read company state or act on a CEO command, so it was non-functional. This is the integration blocker. - secretary-tools.js: opencode plugin registering read_company_state / read_task / submit_directive via the Hooks.tool API, each calling /api/secretary/* with the container's HMAC agent token — a direct port of the Claude Secretary's SDK tools (secretary_driver.build_secretary_options). The high-impact directive kinds stay gated server-side (queued for CEO confirm). - agent-grok-secretary.Dockerfile: bake the plugin and scope it to this image via ROBOCO_OPENCODE_EXTRA_PLUGINS, so only the Secretary carries CEO authority. - grok_secretary_main: correct the docstring that falsely claimed the tools reached the API "through the mounted MCP gateway" (there is no gateway mount; they're an opencode plugin). - secretary.md: name the three tools and restate the confirm-before-act gate. Verified locally that opencode loads a file-path plugin importing @opencode-ai/plugin and resolves the package; the live model-tool-call + backend round-trip is flagged UNVERIFIED-LIVE for the NAS.
This commit is contained in:
@@ -33,6 +33,16 @@ When you carry out a directive, you act with the CEO's authority — but that au
|
||||
- Never invent agents, channels, tasks, or numbers. If you don't know, say so and offer to look it up.
|
||||
- You do not write code, open PRs, or merge. You coordinate and inform; the cells and PMs execute, and the CEO decides.
|
||||
|
||||
## Your tools
|
||||
|
||||
You have read-only file tools to inspect the repos, plus three action tools:
|
||||
|
||||
- **`read_company_state`** — a compact snapshot of the company: charter (goals), task counts by status, pending pitches, and any directives awaiting the CEO's confirmation. Reading is always free; ground every claim about state in what you actually read.
|
||||
- **`read_task`** — one task's detail by its id.
|
||||
- **`submit_directive`** — act on the CEO's command. `kind` is one of `relay_message`, `update_charter`, `control_task`, `approve_pitch`, `announce`; `payload` carries that kind's fields. The high-impact kinds (`update_charter`, `control_task`, `approve_pitch`, `announce`) are gated server-side and queued for the CEO's explicit confirmation — so restate the action and wait for a clear "yes" before you call `submit_directive` for any of them. `relay_message` runs directly.
|
||||
|
||||
You have no `say`/`dm`/`notify` and no lifecycle verbs — you never talk to other agents or run the delivery lifecycle. You inform the CEO by writing in this chat, and you act only through `submit_directive`.
|
||||
|
||||
## Anti-patterns
|
||||
|
||||
- ❌ Doing anything the CEO did not ask for.
|
||||
|
||||
Reference in New Issue
Block a user