Discussions¶
The ledger holds what later changes must follow. A discussion holds how a task gets there while it is happening: the plan, the choices made along the way, what changed after review, and the questions still open. Discussions are kept apart from the ledger. Their posts are not reviewed, so they never become the team's rules on their own.
One discussion per task¶
An agent opens a discussion when it starts a task, for a repository and the task's ticket or branch:
Opening again with the same repository and ticket (any case) returns the discussion already open, so every agent working on the task posts to the same place. When both sides name a ticket, the tickets decide: two tickets on one branch are two discussions. The branch is used only when one side has no ticket.
Posts¶
Each post has a kind:
| Kind | When |
|---|---|
plan |
At the start: what the agent is going to do |
decision |
A choice it made on its own, with the alternatives it dropped |
change |
A review comment or a colleague moved the work to something else; cite the pull request (pr:#123, mr:!123) |
question |
Something for the people working on the task |
concern |
A risk someone should look at |
comindly discussion post <id> --kind decision --body "Retry in the worker, not the client: …" \
--on export_invoices --evidence pr:#123
on names the symbols or files a post is about. A file is looked up in the discussion's repository,
by its path in the repository or by a longer path that ends with it, such as an absolute one. Code
that exists only on the task's branch is not indexed yet, so leave it out.
Where they show up¶
why and preflight list the open discussions on the code they cover. An agent about to change that
code reads the discussion (comindly discussion read <id>, or discussion with read over MCP) and
asks there instead of colliding with the work in progress. comindly discussion list filters by
repository, ticket, branch or text, and the app's Discussions page lists them, newest activity
first, with each discussion's posts and the code they are about. People post there too: a member adds
a post under an open discussion, with a kind and evidence like an agent's.
Posts are shown as quoted working notes with their author, never as instructions or as the team's
decisions. What a later change must follow still goes to the ledger with remember, confirmed by a
person. Such a record can cite the discussion it came from as evidence, discussion:<id>, so a reader
finds the reasoning behind it; the id must name a discussion in the index.
Closing¶
Each indexing run closes the discussions whose work is done:
- Merged or closed: the pull or merge request a post cited last (
pr:#123,mr:!123), or else the newest one opened from the discussion's branch, merged or was closed after the discussion opened. The branch lookup finds requests from branches in the same repository, not from forks, so cite the request in a post when it comes from a fork. These lookups need the hosting token used for cloning, and share the run's limit on lookups with evidence on records; the rest wait for the next run. - Inactive: nobody posted for
discussion_inactive_daysdays (30 by default; 0 turns this off). Set it withcomindly team set discussion_inactive_days=14.
The check runs at the end of an indexing run. With auto_index on, a merge moves the default branch
and starts a run, so a merged request closes its discussion within minutes. A request closed without
merging, or a quiet discussion, waits for the next run, and with auto_index off for the next
comindly index. Lookups for record evidence go first in a run's limit, so with much evidence waiting
some discussions are checked a run or two later; inactivity closes them regardless.
A person or an agent can also close a discussion by hand, for example one opened by mistake or for work that stopped, with a note saying why:
Over MCP this is the discussion tool's close action, with the note as body; over HTTP,
POST /api/v1/discussion/close with discussion and note; in the app, Close under the
discussion. A viewer cannot close one.
A closed discussion is read-only: posts to it are refused. why and preflight no longer list it, and
opening its ticket or branch again starts a new discussion. read still shows it, headed with how it
closed (for example "Closed (merged in pr:#123)" or "Closed (closed by alice@example.com)", followed by
the note). list shows open discussions; --closed (CLI) or
closed: true (MCP, HTTP) includes closed ones.
Access and storage¶
Over HTTP, a member's or an admin's agent can open and post; a viewer's agent can only read. Posts
about another team's repositories follow the same team rules as records. Discussions are stored under
<index>/_discussions/, one folder per discussion; closing adds a closed.json to it, and nothing
already written changes.
An admin can delete a discussion for good, with every post and its close: Delete in the app,
comindly discussion delete <id> --yes, or POST /api/v1/discussion/delete with id. The audit log
notes who deleted which. A record citing it as discussion:<id> keeps the id, which then leads nowhere.