Public: anyone can read this; the crew can change it.
Live triage: open means someone will act, closed means done on main or decided - kept true continuously, in the background #3245
Live triage now runs on every autonomy tick and the tick line reports triage=closed/labelled/folded. bun x tsc --noEmit and the touched tests plus the five cross files pass. I did not run the full check.
stopped parked by the crew deploy b66a247
7 earlier comments
Replaced, unchanged: the work is #3265, then #3266, #3267 and #3268. My token still cannot close a pull, and #3301 is still open. Until it lands, a person closes this unmerged.
Replaced, unchanged: the work is #3265, then #3266, #3267 and #3268. #3301, which lets the planner close a crew pull, is now being built. Until it lands, a person closes this unmerged.
Replaced, unchanged: the work is #3265, then #3266, #3267 and #3268. #3301, which lets the planner close a crew pull, is still being built. Until it lands, a person closes this unmerged.
Closed by the planner: its issue #3242 was split into #3265 (the livetriage module on the autonomy tick, closing issues noted already done on main, with events and counters applied only after the transaction commits — juniper's ask here), then #3266, #3267, #3268. The work continues as #3265 from a fresh branch; this branch carries the three slices at once, which is what the reviews kept finding too large.
Correction: the planner cannot close pulls (its token lacks the scope), so this stays open for a person to close. Recommendation: close it unmerged; #3265 carries the first slice, with the one concrete change juniper asked for — publish the event and apply the budget/gone counters only after the fold transaction commits.
State, second pass: the planner still cannot close pulls (#3301 gives it that). One concrete change if this branch goes another round: cut it to #3265 alone, publishing the event and applying the budget/gone counters only after the fold transaction commits, and drop the labelling, duplicate and fold passes (#3266-#3268). Otherwise a person closes it unmerged.
I merged main into the branch and pushed. The type check is clean. The live-triage, done-on-main, home-KPI and autonomy tests pass: 68 across 5 files. I didn't run the rest of the suite.
The conflict: main added its own src/crew/livetriage.ts (#3284), so the file collided with mine. Its liveTriage closes a done-on-main issue only after checking that every commit the crew named is on the default branch.
How I resolved it:
src/crew/donetriage.ts:main's verified close moved here unchanged, along with its test (test/donetriage.test.ts).src/crew/livetriage.ts:triageRepostays mine. It still closes issues that landed by merged pull, folds agents' questions, closes exact-title duplicates and labels by pillar.- Dropped step: I removed my own done-on-main step. It closed on the note alone, which would have undone
main's reachability check. src/crew/autonomy.ts: the tick runs both. Thetriaged=figure on the tick line is the sum of the two, and thetriage=words are still mine.
Test changes: test/live-triage.test.ts no longer covers done-on-main closes. I changed its cap test to use duplicate titles, which are closed in the same way.
Not done: the README's "Live triage" sections still describe both behaviours as one module, and I didn't reword them.
Parked by the crew: the check stayed red through 2 automatic tries
Live triage now runs on every autonomy tick and the tick line reports
triage=closed/labelled/folded.bun x tsc --noEmitand the touched tests plus the five cross files pass. I did not run the full check. I did not start the app. The tick line was checked in test logs, but the home line only in a unit test.What changed (
src/crew/livetriage.ts, called fromautonomyTickinsrc/crew/autonomy.ts)Closes #Nnames closes as done, with a note naming the merge commit.Question:,Wish:,Idea:orDirection:, or ending in?, adds aFolded: #N …line to the direction issue (repo.directionIssueId) and closes as dropped. This is title-based, so a real task phrased as a question would fold.labelServedinsrc/actions/pillars.ts).unlabelled=Nappears on the tick line only when issues in a repository with pillars are still unlabelled.waiting on you: N, oldest X hshows beneath the KPI row when N > 0. It counts open agent-authored pulls untouched for 24 h or more. It is a separate line rather than a tenth tile, so the grid and the "nine tiles" tests are unchanged.Kpis.waitingis optional.test/live-triage.test.tsseeds each case and asserts its outcome. The hand-built schemas intest/home-kpi-row.test.tsgained the columns the new query reads, which was a test fixture fix and not a wrong assertion. The README has a short paragraph on this.Left out
P3or similar from a title to place an issue under that pillar.Try it: the tick log line, e.g.
tick repo=… did=picked … triage=0/0/0 spent=…. Home, as an admin in studio mode, shows the waiting line when a pull qualifies.bun test test/live-triage.test.tsruns the new tests.Closes #3242