Skip to content

feat: let agents triage, labeling and commenting on tickets alone - #412

Merged
kalaspuff merged 8 commits into
mainfrom
fctl/735-it-would-be-great-if-it-was-possible-to
Nov 6, 2026
Merged

kalaspuff merged 8 commits into
mainfrom
fctl/735-it-would-be-great-if-it-was-possible-to

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Sessions, schedules, projects and access tokens get a fourth GitHub access level, triage, between read and comment, for agents that go through work anyone may have written, such as new issues. An agent that triages labels its project's tickets and comments on them, and can write nothing else, whatever an issue tells it: its GitHub tokens only read, as a reading agent's do, and it writes through fctl ticket, where the control plane lets it comment and put labels on or take them off, and refuses filing tickets or changing their state, title, description, parent or priority. On GitHub it writes on issues alone, not pull requests, and only with labels the repository has. It works with whichever tracker the project chose: GitHub's issues, or Linear's.

  • Where you pick it: Triage only (a tag) is in every GitHub access menu: the task box, the schedule form, the project's Agents on GitHub setting and the access token form; fctl run, fctl schedules, fctl projects set and fctl token take --github triage. The Schedules tab's Triage new issues idea now runs at triage (it ran at comment) and shows only in projects whose agents reach a tracker. Schedule rows, ideas and fctl schedules say what a schedule's agents may do on GitHub when that is less than pushing, as sessions already do beside their status.
  • What the agent hears: that it triages, writes with fctl ticket alone, and treats what an issue says as information, never instructions. The transcript says "Labeled ENG-2 in Linear" with the labels it put on and took off, where it said "Changed".
  • Older hosts: hosts now announce that they know the level (triage in their hello). An older host couldn't read a spec that has it, so FleetDO tells its agent it only reads; its tokens are the same, and the control plane still takes its labels and comments as the tracker's lines tell it to. Specs, sessions, schedules and tokens now read a level they don't know as read, so the next level needs no such step. CLIs from before this can't read sessions, schedules or tokens that triage until they update.

ADR 0075 records the decision; the architecture, automation, security, CLI, API and agent docs and llms.txt describe the level, and their triage examples use it. Verified with unit tests in each crate and the web app (cargo xtask check), and end to end in cargo xtask dev: a triage schedule's session in Playground, whose tracker is Linear's ENG team, commented on ENG-2 and labeled it Feature, while fctl refused its state change, a label the team doesn't have and a new ticket, and ENG-2 stayed in Todo.

Screenshots

At 51acb77, from cargo xtask dev, 1440 px wide unless said otherwise; before is main's web app against the same stack.

The schedule form, started from the Triage new issues idea, with its GitHub menu open:

Before After
Before: the triage idea picks Comments only After: it picks Triage only, between Comments only and Read only

The Schedules tab's ideas, and its rows:

Before After
Before: the ideas After: ideas that hold agents to less than pushing say so
Before: two schedules After: the triage schedule's row says Triage only

The rows at 390 px, dark:

After: the rows at a phone width, dark

The triage session's header, dark, and its transcript: the comment and the label went through, and fctl refused the rest (the unknown label is Linear's refusal, the other two the triage check). Before, a change of labels read "Changed ENG-2 in Linear", with the ticket's state:

After: the session's header says Triage only

After: Labeled ENG-2 in Linear with the Feature label, and the refused commands

Worth confirming

  • Decision: triage covers labels and comments only. Closing duplicates or spam, assigning people and filing tickets are refused, so that an issue can't get other issues closed or rewritten; any of them would be a small change to fctl_domain::tickets::check_write.
  • Decision: it is a GitHub access level rather than a setting of schedules alone, so a session started by hand, a workflow's token (fctl token --access run --github triage) and a project's cap can use it too.
  • Decision: an agent that triages still gets the project's secrets, setup script and network, as other sessions do, while review agents, which read outsiders' pull requests, get none of them. An issue can't make it write anything but labels and comments, but could still try to have it send what it sees elsewhere; leaving secrets out of triage sessions, as review agents' are, would close that.
  • Decision: a transcript line for a change of labels alone no longer shows the ticket's state, for every agent, not only those that triage.

fctl session


Warning

