The agent, team and project registries

Three records hold who the fleet is: one file per agent under ~/.config/team/agents/, one teams file, and one projects file. team writes them — registration happens at a seat's first launch by up, add, restart or reload, or at its first successful settings write, which creates the record a declared but never-launched seat has none of — and routing, team list, team send and team projects read them. Since 0.5.5 the team's own configuration is a registry record too (team-config/<team id>.json, edited with team config); .agents/team.yaml is legacy, read only by team migrate and team import.

The agent record

~/.config/team/agents/<id>.yaml, one file per agent:

FieldMeaning
idagt_ and twelve hex digits, assigned at registration
namedisplay only: a rename edits this field and nothing else
signingthe model, version and role triple the commit gate checks
lab, clithe vendor and the CLI the seat runs
launchthe raw launch line, recorded as it was started; launcher is a reference, later
reachthe namespaces the agent answers to: team, seat, session, pane, and a cross-session address when it has one
seat_handlewhen the launch supplies one, the stable seat_<12 hex> handle team seats shows; set once, never changed
mcp, skillsdeclared now, filled later
lifecycleregistered, running, stopped or retired
orphaned_atwhen the team file stopped declaring the seat, as first seen by a reconcile pass or a retiring stop; the record and every signed setting are kept
provenancewho registered it, and when it was registered and last updated

up, add, restart and reload register a seat's agent at its first launch and re-point it on every relaunch; remove and the stop of a seat end it — stopped comes back to the same agent, retired never does. A relaunch keeps the id and re-points reach.pane, and every write goes through a temporary file and a rename. A seat the team file declares that has never launched gets its record at the first successful settings write aimed at it, seeded from the declaration and registered with no pane, session or state; a dry run, a refused write and an unset that finds nothing to remove create nothing. Removing a declaration never deletes a record: the record is marked orphaned and keeps its signed settings. A seat the file declares again and a launch then finds keeps the same id and signed settings and has the current mark cleared.

The team record

~/.config/team/teams.yaml, one entry per team, keyed by the team id — the first twelve hex digits of the SHA-256 of the root's real path, so two stores of one root are one team:

FieldMeaning
project, entitythe team's own name — today's project: key in the team file, not the project it sits in — and the entity it belongs to, which seeds the team's lobby at registration
project_idthe project the team sits in, by project ID, or null: a team no project names is its own project; written from the team file's in_project
sessionthe herdr session — the last one a command acted on, up --session alt included
root, lobbythe checkout, and the lobby folder for session
lobbiesthe lobby recorded for each session, session among them — recorded at a session's first registration and kept: editing the file's entity never moves a registered team's lobby, and an explicit lobby: in the file re-records it. A second team file in the same checkout, and up --session alt, each record their own session's entry without taking another's; up --session alt also records the file's own session, so a plain team check reads the same lobby back. A record written before the map reads as one entry: lobby under session
rosterone {agent, seat, role} per seat, and the capabilities on the seats that hold them: leads: true on the one seat the team file marks as its lead, assistant: true on the one it marks as its entity's assistant — readable without a role name; an absent field means the seat is not known to hold the capability, so a record written before the fields reads unchanged
lifecycledefined, running, stopped or archived
issue_trackeroptional: the issue tracker project the team's work is tracked in, one per team — see The team's issue tracker. Absent means the team names none
provenanceincluding when the record was last updated

The team's issue tracker

A team record can name the project, in some issue tracker, where the team's work is tracked. It is a property of the team, not of an agent or a seat, and it is a reference only: the tracker's name and where to look, never a credential. TeamCLI stores and returns it; it does not call the tracker.

