# Taakschema

> Taken zijn JSON-objecten met de volgende structuur:

Source: https://bifrost5.com/nl/foundry/docs/task-schema/

# Taakschema

Information

Describe an idea in plain words and get back a checked, ready-to-run task list from the Production-Grade planning companion.

[See editions](/nl/foundry/docs/editions)

Taken zijn JSON-objecten met de volgende structuur:

| Veld | Type | Vereist | Omschrijving |
| --- | --- | --- | --- |
| `task_id` | string | Ja | Unieke identifier |
| `project_id` | string | Ja | Naam van de sandbox-directory onder `sandbox/` |
| `intent` | string | Ja | Korte omschrijving |
| `tool` | string | Nee | `cursor` \| `gemini` \| `copilot` \| `codex` \| `claude` \| `ollama`. Dient als provider-override; als je dit weglaat, bepaalt de strategie dit. |
| `instructions` | string | Ja | Gedetailleerde instructies voor de agent |
| `acceptance_criteria` | string[] | Ja | Moeten allemaal behaald zijn voor afronding |
| `retry_policy` | object | Nee | `max_retries`, `backoff_strategy` (linear \| exponential) |
| `status` | string | Nee | `pending` \| `in_progress` \| `completed` \| `blocked` |
| `working_directory` | string | Nee | Relatief ten opzichte van de sandbox-root |
| `agent_mode` | string | Nee | bijv. `opus-4.5`, `auto` |
| `affects_files` | string[] | Ja (parallel) | Bestanden die deze taak aanpast; gebruikt voor file locking |
| `depends_on` | string[] | Nee | Task-ID's die eerst voltooid moeten zijn: worden automatisch gepromoveerd zodra dependencies voldaan zijn |
| `test_command` | string | Nee | Commando om uit te voeren voor validatie |
| `tests_required` | boolean | Nee | Of tests moeten slagen |

## Voorbeeld van een taakbestand

```
[
  {
    "task_id": "frontend-001",
    "intent": "Extend existing React component",
    "tool": "gemini",
    "instructions": "Extend the existing App.tsx component to add user authentication.",
    "acceptance_criteria": [
      "App.tsx includes authentication logic",
      "Uses existing React Router setup"
    ],
    "retry_policy": { "max_retries": 2 },
    "status": "pending"
  }
]
```

## Taakcyclus

**Pending** → **In progress** → **Completed** (validatie geslaagd) of **Blocked** (mislukt na maximaal aantal pogingen).
