anvil-serving-release-readiness
Gate an Anvil Serving package release and coordinated live deployment across Windows, Primary Node, Companion Node, the controller, router, Hermes, Pi, and OpenClaw. Use when a change will be merged, tagged, published, or deployed and exact manifest dependencies, version parity, recovery policy, and outage-free client smokes must be proven.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- anvil-serving-release-readiness
- description
- Gate an Anvil Serving package release and coordinated live deployment across Windows, Primary Node, Companion Node, the controller, router, Hermes, Pi, and OpenClaw. Use when a change will be merged, tagged, published, or deployed and exact manifest dependencies, version parity, recovery policy, and outage-free client smokes must be proven.
03 SKILL.md 正文
Anvil Serving Release Readiness
Use this staged evidence contract when the requested scope includes any combination of PR merge, package release, controller/router image rebuild, or live Mini-to-Dark deployment. It complements model qualification; it does not grant model-promotion authority.
1. Freeze scope and starting state
- State which actions are authorized: PR, merge, tag, GitHub release, PyPI publish, image build, live deploy, or rollback. Do not infer the later stages from an earlier one.
- Fetch
origin/main, record the exact source revision, use an isolated cleancodex/worktree, and preserve unrelated operator files. - Snapshot installed CLI versions, controller and router build identity, active routes, serve owners, operating mode, GPU reservations, shared memory, and OpenClaw MCP availability. Record which host executes each command.
- Name the active model/profile, alias behavior, and recovery policy. When rollback is allowed, name the rollback serve/profile and which public alias and backing identity it restores. When the operator explicitly requires fix-forward, record the same-selected-model restart/rebuild or known-good selected-profile recovery path; never silently substitute the prior model. A package release must not silently change a route; a route change remains human-gated.
- Declare build CPU and memory ceilings before compiling on an interactive workstation. Do not consume all host threads or RAM by default.
2. Prove the candidate before publishing
- Verify the source version is consistent across package metadata, runtime constants, Compose image defaults, changelog, and user-facing version text.
- Run changed-path gates, the full test suite, Ruff, strict documentation and link checks, CLI/reference audit, wheel build/smoke, and package metadata validation. Test the exact merged tree when the target branch moved.
- Derive deployment file closure from operational manifests. For every
referenced recipe, topology, router target profile, rollback router profile,
Compose file, or mounted config:
- resolve placeholders in the command host's container namespace;
- require the host source file to exist;
- require the exact read-only mount in each consumer container;
- require a regression test that derives the dependency from the manifest, not a duplicated filename list.
- Render/parse every changed manifest and profile with the candidate package. If a schema became stricter, identify and migrate deployed operator config before upgrading the controller that will parse it.
- Install the built wheel into a clean environment and verify the CLI version and representative commands from that artifact, not only the checkout.
- Require current-head PR review and CI. Resolve every outage-capable finding before merge; do not treat a stale review as approval of a new head.
3. Publish and deploy in recoverable steps
- Merge only the reviewed head. Verify the merge revision, then create the tag and release from that revision. Confirm the package index serves the exact version and a clean install resolves it; distinguish propagation delay from authentication or authorization failure.
- Preserve the active serve while upgrading the control plane. Use managed preview/apply verbs and rebuild only the controller/router components that need the candidate. Raw Docker is limited to bounded read-only diagnosis when the product surface cannot explain a failure.
- Apply required config/file migrations before starting a stricter consumer. Re-run manifest dependency closure against the files visible inside the deployed controller and router.
- Establish exact version parity across the Windows CLI, Mini CLI/bridge, Dark CLI/controller, and router. A mixed-version deployment is incomplete even when one endpoint is healthy.
- Stop normal progression when the controller cannot parse the manifest, a required mount is absent, the router loses its target, route identity changes unexpectedly, or an in-scope client path becomes unavailable. Execute the declared recovery policy: rollback when authorized, or restore the exact selected model/profile through the recorded fix-forward path. Fix-forward authority does not permit silent fallback or a prior-model substitution.
4. Prove the live contract before closure
Run the checks through typed controller/MCP surfaces when available and use the installed CLI only as a verified fallback.
- Controller:
operation_contracts, serve status, operating-mode status, reservations, bounded logs, and zero unresolved ownership. - Router: build/config identity, readiness, advertised aliases, exact
llm.primaryidentity, and context/concurrency metadata. When rollback is allowed, validate that its router profile preserves the intended stable public alias and maps it to the expected rollback model identity. Treat an auxiliary alias such asllm.rollbackas profile-specific, not a universal rollback contract. Unknown or unavailable routes must remain fail-closed. - For a promotion with several declared harnesses, use parallel read-only
preparation with explicit ownership:
- The lead retains authority for route/model lifecycle, promotion, and the final catalog binding. It supplies the verified post-cutover router generation, catalog digest, selected activation binding, and recovery policy before any harness write.
- A harness-update worker inventories current owners and supported native provisioning paths, prepares a bound update, and performs writes only after receiving that verified binding. It must not infer a replacement path from a retired legacy writer or bypass a workflow-retirement fence.
- An independent acceptance worker inventories only actually deployed
harnesses, records which profiles and sessions need testing, and validates
the resulting catalog, real client-shaped turns, preservation, and repeat
convergence. Retired installations are evidence, not active targets.
Keep worker evidence separate and have the lead join it against the same
route/catalog binding. Concurrent work is limited to isolated read-only
discovery; serialize client writes, owner recovery, and service reloads.
If the supported updater refuses an immutable-image, revision, or native
workflow-owner check, preserve the failure and use its reviewed fix-forward
path. Do not weaken the guard, re-enable a retired writer, or claim client
convergence. Report
harness_convergence_pendingwhile the accepted route remains live.
- Promotion provisioning: run the declared infrastructure capture and fleet
reconciliation on every approved promotion, even if alias names or token
limits did not change. Derive the rebuild snapshot from the selected and
rollback activation profiles, including their router, recipes and startup
dependencies. Render client bootstrap data from the same authenticated router
catalog; never retype limits or copy a remembered result. Keep the raw router
file digest separate from the effective runtime config hash and bind both to
the promotion receipt. Refuse stale profile, recipe, router or bootstrap
bindings before any client writes.
Enumerate all declared hosts and harness installations from infrastructure
inventory, including local and remote Pi CLI/Web, retained Hermes profiles
and OpenClaw where deployed. Preflight every host, apply through the existing
provisioning tools, then require repeat apply
changed=0and an empty product sync dry-run for each host with the same approved router hash. Record exact observed context/output/reasoning/modality values and required service reloads; new catalog files alone do not prove an existing session has reloaded them. Open WebUI is provisioned by the operator's infrastructure, not byanvil-serving clients sync(which covers OpenClaw, Hermes and Pi only). The managed infrastructure procedure issh scripts/run webui --check,sh scripts/run webui, then a repeatsh scripts/run webui; itsharness-fleetplay includes WebUI. The helper reads the approved promotion contract, uses native WebUI model/configuration APIs, verifies/api/modelsas each active account, and checks a fresh receipt from its installed scheduled unit. Keep deployment-specific paths and acceptance evidence in the operator repository. For an operator without that provisioner, require an equivalent declared procedure and leave WebUI convergence pending until it exists; never imply the product's three-client sync covers WebUI. Include Open WebUI when it is a declared harness. Reconcile its Anvil-backed aliases from the same approved router catalog, including output limits and vision metadata. Model discovery alone is insufficient: grant authenticated users read access to every approved alias, preserve existing write grants, private presets and unrelated provider connections, and verify the catalog through the regular-user HTTP path. Keep account admission and gateway authentication intact. Require repeat reconciliation with no changes and install the approved contract for the scheduled writer. A stale router generation must fail before writes and must never certify convergence. For an explicitly requested WebUI upgrade, pin the official release digest, retain a consistent database backup and prior image/configuration, update only the declared WebUI service, and verify sign-in and chat through the operator's normal gateway. An upgrade or healthy admin session alone does not prove regular-user model access. Server batch tokens/concurrency belong to recipe/startup provisioning, not Pi client output settings. Preserve selected providers, credentials, compaction, sessions and unrelated settings. Do not install an absent harness or restart inference to reconcile clients. A missing host, stale rebuild snapshot, unsafe compaction policy or pending runtime refresh meansharness_convergence_pending; retain the accepted serve and exact gap instead of claiming promotion complete or automatically rolling back. Model/client catalog: reconcile Hermes, Pi, and OpenClaw from the same authenticated router snapshot. Verify each selected alias advertises the exact routercontext_limit_tokensandmax_output_tokens, preserves its provider/auth references and compaction policy, and has no silent fallback. Useconverge-mini-vision-clientsfor this gate when installed; otherwise enforce the same closure directly. Enumerate every retained Anvil-backed Hermes profile rather than assuming the default profile; verify its main model, auxiliary compression, Anvil provider, provider-model catalog, and custom-provider context/output fields. Verify every current Anvil alias in the Pi and OpenClaw catalogs. Preserve all unrelated client settings. Use dry-run, confirmed apply, and an idempotent second dry-run where the managed surface supports them. The final dry-run must report no changes. Verify the tracked and installed promotion reconciliation covers every declared harness, includes--hermes-profiles alland required change-triggered restarts, and has a successful receipt for this promotion. Periodic jobs may cover a narrower set; they must share transaction locking and the approved source contract so they cannot race or undo promotion. Run the real Hermes, Pi, and OpenClaw request shapes, including tools and tool-result continuation when affected. A long-context needle or protocol preflight does not replace these client-shaped smokes. Any catalog/profile drift or missing declared fleet coverage blocks deployment closure. If an interrupted propagation job holds the fleet resources, recover that exact job through its owner before preparing a successor. Preserve its original contract, process births, custody and child-result digests, and workflow history. Expiry, a missing PID, or a reboot alone cannot prove that persisted native work cannot replay. Require fresh, complete owner readback of the exact terminal workflow and every affected native replay source; settle through the supported recovery operation, never a database edit or a legacy-writer bypass. Keep any maintenance reader restricted to observation and recovery, verify authenticated operation exposure and admission denial, and make a failed host preflight stop all fleet mutation. Bind the fresh successor to the accepted activation and retained settlement evidence. Before staging native profiles, validate both their file hashes and the semantic identities recomputed by the pinned consumer. An inventory or fixture change must update the profile identity, manifest identity, every owned contract target and the complete content-hash chain. Require this check before the first staging write; a valid outer hash does not prove consumer acceptance. Before staging or replacing a workflow owner, require its exact pinned artifact to parse the canonical contract and recompute its semantic effect scope. Revision, generation, execution or target changes must rebuild that scope and the contract-to-owner hash chain. Matching outer hashes and a qualified reader image do not prove that the owner can bootstrap. Keep a failed packet immutable and prepare a fresh successor. Qualify the repaired client artifact separately when the accepted model/owner is retained; do not patch an installed runtime or manufacture another model transition. Track catalog convergence, new-session acceptance, existing-session preservation, and scheduled reconciliation separately for every declared installation; a fresh CLI smoke cannot stand in for Pi Web or an existing session. Fix authorized blockers and rerun their failed gates before closure. For client upgrades, inventory retained patches and verify each against the pinned upstream package. Bind expected installer changes, such as deleted completion markers, to exact source evidence; never ignore arbitrary drift. Verify the dependency generation the native package manager actually selects, including retained features/plugins, before and after a real client turn. An unchanged base interpreter or version banner is insufficient. Preserve native selections through supported package-manager APIs, require repeat convergence, and qualify CLI, Gateway, bundled dashboard and standalone UI separately when declared. Keep authentication and native idle gates intact. When a native upgrade changes persistent schemas, take and verify a stopped predecessor backup before migration. Qualify schema/integrity separately from plugin convergence, preserved provider selections and live client acceptance. Never promise binary-only rollback across incompatible schemas. Record the recovery boundary durably before the first migration command, and consult it on retries after controller interruption. Once migration may have started, use the qualified candidate recovery path; a failed command does not prove that no state changed. Restored-clone checks must deny access to production state, including absolute plugin install paths, and must not claim broader preservation than their native checks establish. For native catalog-reader changes, measure all retained profiles together through the exact installed host observer, then the complete owner readback. Require two consecutive complete owner previews before cutover; a single near-deadline pass cannot qualify an intermittent reader. Count native config checks as well as metadata queries. Overlap only independently isolated read-only work; serialize shared custody I/O and join every worker before releasing its fence or scratch files. Keep mutation paths serialized. A per-profile concurrency test does not prove the aggregate readback budget. Retain subprocess counts, wall-clock time, exact runtime/profile bindings, cleanup evidence and every declared target. Batch queries must preserve the native resolver's defaults, profile selection, redaction and missing-key behavior; parsing YAML alone is insufficient. Keep native redaction enabled for metadata even when interactive CLI settings opt out; operational output and receipts must never expose credential values. Project only declared catalog fields; whole provider documents can carry opaque credentials in headers or unrelated settings despite native masking. Exclude unrelated provider rows and reject unsafe retained identifiers. Exercise the snapshot-enabled fenced consumer, including protected source preservation and repeat convergence; legacy-reader tests cannot prove it. Qualify metadata readers with an older supported profile in a disposable home and prove its complete tree remains unchanged. Trap filesystem writes, helper/network calls and secret loader/recovery imports in the real pinned package. Bind explicit profile resolution fail closed: an unreadable named profile must never read default. CLI imports and config getters can create logs/backups or run recovery even without calling main; keep those effects outside metadata queries and isolate the native oracle. A native resolver that silently ignores an unreadable or malformed administrator overlay cannot certify convergence: require strict managed-config reads, a positive effective-overlay fixture and silent refusal cases, with managed environment files unopened. Do not increase fixed budgets or omit a target to turn a failed preview green. Requalify the consumer and prepare a fresh successor rather than modifying a failed immutable packet. - Reasoning/output: use the deployed default reasoning effort and enough visible-answer headroom to observe a real answer. For an output cap, prove both the applied value and the explicit warning; an exhausted tiny probe is not a model failure.
- Exclusive mode: prove both GPU roles have the intended owner, every competing managed GPU workload is blocked, and shared-memory ownership is clean.
- OpenClaw: verify the Mini gateway path, selected model alias/context/reasoning settings, no silent fallback, and the expected MCP tool inventory.
- Re-run the post-deploy smoke after any hotfix. Record exact versions, revisions, checks, failures, rollback state, and live result in the release evidence.
For a model promotion, also close the benchmark publication gate: serve the dated narrative and verified benchmark results in every declared Grafana/Workbench surface through the operator's dashboard infrastructure. Retain the post URL, dashboard/evidence IDs, artifact bindings and live readback. A healthy model and updated active-model labels do not satisfy this gate.
Closure rules
Report the release as complete only when all authorized publish/deploy stages
pass and no in-scope outage remains. Report published_not_deployed,
deployed_degraded, or rolled_back precisely when that is the evidence.
Never conceal a superseded bad release; name the hotfix version and the defect
that required it.
Return a compact readiness matrix with these rows:
| Gate | Required evidence |
|---|---|
| Source | clean exact revision and merged-tree gates |
| Package | clean-install exact version and published artifact |
| Files | manifest-derived host files and read-only container mounts |
| Parity | Windows, Mini, Dark, controller, and router exact versions |
| Route | active/recovery profile alias parity, identities, readiness, context/concurrency |
| Client | Hermes/Pi/OpenClaw catalog parity and real-shape smokes with reasoning and tools |
| Safety | exclusive ownership, blocked competitors, clean shared memory |
| Promotion publication | served benchmark narrative, declared dashboard result views and live publication receipt; otherwise promoted_publication_pending |
| Closure | no outage, or explicit recovered/degraded state under the declared policy |
04 同仓库更多 Skills
voice
暂无简介
workbench
暂无简介
workbench
暂无简介
workbench
暂无简介
anvil-serving-voice-ops
Operate topology-owned anvil-serving voice audio and Realtime proxy lifecycle, Mini-to-Dark loopback forwarding, profiles, sidecars, and bounded voice benchmarks. Use for voice status, logs, start/stop/restart, OpenClaw Talk topology checks, and voice evidence that must remain separate from LLM serve qualification evidence.
anvil-serving-stt-benchmark
Prepare, validate, execute, compare, and publish reproducible multi-sample speech-to-text qualifications in anvil-serving. Use for STT model bakeoffs, corpus-based WER/CER and latency testing, candidate overlays, concurrency tests, restoration checks, and fail-closed stt-benchmark-evidence/v1 artifacts. Do not use for a single voice-pipeline turn or LLM qualification.