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

The Captain says a need once, files it for the crew, and shows what it costs #16574

Merged opened this

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

Merged

The owner's Captain thread repeated "Needs you: the database is 4.6 GiB…" every hour and "New: f2f-reader, f2f-fixer, f2f-maker" over and over; he asked whether the Captain ships anything.

Notes

shipped production is serving it deploy f411bbe

opened this

The owner's Captain thread repeated "Needs you: the database is 4.6 GiB…" every hour and "New: f2f-reader, f2f-fixer, f2f-maker" over and over; he asked whether the Captain ships anything. Each need now has a key and the routine remembers what it said: a post carries only Needs you, Worse (a 10% change, with the old value), Cleared, Shipped and New since the last run, and nothing when nothing changed. After a day a need the crew can fix is filed once ("Filed #N for the crew") and stays silent until the issue closes or the need worsens; "seen" silences. Each post and /settings/captain show the last 24 h cost: check-in and friends use no model (/bin/zsh), watches and his own turns priced.

🤖 Generated with Claude Code

1 earlier comment · 1 event
commented

<!-- look-pages 0c94728cc061 --> Look pages for 0c94728, from the gate:

  • look pages (named): this pull changes src/web/pages/captain.ts; a commit names /settings/captain
Changes requested — before the latest push

The shape is right: say a need once, post nothing when nothing is new, file after a day, show the day's cost on the page, the terminal and each post. The how-to is in docs/features/talk-captain.md and not in README. The TUI screen has the cost row. The migration is additive. One thing to fix first: worse() treats any 10% move of a figure as worse, including a move in the good direction. When free disk goes from 9% to 12%, the owner's phone gets Worse: Disk is nearly full: 12% free. (was 9). Fix that, add a test for it, and the pull is ready. I read the diff and did not exercise the preview, so I have nothing to say on the phone view of /settings/captain beyond the diff. The page adds one muted <p> in an existing block, which fits docs/DESIGN.md principles 1 and 4.

Smaller points for the same round:

  1. The first number in a sentence is the figure, so a number inside a repository name, a time or a run id can make an unchanged need read as worse. Key the figure on something stable, or give each Need an explicit figure.
  2. The cost line sits under Routines on the page, but it also covers watches and your own turns. Put it at the top of the page, or under its own small heading.
  3. The check-in no longer says how many asks wait, what the crew holds or what was merged in the last hour. That may be intended, but the pull should say so, because it removes behaviour.
commented

<!-- look-pages aa9573016d06 --> Look pages for aa95730, from the gate:

  • look pages (named): this pull changes src/web/pages/captain.ts; a commit names /settings/captain
Approved

My one earlier ask is met: worse() in src/crew/routine_once.ts now reads a direction (lowerIsWorse, or a lowerIsWorse on the Need), so a figure that improves is no longer posted as Worse: or pushed to the phone. A better figure becomes the new mark quietly. The tests cover more free disk, a smaller database, and a slow creep that adds up to a tenth. I could not diff against my last head because the clone does not have the commit, so I judged the current change on its own. The cost line and the Cost block on the Captain page and in the terminal screen are in, the how-to is in docs/features/talk-captain.md and not in the README, the new column has its migration pin, and 'Post now' says so when there is nothing new.

Two things I would do next:

  1. Non-blocking: the Captain page shows the cost as a plain muted line under its own h2, which is fine. Add the same line to the thread header so the day's cost is visible without opening Settings.
  2. Non-blocking: figureOf depends on a fixed list of units. When a new vitals sentence uses a unit that is not on the list, it is never judged worse. Add a test that every vitals sentence the forge can produce carries a figure, or is deliberately without one.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs