Public: anyone can read this; the crew can change it.

A run that waits says why, in plain words, with the control that changes it #16322

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The owner asked Talk to build an app and was told only "still queued and hasn't started", while the run's own log said why: 92% of the week used, the crew may use up to 90%, waiting for Sunday's reset.

Notes

shipped production is serving it deploy 3fede26

opened this

The owner asked Talk to build an app and was told only "still queued and hasn't started", while the run's own log said why: 92% of the week used, the crew may use up to 90%, waiting for Sunday's reset.

  • core/talk_work.ts reads the newest "queued, not started:" line from a queued run's log and says it plainly with the control that changes it, linked only for whoever may turn it:
    • the week: "Waiting: the crew has used 92% of this week and may use 90%. It starts at the reset, Sun 29 Nov, 02:00 UTC." Change the limit: /settings/crew#knob-budget (admin);
    • the account's runs or checks at once: /admin/limits#quotas (admin);
    • the owner's focus: /settings#focus (the owner); a shut valve: /flow#valves (admin); a bet's daily cap: /<owner>/<repo>/bets (admin);
    • memory and clone failures: the sentence only, since no setting changes them.

    A hold no rule knows is said as logged, after "Waiting:".

  • Where Talk shows it: the receipt's work line and its live fragment (with the link), and the terminal's line (with the control's address).
  • Where the agent reads it: the runs, new_app and tell answers carry waiting, change (the full address) and changeWords.
  • The controls gain the anchors the links name: knob-<id> on the crew page's knobs, focus on /settings, quotas on /admin/limits.
  • A test lists every place that logs a hold, so a new reason fails until it has its sentence.

Try: queue a crew run past the weekly budget and read the receipt's line on /talk; follow "Change the limit"; ask the agent what the run is doing Looks: /talk Direction: the owner's own session (a run queued on the week's cap with no reason given), and his rule that an error links to its control (#15734), ahead of #6534

Co-Authored-By: Claude Fable 5 <[email protected]>

--- From the owner's morning on production, 2026-11-24: he asked Talk to build an app and the crew's run sat queued; Talk said only "still queued and hasn't started" while the run's own log said "92% of the week used, the crew may use up to 90%; it waits for the reset 2026-11-29 02:00 UTC". One commit on main. A follow-up makes that cap hold autonomous work only, by his ruling the same morning.

🤖 Generated with Claude Code

5 earlier comments · 2 events
commented

<!-- look-pages 2cf316ec2719 --> Look pages for 2cf316e, from the gate:

  • look pages (named): this pull changes src/web/pages/account.ts, src/web/pages/admin-limits.ts, src/web/pages/knobs.ts; a commit names /talk
commented

<!-- look-pages b3216da47fe1 --> Look pages for b3216da, from the gate:

  • look pages (named): this pull changes src/web/pages/account.ts, src/web/pages/admin-limits.ts, src/web/pages/knobs.ts; a commit names /talk
Changes requested — before the latest push

The idea is right and the sentences read well. Fix these in one round; the first matters most.

  1. Terminal link points at the wrong host (src/tui/screens/talk_chats.ts). It falls back to http://localhost when config.url is unset, so the terminal can print a dead address. Use the forge's own public-origin helper, and if the origin is unknown print the path only. Never invent a host.
  2. The tests miss what this pull adds. Nothing tests the terminal line with the control's address, the runs, new_app or tell answers carrying waiting/change/changeWords, or that a non-admin and a non-owner get no change through those doors. test/talk-brief-voice.test.ts only checks that strings are in the brief. Add door tests that fail without the change.
  3. test/talk-hold.test.ts has a brittle source-grep, expect(sites.length).toBe(9). Any unrelated edit to a log line breaks it. Make it check that each known prefix site is covered, or drop it.
  4. Clean-up in src/core/talk_work.ts:
    • An orphaned doc comment, 'The work line as a reader sees it…', sits above runHold and describes workLineFor. Move it.
    • getRepoById is imported on a separate line from the existing ./repos.ts import. Merge them.
    • The HoldReader construction is duplicated in runHold and workLineFor. Extract one helper.
  5. Information leak: workLineFor and runHold quote the run log's hold verbatim for any reader who can see the issue. That includes the bet name for an unknown shape and the "daily cap" text, which come from admin-only bets. Say the bet's name only to readers who may see the bets page, and say 'a bet's daily cap' otherwise.
  6. Design (principle 1, nothing says itself twice): the work line repeats 'Waiting:' and then the reason. Keep one confident sentence. The control link inside a muted small line is hard to see. Keep it as an <a>, but check the contrast on the preview.
  7. The README is untouched, which is right. The how-to is in docs/features/talk.md. Add the review block for this page change to the pull description.
commented

Steward note: new head 35b696df, one commit on main, answering the review. (1) The terminal prints the forge's public origin plus the path, or the path alone when no address is set; it never invents a host; tested. (2) Door tests that fail without the change: /mcp runs and tell as an admin carry waiting, change and changeWords, and as a member carry waiting and no change; plus the live fragment and the terminal line. new_app's answer is not tested: it is written before the dispatcher can hold the run, so it never carries waiting. (3) The grep count is replaced by a test that names each logging site and fails by name. (4) The comment, the import and the one reader helper are tidied. (5) The leak is closed: a bet's name, cap and link go only to the repository's admins; anyone else reads "a bet's daily cap is spent", and a hold no rule knows is no longer quoted. (6) Said once: no "Waiting:" prefix. Rebased on #16323: a run a person sent is never said to wait on the week under 100%.

page: /talk (a receipt's work line), /live/talk-work, the terminal's conversation
changed: the line says why a queued crew run waits, in one sentence, with a link to the exact control, for who may turn it; a bet is named only to its repo's admins
check: the link lands on its anchor (knob-budget, quotas, focus, valves); a member sees the sentence with no link
commented

<!-- look-pages 35b696df4e18 --> Look pages for 35b696d, from the gate:

  • look pages (named): this pull changes src/web/pages/account.ts, src/web/pages/admin-limits.ts, src/web/pages/knobs.ts; a commit names /talk
Approved — before the latest push

Earlier asks are met: the terminal prints the forge's origin plus the path, or the path alone when no address is set, and never invents a host. The /mcp runs and tell doors are tested for an admin and for a member. The grep count is replaced by a test that names each logging site. The bet name and cap reach only repo admins, and an unknown hold is never quoted. The "Waiting:" prefix is gone, and a run a person sent is not said to wait on the week under 100%. The how-to is in docs/features/talk.md, not the README, and both doors (page and terminal) show the line. Anchors are added on the pages the links land on, and the outputs are escaped by the html template. Non-blocking: the terminal and the page each build the link text separately. A single shared formatter would keep them from drifting.

commented

Steward note: new head be9fd508. This is a rebase of the approved 35b696df onto the newest main, with no change to its content: main moved under it (#16299 and #16330 landed) and it conflicted in docs/design/size-budget.json, docs/features/talk.md and src/web/pages/talk.ts. It now takes main's ceilings and no longer touches size-budget.json; the hold paragraph sits beside main's renamed "Confirms wait" section; talk.ts keeps main's line with the hold's receiptLines argument.

commented

<!-- look-pages be9fd508b286 --> Look pages for be9fd50, from the gate:

  • look pages (named): this pull changes src/web/pages/account.ts, src/web/pages/admin-limits.ts, src/web/pages/knobs.ts; a commit names /talk
Approved

This round is a rebase of 35b696df onto the newest main. The diff is the one I already read, plus main's own changes to talk.md and talk.ts, which I did not reopen. Every earlier ask is met:

  • Terminal address: the terminal prints the public origin plus the path, or the path alone when no address is set. It never invents a host, and a test covers it.
  • Door tests: runs and tell carry waiting, change and changeWords for an admin and waiting alone for a member. The live fragment and the terminal line are tested too.
  • Logging sites: a test names each place that logs a hold and fails by name if one goes.
  • Bet leak: a bet's name, cap and link go only to the repository's admins. A hold no rule knows is never quoted.
  • Said once: there is no "Waiting:" prefix.
  • Sent runs: a run a person sent is never said to wait on the week under 100%.
  • Docs: the how-to is in docs/features/talk.md, not the README.

Non-blocking: new_app carries waiting in its code but has no test, because the run cannot be held at the moment it answers.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs