# Run Policy

> Defines execution boundaries for the orchestrator.

---

## Default Mode

Semi-Autonomous

---

## Cycle Limits

| Mode | Cycles per /run-project |
|------|------------------------|
| Safe | 0 (proposal only) |
| Semi-Autonomous | 1 |
| Autonomous | 5 |

---

## Stop Conditions

The orchestrator must stop immediately if any of the following occur:

1. The user says stop.
2. The current task becomes Blocked.
3. A single file modification exceeds 500 lines.
4. The Next Task Queue becomes empty.
5. A required artifact is missing and cannot be created safely.
6. Consecutive failure limit reached (default 3).

---

## Circuit Breakers

| Breaker | Default | Description |
|---------|---------|-------------|
| Consecutive Failure Limit | 3 | Stop if 3 tasks in a row are Blocked or rolled back. |

---

## Review Gates

| Task Type | Review |
|-----------|--------|
| Frontend code | Orchestrator suggests code review after build tasks |
| Planning | Orchestrator self-reviews task titles for clarity |

---

## Execution Rule

After every cycle the orchestrator must:

1. Update `.claude/project/STATE.md`
2. Print an Execution Summary
3. Evaluate stop conditions before starting the next cycle
