# ٹاسک اسکیما

> Tasks ایسی JSON objects ہیں جن کی ساخت درج ذیل ہے:

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

# ٹاسک اسکیما

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](/ur/foundry/docs/editions)

Tasks ایسی JSON objects ہیں جن کی ساخت درج ذیل ہے:

| فیلڈ | ٹائپ | لازمی | تفصیل |
| --- | --- | --- | --- |
| `task_id` | string | ہاں | منفرد شناختی کوڈ (Unique identifier) |
| `project_id` | string | ہاں | `sandbox/` کے تحت سینڈ باکس ڈائریکٹری کا نام |
| `intent` | string | ہاں | مختصر تفصیل |
| `tool` | string | نہیں | `cursor` \| `gemini` \| `copilot` \| `codex` \| `claude` \| `ollama`۔ بطور پرووائیڈر اوور رائڈ کام کرتا ہے، نہ دینے کی صورت میں حکمت عملی خود فیصلہ کرتی ہے۔ |
| `instructions` | string | ہاں | ایجنٹ کے لیے تفصیلی ہدایات |
| `acceptance_criteria` | string[] | ہاں | کام کی تکمیل کے لیے تمام شرائط کا پورا ہونا لازمی ہے |
| `retry_policy` | object | نہیں | `max_retries`، `backoff_strategy` (linear \| exponential) |
| `status` | string | نہیں | `pending` \| `in_progress` \| `completed` \| `blocked` |
| `working_directory` | string | نہیں | سینڈ باکس روٹ کے لحاظ سے نسبت (Relative) |
| `agent_mode` | string | نہیں | مثلاً `opus-4.5`، `auto` |
| `affects_files` | string[] | ہاں (متوازی / parallel کے لیے) | وہ فائلیں جن میں یہ ٹاسک ترمیم کرتا ہے، فائل لاکنگ کے لیے استعمال ہوتی ہیں |
| `depends_on` | string[] | نہیں | وہ Task IDs جن کا پہلے مکمل ہونا ضروری ہے، شرائط پوری ہونے پر خودکار طور پر آگے بڑھا دیا جاتا ہے |
| `test_command` | string | نہیں | توثیق (validation) کے لیے چلائی جانے والی کمانڈ |
| `tests_required` | boolean | نہیں | ٹیسٹ پاس ہونا ضروری ہیں یا نہیں |

## ٹاسک فائل کی مثال

```
[
  {
    "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"
  }
]
```

## ٹاسک لائف سائیکل

**Pending** → **In progress** → **Completed** (توثیق کامیاب) یا **Blocked** (زیادہ سے زیادہ کوششوں کے بعد ناکام)۔
