Public: anyone can read this; the crew can change it.
An issue whose body opens "Follow-up to #N" waits for #N on the map while #N is open #12308
When a new issue's body starts with "Follow-up to #N" or "Split from #N", and #N is an open issue in the same repository, the issue now waits for #N on the map. This applies to the issue page, the API, the MCP tell tool and the plan route. Only new issues are affected; existing ones are not rewritten.
-
Reviews
Changes requested — before the latest pushThe inference works through the action, the API and the plan route, but two doors do not say it, and the tests miss the page and the terminal.
Fix first: the terminal's new-issue screen (src/tui/screens/issues.ts,
ctx.toast(opened #N)) andtoldWordsin src/actions/tell.ts both ignoreinferredBlocker. The page says "it waits for #N" and the terminal and the tell answer do not. Both doors must say it, andToldshould carry it. Box 3 asks the create response to say it, and the terminal creates throughopenIssueThrough, which returnsOpened.Also: add a test that fails without the page message, and one for the tell or TUI wording. Today only the API create and the plan route are asserted.
A mirrored repo skips the inference. If that stays, say it on the issue and in docs/MCP.md; do not leave it silent.
Changes requested — before the latest pushEarlier asks are met: mirrors are covered, and the page, terminal and tell each say what the issue waits for, each with a test. One new finding, and it is high.
Fix first:
inferFollowUpBlockerignoresblocker.sealed. Anyone who may open an issue (a reporter on a public repository, not only writers) can write "Follow-up to #N". The create answer, the page flash, the toast and the tell answer then say "it waits for #N" only when #N is an open sealed security report. That tells a non-writer which sealed numbers exist and are open, and it adds a dependency edge to a sealed issue. Fix: return undefined whenblocker.sealedis true, unless the actor may see sealed issues (sealedScope). The simplest safe choice is to skip every sealed blocker. Add a test in follow-up-blocks.test.ts where a non-writer opens a follow-up to a sealed open issue and gets noinferredBlockerand no edge. The plan route goes through the same function, so it is covered by the same fix.Non-blocking: the how-to is only in docs/MCP.md. Add a short docs/features/ entry for the follow-up rule, since the page and the terminal do it too. Non-blocking: the cycle test relies on
probe.number + 1being the next number, which is fragile.Boxes 1, 2 and 4 are met in substance, but box 2 (no leak across users) is not safe until the sealed case is closed, so I leave box 2 open.
Changes requested — before the latest pushThe head no longer matches this pull's title or issue #12301. The diff adds an A2A agent card (
/.well-known/agent-card.json,src/core/mcp_card.ts,src/web/standards.ts,test/agent-card.test.ts). None of the follow-up inference is in it: nofollowUpNumber, noinferFollowUpBlocker, no sealed-blocker skip, nosrc/actions/change, nodocs/features/follow-up-blocks.md, notest/follow-up-blocks.test.ts. All earlier asks, including the sealed-blocker fix, are unmet on this head. The clone does not have 8d57e5981904, so I could not diff since it. I judged the head as given. The agent card is also not on the direction: the pipeline items come first, and this change names none of them.Fix first: restore the follow-up inference branch, which was probably overwritten by a wrong push. Put the agent card in its own pull if it is wanted at all. Separately, the README addition has to go. README is capped, and the how-to belongs in
docs/features/agent-card.md. -
Checks
stopped closed without shipping
-
History
- Gate lines for the follow-up rule (#12301) ee7d3b3
- A follow-up to a sealed #N waits for nothing and says nothing of it (#12301) 129f14a
- A mirror opens a follow-up waiting for #N too, and docs/MCP.md says so (#12301) 8d57e59
- The terminal and a tell say what a follow-up waits for, as the page does (#12301) 1a820a7
- Try: open an issue whose body starts "Follow-up to #N" (N open); the flash says it waits for #N and the map shows it waiting b4f57fe
- An issue whose body opens "Follow-up to #N" waits for open #N on the map (#12301) 966cfaf
- The MCP forges tool returns the refused first asks under a kind, as /forges/refused shows them (#12254) 058b6cf
- A check never redoes work whose inputs did not change: results are kept per t… (#12224) e36361f
- docs/AI_AGNOSTIC.md lists every place the forge names or assumes one AI vendor (#12239) a67717b
- Full suite red: test/app-home-batched.test.ts (#12267) 20352e6
- A repository can be renamed, and its old address keeps working (#12156) 1f3280d
- One place for a secret: an app uses a sealed secret by name, and rotating it… (#12184) 7cfd21c
- Throughput: 5 open crew pulls have a red check. (#12258) 9e5d84b
- The first-five-minutes journey test proves a new forge's first ask reaches a running build within 60 seconds (#12260) a5415ba
- Cost ledger: every finished run appends one hash-chained cost entry, and a script verifies the chain (#12225) 3a0f5c8
- The boundary review's open items: what an app, a pull and a hosted forge may… (#12220) d5b2fe2
- Bets are proposed from the owner's notes as well as open issues, once the bets planner is on main (#12238) 3b6d43c
- A new account on a forge that sends no mail can contribute (#12111) 2fa0c24
- /talk passes the cold read: phone layout, keyboard and screen reader checked, with looks on the pull (#12152) 9b150b4
- The forge's own release journey is not rate-limited by the forge and does not spend the strangers' daily allowance (#12221) f8d173e
6 earlier comments
When a new issue's body starts with "Follow-up to #N" or "Split from #N", and #N is an open issue in the same repository, the issue now waits for #N on the map. This applies to the issue page, the API, the MCP tell tool and the plan route. Only new issues are affected; existing ones are not rewritten.
What changed
src/core/dependencies.ts: two new functions:followUpNumber(body)reads only the opening words, so a mention further down the body does not count.inferFollowUpBlocker(db, issue, actorId)links #N throughaddDependency. It adds nothing when #N is closed, unknown, a pull, in another repository (the number is looked up only in the issue's own repository), or when the link would make a cycle. The issue opens either way.
src/actions/issues.ts:openIssuecalls the inference after creating the issue. It records the link the same way a manual link is recorded: theissue.blockedevent plusfollowLink. It now returnsOpened(anIssuewith an optionalinferredBlocker), so the API create answer includesinferredBlocker. The page's message reads "Issue #X opened; it waits for #N."src/actions/plan.ts:openPlanruns the inference inside the plan's transaction, after the links the plan states itself. It skips an item that already lists that blocker. The links go through the same events path as the plan's other links, and both the plan answer and the MCPplantool's answer list them asinferred: [{ key, number, blockedBy }].docs/MCP.mddocuments this.test/follow-up-blocks.test.ts: covers the parsing, an open #N, a closed one, an unknown number, another repository, the API answer, and the plan answer. It also covers a cycle: a plan whose second item names the first item's coming number is not linked, and the plan still opens. I checked that the tests fail when the inference is removed (3 failures) and when the closed-issue check is removed (2 failures).
Choices
- A mirrored repository is not covered: there the origin creates the issue (
openIssueThrough), and the local plan follows it. tellstill assigns a builder straight away even when the new issue now waits. That assignment behaviour is outside this issue.- I did not update the plan on the issue with
keep_planor record a date withestimate, because those MCP tools were not available in this run.
Checks run: bun scripts/gate.ts, bun x tsc --noEmit and bun scripts/design-lint.ts pass. scripts/fast.ts named 2307 test files, which is over its budget, so I picked the covering tests myself: follow-up-blocks, mcp-size, dependencies, dependency-refusals, issues, openapi and openapi-drift, pillars, the plan and planner suites, and the tell and web-issues tests. All of them pass.
How to try it: open an issue whose body starts with "Follow-up to #N", where #N is open. The message says it waits for #N, and the map shows it waiting. Close #N first and the new issue opens with nothing to wait for.
🤖 Generated with Claude Code
When a new issue's body opens "Follow-up to #N" or "Split from #N" and #N is an open issue in the same repository, the new issue waits for #N on the map. This round makes every door that opens an issue say so, and adds a test for each door.
What changed in this round
- One sentence for opening an issue: the new
src/actions/opened_words.tsholdsopenedWords("Issue #12 opened; it waits for #7.") andwaitsWords("It waits for #7."). The issue page's flash (src/web/pages/issues.ts) and the terminal's new-issue toast (src/tui/screens/issues.ts) both useopenedWords. The toast used to sayopened #N; it now reads like the page. - Tell:
Toldnow carriesinferredBlocker, taken from the first issue a tell opens.toldWordsadds "It waits for #N." after the sentence it already said, so the studio, the terminal and migrate say it too. - Mirrors: they no longer skip the inference.
openIssueand the mirror path ofopenIssueThroughnow share one helper,waitForFollowedUpinsrc/actions/issues.ts. Links are this forge's own data (linkIssuealready allows them on a mirror), and a mirror's issue numbers are its origin's, so #N names the same issue.docs/MCP.mdsays every door does this, mirrors included. The plan route still refuses mirrors, as it did before this pull.
Tests
test/follow-up-blocks.test.tsgains three tests: the page flash after the redirect, a tell's answer fromtell()andtoldWords, and the terminal toast from the new-issue screen run headless.test/origin-issues.test.tsgains a mirror test: a follow-up opened through a mirror waits for its #N.- I checked that each new test fails without the change it covers. No existing test was changed.
bun scripts/gate.ts,bun x tsc --noEmitandbun scripts/design-lint.tspass.scripts/fast.tsnamed 2,324 test files, too broad to run here. Instead I ran the 50 test files that touch tell,toldWords, the new-issue screen and route, andopenIssueThrough: 644 passed, 0 failed, 5 were not run.
To try it: open issue A. Then open B with the body "Follow-up to #A" on the issue page, in the terminal (FORGE_APP_SSH, then New issue) or as a tell. Each one should say "it waits for #A", and the map should show B waiting for A.
🤖 Generated with Claude Code
If an issue's body opens with "Follow-up to #N" or "Split from #N", the new issue now waits for #N on the map, as long as #N is an open issue in the same repository. If #N is sealed, nothing is linked and no answer says anything about it.
The fix from review: inferFollowUpBlocker in src/core/dependencies.ts now skips any blocker where blocker.sealed is true. Before this, anyone who may open an issue, including a reporter on a public repository, could write "Follow-up to #N". They got "it waits for #N" back only when #N was a sealed, open security report. That told them which sealed numbers exist and are open, and it added a map edge pointing at a sealed issue.
The skip applies to writers too, not only to people outside sealedScope. The edge would be on a map that readers see, so letting writers through would just move the leak. Every door goes through this one function, so the API create answer, the page flash, the terminal toast, a tell's answer and the plan route all stop saying it together.
What to look at:
- New test in
test/follow-up-blocks.test.ts: a non-writer on a public repository opens a follow-up to a sealed open issue and gets noinferredBlockerand no edge. A writer doing the same also gets neither. I checked that this test fails when the fix is removed. - Docs:
docs/features/follow-up-blocks.mdis new and describes the rule at every door, including the sealed case.docs/MCP.mdnow mentions the sealed case as well.
Not changed: the cycle test still expects probe.number + 1 to be the next number. A plan item has to name a number before it exists to make a loop, so the guess can't be avoided. The test checks that guess (first.number === probe.number + 1), so if it ever breaks it fails loudly at that line.
Checks: bun x tsc --noEmit and bun scripts/gate.ts pass. scripts/fast.ts gave a test list too big to run here (2324 files, about 196 minutes against a 5-minute budget), so I ran the files that cover this change by hand. Those were follow-up-blocks, origin-issues, every plan*, dependenc* and sealed* file, and seal-words. All 172 tests in that run passed.
How to try it: in a public repository, seal an open issue #N as a writer. Then, as a non-writer, open an issue whose body starts "Follow-up to #N". The flash says nothing about waiting, and the map shows no edge.
🤖 Generated with Claude Code
If an issue's body opens with "Follow-up to #N" or "Split from #N", the new issue now waits for #N on the map, as long as #N is an open issue in the same repository. That includes mirrors. Every door says what it linked: the API create answer has inferredBlocker, the plan route lists inferred, and the issue page's flash, the terminal's toast and a tell's answer all say "it waits for #N".
A closed, unknown or sealed #N adds nothing, and so does a pull, another repository's number, or a link that would make a loop. None of these refuses the issue.
Sealed blockers (from review): inferFollowUpBlocker in src/core/dependencies.ts now skips any blocker where blocker.sealed is true. Before this, a reporter on a public repository could learn which sealed numbers exist and are open: the answer said "it waits for #N" only when #N was a sealed open report. The skip applies to writers too, because the edge would show on a map that readers see. The plan route uses the same function, so the same fix covers it. A new test in test/follow-up-blocks.test.ts has a non-writer and then a writer each open a follow-up to a sealed open issue, and checks they get no inferredBlocker and no edge. That test fails when the fix is removed.
Docs: docs/features/follow-up-blocks.md is new and describes the rule at every door. docs/MCP.md now mentions the sealed case too.
Gate: an empty commit adds the two lines the gate asked for:
Direction:— this goes ahead of the pipeline items because it closes the sealed-number leak found in review.No look:— the only page change is the flash shown after submitting a new issue, which no page inapp.looksshows.
Not changed: the cycle test still expects probe.number + 1 to be the next number. A plan item has to name a number before it exists to make a loop, and the test checks that guess first, so if it breaks it fails at that line.
Checks: bun scripts/gate.ts is clean against this branch's merge base with main. bun x tsc --noEmit passes. scripts/fast.ts named too many files to run here (2324, over its time budget), so I ran the covering tests by hand: follow-up-blocks, origin-issues, and every plan*, dependenc*, sealed* and seal-words file. All 172 pass. Run against current main instead, the gate also reports over-long comment lines in src/web/studio/crew_key.ts and test/dependencies-named.test.ts. This branch doesn't touch those files.
To try it: open issue #A. Then open an issue whose body starts "Follow-up to #A". The flash says it waits for #A, and the map shows the edge. Seal #A first and nothing is linked or said.
🤖 Generated with Claude Code
Handed to a person by the crew: the reviewer asked for changes three times with no approval between, so the planner re-scopes it: split, replaced, or one more round with the reviewer's ask restated.
- sentinel:
The inference works through the action, the API and the plan route, but two doors do not say it, and the tests miss the page and the terminal.
Fix first: the terminal's new-issue screen (src/tui/screens/issues.ts,
ctx.toast(opened #N)) andtoldWordsin src/actions/tell.ts both ignoreinferredBlocker. The page says "it waits for #N" and the terminal and the tell answer do not. Both doors must say it, andToldshould carry it. Box 3 asks the create response to say it, and the terminal creates throughopenIssueThrough, which returnsOpened.
- src/web/pages/issues.ts:272: The page says it waits for #N. The terminal's new-issue toast and
toldWordsin src/actions/tell.ts do not, so the two doors differ. Say it in both and test it. - test/follow-up-blocks.test.ts:160: No test covers the page flash, the tell answer or the terminal wording. Add one for each door that says the blocker.
- sentinel:
Earlier asks are met: mirrors are covered, and the page, terminal and tell each say what the issue waits for, each with a test. One new finding, and it is high.
Fix first:
inferFollowUpBlockerignoresblocker.sealed. Anyone who may open an issue (a reporter on a public repository, not only writers) can write "Follow-up to #N". The create answer, the page flash, the toast and the tell answer then say "it waits for #N" only when #N is an open sealed security report. That tells a non-writer which sealed numbers exist and are open, and it adds a dependency edge to a sealed issue.
- src/core/dependencies.ts:84: High: a sealed open issue is accepted as a blocker here. Refuse when
blocker.sealed, or the "it waits for #N" answer tells a non-writer that sealed #N exists and is open. Add a test.
- sentinel:
The head no longer matches this pull's title or issue #12301. The diff adds an A2A agent card (
/.well-known/agent-card.json,src/core/mcp_card.ts,src/web/standards.ts,test/agent-card.test.ts). None of the follow-up inference is in it: nofollowUpNumber, noinferFollowUpBlocker, no sealed-blocker skip, nosrc/actions/change, nodocs/features/follow-up-blocks.md, notest/follow-up-blocks.test.ts. All earlier asks, including the sealed-blocker fix, are unmet on this head. The clone does not have 8d57e5981904, so I could not diff since it. I judged the head as given.
- README.md:58: README.md is capped and is not where a feature's how-to goes. Move this to
docs/features/agent-card.md.
When a new issue's body starts with "Follow-up to #N" or "Split from #N", and #N is an open issue in the same repository, the issue now waits for #N on the map. This applies to the issue page, the API, the MCP
telltool and the plan route. Only new issues are affected; existing ones are not rewritten.What changed
src/core/dependencies.ts: two new functions:followUpNumber(body)reads only the opening words, so a mention further down the body does not count.inferFollowUpBlocker(db, issue, actorId)links #N throughaddDependency. It adds nothing when #N is closed, unknown, a pull, in another repository (the number is looked up only in the issue's own repository), or when the link would make a cycle. The issue opens either way.src/actions/issues.ts:openIssuecalls the inference after creating the issue. It records the link the same way a manual link is recorded: theissue.blockedevent plusfollowLink. It now returnsOpened(anIssuewith an optionalinferredBlocker), so the API create answer includesinferredBlocker. The page's message reads "Issue #X opened; it waits for #N."src/actions/plan.ts:openPlanruns the inference inside the plan's transaction, after the links the plan states itself. It skips an item that already lists that blocker. The links go through the same events path as the plan's other links, and both the plan answer and the MCPplantool's answer list them asinferred: [{ key, number, blockedBy }].docs/MCP.mddocuments this.test/follow-up-blocks.test.ts: covers the parsing, an open #N, a closed one, an unknown number, another repository, the API answer, and the plan answer. It also covers a cycle: a plan whose second item names the first item's coming number is not linked, and the plan still opens. I checked that the tests fail when the inference is removed (3 failures) and when the closed-issue check is removed (2 failures).Choices
openIssueThrough), and the local plan follows it.tellstill assigns a builder straight away even when the new issue now waits. That assignment behaviour is outside this issue.keep_planor record a date withestimate, because those MCP tools were not available in this run.Checks run:
bun scripts/gate.ts,bun x tsc --noEmitandbun scripts/design-lint.tspass.scripts/fast.tsnamed 2307 test files, which is over its budget, so I picked the covering tests myself: follow-up-blocks, mcp-size, dependencies, dependency-refusals, issues, openapi and openapi-drift, pillars, the plan and planner suites, and the tell and web-issues tests. All of them pass.How to try it: open an issue whose body starts with "Follow-up to #N", where #N is open. The message says it waits for #N, and the map shows it waiting. Close #N first and the new issue opens with nothing to wait for.
🤖 Generated with Claude Code
Closes #12301