AGENT SKILL

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

  1. Freeze old orchestration behavior in packages/sdk/src/orchestration_<version>.ts.
  2. Keep the canonical latest target in the shared version constant, and use that constant for all new starts and all continueAsNewVersioned(...) calls.
  3. Stamp the source orchestration version into the carried input so the target version can normalize or branch on legacy state if needed.
  4. Treat the OrchestrationInput payload 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.
  5. Backward compatibility is behavioral, not only syntactic:
    • Deserializing the old shape is not enough.
    • If version N can continueAsNew from state point X, version N+1 must behave correctly when resumed from X.
    • If N+1 only works when resumed from a new point Y, that is a versioning bug unless the older path stays on the old handler.
  6. If replay behavior, yield order, timer semantics, KV usage, command routing, or continueAsNew state changes, treat it as a new orchestration version even when the diff is small.
  7. Add tests for both:
    • the version target (continueAsNew upgrades to latest as intended)
    • the compatibility path (older carried input still resumes correctly)
  8. 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.js aligned 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.js updated for the new latest version and the rolling last-three compatibility matrix

04 同仓库更多 Skills

microsoft
microsoft/PilotSwarm

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.

★ 16
microsoft
microsoft/PilotSwarm

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.

★ 16
microsoft
microsoft/PilotSwarm

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.

★ 16
microsoft
microsoft/PilotSwarm

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.

★ 16
microsoft
microsoft/PilotSwarm

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.

★ 16
microsoft
microsoft/PilotSwarm

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.

★ 16