Skip to the content.

Task 8 — Ограниченный цикл исполнения

Phase: 1 Status: done Owner: — Slug: bounded-execution

Goal

Plan-act-observe с настраиваемыми max steps, wall-clock timeout, cancellation, recursion depth и per-request лимитом вызовов инструментов. Прямой ответ навыка остаётся fast-path.

Acceptance criteria

Sub-tasks

Scope / Likely files

src/agent/AgentCore.cs (limits), src/agent/Loop/

Dependencies

Risks / Rollback

Слишком жёсткие лимиты ломают сложные задачи; нужны настраиваемые per-skill бюджеты.

Implementation notes

2026-08-12

Добавлено:

Config/AppConfig.cs — AgentConfig получил 3 новых поля:

Loop/LoopState.cs — LoopContext расширен:

Loop/LinkedCancellationTokenSource.cs — новый класс:

Agent/AgentCore.cs — ключевые изменения:

BoundedExecutionOptions record — per-request override:

Tests:

Validation: