deployment-provenance
Skill4 starsChanged 10 months agoMITView on GitHub
Use when deploying software to production or staging environments to ensure complete traceability of what was deployed, when, by whom, and from which source. Essential for audit compliance, incident investigation, and rollback decisions.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-onboardingSkill
- agent-workitem-automationSkill
- architecture-testingSkill
- aspire-integration-testingSkill
- automated-standards-enforcementSkill
- best-practice-introductionSkill
- branching-strategy-and-conventionsSkill
- broken-windowSkill
- change-risk-rollbackSkill
- ci-cd-conformanceSkill
- component-boundary-ownershipSkill
- contract-consistency-validationSkill
- csharp-best-practicesSkill
- documentation-as-codeSkill
- documentation-scaffoldSkill
- dotnet-bespoke-code-minimisationSkill
- dotnet-best-practicesSkill
- dotnet-domain-primitivesSkill
- dotnet-efcore-practicesSkill
- dotnet-healthchecksSkill
- dotnet-logging-serilogSkill
- dotnet-mapping-standardSkill
- dotnet-open-source-first-governanceSkill
- dotnet-source-generation-firstSkill
- dotnet-specification-patternSkill
- dotnet-testing-assertionsSkill
- environment-traceabilitySkill
- finishing-a-development-branch-iddSkill
- greenfield-baselineSkill
- impacted-scope-enforcementSkill
- incremental-change-impactSkill
- incremental-deploymentSkill
- innersource-governance-bootstrapSkill
- issue-driven-deliverySkill
- library-extraction-stabilisationSkill
- local-dev-experienceSkill
- markdown-authorSkill
- modern-csharp-coding-standardsSkill
- monorepo-orchestration-setupSkill
- observability-logging-baselineSkill
- pair-programmingSkill
- persona-switchingSkill
- process-skill-routerSkill
- quality-gate-enforcementSkill
- release-tagging-planSkill
- repo-best-practices-bootstrapSkill
- repository-foundation-bootstrapSkill
- requirements-gatheringSkill
- runtime-tooling-validationSkill
- safe-brownfield-refactorSkill
- scoped-colocationSkill
- security-processesSkill
- selective-build-testSkill
- semantic-version-impactSkill
- session-awareSkill
- skills-first-workflowSkill
- static-analysis-securitySkill
- structured-review-workflowSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Every deployment MUST capture:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deployment Provenance
Overview
P0 Safety & Integrity - Deployment provenance establishes immutable traceability from running artifact back to source commit, build process, and deployment actor. Critical for audit compliance, security incident response, and confident rollback decisions.
REQUIRED: superpowers:verification-before-completion
When to Use
- Deploying to production or staging environments
- Setting up CI/CD pipelines for any deployable artifact
- Investigating production incidents requiring deployment history
- Establishing audit compliance for regulated environments
- Enabling confident rollback decisions
Core Workflow
- Source Identification: Tag or record exact commit SHA deployed
- Build Provenance: Capture build number, pipeline, and build timestamp
- Artifact Signing: Sign artifacts cryptographically (optional but recommended)
- Deployment Recording: Log deployment timestamp, environment, and actor
- Artifact Labelling: Embed provenance metadata in artifact (labels, manifests)
- Audit Trail: Persist deployment records to immutable store
- Verification: Validate provenance chain before and after deployment
Provenance Record Schema
Every deployment MUST capture:
| Field | Description | Example |
commit_sha | Full Git commit SHA | a1b2c3d4e5f6... |
branch | Source branch name | main, release/1.2.0 |
build_id | CI/CD build identifier | build-12345 |
build_timestamp | When artifact was built (ISO 8601) | 2025-01-15T10:30:00Z |
deploy_timestamp | When deployment occurred (ISO 8601) | 2025-01-15T11:00:00Z |
environment | Target environment | production, staging |
actor | Who/what triggered deployment | ci-bot, jane.doe@example.com |
artifact_digest | SHA256 hash of deployed artifact | sha256:abc123... |
pipeline_url | Link to CI/CD pipeline run | https://github.com/org/repo/actions/... |
signature | Cryptographic signature (if signed) | sigstore:... or gpg:... |
Implementation Patterns
Container Deployments
LABEL org.opencontainers.image.revision="${GIT_SHA}"
LABEL org.opencontainers.image.created="${BUILD_TIMESTAMP}"
LABEL org.opencontainers.image.source="${REPO_URL}"
LABEL com.example.build-id="${BUILD_ID}"
LABEL com.example.pipeline-url="${PIPELINE_URL}"Kubernetes Deployments
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
app.example.com/git-sha: "${GIT_SHA}"
app.example.com/build-id: "${BUILD_ID}"
app.example.com/deployed-by: "${ACTOR}"
app.example.com/deployed-at: "${DEPLOY_TIMESTAMP}"Application Version Endpoints
Expose /version or /health endpoint returning provenance:
{
"version": "1.2.3",
"commit": "a1b2c3d4",
"build": "12345",
"built_at": "2025-01-15T10:30:00Z",
"environment": "production"
}Audit Trail Storage
Store deployment records in an append-only audit log:
- Git-based: Deployment log file in ops repository
- Database: Append-only table with deployment events
- External: Audit systems (Splunk, CloudTrail, Azure Monitor)
Minimum retention: Follow organisational compliance requirements (typically 1-7 years).
Verification Checklist
Before deployment:
- Commit SHA matches expected release
- Build provenance chain intact (commit to artifact)
- Artifact digest matches build output
- Signature valid (if signing enabled)
- Deployment actor authorised for target environment
After deployment:
- Version endpoint returns expected provenance
- Deployment event recorded in audit log
- Rollback target identified (previous deployment record)
Red Flags - STOP
- "We deploy from local builds" - No reproducibility or audit trail
- "Version is just a timestamp" - Cannot trace to source code
- "Anyone can deploy to production" - No actor accountability
- "We don't track what's deployed" - Incident investigation impossible
- "Rollback means redeploy latest main" - May not match previous state
All mean: Establish provenance tracking before proceeding with deployment.
Tooling Integration
| Platform | Provenance Tool |
| GitHub Actions | Built-in attestations, Sigstore, SLSA |
| Azure DevOps | Pipeline artifacts, deployment gates |
| GitLab CI | Release evidence, container signing |
| Jenkins | Build metadata plugin, artifact fingerprints |
| ArgoCD | Application annotations, sync status |
| Kubernetes | OCI labels, admission controllers |
Related Practices
- SLSA Framework: Supply-chain Levels for Software Artifacts
- Sigstore: Keyless signing and verification
- SBOM: Software Bill of Materials for dependency provenance
- GitOps: Git as single source of truth for deployments
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

