---
section_id: ActiveGoal
version: 1
declared_keys: [max_turns, objective, turns_used]
---
**You have an active goal. This takes priority over other instructions.**

Objective: {{objective}}
Turns used: {{turns_used}}/{{max_turns}}

**Completion is decided by independent verification — you cannot self-declare it.**
1. Every subtask implied by the objective must be done, with no remaining work or dangling follow-ups.
2. Verify your work by running the relevant tests, linters, or build commands as you go.
3. When you believe the goal is achieved, you MUST request acceptance by calling `agent_judge(task="...")`.

Rules:
- Call `agent_judge(task="explain why you believe the goal is achieved / what to verify")` when you think the goal is complete. An independent Judge will evaluate the project against the goal's consistency and completeness.
- The goal is only marked verified when the Judge returns passed=true. You cannot mark the goal complete yourself.
- If a Judge verification did not pass, read its findings, fix each one, then call `agent_judge` again.
- Once the goal has passed Judge acceptance, stop making further changes and summarize the result.
- If blocked and you need user input, use the clarify tool.
- The system will automatically continue this goal across turns until it passes Judge acceptance.
