Skip to content

refactor: decompose create-expert build into focused experts#762

Merged
FL4TLiN3 merged 1 commit intomainfrom
refactor/create-expert-build-decomposition
Mar 13, 2026
Merged

refactor: decompose create-expert build into focused experts#762
FL4TLiN3 merged 1 commit intomainfrom
refactor/create-expert-build-decomposition

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Split monolithic build expert (definition writing + test orchestration) into 3 focused single-responsibility experts: write-definition, verify-test, and thin-coordinator build
  • Enforce sequential test execution (1 delegate call per response) to enable iterative improvement across 3 test queries, instead of parallel validation
  • Add verify-test expert for independent artifact verification with 3-tier verdict system (PASS/SUFFICIENT/CONTINUE) and evidence-based early exit
  • Scope coordinator's delegates to only direct children; add delegation tree comment at file header
  • Improve information density across all expert instructions without reducing information content

Test plan

  • Run create-expert end-to-end and verify build delegates sequentially to write-definition → test-expert → verify-test
  • Verify test queries execute one at a time (not in parallel)
  • Verify verify-test produces per-criterion evidence reports
  • Verify early exit (SUFFICIENT verdict) works when evidence is strong
  • Verify CONTINUE verdict triggers write-definition with feedback and restarts from query 1

🤖 Generated with Claude Code

…xpert, verify-test

Split the monolithic build expert into focused single-responsibility experts:
- build: thin coordinator for sequential test-improve loop orchestration
- write-definition: perstack.toml authoring with TOML schema domain knowledge
- verify-test: independent artifact verification with PASS/SUFFICIENT/CONTINUE verdicts

Key behavioral changes:
- Test queries run sequentially (not in parallel) for iterative improvement
- Each test result independently verified before proceeding to next query
- Early exit permitted only with concrete per-criterion evidence
- One delegate call per response enforced to prevent parallel execution

Also improves information density across all experts and adds delegation tree
comment at file header.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 9b911e5 into main Mar 13, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/create-expert-build-decomposition branch March 13, 2026 09:28
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