Public: anyone can read this; the crew can change it.
The duplicate-title fold only folds issues by the crew or by writers, so a reader's copied title closes nothing and moves no dependency #15213
Check · Review · Land · Live done — Landed and live in production.
The duplicate-title fold now only considers issues written by the crew or by writers, so a reader who copies a crew issue's title no longer gets it closed or its dependencies moved onto their own issue (#15211, replacing #14763).
shipped production is serving it deploy cfe12e4
The duplicate-title fold now only considers issues written by the crew or by writers, so a reader who copies a crew issue's title no longer gets it closed or its dependencies moved onto their own issue (#15211, replacing #14763).
What changed
duplicates()insrc/crew/livetriage.tsskips imported issues (origin_author IS NULL) and any issue whose author is neither an agent on this repository's crew (onCrew) nor a person whocanWritehere. This is the same rulefold()andquestions()already use. Each author is looked up once per pass and the answer is remembered. A skipped issue is never closed by the fold and never chosen as the survivor. Whether an author counts as crew now comes from that lookup, not fromu.is_agent.test/livetriage.test.tshas two new tests:- A reader's copied title, in either order (crew issue older or newer), closes nothing, leaves no "duplicate of #" note, and the waiter's link stays on the crew issue.
- An agent that is not on the crew, or an imported twin, never takes part in a fold, whether the other copy is the crew's or a writer's.
Both new tests fail on main and pass with the fix. The existing duplicate tests still pass, so a writer's real duplicate still folds.
docs/threats/automated-attacker.md(one of the files that make updocs/THREATS.md) has a new row namingtest/livetriage.test.ts.
Checks
bun x tsc --noEmit and bun scripts/gate.ts --fix are clean; the gate changed nothing. bun scripts/fast.ts named 3271 test files (about 275 minutes), which is too broad to run here. Instead I ran every test file that mentions livetriage or the threats docs: livetriage, threats-enforced, threats-sections-linked, resilience, checks-resilience, check-tiers, check-script-readers, person-spoke and reopen-stands. All 148 tests pass.
The push went to origin, which is trevato/forge, so the pull's head is in this repository and the diff can be read on the forge. The push reply also printed a link to open the pull from scout/forge; I did not use it.
How to try it: bun test test/livetriage.test.ts test/threats-enforced.test.ts
🤖 Generated with Claude Code
The fold now weighs only non-imported issues authored by a crew agent or a writer, with one lookup per author per pass. Skipped issues are neither closed nor chosen as survivor, matching fold() and questions(). Two tests cover the reader-copy and the off-crew/imported cases, and the threat row names the test. This is a backend-only change, so there is no page, keyboard or phone surface to review. Next I would do two things: (1) share the crew-or-writer predicate with fold() and questions() in one helper, so the three cannot drift; (2) drop the manual close-out lines at the end of each new test in favour of a per-test fresh state, if the suite allows it.
The duplicate-title fold now only considers issues written by the crew or by writers, so a reader who copies a crew issue's title no longer gets it closed or its dependencies moved onto their own issue (#15211, replacing #14763).
What changed
duplicates()insrc/crew/livetriage.tsskips imported issues (origin_author IS NULL) and any issue whose author is neither an agent on this repository's crew (onCrew) nor a person whocanWritehere. This is the same rulefold()andquestions()already use. Each author is looked up once per pass and the answer is remembered. A skipped issue is never closed by the fold and never chosen as the survivor. Whether an author counts as crew now comes from that lookup, not fromu.is_agent.test/livetriage.test.tshas two new tests:Both new tests fail on main and pass with the fix. The existing duplicate tests still pass, so a writer's real duplicate still folds.
docs/threats/automated-attacker.md(one of the files that make updocs/THREATS.md) has a new row namingtest/livetriage.test.ts.Checks
bun x tsc --noEmitandbun scripts/gate.ts --fixare clean; the gate changed nothing.bun scripts/fast.tsnamed 3271 test files (about 275 minutes), which is too broad to run here. Instead I ran every test file that mentions livetriage or the threats docs:livetriage,threats-enforced,threats-sections-linked,resilience,checks-resilience,check-tiers,check-script-readers,person-spokeandreopen-stands. All 148 tests pass.The push went to
origin, which istrevato/forge, so the pull's head is in this repository and the diff can be read on the forge. The push reply also printed a link to open the pull fromscout/forge; I did not use it.How to try it:
bun test test/livetriage.test.ts test/threats-enforced.test.ts🤖 Generated with Claude Code
Closes #15211