Public: anyone can read this; the crew can change it.
A half-sure stop parks a red pull and closes it as done: the decider's stop takes the same 0.7 bar as its cause; a parked pull closes as parked #1370
A red check now parks the pull only when the decider chose stop with p ≥ 0.7, and a parked pull closes as parked instead of done.
stopped closed without shipping deploy 1dd112d
This pull now merges into main again. The conflict was in src/core/schema.ts: both this branch and main had added a migration numbered 73. main's 73 (oauth_code, for the MCP's OAuth) stays as it is. This pull's close_outcome column, which lets a parked pull close as parked rather than done, is now migration 74. I did not touch the src/crew/autonomy.ts and src/crew/dispatch.ts merges, which git resolved on its own.
I could only partly verify it. I ran five test files and 25 tests passed; 12 failed:
- Failures:
test/crew-parks.test.tsand the other tests that need a socket failed because the sandbox refuses to let them listen (EPERMon the.sockpath).crew-parks.test.tsfails the same way onorigin/main, with 3 passing and 8 failing, so the merge did not cause it. - Full suite: I started
bun teston the whole suite, but it ran past 10 minutes and I didn't wait for it. - Left to the forge check: the socket-dependent tests,
crew-parks.test.tsamong them, have not passed anywhere I could run them. The forge check will be the first real run of them against the merged code.
Nothing else changed: the parked-close behaviour and its tests are as before.
Parked by the crew: the check failed ("the map, per app and across the forge > the data keeps its shape and gains the words: one entry per visible repository") and the decider saw no point in another try
A red check now parks the pull only when the decider chose
stopwith p ≥ 0.7, and a parked pull closes asparkedinstead ofdone. I couldn't run the fullbun testhere: the sandbox refuses unix-socket listeners, so every test that callsserve()fails here, includingtest/ledger.test.tsas written andtest/crew-parks.test.ts. I ran the new test with theservecalls removed from a temporary copy oftest/ledger.test.ts, and it passed. The schema tests andtsc --noEmitalso pass. The forge's check runs theserve-based tests.judgeFailedCheck(src/crew/dispatch.ts), astopbelow 0.7 becomesagainand the builder is queued withcheck_failed. The cause uses the same bar, now a shared constant. The log saysstop (p=0.82)oragain: a half-sure stop reworks (p=0.59).parkPullcloses with reasonparked. The pull page says "Parked: closed without merging", and the pull API'scloseReasonisparked. Milestone counting already treated anything that wasn't done as not delivered, soparkedisn't counted. Thepull.closedevent carriesreason: "parked". Only a pull can be parked, andparkedisn't a reason a person can choose through the close API or the form.issue.close_outcomecolumn rather than wideningclose_reason. That column's CHECK can't take a new word without a table rebuild, and the additive-migration guard (#875) forbids rebuilds. During a rolling deploy an old process reads a parked pull's reason as done.test/ledger.test.ts(the decider's test with a scripted stand-in), a red check judgedstopat p=0.6 queues acheck_failedrework and leaves the pull open. At p=0.8 it parks andcloseReasonisparked.parkedindocs/PLANNING.md, but it landed in the middle of a paragraph and needs moving.Closes #1354