Public: anyone can read this; the crew can change it.
A pure read picks the crew pulls with no push for 7 days, oldest first, with the note that folds each back into its issue #6541
Merged 39d 17h ago, live in production
I added staleFold(pulls, now) in src/flow/stalefold.ts. It returns the pulls with no push for 7 days or more, oldest first, each with its fold-back note. The six new tests and bun x tsc --noEmit pass; I did not run the full check.
-
Reviews
ApprovedApproved. This is the pure-read slice the issue scoped: small, one concept, no I/O,
nowis taken as a parameter (matches the src/flow clock rule), and the six tests cover the 7-day edge, ordering with ties, approved exclusion, the note wording, null issue and a bad date. Nothing reads or writes user input, so there is no security surface here, and the preview shows nothing new, as the pull says. Next two things: (1) wire it to a door, a feed card and asrc/tty.tscommand, with the README line, so it is reachable and not dead code; (2) have the caller pass real pull data and add a test that the note is posted only when a person confirms. Minor: the_atdestructure in the final map could be avoided by sorting a precomputed array of pairs. -
Checks
shipped production is serving it deploy f698c54
-
History
- A pure read picks the crew pulls with no push for 7 days, oldest first, with the note that folds each back into its issue (#6521) a2a2491
- A pull serves flow when its issue carries the `flow` label, not only when it is on a hard-coded list (#6505) 8703d33
- The OpenAPI document describes accepting and dismissing a report, confirming a wait, a milestone's limb and proposal tokens (#6491) 4bbe55d
- Terminal: open the private repository a writer fixes a sealed report in (#6492) 454b745
- A pure read says the median hours from a crew pull's opening to its first review verdict, over the last 24 hours (#6488) 3b6e2e0
- One test proves every flow read with `publicOnly` hides a private repository (#6485) 96ff4b1
- A pure read lists open crew pulls with no push for 72 hours, oldest first (#6484) fd7026f
- A pure read sorts the open crew pulls into one count per state: red, conflicted, changes asked, approved and waiting, awaiting review (#6483) af3686a
- A pure read says the crew's build yield over 24 hours: build runs finished, how many pushed, and how many of those pulls landed (#6482) 9189733
- An issue body's `Files:` line, when present, is the only list of files the hot-file hold reads (#6481) 7f5845d
- CI lockups: main can never silently go red (pre-push check + auto-revert), bisect by halves, reserved gate capacity, every red names its test, gate logs kept (#6466) 9d72b97
- The picker uses the governor's slots, and the feed and tick line say when it lowers them (#6463) 26ed0e3
- Home's "N waiting on you" counts exactly the rows /review lists, and asks older than 30 days fold into "N stale, archive?" (#6462) c8ab1c6
- The app's terminal prints production's address and the newest open preview, gated like the pill (#6461) 3d3423b
- A connected account's repository picker leaves origins.ts for src/web/pages/origin-repos.ts (#6460) 0c9042f
- A reviewed-pull post says the verdict, approved or changes asked, and the reviewer's first sentence (#6459) 0e2eaaf
- /llms.txt lists every MCP tool from the generated tool index, and a test fails when one is missing (#6456) 5e7bd0f
- A fired flow alarm is one line at the top of home and on /boards, with one notification to the owner (#6455) efc1c1b
- The inbox's decision forms leave asks.ts for src/web/studio/decisions.ts (#6454) e39d370
- The prompts settings page and its forms leave settings.ts for src/web/pages/prompts.ts (#6319) 2d2b864
I added staleFold(pulls, now) in src/flow/stale_fold.ts. It returns the pulls with no push for 7 days or more, oldest first, each with its fold-back note. The six new tests and bun x tsc --noEmit pass; I did not run the full check.
- Input and output: each input pull is
{ number, issueNumber, branch, lastPushAt, approved }, withlastPushAtas an ISO string. Each result is the same pull plusdaysandnote. - Stale test: exactly 7 days counts as stale, and just under does not.
Din the note is the whole number of days, rounded down. - Order: oldest push first, with ties broken by pull number.
- Left out: approved pulls. I also skip any pull whose
lastPushAtisn't a readable date, which the issue didn't ask for. - Note: "Folded back: pull #N had no push for D days; its branch
<branch>keeps the work." A pull withissueNumber: nullis still listed, withnote: null. - Not done: nothing calls it yet, so it isn't reachable from the feed or the MCP. It is read-only and closes nothing, since folding a pull back is a person's decision.
The tests are in test/flow-stale-fold.test.ts. They cover the 7-day edge, the order, approved pulls, the note's words, a pull with no issue, and an unreadable date.
I added
staleFold(pulls, now)insrc/flow/stale_fold.ts. It returns the pulls with no push for 7 days or more, oldest first, each with its fold-back note. The six new tests andbun x tsc --noEmitpass; I did not run the full check.{ number, issueNumber, branch, lastPushAt, approved }, withlastPushAtas an ISO string. Each result is the same pull plusdaysandnote.Din the note is the whole number of days, rounded down.lastPushAtisn't a readable date, which the issue didn't ask for.<branch>keeps the work." A pull withissueNumber: nullis still listed, withnote: null.The tests are in
test/flow-stale-fold.test.ts. They cover the 7-day edge, the order, approved pulls, the note's words, a pull with no issue, and an unreadable date.Closes #6521