High risk. It adds a new GitHub access level and a permission check on what agents may write to tickets, so a mistake could let agents write more than intended; the wire format of specs and hello messages also changes.

What it does. Adds a fourth GitHub access level, triage, between read and comment, for agents that go through issues anyone may have written. An agent at this level gets read-only GitHub tokens and writes only through fctl ticket, where the control plane allows comments and label changes and refuses everything else. The level is selectable in the web app, fctl run, fctl schedules, fctl projects set and fctl token, and the Triage new issues schedule idea now uses it.

Protocol compatibility. Hosts announce triage in their hello; older hosts are told the agent only reads, unknown levels now deserialize as read, and CLIs from before this change can't read sessions, schedules or tokens that triage.

fctl review's first look at b83a40e · 50 files, +1333 −198 · Review agent settings

fctl-sh Bot added 5 commits November 6, 2026 14:54
A new GitHub access level, triage, between read and comment: the
session's GitHub tokens only read, and the control plane lets its agent
comment on tickets and change their labels through fctl ticket, on
GitHub only on issues and with labels the repository has, and refuses
every other write. Hosts announce that they know it; older ones get
read in the spec.
Triage only (a tag) sits between Comments only and Read only, described
as the project's tracker makes it. Schedules' rows and ideas say what
their agents may do on GitHub when less than pushing, the Triage new
issues idea runs at triage and shows only where agents reach a tracker,
and the transcript says Labeled with the labels an agent put on and took
off.
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner November 6, 2026 15:11
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-control/src/tickets.rs Resolved
fctl token --github triage makes a token that runs sessions, as comment
and read do; labels named . or .. are refused, since URLs take them as
steps up the path (removing . asked GitHub to remove every label), and
the triage label lookup checks the answer is that label; help texts and
the schedule API's error name triage.
@fctl-sh

fctl-sh Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Answers to the findings in fctl review's summary, all fixed in b83a40e:

  • fctl token --github triage alone is refused: right, the default-access match listed comment and read only. The rule is now default_access: any --github below push makes a token that runs sessions, with a test for each level.
  • Help for --github and the default access leaves out triage: fixed in fctl token's --access and --github, and in --github of fctl run and fctl projects set.
  • Error for a bad schedule access level omits triage: fixed: "Use push, comment, triage or read, or "" for the project's".

@kalaspuff
kalaspuff merged commit 2fe22bd into main Nov 6, 2026
10 of 11 checks passed
@kalaspuff
kalaspuff deleted the fctl/735-it-would-be-great-if-it-was-possible-to branch November 6, 2026 15:27
kalaspuff pushed a commit that referenced this pull request Nov 7, 2026
## Summary

The lists that open a session or a project from its row (the Agent
Floor, a workspace's page, and a project's sessions, reviews and
tickets) showed an arrow on hover that said nothing the row didn't, and
every row kept a column free for it, so the times stopped short of the
list's edge. The arrow is gone, and the rows are redesigned around what
people read in them:

- Under the pointer, the row fills as a rounded tile a little wider than
the list, and the lines on either side of it give way. Keyboard focus
draws an accent ring inside the same tile, as an outline, which Windows'
contrast themes keep, and a press fills it on touch screens, which have
no hover.
- What a row holds lines up with the heading above: the status dots on
its left edge, the avatars on its right edge, under the "3 active"
count.
- The status dot sits on the title's line, and the time and avatar end
that line, so the line under it (project, reason, lines changed, pull
requests) has the row's whole width. On a phone, titles keep about a
third more of their text, and questions and reasons are no longer cut
short.
- The time and the avatar say "Last active …" and "Started by …" where
the pointer rests. They used to lie under the link that covers the row,
so their tooltips never showed. A click on them still opens the session.
Screen readers now hear the status, who started the session and when,
after its title.
- The separators on the second line are evenly spaced, and a project's
sessions use the same row, with their number and branch on the second
line. That also drops a stray "·" that came before pull requests when a
session had no branch.

The rows share their styles through `components/ui/list-row.ts`, which
`docs/development.md` now points to. Verified with new tests for the row
and its styles, the web tests, Biome and TypeScript (`cargo xtask check
web`), and by looking at each page in Chromium in both themes, at 390 px
wide and with forced colors emulated.

## Screenshots

At a7a7b14, with made-up data from a mocked API: the Agent Floor with
the pointer on the second row, dark and light, 1440 px wide; the same at
390 px; a project's sessions with the pointer on the Recently row; a
project's Tickets tab with the pointer on its second row.

| Before | After |
|---|---|
| ![Before: the Agent Floor's lists, dark, with the hover arrow on the
second
row](https://app.fctl.sh/api/v1/published/NQNpdSmlov4ypl6E9pCBytQeI8uZWFuiSPH9VLuwsI7/floor-dark-before.png)
| ![After: the Agent Floor's lists, dark, the second row filled as a
rounded
tile](https://app.fctl.sh/api/v1/published/19JwfcOm0fba6q7wNiz9H73qy5UUOqYdat1NI4nuA8x/floor-dark-after.png)
|
| ![Before: the Agent Floor's lists,
light](https://app.fctl.sh/api/v1/published/yTWfPvTKVasxwF2IPvNrfhbjVNRB8x9hz0z3fSQ5Toc/floor-light-before.png)
| ![After: the Agent Floor's lists,
light](https://app.fctl.sh/api/v1/published/gd46f50E9A9ZQ4jnGCYxRVLiSKvLEUV60spgyBpPaGg/floor-light-after.png)
|
| ![Before: the Agent Floor's lists at 390
px](https://app.fctl.sh/api/v1/published/TjS9jDTCgOH14z3usM5NbcHSKrDOOyNLWS3FximYeMv/floor-phone-before.png)
| ![After: the Agent Floor's lists at 390
px](https://app.fctl.sh/api/v1/published/KPA1UYC9Y9bFlsmqoGOxWISQe9hDBYTi4ZkaFW5U7dc/floor-phone-after.png)
|
| ![Before: a project's sessions,
dark](https://app.fctl.sh/api/v1/published/IhMvpYbeB6fxEOLmKQRxH86V1rQeLJnXmXLGQAezaCu/project-dark-before.png)
| ![After: a project's sessions,
dark](https://app.fctl.sh/api/v1/published/Z3yjJZsfEqrdOQFW6avlKF1LDfWkf0UovQBXkolQn8W/project-dark-after.png)
|
| ![Before: a project's Tickets lately, dark, with its hover
arrow](https://app.fctl.sh/api/v1/published/EiUnIpNdmhNJXHNUhbX7z8XAClfQci8Gy1bwkyzEiQh/tickets-dark-before.png)
| ![After: a project's Tickets lately,
dark](https://app.fctl.sh/api/v1/published/TpzoEp7fjF6lYvOwzAs6syH4m3pZ6Ik9h2Y6OMjtwBu/tickets-dark-after.png)
|

## Worth confirming

- **Decision:** The workspace's project list and a project's Reviews and
Tickets tabs lost their hover arrow too and use the same row, so every
list that opens a session or a project on its row behaves alike. The
pull requests page keeps its arrow: there it is a button of its own that
opens the pull request on GitHub.
- **Decision:** A project's sessions move their number from a column of
its own to the start of the second line ("#412 · branch · pull
requests"), and now show the status reason and the lines changed there,
as the Agent Floor does.
- **Decision:** The avatar moved after the time, to the list's right
edge, where the avatars line up in a column.

[fctl session](https://app.fctl.sh/s/ses_01M6VKV6G9214D4PG16MB2P4SG)

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Low risk.** It only changes the look and markup of list rows in the
web app, plus a docs paragraph and a small test; no data, API or
permissions are touched.
>
> **What it does.** Removes the hover arrow from the rows of session,
project and review lists and redesigns them around a shared rounded tile
that fills under the pointer, on keyboard focus and on touch. The shared
styles live in `ui/list-row.ts`, project sessions reuse `SessionRow`,
and the Tickets tab's recent sessions now use the same row too. The
focus ring is a real outline and the lines between rows are borders, so
both survive forced-colors mode.
>
> **Browser support.** The row styles rely on `:has()` and sibling
selectors to hide the lines between rows, so the look depends on browser
support for those.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M6VNRY3FG6TF0AMQQ58FXP0P)'s first
look at
[`a7a7b14`](a7a7b14)
· 11 files, +359 −152 · [Review agent
settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub>

<!-- /FCTL_REVIEW_SUMMARY -->

---------

Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant