opencode-config/docs/decisions/050-pr-113-enable-create-issue-and-rules.md
Sergey f1b8ff94bf
feat(agents): enable create_issue and behavioral rules (#113)
* feat(agents): enable create_issue for subagents

* docs(agents): add bug discovery protocol and linear execution rule

* docs(handoff): add handoff and ADR

* docs(handoff): set PR number

* docs(project-map): update after structural changes

* fix(agents): revert create_issue for read-only subagents

* fix(agents): re-enable create_issue and update tests

---------

Co-authored-by: opencode-agent <agent@opencode.local>
2026-07-29 01:25:30 +03:00

17 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ADR-050: Enable create_issue for subagents and add behavioral rules
## Статус
Accepted (2026-07-28)
## Контекст
Саб-агенты (reviewer, docs-reviewer, memory-syncer) не имели tool `create_issue` — найденные баги вне scope текущей задачи терялись без фиксации. Также отсутствовало правило о линейном исполнении pipeline, что при параллельном запуске приводило к конфликтам веток и потере работы.
## Решение
1. Включить `create_issue: true` для reviewer, docs-reviewer, memory-syncer в `opencode.json` (general уже имел).
2. Добавить `gh issue list*` в bash allow-list для docs-reviewer и memory-syncer (reviewer уже имел `gh issue*`).
3. Добавить Bug Discovery Protocol в AGENTS.md — инструкция для агентов по созданию issues через `create-issue` tool.
4. Добавить Linear Execution Rule в AGENTS.md — строго линейный pipeline, параллельные research OK.
## Альтернативы
- Делегировать создание issues только general-агенту: отвергнуто — требует context switching, теряется контекст бага.
- Запретить параллельное исполнение на уровне tool permissions: отвергнуто — слишком жёстко, research-агенты могут работать параллельно без конфликтов.