engineering-intelligence 1.3.0 → 1.4.0
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/dist/adapters/index.js +4 -4
- package/dist/adapters/index.js.map +1 -1
- package/dist/templates.d.ts +1 -1
- package/dist/templates.d.ts.map +1 -1
- package/dist/templates.js +33 -0
- package/dist/templates.js.map +1 -1
- package/package.json +1 -1
- package/templates/canonical/rules/engineering-intelligence.md +5 -1
- package/templates/canonical/skills/aidlc-lifecycle-engine/SKILL.md +39 -0
- package/templates/canonical/skills/api-backward-compatibility-engine/SKILL.md +80 -0
- package/templates/canonical/skills/context-sync-engine/SKILL.md +15 -4
- package/templates/canonical/skills/database-migration-safety-engine/SKILL.md +79 -0
- package/templates/canonical/skills/engineering-intelligence-skill/SKILL.md +59 -2
- package/templates/canonical/skills/graph-engine/SKILL.md +22 -5
- package/templates/canonical/skills/impact-analysis-engine/SKILL.md +20 -4
- package/templates/canonical/skills/knowledge-base-validator/SKILL.md +19 -3
- package/templates/canonical/skills/memory-sync-engine/SKILL.md +16 -0
- package/templates/canonical/skills/operations-readiness-engine/SKILL.md +15 -4
- package/templates/canonical/skills/requirement-scoper/SKILL.md +9 -0
- package/templates/canonical/skills/security-audit-engine/SKILL.md +10 -3
- package/templates/canonical/skills/staleness-detector/SKILL.md +19 -0
- package/templates/canonical/skills/testing-intelligence-engine/SKILL.md +37 -1
- package/templates/canonical/skills/type-safety-engine/SKILL.md +81 -0
- package/templates/canonical/workflows/engineering-intelligence.md +6 -4
- package/templates/canonical/workflows/initialize-engineering-intelligence.md +3 -2
package/dist/adapters/index.js
CHANGED
|
@@ -52,7 +52,7 @@ const AGENT_METADATA = {
|
|
|
52
52
|
},
|
|
53
53
|
"change-agent": {
|
|
54
54
|
context: ["knowledge-base", ".engineering-intelligence/aidlc", ".engineering-intelligence/context", ".changes"],
|
|
55
|
-
skills: ["engineering-intelligence-skill", "aidlc-lifecycle-engine", "impact-analysis-engine", "change-detection-engine"],
|
|
55
|
+
skills: ["engineering-intelligence-skill", "aidlc-lifecycle-engine", "impact-analysis-engine", "change-detection-engine", "type-safety-engine", "api-backward-compatibility-engine"],
|
|
56
56
|
},
|
|
57
57
|
"quality-agent": {
|
|
58
58
|
context: ["knowledge-base", ".engineering-intelligence/aidlc", ".engineering-intelligence/context"],
|
|
@@ -76,11 +76,11 @@ const AGENT_METADATA = {
|
|
|
76
76
|
},
|
|
77
77
|
"database-administrator": {
|
|
78
78
|
context: ["knowledge-base", ".engineering-intelligence/aidlc", ".engineering-intelligence/graph"],
|
|
79
|
-
skills: ["nfr-adr-governor", "impact-analysis-engine"],
|
|
79
|
+
skills: ["nfr-adr-governor", "impact-analysis-engine", "database-migration-safety-engine"],
|
|
80
80
|
},
|
|
81
81
|
"test-engineer": {
|
|
82
82
|
context: ["knowledge-base", ".engineering-intelligence/aidlc", ".engineering-intelligence/context"],
|
|
83
|
-
skills: ["testing-intelligence-engine", "environmental-backpressure-engine"],
|
|
83
|
+
skills: ["testing-intelligence-engine", "environmental-backpressure-engine", "type-safety-engine"],
|
|
84
84
|
},
|
|
85
85
|
"adversary": {
|
|
86
86
|
context: ["knowledge-base", ".engineering-intelligence/aidlc", ".engineering-intelligence/graph"],
|
|
@@ -96,7 +96,7 @@ const AGENT_METADATA = {
|
|
|
96
96
|
},
|
|
97
97
|
"release-engineer": {
|
|
98
98
|
context: ["knowledge-base", ".engineering-intelligence/aidlc", ".changes"],
|
|
99
|
-
skills: ["git-intelligence-engine", "pr-intelligence-engine", "operations-readiness-engine"],
|
|
99
|
+
skills: ["git-intelligence-engine", "pr-intelligence-engine", "operations-readiness-engine", "api-backward-compatibility-engine", "database-migration-safety-engine"],
|
|
100
100
|
},
|
|
101
101
|
"site-reliability-engineer": {
|
|
102
102
|
context: ["knowledge-base", ".engineering-intelligence/aidlc", ".engineering-intelligence/graph"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../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QACD,IACE,QAAQ,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI;YAChC,QAAQ,CAAC,OAAO,KAAK,SAAS,CAAC,OAAO;YACtC,QAAQ,CAAC,OAAO,KAAK,SAAS,CAAC,OAAO,EACtC,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,qDAAqD,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;QACzF,CAAC;QACD,QAAQ,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC5E,CAAC;IACD,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACzF,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,KAAa;IACnC,OAAQ,OAA6B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,IAAa;IAChD,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAC7D,OAAO,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;AAC5C,CAAC"}
|
package/dist/templates.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function exists(location: string): Promise<boolean>;
|
|
2
|
-
export declare const SKILL_NAMES: readonly ["initialize-intelligence-skill", "engineering-intelligence-skill", "deep-project-knowledge-extractor", "knowledge-base-validator", "impact-analysis-engine", "testing-intelligence-engine", "knowledge-sync-engine", "memory-sync-engine", "context-sync-engine", "change-history-engine", "architecture-review-engine", "refactoring-planner", "graph-engine", "change-detection-engine", "incremental-sync-engine", "engineering-change-review", "requirement-scoper", "codebase-discovery-engine", "convention-detector", "ongoing-learning-engine", "greenfield-architect", "git-intelligence-engine", "pr-intelligence-engine", "staleness-detector", "security-audit-engine", "performance-analysis-engine", "debugging-engine", "aidlc-lifecycle-engine", "environmental-backpressure-engine", "nfr-adr-governor", "mcp-security-governor", "operations-readiness-engine"];
|
|
2
|
+
export declare const SKILL_NAMES: readonly ["initialize-intelligence-skill", "engineering-intelligence-skill", "deep-project-knowledge-extractor", "knowledge-base-validator", "impact-analysis-engine", "testing-intelligence-engine", "knowledge-sync-engine", "memory-sync-engine", "context-sync-engine", "change-history-engine", "architecture-review-engine", "refactoring-planner", "graph-engine", "change-detection-engine", "incremental-sync-engine", "engineering-change-review", "requirement-scoper", "codebase-discovery-engine", "convention-detector", "ongoing-learning-engine", "greenfield-architect", "git-intelligence-engine", "pr-intelligence-engine", "staleness-detector", "security-audit-engine", "performance-analysis-engine", "debugging-engine", "aidlc-lifecycle-engine", "environmental-backpressure-engine", "nfr-adr-governor", "mcp-security-governor", "operations-readiness-engine", "type-safety-engine", "database-migration-safety-engine", "api-backward-compatibility-engine"];
|
|
3
3
|
export declare const AGENT_NAMES: readonly ["engineering-orchestrator", "change-agent", "quality-agent", "knowledge-agent", "product-analyst", "system-architect", "security-officer", "database-administrator", "test-engineer", "adversary", "performance-analyst", "compliance-auditor", "release-engineer", "site-reliability-engineer", "documentation-writer"];
|
|
4
4
|
export declare const WORKFLOW_NAMES: readonly ["initialize-engineering-intelligence", "engineering-intelligence", "map-architecture", "analyze-impact", "sync-engineering-intelligence", "review-engineering-change", "scope-requirement", "discover-codebase", "create-project"];
|
|
5
5
|
export declare function readTemplate(category: "skills" | "agents" | "workflows" | "rules", name: string): Promise<string>;
|
package/dist/templates.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAIA,wBAAsB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/D;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAIA,wBAAsB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/D;AAED,eAAO,MAAM,WAAW,47BAoCd,CAAC;AAEX,eAAO,MAAM,WAAW,oUAgBd,CAAC;AAEX,eAAO,MAAM,cAAc,8OAUjB,CAAC;AAOX,wBAAsB,YAAY,CAChC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,OAAO,EACrD,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CA2GpE"}
|
package/dist/templates.js
CHANGED
|
@@ -43,6 +43,9 @@ export const SKILL_NAMES = [
|
|
|
43
43
|
"nfr-adr-governor",
|
|
44
44
|
"mcp-security-governor",
|
|
45
45
|
"operations-readiness-engine",
|
|
46
|
+
"type-safety-engine",
|
|
47
|
+
"database-migration-safety-engine",
|
|
48
|
+
"api-backward-compatibility-engine",
|
|
46
49
|
];
|
|
47
50
|
export const AGENT_NAMES = [
|
|
48
51
|
"engineering-orchestrator",
|
|
@@ -160,6 +163,36 @@ export async function validateCanonicalTemplates() {
|
|
|
160
163
|
errors.push(`nfr-adr-governor does not define required governance contract: ${requiredContract}`);
|
|
161
164
|
}
|
|
162
165
|
}
|
|
166
|
+
const implementation = await readTemplate("skills", "engineering-intelligence-skill").catch(() => "");
|
|
167
|
+
for (const requiredContract of [
|
|
168
|
+
"Pre-Flight Freshness Gate",
|
|
169
|
+
"Acceptance Criteria Verification Matrix",
|
|
170
|
+
"type-safety-engine",
|
|
171
|
+
"database-migration-safety-engine",
|
|
172
|
+
"api-backward-compatibility-engine",
|
|
173
|
+
]) {
|
|
174
|
+
if (!implementation.includes(requiredContract)) {
|
|
175
|
+
errors.push(`engineering-intelligence-skill does not define required accuracy gate: ${requiredContract}`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const typeSafety = await readTemplate("skills", "type-safety-engine").catch(() => "");
|
|
179
|
+
for (const requiredContract of ["tsc --listFilesOnly", "mypy --show-column-numbers", "Type Error Map"]) {
|
|
180
|
+
if (!typeSafety.includes(requiredContract)) {
|
|
181
|
+
errors.push(`type-safety-engine does not define required type safety contract: ${requiredContract}`);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const migrationSafety = await readTemplate("skills", "database-migration-safety-engine").catch(() => "");
|
|
185
|
+
for (const requiredContract of ["down migration", "CONCURRENTLY", "explicit approval"]) {
|
|
186
|
+
if (!migrationSafety.includes(requiredContract)) {
|
|
187
|
+
errors.push(`database-migration-safety-engine does not define required migration safety contract: ${requiredContract}`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
const apiCompatibility = await readTemplate("skills", "api-backward-compatibility-engine").catch(() => "");
|
|
191
|
+
for (const requiredContract of ["additive", "deprecated", "breaking", "version bump"]) {
|
|
192
|
+
if (!apiCompatibility.includes(requiredContract)) {
|
|
193
|
+
errors.push(`api-backward-compatibility-engine does not define required API compatibility contract: ${requiredContract}`);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
163
196
|
return errors;
|
|
164
197
|
}
|
|
165
198
|
//# sourceMappingURL=templates.js.map
|
package/dist/templates.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,IAAI,MAAM,WAAW,CAAC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,QAAQ,EAAE,mCAAmC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAC3G,KAAK,MAAM,gBAAgB,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,CAAC;QACtF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;YACjD,MAAM,CAAC,IAAI,CAAC,0FAA0F,gBAAgB,EAAE,CAAC,CAAC;QAC5H,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ For every engineering change, follow this sequence:
|
|
|
45
45
|
| 1 | Write impact report before editing | `.engineering-intelligence/reports/IMP-XXX-*.md` |
|
|
46
46
|
| 2 | Update AI-DLC plan/state when the change is non-trivial | `.engineering-intelligence/aidlc/execution-plan.md`, `aidlc-state.md` |
|
|
47
47
|
| 3 | Implement code changes and tests | Modified source and test files |
|
|
48
|
-
| 4 | Validate honestly with environmental backpressure — report unrun checks | Test results, lint results, build/test summary |
|
|
48
|
+
| 4 | Validate honestly with environmental backpressure and safety gates — report unrun checks | Test results, lint/type/API/migration results, build/test summary |
|
|
49
49
|
| 5 | Incrementally update affected intelligence and graph artifacts | Updated knowledge/memory/context/graph/aidlc |
|
|
50
50
|
| 6 | Record completed work | `.changes/CHG-XXX-*.md` |
|
|
51
51
|
|
|
@@ -90,3 +90,7 @@ Use these as the canonical project-intelligence paths — never invent alternati
|
|
|
90
90
|
- Create ADRs only when real alternatives were considered; accepted ADRs are immutable except supersession links.
|
|
91
91
|
- Require explicit human approval before destructive actions, production deployments, merges, irreversible migrations, or broad permission grants.
|
|
92
92
|
- For MCP or external tool execution, prefer tool-level permissions, schema pinning, sandboxed execution, and raw-parameter approval for destructive operations.
|
|
93
|
+
- Run the pre-flight freshness gate before implementation; stale scoped context below 50 blocks work unless explicitly accepted by the user.
|
|
94
|
+
- Map every acceptance criterion to automated test, manual verification, or open item before Definition of Done can pass.
|
|
95
|
+
- Run type safety, API compatibility, and database migration safety gates when applicable.
|
|
96
|
+
- Medium-and-above risk changes require rollback instructions and operations readiness.
|
|
@@ -18,6 +18,7 @@ Use `.engineering-intelligence/aidlc/` as the canonical AI-DLC root:
|
|
|
18
18
|
| `.engineering-intelligence/aidlc/audit.md` | Append-only chronological log of decisions, user answers, tool checks, and transitions |
|
|
19
19
|
| `.engineering-intelligence/aidlc/open-questions.md` | Unresolved ambiguities and owner/status |
|
|
20
20
|
| `.engineering-intelligence/aidlc/execution-plan.md` | Adaptive stage plan with mandatory/conditional/skipped stages |
|
|
21
|
+
| `.engineering-intelligence/aidlc/checkpoints.md` | Resume checkpoints after major workflow steps |
|
|
21
22
|
| `.engineering-intelligence/aidlc/discovery/vision.md` | Business objectives, personas, value, success metrics |
|
|
22
23
|
| `.engineering-intelligence/aidlc/discovery/technical-environment.md` | Runtime, deployment, integrations, data stores, auth, constraints |
|
|
23
24
|
| `.engineering-intelligence/aidlc/agile/product-backlog.md` | Epics, stories, priorities, dependencies, and status |
|
|
@@ -78,6 +79,16 @@ For brownfield systems, run reverse engineering and write:
|
|
|
78
79
|
|
|
79
80
|
Then compile validated requirements, backlog updates, acceptance criteria, sprint plan, and an adaptive `execution-plan.md`.
|
|
80
81
|
|
|
82
|
+
`execution-plan.md` must include a formal unit dependency graph:
|
|
83
|
+
|
|
84
|
+
```markdown
|
|
85
|
+
## Units Dependency Graph
|
|
86
|
+
| Unit | Depends On | Can Run In Parallel | Files Owned | Conflict Risk |
|
|
87
|
+
|---|---|---|---|---|
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Units with no declared dependencies and no overlapping owned files may run in parallel. Conflicts discovered during parallel or sequential execution must be logged in `cross-unit-discoveries.md`.
|
|
91
|
+
|
|
81
92
|
### 2. Construction
|
|
82
93
|
|
|
83
94
|
Execute per unit of work. Each unit may include:
|
|
@@ -115,6 +126,32 @@ Each stage must end with binary evidence:
|
|
|
115
126
|
- Required tests, type checks, linters, scans, or build commands ran, failed, or were explicitly unavailable
|
|
116
127
|
- Human approval is recorded before irreversible actions
|
|
117
128
|
- Breadcrumb is updated in `aidlc-state.md`
|
|
129
|
+
- Checkpoint is written after impact analysis, implementation, type/API/migration safety gates, validation, synchronization, and change record
|
|
130
|
+
|
|
131
|
+
## Checkpoint And Resume
|
|
132
|
+
|
|
133
|
+
Write `.engineering-intelligence/aidlc/checkpoints.md` and update `aidlc-state.md` after each major step:
|
|
134
|
+
|
|
135
|
+
| Checkpoint | Meaning | Resume Action |
|
|
136
|
+
|---|---|---|
|
|
137
|
+
| `impact-analysis-complete` | Impact report exists | Resume at implementation planning |
|
|
138
|
+
| `implementation-complete` | Code edits are done | Resume at validation |
|
|
139
|
+
| `safety-gates-complete` | Type/API/migration gates passed or blocked | Resume at testing/backpressure |
|
|
140
|
+
| `tests-passing` | Required validation passed | Resume at sync |
|
|
141
|
+
| `sync-complete` | Intelligence artifacts updated | Resume at change record |
|
|
142
|
+
| `change-record-complete` | CHG record exists | Resume at final report |
|
|
143
|
+
|
|
144
|
+
On re-invocation, detect the latest checkpoint and continue from the next step instead of restarting, unless the user asks for a fresh run.
|
|
145
|
+
|
|
146
|
+
## Dry-Run Mode
|
|
147
|
+
|
|
148
|
+
If the user asks for dry run, preview, or plan-only execution:
|
|
149
|
+
- Generate the impact report
|
|
150
|
+
- Select delivery mode
|
|
151
|
+
- Show files likely to change and why
|
|
152
|
+
- Run safe current-state checks such as type/lint/test discovery
|
|
153
|
+
- Do not edit product code
|
|
154
|
+
- Write a pre-flight report under `.engineering-intelligence/reports/`
|
|
118
155
|
|
|
119
156
|
## Environmental Backpressure
|
|
120
157
|
|
|
@@ -136,6 +173,8 @@ AI-DLC: <phase> -> <stage> -> <status>
|
|
|
136
173
|
- [ ] Brownfield reverse engineering exists before broad changes
|
|
137
174
|
- [ ] Requirements and execution plan are durable files
|
|
138
175
|
- [ ] Construction is split into explicit units
|
|
176
|
+
- [ ] Unit dependency graph exists in `execution-plan.md`
|
|
139
177
|
- [ ] Cross-unit discoveries are loaded and updated
|
|
178
|
+
- [ ] Checkpoints are written and resume is supported
|
|
140
179
|
- [ ] Validation uses environmental backpressure
|
|
141
180
|
- [ ] Operations readiness is addressed when deployment or production behavior changes
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: api-backward-compatibility-engine
|
|
3
|
+
description: Diffs API contracts, classifies changes as additive, deprecated, or breaking, and requires versioning or migration notes for breaking changes.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# API Backward Compatibility Engine
|
|
8
|
+
|
|
9
|
+
Use this skill when routes, handlers, request schemas, response schemas, GraphQL schemas, RPC contracts, events, SDKs, webhooks, or public service interfaces change.
|
|
10
|
+
|
|
11
|
+
## Procedure
|
|
12
|
+
|
|
13
|
+
1. **Load Current API Contract**
|
|
14
|
+
- `knowledge-base/04-api-documentation.md`
|
|
15
|
+
- OpenAPI / Swagger specs
|
|
16
|
+
- GraphQL schemas
|
|
17
|
+
- Protobuf / gRPC definitions
|
|
18
|
+
- Route files, request validators, response serializers
|
|
19
|
+
- Event schema registries or webhook docs
|
|
20
|
+
|
|
21
|
+
2. **Diff Proposed Or Actual Change**
|
|
22
|
+
- Endpoints added/removed/renamed
|
|
23
|
+
- Methods changed
|
|
24
|
+
- Request fields added/removed/renamed/type-changed
|
|
25
|
+
- Response fields added/removed/renamed/type-changed
|
|
26
|
+
- Auth/permission requirements changed
|
|
27
|
+
- Error codes/status codes changed
|
|
28
|
+
- Pagination, sorting, idempotency, or rate-limit semantics changed
|
|
29
|
+
|
|
30
|
+
3. **Classify Each Change**
|
|
31
|
+
- `additive`: backward-compatible addition
|
|
32
|
+
- `deprecated`: old behavior still works but has deprecation path
|
|
33
|
+
- `breaking`: existing clients can fail or observe incompatible semantics
|
|
34
|
+
|
|
35
|
+
4. **Require Versioning For Breaking Changes**
|
|
36
|
+
- Require explicit version bump, migration notes, or recorded human approval.
|
|
37
|
+
- Block change finalization if breaking changes lack versioning/migration documentation.
|
|
38
|
+
|
|
39
|
+
5. **Generate Compatibility Notes**
|
|
40
|
+
- Update API docs and change record.
|
|
41
|
+
- Identify impacted tests and client contracts.
|
|
42
|
+
|
|
43
|
+
## Output
|
|
44
|
+
|
|
45
|
+
Write `.engineering-intelligence/aidlc/construction/<unit>/api-compatibility.md`:
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
# API Backward Compatibility: <unit>
|
|
49
|
+
|
|
50
|
+
## Contract Sources
|
|
51
|
+
- <path>
|
|
52
|
+
|
|
53
|
+
## Change Classification
|
|
54
|
+
| API Surface | Change | Class | Client Impact | Required Action |
|
|
55
|
+
|---|---|---|---|---|
|
|
56
|
+
|
|
57
|
+
## Breaking Changes
|
|
58
|
+
- <change>
|
|
59
|
+
- Version bump: <path/evidence or missing>
|
|
60
|
+
- Migration notes: <path/evidence or missing>
|
|
61
|
+
|
|
62
|
+
## Validation
|
|
63
|
+
- Contract tests:
|
|
64
|
+
- Snapshot/replay checks:
|
|
65
|
+
- Manual verification:
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Blocking Conditions
|
|
69
|
+
|
|
70
|
+
- Breaking change without version bump, migration notes, or explicit approval
|
|
71
|
+
- Removed API without deprecation path
|
|
72
|
+
- Response contract changed without compatibility test
|
|
73
|
+
- Auth requirement changed without security/permission test
|
|
74
|
+
|
|
75
|
+
## Quality Gates
|
|
76
|
+
|
|
77
|
+
- [ ] Contract sources were loaded
|
|
78
|
+
- [ ] Every API change is classified as additive, deprecated, or breaking
|
|
79
|
+
- [ ] Breaking changes have version bump or explicit approval
|
|
80
|
+
- [ ] API docs and tests are updated for contract changes
|
|
@@ -86,27 +86,36 @@ Queue → Worker → Process → DB Write → Notify
|
|
|
86
86
|
|
|
87
87
|
## Procedure
|
|
88
88
|
|
|
89
|
-
1. **
|
|
89
|
+
1. **Context Relevance Selection** — Before reading broad intelligence, rank knowledge and context documents by graph proximity to the change scope:
|
|
90
|
+
- direct graph neighbors first
|
|
91
|
+
- critical-path maps next
|
|
92
|
+
- impacted API/schema/security docs next
|
|
93
|
+
- broad background docs last
|
|
94
|
+
Estimate token cost and load in relevance order until roughly 40% of the available context budget is consumed. Reserve the rest for implementation, tests, diagnostics, and user interaction. If critical docs cannot fit, escalate with the missing docs and reason.
|
|
90
95
|
|
|
91
|
-
2. **
|
|
96
|
+
2. **Check Impact** — Review the impact report and graph updates. Identify which context maps are affected.
|
|
97
|
+
|
|
98
|
+
3. **Update Affected Maps** — For each affected map:
|
|
92
99
|
- Update specific entries, not the entire map
|
|
93
100
|
- Add new entries for new modules/services/paths
|
|
94
101
|
- Remove entries for deleted modules/services
|
|
95
102
|
- Update paths and descriptions for renamed elements
|
|
96
103
|
|
|
97
|
-
|
|
104
|
+
4. **Preserve Conciseness** — Each map should be:
|
|
98
105
|
- Under 150 lines
|
|
99
106
|
- Table-formatted where possible
|
|
100
107
|
- Navigational (paths and quick descriptions), not explanatory
|
|
101
108
|
- Optimized for AI agent context windows
|
|
102
109
|
|
|
103
|
-
|
|
110
|
+
5. **Verify Accuracy** — Cross-check updated maps against:
|
|
104
111
|
- Current `.engineering-intelligence/graph/` data
|
|
105
112
|
- Actual file system paths (do they still exist?)
|
|
106
113
|
|
|
107
114
|
## Rules
|
|
108
115
|
|
|
109
116
|
- Keep context concise and navigational — not a knowledge-base duplicate
|
|
117
|
+
- Load context by relevance, not by directory order
|
|
118
|
+
- Keep initial intelligence loading under 40% of the available context budget when possible
|
|
110
119
|
- Use tables over prose wherever possible
|
|
111
120
|
- Update only affected maps from the impact report
|
|
112
121
|
- Do not regenerate unrelated context
|
|
@@ -115,6 +124,8 @@ Queue → Worker → Process → DB Write → Notify
|
|
|
115
124
|
## Quality Gates
|
|
116
125
|
|
|
117
126
|
- [ ] Each map is under 150 lines
|
|
127
|
+
- [ ] Relevant docs were ranked by graph proximity before broad loading
|
|
128
|
+
- [ ] Context budget was preserved or an escalation was recorded
|
|
118
129
|
- [ ] Updated entries reference real, existing paths
|
|
119
130
|
- [ ] Only impact-affected maps were modified
|
|
120
131
|
- [ ] Table format used where appropriate
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: database-migration-safety-engine
|
|
3
|
+
description: Reviews database migrations for backward compatibility, rollback coverage, locks, destructive operations, and production-dangerous changes.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Database Migration Safety Engine
|
|
8
|
+
|
|
9
|
+
Use this skill whenever schemas, migrations, ORM models, data stores, indexes, or persistence contracts change.
|
|
10
|
+
|
|
11
|
+
## Procedure
|
|
12
|
+
|
|
13
|
+
1. **Detect Migration System**
|
|
14
|
+
- Prisma, Drizzle, TypeORM, Sequelize, Alembic, Django migrations, Rails migrations, Flyway, Liquibase, Knex, raw SQL, Terraform-managed database resources.
|
|
15
|
+
|
|
16
|
+
2. **Classify Operations**
|
|
17
|
+
- Additive: new nullable column, new table, additive index
|
|
18
|
+
- Backward-compatible with caution: new non-null column with default, enum expansion, trigger change
|
|
19
|
+
- Dangerous: column/table drop, rename without compatibility window, type narrowing, destructive data rewrite, full table lock, index without `CONCURRENTLY` for PostgreSQL production tables
|
|
20
|
+
- Irreversible: data deletion, lossy transform, externalized state mutation
|
|
21
|
+
|
|
22
|
+
3. **Validate Rollback**
|
|
23
|
+
- Check for a down migration or rollback equivalent.
|
|
24
|
+
- Generate down migration stubs when missing, but mark them for human review.
|
|
25
|
+
- Record irreversible steps explicitly.
|
|
26
|
+
|
|
27
|
+
4. **Check Zero-Downtime Safety**
|
|
28
|
+
- Prefer expand/contract migrations.
|
|
29
|
+
- Require deprecation windows for drops/renames.
|
|
30
|
+
- Require online index creation where supported, such as PostgreSQL `CREATE INDEX CONCURRENTLY`.
|
|
31
|
+
- Require explicit approval for production-dangerous operations.
|
|
32
|
+
|
|
33
|
+
5. **Map Query Impact**
|
|
34
|
+
- Parse ORM model definitions and raw SQL strings.
|
|
35
|
+
- Build or update a schema-to-query map.
|
|
36
|
+
- Flag queries referencing changed columns/tables as directly impacted.
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
Write `.engineering-intelligence/aidlc/construction/<unit>/database-migration-safety.md`:
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
# Database Migration Safety: <unit>
|
|
44
|
+
|
|
45
|
+
## Migration Files
|
|
46
|
+
- <path>
|
|
47
|
+
|
|
48
|
+
## Operation Classification
|
|
49
|
+
| Operation | Object | Classification | Risk | Evidence |
|
|
50
|
+
|---|---|---|---|---|
|
|
51
|
+
|
|
52
|
+
## Rollback / Down Migration
|
|
53
|
+
- Exists: <yes/no>
|
|
54
|
+
- Stub generated: <yes/no>
|
|
55
|
+
- Irreversible steps: <list or none>
|
|
56
|
+
|
|
57
|
+
## Schema-To-Query Impact
|
|
58
|
+
| Changed Schema Object | Query / ORM Usage | Impact | Evidence |
|
|
59
|
+
|---|---|---|---|
|
|
60
|
+
|
|
61
|
+
## Approval Required
|
|
62
|
+
- <dangerous operation requiring explicit approval>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Blocking Conditions
|
|
66
|
+
|
|
67
|
+
- Missing down migration for medium-or-higher risk migration
|
|
68
|
+
- Drop/rename without deprecation window
|
|
69
|
+
- Full table lock risk not acknowledged
|
|
70
|
+
- Production-dangerous operation without explicit approval
|
|
71
|
+
- Changed column referenced by unupdated query
|
|
72
|
+
|
|
73
|
+
## Quality Gates
|
|
74
|
+
|
|
75
|
+
- [ ] Migration system was detected
|
|
76
|
+
- [ ] Operations were classified
|
|
77
|
+
- [ ] Down migration or rollback strategy exists
|
|
78
|
+
- [ ] Schema-to-query impacts are listed
|
|
79
|
+
- [ ] Explicit approval is recorded for dangerous operations
|
|
@@ -41,6 +41,16 @@ Read these artifacts and identify relevant context:
|
|
|
41
41
|
|
|
42
42
|
**If intelligence is missing or stale**: Run `initialize-intelligence-skill` first.
|
|
43
43
|
|
|
44
|
+
#### Pre-Flight Freshness Gate
|
|
45
|
+
|
|
46
|
+
Before impact analysis or code edits:
|
|
47
|
+
|
|
48
|
+
1. Resolve the likely changed modules from the request, graph proximity, or `change-detection-engine`.
|
|
49
|
+
2. Run `staleness-detector` scoped to those modules and related knowledge/context/memory artifacts.
|
|
50
|
+
3. If any freshness score is below `60`, run `incremental-sync-engine` for the stale artifacts before editing product code, or explicitly mark stale context in the impact report with the affected documents and scores.
|
|
51
|
+
4. If any score is below `50`, implementation is blocked until incremental sync runs or the user explicitly accepts stale-context risk.
|
|
52
|
+
5. Skip stale H2 sections that carry low confidence metadata unless they are refreshed or verified against source.
|
|
53
|
+
|
|
44
54
|
### 2. Impact Analysis: Write Report
|
|
45
55
|
|
|
46
56
|
Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>.md`:
|
|
@@ -55,6 +65,7 @@ Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>
|
|
|
55
65
|
|
|
56
66
|
## Analysis
|
|
57
67
|
- Mode: <proposal|diff>
|
|
68
|
+
- Freshness gate: <passed|synced|stale risk accepted> with scores
|
|
58
69
|
- Graph inputs consulted: <list>
|
|
59
70
|
- Directly affected: <files, modules, services>
|
|
60
71
|
- Indirectly affected: <downstream consumers, dependent services>
|
|
@@ -62,6 +73,10 @@ Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>
|
|
|
62
73
|
|
|
63
74
|
## Validation Requirements
|
|
64
75
|
- <test types needed>
|
|
76
|
+
- Type safety: <required|not applicable>
|
|
77
|
+
- API compatibility: <required|not applicable>
|
|
78
|
+
- Migration safety: <required|not applicable>
|
|
79
|
+
- Acceptance mapping: required
|
|
65
80
|
- <manual verification needed>
|
|
66
81
|
|
|
67
82
|
## Intelligence Artifacts Affected
|
|
@@ -94,9 +109,21 @@ Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>
|
|
|
94
109
|
- Follow existing coding patterns from `.engineering-intelligence/memory/coding-patterns.md`
|
|
95
110
|
- Read conventions from `knowledge-base/16-conventions.md` and `.engineering-intelligence/memory/coding-patterns.md` — match naming patterns, import style, error handling patterns, and code structure
|
|
96
111
|
- If conventions document is missing or outdated, run `convention-detector` first
|
|
112
|
+
- After generating or modifying each file, compare it against `coding-patterns.md` for naming, import order, error handling, logging, folder structure, test style, and framework idioms. Auto-correct minor violations. Structural convention violations become review findings and block completion when critical.
|
|
97
113
|
- Respect architectural boundaries from `.engineering-intelligence/memory/architecture-decisions.md`
|
|
98
114
|
- Consult `dangerous-areas.md` before modifying flagged code
|
|
99
115
|
|
|
116
|
+
#### Strict TDD Red-Green Gate
|
|
117
|
+
|
|
118
|
+
When TDD delivery mode is selected:
|
|
119
|
+
|
|
120
|
+
1. Add or update the required tests first.
|
|
121
|
+
2. Run the new/targeted tests before implementation code changes.
|
|
122
|
+
3. Confirm they fail for the expected reason.
|
|
123
|
+
4. Save failing output in `.engineering-intelligence/aidlc/construction/<unit>/build-and-test/build-and-test-summary.md`.
|
|
124
|
+
5. Only then implement production code.
|
|
125
|
+
6. If this sequence is skipped, mark the construction unit blocked unless the user explicitly approves non-TDD execution.
|
|
126
|
+
|
|
100
127
|
### 4. Add/Update Tests
|
|
101
128
|
|
|
102
129
|
- Add tests proportional to the change risk level
|
|
@@ -110,10 +137,27 @@ Before any code edit, write `.engineering-intelligence/reports/IMP-XXX-<summary>
|
|
|
110
137
|
|
|
111
138
|
- Run linters, type checks, and test suites available in the project
|
|
112
139
|
- Use environmental backpressure: analyze failed diagnostics, fix, and rerun the relevant command until it passes or a blocker is recorded
|
|
140
|
+
- Run `type-safety-engine` for typed projects or record why no type system applies
|
|
141
|
+
- Run `api-backward-compatibility-engine` when API, event, webhook, SDK, route, or schema contracts changed
|
|
142
|
+
- Run `database-migration-safety-engine` when schema, ORM model, migration, index, or data persistence contracts changed
|
|
113
143
|
- Write `.engineering-intelligence/aidlc/construction/<unit>/build-and-test/build-and-test-summary.md` for non-trivial units
|
|
114
144
|
- **Never claim validation passed unless it actually ran and passed**
|
|
115
145
|
- Record partial or failed validation honestly
|
|
116
146
|
|
|
147
|
+
#### Acceptance Criteria Verification Matrix
|
|
148
|
+
|
|
149
|
+
Before Definition of Done can pass, map every criterion from `.engineering-intelligence/aidlc/agile/acceptance-criteria.md` to evidence:
|
|
150
|
+
|
|
151
|
+
```markdown
|
|
152
|
+
## Acceptance Criteria Verification Matrix
|
|
153
|
+
| Criterion | Evidence Type | Evidence | Result | Open Item |
|
|
154
|
+
|---|---|---|---|---|
|
|
155
|
+
| Given..., when..., then... | automated test | `test/file.test.ts` / command result | pass | — |
|
|
156
|
+
| ... | manual verification | <steps required> | pending | <owner/reason> |
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Missing mappings block the Done gate and must be copied into the CHG record as open items.
|
|
160
|
+
|
|
117
161
|
### 6. Incremental Sync
|
|
118
162
|
|
|
119
163
|
Use `incremental-sync-engine` to update only affected artifacts:
|
|
@@ -148,6 +192,16 @@ Create `.changes/CHG-XXX-<summary>.md`:
|
|
|
148
192
|
- <tests added/modified>
|
|
149
193
|
- <test results: passed/failed/skipped>
|
|
150
194
|
|
|
195
|
+
## Acceptance Criteria Verification
|
|
196
|
+
<copy the Acceptance Criteria Verification Matrix, including open items>
|
|
197
|
+
|
|
198
|
+
## Safety Gates
|
|
199
|
+
- Freshness gate: <passed|synced|stale risk accepted>
|
|
200
|
+
- Type safety: <passed|failed|not applicable>
|
|
201
|
+
- API compatibility: <passed|failed|not applicable>
|
|
202
|
+
- Migration safety: <passed|failed|not applicable>
|
|
203
|
+
- Convention enforcement: <passed|findings>
|
|
204
|
+
|
|
151
205
|
## Related Reports
|
|
152
206
|
- IMP-XXX: <link to impact report>
|
|
153
207
|
- REV-XXX: <link to review report, if applicable>
|
|
@@ -178,6 +232,7 @@ Summarize to the user:
|
|
|
178
232
|
## Quality Gates
|
|
179
233
|
|
|
180
234
|
- [ ] Impact report written before any code edit
|
|
235
|
+
- [ ] Pre-Flight Freshness Gate passed, synced stale artifacts, or stale risk was explicit in the impact report
|
|
181
236
|
- [ ] All changed behavior has corresponding test coverage
|
|
182
237
|
- [ ] Validation was actually executed (not just claimed)
|
|
183
238
|
- [ ] Only affected intelligence artifacts were updated
|
|
@@ -185,6 +240,8 @@ Summarize to the user:
|
|
|
185
240
|
- [ ] Story meets Definition of Ready before implementation starts
|
|
186
241
|
- [ ] Story meets Definition of Done before final report
|
|
187
242
|
- [ ] Acceptance criteria are mapped to validation evidence
|
|
243
|
+
- [ ] Acceptance Criteria Verification Matrix has no unmapped criteria unless recorded as open items
|
|
244
|
+
- [ ] Type safety, API compatibility, and migration safety gates ran when applicable
|
|
188
245
|
- [ ] Environmental backpressure was used for validation failures
|
|
189
246
|
- [ ] Change record references the correct impact report
|
|
190
247
|
- [ ] High-risk changes went through review gate
|
|
@@ -192,6 +249,6 @@ Summarize to the user:
|
|
|
192
249
|
|
|
193
250
|
## Cross-References
|
|
194
251
|
|
|
195
|
-
- Depends on: `initialize-intelligence-skill` (prerequisite), `change-detection-engine`, `impact-analysis-engine`, `graph-engine`
|
|
196
|
-
- Uses during execution: `testing-intelligence-engine`, `incremental-sync-engine`, `change-history-engine`
|
|
252
|
+
- Depends on: `initialize-intelligence-skill` (prerequisite), `change-detection-engine`, `impact-analysis-engine`, `graph-engine`, `staleness-detector`
|
|
253
|
+
- Uses during execution: `testing-intelligence-engine`, `type-safety-engine`, `api-backward-compatibility-engine`, `database-migration-safety-engine`, `incremental-sync-engine`, `change-history-engine`
|
|
197
254
|
- Optional: `engineering-change-review` (for high-risk), `refactoring-planner` (for refactors), `convention-detector` (for convention compliance)
|
|
@@ -70,6 +70,8 @@ Each JSON graph uses this envelope:
|
|
|
70
70
|
| `configures` | Configuration dependency |
|
|
71
71
|
| `implicit-dependency` | Shared database tables, shared config |
|
|
72
72
|
| `event-coupling` | Event-driven coupling |
|
|
73
|
+
| `imports-type` | Type-only or annotation-level dependency between interfaces, aliases, declarations, schemas, or annotations |
|
|
74
|
+
| `co-change` | Git history coupling above confidence threshold |
|
|
73
75
|
|
|
74
76
|
### 2. `service-graph.json` — Service Communication Topology
|
|
75
77
|
|
|
@@ -102,6 +104,7 @@ Each JSON graph uses this envelope:
|
|
|
102
104
|
| `service-layer` | Business logic service |
|
|
103
105
|
| `repository` | Data access layer |
|
|
104
106
|
| `background` | Background job or worker |
|
|
107
|
+
| `function` | Function or method on a critical path |
|
|
105
108
|
|
|
106
109
|
| Edge Relation | Description |
|
|
107
110
|
|---|---|
|
|
@@ -136,6 +139,8 @@ Each JSON graph uses this envelope:
|
|
|
136
139
|
| `store` | Persistence |
|
|
137
140
|
| `sink` | Data output/consumer |
|
|
138
141
|
| `validator` | Validation step |
|
|
142
|
+
| `sensitive-source` | PII, token, payment, health, credential, or regulated data origin |
|
|
143
|
+
| `sensitive-sink` | Sink that persists, transmits, logs, or exports sensitive data |
|
|
139
144
|
|
|
140
145
|
| Edge Relation | Description |
|
|
141
146
|
|---|---|
|
|
@@ -163,9 +168,13 @@ Derive Mermaid diagrams from the JSON graphs. Include:
|
|
|
163
168
|
2. Build all five graphs from scratch
|
|
164
169
|
3. Assign `verified` confidence to edges backed by explicit code evidence
|
|
165
170
|
4. Assign `inferred` confidence to edges derived from patterns or naming conventions
|
|
166
|
-
5. Integrate git change coupling data from `git-intelligence-engine` as `
|
|
167
|
-
6.
|
|
168
|
-
7.
|
|
171
|
+
5. Integrate git change coupling data from `git-intelligence-engine` as `co-change` edges when coupling strength is above `0.7`, confidence is `inferred`, and evidence cites commit ranges or reports
|
|
172
|
+
6. Build `imports-type` edges from type checker/compiler API evidence when typed languages are detected
|
|
173
|
+
7. Build function-level call graph nodes for critical paths in `runtime-graph.json`
|
|
174
|
+
8. Annotate runtime edges with `metadata.hotness` derived from `critical-paths.md`, test coverage frequency, and git co-change strength
|
|
175
|
+
9. Classify sensitive data nodes in `data-flow-graph.json` with `metadata.sensitivity` (`pii`, `token`, `payment`, `credential`, `health`, `regulated`, `none`) and track propagation to sinks
|
|
176
|
+
10. Mark unresolvable relationships as `unknown` and add to `unknowns` array
|
|
177
|
+
11. Generate Mermaid diagrams in `architecture-map.md`
|
|
169
178
|
|
|
170
179
|
### Incremental Mode (post-change update)
|
|
171
180
|
|
|
@@ -173,8 +182,9 @@ Derive Mermaid diagrams from the JSON graphs. Include:
|
|
|
173
182
|
2. Identify affected nodes and edges across all graphs
|
|
174
183
|
3. Update, add, or remove only affected nodes and edges
|
|
175
184
|
4. Preserve stable node IDs — only change an ID if the represented element was renamed
|
|
176
|
-
5.
|
|
177
|
-
6.
|
|
185
|
+
5. Update `imports-type`, `co-change`, function call, hotness, and sensitive data annotations where affected
|
|
186
|
+
6. Re-derive affected sections of `architecture-map.md`
|
|
187
|
+
7. Require full remapping only when structural impact cannot be bounded
|
|
178
188
|
|
|
179
189
|
## Rules
|
|
180
190
|
|
|
@@ -184,6 +194,8 @@ Derive Mermaid diagrams from the JSON graphs. Include:
|
|
|
184
194
|
- Derive Mermaid diagrams in `architecture-map.md` from the JSON graph content — never hand-author diagrams that contradict the JSON
|
|
185
195
|
- For ordinary changes, update only impacted nodes, edges, maps, and connected context documents
|
|
186
196
|
- Rebuild all graphs on initialization, explicit mapping request, or when structural impact cannot be bounded
|
|
197
|
+
- Do not add `co-change` edges below `0.7` coupling strength
|
|
198
|
+
- Sensitive data propagation to unencrypted channels, logs, or unvalidated sinks must become a security finding in the impact report
|
|
187
199
|
|
|
188
200
|
## Quality Gates
|
|
189
201
|
|
|
@@ -192,6 +204,11 @@ Derive Mermaid diagrams from the JSON graphs. Include:
|
|
|
192
204
|
- [ ] No `unknown` relationships are left out of the `unknowns` array
|
|
193
205
|
- [ ] `architecture-map.md` Mermaid diagrams are syntactically valid
|
|
194
206
|
- [ ] Node IDs are stable across incremental updates
|
|
207
|
+
- [ ] Type dependencies are represented as `imports-type` where applicable
|
|
208
|
+
- [ ] Co-change edges above `0.7` are represented or explicitly unavailable
|
|
209
|
+
- [ ] Runtime critical paths include function-level nodes where detectable
|
|
210
|
+
- [ ] Sensitive data nodes and propagation edges are annotated in `data-flow-graph.json`
|
|
211
|
+
- [ ] Hot path edges include `metadata.hotness` when evidence exists
|
|
195
212
|
|
|
196
213
|
## Cross-References
|
|
197
214
|
|
|
@@ -23,10 +23,13 @@ Determine what can break before changing code. Produce a reusable impact report
|
|
|
23
23
|
3. **Trace Direct Impact** — Identify:
|
|
24
24
|
- Files directly modified or proposed for modification
|
|
25
25
|
- Functions, classes, types, and interfaces changed
|
|
26
|
+
- TypeScript interfaces, type aliases, enums, declaration files, Python annotations, Pydantic/dataclass models, and other typed contracts changed
|
|
26
27
|
- API contracts affected (routes, request/response shapes)
|
|
27
28
|
- Database schemas or migrations affected
|
|
28
29
|
- Configuration changes
|
|
29
30
|
|
|
31
|
+
For typed languages, invoke `type-safety-engine` in dependency-tracing mode. Add type-only dependencies as `imports-type` edges in `dependency-graph.json` and include them in direct impact when the changed symbol is a shared type or annotation.
|
|
32
|
+
|
|
30
33
|
4. **Trace Indirect Impact** — Using graph intelligence, identify:
|
|
31
34
|
- Downstream consumers of changed modules (from dependency-graph)
|
|
32
35
|
- Services communicating with changed services (from service-graph)
|
|
@@ -35,6 +38,8 @@ Determine what can break before changing code. Produce a reusable impact report
|
|
|
35
38
|
- Data pipelines affected (from data-flow-graph)
|
|
36
39
|
- Test suites covering affected code
|
|
37
40
|
- Cross-reference with git change coupling data from `git-intelligence-engine` for hidden dependencies
|
|
41
|
+
- Query paths referencing changed schema fields from schema-to-query mapping
|
|
42
|
+
- API clients or contract tests affected by additive, deprecated, or breaking API changes
|
|
38
43
|
|
|
39
44
|
5. **Trace Transitive Impact** — Follow 2nd and 3rd order effects through the graph. Identify files that are indirectly affected by consumers of the directly affected modules. Walk the dependency chain until impact attenuates or reaches a service boundary.
|
|
40
45
|
|
|
@@ -48,6 +53,7 @@ Determine what can break before changing code. Produce a reusable impact report
|
|
|
48
53
|
| **API contract** | None | Additive | Deprecated | Breaking |
|
|
49
54
|
| **Test coverage** | Well-tested | Partial | Sparse | None |
|
|
50
55
|
| **Change coupling** | None | Low (1-2 coupled files) | Medium (3-5 coupled files) | High (6+ coupled files) |
|
|
56
|
+
| **Hot path** | Cold path | Normal | Critical path | Revenue/security/SLO path |
|
|
51
57
|
|
|
52
58
|
7. **Identify Validation Needs** — Map impact to required validation:
|
|
53
59
|
|
|
@@ -83,9 +89,10 @@ Write `.engineering-intelligence/reports/IMP-XXX-<slug>.md`:
|
|
|
83
89
|
- Missing: <graphs not available>
|
|
84
90
|
|
|
85
91
|
## Direct Impact
|
|
86
|
-
| File/Module | Change Type | Risk |
|
|
87
|
-
|
|
88
|
-
| path/to/file.ts | Modified function `handleAuth` | high |
|
|
92
|
+
| File/Module | Change Type | Dependency Type | Risk |
|
|
93
|
+
|---|---|---|---|
|
|
94
|
+
| path/to/file.ts | Modified function `handleAuth` | runtime call | high |
|
|
95
|
+
| path/to/types.ts | Modified interface `User` | imports-type | high |
|
|
89
96
|
|
|
90
97
|
## Indirect Impact
|
|
91
98
|
| Affected Area | Relationship | Confidence |
|
|
@@ -93,6 +100,12 @@ Write `.engineering-intelligence/reports/IMP-XXX-<slug>.md`:
|
|
|
93
100
|
| UserService | Imports changed module | verified |
|
|
94
101
|
| /api/users endpoint | Calls modified handler | inferred |
|
|
95
102
|
|
|
103
|
+
## Contract And Data Impact
|
|
104
|
+
| Surface | Classification | Required Gate |
|
|
105
|
+
|---|---|---|
|
|
106
|
+
| API <name> | additive | api-backward-compatibility-engine |
|
|
107
|
+
| Table.column | schema-to-query impact | database-migration-safety-engine |
|
|
108
|
+
|
|
96
109
|
## Risk Assessment
|
|
97
110
|
- Overall risk: <level>
|
|
98
111
|
- Key risk factors: <list>
|
|
@@ -130,13 +143,16 @@ Write `.engineering-intelligence/reports/IMP-XXX-<slug>.md`:
|
|
|
130
143
|
- [ ] Scope is explicitly stated (not assumed)
|
|
131
144
|
- [ ] Graph inputs are listed (consulted, refreshed, or missing)
|
|
132
145
|
- [ ] Direct and indirect impact are separated
|
|
146
|
+
- [ ] Type-level dependencies are traced for typed languages
|
|
147
|
+
- [ ] API and schema/query impact are classified when relevant
|
|
133
148
|
- [ ] Risk score is justified with evidence
|
|
134
149
|
- [ ] Validation requirements are specific (not generic)
|
|
135
150
|
- [ ] Report ends with the "did not modify product code" statement
|
|
136
151
|
|
|
137
152
|
## Cross-References
|
|
138
153
|
|
|
139
|
-
- Depends on: `change-detection-engine`, `graph-engine`, `git-intelligence-engine`
|
|
154
|
+
- Depends on: `change-detection-engine`, `graph-engine`, `git-intelligence-engine`, `type-safety-engine`
|
|
140
155
|
- Consults: `data-flow-graph.json` (for data pipeline impact)
|
|
156
|
+
- Consults: `api-backward-compatibility-engine`, `database-migration-safety-engine` when contracts or schemas change
|
|
141
157
|
- Used by: `engineering-intelligence-skill`, `incremental-sync-engine`, `analyze-impact` workflow
|
|
142
158
|
- Consumed by: `engineering-change-review`, `testing-intelligence-engine`
|
|
@@ -38,7 +38,11 @@ Systematically audit every significant claim in `knowledge-base/*.md` against ac
|
|
|
38
38
|
- Distribution across statuses
|
|
39
39
|
- Overall document confidence: High (>90% ✅), Medium (70-90% ✅), Low (<70% ✅)
|
|
40
40
|
|
|
41
|
-
5. **
|
|
41
|
+
5. **Cross-Document Consistency Check** — Extract key claims from all knowledge documents and compare claims across documents for contradictions, such as different framework versions, conflicting ownership, incompatible API signatures, or mismatched data model descriptions.
|
|
42
|
+
|
|
43
|
+
6. **Auto-Heal Unsupported Claims** — During explicit synchronization workflows only, re-extract the smallest affected section for unsupported or stale claims, update that section with fresh evidence citations, and record the heal. Escalate claims requiring product judgment instead of guessing.
|
|
44
|
+
|
|
45
|
+
7. **Write Report** — Generate `knowledge-base/15-validation-report.md`
|
|
42
46
|
|
|
43
47
|
## Output Format
|
|
44
48
|
|
|
@@ -75,6 +79,16 @@ Scope: <documents validated>
|
|
|
75
79
|
|
|
76
80
|
- <areas where code has diverged from docs>
|
|
77
81
|
|
|
82
|
+
## Cross-Document Contradictions
|
|
83
|
+
|
|
84
|
+
| Claim A | Document A | Claim B | Document B | Suggested Canonical Resolution |
|
|
85
|
+
|---|---|---|---|---|
|
|
86
|
+
|
|
87
|
+
## Auto-Heal Actions
|
|
88
|
+
|
|
89
|
+
| Document | Section | Action | Evidence | Result |
|
|
90
|
+
|---|---|---|---|---|
|
|
91
|
+
|
|
78
92
|
## Recommended Actions
|
|
79
93
|
|
|
80
94
|
- <specific documents needing update>
|
|
@@ -83,8 +97,8 @@ Scope: <documents validated>
|
|
|
83
97
|
|
|
84
98
|
## Rules
|
|
85
99
|
|
|
86
|
-
- Do NOT silently rewrite knowledge documents during validation
|
|
87
|
-
-
|
|
100
|
+
- Do NOT silently rewrite knowledge documents during read-only validation
|
|
101
|
+
- Auto-heal unsupported claims only as part of an explicit synchronization workflow and record every edit
|
|
88
102
|
- Report honestly — a low-confidence score is valuable information
|
|
89
103
|
- Flag areas where you lack sufficient context to validate
|
|
90
104
|
|
|
@@ -94,6 +108,8 @@ Scope: <documents validated>
|
|
|
94
108
|
- [ ] Each finding has an evidence path or explicit "no evidence found"
|
|
95
109
|
- [ ] Summary table has accurate counts
|
|
96
110
|
- [ ] Stale documentation risks are identified
|
|
111
|
+
- [ ] Cross-document contradictions are listed or explicitly absent
|
|
112
|
+
- [ ] Auto-heal actions are recorded when synchronization mode is active
|
|
97
113
|
- [ ] Recommended actions are actionable
|
|
98
114
|
|
|
99
115
|
## Cross-References
|
|
@@ -22,6 +22,7 @@ Maintain durable, long-lived engineering memory. Memory is for decisions and pat
|
|
|
22
22
|
| `coding-patterns.md` | Recurring conventions, idioms, naming rules, file organization | Refactors that establish new patterns, convention changes |
|
|
23
23
|
| `project-constraints.md` | Performance budgets, compatibility requirements, SLA targets, regulatory | Infrastructure changes, new compliance requirements |
|
|
24
24
|
| `technology-decisions.md` | Stack choices, framework versions, deprecation timelines, migration plans | Dependency updates, technology migrations |
|
|
25
|
+
| `regression-patterns.md` | Recurring bug categories and proven regression test templates | Bugfixes that reveal reusable failure patterns |
|
|
25
26
|
|
|
26
27
|
## Staleness Detection Rules
|
|
27
28
|
|
|
@@ -58,12 +59,25 @@ A memory entry may be stale if:
|
|
|
58
59
|
- Is this a decision or just an implementation detail?
|
|
59
60
|
- Is this captured better elsewhere (knowledge-base, context)?
|
|
60
61
|
|
|
62
|
+
5. **Memory Pruning Audit** — During initialization, major refactors, or explicit sync:
|
|
63
|
+
- Flag entries where referenced code no longer exists
|
|
64
|
+
- Flag entries superseded for more than six months
|
|
65
|
+
- Flag patterns contradicted by current `convention-detector` output
|
|
66
|
+
- Flag decisions that conflict with accepted ADRs
|
|
67
|
+
- Propose retirement with evidence; do not delete historical decisions silently
|
|
68
|
+
|
|
69
|
+
6. **Regression Pattern Update** — For bugfixes:
|
|
70
|
+
- Classify the bug category (pagination boundary, null/empty collection, race condition, permission bypass, retry/idempotency, schema drift, API contract mismatch, etc.)
|
|
71
|
+
- Match against `.engineering-intelligence/memory/regression-patterns.md`
|
|
72
|
+
- Add or update a reusable regression test template when the pattern is durable
|
|
73
|
+
|
|
61
74
|
## Rules
|
|
62
75
|
|
|
63
76
|
- **Durable only**: Do not store transient implementation notes or unverified assumptions
|
|
64
77
|
- **Evidence required**: Every entry must cite source evidence
|
|
65
78
|
- **Leave unchanged when appropriate**: Most changes do NOT affect durable memory — it's correct to update nothing
|
|
66
79
|
- **Status tracking**: Mark superseded decisions as `Superseded` rather than deleting them — history matters
|
|
80
|
+
- **Pruning with evidence**: Retire or deprecate stale memory only with evidence and status updates
|
|
67
81
|
- **No product code**: Memory synchronization never modifies product code
|
|
68
82
|
|
|
69
83
|
## Quality Gates
|
|
@@ -73,6 +87,8 @@ A memory entry may be stale if:
|
|
|
73
87
|
- [ ] New entries are truly durable (not transient implementation details)
|
|
74
88
|
- [ ] All entries have evidence citations
|
|
75
89
|
- [ ] Superseded entries are marked, not deleted
|
|
90
|
+
- [ ] Memory pruning audit was run for initialization and major refactors
|
|
91
|
+
- [ ] Regression patterns were checked for bugfixes
|
|
76
92
|
|
|
77
93
|
## Cross-References
|
|
78
94
|
|
|
@@ -14,7 +14,8 @@ Use this skill when a change affects deployment, infrastructure, runtime behavio
|
|
|
14
14
|
2. Define release strategy: normal deploy, canary, blue/green, feature flag, or manual rollout.
|
|
15
15
|
3. Define rollback plan and data recovery constraints.
|
|
16
16
|
4. Define observability: metrics, traces, logs, dashboards, alerts, and ownership.
|
|
17
|
-
5.
|
|
17
|
+
5. Inject or flag observability gaps for new functions, endpoints, jobs, service interactions, and business events.
|
|
18
|
+
6. Confirm production readiness with objective gates.
|
|
18
19
|
|
|
19
20
|
## Outputs
|
|
20
21
|
|
|
@@ -34,16 +35,24 @@ Write `.engineering-intelligence/aidlc/operations/operations-readiness.md`:
|
|
|
34
35
|
| Signal | Source | Threshold | Owner | Runbook |
|
|
35
36
|
|---|---|---|---|---|
|
|
36
37
|
|
|
38
|
+
## Observability Injection
|
|
39
|
+
| New / Changed Path | Entry Log | Exit Log | Trace Span | Error Metric | Business Event | Status |
|
|
40
|
+
|---|---|---|---|---|---|---|
|
|
41
|
+
|
|
37
42
|
## Rollback
|
|
38
|
-
- Code rollback:
|
|
39
|
-
- Data rollback:
|
|
40
|
-
-
|
|
43
|
+
- Code rollback: `git revert <commit>` or <branch rollback sequence>
|
|
44
|
+
- Data rollback: <down migration / compensating SQL / irreversible approval>
|
|
45
|
+
- Feature flag rollback: <toggle and expected effect>
|
|
46
|
+
- Infrastructure rollback: <IaC rollback sequence>
|
|
47
|
+
- External dependency rollback: <vendor/config rollback>
|
|
41
48
|
|
|
42
49
|
## Readiness Gates
|
|
43
50
|
- [ ] Build passes
|
|
44
51
|
- [ ] Tests pass
|
|
45
52
|
- [ ] Migrations are backward compatible or downtime is approved
|
|
46
53
|
- [ ] Alerts/runbooks exist for changed failure modes
|
|
54
|
+
- [ ] Rollback planner covers code, data, feature flag, and infrastructure rollback for medium+ risk
|
|
55
|
+
- [ ] New endpoints/functions/services have logging, tracing, metrics, and business-event coverage or explicit gaps
|
|
47
56
|
- [ ] Secrets and environment variables are documented securely
|
|
48
57
|
```
|
|
49
58
|
|
|
@@ -52,3 +61,5 @@ Write `.engineering-intelligence/aidlc/operations/operations-readiness.md`:
|
|
|
52
61
|
- Never execute production deployment without explicit user approval.
|
|
53
62
|
- Mark unknown production constraints in `open-questions.md`.
|
|
54
63
|
- For database changes, require backward-compatible migration planning unless downtime is approved.
|
|
64
|
+
- Medium-and-above risk changes require rollback procedures in both `operations-readiness.md` and the CHG record.
|
|
65
|
+
- Irreversible steps require explicit human approval.
|
|
@@ -21,6 +21,13 @@ Act as a detailed Business Analyst and Technical Architect persona. Analyze the
|
|
|
21
21
|
- Identify domain logic in `knowledge-base/` matching the request category
|
|
22
22
|
- Query dependency/service graphs to locate related modules and boundaries
|
|
23
23
|
- Read architecture memory to understand tech constraints and guidelines
|
|
24
|
+
- Scan relevant modules for implicit invariants and dominant implementation constraints before asking questions:
|
|
25
|
+
- retry strategies, timeout values, rate limits, pagination defaults
|
|
26
|
+
- locking/idempotency patterns
|
|
27
|
+
- validation style and error codes
|
|
28
|
+
- logging/tracing conventions
|
|
29
|
+
- framework patterns used in 80% or more of similar code
|
|
30
|
+
- Surface confirmed dominant patterns as constraints in the requirements document.
|
|
24
31
|
|
|
25
32
|
2. **Formulate Scoping Questions** — Identify gaps, ambiguities, and edge cases. Ask the user 3 to 5 targeted questions covering:
|
|
26
33
|
- **Business Value & Scope**: What are the limits of the MVP?
|
|
@@ -47,6 +54,7 @@ The final requirements document `knowledge-base/19-requirements.md` must follow
|
|
|
47
54
|
- **Logic & Configuration**: <Exact details on implementation strategy, libraries, config parameters>
|
|
48
55
|
- **System Boundaries & Dependencies**: <Files/modules affected based on graph mappings>
|
|
49
56
|
- **Edge Cases & Failure Modes**: <Exactly how to handle failures, retries, limits>
|
|
57
|
+
- **Implicit Codebase Constraints**: <Dominant existing patterns discovered from relevant modules, with evidence paths>
|
|
50
58
|
|
|
51
59
|
## 3. Agile Delivery Model
|
|
52
60
|
- **Epic**: <epic or initiative>
|
|
@@ -81,5 +89,6 @@ Provide the exact prompt to pass to the coding agent to execute this change:
|
|
|
81
89
|
- [ ] Clear business goals and technical boundaries defined.
|
|
82
90
|
- [ ] At least 3 scoping questions asked and logged.
|
|
83
91
|
- [ ] User story, acceptance criteria, priority, dependencies, and Ready/Done gates are documented.
|
|
92
|
+
- [ ] Implicit codebase constraints were mined and cited before questions were finalized.
|
|
84
93
|
- [ ] Finalized prompt maps exact files and modules.
|
|
85
94
|
- [ ] Output does not contain any code modification.
|
|
@@ -32,8 +32,13 @@ Identify security risks through systematic, evidence-backed analysis of dependen
|
|
|
32
32
|
- Check version against known CVE databases (cite CVE IDs)
|
|
33
33
|
- Flag dependencies with no updates in >12 months (abandonment risk)
|
|
34
34
|
- Identify transitive dependencies with known vulnerabilities
|
|
35
|
+
- Check license compatibility against the project license
|
|
36
|
+
- Check maintenance health (days since last release/commit when available)
|
|
37
|
+
- For frontend packages, estimate bundle size impact or require a bundle-size check
|
|
35
38
|
- Note severity: critical, high, medium, low
|
|
36
39
|
|
|
40
|
+
Trigger this targeted dependency risk review whenever manifests add a new package. Critical CVEs block completion before commit. Unknown license or maintenance data must be recorded as risk, not ignored.
|
|
41
|
+
|
|
37
42
|
2. **Auth/Authz Pattern Review** — Analyze authentication and authorization:
|
|
38
43
|
|
|
39
44
|
| Check | What to Look For |
|
|
@@ -104,9 +109,9 @@ Write `knowledge-base/20-security-assessment.md`:
|
|
|
104
109
|
- Overall risk: low | medium | high | critical
|
|
105
110
|
|
|
106
111
|
## Dependency Vulnerabilities
|
|
107
|
-
| Dependency | Version | CVE | Severity | Fix Available |
|
|
108
|
-
|
|
109
|
-
| lodash | 4.17.15 | CVE-2020-8203 | High | Yes (4.17.21) |
|
|
112
|
+
| Dependency | Version | CVE | Severity | Fix Available | License | Maintenance | Bundle Impact |
|
|
113
|
+
|---|---|---|---|---|---|---|---|
|
|
114
|
+
| lodash | 4.17.15 | CVE-2020-8203 | High | Yes (4.17.21) | MIT | maintained | n/a |
|
|
110
115
|
|
|
111
116
|
## Auth/Authz Assessment
|
|
112
117
|
- Mechanism: <description>
|
|
@@ -149,6 +154,8 @@ Write `knowledge-base/20-security-assessment.md`:
|
|
|
149
154
|
## Quality Gates
|
|
150
155
|
|
|
151
156
|
- [ ] All dependency vulnerabilities cite CVE IDs and affected versions
|
|
157
|
+
- [ ] New package additions include CVE, license, maintenance, and bundle-size risk where applicable
|
|
158
|
+
- [ ] Critical CVEs block completion
|
|
152
159
|
- [ ] Auth/authz review covers both authentication and authorization
|
|
153
160
|
- [ ] Secrets scan does not expose actual secret values in the report
|
|
154
161
|
- [ ] OWASP Top 10 items each have a status with evidence or rationale
|
|
@@ -96,6 +96,15 @@ This capability does not modify product code.
|
|
|
96
96
|
- If no freshness comment exists, add it after the document title (first `#` heading)
|
|
97
97
|
- Never modify document content — only metadata comments
|
|
98
98
|
|
|
99
|
+
Also add section-level confidence metadata to each H2 section when evidence can be resolved:
|
|
100
|
+
|
|
101
|
+
```markdown
|
|
102
|
+
## Authentication Flow
|
|
103
|
+
<!-- section-confidence: level=high, score=91, verified_at=2026-06-04T10:00:00Z, evidence=src/auth/middleware.ts -->
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Agents must prefer high/medium confidence sections and skip low-confidence sections unless they verify the section against source first.
|
|
107
|
+
|
|
99
108
|
6. **Determine sync actions** — Based on freshness scores, determine required actions:
|
|
100
109
|
|
|
101
110
|
| Condition | Action |
|
|
@@ -161,6 +170,14 @@ This capability does not modify product code.
|
|
|
161
170
|
- The list of changed source files
|
|
162
171
|
- The staleness reason (file modified, file deleted, file moved, age)
|
|
163
172
|
|
|
173
|
+
9. **Pre-Implementation Drift Trigger** — When invoked by `engineering-intelligence-skill`, return a blocking drift decision:
|
|
174
|
+
|
|
175
|
+
| Condition | Decision |
|
|
176
|
+
|---|---|
|
|
177
|
+
| All scoped artifacts >= 60 | Proceed |
|
|
178
|
+
| Any scoped artifact 50-59 | Sync before implementation or mark stale risk in impact report |
|
|
179
|
+
| Any scoped artifact < 50 | Block implementation until incremental sync or explicit user risk acceptance |
|
|
180
|
+
|
|
164
181
|
## Quality Gates
|
|
165
182
|
|
|
166
183
|
- [ ] All knowledge base, memory, and context documents are inventoried
|
|
@@ -169,10 +186,12 @@ This capability does not modify product code.
|
|
|
169
186
|
- [ ] Freshness scores follow the defined calculation formula
|
|
170
187
|
- [ ] Score interpretation matches the defined status table
|
|
171
188
|
- [ ] Freshness metadata is injected without modifying document content
|
|
189
|
+
- [ ] Section-level confidence metadata is added for H2 sections where evidence can be resolved
|
|
172
190
|
- [ ] FRESHNESS-report.md exists at `.engineering-intelligence/reports/FRESHNESS-report.md`
|
|
173
191
|
- [ ] Structural changes (deleted/moved files) are detected and reported
|
|
174
192
|
- [ ] Documents below threshold are queued for incremental sync
|
|
175
193
|
- [ ] Module-level aggregation is included in the report
|
|
194
|
+
- [ ] Pre-implementation drift decision is returned when scoped to a planned change
|
|
176
195
|
|
|
177
196
|
## Cross-References
|
|
178
197
|
|
|
@@ -13,6 +13,8 @@ Determine the minimum sufficient test coverage for a change based on risk assess
|
|
|
13
13
|
- Impact report (`.engineering-intelligence/reports/IMP-XXX-*.md`)
|
|
14
14
|
- Existing test patterns in the repository
|
|
15
15
|
- Change classification (feature, bugfix, refactor, etc.)
|
|
16
|
+
- Coverage reports when available (`coverage-final.json`, `coverage.xml`, `lcov.info`, `go test -cover`, pytest coverage output)
|
|
17
|
+
- Agile acceptance criteria from `.engineering-intelligence/aidlc/agile/acceptance-criteria.md`
|
|
16
18
|
|
|
17
19
|
## Risk-Based Test Selection Matrix
|
|
18
20
|
|
|
@@ -29,11 +31,18 @@ Determine the minimum sufficient test coverage for a change based on risk assess
|
|
|
29
31
|
- Identify test framework(s) in use (Jest, Mocha, pytest, Go testing, etc.)
|
|
30
32
|
- Locate test directories and naming patterns
|
|
31
33
|
- Map tests to source files (by convention or configuration)
|
|
32
|
-
-
|
|
34
|
+
- Parse real coverage reports where available:
|
|
35
|
+
- Jest/Vitest/Istanbul JSON (`coverage-final.json`)
|
|
36
|
+
- LCOV (`lcov.info`)
|
|
37
|
+
- pytest `coverage.xml`
|
|
38
|
+
- Go `go test -cover` output
|
|
39
|
+
- Map uncovered lines to modules and critical paths
|
|
33
40
|
|
|
34
41
|
2. **Map Change to Tests** — Using the impact report:
|
|
35
42
|
- List source files/functions changed
|
|
36
43
|
- Find existing tests covering those files
|
|
44
|
+
- Build a source-line to test-file map from coverage where possible
|
|
45
|
+
- Run or recommend targeted impacted tests first, then broader validation
|
|
37
46
|
- Identify tests that should exist but don't (coverage gaps)
|
|
38
47
|
|
|
39
48
|
3. **Determine Required Tests** — Using the risk matrix above:
|
|
@@ -56,6 +65,15 @@ Determine the minimum sufficient test coverage for a change based on risk assess
|
|
|
56
65
|
- Negative-path and permission tests for security changes
|
|
57
66
|
- Data migration and rollback tests for schema changes
|
|
58
67
|
|
|
68
|
+
**For API/service integration changes**:
|
|
69
|
+
- Generate integration test stubs from `knowledge-base/04-api-documentation.md` and `service-graph.json`
|
|
70
|
+
- Cover happy path, auth failure, downstream timeout, and validation error
|
|
71
|
+
- Match existing test framework, describe/it nesting, mock setup, assertion library, and factory style
|
|
72
|
+
|
|
73
|
+
**For complex validators or combinatorial logic**:
|
|
74
|
+
- Recommend property-based tests (`fast-check`, `hypothesis`, `proptest`, or project equivalent)
|
|
75
|
+
- Include seed examples and rationale
|
|
76
|
+
|
|
59
77
|
4. **Identify Coverage Gaps** — Report:
|
|
60
78
|
- Critical paths with no test coverage
|
|
61
79
|
- Changed behavior with no corresponding test
|
|
@@ -66,6 +84,10 @@ Determine the minimum sufficient test coverage for a change based on risk assess
|
|
|
66
84
|
- Test cases to write (describe what, not write the test code)
|
|
67
85
|
- Validation commands to run
|
|
68
86
|
|
|
87
|
+
6. **Verify Acceptance Criteria** — Produce an Acceptance Criteria Verification Matrix mapping every criterion to automated tests, manual verification, or an unavailable check. Missing mappings block Definition of Done.
|
|
88
|
+
|
|
89
|
+
7. **Record Regression Patterns** — For bugfixes, compare against `.engineering-intelligence/memory/regression-patterns.md`. Reuse matching templates or add a new durable pattern when a bug category is likely to recur.
|
|
90
|
+
|
|
69
91
|
## Output
|
|
70
92
|
|
|
71
93
|
### Per-Change Testing (in `.changes/CHG-XXX-*.md`)
|
|
@@ -99,6 +121,14 @@ Only update when documenting project-wide testing posture:
|
|
|
99
121
|
## Coverage Gaps
|
|
100
122
|
- <critical untested areas>
|
|
101
123
|
|
|
124
|
+
## Evidence-Based Coverage
|
|
125
|
+
| Source File | Changed Lines | Covering Tests | Uncovered Lines |
|
|
126
|
+
|---|---|---|---|
|
|
127
|
+
|
|
128
|
+
## Acceptance Criteria Verification Matrix
|
|
129
|
+
| Criterion | Covering Test / Manual Check | Result |
|
|
130
|
+
|---|---|---|
|
|
131
|
+
|
|
102
132
|
## Running Tests
|
|
103
133
|
- All tests: `<command>`
|
|
104
134
|
- Specific suite: `<command>`
|
|
@@ -110,6 +140,9 @@ Only update when documenting project-wide testing posture:
|
|
|
110
140
|
- Recommend tests proportional to risk — don't mandate full-suite runs for low-risk changes
|
|
111
141
|
- Always note when validation was not actually run (only recommended)
|
|
112
142
|
- Never claim test coverage without checking existing tests
|
|
143
|
+
- Prefer real coverage reports over proximity estimates when reports exist
|
|
144
|
+
- Target impacted tests first, then run broader suites according to risk
|
|
145
|
+
- Missing acceptance-criteria mappings block Definition of Done
|
|
113
146
|
- Record test results honestly, including failures
|
|
114
147
|
|
|
115
148
|
## Quality Gates
|
|
@@ -117,7 +150,10 @@ Only update when documenting project-wide testing posture:
|
|
|
117
150
|
- [ ] Impact report was consulted for risk level
|
|
118
151
|
- [ ] Test recommendations match the risk level
|
|
119
152
|
- [ ] Existing test coverage was checked before recommending new tests
|
|
153
|
+
- [ ] Coverage reports were parsed when available
|
|
154
|
+
- [ ] Impacted tests were identified separately from full-suite validation
|
|
120
155
|
- [ ] Coverage gaps in critical paths are flagged
|
|
156
|
+
- [ ] Acceptance criteria are mapped to validation evidence
|
|
121
157
|
|
|
122
158
|
## Cross-References
|
|
123
159
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: type-safety-engine
|
|
3
|
+
description: Validates generated code against the project type system, traces type-level dependencies, and loops on compiler errors until clean or blocked.
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Type Safety Engine
|
|
8
|
+
|
|
9
|
+
Use this skill for TypeScript, Python, Go, Rust, Java, Kotlin, C#, or any project with a declared type checker. It is a blocking gate for generated code in typed projects.
|
|
10
|
+
|
|
11
|
+
## Inputs
|
|
12
|
+
|
|
13
|
+
- Changed files from the impact report or current diff
|
|
14
|
+
- Project manifests and type-check configuration
|
|
15
|
+
- Existing graph artifacts under `.engineering-intelligence/graph/`
|
|
16
|
+
|
|
17
|
+
## Procedure
|
|
18
|
+
|
|
19
|
+
1. **Detect Type System**
|
|
20
|
+
- TypeScript: `tsconfig.json`, `package.json`, `tsc`
|
|
21
|
+
- Python: `mypy.ini`, `pyproject.toml`, `pyrightconfig.json`, annotations
|
|
22
|
+
- Go: `go.mod`
|
|
23
|
+
- Rust: `Cargo.toml`
|
|
24
|
+
- Java/Kotlin/C#: project build files
|
|
25
|
+
|
|
26
|
+
2. **Trace Type Dependencies**
|
|
27
|
+
- TypeScript: run or recommend `tsc --listFilesOnly` and use the TypeScript compiler API when available to identify interface, type alias, enum, generic, declaration, and ambient type dependencies.
|
|
28
|
+
- Python: run or recommend `mypy --show-column-numbers` or `pyright` and trace annotation/import relationships.
|
|
29
|
+
- Add high-confidence `imports-type` edges to `.engineering-intelligence/graph/dependency-graph.json` for type-only dependencies, with evidence paths.
|
|
30
|
+
|
|
31
|
+
3. **Run Type Check**
|
|
32
|
+
- Use the project’s existing command first (`npm run typecheck`, `pnpm typecheck`, `mypy`, `pyright`, `go test`, `cargo check`, etc.).
|
|
33
|
+
- If no command exists, use the safest detected command and record that it was inferred.
|
|
34
|
+
|
|
35
|
+
4. **Map Errors**
|
|
36
|
+
Write a Type Error Map in the active unit build/test summary:
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
## Type Error Map
|
|
40
|
+
| File | Line | Column | Symbol | Error | Proposed Fix | Status |
|
|
41
|
+
|---|---:|---:|---|---|---|---|
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
5. **Fix Loop**
|
|
45
|
+
- Fix targeted type errors only.
|
|
46
|
+
- Rerun the relevant type check.
|
|
47
|
+
- Continue until clean or a blocker is recorded.
|
|
48
|
+
|
|
49
|
+
## Output
|
|
50
|
+
|
|
51
|
+
Write or update `.engineering-intelligence/aidlc/construction/<unit>/build-and-test/type-safety-summary.md`:
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
# Type Safety Summary: <unit>
|
|
55
|
+
|
|
56
|
+
## Commands
|
|
57
|
+
- `<command>`: <passed|failed|unavailable>
|
|
58
|
+
|
|
59
|
+
## Type Dependency Edges
|
|
60
|
+
- `imports-type`: <from> -> <to> (evidence: <path>)
|
|
61
|
+
|
|
62
|
+
## Type Error Map
|
|
63
|
+
<table>
|
|
64
|
+
|
|
65
|
+
## Result
|
|
66
|
+
<clean|blocked|not applicable>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Rules
|
|
70
|
+
|
|
71
|
+
- Never mark typed code complete while type errors remain unaddressed.
|
|
72
|
+
- If a type checker is unavailable, record `not applicable` with evidence rather than silently skipping.
|
|
73
|
+
- Type-only dependencies must be included in impact analysis for typed languages.
|
|
74
|
+
|
|
75
|
+
## Quality Gates
|
|
76
|
+
|
|
77
|
+
- [ ] Type checker command was detected or explicitly unavailable
|
|
78
|
+
- [ ] Type-level dependencies were traced for shared types/interfaces
|
|
79
|
+
- [ ] `imports-type` graph edges were added or confirmed unnecessary
|
|
80
|
+
- [ ] Type Error Map exists for failures
|
|
81
|
+
- [ ] Final type status is clean, blocked with evidence, or not applicable
|
|
@@ -14,10 +14,11 @@ Use the `engineering-intelligence-skill` capability for the user's accompanying
|
|
|
14
14
|
4. **Plan Agile + AI-DLC Work** — Update backlog, acceptance criteria, Definition of Ready, `.engineering-intelligence/aidlc/execution-plan.md`, and `aidlc-state.md`
|
|
15
15
|
5. **Implement** — Make the requested code changes following established patterns
|
|
16
16
|
6. **Test** — Add/update tests proportional to risk; execute and record results
|
|
17
|
-
7. **
|
|
18
|
-
8. **
|
|
19
|
-
9. **
|
|
20
|
-
10. **
|
|
17
|
+
7. **Safety Gates** — Run freshness, type safety, API compatibility, migration safety, convention, acceptance-mapping, dependency-risk, and rollback gates when applicable
|
|
18
|
+
8. **Validate** — Run available linters, type checks, test suites, scans, and architecture checks as environmental backpressure
|
|
19
|
+
9. **Sync Intelligence** — Incrementally update only affected knowledge, memory, context, event, graph artifacts, and AI-DLC artifacts
|
|
20
|
+
10. **Record Change** — Write `.changes/CHG-XXX-<summary>.md` referencing related reports and acceptance verification
|
|
21
|
+
11. **Review Gate** — For high-risk changes, run engineering-change review before completion
|
|
21
22
|
|
|
22
23
|
## Completion Report
|
|
23
24
|
|
|
@@ -28,5 +29,6 @@ Finish with:
|
|
|
28
29
|
- Synchronized intelligence artifacts
|
|
29
30
|
- Related reports (IMP-XXX, REV-XXX)
|
|
30
31
|
- Agile artifacts updated (backlog, stories, acceptance criteria, Definition of Done)
|
|
32
|
+
- Safety gates run (freshness, type, API, migration, acceptance mapping)
|
|
31
33
|
- Unresolved risks or follow-ups
|
|
32
34
|
- AI-DLC breadcrumb (`AI-DLC: <phase> -> <stage> -> <status>`)
|
|
@@ -30,8 +30,9 @@ Analyzes this repository thoroughly without changing product code. Produces a co
|
|
|
30
30
|
4. **Generate Memory** — Extract durable decisions and patterns
|
|
31
31
|
5. **Generate Context** — Create concise AI navigation maps
|
|
32
32
|
6. **Build Graphs** — Generate evidence-backed architecture graphs
|
|
33
|
-
7. **Initialize AI-DLC + Agile** — Create `aidlc-state.md`, `audit.md`, `open-questions.md`, `execution-plan.md`, Agile delivery artifacts, and `construction/cross-unit-discoveries.md`
|
|
34
|
-
8. **
|
|
33
|
+
7. **Initialize AI-DLC + Agile** — Create `aidlc-state.md`, `audit.md`, `open-questions.md`, `execution-plan.md`, `checkpoints.md`, Agile delivery artifacts, and `construction/cross-unit-discoveries.md`
|
|
34
|
+
8. **Audit Memory** — Run memory pruning audit and initialize `.engineering-intelligence/memory/regression-patterns.md`
|
|
35
|
+
9. **Record** — Write initialization change record
|
|
35
36
|
|
|
36
37
|
## Important
|
|
37
38
|
|