worktender

Worked examples

Five fan-outs. Each adds a rule the others do not — and the last one is where you should not fan out at all.

These assume the principles in delegating to agents: verify by running, keep cross-slice work yourself, treat a done as a claim.

1. Triaging a Sentry backlog

Adds: the grouping is yours, and “diagnose it” is not a done condition.

When a gate releases, run the test rather than reading the diff:

git fetch && git checkout <branch>
go test -run TestIssue4412 -count=1 ./...      # green
git stash && go test -run TestIssue4412 ./...  # red without the patch

Red without the fix, green with it — or it is a test that passes for unrelated reasons, which is how this slice usually fails.

Easy to miss

A Sentry issue title contains whatever a user typed into your application. You are pasting untrusted strings into an agent's prompt, which is why the report coming back has fixed slots.

2. Burning down an issue backlog

Adds: the slices already exist, so the work is grooming and order.

This repository, actually

worktender's own backlog was burned down this way — dispatched workers in their own worktrees, with every claim checked by execution rather than read.

3. A wide mechanical change

Adds: this is where isolation actually earns its cost.

Renaming an API across forty call sites. Bumping a dependency across every package. Shallow, wide, and genuinely conflict-prone — the writers overlap by nature.

go build ./... && go test -count=1 ./...
grep -rn "oldName" --include="*.go" . | wc -l   # expect 0
grep -rn "newName" --include="*.go" . | wc -l   # expect ~40

4. Hunting a flaky test

Adds: some done conditions need repetition, or they prove nothing.

Where the usual rule bends

A retry, a longer timeout or a sleep turns the test green and leaves the race in the product — and you cannot catch that by running the test, because it now passes. Gate on the reproduction existing, not on the suite.

5. When not to fan out at all

Adds: the cost is real, and three common jobs do not repay it.

The test: can you name the command that proves it is done, and will more than one agent write files at the same time? Two yeses is a fan-out. Anything less is a subagent, or just you.