PilotSwarm 编排版本管理
pilotswarm-duroxide-versioning
在更改 PilotSwarm 持久化编排行为、continue-as-new(继续为新)状态或重放敏感的控制流时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 16
- Forks
- 10
01 前言 Front Matter
- name
- pilotswarm-duroxide-versioning
- description
- Use when changing PilotSwarm durable orchestration behavior, continue-as-new state, or replay-sensitive control flow.
03 SKILL.md 正文
PilotSwarm Duroxide Versioning
PilotSwarm durable orchestrations replay from history. Treat every orchestration change as a wire-compatibility problem, not just a code diff.
Rules
- Freeze old orchestration behavior in
packages/sdk/src/orchestration_<version>.ts. - Keep the canonical latest target in the shared version constant, and use that constant for all new starts and all
continueAsNewVersioned(...)calls. - Stamp the source orchestration version into the carried input so the target version can normalize or branch on legacy state if needed.
- Treat the
OrchestrationInputpayload as a durable wire format. Every new latest version must accept and normalize input snapshots from the oldest orchestration version that is still registered in the codebase. - Backward compatibility is behavioral, not only syntactic:
- Deserializing the old shape is not enough.
- If version
NcancontinueAsNewfrom state pointX, versionN+1must behave correctly when resumed fromX. - If
N+1only works when resumed from a new pointY, that is a versioning bug unless the older path stays on the old handler.
- If replay behavior, yield order, timer semantics, KV usage, command routing, or
continueAsNewstate changes, treat it as a new orchestration version even when the diff is small. - Add tests for both:
- the version target (
continueAsNewupgrades to latest as intended) - the compatibility path (older carried input still resumes correctly)
- the version target (
- When you add a new orchestration version, update the version-upgrade test suite too. In particular, keep
packages/sdk/test/local/orchestration-version-upgrade.test.jsaligned so it still exercises upgrade from the last three frozen versions into the latest version.
Checklist
- Shared latest version constant updated
- New latest handler added and registry wired
- Frozen handlers still replay-safe
- Oldest registered input shape still normalized by latest
- Source orchestration version carried in input
- Local tests cover at least one frozen-to-latest handoff
packages/sdk/test/local/orchestration-version-upgrade.test.jsupdated for the new latest version and the rolling last-three compatibility matrix
04 同仓库更多 Skills
workflow-testing
Load before you test a Workflow with mocked effects — the test, test_respond and test_advance operations, fixtures, interception ids, valid answers, the virtual clock, test evidence and what a test run does not prove.
workflow-tools
Every argument of the Workflow tools, testing a revision, package definitions and the refusals you can fix. Load when a Workflow tool's short description is not enough.
workflow-reference
Field reference for Workflow YAML (root keys, every state type, bindings, outputs, runtime error codes), what the engine guarantees, and a review fan-out example. For design, call load_skill with name workflow-authoring.
workflow-patterns
Load when one Workflow must run different nodes in its branches at the same time (a different prompt or model for each branch), or loops back to a state (a polling loop). Named branches, the router pattern, examples that compile.
workflow-authoring
Load before you create, edit, publish or run a Workflow (pilotswarm.dev/v1) — choosing states, bounded graphs, bindings, typed contracts, agent and parallel states, the lifecycle and failure diagnosis.
tla-formal-validation
Required for any change to the core orchestrations (the durable session orchestration, session hydration and dehydration, and the Workflow controller and store). Teaches how to model the change in TLA+, update the existing models, run TLC with the repo runner, read the results, turn a counterexample into a fix and a regression test, and record the binding to the code.