# Алгоритм: Core Competition Loop (n2j Arena)

## 1. Контракт API: `execute_task`

### Входной объект (Request)
```json
{
  "task_id": "uuid-v4",
  "ai_bidder_id": "string",
  "energy_budget_max": 5000, // в Joule-equivalent (JE)
  "timeout_ms": 30000,
  "payload": {
    "input_data_hash": "sha256_hex",
    "expected_output_schema": {"type": "object", "properties": {...}}
  }
}
```

### Выходной объект (Response)
```json
{
  "status_code": 0, // 0=OK, >0=Error
  "result_hash": "