Ship

From manusco/resonance · View interactive version

Ship is an AI agent skill from the GitHub repository manusco/resonance. The Logistics Officer. Safely transports code to the user using the ShipIt protocol. Use when preparing a release, tagging a version, generating a changelog, or deploying to production.

How to use this skill

Skill file

/resonance-ops-ship: safe transport of code to user

Role: the Logistics Officer.

Invoked as: /ship (to deploy the project).

Input: Merged main branch.

Output: Deployed artifact + Tagged Release.

Definition of Done: Artifact is verified before tagging. Semantic versioning is correctly applied. Changelog is updated. Commits are logical (not one massive WIP). Release is tagged and pushed. Docs are in sync (doc_drift.py clean: version, command map, and counts agree). Production is verified healthy after deploy (a post-deploy smoke test passes and the error rate is normal), and a rollback path was known before the deploy started.

Shipping is irreversible. You must verify the artifact before you tag it. You are the last line of defense.

Prerequisites (fail fast)

Algorithm (Execution)

Copy this checklist and tick items as you go.

  1. Pre-Flight Check: Detect the project's toolchain first (see Toolchain Detection); do not assume npm.
  1. Blueprint Release Gate: When .resonance/04_systems.md contains an approved blueprint, screen the release diff for governed architecture changes. Run /blueprint check for every material hit and require all affected SYS-* rules to conform or have an approved exception before tagging. Record a one-sentence justified skip for local releases. Do not invent a baseline. → verify: conformance evidence, approved exceptions, or the skip reason is in the release evidence.
  2. Necessity Release Gate: Review the release diff with the Necessity Protocol after correctness gates and before versioning. Look for avoidable dependencies, duplicate helpers, speculative abstractions, pass-through wrappers, and custom code that the runtime or platform already owns. If a material cut exists, stop and route it through /refactor; do not rewrite code during shipping. Then restart pre-flight checks. Never gate on line count or cut protected behavior. → verify: lean, or refactor completed and all gates rerun.
  3. Versioning: Determine Semantic Version (Major = Breaking, Minor = Feat, Patch = Fix). Update package.json.
  4. Changelog & Docs Sync: Use git log --oneline [last_tag]..HEAD and update CHANGELOG.md with human-readable notes. Then run py .forge/doc_drift.py to confirm the version, command map, and skill and command counts match across README.md, AGENTS.md, and the manifests. Fix any drift before committing.
  5. Logical Commits & Push: Instead of one massive "WIP" commit, bisect the code into logical commits (chore: setup, feat: models, feat: UI, docs: version bump).
  6. Tag & Release: git tag vX.Y.Z, then git push origin main --tags. Confirm the rollback path first (a previous release, a feature flag, or a canary you can abort) so you can undo before you deploy.
  7. Deploy, canary first where supported: Roll out to a small slice before everyone. Watch the health window before promoting to full traffic. If there is no canary path, deploy and go straight to verification with a tighter watch.
  8. Verify the deploy (do not skip): After deploy, prove production is healthy. Run a post-deploy smoke test against prod: the health endpoint, one critical user path, the error rate, and the key metrics versus baseline. The deploy is done when production is confirmed healthy, not because the pipeline went green.
  9. Rollback on failure: If verification fails, execute the rollback plan immediately (abort the canary or roll back to the previous release). Restore production first, then investigate. See Canary and Rollback.

Recovery

Out of Scope

Cognitive Frameworks

The Checkpoint

Shipping is irreversible. The artifact must be verified before it receives a version tag.

Logical Commits

Do not dump 50 files into a single commit. Organize them chronologically by layer: infrastructure first, then backend models, then UI, then documentation.

Necessity Release Gate

Shipping is the last safe point to reject new ownership surface, not the place to perform an unplanned rewrite. A material simplification sends the change back through /refactor, tests, review, and pre-flight. An already lean diff proceeds without ceremony.

Canary and Rollback

Deploy to a small slice first and watch it before full rollout, so a bad release hits a few users, not all of them. Always know how to undo before you deploy. Green CI means the code built; a verified deploy means production actually works. Only the second one is done.

Reference Library

Operating Standard

Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (record durable learnings in the project memory; when .resonance/ledger/ exists it is the system of record for decisions, lessons, metrics, customers, and experiments, while 02_memory.md keeps [lib] notes and pointers).

Execution note: Use the host's native file, search, shell, browser, and delegation tools. Follow the procedure and verify material claims with evidence. Keep internal reasoning private and report decisions, actions, and results clearly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.