Repository navigation
feat(rooms): add rooms.yaml config, the room log and infer rooms commands - #1951
Merged
Merged
Conversation
…rd resolution and the JSONL log
inference-gateway-maintainer
Bot
marked this pull request as ready for review
November 23, 2026 17:21
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
November 23, 2026 17:21
11 tasks
Room and agent names could both carry a dash, so room dev with agent ops-reviewer and room dev-ops with agent reviewer both got the session id room-dev-ops-reviewer and would have shared one conversation. Room names now keep to letters, digits and underscores, so the room part of an id ends at the first dash and every seat is unique. rooms.yaml is new, so no room breaks. - a log line that does not decode, such as one a crash tore mid-write, is skipped instead of failing the whole log, and an unwritten log reads as an empty list so infer rooms show --format json prints [] and not null - a broken rooms.yaml fails the load naming the file instead of silently falling back to the public room, as composer.yaml does - a name in a room's agents that no agent carries takes no seat, as the resolution's doc promised - the log table cuts a long post on a character boundary through formatting.TruncateText instead of slicing bytes - the rooms tables are left-aligned, the not-found error lists the rooms joined, and cmp.Or replaces valueOr - DefaultRoomsPath, InvokedByRoom and MemberSessionID are gone, the JSONL log asserts it implements the Log port, RoomsRoomConfig is RoomConfig, and doc prose has no semicolons Tests cover a dashed room name, an unknown agent, a torn log line, an empty log, a broken rooms.yaml, infer rooms show through a fresh root, and infer init seeding rooms.yaml.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1944
Summary
First step of rooms, part of #1943: the rooms.yaml split config, the room log, and the
infer roomscommands that read them. A room is a named group of agents the user talks to in one project. Every member keeps its own deterministic session idroom-<room>-<agent>and one append-only JSONL log per room records every post. Later room steps (routing, member sessions) build on this data.Changes
roomskey, home and project layers, through the sidecars table in cmd/runtime/config.go, andconfig.Config.Roomsdefaults inDefaultConfig(). A broken rooms.yaml fails the load naming the fileDefaultConfig()holds thepublicroom withagents: ["*"]in block style. A rooms.yaml that definespublicitself replaces the default, one without it keeps the default (RoomsConfig.WithDefaultRoomin postProcess)infer initseeds a rooms.yaml from the defaultsinternal/roomswith a puredomain/(Room,Member,Post,Route), aREADME.md, the context root expanding rooms against the agents the registry knows, andinternal/AGENTS.mdlisting it~/.infer/projects/<slug of the room's project>/rooms/<room>.jsonl(internal/rooms/infrastructure/jsonl.go, the domainLogport). A post records author, text, mentions, routes with the router's probability, and its timeinfer rooms listandinfer rooms show <room>print rooms with their resolved members and a room's log, both with--format jsonConfig.Validate), so no two rooms' members share a session idpublic(config),"*"resolution picking up a newly added agent and member session ids (internal/rooms domain), log append and read across two appends without loss (infrastructure)Review fixes
devwith agentops-reviewerand roomdev-opswith agentreviewerboth gotroom-dev-ops-reviewer"posts": []agentsthat no agent carries takes no seatformatting.TruncateText)infer rooms showhas an in-memory command test, and the init test checks that rooms.yaml is seededdocs ticket: inference-gateway/docs#1297 tracks the user-facing pages (rooms.yaml, the room log, the infer rooms commands).