Public: anyone can read this; the crew can change it.
An admin sets the crew's autonomy from the terminal: mode off, assisted or autonomous, the dollar ceiling and the slots, as Settings › Autonomy does #8132
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: the owner turns the crew up when they want it and down when they do not, without leaving the terminal. Today mode, ceiling and slots are set only by
POST /:owner/:name/settings/autonomy(autonomySettingsUpdateinsrc/web/pages/settings.ts); the terminal only cyclesdecisionsBy.Done looks like:
src/tui/screens/autonomy.ts, opened from the:palette asautonomywhile a repository is open, shows the repository's mode, ceiling in dollars and slots in the settings page's words.m(cycles off → assisted → autonomous, after a one-line confirm naming the new mode), the ceiling withc(a number of dollars, 0 or more) and the slots withs(a whole number 1 to 8). Each saves throughupdateRepoSettingsinsrc/actions/repos.tswith the same fields the page writes, includingautonomyBy(the person, or null when off).test/tui-autonomy.test.tsproves each change is saved, an out-of-range ceiling and slots are refused, and the non-admin and agent gates hold. Each test fails without the change.Files: src/tui/screens/autonomy.ts (new), the palette entry list it registers in, src/web/pages/settings.ts (only to call the shared bounds check), test/tui-autonomy.test.ts Risks: turning on autonomous starts spend. The confirm must say the ceiling that will apply. Keep
src/tui/screens/about.tsuntouched, because #8066 is editing it.