@vesviet/agent-skills 5.6.0 → 5.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INDEX.md +1 -1
- package/README.md +1 -1
- package/VERSION +1 -1
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/role-skill-index.json +1 -1
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/cursor/README.md +185 -185
- package/bin/agent-skills.mjs +17 -14
- package/core/contracts/schemas/api-contract-spec.json +191 -191
- package/core/contracts/schemas/feature-ticket.json +1293 -1293
- package/core/contracts/schemas/pull-request-spec.json +338 -338
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
- package/core/contracts/schemas/test-report.json +530 -530
- package/core/roles/references/business-analyst-responsibilities.md +207 -207
- package/core/roles/references/frontend-developer-responsibilities.md +275 -275
- package/core/roles/system-engineer.md +465 -465
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
- package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
- package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
- package/core/skills/business/elicit-requirements/SKILL.md +102 -102
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
- package/core/skills/business/write-use-cases/SKILL.md +106 -106
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
- package/core/skills/document/pptx/scripts/add_slide.py +0 -0
- package/core/skills/document/pptx/scripts/clean.py +0 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
- package/core/skills/document/xlsx/scripts/recalc.py +0 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -143
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
- package/core/skills/foundation/release-notes/SKILL.md +192 -192
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
- package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
- package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
- package/core/skills/platform/web-perf/SKILL.md +151 -151
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
- package/core/skills/product/build-story-map/SKILL.md +104 -104
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
- package/core/skills/product/define-product-strategy/SKILL.md +105 -105
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
- package/core/skills/repo-ops/review-service/SKILL.md +186 -186
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
- package/core/skills/security-data/security-audit/SKILL.md +119 -119
- package/core/workflows/add-new-feature.md +212 -212
- package/core/workflows/agent-a2a-delegation.md +142 -142
- package/core/workflows/bug-fix.md +147 -147
- package/core/workflows/build-deploy.md +208 -208
- package/core/workflows/code-review.md +137 -137
- package/core/workflows/dependency-upgrade.md +193 -193
- package/core/workflows/feature-delivery.md +149 -149
- package/core/workflows/hotfix-production.md +172 -172
- package/core/workflows/qa-validation.md +231 -231
- package/core/workflows/refactoring.md +154 -154
- package/core/workflows/revert-deployment.md +147 -147
- package/core/workflows/security-incident-response.md +191 -191
- package/core/workflows/seo-content-lifecycle.md +91 -91
- package/core/workflows/service-review-release.md +223 -223
- package/core/workflows/setup-new-service.md +214 -214
- package/core/workflows/tech-repo-review.md +245 -245
- package/core/workflows/troubleshooting.md +241 -241
- package/overlays/astro-cloudflare/README.md +93 -93
- package/overlays/data-analyst-stack/README.md +109 -109
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
- package/overlays/ecommerce-microservices/README.md +65 -65
- package/overlays/go-microservices/README.md +78 -78
- package/overlays/go-microservices/rules/go-conventions.md +223 -223
- package/overlays/laravel-filament/README.md +90 -90
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
- package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
- package/overlays/r3f-stack/README.md +89 -89
- package/overlays/r3f-stack/rules/stub.md +43 -43
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
- package/package.json +2 -2
- package/core/README.md +0 -53
|
@@ -1,208 +1,208 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Generic workflow for building, validating, releasing, and verifying a change
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Build & Deploy Workflow
|
|
6
|
-
|
|
7
|
-
Use this workflow when a change is ready to move from local verification into a shared environment.
|
|
8
|
-
|
|
9
|
-
### When To Use
|
|
10
|
-
|
|
11
|
-
- after a feature or bug fix is complete
|
|
12
|
-
- after code review approval
|
|
13
|
-
- before handing a change to QA or release owners
|
|
14
|
-
|
|
15
|
-
### Prerequisites
|
|
16
|
-
|
|
17
|
-
- local implementation is complete
|
|
18
|
-
- verification commands pass locally
|
|
19
|
-
- release risk is understood
|
|
20
|
-
|
|
21
|
-
### Critical Rules
|
|
22
|
-
|
|
23
|
-
- prefer the repo's official CI/CD path over ad hoc local release steps
|
|
24
|
-
- do not edit generated release metadata by hand unless the repo explicitly expects that
|
|
25
|
-
- do not create a commit until the user explicitly confirms that commit action
|
|
26
|
-
- do not push, create a tag, or publish a release until the user explicitly confirms that specific action
|
|
27
|
-
|
|
28
|
-
### Workflow Steps
|
|
29
|
-
|
|
30
|
-
#### 1. Run Pre-Release Checks
|
|
31
|
-
|
|
32
|
-
Role: **Backend Developer**, **Frontend Developer**
|
|
33
|
-
|
|
34
|
-
From the target repo, run the normal quality gates:
|
|
35
|
-
|
|
36
|
-
- tests
|
|
37
|
-
- lint or static analysis
|
|
38
|
-
- build
|
|
39
|
-
- contract generation if the repo uses it
|
|
40
|
-
|
|
41
|
-
Also check:
|
|
42
|
-
|
|
43
|
-
- no accidental debug code
|
|
44
|
-
- no transient files staged for release
|
|
45
|
-
- no local-only config or credentials leaked into the change
|
|
46
|
-
|
|
47
|
-
#### 2. Review Release Impact
|
|
48
|
-
|
|
49
|
-
Role: **Reviewer**, **Technical Lead**
|
|
50
|
-
|
|
51
|
-
Use skill: `review-code`
|
|
52
|
-
|
|
53
|
-
Confirm:
|
|
54
|
-
|
|
55
|
-
- public contracts remain compatible unless the release is intentionally breaking
|
|
56
|
-
- schema or config changes are accounted for
|
|
57
|
-
- release notes or changelog entries are updated if the repo expects them
|
|
58
|
-
- dependent services or clients have been considered
|
|
59
|
-
|
|
60
|
-
#### 3. Prepare The Release Artifact
|
|
61
|
-
|
|
62
|
-
Role: **Backend Developer**, **Frontend Developer**
|
|
63
|
-
|
|
64
|
-
Use skill: `commit-code`
|
|
65
|
-
|
|
66
|
-
Depending on the repo, this may mean:
|
|
67
|
-
|
|
68
|
-
- pushing a branch
|
|
69
|
-
- opening a change request
|
|
70
|
-
- creating a version tag
|
|
71
|
-
- updating a release branch
|
|
72
|
-
- handing the change to an automated promotion pipeline
|
|
73
|
-
|
|
74
|
-
Follow the repo-local mechanism instead of assuming a specific Git provider or deployment repo.
|
|
75
|
-
Treat each remote or release-facing action as separately gated approval.
|
|
76
|
-
|
|
77
|
-
#### 4. Trigger Delivery
|
|
78
|
-
|
|
79
|
-
Role: **DevOps Engineer**
|
|
80
|
-
|
|
81
|
-
Use the repository's normal release path:
|
|
82
|
-
|
|
83
|
-
- CI pipeline
|
|
84
|
-
- deployment manifest update (GitOps via Argo CD or Flux v2 — update manifests in the source-of-truth repo, not runtime patching)
|
|
85
|
-
- package publish
|
|
86
|
-
- release promotion job (use Argo Rollouts for canary/blue-green with automated metric analysis when Kubernetes is the target)
|
|
87
|
-
|
|
88
|
-
Capture the release reference that matters locally, such as:
|
|
89
|
-
|
|
90
|
-
- commit SHA
|
|
91
|
-
- build number
|
|
92
|
-
- artifact version
|
|
93
|
-
- deployment revision
|
|
94
|
-
|
|
95
|
-
For SLSA compliance: verify the CI pipeline produces a signed provenance attestation (via Sigstore cosign / GitHub Artifact Attestations) before promoting to production. Admission control (Kyverno or OPA Gatekeeper) should reject images lacking valid signatures at the cluster boundary.
|
|
96
|
-
|
|
97
|
-
Track DORA metrics for this deployment: Deployment Frequency, Lead Time for Changes, and Change Failure Rate. Record these against the release reference.
|
|
98
|
-
|
|
99
|
-
#### 4b. Cloudflare Edge Release (optional)
|
|
100
|
-
|
|
101
|
-
Role: **Cloudflare Engineer**
|
|
102
|
-
|
|
103
|
-
When the target repo deploys via Wrangler (Workers, Pages, or bound services):
|
|
104
|
-
|
|
105
|
-
Use skill: `wrangler`
|
|
106
|
-
|
|
107
|
-
Emit `contracts/schemas/edge-deployment-spec.json` when machine handoff is required.
|
|
108
|
-
|
|
109
|
-
Coordinate with **DevOps Engineer** on secrets, environment names, and promotion order—do not bypass repo CI gates.
|
|
110
|
-
|
|
111
|
-
#### 5. Verify Rollout
|
|
112
|
-
|
|
113
|
-
Role: **DevOps Engineer**, **SRE**
|
|
114
|
-
|
|
115
|
-
After delivery starts:
|
|
116
|
-
|
|
117
|
-
- confirm the rollout reached the intended environment
|
|
118
|
-
- inspect logs and health checks
|
|
119
|
-
- verify critical dependencies are reachable
|
|
120
|
-
- run a focused smoke test on the changed path
|
|
121
|
-
|
|
122
|
-
Prefer repo-local dashboards, manifests, or service discovery entries over guessing direct URLs.
|
|
123
|
-
|
|
124
|
-
For Cloudflare targets, `debug-workers-edge` is not in this step's toolbox: delegate to **Cloudflare Engineer** when edge logs, bindings, or routing fail smoke checks, and record the handoff.
|
|
125
|
-
|
|
126
|
-
#### 6. Monitor And Decide
|
|
127
|
-
|
|
128
|
-
Role: **SRE**
|
|
129
|
-
|
|
130
|
-
For the first few minutes after rollout:
|
|
131
|
-
|
|
132
|
-
- watch error rates
|
|
133
|
-
- watch latency or resource spikes
|
|
134
|
-
- confirm no alerts or regressions appear
|
|
135
|
-
|
|
136
|
-
If problems appear:
|
|
137
|
-
|
|
138
|
-
- pause further promotion
|
|
139
|
-
- compare the current revision with the last known good one
|
|
140
|
-
- follow the repo's rollback or recovery procedure
|
|
141
|
-
|
|
142
|
-
#### 7. Record Outcome
|
|
143
|
-
|
|
144
|
-
Role: **Technical Lead**, **Technical Writer**
|
|
145
|
-
|
|
146
|
-
Capture:
|
|
147
|
-
|
|
148
|
-
- what was released
|
|
149
|
-
- where it was released
|
|
150
|
-
- how it was verified
|
|
151
|
-
- any follow-up work or residual risk
|
|
152
|
-
|
|
153
|
-
### Rollback Guidance
|
|
154
|
-
|
|
155
|
-
If rollback is needed:
|
|
156
|
-
|
|
157
|
-
- use the repo's standard rollback path first
|
|
158
|
-
- avoid manual edits that bypass the normal source of truth
|
|
159
|
-
- verify recovery using the same smoke checks as the forward deploy
|
|
160
|
-
|
|
161
|
-
### Checklist
|
|
162
|
-
|
|
163
|
-
- [ ] pre-release checks completed
|
|
164
|
-
- [ ] release impact reviewed
|
|
165
|
-
- [ ] release artifact prepared through the repo-local path
|
|
166
|
-
- [ ] delivery triggered with explicit approval when required
|
|
167
|
-
- [ ] rollout verified in the target environment
|
|
168
|
-
- [ ] monitoring reviewed for regressions
|
|
169
|
-
- [ ] outcome and residual risk recorded
|
|
170
|
-
|
|
171
|
-
### Related Workflows
|
|
172
|
-
|
|
173
|
-
- [Add New Feature](add-new-feature.md)
|
|
174
|
-
- [Service Review & Release](service-review-release.md)
|
|
175
|
-
- [Troubleshooting](troubleshooting.md)
|
|
176
|
-
- [Hotfix Production](hotfix-production.md)
|
|
177
|
-
|
|
178
|
-
### Related Skills
|
|
179
|
-
|
|
180
|
-
- **review-code**: Review release-impacting implementation changes
|
|
181
|
-
- **commit-code**: Prepare approved changes for delivery
|
|
182
|
-
- **wrangler**: Wrangler CLI for deploying, developing, and managing Workers
|
|
183
|
-
- **debug-workers-edge**: Edge runtime diagnosis when rollout fails
|
|
184
|
-
- **troubleshoot-service**: Investigate failures during validation or rollout
|
|
185
|
-
- **review-service**: Confirm broad release readiness before shipping
|
|
186
|
-
|
|
187
|
-
### Failure Modes
|
|
188
|
-
|
|
189
|
-
- **Deploy without rollback verified**: a release ships but the previous deployment ID is not rollbackable. **Mitigation:** verify the rollback path and the previous artifact before applying the new release; reject the deploy when the path is not confirmed.
|
|
190
|
-
- **Pipeline silently skips a stage**: a CI step is marked optional and bypasses the gate. **Mitigation:** enforce a hard gate (non-zero exit) on every required stage; reject pipelines that allow skip; surface the skip in the deploy record.
|
|
191
|
-
- **Secret in pipeline config**: a token or key is committed to a CI variable file. **Mitigation:** use the platform secret store; run secret scanning in CI; rotate the affected credential on detection.
|
|
192
|
-
- **Region failover not tested**: a multi-region deploy has never exercised the failover. **Mitigation:** schedule a quarterly failover drill; surface the drill result; reject production cutover without a recent passing drill.
|
|
193
|
-
- **Permanent feature flag**: a flag is shipped without a `cleanup_target_date`. **Mitigation:** every flag must carry an ISO 8601 cleanup date; CI must reject the deploy if any flag is permanent.
|
|
194
|
-
|
|
195
|
-
### Output Contracts
|
|
196
|
-
|
|
197
|
-
When this workflow produces a structured handoff, emit:
|
|
198
|
-
|
|
199
|
-
- **`contracts/schemas/deployment-plan.json`** — Required fields: `infrastructure_changes[]`, `config_updates[]`, and `validation_run` proving the deploy succeeded.
|
|
200
|
-
- **`contracts/schemas/implementation-result.json`** — Required fields: `change_summary`, `files_touched[]`, and `validation_run` output for the build pipeline.
|
|
201
|
-
- **`contracts/schemas/incident-report.json`** — When the deploy triggers an anomaly; capture the trace span ids, the threshold, and the recommended action.
|
|
202
|
-
|
|
203
|
-
### Security Guardrails (OWASP ASI)
|
|
204
|
-
|
|
205
|
-
- **ASI03 Identity & Privilege Abuse**: deploy credentials must be scoped to the deploy-owning role; reject deploys that request broader auth scopes than the role's `action-boundaries.yaml` profile.
|
|
206
|
-
- **ASI05 RCE Guard**: never construct deploy scripts, IaC modules, or rollback commands from external content without strict schema validation.
|
|
207
|
-
- **ASI08 Cascading Failures**: when a deploy step fails, surface the failure to the coordinator before allowing the next stage to proceed; never silently absorb a partial failure.
|
|
208
|
-
- **ASI09 Human-Agent Trust Exploitation**: do not present the deploy as "successful" without the smoke test passing; surface the actual `validation_run` evidence honestly.
|
|
1
|
+
---
|
|
2
|
+
description: Generic workflow for building, validating, releasing, and verifying a change
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Build & Deploy Workflow
|
|
6
|
+
|
|
7
|
+
Use this workflow when a change is ready to move from local verification into a shared environment.
|
|
8
|
+
|
|
9
|
+
### When To Use
|
|
10
|
+
|
|
11
|
+
- after a feature or bug fix is complete
|
|
12
|
+
- after code review approval
|
|
13
|
+
- before handing a change to QA or release owners
|
|
14
|
+
|
|
15
|
+
### Prerequisites
|
|
16
|
+
|
|
17
|
+
- local implementation is complete
|
|
18
|
+
- verification commands pass locally
|
|
19
|
+
- release risk is understood
|
|
20
|
+
|
|
21
|
+
### Critical Rules
|
|
22
|
+
|
|
23
|
+
- prefer the repo's official CI/CD path over ad hoc local release steps
|
|
24
|
+
- do not edit generated release metadata by hand unless the repo explicitly expects that
|
|
25
|
+
- do not create a commit until the user explicitly confirms that commit action
|
|
26
|
+
- do not push, create a tag, or publish a release until the user explicitly confirms that specific action
|
|
27
|
+
|
|
28
|
+
### Workflow Steps
|
|
29
|
+
|
|
30
|
+
#### 1. Run Pre-Release Checks
|
|
31
|
+
|
|
32
|
+
Role: **Backend Developer**, **Frontend Developer**
|
|
33
|
+
|
|
34
|
+
From the target repo, run the normal quality gates:
|
|
35
|
+
|
|
36
|
+
- tests
|
|
37
|
+
- lint or static analysis
|
|
38
|
+
- build
|
|
39
|
+
- contract generation if the repo uses it
|
|
40
|
+
|
|
41
|
+
Also check:
|
|
42
|
+
|
|
43
|
+
- no accidental debug code
|
|
44
|
+
- no transient files staged for release
|
|
45
|
+
- no local-only config or credentials leaked into the change
|
|
46
|
+
|
|
47
|
+
#### 2. Review Release Impact
|
|
48
|
+
|
|
49
|
+
Role: **Reviewer**, **Technical Lead**
|
|
50
|
+
|
|
51
|
+
Use skill: `review-code`
|
|
52
|
+
|
|
53
|
+
Confirm:
|
|
54
|
+
|
|
55
|
+
- public contracts remain compatible unless the release is intentionally breaking
|
|
56
|
+
- schema or config changes are accounted for
|
|
57
|
+
- release notes or changelog entries are updated if the repo expects them
|
|
58
|
+
- dependent services or clients have been considered
|
|
59
|
+
|
|
60
|
+
#### 3. Prepare The Release Artifact
|
|
61
|
+
|
|
62
|
+
Role: **Backend Developer**, **Frontend Developer**
|
|
63
|
+
|
|
64
|
+
Use skill: `commit-code`
|
|
65
|
+
|
|
66
|
+
Depending on the repo, this may mean:
|
|
67
|
+
|
|
68
|
+
- pushing a branch
|
|
69
|
+
- opening a change request
|
|
70
|
+
- creating a version tag
|
|
71
|
+
- updating a release branch
|
|
72
|
+
- handing the change to an automated promotion pipeline
|
|
73
|
+
|
|
74
|
+
Follow the repo-local mechanism instead of assuming a specific Git provider or deployment repo.
|
|
75
|
+
Treat each remote or release-facing action as separately gated approval.
|
|
76
|
+
|
|
77
|
+
#### 4. Trigger Delivery
|
|
78
|
+
|
|
79
|
+
Role: **DevOps Engineer**
|
|
80
|
+
|
|
81
|
+
Use the repository's normal release path:
|
|
82
|
+
|
|
83
|
+
- CI pipeline
|
|
84
|
+
- deployment manifest update (GitOps via Argo CD or Flux v2 — update manifests in the source-of-truth repo, not runtime patching)
|
|
85
|
+
- package publish
|
|
86
|
+
- release promotion job (use Argo Rollouts for canary/blue-green with automated metric analysis when Kubernetes is the target)
|
|
87
|
+
|
|
88
|
+
Capture the release reference that matters locally, such as:
|
|
89
|
+
|
|
90
|
+
- commit SHA
|
|
91
|
+
- build number
|
|
92
|
+
- artifact version
|
|
93
|
+
- deployment revision
|
|
94
|
+
|
|
95
|
+
For SLSA compliance: verify the CI pipeline produces a signed provenance attestation (via Sigstore cosign / GitHub Artifact Attestations) before promoting to production. Admission control (Kyverno or OPA Gatekeeper) should reject images lacking valid signatures at the cluster boundary.
|
|
96
|
+
|
|
97
|
+
Track DORA metrics for this deployment: Deployment Frequency, Lead Time for Changes, and Change Failure Rate. Record these against the release reference.
|
|
98
|
+
|
|
99
|
+
#### 4b. Cloudflare Edge Release (optional)
|
|
100
|
+
|
|
101
|
+
Role: **Cloudflare Engineer**
|
|
102
|
+
|
|
103
|
+
When the target repo deploys via Wrangler (Workers, Pages, or bound services):
|
|
104
|
+
|
|
105
|
+
Use skill: `wrangler`
|
|
106
|
+
|
|
107
|
+
Emit `contracts/schemas/edge-deployment-spec.json` when machine handoff is required.
|
|
108
|
+
|
|
109
|
+
Coordinate with **DevOps Engineer** on secrets, environment names, and promotion order—do not bypass repo CI gates.
|
|
110
|
+
|
|
111
|
+
#### 5. Verify Rollout
|
|
112
|
+
|
|
113
|
+
Role: **DevOps Engineer**, **SRE**
|
|
114
|
+
|
|
115
|
+
After delivery starts:
|
|
116
|
+
|
|
117
|
+
- confirm the rollout reached the intended environment
|
|
118
|
+
- inspect logs and health checks
|
|
119
|
+
- verify critical dependencies are reachable
|
|
120
|
+
- run a focused smoke test on the changed path
|
|
121
|
+
|
|
122
|
+
Prefer repo-local dashboards, manifests, or service discovery entries over guessing direct URLs.
|
|
123
|
+
|
|
124
|
+
For Cloudflare targets, `debug-workers-edge` is not in this step's toolbox: delegate to **Cloudflare Engineer** when edge logs, bindings, or routing fail smoke checks, and record the handoff.
|
|
125
|
+
|
|
126
|
+
#### 6. Monitor And Decide
|
|
127
|
+
|
|
128
|
+
Role: **SRE**
|
|
129
|
+
|
|
130
|
+
For the first few minutes after rollout:
|
|
131
|
+
|
|
132
|
+
- watch error rates
|
|
133
|
+
- watch latency or resource spikes
|
|
134
|
+
- confirm no alerts or regressions appear
|
|
135
|
+
|
|
136
|
+
If problems appear:
|
|
137
|
+
|
|
138
|
+
- pause further promotion
|
|
139
|
+
- compare the current revision with the last known good one
|
|
140
|
+
- follow the repo's rollback or recovery procedure
|
|
141
|
+
|
|
142
|
+
#### 7. Record Outcome
|
|
143
|
+
|
|
144
|
+
Role: **Technical Lead**, **Technical Writer**
|
|
145
|
+
|
|
146
|
+
Capture:
|
|
147
|
+
|
|
148
|
+
- what was released
|
|
149
|
+
- where it was released
|
|
150
|
+
- how it was verified
|
|
151
|
+
- any follow-up work or residual risk
|
|
152
|
+
|
|
153
|
+
### Rollback Guidance
|
|
154
|
+
|
|
155
|
+
If rollback is needed:
|
|
156
|
+
|
|
157
|
+
- use the repo's standard rollback path first
|
|
158
|
+
- avoid manual edits that bypass the normal source of truth
|
|
159
|
+
- verify recovery using the same smoke checks as the forward deploy
|
|
160
|
+
|
|
161
|
+
### Checklist
|
|
162
|
+
|
|
163
|
+
- [ ] pre-release checks completed
|
|
164
|
+
- [ ] release impact reviewed
|
|
165
|
+
- [ ] release artifact prepared through the repo-local path
|
|
166
|
+
- [ ] delivery triggered with explicit approval when required
|
|
167
|
+
- [ ] rollout verified in the target environment
|
|
168
|
+
- [ ] monitoring reviewed for regressions
|
|
169
|
+
- [ ] outcome and residual risk recorded
|
|
170
|
+
|
|
171
|
+
### Related Workflows
|
|
172
|
+
|
|
173
|
+
- [Add New Feature](add-new-feature.md)
|
|
174
|
+
- [Service Review & Release](service-review-release.md)
|
|
175
|
+
- [Troubleshooting](troubleshooting.md)
|
|
176
|
+
- [Hotfix Production](hotfix-production.md)
|
|
177
|
+
|
|
178
|
+
### Related Skills
|
|
179
|
+
|
|
180
|
+
- **review-code**: Review release-impacting implementation changes
|
|
181
|
+
- **commit-code**: Prepare approved changes for delivery
|
|
182
|
+
- **wrangler**: Wrangler CLI for deploying, developing, and managing Workers
|
|
183
|
+
- **debug-workers-edge**: Edge runtime diagnosis when rollout fails
|
|
184
|
+
- **troubleshoot-service**: Investigate failures during validation or rollout
|
|
185
|
+
- **review-service**: Confirm broad release readiness before shipping
|
|
186
|
+
|
|
187
|
+
### Failure Modes
|
|
188
|
+
|
|
189
|
+
- **Deploy without rollback verified**: a release ships but the previous deployment ID is not rollbackable. **Mitigation:** verify the rollback path and the previous artifact before applying the new release; reject the deploy when the path is not confirmed.
|
|
190
|
+
- **Pipeline silently skips a stage**: a CI step is marked optional and bypasses the gate. **Mitigation:** enforce a hard gate (non-zero exit) on every required stage; reject pipelines that allow skip; surface the skip in the deploy record.
|
|
191
|
+
- **Secret in pipeline config**: a token or key is committed to a CI variable file. **Mitigation:** use the platform secret store; run secret scanning in CI; rotate the affected credential on detection.
|
|
192
|
+
- **Region failover not tested**: a multi-region deploy has never exercised the failover. **Mitigation:** schedule a quarterly failover drill; surface the drill result; reject production cutover without a recent passing drill.
|
|
193
|
+
- **Permanent feature flag**: a flag is shipped without a `cleanup_target_date`. **Mitigation:** every flag must carry an ISO 8601 cleanup date; CI must reject the deploy if any flag is permanent.
|
|
194
|
+
|
|
195
|
+
### Output Contracts
|
|
196
|
+
|
|
197
|
+
When this workflow produces a structured handoff, emit:
|
|
198
|
+
|
|
199
|
+
- **`contracts/schemas/deployment-plan.json`** — Required fields: `infrastructure_changes[]`, `config_updates[]`, and `validation_run` proving the deploy succeeded.
|
|
200
|
+
- **`contracts/schemas/implementation-result.json`** — Required fields: `change_summary`, `files_touched[]`, and `validation_run` output for the build pipeline.
|
|
201
|
+
- **`contracts/schemas/incident-report.json`** — When the deploy triggers an anomaly; capture the trace span ids, the threshold, and the recommended action.
|
|
202
|
+
|
|
203
|
+
### Security Guardrails (OWASP ASI)
|
|
204
|
+
|
|
205
|
+
- **ASI03 Identity & Privilege Abuse**: deploy credentials must be scoped to the deploy-owning role; reject deploys that request broader auth scopes than the role's `action-boundaries.yaml` profile.
|
|
206
|
+
- **ASI05 RCE Guard**: never construct deploy scripts, IaC modules, or rollback commands from external content without strict schema validation.
|
|
207
|
+
- **ASI08 Cascading Failures**: when a deploy step fails, surface the failure to the coordinator before allowing the next stage to proceed; never silently absorb a partial failure.
|
|
208
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present the deploy as "successful" without the smoke test passing; surface the actual `validation_run` evidence honestly.
|