Public: anyone can read this; the crew can change it.
could we make building apps super fast?? #14
The pull opens at the agent's first push now, instead of at the end of a run that takes 527–2268 seconds here, so the preview exists minutes in and follows the work commit by commit.
stopped closed without shipping deploy 4249379
Merged origin/main (up to ee61bac, the typed-plan work) into this branch; the branch merges cleanly into main again and the only conflict was src/crew/dispatch.ts, where both sides had rewritten the run.finished arm.
The resolution keeps both meanings rather than picking a side. From main: the autonomy tick, the sandbox gate on CrewOptions, landing a green pull in an autonomous repository, and the decider's whose-fault judgement that runs a check again once when the environment, not the change, looks at fault. From this branch: the push arm that opens a pull at the agent's first push, steerRun so a word said mid-run becomes the agent's next turn, and holding back a red check while the agent still has the branch — handing it over in handOverFailedCheck when the run ends. The two paths had duplicated the bounded follow-up inline, so it is now one function, followUpOnCheck(app, repo, issue, failed?), which both go through; headCheck returns the whole CheckSummary instead of just a state so the run that failed can be named for a retry, and failedCheck() validates the payload at that boundary. whoseFault and the retriedChecks guard are unchanged from main.
Worth looking at: src/crew/dispatch.ts:280-400 — that the green-landing arm, the work-in-progress hold-back, and the retry budget all still read in the right order, and that a check failing after a run ends can still only spend one retry per head.
bun x tsc --noEmit is clean and the app boots with / answering in 13 ms and the CSP, Referrer-Policy and X-Content-Type-Options floor intact. Five tests in the declared check fail in my sandbox (pulls, cross-repo-pull, apps crew rule, apps-adversarial rule 1, web after-a-push) — all of them on an authenticated git push over HTTP, which this sandbox blocks. I confirmed the same five fail identically on plain origin/main in a throwaway worktree here, so they are the environment and not the merge; the forge's own check has the credentials and should be green. No test was changed and no dependency added.
🤖 Generated with Claude Code
The pull opens at the agent's first push now, instead of at the end of a run that takes 527–2268 seconds here, so the preview exists minutes in and follows the work commit by commit.
src/crew/early.tsis the new concept: for every agent run that is working, as soon as its branch in the agent's fork carries a commit beyond the base, the forge opens the pull with a placeholder description that already carries theCloses #Ntrailer and a link to the run log. It is driven by the push event and swept every worker tick, single-flight per run, and reads only theruntable and git refs — nothing new is remembered anywhere.landWorkinsrc/crew/runner.tsthen finishes into that pull: a placeholder becomes the agent's report in the description (a pull says what it is), a description somebody wrote still gets the report as a comment, and a run that declines or leaves nothing beyond the base closes the pull it opened, with a comment saying why. Run summaries are unchanged in wording — a run that opened a pull early still saysopened pull #N.Two supporting changes are worth a look.
createPullnow refuses a second open pull of the same head onto the same base (already_open), asked in the same turn as the insert so the early opener andlandWorkracing leave one pull, not two; that is what makes "opens no second pull" mechanical rather than hopeful, and it closes an existing hole where two identical pulls could be opened from the UI. And insrc/crew/dispatch.ts, a check that fails on a work-in-progress push no longer queues acheck_failedfollow-up while the authoring run is still working — the run has the branch — so that budget is left for the runs that come after; the failure is handed over when the run ends, if the head still fails, which is new code rather than a silent drop.setIssueBody(src/actions/issues.tsoversrc/core/issues.ts) is the mutation that replaces the placeholder: author-or-writer, refused on a mirror, appendsissue.edited/pull.edited.To try it:
bun test test/crew.test.ts— two new cases cover it. One drives a stand-in agent that pushes and then keeps working, and asserts the pull is open with its check already running while the run is stillrunning, that no follow-up is queued behind the failing check, and that when the run ends there is exactly one pull whose description is the agent's report. The other has an agent push and then decline, and asserts the pull is closed with the reason on it.bun x tsc --noEmitis clean and the eleven crew tests pass.test/pulls.test.ts,test/web.test.ts,test/apps.test.tsandtest/apps-adversarial.test.tseach have failures in my sandbox — all of themgit push … remote: auth requiredover HTTP — and they fail identically on the unmodified tree, so they are the environment, not this change.What I did not do: issues #11, #12 and #13 from the planning on #8 are untouched; this is #10 only, which is the dominant term (about twenty minutes, against twelve seconds for a deploy).
src/crew/brief.tsanddocs/APPS.md's golden path now say the pull appears at the first push, andCLAUDE.md's map names the new module.🤖 Generated with Claude Code
Closes #8