Skip to content

refactor: tighten architect/plan-reviewer contract for lower-tier orchestration#67

Draft
IgorWnek wants to merge 11 commits into
feat/lower-tier-orchestrator-improvementsfrom
feat/architect-plan-reviewer-contract
Draft

refactor: tighten architect/plan-reviewer contract for lower-tier orchestration#67
IgorWnek wants to merge 11 commits into
feat/lower-tier-orchestrator-improvementsfrom
feat/architect-plan-reviewer-contract

Conversation

@IgorWnek

Copy link
Copy Markdown
Contributor

What & why

The implementation orchestration loop now runs on a lower-tier orchestrator model that delegates high-leverage planning to two top-tier advisors: tsh-architect (plan author) and tsh-plan-reviewer (plan challenger). The contract between those two agents had gaps that made the review→revise loop hard for the orchestrator to route reliably:

  • tsh-architect was still unstructured prose and mixed WHO (behavior) with HOW (workflow mechanics), and had no explicit contract for consuming review feedback.
  • tsh-plan-reviewer carried an impossible self-routing instruction ("always send the report to the architect") even though the orchestrator — not the reviewer — owns routing. Its verdict was also not machine-readable, so the orchestrator had to infer next steps from prose.
  • The orchestrator's upfront execution step over-committed to a fixed agent+prompt call sequence instead of a flexible task-order plan.

This PR restructures and hardens that contract without changing what the loop does. Severity levels, verdicts (APPROVED / REVISIONS NEEDED), the max-3-iteration cap, the "skip re-review if approved and unchanged" rule, and .plan-review.md as source of truth are all preserved.

@IgorWnek

Copy link
Copy Markdown
Contributor Author

FYI: plan.example.md work is not finished here, it'll be subject to further changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant