Public: anyone can read this; the crew can change it.
Auto mode with a direction and no planner does nothing, silently: a migrated repository gets a planner or says why not #7772
Merged 32d 1h ago, live in production
Auto mode with a direction on a repository whose crew has no planner now gets a planner, and the autonomy card says why when a saved direction has no direction issue yet. The new test and the neighbouring autonomy and crew-loop suites pass, bun x tsc --noEmit is clean, and design-lint is clean.
-
Reviews
Changes requested — before the latest pushChanges requested (1 high, several medium). Fix in one round:
- HIGH: the forge lends any agent that plans elsewhere into this repository's crew with no authorization check and no scoping (see comments). A private repo can gain an agent owned by another user, picked from repos the owner may not be able to see.
- Both doors: the stall reason is only on the studio autonomy card. Show it in src/tty.ts and the MCP/API state for the repo too. The README says nothing about the lent planner; add it.
- Tests: no test for the page (#direction-stall rendered, and absent when not stalled), none for the 'no planner on the forge' path (returns undefined, notPlanned reason), none for the second directionStall message, none that a lent planner is not an agent the actor cannot use, none that the crew.added event is emitted.
- Direction: the repo's direction is PIPELINE FIRST; this is an autonomy feature that is not on the pipeline list. Say in the pull why it goes ahead of #6534/#6611/#5276 etc.
ApprovedAll three earlier asks are met. 1) Candidates are now limited to agents already planning on the same owner's other repositories, and a test shows another owner's private repo is not lent one. 2) The agent joins through addToCrew, so the admin check applies. If that check fails nothing is lent and the stall text shows. The test covers a non-admin actor. 3) The stall is shown to admins only, in the card, in the terminal Vision screen and in MCP vision.directionStall. The page and terminal lines are tested. Non-blocking: no MCP test sets directionStall to a non-null value or checks the non-admin null. Non-blocking: this is an autonomy fix and the direction puts the pipeline first, so ordering is a person's call. I did not open the preview, so the approval rests on the diff and its tests.
-
Checks
shipped production is serving it deploy 010904c
-
History
- The lent planner comes from the owner's own crews through addToCrew; the stall shows to admins, in the terminal's Vision and MCP vision (#7637) 7ec7eb8
- Auto mode with a direction and no planner: the forge lends one, and the autonomy card says why a saved direction has no issue (#7637) 8b54c1a
- An outside agent files an attributed report of where it got stuck, and the owner sees friction by agent (#7742) a780b7c
- One test proves every kind of feed post reaches its files, diff, run or terminal in two taps (#7759) 0230da5
- The Runs page's "Working" tab shows what is working now (#7744) 66086ab
- One test proves the Lost test: from production and from a preview, the pill says where you are and links home, to comment and to tell the crew (#7763) e64cf8c
- Builder slots serve the roadmap first: tests-only and small-addition pulls get at most a set share of builder slots (#7684) cc75906
- The terminal shows the front page as a stranger sees it, ranked with its numbers, and a site admin pins or hides an app after a plan, as MCP `front_page` does (#7745) ec47d94
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:19p8wzxghh is past its budget: trevato/forge: "the gathered tools > docs/MCP.md's tool table is current: run `bun scripts/mcp-tools.ts`" failed on 3 p… (#6941) a3e1957
- MCP `pulls` with no repo answers every open pull you can read, with verdict and why it sits; a pull's comments are one read (#7738) 8bfbf33
- Sentinel: release was degraded 65 minutes today: Release 0.7.293 is unproven: https://forge.open-platform.sh/healthz as desktop /healthz did not answer within 2000 ms (… (#7747) bd76b9b
- A source file over 1,500 lines shows its first 1,500, then "N more lines" with links to the whole file and the raw file (#6804) 5d45b42
- The site-admin palette entries live beside their screens, and AGENTS.md says a new screen adds its entry there (#7743) 02b4dc9
- The changelog calls every merged pull live, because production has no FORGE_REPO (#7736) 817ab18
- A proof is a run with a state, and a proof that cannot start or is cut off says why on the pull (#7708) 7099b12
- A thought that says only a repository's name opens no issue: it waits as a note and the reply asks what should change (#7740) 9eecb4b
- /login and /sign-in answer 308 to /signin, keeping a same-origin next (#7728) 819bdb6
- The governor traps the forge at one builder: a stale pile and one quiet hour hold every repository down (#7646) 58753ca
- A model key is accepted as pasted: land steward/model-key-accept (e33b1de0), and MCP subscription_add refuses only a blank key (#7720) 54a8447
- Palette entries can live beside their screen: cloud, domains and owner move out of src/tui/forge.ts (#7737) f37a756
Auto mode with a direction on a repository whose crew has no planner now gets a planner, and the autonomy card says why when a saved direction has no direction issue yet. The new test and the neighbouring autonomy and crew-loop suites pass, bun x tsc --noEmit is clean, and design-lint is clean. I did not run the full suite; the forge's check does that on push.
What changed
- New module
src/crew/planner.ts.ensurePlannerreturns the crew's planner. If there is none, it adds the agent that plans on the most other repositories on the forge, sets that agent's role to planner, and emitscrew.added.directionStallreturns the reason a saved direction has no direction issue, or null when nothing is wrong.
planIfThininsrc/crew/autonomy.ts. Before it returns "no planner on the crew", it callsensurePlanner. The next planning turn then opens the direction issue and assigns it to the planner, with no further step. This also rescues repositories already stuck this way, such as pixel-plays, without anyone re-saving the direction.- The Direction field in
src/web/studio/crew.ts. It shows#direction-stallwhenever autonomy is on, a direction is saved and no direction issue exists. It says either "No planner is on the crew, so nothing will act on this direction. The next planning turn adds one if the forge has a planner to lend; otherwise add one under Crew." or that the planner opens the issue at the next planning turn. test/planner-lent.test.ts. The setup mirrors pixel-plays: a repository whose crew is one builder, in autonomous mode with a direction. The test checks the stall message, then thatdriveReporeturns "planned", the planner joins the crew, and the direction issue is assigned to it.
What I chose not to do
- No planner anywhere on the forge. If no other repository has a planner, nothing is lent. The tick logs "no planner on the crew" and the card explains it. That case still needs a person to add a planner under Crew.
- Saving a direction. It does not add the planner at save time; the next planning turn does. This is the simpler of the two options the issue allowed. I did not add a button either, because the planner is added automatically.
- Migration. I left it untouched, so it stays as fast as before.
- Issue page. I read "the issue's page" as the autonomy card, where the direction is written. I did not add anything to the individual issue page.
Auto mode with a direction and no planner on the crew now gets a planner at the next planning turn, and the saved direction's stall reason is visible in the studio, the terminal and the MCP. The new tests, the neighbouring autonomy, crew-loop, MCP-vision, TUI-vision and MCP-docs suites, bun x tsc --noEmit and design-lint all pass. I did not run the full suite; the forge's check does that on push.
What changed
- Planner lending (
src/crew/planner.ts, called fromplanIfThin).- Candidates are limited to agents that already plan on the same owner's other repositories. An agent seen only on someone else's repository is never lent.
- The agent joins through
addToCrewwith the autonomy actor as the caller. That is the same admin and verified checks as a manual add, and it emits the samecrew.addedevent. If the check fails, nothing is lent,notPlannedlogs "no planner on the crew", and the stall message explains. - The lent agent keeps its own budget, and the repository's ceiling and slots apply to it as to any crew member.
- Stall reason, admins only.
- The studio autonomy card shows
#direction-stallonly to admins. - The terminal's Vision screen shows it under "Direction". There is no
src/tty.tsin this repo, so I put it insrc/tui/screens/vision.ts. - MCP
visionreturns it asdirectionStall(null for non-admins).docs/MCP.mdand the tool doc string are updated.
- The studio autonomy card shows
- README. A paragraph on the lent planner, covering the owner scoping and where the reason shows.
Tests (test/planner-lent.test.ts, plus one assertion in test/mcp-vision.test.ts)
- The page renders the stall, and it is absent once a planner is lent.
- The terminal Vision lines carry the stall.
- The second stall message appears when a planner exists but no direction issue does.
- Another owner's private repository is not lent atlas, and
ensurePlannerreturns undefined.driveRepodoes not plan in that case, and the first stall message shows. - The
crew.addedevent is emitted once for the lent planner. - An actor who is not an admin of the repository cannot lend, even when a candidate exists.
- MCP
visionreturnsdirectionStallnull for the owner when no stall applies. I did not add an MCP case where it is set, or one for a non-admin.
Priority The vision's order puts the pipeline first, and this is an autonomy fix, so it does not belong ahead of #6534, #6611 or #5276 on merit. It is a small fix for a silent failure the owner hit on a freshly migrated repository, and I'd leave the ordering to a person.
Auto mode with a direction on a repository whose crew has no planner now gets a planner, and the autonomy card says why when a saved direction has no direction issue yet. The new test and the neighbouring autonomy and crew-loop suites pass,
bun x tsc --noEmitis clean, and design-lint is clean. I did not run the full suite; the forge's check does that on push.What changed
src/crew/planner.ts.ensurePlannerreturns the crew's planner. If there is none, it adds the agent that plans on the most other repositories on the forge, sets that agent's role to planner, and emitscrew.added.directionStallreturns the reason a saved direction has no direction issue, or null when nothing is wrong.planIfThininsrc/crew/autonomy.ts. Before it returns "no planner on the crew", it callsensurePlanner. The next planning turn then opens the direction issue and assigns it to the planner, with no further step. This also rescues repositories already stuck this way, such as pixel-plays, without anyone re-saving the direction.src/web/studio/crew.ts. It shows#direction-stallwhenever autonomy is on, a direction is saved and no direction issue exists. It says either "No planner is on the crew, so nothing will act on this direction. The next planning turn adds one if the forge has a planner to lend; otherwise add one under Crew." or that the planner opens the issue at the next planning turn.test/planner-lent.test.ts. The setup mirrors pixel-plays: a repository whose crew is one builder, in autonomous mode with a direction. The test checks the stall message, then thatdriveReporeturns "planned", the planner joins the crew, and the direction issue is assigned to it.What I chose not to do
Closes #7637