Repository navigation
Labels
enhancementNew feature or request
Description
Summary
Second step of rooms (part of #1943): decide which members get a post the user writes in a room.
@mentionsof members win, as in Slack: a post with@testergoes totesteronly, without asking a model.- A post with no mention asks the decision model, through the existing
internal/decisioncontext (Decider, oneDecidecall with onepredicateper member): should<agent>(its description) act on this post, given the recent posts? The post goes to every member at or aboverooms.router.min_confidence. - When no member passes,
rooms.router.fallbackdecides:topsends it to the most relevant member,noneposts a notice asking for a mention.
The gateway serves POST /v1/decisions only when started with DECISIONS_ENABLED=true, which the supervisor sets today for Judge.UsesDecisions() (internal/gateway/supervisor.go).
Acceptance Criteria
- A router domain service in
internal/roomsroutes a post by its mentions.@xis a mention only whenxnames an agent the CLI knows: a member gets the post, an agent outside the room gets a "not in this room" notice, and every other@token, such as@README.md, is left for the member's file expansion - In a room a member's name wins over a file of the same name, and
@./<name>refers to the file - Without mentions, one
Deciderequest asks a predicate per member, with the member's description and the last posts as evidence, onrooms.router.model - The post routes to members at or above
min_confidence, andfallbacktopornonehandles a post nobody passed - The post records whom it routed to and with what probability, so a client can show why
- Without
rooms.router.model, only mentions route and an unmentioned post gets a notice -
config.NeedsGatewayDecisions()covers the judge and rooms, and the supervisor starts the gateway withDECISIONS_ENABLED=truefor either (container and binary paths) - Table tests with the counterfeiter
Deciderfake cover mentions, an agent outside the room, file references left alone, a name clash, threshold, both fallbacks and no model
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(rooms): the daemon hosts rooms, delivering posts to members and …