team config edit
issue_tracker: { type: linear, project: "Team CLI", team: FLO }
KeyRequiredFormat
typeyesthe tracker kind, an open word and not a fixed list: ^[a-z][a-z0-9-]{0,31}$ — lowercase, starting with a letter, then letters, digits or -, at most 32 characters
projectyesthe tracker's own reference to the project, as free text, 1 to 200 characters: a Linear project name, a GitHub owner/repo or project
teamnothe tracker's team or namespace key, when it has one, 1 to 64 characters: a Linear team key such as FLO
urlnoa link to the project: an absolute http or https URL of at most 512 characters, with no credentials (user:password@), no query and no fragment

Every text is one line: no control characters or line breaks, and no whitespace at either end. No other key is accepted, and a value that looks like a credential (a Linear or GitHub token prefix followed by a token) is refused. Do not put a token, a password or an API key here, in any key; the field is read by every command that reads the registry and is not a place for secrets.

type is not an enum: linear and github are the values the documentation names, and any other word that matches the pattern is valid and kept as written. What a word means is for whoever reads the field; TeamCLI attaches no behaviour to one.

Absent means no tracker. A team whose record has no issue_tracker names none: every record written before the field existed reads this way, and it is never written as an empty value or null. A record that has the key but not in the shape above is refused with a message naming the file, the team and the key, like any other malformed record, and the registry file is left as it was: it is never dropped or rewritten. Every write that changes the team's record (up, down, init, register, a roster or lifecycle change, a settings write) keeps the field exactly as it was.

Examples:

team config edit
# Linear: the project by name, the Linear team by its key.
issue_tracker: { type: linear, project: "Team CLI", team: FLO }

# GitHub: a repository as owner/repo, with a link to it.
issue_tracker: { type: github, project: acme/widgets, url: "https://github.com/acme/widgets" }

# A tracker TeamCLI has no word for: any valid type works, and the project is free text.
issue_tracker: { type: youtrack, project: "Platform" }

Older builds. A build from before this field reads the key without complaint — the team record reader of those builds ignores keys it does not know — but its writers rebuild a team's record from the fields they know, so the first write by an older build (up, down, a roster change) drops issue_tracker from the file without a message. On a machine where more than one TeamCLI build runs against the same home, set the field only after every build there is upgraded, or set it again afterwards. The same holds the other way for a build that knows the field, reading a record written by a later build that adds a key to it: the key is refused, not ignored, as above.

Setting it today. The field is part of the registry format and of the registry module's write path (upsertTeam takes an issueTracker, and null removes it). No team file section and no command sets it yet.

The project record

~/.config/team/projects.yaml, one entry per project, keyed by the project ID — the display name lowercased, every run of characters outside letters, digits, ., _ and - written as one -, nothing left at either end: TeamCLI is teamcli, Team CLI is team-cli. A team file's in_project writes the display name, and the id is the key it reaches. The id is minted when the project is first written and never moves: a rename writes name. The team file's in_project writes this record — the name, the entity and the team IDs — and a team that sets project_lead: true beside it supplies lead on every launch: the agent of that team's own lead seat, so a mark that moves in the file moves the record with it. A file that stops claiming project_lead, or stops naming the project, clears the lead it set — only while the lead on record is one of that team's agents — so an agent the team no longer leads with is not left admitted as the project's lead. A team the registry names in two projects is refused by team check, which names both.

FieldMeaning
namethe display name — what people and team files call the project (TeamCLI)
entitythe entity the project belongs to
leadthe project lead, by agent ID — never a seat or a role name: the agent of the lead seat (leads: true) of the one team whose file sets project_lead: true beside in_project, re-resolved on that team's every launch and cleared when that team drops the mark or leaves; a lead seat with no agent yet leaves it null
teamsthe team IDs the project groups
provenancewho registered the record, and when it was registered and last updated

The id is the identity

An id is assigned once and never changes: a rename moves name, never id, and a retired id is never reused. A seat keeps its id across relaunches; only reach.pane is re-pointed. Routing and the sender header read the id — a name is for display, and for addressing a target as <seat>@<team>; a human name addresses one as @<nickname> in its own team or <nickname>@<team>.