chore(claude): harden autonomous multi-agent prompts (Path B) #662

Merged
lekss361 merged 1 commit from chore/autonomous-prompts-pathb into main 2026-05-29 13:41:37 +00:00
Collaborator

Summary

Fix structural causes of autonomous-window (work-as-* + /loop) underperformance vs single-window agent orchestration. Persona prompts were thin pointers that deferred conventions to unread files and dead-ended every imperfect PR into human review.

  • Inline-load conventions — каждый work-тик MANDATORY-читает полный backend/frontend-engineer.md + rules (был optional pointer, который cost-rule отучал читать). Cost-saving сужен до idle-тиков.
  • Auto-fix loop — reviewer 🟠 FIX → status/needs-fix (assignee остаётся worker), worker сам чинит свой PR fixup'ом в ту же ветку. blocked+needs-human только под 🔴 BLOCK (security/data-loss) или 3× fix-fail (+ fix-attempt cap). QA feature_regression аналогично.
  • Fat issue template — auto-analyst делает mandatory code archeology (Grep/Read) и пишет Files/сигнатуры/Acceptance/Risk (формат tech-analyst).
  • Model resolution docmodel: frontmatter мёртв в standalone /loop-окне (модель = модель окна); reviewer-окно запускать в Opus 4.8.
  • Drift fix — stale-claim cleanup помечен implemented (cron в проде, #610-612); отмечен gap pause-bots↔cleanup.

Test plan

  • Создать label status/needs-fix в Forgejo (Settings → Labels) ДО первого запуска auto-fix loop
  • Dry-run одного work-as-backend тика: подтвердить CONTEXT LOAD читает backend-engineer.md
  • Прогон FIX→needs-fix→fixup цикла на тестовом issue

Follow-ups (не в этом PR)

  • pause-bots guard в cleanup-stale-claims.sh
  • расширить self-extending tripwire на _autonomous_pickup.md + work-as-*.md
  • ⚠️ ротировать 2 PAT (lekss361 + bot-backend) — утекли в session-log через git remote -v
## Summary Fix structural causes of autonomous-window (`work-as-*` + `/loop`) underperformance vs single-window agent orchestration. Persona prompts were thin pointers that deferred conventions to unread files and dead-ended every imperfect PR into human review. - **Inline-load conventions** — каждый work-тик MANDATORY-читает полный `backend/frontend-engineer.md` + rules (был optional pointer, который cost-rule отучал читать). Cost-saving сужен до idle-тиков. - **Auto-fix loop** — reviewer 🟠 FIX → `status/needs-fix` (assignee остаётся worker), worker сам чинит свой PR fixup'ом в ту же ветку. `blocked+needs-human` только под 🔴 BLOCK (security/data-loss) или 3× fix-fail (+ fix-attempt cap). QA feature_regression аналогично. - **Fat issue template** — auto-analyst делает mandatory code archeology (Grep/Read) и пишет Files/сигнатуры/Acceptance/Risk (формат tech-analyst). - **Model resolution doc** — `model:` frontmatter мёртв в standalone `/loop`-окне (модель = модель окна); reviewer-окно запускать в Opus 4.8. - **Drift fix** — stale-claim cleanup помечен implemented (cron в проде, #610-612); отмечен gap pause-bots↔cleanup. ## Test plan - [ ] Создать label `status/needs-fix` в Forgejo (Settings → Labels) ДО первого запуска auto-fix loop - [ ] Dry-run одного work-as-backend тика: подтвердить CONTEXT LOAD читает backend-engineer.md - [ ] Прогон FIX→needs-fix→fixup цикла на тестовом issue ## Follow-ups (не в этом PR) - pause-bots guard в `cleanup-stale-claims.sh` - расширить self-extending tripwire на `_autonomous_pickup.md` + `work-as-*.md` - ⚠️ ротировать 2 PAT (lekss361 + bot-backend) — утекли в session-log через `git remote -v`
bot-backend added 1 commit 2026-05-29 13:40:01 +00:00
Fix structural causes of autonomous-window underperformance vs single-window
orchestration — persona prompts were thin pointers that deferred conventions
to unread files and dead-ended every imperfect PR into human review.

- Inline-load conventions: каждый work-тик MANDATORY-читает полный
  backend/frontend-engineer.md + rules (был optional pointer, который cost-rule
  отучал читать). Cost-saving "не строй контекст" сужен до idle-тиков явно.
- Auto-fix loop: reviewer FIX -> status/needs-fix (assignee остаётся worker),
  worker сам подхватывает свой PR и пушит fixup в ту же ветку. blocked+needs-human
  зарезервирован под BLOCK (security/data-loss) или 3x fix-fail (+ fix-attempt cap).
  QA feature_regression -> needs-fix аналогично. FSM-таблица обновлена.
- Fat issue template: auto-analyst делает mandatory code archeology (Grep/Read)
  и пишет Files/сигнатуры/Acceptance/Risk (формат tech-analyst) — issue это
  единственный канал к worker'у.
- Model resolution doc: model: frontmatter мёртв в standalone /loop-окне
  (модель = модель окна); reviewer-окно запускать в Opus 4.8 осознанно.
- Drift fix: stale-claim cleanup помечен implemented (cron stale-claims.yml в
  проде, #610-612); отмечен gap pause-bots vs cleanup.

Новый label status/needs-fix создать в Forgejo до первого запуска auto-fix loop.
lekss361 merged commit a481a52aa8 into main 2026-05-29 13:41:37 +00:00
lekss361 deleted branch chore/autonomous-prompts-pathb 2026-05-29 13:41:37 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#662
No description provided.