Repository navigation
Description
Summary
First step of rooms (part of #1943): the room config file and the room log, the data every later step reads and writes.
A room is a named group of agents the user talks to in one project. Each member keeps its own session, tools and computer, with a deterministic session id room-<room>-<agent>, like the channels' channel-<ch>-<sender>. A post is one entry of the room's log, written by the user or a member.
rooms.yaml is a split config file like channels.yaml and judge.yaml, loaded under the rooms key:
router:
model: "" # a decision model, provider/model. Empty routes `@mentions` only
min_confidence: 0.5
fallback: top # top | none
context_posts: 20 # room posts since a member's last turn that come with a routed post
rooms:
- name: public # the default room: every agent, built-ins included
agents:
- "*"
- name: release
project: /Users/me/Repositories/app
agents:
- researcher
- tester
- writerBy default there is one room, public, with every agent in it: the Markdown agents of the agent dirs and the built-ins (main, explore, general-purpose, plan). "*" is resolved whenever the room is read, so a new agent file joins public without editing rooms.yaml. A room without project runs its members in the daemon's default project dir.
Seams: the sidecars table in cmd/runtime/config.go, config.Config and DefaultConfig() in config/config.go, config.ProjectSlug for the log's place, and the session Origin from #1942.
Acceptance Criteria
-
rooms.yamlloads as a sidecar underrooms(home and project layers, like the other split files), andconfig.Config.Roomshas defaults inDefaultConfig() -
infer initseeds a commentedrooms.yaml -
DefaultConfig()and the seeded file hold thepublicroom withagents: ["*"](written in block style), which resolves to every Markdown agent plus the built-ins,mainandexploreincluded, each time the room is read - A
rooms.yamlthat definespublicitself, with its own agents or project, replaces the default, and one without it keeps the default - A room without
projectruns its members in the daemon's default project dir -
internal/roomsis a bounded context with a puredomain/(Room,Member,Post) and aREADME.md, andinternal/AGENTS.mdlists it - A post records its author, text, mentions, the members it was routed to with the router's probability, and its time
- The room log is append-only JSONL at
~/.infer/projects/<slug of the room's project>/rooms/<room>.jsonl - Member session ids are
room-<room>-<agent>, and the sessionOriginrecordsroom -
infer rooms listandinfer rooms show <room>(Cobra factories,--format json) print the rooms with their resolved members, and a room's log - Table tests cover config loading, the default and a redefined
publicroom,"*"resolution with a newly added agent, log append and read, and member ids
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsQA
Activity
edenreich commentedon Nov 23, 2026
@infer can you work on this? use /ponytail:ponytail /domain-driven-design /clean-architecture /clean-code /go /go-concurrency /cobra-viper
inference-gateway-maintainer commentedon Nov 23, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.12· CLI:v0.266.0· Gateway:v0.68.0· View JobTodos
Pull Request
#1951
✅ Infer Result: Success
All checks pass. Updating the final todo state:
Done. Everything is committed, pushed, and verified: PR #1951 is ready for review (
Resolves #1944), the Roadmap board item is at QA, and the [DOCS] ticket is filed at inference-gateway/docs#1297.Summary
First step of rooms (#1943): the
rooms.yamlconfig, the room log, and theinfer roomscommands. Two commits onfix/issue-1944(404c933, 50dbe0c), pre-commit clean, tests green.Changes
config/rooms.go-RoomsConfig(router with model/min_confidence/fallback, context_posts, room list) loaded as a split sidecar under theroomskey through the sidecars table (home and project layers).DefaultConfig()holds thepublicroom withagents: ["*"]written in block style; a rooms.yaml that definespublicitself replaces it, one without it keeps the default (RoomsConfig.WithDefaultRoomin postProcess). Room names are validated filesystem-safe, unique, fallback and confidence bounds checked inConfig.Validate.infer initseeds a commented-defaultrooms.yaml.internal/roomsbounded context: puredomain/(Room,Member,Post,Route, theLogport,room-<room>-<agent>session ids, wildcard resolution,InvokedByRoomfor the later session step),infrastructure/jsonl.go(the append-only log at~/.infer/projects/<slug of the room's project>/rooms/<room>.jsonl), the context root expanding rooms against the agents the registry knows (a room without project resolves to the daemon default project dir each read), plus aREADME.mdandinternal/AGENTS.mdlisting the context.infer rooms listandinfer rooms show <room>with--format json, registered in the root command tree (topology test updated).public, wildcard resolution picking up a newly added agent, member ids, and log append/read across projects. The run caught and fixed a real bug:Appendnow creates the rooms directory before opening the file.Skipped by design: no routing or member-session wiring yet (later steps of #1943) and no counterfeiter fake for the
Logport since only one consumer exists. Risk: none - everything is additive; without rooms.yaml the CLI behaves exactly as before.Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.12· CLI:v0.266.0· Gateway:v0.68.0· Exit Code:0· Duration: 11m 28sTokens: 15,574,181 in · 54,931 out · 15,629,112 total (76 requests)
Tool calls: 113 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS