Repository navigation
feat: let agents triage, labeling and commenting on tickets alone - #412
Merged
Merged
Conversation
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.
…great-if-it-was-possible-to
…great-if-it-was-possible-to # Conflicts: # crates/fctl-control/src/reviews.rs
This comment has been minimized.
This comment has been minimized.
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.
Contributor
Author
|
Answers to the findings in fctl review's summary, all fixed in b83a40e:
|
kalaspuff
approved these changes
Nov 6, 2026
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 | |---|---| |  |  | |  |  | |  |  | |  |  | |  |  | ## 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>
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.
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.fctl run,fctl schedules,fctl projects setandfctl tokentake--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 andfctl schedulessay what a schedule's agents may do on GitHub when that is less than pushing, as sessions already do beside their status.fctl ticketalone, 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".triagein 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 asread, 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.txtdescribe 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 incargo 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 ismain's web app against the same stack.The schedule form, started from the Triage new issues idea, with its GitHub menu open:
The Schedules tab's ideas, and its rows:
The rows at 390 px, 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:
Worth confirming
fctl_domain::tickets::check_write.fctl token --access run --github triage) and a project's cap can use it too.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 throughfctl 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 setandfctl token, and the Triage new issues schedule idea now uses it.Protocol compatibility. Hosts announce
triagein their hello; older hosts are told the agent only reads, unknown levels now deserialize asread, 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