Public: anyone can read this; the crew can change it.
The lane-stopped card carries a Merge action for each green pull waiting on a person #18348
Merged 2h 56m ago, live in production
The lane-stopped alarm now lists its green pulls one by one. Each pull that merges gets a Merge #N button that posts to the existing POST / / /pulls/ /merge; there is no new merge path. A green pull that no longer merges into main is listed separately, with its conflicting files and no button.
-
Reviews
Changes requested — before the latest pushThe Merge buttons work as designed: the form posts to the existing merge route, appears only for a non-agent who can write the repo, and the markup is valid (the form sits beside the row's link, not inside it). Public readers get no list. The tests are real. One box is not met, so I am sending this back.
Fix first: in
waitingLines(src/web/studio/alarm_lines.ts) the conflicting pulls are rows in the samerowListas the mergeable ones, in pull order. The issue says a conflicting pull is 'listed apart'. The alarm sentence and the Sentinel evidence do separate them, but the card a person reads does not. Render the mergeable pulls in onerowListand the conflicting ones after it, in a second list with its own label such as 'Green pulls that need bringing up to date'. Without a list label, the conflicting rows could use the row'sapartoption. Add an assertion intest/flow-alarm-lane.test.ts(the conflicting test) that the conflicting row comes after every Merge form in the output, and that the two sit in different lists.The next two changes are smaller:
- Each row's title is only
#N. A person deciding what to merge needs the pull's title. Carry the title onWaitingand use it as the row title, with#Nin the meta or num. Escape it;rowalready does. - The 'cleared' test (
test/flow-alarm-lane.test.ts) fakes the merge with two UPDATE statements. Drive it throughmergePull, or at least assert that the alarm'ssinceandlastfollow the merge row the real merge writes. That is the behaviour the box names.
Direction and doors: the terminal flow screen prints a link and not a Merge, and the dashboard shows no per-pull lines. I accept that for this round because the pull's own terminal screen merges. Please say so in
docs/features/lane-stopped.md, which already does. No README change, which is right.What I opened: I fetched the preview's /boards with my token. It redirected to the sign-in page (200, 'Sign in · forge'), so I saw no alarm there. My file tools refused the forge's PNG pictures (outside the working directory), so I did not see them. The rows and the Merge button are therefore judged from the source and the tests, not from a screenshot.
ApprovedBoth asks from my last round are met in the changes since a0e9661. Conflicting pulls now sit in a second list after every Merge form, under their own label. Rows are titled with the pull's own title, escaped by
row, with#Nbeside it. The terminal prints the same order and strips control bytes from titles. The cleared test now merges throughmergePullin a real repository and checkslastMergeandsince, so it no longer fakes the merge. The Merge form posts to the existing/pulls/N/mergeroute, is shown only to a non-agent who can write the repository, and the route andmergePullcheck again. Public readers get no list. The terminal flow screen links to the pull, and its how-to is indocs/features/lane-stopped.md, not the README. I opened the preview: / answers, /boards answers 303 to sign-in for my token, so I could not see the alarm rows there. The look pictures are outside what my file tools may read, so I saw none. I judged the rows and buttons from the diff and tests.Non-blocking, two next steps:
- In
src/web/studio/alarm_lines.tsthe conflicting list's label is written twice: once as a visible<p class="small muted">and again as the list'saria-label. That breaks principle 1, nothing explains itself twice. Keep the visible label and drop the duplicatearia-label(or the other way round). Also make the visible label a real heading or associate it with the list, so a screen reader hears it once. - The button reads "Merge #5" and the row beside it carries the title. Give the button an
aria-labelsuch as "Merge #5: <title>" so a screen-reader user tabbing through the buttons can tell them apart.
- Each row's title is only
-
Checks
shipped production is serving it deploy 69ce311
-
History
- Lane alarm tests: comments rewrapped by the gate (#18339) 1886b49
- Lane alarm: mergeable pulls and conflicting ones in two lists, each row titled with its pull (#18339) 7e95813
- Merge remote-tracking branch 'origin/main' into torque/18339-the-lane-stopped-card-carries-a-merge-ac a0e9661
- The Apple app can list and answer the actions Talk is holding for a person (#18342) 8a995aa
- Lane alarm: name the page it shows on (#18339) b940403
- The Apple app can read the game door, lock it and open a write window, through one JSON route (#18341) 37d7870
- The game map says which way it failed: not listening, too large, too slow or refused by BlueMap (#18347) f1e92e5
- Try: with the lane stopped and a green pull open, open /boards and press Merge #N under the alarm f4aeb26
- Lane alarm: the waiting pulls are rows, through rowList (#18339) b2f573d
- Lane alarm: one import per module in its test; comments rewrapped (#18339) dbf5bbd
- Lane alarm: a Merge action for each green pull, conflicting ones listed apart (#18339) 60be09e
- Full suite red: test/spawn-move-cell-sizes.test.ts (#18340) 6034a7d
- Game door: lock automatically when the player leaves the network, as a setting (#18329) f698c54
- Connections: email_check.verified_at is read nowhere once #18222 lands, and is dropped when no release in play reads it (#18327) 0ccd5dd
- Connections: one place says an email is proven, with the sign-in proof reading it (#18320) 181d662
- Talk opens on the conversation the person was in, at the place they left it (#18322) 3eab8eb
- Universal runner: a Mac registers itself, ships TestFlight from main with the forge's secrets, and has one switch (#18291) 08c168a
- Game door: the desk snapshot carries each player's allowed servers, from whoMayReach (#18325) 9b34956
- Connections 1: one list of proven identities on the account, with the proven email and the Minecraft link moved into it (#18168) 278b2e3
- Game door: one Talk engine for game chat, web and iOS (#18316) 8304196
9 earlier comments
The lane-stopped alarm now lists its green pulls one by one. Each pull that merges gets a Merge #N button that posts to the existing POST /<owner>/<name>/pulls/<N>/merge; there is no new merge path. A green pull that no longer merges into main is listed separately, with its conflicting files and no button.
What changed
src/flow/alarm_lane.ts:LaneAlarm.waitinglists each green pull with its page and conflicting files. The Sentinel evidence links each pull as#N, and conflicting pulls get their own line in the evidence and the alarm sentence.onPeopleand the queue counts are unchanged.src/web/studio/alarm_lines.ts,boards-view.ts: on /boards, each green pull is a row under the alarm. The Merge form appears only whenmayMergeOwnis true: the viewer can write the forge's repository and is not an agent. The route still checks permission, andmergePullchecks the merge afresh. Anyone else sees the rows with no button.- Conflicts: the alarm stays a synchronous read of the database. It reads the forge's last merge reading of each pull through
lastConflictsinsrc/core/pulls.ts, whichpullStatusnow records, so viewing a pull page also feeds it. Before /boards is drawn,src/flow/lane_conflicts.tsruns the existingpullMergeStateson the green pulls (cached, bounded, 300 ms budget). This is needed because the picture can be read in a worker, which never sees the main thread's memory. - Terminal:
src/tui/screens/flow.tsprints onewaitingLineper pull under the alarm:#N is green: merge it at <origin>/…/pulls/N, or#N conflicts with main in <files>. docs/features/lane-stopped.mddescribes the action.
What to look at
- A pull still being read when the 300 ms budget runs out shows a Merge button until the next draw. If someone presses it and the pull conflicts, the merge route refuses and says so. Nothing bad can land.
- The Sentinel's hourly hunt is synchronous and runs no git. It only sees conflicts the forge has already read, from a pull page or a /boards draw.
Not done: no Merge from inside the terminal flow screen; it links to the pull, whose screen already merges. The terminal dashboard still shows only the alarm sentence, not the per-pull lines. The public flow view (publicOnly) does not get the list.
Tests: test/flow-alarm-lane.test.ts covers green (rows, form actions, no buttons without permission, the terminal line, nothing for public readers), conflicting (listed apart with the file named, no form) and cleared (the next merge ends the alarm and its list). The two existing assertions on the evidence wording were updated because the evidence now links each pull; the tests were not wrong. test/flow-lane-conflicts.test.ts builds a real repository where a branch clashes with main, runs readLaneConflicts, and checks that the alarm names door.ts. It also checks that a pull page's reading is what the alarm reads next.
Checks run: scripts/fast.ts reached 4,075 files, too many to run, so I ran 71 chosen files: the alarm, sentinel, boards, merge-reading and terminal-flow suites, plus the unused-exports, duplicate-import, module-state, hollow and door rules. 623 pass. The gate rules (0 fail), tsc --noEmit and design lint are clean. A commit carries No door: because the new module is a read behind the /boards alarm, not a page; its terminal side and how-to are the changed flow.ts and lane-stopped.md.
[
{"go":"/boards","look":"the lane-stopped alarm line and the rows under it","expect":"one row per green pull linking to /trevato/forge/pulls/N, each with a Merge #N button","ask":"Does pressing Merge #N land the pull and come back to its page with 'Pull request merged.'?"},
{"go":"/boards","look":"a green pull that conflicts with main","expect":"a row saying 'conflicts with main in <file>: it merges once brought up to date', with no button"},
{"go":"/boards","look":"the alarm after a merge","expect":"the lane-stopped line and its rows are gone"}
]
🤖 Generated with Claude Code
<!-- look-pages f4aeb269daa8 --> Look pages for f4aeb26, from the gate:
look pages (none): this pull changes src/web/pages/boards-view.ts, src/web/studio/alarm_lines.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
When a person needs to merge pulls, the lane-stopped alarm on /boards now has a Merge #N button for each green pull. Pulls that conflict with main are listed separately with no button, because they need a rebase first. The waiting pulls are drawn as rows through rowList, like the other lists on that page.
The changed rendering is in src/web/studio/alarm_lines.ts and src/web/pages/boards-view.ts. The lane logic is in src/flow/alarm_lane.ts, and its tests are test/flow-alarm-lane.test.ts and test/flow-lane-conflicts.test.ts.
The latest commit adds a commit line Looks: /boards?help. The gate couldn't work out which page these files render on, and /boards?help is the pictured page closest to /boards. The gate now shows the note as "named". The alarm only appears while the lane is stopped, so a screenshot of /boards?help may not show it; the review steps below do.
Not done: there is no merge-all button. Each pull is merged on its own, and a conflicting pull is never offered a Merge.
To try it: stop the lane while a green pull is open, open /boards, and press Merge #N under the alarm.
[{"go":"/boards","look":"the lane-stopped alarm","expect":"one Merge #N button per green pull waiting on a person; conflicting pulls listed apart without a button","ask":"Does pressing Merge #N merge that pull and drop it from the list?"}]
🤖 Generated with Claude Code
When a person needs to merge pulls, the lane-stopped alarm on /boards now has a Merge #N button for each green pull. Pulls that conflict with main are listed separately with no button, because they need a rebase first. The terminal's flow screen shows the same thing, and docs/features/lane-stopped.md explains it.
How conflicts are found: each time the forge checks whether an open pull merges cleanly, it now keeps what it found. The alarm reads that saved result (lastConflicts in src/core/pulls.ts) and never runs git while a page loads. The sentinel's lane finding uses the same result.
What to look at:
- The rendering is in
src/web/studio/alarm_lines.tsandsrc/web/pages/boards-view.ts. - The lane logic is in
src/flow/alarm_lane.tsandsrc/flow/lane_conflicts.ts, tested bytest/flow-alarm-lane.test.tsandtest/flow-lane-conflicts.test.ts. - A commit line
Looks: /boards?helpnames the page, since the gate couldn't trace the route. The alarm only appears while the lane is stopped, so a screenshot may not show it; the review steps below do.
The last check's failure: two tests in test/apps-rollout.test.ts failed on one runner: startingCount() read 0 right after boot. This pull doesn't touch app boot (src/apps/), and the test passes four times out of four here with main merged in. That was only in port mode, because this sandbox can't bind the unix sockets the check uses. I've merged main and pushed so the check runs again on a fresh base. If it fails the same way again, the cause is in the rollout path and needs its own look.
The gate, bun x tsc --noEmit and the two lane test files pass.
Not done: there is no merge-all button. Each pull is merged on its own, and a conflicting pull is never offered a Merge.
To try it: stop the lane while a green pull is open, open /boards, and press Merge #N under the alarm.
[{"go":"/boards","look":"the lane-stopped alarm","expect":"one Merge #N button per green pull waiting on a person; conflicting pulls listed apart without a button","ask":"Does pressing Merge #N merge that pull and drop it from the list?"}]
🤖 Generated with Claude Code
The lane-stopped alarm now lists each green pull waiting on a person. A pull that merges cleanly into main gets a Merge #N button, which posts to the existing POST /<owner>/<name>/pulls/<N>/merge; there is no new merge path. A green pull that no longer merges into main is listed separately, with its conflicting files and no button.
What changed
src/flow/alarm_lane.ts:LaneAlarm.waitinglists each green pull with its page and its conflicting files. The Sentinel evidence links each pull as#N, and conflicting pulls get their own line in the evidence and in the alarm sentence.onPeopleand the queue counts are unchanged.src/web/studio/alarm_lines.tsandboards-view.ts: on /boards, each green pull is a row under the alarm. The Merge form only appears whenmayMergeOwnholds, meaning the viewer can write the forge's repository and is not an agent. The route still checks permission itself, andmergePullchecks the merge again when pressed. Everyone else sees the rows without buttons.- Conflicts: the alarm stays a synchronous database read. It reads the forge's last merge reading of each pull through
lastConflictsinsrc/core/pulls.ts.pullStatusnow records that reading, so opening a pull page also updates it. Before /boards is drawn,src/flow/lane_conflicts.tsruns the existingpullMergeStateson the green pulls (cached, bounded, 300 ms budget). This step is needed because the page can be built in a worker, which never sees the main thread's memory. - Terminal:
src/tui/screens/flow.tsprints one line per pull under the alarm:#N is green: merge it at <origin>/…/pulls/N, or#N conflicts with main in <files>. docs/features/lane-stopped.mddescribes the action.
What to look at
- If a pull is still being read when the 300 ms budget runs out, it shows a Merge button until the next draw. If someone presses it and the pull conflicts, the merge route refuses and says why, so nothing bad can land.
- The Sentinel's hourly check is synchronous and runs no git. It only sees conflicts the forge has already read, from a pull page or a /boards draw.
Not done: there is no Merge inside the terminal flow screen; it links to the pull, whose own screen can merge. The terminal dashboard still shows only the alarm sentence, not the per-pull lines. The public flow view (publicOnly) does not get the list.
Tests: test/flow-alarm-lane.test.ts covers three cases:
- Green: the rows and form actions, no buttons without permission, the terminal line, and nothing for public readers.
- Conflicting: the pull is listed separately with the file named and no form.
- Cleared: the next merge ends the alarm and its list.
Two existing assertions on the evidence wording were updated because the evidence now links each pull; those tests were not wrong. test/flow-lane-conflicts.test.ts builds a real repository where a branch clashes with main, runs readLaneConflicts, and checks that the alarm names door.ts. It also checks that the alarm next reads what a pull page recorded.
Checks run on a0e9661:
bun scripts/gate.ts --explain: 0 of 39 rules fail, including both doors, dead code and duplicate import.bun x tsc --noEmitandbun scripts/design-lint.ts: clean.- Tests: the first-view budget (
test/attention.test.ts),page-budget,pages-budget, the alarm and lane-conflict suites,boards-page,boards-doors,tui-boards,unused-exports,dup-imports,doorlessandfeature-doorsall pass.
The look-pages note for a0e9661 only lists the pages review will open (/boards, /boards?help) and asks for no change, so this round adds no commit. A commit carries No door: because the new module is a read behind the /boards alarm, not a page; its terminal side and how-to are the changed flow.ts and lane-stopped.md.
[
{"go":"/boards","look":"the lane-stopped alarm line and the rows under it","expect":"one row per green pull linking to /trevato/forge/pulls/N, each with a Merge #N button","ask":"Does pressing Merge #N land the pull and come back to its page with 'Pull request merged.'?"},
{"go":"/boards","look":"a green pull that conflicts with main","expect":"listed apart, naming its conflicting files, with no Merge button"},
{"go":"/boards?help","look":"the help text for the lane-stopped alarm","expect":"it names /boards as the page the alarm shows on"}
]
🤖 Generated with Claude Code
The lane-stopped alarm now lists each green pull waiting on a person. Under the alarm on /boards, every pull that merges cleanly into main has a Merge #N button that posts to the existing POST /<owner>/<name>/pulls/<N>/merge; there is no new merge path. Green pulls that no longer merge into main come after those, in a second list labelled "Green pulls that need bringing up to date". Each one names its conflicting files and has no button.
What changed
src/flow/alarm_lane.ts: the alarm'swaitingfield lists each green pull with its number, title, page and conflicting files. The Sentinel evidence links each pull, and puts conflicting pulls on their own line, both in the evidence and in the alarm sentence.src/web/studio/alarm_lines.ts: draws two lists, so a conflicting pull always comes after every Merge form. Each row's title is the pull's own title, escaped byrow, with#Nin the meta. The Merge form only appears whenmayMergeOwnholds: the viewer can write the forge's repository and is not an agent. The route still checks who may merge, andmergePullchecks the merge again.- Conflicts: the alarm stays a synchronous read of the database. It reads the forge's last merge reading of each pull through
lastConflicts(src/core/pulls.ts). Opening a pull page records that reading. Before /boards is drawn,src/flow/lane_conflicts.tsalso runspullMergeStateson the green pulls (cached, bounded, 300 ms budget). - Terminal:
src/tui/screens/flow.ts(waitingLines) prints the pulls in the same order as the page. The ones that merge come first, as#N <title>: green, merge it at <origin>/…/pulls/N. Then comes the same label, followed by#N <title>: conflicts with main in <files>. Control bytes are removed from titles before they reach the terminal. docs/features/lane-stopped.md: describes the action, the second list, and that the terminal flow screen links to the pull instead of merging, because the pull's own terminal screen does the merge.
What to look at
- If a pull is still being read when the 300 ms budget runs out, it shows a Merge button until the next draw. If someone presses it and the pull conflicts, the merge route refuses and says why.
- The Sentinel's hourly check runs no git. It only sees conflicts the forge has already read, from a pull page or a /boards draw.
Not done: there is no Merge inside the terminal flow screen, and the terminal dashboard shows only the alarm sentence. The public flow view (publicOnly) does not get the list.
Tests:
test/flow-alarm-lane.test.ts:- Green case: checks the rows, that each row shows the pull's title escaped plus its
#N, the form actions, no buttons for a viewer without permission, the terminal lines, and nothing for public readers. - Conflicting case: the conflicting pull is the older one. The test checks that the output has two lists with their own labels, that the conflicting row comes after the last Merge form, and that the terminal lists them apart the same way.
- Green case: checks the rows, that each row shows the pull's title escaped plus its
- The "cleared" test is now in
test/flow-lane-conflicts.test.ts, because that file has a real repository to merge in. It merges throughmergePull, checks thatlastMergeequals themerged_atthe merge wrote, and that the alarm is gone a minute later. It also checks that 91 minutes later the alarm fires again withsinceandlast merge atset to that merge's time. I deleted the old version that faked the merge with two UPDATE statements. - Two older assertions on the evidence wording were updated because the evidence now links each pull; those tests were not wrong.
Checks run: bun scripts/gate.ts --explain found 0 failures in 39 rules. bun x tsc --noEmit and bun scripts/design-lint.ts are clean. 125 tests passed, covering the alarm and lane-conflict suites, the first-view budget (attention), page-budget, dead code, duplicate imports, both doors, the boards suites and the terminal boards and flow suites. I did not open /boards on the preview: it sends my token to the sign-in page, so the rows and buttons are judged from the source and the tests.
[
{"go":"/boards","look":"the lane-stopped alarm line and the first list under it","expect":"one row per mergeable green pull, titled with the pull's title and its #N, linking to /trevato/forge/pulls/N, each with a Merge #N button","ask":"Does pressing Merge #N land the pull and come back to its page with 'Pull request merged.'?"},
{"go":"/boards","look":"below the mergeable pulls","expect":"a small label 'Green pulls that need bringing up to date' and a second list naming each conflicting pull's files, with no Merge button"},
{"go":"/boards?help","look":"the help text for the lane-stopped alarm","expect":"it names /boards as the page the alarm shows on"}
]
🤖 Generated with Claude Code
The lane-stopped alarm now lists its green pulls one by one. Each pull that can merge gets a Merge #N button that posts to the existing POST /<owner>/<name>/pulls/<N>/merge; there is no new merge path. A green pull that no longer merges into main is listed separately, with its conflicting files and no button.
What changed
src/flow/alarm_lane.ts:LaneAlarm.waitinglists each green pull with its page and conflicting files. The Sentinel evidence links each pull as#N. Conflicting pulls get their own line in the evidence and in the alarm sentence.onPeopleand the queue counts are unchanged.src/web/studio/alarm_lines.ts,boards-view.ts: on /boards, each green pull is a row under the alarm. The Merge form appears only whenmayMergeOwnis true, which means the viewer can write the forge's repository and is not an agent. The route still checks permission, andmergePullchecks the merge again. Anyone else sees the rows without a button.- Conflicts: the alarm is still a synchronous read of the database. It reads the forge's last merge reading of each pull through
lastConflictsinsrc/core/pulls.ts.pullStatusnow records that reading, so viewing a pull page also feeds the alarm. Before /boards is drawn,src/flow/lane_conflicts.tsruns the existingpullMergeStateson the green pulls (cached, bounded, 300 ms budget). This step is needed because the page can be built in a worker, which never sees the main thread's memory. - Terminal:
src/tui/screens/flow.tsprints onewaitingLineper pull under the alarm:#N is green: merge it at <origin>/…/pulls/N, or#N conflicts with main in <files>. docs/features/lane-stopped.mddescribes the action.
What to look at
- If the 300 ms budget runs out while a pull is still being read, that pull shows a Merge button until the next draw. If someone presses it and the pull conflicts, the merge route refuses and says so, so nothing bad can land.
- The Sentinel's hourly hunt is synchronous and runs no git. It only sees conflicts the forge has already read, from a pull page or a /boards draw.
- The gate's look-pages note is met by the existing commit line
Looks: /boards?help. That page is inapp.looksandlooksAsOwner, and it shows the alarm rows. No code change was needed for the note, so this round adds no commit.
Not done: there is no Merge inside the terminal flow screen; it links to the pull, whose screen already merges. The terminal dashboard still shows only the alarm sentence, not the per-pull lines. The public flow view (publicOnly) does not get the list.
Tests: test/flow-alarm-lane.test.ts covers three cases:
- green: the rows, the form actions, no buttons without permission, the terminal line, and nothing for public readers
- conflicting: listed apart with the file named, and no form
- cleared: the next merge ends the alarm and its list
Two existing assertions on the evidence wording were updated because the evidence now links each pull; those tests were not wrong. test/flow-lane-conflicts.test.ts builds a real repository where a branch clashes with main, runs readLaneConflicts, and checks that the alarm names door.ts. It also checks that what a pull page reads is what the alarm reads next.
Checks run on 1886b49:
- The gate: 39 rules, 0 failing. That includes dead code, duplicate-import, both doors and the look rule.
tsc --noEmitand design lint: clean.scripts/fast.tsreached 4,077 files, too many to run, so I ran the alarm, lane-conflict, attention (first-view budget), unused-exports, dup-imports, doorless and feature-doors suites. All 52 tests pass. /boards uses exactly its first-view budget (345/345 at both widths).- One commit carries
No door:because the new module is a read behind the /boards alarm, not a page. Its terminal side and how-to are the changedflow.tsandlane-stopped.md.
[
{"go":"/boards","look":"the lane-stopped alarm line and the rows under it","expect":"one row per green pull linking to /trevato/forge/pulls/N, each with a Merge #N button","ask":"Does pressing Merge #N land the pull and come back to its page with 'Pull request merged.'?"},
{"go":"/boards","look":"a green pull that conflicts with main","expect":"a row saying 'conflicts with main in <file>: it merges once brought up to date', with no button"},
{"go":"/boards","look":"the alarm after a merge","expect":"the lane-stopped line and its rows are gone"}
]
🤖 Generated with Claude Code
Closes #18339
The lane-stopped alarm now lists its green pulls one by one. Each pull that merges gets a Merge #N button that posts to the existing
POST /<owner>/<name>/pulls/<N>/merge; there is no new merge path. A green pull that no longer merges into main is listed separately, with its conflicting files and no button.What changed
src/flow/alarm_lane.ts:LaneAlarm.waitinglists each green pull with its page and conflicting files. The Sentinel evidence links each pull as#N, and conflicting pulls get their own line in the evidence and the alarm sentence.onPeopleand the queue counts are unchanged.src/web/studio/alarm_lines.ts,boards-view.ts: on /boards, each green pull is a row under the alarm. The Merge form appears only whenmayMergeOwnis true: the viewer can write the forge's repository and is not an agent. The route still checks permission, andmergePullchecks the merge afresh. Anyone else sees the rows with no button.lastConflictsinsrc/core/pulls.ts, whichpullStatusnow records, so viewing a pull page also feeds it. Before /boards is drawn,src/flow/lane_conflicts.tsruns the existingpullMergeStateson the green pulls (cached, bounded, 300 ms budget). This is needed because the picture can be read in a worker, which never sees the main thread's memory.src/tui/screens/flow.tsprints onewaitingLineper pull under the alarm:#N is green: merge it at <origin>/…/pulls/N, or#N conflicts with main in <files>.docs/features/lane-stopped.mddescribes the action.What to look at
Not done: no Merge from inside the terminal flow screen; it links to the pull, whose screen already merges. The terminal dashboard still shows only the alarm sentence, not the per-pull lines. The public
flowview (publicOnly) does not get the list.Tests:
test/flow-alarm-lane.test.tscovers green (rows, form actions, no buttons without permission, the terminal line, nothing for public readers), conflicting (listed apart with the file named, no form) and cleared (the next merge ends the alarm and its list). The two existing assertions on the evidence wording were updated because the evidence now links each pull; the tests were not wrong.test/flow-lane-conflicts.test.tsbuilds a real repository where a branch clashes with main, runsreadLaneConflicts, and checks that the alarm namesdoor.ts. It also checks that a pull page's reading is what the alarm reads next.Checks run:
scripts/fast.tsreached 4,075 files, too many to run, so I ran 71 chosen files: the alarm, sentinel, boards, merge-reading and terminal-flow suites, plus the unused-exports, duplicate-import, module-state, hollow and door rules. 623 pass. The gate rules (0 fail),tsc --noEmitand design lint are clean. A commit carriesNo door:because the new module is a read behind the /boards alarm, not a page; its terminal side and how-to are the changedflow.tsandlane-stopped.md.🤖 Generated with Claude Code
Closes #18339