---
tracker:
  kind: memory
  project_slug: moralesgonzalez-com
  active_states:
    - Todo
    - In Progress
    - Merging
    - Rework
  terminal_states:
    - Done
    - Cancelled
polling:
  interval_ms: 1000
workspace:
  root: /tab/workspaces
hooks:
  after_create: |
    git worktree add . main
  before_remove: |
    git worktree remove .
agent:
  max_concurrent_agents: 2
  max_turns: 4
  max_retry_backoff_ms: 4000
runner:
  stall_timeout_ms: 2500
  turn_timeout_ms: 20000
chaos:
  # Not in the spec. The first attempt at MG-2 hangs on purpose, so you
  # can watch stall detection stop it and a retry pick it up.
  stall_first_attempt_of:
    - MG-2
---

You are working on ticket `{{ issue.identifier }}` for moralesgonzalez.com.

{% if attempt %}
This is attempt #{{ attempt }}. Resume from the workspace. Do not repeat checks that already passed.
{% endif %}

Title: {{ issue.title }}
Status: {{ issue.state }}

{{ issue.description }}

Rules:

1. Use only facts from src/features/profile/data. Never add a claim.
2. Work in your workspace. Only the Merging step writes to main.
3. Keep one workpad on the ticket. Check items off as they pass.
4. Attach proof of work: checks, a preview, or a file.
5. A task that changes nothing (a test run, an export) goes straight to Done.
6. If no skill fits the ticket, you are blocked. Write a short brief for Daniel and move the ticket to Human Review.
7. A revert skips review and goes to Merging: it restores a state a reviewer already saw.

Status map:

- Todo: move to In Progress, then start.
- In Progress: continue from the workpad.
- Human Review: do nothing. A person decides.
- Merging: rebase on main, land the patch, move to Done.
- Rework: start again with a different approach.
- Done, Cancelled: stop.
