Repository navigation
feat(z-mode): port pstack 0.15.36 native-tool Orchestrate - #72
Merged
Merged
Conversation
Orchestrate now runs a program with the coordinator's own tools. Workers spawn through the selected execution method. State lives in the host's task tracker and a user-owned notes file. PRs are watched through native PR and CI events where the host has them. The coordinator writes no code and runs no bookkeeping scripts or polling loops. Each PR has one owner, the only agent that pushes, rebases, or retargets it. Each PR needs a verifier from another model family at its current head. A pilot unit runs before fan-out. Briefs name their proof of done, and PR state is checked live before reporting. Breaking change: the Python orch CLI, its store, and its tests are deleted, so integrations that called it must keep their own state. Its validator, mypy, ty, and host-contract entries are removed. Zstack keeps merges under the user's authorized actions and Shipping. Retries, worker reuse, and concurrency follow the agent lifecycle rules, as interrogation found that upstream's copied rules conflicted with them. A stacked child's own owner does Shipping's child rebase. Manifests advance to 0.22.0. Upstream: cursor/plugins#1043 (merge c742dd61). Claude-Session: https://claude.ai/code/session_01AhhZLNrJaee4xyot8y1jPt
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Upstream cursor/plugins#1043
Why the change
Orchestrate leaned on a bundled bookkeeping CLI and store, while upstream pstack 0.15.36 now runs a program with the coordinator's own agent tools, task tracker, and PR/CI events, so this port lets zstack follow that design and drop roughly 1,200 lines of Python it no longer needs.
Special things to note
skills/z-mode/scripts/orch/(orch.py,store.py) and its tests are gone, so anything that called the orch CLI has to keep its own state. Manifests move to0.22.0for that reason.native-hosts.md: one retry with a fresh agent, reuse only for agent-held state, and a window that starts at 2-3.ty. The one mypy error intest_pr_watcher.py:746exists onmaintoo.Change outline
The coordinator stops doing scripted bookkeeping and supervises owners instead.
The playbook gets two new sections in place of the old numbered steps.
The CLI removal reaches every caller.
skills/z-mode/ ├── playbooks/orchestrate.md # rewritten ├── references/native-hosts.md # orch --help example removed └── scripts/ - └── orch/{orch.py,store.py} scripts/ ├── test_z_mode_tools.py # store/frontier tests removed; watcher launcher test kept ├── validate.py, test_validate.py # orch entrypoint no longer required mypy.ini, README.md # orch search paths removed docs/ # playbook reference, guides, provenance, validation plugin manifests # 0.21.2 -> 0.22.0https://claude.ai/code/session_01AhhZLNrJaee4xyot8y1jPt
Summary by cubic
Ports upstream pstack 0.15.36's native-tool Orchestrate: the coordinator now runs a program with its own agents and tools instead of a bundled bookkeeping CLI, following upstream design and dropping about 1,200 lines of Python.
Breaking change
skills/z-mode/scripts/orch/(orch.py,store.py) and its tests are deleted; anything that called the orch CLI must keep its own state, which is why manifests advance to0.22.0.Changed behavior
.agent-work/<slug>/notes.md, and PRs are watched through native PR/CI event subscriptions where the host has them.native-hosts.md: one retry with a fresh agent, reuse only for agent-held state, and a window starting at 2-3.ty. A mypy error intest_pr_watcher.py:746also exists onmain.Written for commit 0d8f9c0. Summary will update on new commits.