@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,149 +1,149 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Closed-loop 2027 Agentic SWE feature delivery workflow enforcing spec freeze, Red-Green TDD, sandbox execution, adversarial review, and human-in-the-loop approval.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Feature Delivery Workflow
|
|
6
|
-
|
|
7
|
-
Use this workflow for end-to-end engineering of new features or non-trivial enhancements requiring verified contracts, strict Red-Green TDD, isolated sandbox execution, and adversarial review.
|
|
8
|
-
|
|
9
|
-
### Prerequisites
|
|
10
|
-
|
|
11
|
-
- A drafted feature ticket conforms to `core/contracts/schemas/feature-ticket.json`
|
|
12
|
-
- Technical architecture boundaries and failure domains are identified
|
|
13
|
-
- Isolated sandbox execution environment (container or MicroVM) is available
|
|
14
|
-
- Target repository branch and baseline automated test suites pass cleanly
|
|
15
|
-
|
|
16
|
-
### Workflow Steps
|
|
17
|
-
|
|
18
|
-
#### 1. Spec Review and Contract Freeze
|
|
19
|
-
|
|
20
|
-
Role: **Solution Architect**, **Technical Lead**
|
|
21
|
-
|
|
22
|
-
Use skill: `plan-technical-delivery`
|
|
23
|
-
|
|
24
|
-
Review and freeze the functional specifications and interface boundaries before authoring any code:
|
|
25
|
-
|
|
26
|
-
- Validate acceptance criteria in `feature-ticket.json` for deterministic testability.
|
|
27
|
-
- If API endpoints, event schemas, or database schemas are altered, define and freeze `api-contract-spec.json` and `schema-migration.json`.
|
|
28
|
-
- Perform initial blast radius assessment (`impact_tier`, `failure_domains`, downstream consumer dependencies).
|
|
29
|
-
- Mark contract status as frozen. Unfreezing requires formal change control.
|
|
30
|
-
|
|
31
|
-
#### 2. Test Authoring (Red Stage)
|
|
32
|
-
|
|
33
|
-
Role: **QA Engineer**, **Backend Developer**
|
|
34
|
-
|
|
35
|
-
Use skill: `write-tests`
|
|
36
|
-
|
|
37
|
-
Author automated verification tests strictly against the frozen specification prior to implementation:
|
|
38
|
-
|
|
39
|
-
- Author unit, integration, and contract test cases covering all acceptance criteria scenarios and edge cases.
|
|
40
|
-
- Implement property-based tests for algorithmic or data-transformation boundaries.
|
|
41
|
-
- Run the newly authored tests in the local environment and verify that all new assertions FAIL cleanly with expected error messages (Red Gate).
|
|
42
|
-
- Verify that failing tests do not fail due to syntax or environmental errors, but exclusively due to missing implementation.
|
|
43
|
-
|
|
44
|
-
#### 3. Implementation (Green Stage)
|
|
45
|
-
|
|
46
|
-
Role: **Backend Developer**, **Frontend Developer**
|
|
47
|
-
|
|
48
|
-
Use skill: `commit-code`
|
|
49
|
-
|
|
50
|
-
Implement the minimal deterministic code necessary to satisfy the failing tests:
|
|
51
|
-
|
|
52
|
-
- Write targeted business logic and component code until all Red tests transition to PASS (Green Gate).
|
|
53
|
-
- Follow anti-vibe-slop principles: avoid redundant wrappers, unneeded dependencies, or hallucinated edge-case workarounds.
|
|
54
|
-
- Perform safe refactoring while ensuring all tests continue passing without regression.
|
|
55
|
-
- Maintain contract immutability: do not alter frozen schemas to accommodate convenient shortcuts.
|
|
56
|
-
|
|
57
|
-
#### 4. Sandbox Execution and Mutation Verification
|
|
58
|
-
|
|
59
|
-
Role: **QA Engineer**, **Technical Lead**
|
|
60
|
-
|
|
61
|
-
Use skill: `agent-quality-gate`
|
|
62
|
-
|
|
63
|
-
Execute comprehensive verification in an isolated execution sandbox:
|
|
64
|
-
|
|
65
|
-
- Run the full test suite in an isolated environment (`tier_0_ephemeral_container` or `tier_1_isolated_microvm`) to guarantee environment independence and prevent secret leakage.
|
|
66
|
-
- Execute mutation testing (e.g., Stryker, mutmut) against the modified business logic.
|
|
67
|
-
- Enforce the mutation kill rate threshold (minimum 75% mutants killed) to eliminate tautological or dummy test suites.
|
|
68
|
-
- Emit `test-report.json` capturing execution telemetry, passed scenarios, and mutation scores.
|
|
69
|
-
|
|
70
|
-
#### 5. Adversarial Code Review
|
|
71
|
-
|
|
72
|
-
Role: **Reviewer**, **Security Engineer**
|
|
73
|
-
|
|
74
|
-
Use skill: `review-code`
|
|
75
|
-
|
|
76
|
-
Conduct multi-dimensional adversarial inspection of the implementation and test proofs:
|
|
77
|
-
|
|
78
|
-
- Review code diff against anti-vibe-slop heuristics: verify proper error handling, resource lifecycle management, and boundary validations.
|
|
79
|
-
- Audit for concurrency hazards, race conditions, memory leaks, and N+1 query patterns.
|
|
80
|
-
- Perform OWASP ASI security audit: inspect for ASI01 (Goal Hijacking), ASI04 (Supply Chain / Dependency Tampering), and ASI05 (Unexpected Code Execution).
|
|
81
|
-
- Emit findings into `code-review-finding.json` categorized as Blocking, Important, or Follow-Up.
|
|
82
|
-
|
|
83
|
-
#### 6. HITL Approval and Delivery Gate
|
|
84
|
-
|
|
85
|
-
Role: **Technical Lead**, **Product Manager**
|
|
86
|
-
|
|
87
|
-
Use skill: `meeting-review`
|
|
88
|
-
|
|
89
|
-
Complete human-in-the-loop sign-off and assemble the release package:
|
|
90
|
-
|
|
91
|
-
- Review verification evidence: test execution proof, mutation score (>= 75%), static analysis report, and adversarial review sign-off.
|
|
92
|
-
- Verify that blast radius remains bounded within the initial assessment.
|
|
93
|
-
- Confirm explicit human approval for release branch staging or pull request creation.
|
|
94
|
-
- Assemble and emit `pull-request-spec.json` documenting PR metadata, test reports, touched files, and reviewer attestations.
|
|
95
|
-
|
|
96
|
-
### Checklist
|
|
97
|
-
|
|
98
|
-
- [ ] Functional specifications and interface contracts frozen in `feature-ticket.json` and `api-contract-spec.json`
|
|
99
|
-
- [ ] Initial blast radius and failure domains documented
|
|
100
|
-
- [ ] Automated tests authored and verified failing deterministically in Red stage
|
|
101
|
-
- [ ] Minimal implementation completed and verified passing in Green stage
|
|
102
|
-
- [ ] Tests and mutation analysis executed in isolated sandbox tier
|
|
103
|
-
- [ ] Mutation kill rate meets or exceeds the 75% threshold
|
|
104
|
-
- [ ] Adversarial review completed covering anti-vibe-slop and OWASP ASI guardrails
|
|
105
|
-
- [ ] Code review findings classified as Blocking, Important, or Follow-Up with all Blocking items resolved
|
|
106
|
-
- [ ] Human-in-the-loop architectural and product sign-off obtained
|
|
107
|
-
- [ ] `pull-request-spec.json` assembled and validated with full execution proofs
|
|
108
|
-
|
|
109
|
-
### Related Workflows
|
|
110
|
-
|
|
111
|
-
- [Add New Feature](add-new-feature.md)
|
|
112
|
-
- [QA Validation](qa-validation.md)
|
|
113
|
-
- [Code Review](code-review.md)
|
|
114
|
-
- [Build & Deploy](build-deploy.md)
|
|
115
|
-
- [Troubleshooting](troubleshooting.md)
|
|
116
|
-
|
|
117
|
-
### Related Skills
|
|
118
|
-
|
|
119
|
-
- **plan-technical-delivery**: Decompose feature tickets into verifiable milestone gates
|
|
120
|
-
- **write-tests**: Author independent Red tests and property-based verification suites
|
|
121
|
-
- **commit-code**: Stage verified changes under explicit user confirmation
|
|
122
|
-
- **agent-quality-gate**: Execute test suites and mutation testing within isolated sandboxes
|
|
123
|
-
- **review-code**: Adversarial multi-dimensional inspection against vibe slop and ASI vulnerabilities
|
|
124
|
-
- **meeting-review**: Human-in-the-loop review and architectural sign-off
|
|
125
|
-
|
|
126
|
-
### Failure Modes
|
|
127
|
-
|
|
128
|
-
- **Implementation precedes Red test**: developer writes code before tests fail, leading to self-fulfilling or tautological tests. **Mitigation:** enforce CI check or execution log proving test suite failed prior to implementation commits.
|
|
129
|
-
- **Spec drift mid-flight**: requirements change during implementation without unfreezing contracts. **Mitigation:** immediately halt implementation, return to Step 1, and re-freeze updated contracts with stakeholder sign-off.
|
|
130
|
-
- **Mock-only verification**: tests pass with mocks but fail against real services. **Mitigation:** execute integration tests against ephemeral service containers in Step 4.
|
|
131
|
-
- **Low mutation score**: tests provide high line coverage but fail to detect injected faults (<75% mutation kill rate). **Mitigation:** block Step 4 gate until surviving mutants are killed with assertions.
|
|
132
|
-
- **Bypassed HITL gate**: automated release triggers without human approval. **Mitigation:** enforce strict policy boundary requiring manual confirmation before PR merge or deployment.
|
|
133
|
-
|
|
134
|
-
### Output Contracts
|
|
135
|
-
|
|
136
|
-
When this workflow produces structured handoffs, emit:
|
|
137
|
-
|
|
138
|
-
- **`contracts/schemas/feature-ticket.json`** — Scoped requirements and frozen acceptance criteria.
|
|
139
|
-
- **`contracts/schemas/api-contract-spec.json`** — Frozen endpoint or schema definitions when interfaces change.
|
|
140
|
-
- **`contracts/schemas/test-report.json`** — Execution proof, sandbox tier, and mutation test scores.
|
|
141
|
-
- **`contracts/schemas/code-review-finding.json`** — Prioritized findings from adversarial code review.
|
|
142
|
-
- **`contracts/schemas/pull-request-spec.json`** — Complete pull request specification and sign-off package.
|
|
143
|
-
|
|
144
|
-
### Security Guardrails (OWASP ASI)
|
|
145
|
-
|
|
146
|
-
- **ASI01 Goal Hijacking**: Spec freeze and contract validation prevent prompt injection from overriding core feature requirements.
|
|
147
|
-
- **ASI04 Supply Chain Abuse**: All third-party dependencies introduced must undergo vulnerability reachability checks prior to sandbox execution.
|
|
148
|
-
- **ASI05 Unexpected Execution**: Code execution and test runs are strictly restricted to ephemeral sandbox tiers; no uncontained host execution is permitted.
|
|
149
|
-
- **ASI09 Human-Agent Trust Exploitation**: Mathematical proof of test execution and mutation scores is required; agent claims of completion without artifact evidence are rejected.
|
|
1
|
+
---
|
|
2
|
+
description: Closed-loop 2027 Agentic SWE feature delivery workflow enforcing spec freeze, Red-Green TDD, sandbox execution, adversarial review, and human-in-the-loop approval.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Feature Delivery Workflow
|
|
6
|
+
|
|
7
|
+
Use this workflow for end-to-end engineering of new features or non-trivial enhancements requiring verified contracts, strict Red-Green TDD, isolated sandbox execution, and adversarial review.
|
|
8
|
+
|
|
9
|
+
### Prerequisites
|
|
10
|
+
|
|
11
|
+
- A drafted feature ticket conforms to `core/contracts/schemas/feature-ticket.json`
|
|
12
|
+
- Technical architecture boundaries and failure domains are identified
|
|
13
|
+
- Isolated sandbox execution environment (container or MicroVM) is available
|
|
14
|
+
- Target repository branch and baseline automated test suites pass cleanly
|
|
15
|
+
|
|
16
|
+
### Workflow Steps
|
|
17
|
+
|
|
18
|
+
#### 1. Spec Review and Contract Freeze
|
|
19
|
+
|
|
20
|
+
Role: **Solution Architect**, **Technical Lead**
|
|
21
|
+
|
|
22
|
+
Use skill: `plan-technical-delivery`
|
|
23
|
+
|
|
24
|
+
Review and freeze the functional specifications and interface boundaries before authoring any code:
|
|
25
|
+
|
|
26
|
+
- Validate acceptance criteria in `feature-ticket.json` for deterministic testability.
|
|
27
|
+
- If API endpoints, event schemas, or database schemas are altered, define and freeze `api-contract-spec.json` and `schema-migration.json`.
|
|
28
|
+
- Perform initial blast radius assessment (`impact_tier`, `failure_domains`, downstream consumer dependencies).
|
|
29
|
+
- Mark contract status as frozen. Unfreezing requires formal change control.
|
|
30
|
+
|
|
31
|
+
#### 2. Test Authoring (Red Stage)
|
|
32
|
+
|
|
33
|
+
Role: **QA Engineer**, **Backend Developer**
|
|
34
|
+
|
|
35
|
+
Use skill: `write-tests`
|
|
36
|
+
|
|
37
|
+
Author automated verification tests strictly against the frozen specification prior to implementation:
|
|
38
|
+
|
|
39
|
+
- Author unit, integration, and contract test cases covering all acceptance criteria scenarios and edge cases.
|
|
40
|
+
- Implement property-based tests for algorithmic or data-transformation boundaries.
|
|
41
|
+
- Run the newly authored tests in the local environment and verify that all new assertions FAIL cleanly with expected error messages (Red Gate).
|
|
42
|
+
- Verify that failing tests do not fail due to syntax or environmental errors, but exclusively due to missing implementation.
|
|
43
|
+
|
|
44
|
+
#### 3. Implementation (Green Stage)
|
|
45
|
+
|
|
46
|
+
Role: **Backend Developer**, **Frontend Developer**
|
|
47
|
+
|
|
48
|
+
Use skill: `commit-code`
|
|
49
|
+
|
|
50
|
+
Implement the minimal deterministic code necessary to satisfy the failing tests:
|
|
51
|
+
|
|
52
|
+
- Write targeted business logic and component code until all Red tests transition to PASS (Green Gate).
|
|
53
|
+
- Follow anti-vibe-slop principles: avoid redundant wrappers, unneeded dependencies, or hallucinated edge-case workarounds.
|
|
54
|
+
- Perform safe refactoring while ensuring all tests continue passing without regression.
|
|
55
|
+
- Maintain contract immutability: do not alter frozen schemas to accommodate convenient shortcuts.
|
|
56
|
+
|
|
57
|
+
#### 4. Sandbox Execution and Mutation Verification
|
|
58
|
+
|
|
59
|
+
Role: **QA Engineer**, **Technical Lead**
|
|
60
|
+
|
|
61
|
+
Use skill: `agent-quality-gate`
|
|
62
|
+
|
|
63
|
+
Execute comprehensive verification in an isolated execution sandbox:
|
|
64
|
+
|
|
65
|
+
- Run the full test suite in an isolated environment (`tier_0_ephemeral_container` or `tier_1_isolated_microvm`) to guarantee environment independence and prevent secret leakage.
|
|
66
|
+
- Execute mutation testing (e.g., Stryker, mutmut) against the modified business logic.
|
|
67
|
+
- Enforce the mutation kill rate threshold (minimum 75% mutants killed) to eliminate tautological or dummy test suites.
|
|
68
|
+
- Emit `test-report.json` capturing execution telemetry, passed scenarios, and mutation scores.
|
|
69
|
+
|
|
70
|
+
#### 5. Adversarial Code Review
|
|
71
|
+
|
|
72
|
+
Role: **Reviewer**, **Security Engineer**
|
|
73
|
+
|
|
74
|
+
Use skill: `review-code`
|
|
75
|
+
|
|
76
|
+
Conduct multi-dimensional adversarial inspection of the implementation and test proofs:
|
|
77
|
+
|
|
78
|
+
- Review code diff against anti-vibe-slop heuristics: verify proper error handling, resource lifecycle management, and boundary validations.
|
|
79
|
+
- Audit for concurrency hazards, race conditions, memory leaks, and N+1 query patterns.
|
|
80
|
+
- Perform OWASP ASI security audit: inspect for ASI01 (Goal Hijacking), ASI04 (Supply Chain / Dependency Tampering), and ASI05 (Unexpected Code Execution).
|
|
81
|
+
- Emit findings into `code-review-finding.json` categorized as Blocking, Important, or Follow-Up.
|
|
82
|
+
|
|
83
|
+
#### 6. HITL Approval and Delivery Gate
|
|
84
|
+
|
|
85
|
+
Role: **Technical Lead**, **Product Manager**
|
|
86
|
+
|
|
87
|
+
Use skill: `meeting-review`
|
|
88
|
+
|
|
89
|
+
Complete human-in-the-loop sign-off and assemble the release package:
|
|
90
|
+
|
|
91
|
+
- Review verification evidence: test execution proof, mutation score (>= 75%), static analysis report, and adversarial review sign-off.
|
|
92
|
+
- Verify that blast radius remains bounded within the initial assessment.
|
|
93
|
+
- Confirm explicit human approval for release branch staging or pull request creation.
|
|
94
|
+
- Assemble and emit `pull-request-spec.json` documenting PR metadata, test reports, touched files, and reviewer attestations.
|
|
95
|
+
|
|
96
|
+
### Checklist
|
|
97
|
+
|
|
98
|
+
- [ ] Functional specifications and interface contracts frozen in `feature-ticket.json` and `api-contract-spec.json`
|
|
99
|
+
- [ ] Initial blast radius and failure domains documented
|
|
100
|
+
- [ ] Automated tests authored and verified failing deterministically in Red stage
|
|
101
|
+
- [ ] Minimal implementation completed and verified passing in Green stage
|
|
102
|
+
- [ ] Tests and mutation analysis executed in isolated sandbox tier
|
|
103
|
+
- [ ] Mutation kill rate meets or exceeds the 75% threshold
|
|
104
|
+
- [ ] Adversarial review completed covering anti-vibe-slop and OWASP ASI guardrails
|
|
105
|
+
- [ ] Code review findings classified as Blocking, Important, or Follow-Up with all Blocking items resolved
|
|
106
|
+
- [ ] Human-in-the-loop architectural and product sign-off obtained
|
|
107
|
+
- [ ] `pull-request-spec.json` assembled and validated with full execution proofs
|
|
108
|
+
|
|
109
|
+
### Related Workflows
|
|
110
|
+
|
|
111
|
+
- [Add New Feature](add-new-feature.md)
|
|
112
|
+
- [QA Validation](qa-validation.md)
|
|
113
|
+
- [Code Review](code-review.md)
|
|
114
|
+
- [Build & Deploy](build-deploy.md)
|
|
115
|
+
- [Troubleshooting](troubleshooting.md)
|
|
116
|
+
|
|
117
|
+
### Related Skills
|
|
118
|
+
|
|
119
|
+
- **plan-technical-delivery**: Decompose feature tickets into verifiable milestone gates
|
|
120
|
+
- **write-tests**: Author independent Red tests and property-based verification suites
|
|
121
|
+
- **commit-code**: Stage verified changes under explicit user confirmation
|
|
122
|
+
- **agent-quality-gate**: Execute test suites and mutation testing within isolated sandboxes
|
|
123
|
+
- **review-code**: Adversarial multi-dimensional inspection against vibe slop and ASI vulnerabilities
|
|
124
|
+
- **meeting-review**: Human-in-the-loop review and architectural sign-off
|
|
125
|
+
|
|
126
|
+
### Failure Modes
|
|
127
|
+
|
|
128
|
+
- **Implementation precedes Red test**: developer writes code before tests fail, leading to self-fulfilling or tautological tests. **Mitigation:** enforce CI check or execution log proving test suite failed prior to implementation commits.
|
|
129
|
+
- **Spec drift mid-flight**: requirements change during implementation without unfreezing contracts. **Mitigation:** immediately halt implementation, return to Step 1, and re-freeze updated contracts with stakeholder sign-off.
|
|
130
|
+
- **Mock-only verification**: tests pass with mocks but fail against real services. **Mitigation:** execute integration tests against ephemeral service containers in Step 4.
|
|
131
|
+
- **Low mutation score**: tests provide high line coverage but fail to detect injected faults (<75% mutation kill rate). **Mitigation:** block Step 4 gate until surviving mutants are killed with assertions.
|
|
132
|
+
- **Bypassed HITL gate**: automated release triggers without human approval. **Mitigation:** enforce strict policy boundary requiring manual confirmation before PR merge or deployment.
|
|
133
|
+
|
|
134
|
+
### Output Contracts
|
|
135
|
+
|
|
136
|
+
When this workflow produces structured handoffs, emit:
|
|
137
|
+
|
|
138
|
+
- **`contracts/schemas/feature-ticket.json`** — Scoped requirements and frozen acceptance criteria.
|
|
139
|
+
- **`contracts/schemas/api-contract-spec.json`** — Frozen endpoint or schema definitions when interfaces change.
|
|
140
|
+
- **`contracts/schemas/test-report.json`** — Execution proof, sandbox tier, and mutation test scores.
|
|
141
|
+
- **`contracts/schemas/code-review-finding.json`** — Prioritized findings from adversarial code review.
|
|
142
|
+
- **`contracts/schemas/pull-request-spec.json`** — Complete pull request specification and sign-off package.
|
|
143
|
+
|
|
144
|
+
### Security Guardrails (OWASP ASI)
|
|
145
|
+
|
|
146
|
+
- **ASI01 Goal Hijacking**: Spec freeze and contract validation prevent prompt injection from overriding core feature requirements.
|
|
147
|
+
- **ASI04 Supply Chain Abuse**: All third-party dependencies introduced must undergo vulnerability reachability checks prior to sandbox execution.
|
|
148
|
+
- **ASI05 Unexpected Execution**: Code execution and test runs are strictly restricted to ephemeral sandbox tiers; no uncontained host execution is permitted.
|
|
149
|
+
- **ASI09 Human-Agent Trust Exploitation**: Mathematical proof of test execution and mutation scores is required; agent claims of completion without artifact evidence are rejected.
|
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Emergency workflow for hotfixing production issues with minimal blast radius
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## Hotfix Production Workflow
|
|
6
|
-
|
|
7
|
-
Use this workflow only for true production emergencies where delaying the fix is riskier than taking the shortest safe path to recovery.
|
|
8
|
-
|
|
9
|
-
### When To Use
|
|
10
|
-
|
|
11
|
-
- production is unavailable or severely degraded
|
|
12
|
-
- a critical security issue needs immediate mitigation
|
|
13
|
-
- there is active data corruption or a strong risk of data loss
|
|
14
|
-
- the incident has meaningful customer impact
|
|
15
|
-
|
|
16
|
-
### Prerequisites
|
|
17
|
-
|
|
18
|
-
- the incident is real and scoped enough to act on
|
|
19
|
-
- stakeholders or on-call owners are aware
|
|
20
|
-
- the minimal safe fix or rollback path is understood
|
|
21
|
-
|
|
22
|
-
### Workflow Steps
|
|
23
|
-
|
|
24
|
-
#### 1. Confirm Severity
|
|
25
|
-
|
|
26
|
-
Role: **SRE**, **Technical Lead**
|
|
27
|
-
|
|
28
|
-
Ask:
|
|
29
|
-
|
|
30
|
-
- is production impact active right now?
|
|
31
|
-
- is this a customer-visible outage or severe degradation?
|
|
32
|
-
- can the issue be mitigated by rollback or configuration first?
|
|
33
|
-
|
|
34
|
-
If the answer is no, use the normal delivery workflow instead.
|
|
35
|
-
|
|
36
|
-
#### 2. Contain The Blast Radius
|
|
37
|
-
|
|
38
|
-
Role: **SRE**, **DevOps Engineer**
|
|
39
|
-
|
|
40
|
-
Choose the least risky mitigation available first:
|
|
41
|
-
|
|
42
|
-
- **disable via OpenFeature flag first** (takes seconds, no deployment) — if the failing path is behind a feature flag, disable it immediately before assessing rollback vs hotfix
|
|
43
|
-
- rollback to the last known good release (in Argo CD: `argo rollouts abort` for progressive delivery; in GitOps: revert the manifest commit)
|
|
44
|
-
- disable the failing path with config or a feature flag
|
|
45
|
-
- isolate or scale down only the affected workload
|
|
46
|
-
- route traffic away from the failing dependency when the platform allows it
|
|
47
|
-
|
|
48
|
-
Record the **DORA MTTR clock start** at the moment production impact is confirmed — this is used for post-incident DORA reporting.
|
|
49
|
-
|
|
50
|
-
Use the repo's approved production control path.
|
|
51
|
-
|
|
52
|
-
#### 3. Identify The Smallest Valid Fix
|
|
53
|
-
|
|
54
|
-
Role: **Backend Developer**, **Frontend Developer**
|
|
55
|
-
|
|
56
|
-
Use skill: `troubleshoot-service`
|
|
57
|
-
|
|
58
|
-
**Distributed-trace-first**: retrieve the trace for the failing request before reading raw logs. The span tree immediately shows which service and which layer failed, cutting diagnosis time significantly.
|
|
59
|
-
|
|
60
|
-
Rules:
|
|
61
|
-
|
|
62
|
-
- fix only the incident, not adjacent cleanup
|
|
63
|
-
- avoid opportunistic refactors
|
|
64
|
-
- prefer a reversible change
|
|
65
|
-
- keep the delta as small as possible
|
|
66
|
-
|
|
67
|
-
#### 4. Verify The Fix Quickly
|
|
68
|
-
|
|
69
|
-
Role: **Backend Developer**, **Reviewer**
|
|
70
|
-
|
|
71
|
-
Before shipping:
|
|
72
|
-
|
|
73
|
-
- run the narrowest useful test set first
|
|
74
|
-
- build the changed component
|
|
75
|
-
- exercise the failing path locally or in a lower environment if time allows
|
|
76
|
-
- confirm the fix does not obviously expand blast radius
|
|
77
|
-
|
|
78
|
-
Use skill: `review-code`
|
|
79
|
-
|
|
80
|
-
#### 5. Ship Through The Normal Emergency Path
|
|
81
|
-
|
|
82
|
-
Role: **Backend Developer**, **DevOps Engineer**
|
|
83
|
-
|
|
84
|
-
Use skill: `commit-code`
|
|
85
|
-
|
|
86
|
-
Deliver using the repo's approved emergency release path:
|
|
87
|
-
|
|
88
|
-
- hotfix branch
|
|
89
|
-
- release branch
|
|
90
|
-
- rollback deployment
|
|
91
|
-
- emergency config push
|
|
92
|
-
|
|
93
|
-
Do not create a commit until the user explicitly confirms that commit action.
|
|
94
|
-
Do not push, create a tag, or publish a release until the user explicitly confirms that specific action.
|
|
95
|
-
|
|
96
|
-
#### 6. Monitor Recovery
|
|
97
|
-
|
|
98
|
-
Role: **SRE**, **DevOps Engineer**
|
|
99
|
-
|
|
100
|
-
After deployment:
|
|
101
|
-
|
|
102
|
-
- watch service health and key alerts
|
|
103
|
-
- verify the affected path behaves correctly
|
|
104
|
-
- compare error rate and latency against the incident window
|
|
105
|
-
- keep monitoring until the system is stable
|
|
106
|
-
|
|
107
|
-
#### 7. Close The Incident Properly
|
|
108
|
-
|
|
109
|
-
Role: **Technical Lead**, **Technical Writer**
|
|
110
|
-
|
|
111
|
-
After stabilization:
|
|
112
|
-
|
|
113
|
-
- merge or reconcile the hotfix back into the main development line
|
|
114
|
-
- update changelog or release notes if the repo expects them
|
|
115
|
-
- capture an incident summary and preventive follow-up
|
|
116
|
-
|
|
117
|
-
### Post-Incident Follow-Up
|
|
118
|
-
|
|
119
|
-
Record:
|
|
120
|
-
|
|
121
|
-
- root cause
|
|
122
|
-
- mitigation used
|
|
123
|
-
- final fix
|
|
124
|
-
- missing tests, monitoring, or process gaps
|
|
125
|
-
|
|
126
|
-
Schedule deeper cleanup separately from the hotfix itself.
|
|
127
|
-
|
|
128
|
-
### Checklist
|
|
129
|
-
|
|
130
|
-
- [ ] severity and production impact confirmed
|
|
131
|
-
- [ ] blast radius contained with the least risky mitigation
|
|
132
|
-
- [ ] smallest valid fix identified
|
|
133
|
-
- [ ] narrow verification completed
|
|
134
|
-
- [ ] emergency delivery path followed with explicit approvals
|
|
135
|
-
- [ ] recovery monitored until stable
|
|
136
|
-
- [ ] incident summary and preventive follow-up captured
|
|
137
|
-
|
|
138
|
-
### Related Workflows
|
|
139
|
-
|
|
140
|
-
- [Troubleshooting](troubleshooting.md)
|
|
141
|
-
- [Service Review & Release](service-review-release.md)
|
|
142
|
-
- [Build & Deploy](build-deploy.md)
|
|
143
|
-
|
|
144
|
-
### Related Skills
|
|
145
|
-
|
|
146
|
-
- **troubleshoot-service**: Isolate the incident cause quickly
|
|
147
|
-
- **review-code**: Review risky hotfix changes before shipping
|
|
148
|
-
- **commit-code**: Prepare approved hotfix changes for delivery
|
|
149
|
-
- **meeting-review**: Escalate cross-role incident decisions
|
|
150
|
-
|
|
151
|
-
### Failure Modes
|
|
152
|
-
|
|
153
|
-
- **Hotfix without rollback verified**: an urgent fix ships but the previous deployment is not rollbackable. **Mitigation:** verify the rollback path before the hotfix; reject the deploy when the path is not confirmed.
|
|
154
|
-
- **Hotfix bypasses review**: an urgent fix is merged without reviewer sign-off. **Mitigation:** pre-authorize a small responder set; require at least one reviewer outside the responder set to sign off; surface the bypass in the postmortem.
|
|
155
|
-
- **Permanent feature flag**: a hotfix flag ships without a `cleanup_target_date`. **Mitigation:** every flag must carry an ISO 8601 cleanup date; CI must reject the hotfix if any flag is permanent.
|
|
156
|
-
- **Customer-impact metric not captured**: a hotfix closes the incident without recording the customer impact. **Mitigation:** capture DORA Change Failure Rate, MTTR, and customer impact in the incident report before the incident is closed.
|
|
157
|
-
- **Postmortem skipped**: the hotfix is shipped but the root cause is never recorded. **Mitigation:** require a postmortem in `contracts/schemas/incident-report.json` within 72 hours of the hotfix.
|
|
158
|
-
|
|
159
|
-
### Output Contracts
|
|
160
|
-
|
|
161
|
-
When this workflow produces a structured handoff, emit:
|
|
162
|
-
|
|
163
|
-
- **`contracts/schemas/incident-report.json`** — Required fields: symptom, suspected layer, checks performed, root cause, fix applied, verification result, and follow-up items.
|
|
164
|
-
- **`contracts/schemas/deployment-plan.json`** — For the hotfix deploy; capture infrastructure changes, config updates, and validation runs.
|
|
165
|
-
- **`contracts/schemas/implementation-result.json`** — For the hotfix code change; capture change summary, files touched, and the validation run.
|
|
166
|
-
|
|
167
|
-
### Security Guardrails (OWASP ASI)
|
|
168
|
-
|
|
169
|
-
- **ASI03 Identity & Privilege Abuse**: hotfix credentials must be scoped to the responder set; reject deploys that request broader scopes than the role's `action-boundaries.yaml` profile allows.
|
|
170
|
-
- **ASI05 RCE Guard**: never construct hotfix scripts or rollback commands from external content without strict schema validation.
|
|
171
|
-
- **ASI07 Inter-Agent Communication**: the hotfix is consumed by incident response and release roles; emit structured `incident-report.json` and `deployment-plan.json` so each role can validate.
|
|
172
|
-
- **ASI09 Human-Agent Trust Exploitation**: do not present the hotfix as "resolved" without end-to-end verification and customer impact evidence; surface the residual risk honestly.
|
|
1
|
+
---
|
|
2
|
+
description: Emergency workflow for hotfixing production issues with minimal blast radius
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Hotfix Production Workflow
|
|
6
|
+
|
|
7
|
+
Use this workflow only for true production emergencies where delaying the fix is riskier than taking the shortest safe path to recovery.
|
|
8
|
+
|
|
9
|
+
### When To Use
|
|
10
|
+
|
|
11
|
+
- production is unavailable or severely degraded
|
|
12
|
+
- a critical security issue needs immediate mitigation
|
|
13
|
+
- there is active data corruption or a strong risk of data loss
|
|
14
|
+
- the incident has meaningful customer impact
|
|
15
|
+
|
|
16
|
+
### Prerequisites
|
|
17
|
+
|
|
18
|
+
- the incident is real and scoped enough to act on
|
|
19
|
+
- stakeholders or on-call owners are aware
|
|
20
|
+
- the minimal safe fix or rollback path is understood
|
|
21
|
+
|
|
22
|
+
### Workflow Steps
|
|
23
|
+
|
|
24
|
+
#### 1. Confirm Severity
|
|
25
|
+
|
|
26
|
+
Role: **SRE**, **Technical Lead**
|
|
27
|
+
|
|
28
|
+
Ask:
|
|
29
|
+
|
|
30
|
+
- is production impact active right now?
|
|
31
|
+
- is this a customer-visible outage or severe degradation?
|
|
32
|
+
- can the issue be mitigated by rollback or configuration first?
|
|
33
|
+
|
|
34
|
+
If the answer is no, use the normal delivery workflow instead.
|
|
35
|
+
|
|
36
|
+
#### 2. Contain The Blast Radius
|
|
37
|
+
|
|
38
|
+
Role: **SRE**, **DevOps Engineer**
|
|
39
|
+
|
|
40
|
+
Choose the least risky mitigation available first:
|
|
41
|
+
|
|
42
|
+
- **disable via OpenFeature flag first** (takes seconds, no deployment) — if the failing path is behind a feature flag, disable it immediately before assessing rollback vs hotfix
|
|
43
|
+
- rollback to the last known good release (in Argo CD: `argo rollouts abort` for progressive delivery; in GitOps: revert the manifest commit)
|
|
44
|
+
- disable the failing path with config or a feature flag
|
|
45
|
+
- isolate or scale down only the affected workload
|
|
46
|
+
- route traffic away from the failing dependency when the platform allows it
|
|
47
|
+
|
|
48
|
+
Record the **DORA MTTR clock start** at the moment production impact is confirmed — this is used for post-incident DORA reporting.
|
|
49
|
+
|
|
50
|
+
Use the repo's approved production control path.
|
|
51
|
+
|
|
52
|
+
#### 3. Identify The Smallest Valid Fix
|
|
53
|
+
|
|
54
|
+
Role: **Backend Developer**, **Frontend Developer**
|
|
55
|
+
|
|
56
|
+
Use skill: `troubleshoot-service`
|
|
57
|
+
|
|
58
|
+
**Distributed-trace-first**: retrieve the trace for the failing request before reading raw logs. The span tree immediately shows which service and which layer failed, cutting diagnosis time significantly.
|
|
59
|
+
|
|
60
|
+
Rules:
|
|
61
|
+
|
|
62
|
+
- fix only the incident, not adjacent cleanup
|
|
63
|
+
- avoid opportunistic refactors
|
|
64
|
+
- prefer a reversible change
|
|
65
|
+
- keep the delta as small as possible
|
|
66
|
+
|
|
67
|
+
#### 4. Verify The Fix Quickly
|
|
68
|
+
|
|
69
|
+
Role: **Backend Developer**, **Reviewer**
|
|
70
|
+
|
|
71
|
+
Before shipping:
|
|
72
|
+
|
|
73
|
+
- run the narrowest useful test set first
|
|
74
|
+
- build the changed component
|
|
75
|
+
- exercise the failing path locally or in a lower environment if time allows
|
|
76
|
+
- confirm the fix does not obviously expand blast radius
|
|
77
|
+
|
|
78
|
+
Use skill: `review-code`
|
|
79
|
+
|
|
80
|
+
#### 5. Ship Through The Normal Emergency Path
|
|
81
|
+
|
|
82
|
+
Role: **Backend Developer**, **DevOps Engineer**
|
|
83
|
+
|
|
84
|
+
Use skill: `commit-code`
|
|
85
|
+
|
|
86
|
+
Deliver using the repo's approved emergency release path:
|
|
87
|
+
|
|
88
|
+
- hotfix branch
|
|
89
|
+
- release branch
|
|
90
|
+
- rollback deployment
|
|
91
|
+
- emergency config push
|
|
92
|
+
|
|
93
|
+
Do not create a commit until the user explicitly confirms that commit action.
|
|
94
|
+
Do not push, create a tag, or publish a release until the user explicitly confirms that specific action.
|
|
95
|
+
|
|
96
|
+
#### 6. Monitor Recovery
|
|
97
|
+
|
|
98
|
+
Role: **SRE**, **DevOps Engineer**
|
|
99
|
+
|
|
100
|
+
After deployment:
|
|
101
|
+
|
|
102
|
+
- watch service health and key alerts
|
|
103
|
+
- verify the affected path behaves correctly
|
|
104
|
+
- compare error rate and latency against the incident window
|
|
105
|
+
- keep monitoring until the system is stable
|
|
106
|
+
|
|
107
|
+
#### 7. Close The Incident Properly
|
|
108
|
+
|
|
109
|
+
Role: **Technical Lead**, **Technical Writer**
|
|
110
|
+
|
|
111
|
+
After stabilization:
|
|
112
|
+
|
|
113
|
+
- merge or reconcile the hotfix back into the main development line
|
|
114
|
+
- update changelog or release notes if the repo expects them
|
|
115
|
+
- capture an incident summary and preventive follow-up
|
|
116
|
+
|
|
117
|
+
### Post-Incident Follow-Up
|
|
118
|
+
|
|
119
|
+
Record:
|
|
120
|
+
|
|
121
|
+
- root cause
|
|
122
|
+
- mitigation used
|
|
123
|
+
- final fix
|
|
124
|
+
- missing tests, monitoring, or process gaps
|
|
125
|
+
|
|
126
|
+
Schedule deeper cleanup separately from the hotfix itself.
|
|
127
|
+
|
|
128
|
+
### Checklist
|
|
129
|
+
|
|
130
|
+
- [ ] severity and production impact confirmed
|
|
131
|
+
- [ ] blast radius contained with the least risky mitigation
|
|
132
|
+
- [ ] smallest valid fix identified
|
|
133
|
+
- [ ] narrow verification completed
|
|
134
|
+
- [ ] emergency delivery path followed with explicit approvals
|
|
135
|
+
- [ ] recovery monitored until stable
|
|
136
|
+
- [ ] incident summary and preventive follow-up captured
|
|
137
|
+
|
|
138
|
+
### Related Workflows
|
|
139
|
+
|
|
140
|
+
- [Troubleshooting](troubleshooting.md)
|
|
141
|
+
- [Service Review & Release](service-review-release.md)
|
|
142
|
+
- [Build & Deploy](build-deploy.md)
|
|
143
|
+
|
|
144
|
+
### Related Skills
|
|
145
|
+
|
|
146
|
+
- **troubleshoot-service**: Isolate the incident cause quickly
|
|
147
|
+
- **review-code**: Review risky hotfix changes before shipping
|
|
148
|
+
- **commit-code**: Prepare approved hotfix changes for delivery
|
|
149
|
+
- **meeting-review**: Escalate cross-role incident decisions
|
|
150
|
+
|
|
151
|
+
### Failure Modes
|
|
152
|
+
|
|
153
|
+
- **Hotfix without rollback verified**: an urgent fix ships but the previous deployment is not rollbackable. **Mitigation:** verify the rollback path before the hotfix; reject the deploy when the path is not confirmed.
|
|
154
|
+
- **Hotfix bypasses review**: an urgent fix is merged without reviewer sign-off. **Mitigation:** pre-authorize a small responder set; require at least one reviewer outside the responder set to sign off; surface the bypass in the postmortem.
|
|
155
|
+
- **Permanent feature flag**: a hotfix flag ships without a `cleanup_target_date`. **Mitigation:** every flag must carry an ISO 8601 cleanup date; CI must reject the hotfix if any flag is permanent.
|
|
156
|
+
- **Customer-impact metric not captured**: a hotfix closes the incident without recording the customer impact. **Mitigation:** capture DORA Change Failure Rate, MTTR, and customer impact in the incident report before the incident is closed.
|
|
157
|
+
- **Postmortem skipped**: the hotfix is shipped but the root cause is never recorded. **Mitigation:** require a postmortem in `contracts/schemas/incident-report.json` within 72 hours of the hotfix.
|
|
158
|
+
|
|
159
|
+
### Output Contracts
|
|
160
|
+
|
|
161
|
+
When this workflow produces a structured handoff, emit:
|
|
162
|
+
|
|
163
|
+
- **`contracts/schemas/incident-report.json`** — Required fields: symptom, suspected layer, checks performed, root cause, fix applied, verification result, and follow-up items.
|
|
164
|
+
- **`contracts/schemas/deployment-plan.json`** — For the hotfix deploy; capture infrastructure changes, config updates, and validation runs.
|
|
165
|
+
- **`contracts/schemas/implementation-result.json`** — For the hotfix code change; capture change summary, files touched, and the validation run.
|
|
166
|
+
|
|
167
|
+
### Security Guardrails (OWASP ASI)
|
|
168
|
+
|
|
169
|
+
- **ASI03 Identity & Privilege Abuse**: hotfix credentials must be scoped to the responder set; reject deploys that request broader scopes than the role's `action-boundaries.yaml` profile allows.
|
|
170
|
+
- **ASI05 RCE Guard**: never construct hotfix scripts or rollback commands from external content without strict schema validation.
|
|
171
|
+
- **ASI07 Inter-Agent Communication**: the hotfix is consumed by incident response and release roles; emit structured `incident-report.json` and `deployment-plan.json` so each role can validate.
|
|
172
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present the hotfix as "resolved" without end-to-end verification and customer impact evidence; surface the residual risk honestly.
|