Skip to content

feat(catalog): the chief reads the bot catalog and suggests from a role (G2) - #205

Merged
httpsphl merged 1 commit into
mainfrom
feat/bot-catalog-chief
Oct 6, 2026
Merged

httpsphl merged 1 commit into
mainfrom
feat/bot-catalog-chief

Conversation

@httpsphl

@httpsphl httpsphl commented Oct 6, 2026

Copy link
Copy Markdown
Owner

What

G2 of the bot catalog (spec 26.4).

  • list_bot_templates and get_bot_template: the chief reads the catalog. Other bots get the usual "ask the chief" error.
  • suggest_bot takes an optional template (an id of the catalog). The daemon resolves it before asking the owner: the sheet's role, instructions, model and effort fill what is missing, and the chief's instructions follow under "For this crew:". The approval card and the owner's edits see a plain suggestion, so the app needs no change.
  • An unknown template goes back to the chief as an error, without bothering the owner. Without template, role and instructions stay required. The 8 000 character limit applies to the final text.
  • The chief's rules say to look at the catalog before writing instructions from scratch, and not to invent a role the catalog already has.
  • Spec 26.4 updated to say how the template is resolved.

Tests

cargo test --workspace (548), clippy -D warnings, cargo fmt --check. Five new tests in chief_catalog.rs: reading and filtering, chief only, a suggestion from a role (card, creation, plain bot), the chief's text after the sheet's with model and effort precedence, and the errors that never reach the owner. mcp.rs counts 40 tools now.

Manual test (real Claude Code)

With a running crew and its chief: ask the chief for "someone to handle the social media". Check that it calls list_bot_templates (and get_bot_template), then suggest_bot with template: "social-media", and that the card in its chat shows the sheet's instructions and lets you edit them before approving. Depends on the model's choices, so FakeRuntime cannot prove it.

Next

G3: the Bot agency screen in the app (cards, Learn more, Add to crew, three languages).

list_bot_templates and get_bot_template (chief only) and a template field on suggest_bot. A suggestion with a template is resolved before the owner is asked: the sheet's role, instructions, model and effort fill what is missing and the chief's instructions follow under 'For this crew'. The card and the owner's edits see a plain suggestion. The chief's rules tell it to look at the catalog first.
@httpsphl
httpsphl enabled auto-merge October 6, 2026 03:49
@httpsphl
httpsphl merged commit a0184cc into main Oct 6, 2026
4 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