feat(orchestrator): in-memory queue + disk persistence (QueueStore)#607
Merged
gewenyu99 merged 1 commit intoJun 18, 2026
Conversation
🧙 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
Results will be posted here when complete. |
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jun 9, 2026
Merged
4438709 to
7112748
Compare
f8d51ae to
48e0be9
Compare
7112748 to
f6620f8
Compare
48e0be9 to
0b7c4fd
Compare
edwinyjlim
reviewed
Jun 10, 2026
edwinyjlim
reviewed
Jun 10, 2026
This was referenced Jun 10, 2026
edwinyjlim
reviewed
Jun 10, 2026
edwinyjlim
reviewed
Jun 10, 2026
edwinyjlim
reviewed
Jun 10, 2026
f6620f8 to
51706a2
Compare
0b7c4fd to
1b9165b
Compare
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1b9165b to
0ccf004
Compare
7bea83c
into
experiment/orchestrator-01-bootstrap-gating
12 of 13 checks passed
gewenyu99
added a commit
that referenced
this pull request
Jun 18, 2026
…607) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
gewenyu99
added a commit
that referenced
this pull request
Jun 18, 2026
…rd-orchestrator flag) (#606) Experimental task-queue orchestrator, collapsed from an 11-PR stack into this single branch. Behind the `wizard-orchestrator` feature flag, off by default — with the flag off it is a no-op and the existing linear flow runs unchanged. ## Wizard PRs folded in (squash-merged into this branch) - #607 — queue persistence - #608 — orchestrator MCP tools: enqueue_task / complete_task / read_handoffs, with guards - #609 — executor - #619 — agent loader - #620 — email targeting - #635 — CI flag overrides - #637 — ephemeral skills - #638 — telemetry (responsiveness A/B spine) - #639 — CI task filter - #677 — run cache + responsiveness analytics - #678 — CI health-check advisory ## Related PRs, other repos - PostHog/context-mill#181 — `agents` content type: agent prompts plus the `basic-integration` step-skills, built and served alongside skills - PostHog/wizard-workbench#1879 — CI flag-override and task-exclude dispatch inputs (dev/CI stack) ## Flag gating — why this is a no-op with the flag off - `runProgram` forks on `isOrchestratorEnabled(flags)` = `flags['wizard-orchestrator'] === 'true'` (default false). Off, it runs `runLinearProgram`, the existing path, untouched. - The shared `runAgent` threads the same flag through, so its orchestrator-specific message handling is gated too. - The CI flag-override (`WIZARD_CI_FLAG_OVERRIDES`) is guarded by `NODE_ENV === 'production'` and stripped from published builds — a smoke test asserts the env-var names are physically absent — so it cannot flip the flag for real users.
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.

In-memory task queue for the orchestrator. Synchronous and single-owner, no locking. Tasks carry type, dependencies, attempts, and a structured handoff for the next agent. Every transition rewrites
.posthog-wizard/queue.json, the run's log today and the resume point later.nextRunnablereturns every pending task whose dependencies are satisfied. Parallelism is decided by the task graph, not by a queue knob.