Home / Market / pre ship gate

pre ship gate

A ship gate that runs before any production deploy: checks the silent failure modes that make a deploy 'succeed' while prod stays broken, then verifies the live revision instead of trusting deploy output.

skill★ 508380 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: pre-ship-gate description: "A ship gate that runs before any production deploy: checks the silent failure modes that make a deploy 'succeed' while prod stays broken, then verifies the live revision instead of trusting deploy output." category: quality risk: safe source: community source_repo: Sharrmavishal/operating-kit source_type: community date_added: "2026-07-07" author: Sharrmavishal tags: [deployment, quality-gate, verification, ci-cd, production] tools: [claude, cursor, gemini] license: MIT license_source: "https://github.com/Sharrmavishal/operating-kit/blob/main/LICENSE"

---

Pre-Ship Gate

Overview

Most bad deploys do not fail loudly. The pipeline goes green, the CLI prints "deployed", and the old or broken version is still what users hit. This skill is the gate you run right before a production deploy and right after, so an agent stops trusting deploy output and starts confirming what is actually live. It exists because "the deploy command exited 0" and "the new version is serving traffic" are two different facts, and agents routinely confuse them.

When to Use This Skill

How It Works

The gate has three phases. Do not skip to phase 3.

Phase 1: Pre-flight (before the deploy runs)

Walk the silent failure catalog. These are the modes that let a deploy "succeed" while production stays broken. For each one, confirm it or flag it. Do not assume.

Phase 2: Run the deploy

The human or the deploy tooling runs the actual command. This skill does not execute the production deploy itself. It gates it.

Phase 3: Verify live (before saying "shipped")

Confirm the running system, not the deploy log.

Revision comparison

Compare full immutable revision identities in the same format and confirm the response came from the intended live environment. A revision match is necessary evidence, not sufficient functional acceptance; exercise the requested critical paths and migration/flag behavior too.

Examples

Example 1: Verifying the live revision instead of trusting the deploy log

# You intended to ship this commit
INTENDED="$(git rev-parse HEAD)"

# Ask the running service what it is actually serving
LIVE="$(curl -fsS https://your-service.example.com/health | jq -r '.revision')"

if [ "$INTENDED" = "$LIVE" ]; then
  echo "Live revision $LIVE matches intended $INTENDED: verified shipped."
else
  echo "MISMATCH: intended $INTENDED but live is $LIVE. Do not report shipped."
fi

Example 2: Pre-flight verdict format an agent can emit

PRE-SHIP GATE, verdict: HOLD

- Migrations: 1 pending (add_users_status_col): NOT yet applied to prod. BLOCK.
- Feature flags: new_checkout flag is OFF in prod. Enabling required post-deploy.
- Build assets: new bundle hash confirmed (a1b2c3 != previous 9f8e7d). OK.
- Release pointer: deploy updates active symlink. OK.
- Rollout: canary at 10%, manual promote required. NOTE.
- Env/secrets: STRIPE_KEY present in prod. OK.

Reason for HOLD: run migration add_users_status_col before cutover, or the
new code will 500 on /orders.

Best Practices

Limitations

Common Pitfalls

Solution: The check is hitting a cached edge or the old pod. Verify the revision field in the response, not just the status code.

Solution: Sequence migrations before cutover, or gate the code path behind a flag until the migration lands.

Solution: Confirm the traffic pointer or promotion step, not just the upload step.

Security & Safety Notes

Related Skills