engineering-intelligence 1.4.0 → 1.6.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.
Files changed (30) hide show
  1. package/README.md +5 -0
  2. package/dist/adapters/index.d.ts.map +1 -1
  3. package/dist/adapters/index.js +53 -26
  4. package/dist/adapters/index.js.map +1 -1
  5. package/dist/templates.d.ts +1 -1
  6. package/dist/templates.d.ts.map +1 -1
  7. package/dist/templates.js +37 -0
  8. package/dist/templates.js.map +1 -1
  9. package/dist/visualizer/index.d.ts.map +1 -1
  10. package/dist/visualizer/index.js +107 -0
  11. package/dist/visualizer/index.js.map +1 -1
  12. package/package.json +1 -1
  13. package/templates/canonical/rules/engineering-intelligence.md +4 -1
  14. package/templates/canonical/skills/adr-compliance-checker/SKILL.md +43 -0
  15. package/templates/canonical/skills/api-snapshot-testing-engine/SKILL.md +75 -0
  16. package/templates/canonical/skills/context-budget-optimizer/SKILL.md +97 -0
  17. package/templates/canonical/skills/context-sync-engine/SKILL.md +12 -1
  18. package/templates/canonical/skills/contract-test-generator/SKILL.md +40 -0
  19. package/templates/canonical/skills/convention-detector/SKILL.md +16 -2
  20. package/templates/canonical/skills/dead-code-detector/SKILL.md +34 -0
  21. package/templates/canonical/skills/engineering-change-review/SKILL.md +17 -2
  22. package/templates/canonical/skills/engineering-intelligence-skill/SKILL.md +36 -9
  23. package/templates/canonical/skills/environment-variable-auditor/SKILL.md +47 -0
  24. package/templates/canonical/skills/impact-analysis-engine/SKILL.md +10 -5
  25. package/templates/canonical/skills/llm-prompt-injection-guard/SKILL.md +47 -0
  26. package/templates/canonical/skills/memory-sync-engine/SKILL.md +4 -0
  27. package/templates/canonical/skills/operations-readiness-engine/SKILL.md +2 -0
  28. package/templates/canonical/skills/security-audit-engine/SKILL.md +20 -0
  29. package/templates/canonical/skills/testing-intelligence-engine/SKILL.md +1 -1
  30. package/templates/canonical/workflows/engineering-intelligence.md +2 -2
@@ -95,6 +95,14 @@ Identify security risks through systematic, evidence-backed analysis of dependen
95
95
 
96
96
  6. **Generate Assessment** — Write findings to `knowledge-base/20-security-assessment.md`.
97
97
 
98
+ 7. **Targeted Dependency-Risk Output** — During implementation runs triggered by new or upgraded packages, write a lighter unit artifact instead of conflating the result with a full audit:
99
+
100
+ ```text
101
+ .engineering-intelligence/aidlc/construction/<unit>/dependency-risk-summary.md
102
+ ```
103
+
104
+ This summary must include CVE, license, maintenance, and bundle impact findings for changed dependencies. Critical CVEs block completion.
105
+
98
106
  ## Output Format
99
107
 
100
108
  Write `knowledge-base/20-security-assessment.md`:
@@ -143,6 +151,18 @@ Write `knowledge-base/20-security-assessment.md`:
143
151
  *This security assessment did not modify product code.*
144
152
  ```
145
153
 
154
+ ### Targeted Dependency Risk Summary
155
+
156
+ ```markdown
157
+ # Dependency Risk Summary: <unit>
158
+
159
+ | Package | Change | CVE Risk | License | Maintenance | Bundle Impact | Decision |
160
+ |---|---|---|---|---|---|---|
161
+
162
+ ## Blocking Findings
163
+ - <critical CVE or policy violation>
164
+ ```
165
+
146
166
  ## Rules
147
167
 
148
168
  - Never assume a vulnerability exists without evidence — cite file paths and line numbers
@@ -86,7 +86,7 @@ Determine the minimum sufficient test coverage for a change based on risk assess
86
86
 
87
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
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.
89
+ 7. **Propose Regression Patterns** — For bugfixes, compare against `.engineering-intelligence/memory/regression-patterns.md`. Reuse matching templates. If a new recurring bug category is found, propose a durable pattern to `memory-sync-engine`; Memory Sync owns durable persistence.
90
90
 
91
91
  ## Output
92
92
 
@@ -14,7 +14,7 @@ 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. **Safety Gates** — Run freshness, type safety, API compatibility, migration safety, convention, acceptance-mapping, dependency-risk, and rollback gates when applicable
17
+ 7. **Safety Gates** — Run freshness, type safety, API compatibility, API snapshot replay, migration safety, convention, acceptance-mapping, dependency-risk, env-var, ADR compliance, LLM prompt-injection, and rollback gates when applicable
18
18
  8. **Validate** — Run available linters, type checks, test suites, scans, and architecture checks as environmental backpressure
19
19
  9. **Sync Intelligence** — Incrementally update only affected knowledge, memory, context, event, graph artifacts, and AI-DLC artifacts
20
20
  10. **Record Change** — Write `.changes/CHG-XXX-<summary>.md` referencing related reports and acceptance verification
@@ -29,6 +29,6 @@ Finish with:
29
29
  - Synchronized intelligence artifacts
30
30
  - Related reports (IMP-XXX, REV-XXX)
31
31
  - Agile artifacts updated (backlog, stories, acceptance criteria, Definition of Done)
32
- - Safety gates run (freshness, type, API, migration, acceptance mapping)
32
+ - Safety gates run (freshness, type, API, snapshots, migration, dependency, env, ADR, LLM, acceptance mapping, rollback)
33
33
  - Unresolved risks or follow-ups
34
34
  - AI-DLC breadcrumb (`AI-DLC: <phase> -> <stage> -> <status>`)