fix: auto-delegation to the crew + crew-chat visibility #110
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_shrimp!110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "int_delegate_crew"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the "no auto delegation to the crew" investigation in #99. Two root causes were found and fixed:
agent.list(a server JSON-RPC method, not an LLM tool) and no context provider injected the roster, so the model assumed "no crew installed" and did everything itself.delegate_taskspawns an in-process sub-agent that never writes to the durableagent_messagesmailbox, so delegated work never appeared in the per-member crew-chat threads.Changes
[installed crew]roster into the chat-path system prompt (newCrewRosterProvider) listing each registered member by name and role, so the model delegates to them by name viadelegate_task { agent: "<name>" }.agent_minimal_base.md(drop the deadagent.listreference; key off the injected roster).delegate_task/delegate_parallelinto the crew mailbox: when a delegation resolves to a registered crew member (by explicit name, or by mapping a specialist profile to the member of that role), mirror the task and its result into that member's crew-chat thread.Tests
Related to #99
#99