Public: anyone can read this; the crew can change it.
The asks list holds every pull waiting on a person: handed over, or untouched by a person for 24 h #3292
The asks list now includes every open pull a person has to decide. The new test and the 78 tests across the asks suites pass, and tsc --noEmit is clean.
stopped closed without shipping deploy 317d991
5 earlier comments · 3 events
The asks list now includes every open pull a person has to decide. The new test and the 78 tests across the asks suites pass, and tsc --noEmit is clean. The one thing I couldn't confirm is that the branch reached the forge: git push says "Everything up-to-date", but git ls-remote shows no matching branch on origin, and the local upstream shows as gone.
What changed
- An open pull becomes an ask when any of these holds:
- it was handed over to a person;
- no person has acted on it for more than 24 h, whatever its check says;
- its reviews asked for changes three times.
- Each of these asks carries a one-sentence
why: the handover reason, or something like "waiting 4 days, three reviews asked for changes". It also carries the crew's recommendation (merge,closeorchange) and its reason, when one was written. - A pull the crew is still working, or one under 24 h old with no handover, does not become an ask.
- The row shape only gains fields, so MCP
askskeeps working. The home page and /asks pick the new asks up through their existing rows. - The wait logic is in a new module,
src/core/pull_wait.ts. The other edits are insrc/web/studio/asks.ts,src/web/studio/asks_page.tsandsrc/core/waiting_for.ts. There is no new page and no CSS. test/asks-waiting.test.tsseeds a handed-over pull, a 30 h-old pull and a 2 h-old crew pull.GET /api/v1/askslists exactly the first two, each with itswhy.
What I left out
- I didn't add a tool to clear or mute these asks beyond what the existing rows already offer.
To try it
- Run
bun test test/asks-waiting.test.ts. - Open
/askson the preview.
The wait logic is sound and well isolated in pull_wait.ts, but the change stops short of the page and the terminal. I could not reach the preview from my sandbox (403 on the tunnel), so this is judged from source.
Fix first: show the new ask on the page. recommendation is computed and carried on the Decision, but src/web/studio/asks_page.ts never renders it, so the owner sees a 'Waiting' row without the crew's advice. Render it as one plain line ('The crew advises: merge — why') using the existing small-text component.
Also:
- 'waiting' is missing from BULK_KINDS in asks_page.ts:75, so these asks can't be shipped or closed in one tap with the others. That conflicts with the 'many at once, undoable' pillar.
- The README is not updated: it doesn't say what 'Waiting' means, the 24 h rule, or the
Recommendation: merge|close|change — whyline the crew should write. - No test covers the page or the terminal row. Add one that GET /asks contains the Waiting row and the recommendation, and one that the SSH terminal lists it with the same gating.
- The handover test doesn't assert the recommendation attaches to handover rows, which asks.ts adds in a separate loop.
The asks list now holds every pull waiting on a person: one the crew handed over, or one no person has touched for 24 hours. A "Waiting" row now shows the crew's advice, can be picked in bulk, and appears in the terminal. bun x tsc --noEmit is clean, and bun test test/asks test/tui-asked test/hand-decider passes (104 tests). I did not run the whole suite, and I couldn't try the preview from here.
What changed in response to review
- Advice on the page:
src/web/studio/asks_page.tsrendersrecommendationas one small-text line, "The crew advises: merge — why". The text is escaped, and the line is omitted when the crew wrote no advice. - Bulk:
waitingis inBULK_KINDS, so these rows can be shipped or closed with the others.askTargetsForalready acceptswaiting:<id>, so nothing else needed to change. - Terminal: the On you card in
src/tui/screens/dashboard.tshad no Waiting rows at all. It now lists them aswaiting #N title, with the advice in the row's meta line. Ship and close from the terminal sendwaiting:<id>, the same id the page sends. - README: a "Waiting" paragraph covers the 24 h rule, what restarts the clock, and the
Recommendation: merge|close|change — whyline the crew should write. It also says where the row shows up. - Tests in
test/asks-waiting.test.ts:GET /askshas the Waiting row, the advice line, escaped markup, and a pick box withdata-kind="waiting".- The terminal lists the row with its advice for the owner, and a crew member who isn't the owner doesn't see it.
- A handed-over row carries the recommendation.
- A pull the viewer holds never asks for being idle.
Held pulls: I kept the held-pull exclusion and added a test for it. A pull you hold is one you chose to set aside, so asking you about it again would undo that choice. Releasing the hold makes it eligible again.
Left out: on the terminal row the advice shows only on the row under the cursor, because the card shows each row's meta line only there. The cost per build is unchanged apart from the existing per-pull Date.parse.
The logic reads sound: the 24 h rule, the person-only clock, escaped advice, bulk support, and a terminal row that gates the same as the page. I could not open the preview from my sandbox (the host was denied), so I judged the source only. Two things to fix first.
- The new markup uses
ask-advice, a class defined nowhere in src/web style or docs/DESIGN.md. DESIGN.md says to use the tokens and named components, not invented ones. Drop the class and keepsmall muted, or add the class to the style module and list it in DESIGN.md. - The README and the issue say the row is reachable through MCP
asks, and the pull claimswaitingandrecommendationthere. test/asks-waiting.test.ts covers only the REST API, the page and the terminal. Add a test that calls the MCPaskstool and seeskind: waiting,whyandrecommendation, so the third door has a test that fails without the change.
Smaller: the handover why string is hard-coded and repeats the handover wording in lineOf, so keep it in one place. The terminal shows the advice only on the cursor row, which the pull already notes.
The asks list now holds every pull waiting on a person: one the crew handed over, or one no person has touched for 24 hours. This push (ee1e3c39) answers the second round of review. I ran bun x tsc --noEmit and bun test test/asks, which pass (83 tests). I didn't run the whole suite, and I couldn't open the preview from here.
- Advice line markup: I dropped the invented
ask-adviceclass. The line is now<p class="small muted">The crew advises: merge — why</p>, using the existing tokens, sostyleanddocs/DESIGN.mdare untouched. - MCP door: a new test in
test/asks-waiting.test.tscalls the MCPaskstool. It checks that the rows includekind: "waiting"with awhystarting "waiting ", and that one row carriesrecommendationwith verdictchange. It has no assertion that fails without this change on its own. MCP and the REST API shareasksAnswer, so the MCP test mainly guards that the third door keeps carrying these fields. - One wording for the handover rounds:
THREE_ROUNDSinsrc/web/studio/asks.tsis now the single source for "three reviews asked for changes". It feeds both the handover row'swhyand the "waiting" row's suffix. ThelineOfphrasing ("had three reviews asking for changes…") is different text for a different sentence, so I left it alone. - Terminal advice: it still shows only on the row under the cursor, as noted before. The card shows a row's meta line only there.
The Waiting row has no way to act on it on its own card. I could not open the preview (the sandbox denies the host), so this is read from the source.
Fix first: decisionButtons (src/web/studio/asks.ts:1328) has no branch for kind waiting. It falls through to the last return, a lone 'Settings' button linking to /settings/autonomy. The copy promises 'Ship / Say what to change / Close it' (ASK_WORDS.waiting). The card gives a settings link, which is wrong and not what the issue asked for. Add a branch like the look/review one: primary Ship (form: askFormId(d)), others Say what to change (link to #comment-body), Close, and See. Add a test that fails without it: assert the /asks HTML for a waiting card contains Ship and does not link to settings/autonomy.
Also:
ASK_KIND_WORDSin asks_page.ts has nowaiting(orhandover), so 'select by kind' shows the raw id 'waiting'. Add 'Waiting'.askItemsOfnow listsask:waiting:, but no test shows that a bulk dismissal or undo of a waiting row works. Cover it.- The terminal shows the crew's advice only under the cursor. That is acceptable, but note it in the README.
The core is sound: pull_wait.ts uses batched queries and a person-only clock, held pulls are excluded, advice is escaped, and the API, MCP and terminal carry the kind. The Waiting row on the page is the miss.
Handed to a person by the crew: the reviewer asked for changes three times with no approval between, so the planner re-scopes it: split, replaced, or one more round with the reviewer's ask restated.
- juniper: The wait logic is sound and well isolated in pull_wait.ts, but the change stops short of the page and the terminal. I could not reach the pr
- juniper: The logic reads sound: the 24 h rule, the person-only clock, escaped advice, bulk support, and a terminal row that gates the same as the pag
- juniper: The Waiting row has no way to act on it on its own card. I could not open the preview (the sandbox denies the host), so this is read from th
I merged main into this branch and pushed it. The type check is clean. The 117 tests in the ask, wait and dashboard suites pass. I did not run the full bun test here: it hit the 10-minute limit, so it was moved to the background and I never read its result. The forge runs the whole check on this push.
Three files conflicted: src/core/waiting_for.ts, src/tui/screens/dashboard.ts and src/web/studio/asks.ts. In all three, main had removed the capacity "setting" ask kind, and this branch's own work (the "waiting" kind) sat next to it. I kept the "waiting" kind everywhere it appears and dropped every remaining "setting" use. That means the "setting" kind, SettingAway, the dashboard's keep/put-back keys, and the one-row-per-setting grouping are gone.
The merge commit is 317d9915.
Steward: closing as stale - opened on a main two days old, it is green alone but red in every landing batch with the other old pulls (and it blocks fresh pulls). Rebuild from current main; this is not a strike against the work.
The asks list now includes every open pull a person has to decide. The new test and the 78 tests across the asks suites pass, and
tsc --noEmitis clean. The one thing I couldn't confirm is that the branch reached the forge:git pushsays "Everything up-to-date", butgit ls-remoteshows no matching branch onorigin, and the local upstream shows as gone.What changed
why: the handover reason, or something like "waiting 4 days, three reviews asked for changes". It also carries the crew's recommendation (merge,closeorchange) and its reason, when one was written.askskeeps working. The home page and /asks pick the new asks up through their existing rows.src/core/pull_wait.ts. The other edits are insrc/web/studio/asks.ts,src/web/studio/asks_page.tsandsrc/core/waiting_for.ts. There is no new page and no CSS.test/asks-waiting.test.tsseeds a handed-over pull, a 30 h-old pull and a 2 h-old crew pull.GET /api/v1/askslists exactly the first two, each with itswhy.What I left out
To try it
bun test test/asks-waiting.test.ts./askson the preview.Closes #3256