Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Open Windows test steps for Desktop and CLI changes (#3362)

harness-for-autonomous[bot]2a6ad561165f
diff --git a/backend/src/superTabs/commands.ts b/backend/src/superTabs/commands.ts
index 47bb478c9..dbf46a77b 100644
--- a/backend/src/superTabs/commands.ts
+++ b/backend/src/superTabs/commands.ts
@@ -28,7 +28,7 @@ import { jobKindOf } from './evidence/jobKind.js'
import { endSteps, listStep, stepEndedRows, isStep, stepName, stepsOf, taskOwner } from './steps.js'
import { closeMerged } from './mergedTasks.js'
import { noteWriter } from './stuck.js'
-import { reviewPlan, refreshStepBrief, stepOsRefusal, type PlannedStep, type StepKind } from './reviewTable.js'
+import { reviewPlan, refreshStepBrief, stepOs, stepOsRefusal, type PlannedStep, type StepKind } from './reviewTable.js'
import { openReviewStep, type StepPull } from './stepOpen.js'
import { stopWaiting, testsOn, WAIT_LINE, waitFor, waits } from './osSteps.js'
import { builtBy, reviewerCandidates, STRENGTH_RULE } from './reviewerPick.js'
@@ -2065,7 +2065,12 @@ function applyCommandOnce(original: SuperTabState, actor: Actor, input: Command,
const pulls = read.heads ?? read.urls.map((url, i) => ({ url, head: i === 0 ? read.head : null }))
for (const planned of reviewPlan(read.files, context.projectRules?.rules)) {
const free = (step: Conversation) => !taken.has(step.id)
- let step = existing.find(s => free(s) && stepName(s) === planned.name) ?? existing.find(s => free(s) && stepKind(s) === planned.kind)
+ let step = existing.find(s => free(s) && stepName(s) === planned.name) ?? existing.find(s => {
+ if (!free(s) || stepKind(s) !== planned.kind) return false
+ // A named OS step keeps its identity: adding a Mac test must not consume Windows through the kind fallback (#3778).
+ const os = planned.kind === 'test' ? stepOs(s) : undefined
+ return !os || os === planned.os
+ })
if (step) {
taken.add(step.id)
step.brief = refreshStepBrief(step.brief ?? '', planned, { number: task.number!, title: task.title, pulls })
diff --git a/backend/src/superTabs/dispatch.test.ts b/backend/src/superTabs/dispatch.test.ts
index f8915e22d..e70af8efc 100644
--- a/backend/src/superTabs/dispatch.test.ts
+++ b/backend/src/superTabs/dispatch.test.ts
@@ -559,4 +559,34 @@ describe('lost work goes to an ordinary project worker', () => {
s.state.agents.find(a => a.id === s.ids.New)!.gridModel = 'grid-model'
expect(dispatchPlan(s.state, 'lead', DISPATCH_RULES, NOW)).toEqual([])
})
+
+ // Removing OS filtering from recovery must send the Windows check to the first free Mac Tester.
+ it.each(['Windows', 'Linux', null])('recovers a lost Windows test only on Windows (replacement reports %s)', os => {
+ const s = crewSwarm(['Builder', 'Old', 'MacTester', 'WinTester'])
+ for (const agent of s.state.agents) agent.configuration = { ...config, model: 'opus' }
+ const task = s.task('Desktop', ['desktop/lib/view.dart'])
+ s.run({ type: 'work.assign', conversationId: task, agentId: s.ids.Builder! })
+ s.group(task).assignment!.status = 'review'
+ const step = s.run({ type: 'conversation.create', title: 'Test on Windows', brief: 'Check the Windows flow.', reviewOf: task,
+ step: 'Test on Windows', checks: [] }).result.conversationId as string
+ const machines = (list: Array<[string, string | null]>) => list.map(([machineId, platform]) => ({ machineId, name: machineId, contributorId: 'owner',
+ membershipGeneration: 'g', generation: 'g1', cwd: '/swarm', scope: 'swarm', engines: ['claude'], maxAgents: 8, paused: false,
+ observation: { generation: 'g1', receivedAt: NOW, sessionKind: 'computer', resources: { os: platform }, tools: {}, runningHarnessIds: [], stoppedHarnessIds: [],
+ readiness: { engines: [{ engine: 'claude', installed: true, signedIn: true }] },
+ quotas: [{ engine: 'claude', known: true, windows: [{ name: 'weekly', usedPercent: 10, resetsAt: null }] }] } })) as never
+ // Old took the step on a Windows machine (a Windows step is assigned only there, #3926), then was lost.
+ s.state.machines = machines([['old-win', 'Windows']])
+ s.state.agents.find(a => a.id === s.ids.Old)!.machineId = 'old-win'
+ s.run({ type: 'work.assign', conversationId: step, agentId: s.ids.Old! })
+ s.group(step).assignment!.status = 'lost'
+ s.group(step).lostAttempt = { id: s.group(step).assignment!.id, agentId: s.ids.Old! }
+ for (const [name, machineId] of [['MacTester', 'mac'], ['WinTester', 'win']] as const) {
+ const agent = s.state.agents.find(a => a.id === s.ids[name])!
+ agent.roleName = 'Tester'; agent.machineId = machineId
+ }
+ s.state.machines = machines([['mac', 'macOS'], ['win', os]])
+ expect(dispatchPlan(s.state, 'lead', DISPATCH_RULES, NOW).map(p => [p.conversationId, p.agentId]))
+ .toEqual(os === 'Windows' ? [[step, s.ids.WinTester]] : [])
+ })
+
})
diff --git a/backend/src/superTabs/osSteps.test.ts b/backend/src/superTabs/osSteps.test.ts
index 5f06c2d57..847d728fc 100644
--- a/backend/src/superTabs/osSteps.test.ts
+++ b/backend/src/superTabs/osSteps.test.ts
@@ -25,7 +25,7 @@ const bothRules = cliTestedOn('The CLI on a Mac, on a Linux machine and on a Win
/** Each OS whose test step waits for its machine: what the machine reports, its step, the task's line, its waiting field. */
const OSES = {
linux: { reports: 'Linux', step: 'Test on a Linux machine', line: 'No Linux machine: CI\'s Linux runs stand in.', field: 'waitingLinuxStep', rules: undefined },
- windows: { reports: 'Windows', step: 'Test on a Windows machine', line: 'No Windows machine: a person\'s Windows check is owed.', field: 'waitingWindowsStep',
+ windows: { reports: 'Windows', step: 'Test on Windows', line: 'No Windows machine: a person\'s Windows check is owed.', field: 'waitingWindowsStep',
rules: windowsRules },
} as const
diff --git a/backend/src/superTabs/reviewSteps.test.ts b/backend/src/superTabs/reviewSteps.test.ts
index 3a3024c2b..157235366 100644
--- a/backend/src/superTabs/reviewSteps.test.ts
+++ b/backend/src/superTabs/reviewSteps.test.ts
@@ -18,7 +18,7 @@ function fixture() {
}
const as = (agentId: string): Actor => ({ kind: 'agent', agentId, machineOwnerId: 'host-owner' })
const contribution = { contribution: { machineOwnerId: 'host-owner', contributorId: 'owner' } }
- const add = (harnessId: string, group: string, roleName?: string) => run({ type: 'agent.add', conversationId: group, machineId: 'host', harnessId,
+ const add = (harnessId: string, group: string, roleName?: string, machineId = 'host') => run({ type: 'agent.add', conversationId: group, machineId, harnessId,
name: harnessId, configuration: opus, lead: false, ...roleName ? { roleName } : {} } as Command, owner, contribution).result.agentId as string
const lead = run({ type: 'agent.add', conversationId: 'lead', machineId: 'host', harnessId: 'pm', name: 'pm', configuration: opus, lead: true }, owner, contribution).result.agentId as string
const task = run({ type: 'conversation.create', title: 'Fix login', brief: 'Sign in works offline.', checks: [{ description: 'Signs in offline', independent: true }], priority: 'P2', requesterId: 'owner' }, as(lead)).result.conversationId as string
@@ -231,6 +231,71 @@ describe('a handed task opens its review steps', () => {
expect(stepsOf(f.state, f.task).find(s => s.step === 'Test on a Linux machine')!.brief).toContain('a Linux machine')
})
+
+ const machine = (machineId: string, os: string) => ({ machineId, name: machineId, contributorId: 'owner', membershipGeneration: 'g', generation: 'g1', cwd: '/swarm',
+ scope: 'swarm', engines: ['claude'], maxAgents: 8, paused: false,
+ observation: { generation: 'g1', receivedAt: 999_000, sessionKind: 'computer', resources: { os }, tools: {}, runningHarnessIds: [], stoppedHarnessIds: [],
+ readiness: { engines: [{ engine: 'claude', installed: true, signedIn: true }] },
+ quotas: [{ engine: 'claude', known: true, windows: [{ name: 'weekly', usedPercent: 10, resetsAt: null }] }] } })
+
+ it.each(['desktop/lib/super_tabs/view.dart', 'cli/src/services/process.ts'])('routes %s to an independent Windows Tester on Ready', file => {
+ const f = fixture()
+ f.add('rev', f.task, 'Reviewer')
+ f.add('mac-tst', f.task, 'Tester')
+ const win = f.add('win-tst', f.task, 'Tester', 'win')
+ const prior = f.add('prior-builder', f.task, 'Tester', 'win')
+ // A former builder with the Tester role must still be excluded.
+ f.group(f.task).ledger!.runs!.push({ agentId: prior } as never)
+ f.state.machines = [machine('host', 'macOS'), machine('win', 'Windows')] as never
+ f.ready([file])
+ const step = stepsOf(f.state, f.task).find(s => s.step === 'Test on Windows')
+ expect(step?.assignment).toMatchObject({ agentId: win, status: 'working' })
+ expect(step?.checks[0]?.independent).toBe(true)
+ expect(step?.brief).toContain('docs/windows-rules.md')
+ expect(step?.brief).toMatch(/no .*window.*(?:flash|moment)/i)
+ expect(step?.brief).toMatch(/recording/i)
+ expect(step?.brief).toContain('signed build')
+ expect(step?.brief).toContain("person's Windows session")
+ // A second Ready must not duplicate or move the active Windows step.
+ f.run({ type: 'work.status', conversationId: f.task, assignmentId: f.group(f.task).assignment!.id, status: 'working', result: 'CI rerun' }, f.as(f.dev))
+ f.ready([file])
+ expect(stepsOf(f.state, f.task).filter(s => s.step === 'Test on Windows').map(s => [s.id, s.assignment?.agentId])).toEqual([[step!.id, win]])
+ })
+
+ it('leaves Windows open when its only Windows Tester built the task', () => {
+ const f = fixture()
+ f.add('rev', f.task, 'Reviewer'); f.add('mac-tst', f.task, 'Tester'); f.add('unknown-tst', f.task, 'Tester', 'unknown')
+ const prior = f.add('prior-builder', f.task, 'Tester', 'win')
+ f.group(f.task).ledger!.runs!.push({ agentId: prior } as never)
+ f.state.machines = [machine('host', 'macOS'), machine('win', 'Windows')] as never
+ const effects = f.ready(['desktop/lib/view.dart'])
+ expect(f.steps().find(s => s.name === 'Test on Windows')).toEqual({ name: 'Test on Windows', agent: null, status: null })
+ expect(effects.messages.some(m => m.recipients.includes(f.lead) && m.text.includes('Test on Windows'))).toBe(true)
+ expect(f.group(f.task).assignment?.status).toBe('review')
+ })
+
+ it.each(['docs/windows-rules.md', 'backend/src/superTabs/steps.ts', 'cli/src/team/script.ts'])('does not open Windows for %s', file => {
+ const f = fixture()
+ f.add('win-tst', f.task, 'Tester', 'win')
+ f.state.machines = [machine('win', 'Windows')] as never
+ f.ready([file])
+ expect(f.steps().some(s => s.name === 'Test on Windows')).toBe(false)
+ })
+
+ it('keeps an existing Windows step when a later Ready adds a Mac test', () => {
+ const f = fixture()
+ const win = f.add('win-tst', f.task, 'Tester', 'win'), mac = f.add('mac-tst', f.task, 'Tester')
+ f.state.machines = [machine('host', 'macOS'), machine('win', 'Windows')] as never
+ const onlyWindows = { ...SEED_RULES, reviews: { ...SEED_RULES.reviews, test: [{ where: 'Desktop on Windows', paths: ['desktop/**'] }] } }
+ f.ready(['desktop/lib/view.dart'], 'abc1234', true, { projectRules: { revision: 1, rules: onlyWindows } })
+ const step = stepsOf(f.state, f.task).find(s => s.step === 'Test on Windows')
+ expect(step?.assignment?.agentId).toBe(win)
+ f.run({ type: 'work.status', conversationId: f.task, assignmentId: f.group(f.task).assignment!.id, status: 'working', result: 'More changes' }, f.as(f.dev))
+ f.ready(['desktop/lib/view.dart'], 'def5678')
+ expect(stepsOf(f.state, f.task).filter(s => s.step === 'Test on Windows').map(s => s.id)).toEqual([step!.id])
+ expect(f.steps().find(s => s.name === 'Test')?.agent).toBe(mac)
+ })
+
it('with nobody free, the step stays open and the PM is told once; the Ready itself goes through', () => {
const f = fixture()
const effects = f.ready(['backend/src/routes/auth.ts'])
diff --git a/backend/src/superTabs/reviewTable.test.ts b/backend/src/superTabs/reviewTable.test.ts
index 210674a75..9d7bebcca 100644
--- a/backend/src/superTabs/reviewTable.test.ts
+++ b/backend/src/superTabs/reviewTable.test.ts
@@ -25,14 +25,45 @@ describe('reviewPlan', () => {
it('adds a test step where the change runs, and none for docs or tests alone', () => {
// Task #3602: a test that runs on a Mac and a Linux machine is one step per OS; one OS is that step's.
const plan = reviewPlan(['desktop/lib/super_tabs/view.dart', 'cli/src/superTabs/route.ts'])
- expect(plan.map(step => [step.name, step.os ?? null])).toEqual([['Review', null], ['Test on a Mac', 'mac'], ['Test on a Linux machine', 'linux']])
+ expect(plan.map(step => [step.name, step.os ?? null])).toEqual([['Review', null], ['Test on a Mac', 'mac'], ['Test on a Linux machine', 'linux'], ['Test on Windows', 'windows']])
expect(plan.find(step => step.kind === 'test')?.where).toEqual(['Desktop on a Mac', 'The CLI on a Mac and on a Linux machine'])
- expect(reviewPlan(['desktop/lib/a.dart']).map(step => [step.name, step.os ?? null])).toEqual([['Review', null], ['Test', 'mac']])
+ expect(reviewPlan(['desktop/lib/a.dart']).map(step => [step.name, step.os ?? null])).toEqual([['Review', null], ['Test', 'mac'], ['Test on Windows', 'windows']])
expect(reviewPlan(['mobile/lib/a.dart']).map(step => [step.name, step.os ?? null])).toEqual([['Review', null], ['Test', null]])
expect(names(['desktop/test/super_tabs/view_test.dart', 'backend/src/superTabs/steps.test.ts', 'docs/a.md'])).toEqual(['Review'])
expect(names(['backend/src/superTabs/steps.ts'])).toEqual(['Review'])
})
+
+ // Removing Windows detection must leave these Ready flows without their required test.
+ it.each([
+ 'desktop/lib/super_tabs/view.dart', 'desktop/windows/runner/main.cpp', 'desktop/pubspec.yaml',
+ 'cli/src/services/process.ts', 'cli/src/lib/daemonLaunch.ts', 'cli/src/lib/path.ts',
+ 'cli/src/superTabs/buddyHome.ts', 'cli/src/team/autoSetup.ts', 'cli/src/team/windowsScript.ts',
+ 'cli/src/lib/windows/noWindow.ts', 'cli/src/lib/machineResources.ts',
+ ])('requires Windows for %s even with saved rules predating Windows', file => {
+ const windows = reviewPlan([file], structuredClone(SEED_RULES)).filter(step => step.os === 'windows')
+ expect(windows).toHaveLength(1)
+ expect(windows[0]).toMatchObject({ name: 'Test on Windows', kind: 'test' })
+ })
+
+ it.each([
+ 'docs/windows-rules.md', 'backend/src/superTabs/steps.ts', 'cli/README.md',
+ 'desktop/test/view_test.dart', 'cli/src/lib/daemonLaunch.spec.ts', 'cli/src/lib/__fixtures__/process.ts',
+ 'desktop/macos/Runner/MainFlutterWindow.swift', 'desktop/lib/core/mac_responsibility_probe_native.dart',
+ 'desktop/lib/core/linux_app_image.dart', 'cli/src/lib/macosProcessGpu.ts',
+ 'cli/src/team/script.ts', 'cli/src/team/nodeTools.ts', 'cli/src/team/tmux.ts',
+ ])('does not require Windows for docs, tests or platform-only code: %s', file => {
+ expect(reviewPlan([file]).filter(step => step.os === 'windows')).toEqual([])
+ })
+
+ it('keeps custom test places and emits only one Windows step when the rules already request Windows', () => {
+ const rules: ProjectRules = { ...SEED_RULES, reviews: { ...SEED_RULES.reviews,
+ test: [{ where: 'Desktop on Windows', paths: ['desktop/**'] }, { where: 'Staging', paths: ['desktop/**'] }] } }
+ const plan = reviewPlan(['desktop/lib/view.dart'], rules)
+ expect(plan.filter(step => step.os === 'windows')).toHaveLength(1)
+ expect(plan.find(step => step.os === 'windows')).toMatchObject({ name: 'Test on Windows', where: ['Desktop on Windows', 'Staging'] })
+ })
+
it('plans the strictest reads when the files could not be read', () => {
const plan = reviewPlan(null)
expect(plan.map(step => step.name)).toEqual(['Security review 1', 'Security review 2'])
diff --git a/backend/src/superTabs/reviewTable.ts b/backend/src/superTabs/reviewTable.ts
index ddab9bfd9..6ae40e863 100644
--- a/backend/src/superTabs/reviewTable.ts
+++ b/backend/src/superTabs/reviewTable.ts
@@ -48,6 +48,21 @@ export function stepOsRefusal(state: SuperTabState, group: Pick<Conversation, 'r
return `${stepName(group)} runs only on a ${OS_NAME[os]} machine, and ${pool?.name ?? 'this machine'} reports ${reported ? reported : 'no OS'}.`
}
+/** Windows runs shared Desktop/CLI source and its native runner, not the Mac's Team-account implementation. Keep this
+ * alongside the planner so existing saved rules gain the Windows check without a rules migration (task #3778). */
+const WINDOWS_TESTS = [
+ { where: 'Desktop on Windows', paths: ['desktop/lib/**', 'desktop/windows/**', 'desktop/pubspec.yaml', 'desktop/pubspec.lock'] },
+ { where: 'The CLI on Windows', paths: ['cli/src/**'] },
+]
+const MAC_TEAM_FILES = new Set(['cli/src/team/script.ts', 'cli/src/team/nodeTools.ts', 'cli/src/team/tmux.ts'])
+// Match platform names, not names beginning with "mac" such as machineResources. Shared Team setup must still run on Windows.
+const OTHER_PLATFORM = /\/(?:macos|darwin|linux)(?:[A-Z_./]|$)|\/mac_/
+function windowsTests(files: readonly string[] | null, rules: ProjectRules): string[] {
+ return testsFor({ ...rules, reviews: { ...rules.reviews, test: WINDOWS_TESTS,
+ untested: [...SEED_RULES.reviews.untested, ...rules.reviews.untested] } },
+ files?.filter(file => !MAC_TEAM_FILES.has(file) && !OTHER_PLATFORM.test(file)) ?? null)
+}
+
/**
* The steps a change to [files] needs by the project's [rules], reads first: as many reads as requiredReads asks, each a
* security review when a sensitive row is touched; then a test step naming where testsFor says it runs. Files that could not
@@ -67,8 +82,10 @@ export function reviewPlan(files: readonly string[] | null, rules: ProjectRules
// A test that must run on more than one OS is one step per OS, each for a Tester on that OS (task #3602: #3576's went to a
// Mac only when its check needed a Mac and a Linux machine); one OS named is that step's.
const oses = osesIn(where)
- if (where.length && oses.length > 1) for (const os of oses) steps.push({ name: `Test on ${OS_PLACE[os]}`, kind: 'test', areas: [], where, os })
- else if (where.length) steps.push({ name: 'Test', kind: 'test', areas: [], where, ...oses.length ? { os: oses[0]! } : {} })
+ if (where.length && oses.length > 1) for (const os of oses) steps.push({ name: os === 'windows' ? 'Test on Windows' : `Test on ${OS_PLACE[os]}`, kind: 'test', areas: [], where, os })
+ else if (where.length) steps.push({ name: oses[0] === 'windows' ? 'Test on Windows' : 'Test', kind: 'test', areas: [], where, ...oses.length ? { os: oses[0]! } : {} })
+ const windows = windowsTests(files, rules)
+ if (windows.length && !oses.includes('windows')) steps.push({ name: 'Test on Windows', kind: 'test', areas: [], where: windows, os: 'windows' })
return steps
}
@@ -96,6 +113,7 @@ export function stepBrief(step: PlannedStep, task: BriefTask): string {
const what = step.kind === 'test'
? `Test ${pulls} for task #${task.number} "${task.title}" as a user would, where it changes: ${step.where!.join('; ')}.`
+ (step.os && step.name !== 'Test' ? ` This step runs it on ${OS_PLACE[step.os]}.` : '')
+ + (step.os === 'windows' ? ` Read docs/windows-rules.md first: no unwanted window may flash, even for a moment. Prove the flow with a recording in the person's Windows session on the signed build; SSH or session 0 cannot prove it.` : '')
: `${step.kind === 'security' ? 'Security-review' : 'Review'} ${pulls} for task #${task.number} "${task.title}".`
const why = step.unread ? ' Its changed files could not be read, so it is reviewed as strictly as the review table goes.'
: step.kind === 'security' ? ` It changes ${step.areas.join(', ')}: two independent security reviews before merge.` : ''
diff --git a/docs/plans/2026-11-06-windows-test-step-plan.md b/docs/plans/2026-11-06-windows-test-step-plan.md
new file mode 100644
index 000000000..4db7bef75
--- /dev/null
+++ b/docs/plans/2026-11-06-windows-test-step-plan.md
@@ -0,0 +1,51 @@
+# Windows test step implementation plan
+
+> **Execution:** Native implementation in this Engineer session, test first, followed by one independent pull request review. No subagent handoff or approval wait.
+
+**Goal:** Ready Desktop and Windows-capable CLI changes automatically receive a Windows test step.
+
+**Architecture:** Extend the existing review planner with a Windows requirement for shared Desktop code, native Windows code and CLI source. Preserve saved test rules and existing Mac/Linux steps; reuse the OS-aware independent Tester routing. Keep named OS steps from being reused for another OS.
+
+**Tech Stack:** TypeScript, Vitest, existing Super Tab command reducer and observed machine resources.
+
+**Spec:** Task #3778, conversation `8ce6034c6df4aaa55d8566fa`; AGENTS.md Windows rules and docs/windows-rules.md.
+
+## Global constraints
+
+- The step is named `Test on Windows`, uses a Swarm Windows machine and an independent Tester.
+- Its brief requires docs/windows-rules.md, no unwanted window even momentarily, and a recording in the person's real Windows session on the signed build.
+- Docs-only, backend-only, tests-only and Mac-only Team account scripts get no Windows step. Shared Team setup and Windows Team code still do.
+- Preserve existing project test rules, access checks, Team-account boundaries and review independence. No schema, query, release or production changes.
+- Run affected unit tests and typecheck locally; full backend and Super Tab integration suites run in Ready PR CI.
+
+## Review focus
+
+- Saved rules predating Windows support must still receive the new step.
+- Mac-only file exclusions must not exclude shared Team code or names such as machineResources.
+- Without an eligible Windows Tester the step stays open, never assigned to a Mac or the Engineer.
+- Repeated Ready reuses the Windows step; adding another OS must not consume it through kind-based fallback.
+- A custom Windows test row must not produce duplicate Windows steps.
+
+## Task 1: Plan and route Windows tests
+
+**Files:** Modify `backend/src/superTabs/reviewTable.ts`, `backend/src/superTabs/commands.ts`; test `reviewTable.test.ts`, `reviewSteps.test.ts` alongside them.
+
+**Interfaces:** Preserve `reviewPlan(files, rules): PlannedStep[]` and `stepBrief(step, task): string`. Windows plans have `os: 'windows'`; existing `reviewerCandidates(..., os)` and assignment authorization remain the routing boundary.
+
+- [x] Commit failing planner cases for desktop/lib, desktop/windows and CLI process/paths/Buddy/setup/daemon code; assert one Windows step, exclusions and custom-rule deduplication.
+- [x] Commit failing command cases proving Windows assignment, independent Tester selection, missing-seat behavior, repeated Ready and OS-safe reuse. Brief must carry the recording requirements.
+- [x] Run `npm --prefix backend test -- src/superTabs/reviewTable.test.ts src/superTabs/reviewSteps.test.ts` and record behavioral failures before production changes.
+- [x] Implement the minimal Windows path classification and extra step, Windows brief, and OS-safe reuse of named test steps. Keep existing Mac/Linux names and requirements.
+- [x] Run those files plus direct importer tests (`commands`, `dispatch`, `reviewerPick`, `teamWritten`) and `npm --prefix backend run typecheck`; inspect every failure.
+- [ ] Commit/push the passing change, record red/green evidence in the PR, mark Ready and record the acceptance check at the full head on main. Independent review runs while CI runs.
+
+## Task 2: Keep Windows routing after a lost Tester
+
+**Files:** Modify `backend/src/superTabs/dispatch.ts`; test `backend/src/superTabs/dispatch.test.ts`.
+
+**Interfaces:** Lost-step recovery passes the named test step's OS to the existing `reviewerCandidates` filter. Ordinary tasks and unnamed steps retain their current routing.
+
+- [x] Commit a failing dispatch test: a lost `Test on Windows` step passes over a Mac Tester for a Windows Tester, or waits if none is available.
+- [x] Observe the wrong-Mac assignment before the fix with the focused dispatch test.
+- [x] Pass the named step OS through recovery, then run dispatch, reviewerPick, reviewSteps, reviewTable, commands and teamWritten tests and typecheck.
+- [ ] Commit/push and include this red/green evidence with Task 1 before Ready.