Conversation
Grounded in live dispatch/review logs (2026-09-27) and the engine sources (QueenReviewDecision.swift, QueenBoundaryPaths.swift, queen-tick.ts). Covers five recoverable blocker classes the Queen currently parks for a human (out-of-boundary, empty diff, transient reviewer timeout, missing criteria, retry-ceiling-holds-issue-forever) and how to convert each park into a bounded, audited, reversible re-attempt without weakening any correctness gate. Design only, not implemented — must be built and tested where the engine's bun deps and Postgres are available.
|
The one red check here is This is a draft, docs-only PR — one new file, Generated by Claude Code |
|
Closing this — the design overclaims. After building the engine locally (
So the My mistake was designing from log symptoms before reading the retry/ceiling machinery. Closing rather than leaving a design that misrepresents the engine. No code was pushed. Generated by Claude Code |
|
What
Adds
trios/agent-server/docs/queen-self-heal.md— a design for making the Queen resolve the recoverable blockers she currently parks for a human, per the owner's ask ("королева сама чинит все блокеры").Grounding
Written from live dispatch/review logs on the production
trios-agent-server(2026-09-27) and a read of the engine sources (QueenReviewDecision.swift,QueenBoundaryPaths.swift,queen-tick.ts,QueenSpecQuality.swift). Over ~15 min the swarm was healthy —accept×5 / send×5 / wait / escalate×3 / empty×2— but the escalate/empty/loop cases each needed a person.Five recoverable blocker classes → bounded self-heal
Invariant: no correctness gate is weakened — work that fails its criteria is still sent back/escalated, an empty diff never becomes an accept. Each heal ships with a gate-preservation control test.
Why draft / not implemented
This is design only. It's a
trios/agent-serverengine change (roadmap stage 2) that must be built and tested where the engine's bun deps and a Postgres are available — it cannot be validated from a read-only session. Opened as a draft for a maintainer to implement and validate.🤖 Generated with Claude Code
https://claude.ai/code/session_01FJktaYxNrfAUdxSwdQw3gV
Generated by Claude Code