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

Remove the Flow only toggle: the `flow` label alone says what goes first #7771

opened this

Merged 31d 0h ago, live in production

main is merged into the branch and pushed. The conflicts in docs/MCP.md and src/tui/screens/about.ts are resolved. The 148 tests I ran pass (17 files: idle-reason, mcp-flow-why, flow-first, and a sample of tests that mention About, reposettings or MCP.md), and bun x tsc --noEmit is clean.

Notes

opened this

main is merged into the branch and pushed. The conflicts in docs/MCP.md and src/tui/screens/about.ts are resolved. The 148 tests I ran pass (17 files: idle-reason, mcp-flow-why, flow-first, and a sample of tests that mention About, repo_settings or MCP.md), and bun x tsc --noEmit is clean. I did not run the full suite here, so the forge's check on this push is the first full run.

Conflicts

  • docs/MCP.md: I took main's newer releases, report and reports rows. The repo_settings row keeps main's wording without flowOnly, since this pull removes that switch.
  • src/tui/screens/about.ts: main added a "Moving" row that explains why builders are held. I kept it and dropped the "Flow only" row this pull removes.

Follow-on edits Code that landed on main after this pull branched still used the retired Flow only switch, so I removed those uses too:

  • src/flow/why.ts: the flow_only cause is gone, along with its fact and its import.
  • src/crew/idle_reason.ts: it no longer reports "flow only" as a reason the builders are idle.
  • docs/MCP.md: the flow row no longer lists flow_only among the causes.
  • Tests: in test/idle-reason.test.ts and test/mcp-flow-why.test.ts I deleted the cases that exercised the removed switch and fixed the assertions that named it. The first-cause-wins check now expects no_headroom instead of flow_only. These tests tested the removed feature, not behaviour that should stay.

Nothing else changed.

Continues #7771

Show 4 earlier items

7 earlier comments
commented

The failing test is fixed and pushed as 7c8e2c3e. I have not yet seen the forge's check run on the new push.

Cause: My earlier commit put an f flow first binding in the terminal issue screen's key bar ahead of p private repo. The bar is cut off at the terminal width, so the sealed-issue hint private repo was pushed off screen. The test waits for that text, so it timed out after 30 seconds.

Fix: In src/tui/screens/issue.ts, I moved the f binding to after p, at the end of the writer's list. Nothing else changed.

Checks run here:

  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts printed nothing, so I take it as clean.
  • test/tui-workflows.test.ts passes, 8 of 8. test/tui-issue-flow-first.test.ts also passes.
  • Reverting the fix made p on a sealed issue… fail again on its own.
  • One earlier run of test/tui-workflows.test.ts also failed "a review thread resolves, collapses, and reopens". It passed on the next full run, so it looks like a one-off.

Three other shards (test/tui-issue-goahead.test.ts, test/mcp-profile.test.ts, test/pull-variants.test.ts) were killed on time limits in the check, after fail-fast stopped the run. I did not run them here.

commented

I merged main into the branch, fixed the three merge conflicts, and pushed. I haven't seen the forge's check verdict on the new push. The type check and scripts/gate.ts are clean here, and the 169 tests I ran passed. I didn't run the full suite; the forge's check does that.

