Repository navigation
refactor(orchestrator): read agent prompts from the wizard only - #1565
Draft
edwinyjlim wants to merge 1 commit into
Draft
edwinyjlim wants to merge 1 commit into
edwinyjlim wants to merge 1 commit into
Conversation
The orchestrator builds its registry from the prompts a program bundles and picks skills with the shared resolver and the project's match keys. The wizard-agent-dag flag, the remote prompt fetch and the old menu lookup are removed. A program that bundles no prompts, or whose bundle fails to load, fails the run with PHW_AGENT_ORCHESTRATOR_NO_PLANNER. A run pinned with --context-mill-version reads the bundled prompts too; the pin selects skills only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Test against a Context Mill branch:
Add Results will be posted here when complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behaviour
An orchestrator run reads its agent prompts from the wizard, and nowhere else.
agent/. A flow with aseed: trueprompt keeps its planner. A flow without one is queued from the graph its frontmatter declares.PHW_AGENT_ORCHESTRATOR_NO_PLANNER. A failed load is also reported as an exception with the steporchestrator_bundled_prompts.resolveSkillwith the project's match keys.--context-mill-versionreads the bundled prompts like any other run. The pin selects skills only.The
wizard-agent-dagflag, the fetch ofagent-menu.jsonandagents-*.md, the runner's own menu lookup and theorchestrator_promptstag are gone. The recorded copy of context-mill's prompts underfixtures/context-mill/goes with them, andrecord:context-mill-fixturesrecords the skill menu only.Verified
pnpm typecheckandpnpm lint(0 errors).pnpm test: 291 files, 4,454 tests pass, 1 skipped.frontmatter-queue.test.tscovers the two new failures: a bundle that fails to load, and a program that bundles none.flow-graphs.test.tsandagent-prompts.test.tsstill check every bundled flow: eachdependsOnnames a task in its folder, each folder has one sink and can be ordered, and eachskillsentry is on the recorded menu.Rollout
This is the first of four stacked PRs that remove the old code paths. They merge together and ship in one release.
wizard-agent-dagandwizard-agent-dag-skillshave both held at 100% with no stop rule tripped, no run that fetched its prompts, and no run that fell back to an old skill.🤖 Generated with Claude Code