# Let agents take the next step

Lesson 7 · Build

Delegate the next development action without surrendering scope, permissions, or review.

## Outcomes

- Rank candidate tasks using explicit project value and risk.
- Grant an agent narrow write permissions with retry ceilings.
- Require human approval at irreversible or scope-changing boundaries.

Prerequisites: Lesson 6 and a validated data-to-gameplay path.

Deliverable: A next-task selector and reviewed agent run that completes one bounded Signal Garden task.


## Autonomy means choosing within a fence

So far, each task was chosen by a person. A bounded agent can now inspect a short list of known work and select the next action. It does not choose the product direction. It chooses among approved tasks using rules you can inspect.

This is the difference between “build whatever the game needs” and “from these four tasks, complete the highest-value unblocked one.” The second has a finite search space, permissions, and a stop condition.

## Score work without pretending the score is truth

Create candidate tasks from the scope and failed checks:

| Task | Player value | Unblocks | Risk | Effort |
| --- | ---: | ---: | ---: | ---: |
| show repaired count | 3 | 3 | 1 | 1 |
| add tower particle variation | 1 | 0 | 1 | 2 |
| reject duplicate relay IDs | 2 | 2 | 1 | 1 |
| add crafting | 0 | 0 | 5 | 5 |

Pseudocode:

```text
score = playerValue + unblocks - risk - effort
eligible = approvedScope AND dependenciesReady AND hasAcceptanceCheck
```

The score explains a preference; it does not replace judgment. “Add crafting” is ineligible before scoring because it violates scope. Ties should escalate or use a simple fixed rule, not invite an invented rationale.

## Grant the smallest useful permission

For the selected repaired-count task, permit reads to the state contract and UI module, writes to one UI file, and execution of the existing check. Deny dependency changes, asset downloads, unrelated refactors, and network calls. Require a diff before applying any additional file change.

The harness should allow two targeted repair attempts. After that, stop with the error and changed files. [Guidance for effective agents](https://www.anthropic.com/research/building-effective-agents) emphasizes matching complexity to the task; autonomy is useful here because selection and repair require judgment, while validation remains deterministic.

## Use human gates deliberately

Require approval when the next action would:

- change the core loop or accessibility commitment;
- delete or overwrite authored work;
- contact an external service or spend money;
- introduce a package or license;
- publish, deploy, or message someone;
- weaken a test to make a failure disappear.

Do not require approval for every read or locally reversible draft, or the human becomes a ceremonial clicker. The gate belongs at a meaningful decision boundary.

## Failure modes and tradeoffs

**Goal laundering** lets the agent convert an ineligible idea into a harmless-sounding task. **Score gaming** inflates easy polish because it produces visible diffs. **Retry spirals** keep changing code after the original hypothesis failed. **Broad write access** turns a small task into incidental refactoring.

Boundaries may make the agent slower or cause it to stop often. That is evidence that the task contract or project structure needs improvement. Do not “fix” friction by removing the audit trail.

## Build task: complete one next action

List four approved tasks, dependencies, evidence checks, and scores. Let the collaborator select one and propose a change. Review the selection before granting write permission. Record the final diff, validator result, retries, and stop reason in the checkpoint.

```text
You are the bounded next-task agent for Signal Garden.
Choose only from the supplied candidate tasks. First exclude anything outside
scope, blocked, or missing an acceptance check. Score the rest using the supplied
rubric and select one. State the files you need and why. Do not edit until approved.
After approval, change only those files, run the named check, and stop after two
failed repair attempts. Never weaken a check or add a mechanic.
```

## Completion evidence

The run succeeds when the chosen task was eligible before scoring, the change stayed inside approved files, its acceptance check passed, and the checkpoint lists exactly what changed. A safe stop also counts as correct behavior if permissions, context, or retries were exhausted. [Long-running harness research](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) reinforces that bounded tasks and durable handoffs matter more than uninterrupted activity.



## Knowledge check

When should the agent stop and ask for a human decision?

1. When a validator reports a fixable formatting error on attempt one.
2. When the highest-ranked task would add a mechanic outside the approved scope.
3. Whenever it needs to read an approved project file.

Answer: 2. Scope changes belong to the human; a bounded formatting retry can remain inside the existing contract.

## Further reading

- [Building effective agents](https://www.anthropic.com/research/building-effective-agents) — Anthropic
- [Effective harnesses for long-running agents](https://www.anthropic.com/research/effective-harnesses-for-long-running-agents) — Anthropic

Sources checked 1 December 2026. Signal Garden is an original teaching scenario.