The pull still removes the "Flow only" toggle and puts the flow label in its place. The three conflicts were:

  • src/core/dependencies.ts: main added a "put first" ordering (first, #7806) that overlaps with the flow label. I kept both. Ready work is sorted by the flow label first, then by "put first", latest first. Anything a person put first therefore still comes ahead of flow-labelled work.
  • src/tui/screens/about.ts: I kept main's new team-card code (the empty seat and the fill button). The detach check now uses mayPerson(), the name this branch gave the person check, in place of the old mayFlow().
  • src/web/studio/crew.ts: I dropped main's Flow only form from the autonomy card. The "No reviewer" note stays.

The tests I ran were test/dependencies.test.ts, the flow-label/first-ordering/about tests, and every file that references readyNow, firstAt or flowLabelled.

commented

Parked by the crew: the check stayed red through 2 automatic tries

commented

The last red test, "the board and the autonomy settings say so", now passes, and the fix is pushed. test/review-waits.test.ts passes (6 of 6), tsc is clean and design-lint is clean. scripts/gate.ts printed nothing, so I'm assuming it passed. I ran only that one test file, not the rest of the suite.

The merge from main had brought back an old "No reviewer: agent pulls wait for you" note on the "On its own" card in src/web/studio/crew.ts. Since #7774, the crew card on the same settings page already warns "No reviewer: …" when that seat is empty, so the page said it twice. The test expects it once, and it was right.

I deleted the old note in src/web/studio/crew.ts and kept the crew card's warning, so the toggle stays removed. I did not change the test.

commented

I merged main into this branch and pushed it. The only conflict was the labels and land_past_gate rows in docs/MCP.md, and I kept both.

  • labels row: it keeps this pull's wording, including action? and "flow goes first among ready work".
  • land_past_gate row: it keeps the row main added.

bun x tsc --noEmit and bun scripts/gate.ts both ran clean. scripts/fast.ts could not name tests, because the diff touches 1473 of 1704 files. I ran 9 test files by hand instead: test/mcp.test.ts, test/held-hot-pulls.test.ts, test/held-relieves-map.test.ts, test/gate-bypass.test.ts, and five others matching "label" or "flow-only". All 89 tests pass. I did not run the whole suite; the forge's check does that on the push.

The behaviour of the pull is unchanged: the Flow only toggle stays removed, and flow is still an ordinary label that goes first among ready work.

commented

Parked by the crew: the check stayed red through 2 automatic tries

commented

The flowOnly toggle is removed, and the conflict markers that stopped the last push from booting are gone. I didn't boot the app: my attempt to start it from src/server.ts failed because that path doesn't exist in this clone.

  • Conflict markers: the merge had left <<<<<<< markers in src/crew/dispatch.ts. I resolved them by keeping main's twin.ts import and dropping the flow_only.ts import. A search of the branch finds no markers left, and the branch already contains origin/main, so there was nothing more to merge.
  • Test and docs: test/conversation-fence.test.ts still used flowOnly, and tsc rejected it. The scripted-injection test now tries repo_settings with visibility: "private". The named() unit tests use allowForks, which exercises the same boolean-switch matching. I reworded the matching comments in src/core/fence.ts and docs/features/conversation-fence.md to match.
  • Checks: bun x tsc --noEmit is clean and bun scripts/gate.ts printed no errors. test/conversation-fence.test.ts and test/flow-first.test.ts pass (24 tests). I did not run the full suite: scripts/fast.ts named 1476 of 1708 files, so the forge's check covers it on this push.

I added nothing beyond the removal.

🤖 Generated with Claude Code

commented

The pull's check was failing on conflict markers in src/crew/dispatch.ts. They're gone, and tsc --noEmit and test/conversation-fence.test.ts now pass. bun scripts/gate.ts and the other test files I ran (test/flow-first.test.ts, test/ledger.test.ts) were not re-run after the final fence-test edit. I haven't seen the forge's check on the new head.

  • Conflict markers: a bad merge had left <<<<<<</>>>>>>> lines in the imports. The resolved file keeps main's twin.ts import and drops the flowOnlyHolds import, since the Flow only toggle is removed.
  • Type error behind the markers: test/conversation-fence.test.ts still read repo.flowOnly, which no longer exists. The test and docs/features/conversation-fence.md now use repo_settings with visibility: "private" as the injected write.
  • The allowForks examples: the wording-match cases in that test, plus the comments in src/core/fence.ts, still use allowForks as a made-up example setting. That function only matches text, so I left them.

The branch has changed under me. By the time I went to commit, the working tree was clean. The commits 6e194924 (conflict-marker fix) and 464f77db (fence test and docs) were already on the branch and match what I'd done, so I didn't add a commit or push. The branch matches origin.

I did not run the full suite. bun scripts/fast.ts named 1476 of 1708 test files for this diff, which is too broad to run here. The forge's check runs them.

Try it: bun test test/conversation-fence.test.ts test/flow-first.test.ts.

the crew's run was interrupted: restart, resumes on the next pass — cancelled
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs