mindforge-cc 10.0.3 → 10.7.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 (287) hide show
  1. package/.mindforge/config.json +25 -2
  2. package/.mindforge/engine/cross-model-eval.md +74 -0
  3. package/.mindforge/engine/proactive/signal-detector.md +60 -0
  4. package/.mindforge/engine/proactive/suggestion-engine.md +100 -0
  5. package/.mindforge/personas/agent-architect.md +57 -0
  6. package/.mindforge/personas/agent-evaluator.md +162 -0
  7. package/.mindforge/personas/agent-memory-designer.md +157 -0
  8. package/.mindforge/personas/agent-ops-engineer.md +120 -0
  9. package/.mindforge/personas/agent-orchestrator.md +112 -0
  10. package/.mindforge/personas/ai-economist.md +57 -0
  11. package/.mindforge/personas/ai-safety-engineer.md +57 -0
  12. package/.mindforge/personas/analytics-engineer.md +57 -0
  13. package/.mindforge/personas/anti-pattern-hunter.md +61 -0
  14. package/.mindforge/personas/api-gateway-designer.md +132 -0
  15. package/.mindforge/personas/auth-engineer.md +112 -0
  16. package/.mindforge/personas/build-engineer.md +57 -0
  17. package/.mindforge/personas/business-analyst.md +56 -0
  18. package/.mindforge/personas/cache-architect.md +100 -0
  19. package/.mindforge/personas/causal-scientist.md +57 -0
  20. package/.mindforge/personas/cdn-architect.md +118 -0
  21. package/.mindforge/personas/change-agent.md +104 -0
  22. package/.mindforge/personas/code-narrator.md +52 -0
  23. package/.mindforge/personas/codegen-specialist.md +68 -0
  24. package/.mindforge/personas/communication-architect.md +102 -0
  25. package/.mindforge/personas/compliance-engineer.md +96 -0
  26. package/.mindforge/personas/consensus-engineer.md +116 -0
  27. package/.mindforge/personas/contract-tester.md +60 -192
  28. package/.mindforge/personas/data-architect.md +108 -0
  29. package/.mindforge/personas/data-mesh-architect.md +57 -0
  30. package/.mindforge/personas/data-pipeline-architect.md +120 -0
  31. package/.mindforge/personas/de-sloppifier.md +60 -0
  32. package/.mindforge/personas/debt-manager.md +66 -0
  33. package/.mindforge/personas/decision-architect.md +82 -51
  34. package/.mindforge/personas/deployment-captain.md +74 -0
  35. package/.mindforge/personas/design-system-lead.md +112 -0
  36. package/.mindforge/personas/dmux-orchestrator.md +75 -0
  37. package/.mindforge/personas/dx-engineer.md +96 -0
  38. package/.mindforge/personas/ecommerce-engineer.md +57 -0
  39. package/.mindforge/personas/edge-engineer.md +94 -0
  40. package/.mindforge/personas/edtech-architect.md +106 -0
  41. package/.mindforge/personas/embedding-architect.md +57 -0
  42. package/.mindforge/personas/environment-engineer.md +57 -0
  43. package/.mindforge/personas/eval-judge.md +55 -0
  44. package/.mindforge/personas/event-architect.md +102 -0
  45. package/.mindforge/personas/experiment-designer.md +138 -0
  46. package/.mindforge/personas/feature-store-engineer.md +57 -0
  47. package/.mindforge/personas/finops-analyst.md +66 -0
  48. package/.mindforge/personas/fintech-architect.md +57 -0
  49. package/.mindforge/personas/flutter-engineer.md +104 -0
  50. package/.mindforge/personas/gaming-engineer.md +57 -0
  51. package/.mindforge/personas/graphql-designer.md +73 -0
  52. package/.mindforge/personas/healthcare-engineer.md +57 -0
  53. package/.mindforge/personas/hiring-strategist.md +105 -0
  54. package/.mindforge/personas/hitl-architect.md +165 -0
  55. package/.mindforge/personas/i18n-architect.md +69 -0
  56. package/.mindforge/personas/iot-architect.md +105 -0
  57. package/.mindforge/personas/knowledge-curator.md +139 -0
  58. package/.mindforge/personas/knowledge-engineer.md +57 -0
  59. package/.mindforge/personas/lakehouse-architect.md +57 -0
  60. package/.mindforge/personas/llm-orchestrator.md +57 -0
  61. package/.mindforge/personas/logistics-architect.md +106 -0
  62. package/.mindforge/personas/market-analyst.md +53 -0
  63. package/.mindforge/personas/marketplace-engineer.md +105 -0
  64. package/.mindforge/personas/mcp-designer.md +54 -0
  65. package/.mindforge/personas/meeting-designer.md +104 -0
  66. package/.mindforge/personas/mentorship-lead.md +106 -0
  67. package/.mindforge/personas/migration-architect.md +57 -0
  68. package/.mindforge/personas/ml-ops-engineer.md +101 -0
  69. package/.mindforge/personas/mobile-architect.md +105 -0
  70. package/.mindforge/personas/mobile-security-engineer.md +106 -0
  71. package/.mindforge/personas/multi-tenancy-architect.md +71 -0
  72. package/.mindforge/personas/multimodal-engineer.md +57 -0
  73. package/.mindforge/personas/offline-specialist.md +105 -0
  74. package/.mindforge/personas/onboarding-navigator.md +63 -0
  75. package/.mindforge/personas/payments-engineer.md +135 -0
  76. package/.mindforge/personas/pipeline-engineer.md +115 -0
  77. package/.mindforge/personas/platform-engineer.md +97 -0
  78. package/.mindforge/personas/platform-lead.md +57 -0
  79. package/.mindforge/personas/privacy-engineer.md +57 -0
  80. package/.mindforge/personas/product-owner.md +56 -0
  81. package/.mindforge/personas/productivity-analyst.md +57 -0
  82. package/.mindforge/personas/prompt-architect.md +101 -0
  83. package/.mindforge/personas/proofreader.md +53 -0
  84. package/.mindforge/personas/pwa-architect.md +105 -0
  85. package/.mindforge/personas/quality-scorer.md +63 -0
  86. package/.mindforge/personas/react-native-engineer.md +106 -0
  87. package/.mindforge/personas/resilience-engineer.md +69 -0
  88. package/.mindforge/personas/rfc-architect.md +64 -0
  89. package/.mindforge/personas/saga-orchestrator.md +80 -0
  90. package/.mindforge/personas/secrets-engineer.md +57 -0
  91. package/.mindforge/personas/skill-smith.md +79 -0
  92. package/.mindforge/personas/sre-lead.md +107 -0
  93. package/.mindforge/personas/stream-engineer.md +57 -0
  94. package/.mindforge/personas/streaming-engineer.md +64 -0
  95. package/.mindforge/personas/swarm-templates.json +674 -44
  96. package/.mindforge/personas/system-designer.md +57 -0
  97. package/.mindforge/personas/team-coach.md +120 -0
  98. package/.mindforge/personas/tech-lead-coach.md +103 -0
  99. package/.mindforge/personas/technical-writer-lead.md +111 -0
  100. package/.mindforge/personas/vibe-checker.md +75 -0
  101. package/.mindforge/personas/worktree-manager.md +56 -0
  102. package/.mindforge/personas/zero-trust-engineer.md +113 -0
  103. package/.mindforge/skills/a11y-testing/SKILL.md +143 -0
  104. package/.mindforge/skills/agent-evaluation-framework/SKILL.md +227 -0
  105. package/.mindforge/skills/agent-memory-design/SKILL.md +199 -0
  106. package/.mindforge/skills/agent-orchestration-patterns/SKILL.md +129 -0
  107. package/.mindforge/skills/agent-tool-selection/SKILL.md +204 -0
  108. package/.mindforge/skills/ai-agent-deployment/SKILL.md +176 -0
  109. package/.mindforge/skills/ai-cost-management/SKILL.md +57 -0
  110. package/.mindforge/skills/ai-safety-alignment/SKILL.md +53 -0
  111. package/.mindforge/skills/analytics-instrumentation/SKILL.md +172 -0
  112. package/.mindforge/skills/api-gateway-patterns/SKILL.md +177 -0
  113. package/.mindforge/skills/api-marketplace/SKILL.md +56 -0
  114. package/.mindforge/skills/api-versioning/SKILL.md +100 -0
  115. package/.mindforge/skills/app-store-deployment/SKILL.md +44 -0
  116. package/.mindforge/skills/architecture-tradeoff-analysis/SKILL.md +97 -0
  117. package/.mindforge/skills/audit-logging/SKILL.md +140 -0
  118. package/.mindforge/skills/auth-patterns/SKILL.md +148 -0
  119. package/.mindforge/skills/autonomous-agent-harness/SKILL.md +218 -0
  120. package/.mindforge/skills/autonomous-agents/SKILL.md +59 -0
  121. package/.mindforge/skills/build-system-optimization/SKILL.md +54 -0
  122. package/.mindforge/skills/build-vs-buy/SKILL.md +80 -0
  123. package/.mindforge/skills/bundle-optimization/SKILL.md +174 -0
  124. package/.mindforge/skills/business-analyst/SKILL.md +82 -0
  125. package/.mindforge/skills/caching-strategies/SKILL.md +132 -0
  126. package/.mindforge/skills/capacity-planning/SKILL.md +96 -0
  127. package/.mindforge/skills/causal-inference/SKILL.md +42 -0
  128. package/.mindforge/skills/cdn-optimization/SKILL.md +212 -0
  129. package/.mindforge/skills/change-management/SKILL.md +106 -0
  130. package/.mindforge/skills/chaos-engineering/SKILL.md +99 -0
  131. package/.mindforge/skills/ci-cd-pipeline/SKILL.md +118 -0
  132. package/.mindforge/skills/cli-design/SKILL.md +118 -0
  133. package/.mindforge/skills/code-generation-patterns/SKILL.md +92 -0
  134. package/.mindforge/skills/code-review-methodology/SKILL.md +180 -0
  135. package/.mindforge/skills/code-tour/SKILL.md +145 -0
  136. package/.mindforge/skills/codebase-onboarding/SKILL.md +95 -0
  137. package/.mindforge/skills/compliance-as-code/SKILL.md +195 -0
  138. package/.mindforge/skills/conflict-resolution/SKILL.md +87 -0
  139. package/.mindforge/skills/connection-pooling/SKILL.md +151 -0
  140. package/.mindforge/skills/container-security/SKILL.md +151 -0
  141. package/.mindforge/skills/context-engineering/SKILL.md +114 -0
  142. package/.mindforge/skills/contract-testing/SKILL.md +85 -0
  143. package/.mindforge/skills/cost-estimation/SKILL.md +82 -0
  144. package/.mindforge/skills/cqrs-event-sourcing/SKILL.md +95 -0
  145. package/.mindforge/skills/cross-platform-testing/SKILL.md +43 -0
  146. package/.mindforge/skills/data-governance/SKILL.md +42 -0
  147. package/.mindforge/skills/data-lakehouse/SKILL.md +42 -0
  148. package/.mindforge/skills/data-mesh/SKILL.md +42 -0
  149. package/.mindforge/skills/data-modeling/SKILL.md +107 -0
  150. package/.mindforge/skills/data-pipeline-design/SKILL.md +171 -0
  151. package/.mindforge/skills/data-privacy-engineering/SKILL.md +42 -0
  152. package/.mindforge/skills/database-performance/SKILL.md +174 -0
  153. package/.mindforge/skills/database-sharding-advanced/SKILL.md +206 -0
  154. package/.mindforge/skills/de-sloppify/SKILL.md +120 -0
  155. package/.mindforge/skills/defense-in-depth/SKILL.md +84 -0
  156. package/.mindforge/skills/delegation-patterns/SKILL.md +123 -0
  157. package/.mindforge/skills/dependency-management/SKILL.md +94 -0
  158. package/.mindforge/skills/deployment-workflow/SKILL.md +135 -0
  159. package/.mindforge/skills/design-system/SKILL.md +113 -0
  160. package/.mindforge/skills/developer-onboarding/SKILL.md +99 -0
  161. package/.mindforge/skills/developer-productivity-metrics/SKILL.md +59 -0
  162. package/.mindforge/skills/distributed-consensus/SKILL.md +141 -0
  163. package/.mindforge/skills/dmux-workflows/SKILL.md +141 -0
  164. package/.mindforge/skills/dns-architecture/SKILL.md +167 -0
  165. package/.mindforge/skills/ecommerce-architecture/SKILL.md +41 -0
  166. package/.mindforge/skills/edge-computing/SKILL.md +91 -0
  167. package/.mindforge/skills/edtech-platform/SKILL.md +41 -0
  168. package/.mindforge/skills/email-deliverability/SKILL.md +177 -0
  169. package/.mindforge/skills/embedding-systems/SKILL.md +55 -0
  170. package/.mindforge/skills/environment-management/SKILL.md +54 -0
  171. package/.mindforge/skills/error-handling-architecture/SKILL.md +118 -0
  172. package/.mindforge/skills/estimation-techniques/SKILL.md +113 -0
  173. package/.mindforge/skills/eval-harness/SKILL.md +180 -0
  174. package/.mindforge/skills/event-driven-architecture/SKILL.md +162 -0
  175. package/.mindforge/skills/experiment-design/SKILL.md +139 -0
  176. package/.mindforge/skills/experiment-platform/SKILL.md +43 -0
  177. package/.mindforge/skills/feature-engineering/SKILL.md +42 -0
  178. package/.mindforge/skills/feature-flag-management/SKILL.md +183 -0
  179. package/.mindforge/skills/fine-tuning-workflow/SKILL.md +189 -0
  180. package/.mindforge/skills/fintech-patterns/SKILL.md +41 -0
  181. package/.mindforge/skills/flutter-architecture/SKILL.md +42 -0
  182. package/.mindforge/skills/gaming-backend/SKILL.md +41 -0
  183. package/.mindforge/skills/git-workflow-design/SKILL.md +129 -0
  184. package/.mindforge/skills/graceful-degradation/SKILL.md +95 -0
  185. package/.mindforge/skills/graphql-patterns/SKILL.md +243 -0
  186. package/.mindforge/skills/guardrails-and-safety/SKILL.md +137 -0
  187. package/.mindforge/skills/healthcare-systems/SKILL.md +40 -0
  188. package/.mindforge/skills/hiring-engineering/SKILL.md +119 -0
  189. package/.mindforge/skills/human-in-the-loop-design/SKILL.md +234 -0
  190. package/.mindforge/skills/i18n-architecture/SKILL.md +147 -0
  191. package/.mindforge/skills/idempotency-patterns/SKILL.md +84 -0
  192. package/.mindforge/skills/incident-communication/SKILL.md +96 -0
  193. package/.mindforge/skills/incident-management/SKILL.md +97 -0
  194. package/.mindforge/skills/infrastructure-as-code/SKILL.md +98 -0
  195. package/.mindforge/skills/instinct-clustering/SKILL.md +190 -0
  196. package/.mindforge/skills/internal-developer-platform/SKILL.md +51 -0
  197. package/.mindforge/skills/iot-platform/SKILL.md +41 -0
  198. package/.mindforge/skills/k8s-deployment/SKILL.md +358 -0
  199. package/.mindforge/skills/knowledge-graphs/SKILL.md +56 -0
  200. package/.mindforge/skills/knowledge-sharing-systems/SKILL.md +112 -0
  201. package/.mindforge/skills/llm-cost-optimization/SKILL.md +198 -0
  202. package/.mindforge/skills/llm-orchestration/SKILL.md +56 -0
  203. package/.mindforge/skills/load-testing/SKILL.md +84 -0
  204. package/.mindforge/skills/logistics-optimization/SKILL.md +40 -0
  205. package/.mindforge/skills/market-researcher/SKILL.md +99 -0
  206. package/.mindforge/skills/marketplace-trust/SKILL.md +40 -0
  207. package/.mindforge/skills/mcp-server-patterns/SKILL.md +264 -0
  208. package/.mindforge/skills/media-streaming/SKILL.md +41 -0
  209. package/.mindforge/skills/meeting-architecture/SKILL.md +146 -0
  210. package/.mindforge/skills/mentoring-patterns/SKILL.md +77 -0
  211. package/.mindforge/skills/microservices-patterns/SKILL.md +83 -0
  212. package/.mindforge/skills/migration-platform/SKILL.md +61 -0
  213. package/.mindforge/skills/migration-strategies/SKILL.md +129 -0
  214. package/.mindforge/skills/ml-feature-store/SKILL.md +56 -0
  215. package/.mindforge/skills/ml-monitoring/SKILL.md +42 -0
  216. package/.mindforge/skills/mobile-performance/SKILL.md +44 -0
  217. package/.mindforge/skills/mobile-security/SKILL.md +45 -0
  218. package/.mindforge/skills/model-evaluation/SKILL.md +53 -0
  219. package/.mindforge/skills/monorepo-management/SKILL.md +100 -0
  220. package/.mindforge/skills/multi-tenancy-patterns/SKILL.md +145 -0
  221. package/.mindforge/skills/multi-turn-conversation-design/SKILL.md +206 -0
  222. package/.mindforge/skills/multimodal-ai/SKILL.md +51 -0
  223. package/.mindforge/skills/mutation-testing/SKILL.md +97 -0
  224. package/.mindforge/skills/notification-system-design/SKILL.md +168 -0
  225. package/.mindforge/skills/observability-stack/SKILL.md +136 -0
  226. package/.mindforge/skills/offline-first-design/SKILL.md +43 -0
  227. package/.mindforge/skills/on-call-design/SKILL.md +111 -0
  228. package/.mindforge/skills/pagination-patterns/SKILL.md +230 -0
  229. package/.mindforge/skills/payment-integration/SKILL.md +176 -0
  230. package/.mindforge/skills/performance-reviews/SKILL.md +140 -0
  231. package/.mindforge/skills/platform-observability/SKILL.md +58 -0
  232. package/.mindforge/skills/platform-reliability/SKILL.md +52 -0
  233. package/.mindforge/skills/post-incident-learning/SKILL.md +96 -0
  234. package/.mindforge/skills/product-manager/SKILL.md +104 -0
  235. package/.mindforge/skills/progressive-web-app/SKILL.md +44 -0
  236. package/.mindforge/skills/prompt-engineering/SKILL.md +94 -0
  237. package/.mindforge/skills/proofreader/SKILL.md +158 -0
  238. package/.mindforge/skills/push-notification-architecture/SKILL.md +45 -0
  239. package/.mindforge/skills/python-performance/SKILL.md +183 -0
  240. package/.mindforge/skills/quality-audit/SKILL.md +171 -0
  241. package/.mindforge/skills/queue-design/SKILL.md +85 -0
  242. package/.mindforge/skills/rag-architecture/SKILL.md +176 -0
  243. package/.mindforge/skills/rate-limiting-design/SKILL.md +94 -0
  244. package/.mindforge/skills/react-native-patterns/SKILL.md +42 -0
  245. package/.mindforge/skills/react-performance/SKILL.md +229 -0
  246. package/.mindforge/skills/real-time-analytics/SKILL.md +42 -0
  247. package/.mindforge/skills/real-time-sync/SKILL.md +83 -0
  248. package/.mindforge/skills/responsive-native/SKILL.md +44 -0
  249. package/.mindforge/skills/responsive-patterns/SKILL.md +141 -0
  250. package/.mindforge/skills/rfc-pipeline/SKILL.md +114 -0
  251. package/.mindforge/skills/saas-multi-tenant/SKILL.md +41 -0
  252. package/.mindforge/skills/santa-method/SKILL.md +134 -0
  253. package/.mindforge/skills/search-implementation/SKILL.md +98 -0
  254. package/.mindforge/skills/secrets-platform/SKILL.md +56 -0
  255. package/.mindforge/skills/secrets-rotation/SKILL.md +173 -0
  256. package/.mindforge/skills/self-serve-infrastructure/SKILL.md +51 -0
  257. package/.mindforge/skills/serverless-patterns/SKILL.md +119 -0
  258. package/.mindforge/skills/skill-creator-meta/SKILL.md +146 -0
  259. package/.mindforge/skills/sprint-retrospective-facilitation/SKILL.md +112 -0
  260. package/.mindforge/skills/stakeholder-communication/SKILL.md +85 -0
  261. package/.mindforge/skills/state-management/SKILL.md +104 -0
  262. package/.mindforge/skills/stream-processing/SKILL.md +43 -0
  263. package/.mindforge/skills/streaming-architecture/SKILL.md +81 -0
  264. package/.mindforge/skills/supply-chain-security/SKILL.md +145 -0
  265. package/.mindforge/skills/synthetic-data-generation/SKILL.md +52 -0
  266. package/.mindforge/skills/system-design/SKILL.md +88 -0
  267. package/.mindforge/skills/team-topology-design/SKILL.md +107 -0
  268. package/.mindforge/skills/technical-debt-management/SKILL.md +86 -0
  269. package/.mindforge/skills/technical-interview-design/SKILL.md +98 -0
  270. package/.mindforge/skills/technical-leadership/SKILL.md +75 -0
  271. package/.mindforge/skills/technical-writing/SKILL.md +237 -0
  272. package/.mindforge/skills/technology-radar/SKILL.md +88 -0
  273. package/.mindforge/skills/testing-anti-patterns/SKILL.md +288 -0
  274. package/.mindforge/skills/tool-design/SKILL.md +138 -0
  275. package/.mindforge/skills/typescript-advanced/SKILL.md +198 -0
  276. package/.mindforge/skills/using-git-worktrees/SKILL.md +139 -0
  277. package/.mindforge/skills/verification-loop/SKILL.md +13 -1
  278. package/.mindforge/skills/vibe-security/SKILL.md +165 -0
  279. package/.mindforge/skills/visual-regression-testing/SKILL.md +97 -0
  280. package/.mindforge/skills/websocket-patterns/SKILL.md +203 -0
  281. package/.mindforge/skills/writing-plans/SKILL.md +170 -0
  282. package/.mindforge/skills/writing-skills/SKILL.md +216 -0
  283. package/.mindforge/skills/zero-trust-architecture/SKILL.md +166 -0
  284. package/CHANGELOG.md +176 -0
  285. package/MINDFORGE.md +4 -4
  286. package/package.json +2 -2
  287. package/.mindforge/personas/data-privacy-engineer.md +0 -187
@@ -0,0 +1,166 @@
1
+ ---
2
+ name: zero-trust-architecture
3
+ version: 1.0.0
4
+ min_mindforge_version: 10.1.1
5
+ status: stable
6
+ triggers: zero trust architecture, never trust always verify, micro-segmentation, identity-aware proxy, continuous verification, zero trust network, BeyondCorp, least privilege access, device posture, zero trust identity, mTLS everywhere, zero trust perimeter
7
+ compose: auth-patterns
8
+ ---
9
+
10
+ # Skill — Zero Trust Architecture
11
+
12
+ ## When this skill activates
13
+ Any task involving network security architecture where traditional perimeter-based
14
+ security is being replaced or augmented by identity-centric, continuous verification
15
+ models. Includes mTLS implementation, micro-segmentation, identity-aware proxies,
16
+ and BeyondCorp-style access patterns.
17
+
18
+ ## Mandatory actions when this skill is active
19
+
20
+ ### Before writing any code
21
+ 1. Inventory all communication flows (service-to-service, user-to-service, external).
22
+ 2. Define identity model (who/what can talk to whom under what conditions).
23
+ 3. Map trust boundaries — there are no trusted zones, only verified identities.
24
+ 4. Determine device posture requirements for user-facing access.
25
+
26
+ ### During implementation
27
+ - Authenticate every request regardless of network origin.
28
+ - Implement mTLS for all service-to-service communication.
29
+ - Apply least privilege — grant minimum permissions needed, no more.
30
+ - Never trust network location as a security signal.
31
+ - Pass identity claims downstream (not just "authenticated: yes").
32
+ - Re-verify identity on privilege escalation or sensitive operations.
33
+ - Log all access decisions for audit.
34
+
35
+ ### After implementation
36
+ - Verify default-deny is enforced (no open paths by accident).
37
+ - Test that compromising one service doesn't grant lateral movement.
38
+ - Confirm certificate rotation works automatically.
39
+ - Validate device posture checks block non-compliant devices.
40
+ - Audit that all flows are identity-verified.
41
+
42
+ ## Core Principles
43
+
44
+ ### The Three Pillars
45
+ 1. **Never trust, always verify** — Every request is treated as if from an open network.
46
+ 2. **Least privilege access** — Grant minimum permissions, scope tightly, time-bound when possible.
47
+ 3. **Assume breach** — Design as if attackers are already inside. Limit blast radius.
48
+
49
+ ### Trust Signals (Combined, Not Individual)
50
+ - Identity (who is this? verified cryptographically).
51
+ - Device (is this device healthy? patched? managed?).
52
+ - Context (where, when, what resource, what action?).
53
+ - Risk score (is this behavior anomalous?).
54
+
55
+ ## Identity-Aware Proxy
56
+
57
+ ### Pattern
58
+ ```
59
+ User → Identity-Aware Proxy → Authenticate → Check Policy → Backend Service
60
+
61
+ [Identity Provider]
62
+ [Policy Engine]
63
+ [Device Trust Store]
64
+ ```
65
+
66
+ ### Implementation
67
+ - Proxy sits at the edge (or service mesh ingress).
68
+ - Authenticates user via OIDC/SAML.
69
+ - Checks policy engine for authorization.
70
+ - Injects verified identity headers to backend.
71
+ - Backend trusts proxy-injected headers (not user-supplied).
72
+
73
+ ### Tools
74
+ - Google IAP, Cloudflare Access, Ory Oathkeeper, Pomerium.
75
+
76
+ ## Mutual TLS (mTLS)
77
+
78
+ ### Why
79
+ - Encrypts traffic between services (confidentiality).
80
+ - Cryptographically verifies both client and server identity (authentication).
81
+ - Prevents unauthorized services from communicating.
82
+
83
+ ### Implementation
84
+ - Use service mesh (Istio, Linkerd) for automatic mTLS.
85
+ - Rotate certificates automatically (short-lived: 24h recommended).
86
+ - Use SPIFFE/SPIRE for workload identity.
87
+ - Never disable mTLS verification in production.
88
+
89
+ ### Certificate Management
90
+ - Auto-issue via cert-manager or service mesh CA.
91
+ - Short-lived certificates (hours, not years).
92
+ - Automated rotation with zero downtime.
93
+ - Certificate revocation for compromised services.
94
+
95
+ ## Micro-Segmentation
96
+
97
+ ### Approach
98
+ 1. Start with default-deny between all services.
99
+ 2. Declare allowed communication flows explicitly.
100
+ 3. Enforce at network layer (NetworkPolicy) AND application layer (authz).
101
+ 4. Segment by sensitivity level (PII services isolated from general services).
102
+
103
+ ### Example Policy
104
+ ```yaml
105
+ # Only payment-service can talk to payment-db
106
+ source: payment-service
107
+ destination: payment-db
108
+ port: 5432
109
+ action: ALLOW
110
+
111
+ # Everything else to payment-db
112
+ source: *
113
+ destination: payment-db
114
+ action: DENY
115
+ ```
116
+
117
+ ## Device Posture
118
+
119
+ ### Checks Before Granting Access
120
+ - OS version current (within N patches).
121
+ - Disk encryption enabled.
122
+ - Firewall active.
123
+ - No known malware detected.
124
+ - MDM-managed (for corporate devices).
125
+ - Screen lock enabled.
126
+
127
+ ### Degraded Access
128
+ - Non-compliant device → read-only access or blocked entirely.
129
+ - Unknown device → step-up authentication required.
130
+ - Jailbroken/rooted → zero access to sensitive resources.
131
+
132
+ ## Continuous Verification
133
+
134
+ ### Re-verify When
135
+ - Session exceeds time threshold (e.g., every 1 hour).
136
+ - User requests privilege escalation.
137
+ - Anomalous behavior detected (impossible travel, unusual time).
138
+ - Accessing higher-sensitivity resource than current level.
139
+ - Device posture changes mid-session.
140
+
141
+ ### Risk-Based Response
142
+ - Low risk → continue session.
143
+ - Medium risk → step-up auth (MFA prompt).
144
+ - High risk → terminate session, require full re-authentication.
145
+
146
+ ## BeyondCorp Model
147
+
148
+ ### Key Differences from VPN
149
+ | Traditional VPN | BeyondCorp (Zero Trust) |
150
+ |----------------|------------------------|
151
+ | VPN = trusted zone | No trusted zone exists |
152
+ | Once in, full access | Every request verified |
153
+ | Network location = trust | Identity + device + context = trust |
154
+ | Perimeter defense | Defense in depth everywhere |
155
+ | Hard outside, soft inside | Uniformly hardened |
156
+
157
+ ## Self-check
158
+ - [ ] All service-to-service communication uses mTLS.
159
+ - [ ] Default-deny network policy in place.
160
+ - [ ] Identity verified on every request (not just at edge).
161
+ - [ ] Least privilege enforced (no over-permissioned service accounts).
162
+ - [ ] Device posture checked for user access.
163
+ - [ ] Continuous verification triggers defined.
164
+ - [ ] Certificate rotation is automatic and tested.
165
+ - [ ] Lateral movement prevented (compromise one service != access to others).
166
+ - [ ] All access decisions logged for audit.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,181 @@
1
1
  # Changelog
2
2
 
3
+ ## [10.7.0] - 2026-05-27 — "Platform Sovereign"
4
+
5
+ ### Added (v10.7.0)
6
+
7
+ - **10 new core skills** — internal-developer-platform, self-serve-infrastructure, platform-reliability, developer-productivity-metrics, api-marketplace, build-system-optimization, secrets-platform, environment-management, platform-observability, migration-platform.
8
+ - **6 new commands** — `/mindforge:platform`, `/mindforge:build-opt`, `/mindforge:secrets-mgmt`, `/mindforge:environments`, `/mindforge:observability-platform`, `/mindforge:migration-mgmt`.
9
+ - **6 new personas** — platform-lead, build-engineer, environment-engineer, productivity-analyst, secrets-engineer, migration-architect.
10
+ - **1 new swarm template** — PlatformSwarmV2 (HITL platform engineering + migration).
11
+ - **200 core skills milestone** — Full coverage across 12 domains.
12
+ - **Swarm templates v15.0.0** — 49 total templates.
13
+
14
+ ---
15
+
16
+ ## [10.6.0] - 2026-05-27 — "Data Alchemy"
17
+
18
+ ### Added (v10.6.0)
19
+
20
+ - **10 new core skills** — causal-inference, feature-engineering, ml-monitoring, data-governance, stream-processing, data-lakehouse, experiment-platform, data-mesh, real-time-analytics, data-privacy-engineering.
21
+ - **6 new commands** — `/mindforge:causal`, `/mindforge:lakehouse`, `/mindforge:data-mesh`, `/mindforge:stream`, `/mindforge:privacy-eng`, `/mindforge:realtime-analytics`.
22
+ - **6 new personas** — causal-scientist, data-mesh-architect, stream-engineer, lakehouse-architect, privacy-engineer, analytics-engineer.
23
+ - **1 new swarm template** — DataAlchemySwarm (HITL data architecture + privacy).
24
+
25
+ ---
26
+
27
+ ## [10.5.0] - 2026-05-27 — "AI Frontier"
28
+
29
+ ### Added (v10.5.0)
30
+
31
+ - **10 new core skills** — multimodal-ai, ai-safety-alignment, synthetic-data-generation, model-evaluation, embedding-systems, llm-orchestration, knowledge-graphs, ml-feature-store, ai-cost-management, autonomous-agents.
32
+ - **8 new commands** — `/mindforge:multimodal`, `/mindforge:ai-safety`, `/mindforge:embeddings`, `/mindforge:llm-route`, `/mindforge:knowledge-graph`, `/mindforge:feature-store`, `/mindforge:ai-cost`, `/mindforge:agent-design`.
33
+ - **8 new personas** — multimodal-engineer, ai-safety-engineer, embedding-architect, llm-orchestrator, knowledge-engineer, feature-store-engineer, ai-economist, agent-architect.
34
+ - **1 new swarm template** — AIFrontierSwarm (HITL AI system architecture + safety).
35
+
36
+ ---
37
+
38
+ ## [10.4.0] - 2026-05-27 — "Cross-Platform"
39
+
40
+ ### Added (v10.4.0)
41
+
42
+ - **10 new core skills** — react-native-patterns, flutter-architecture, offline-first-design, progressive-web-app, mobile-performance, cross-platform-testing, app-store-deployment, mobile-security, responsive-native, push-notification-architecture.
43
+ - **6 new commands** — `/mindforge:mobile`, `/mindforge:react-native`, `/mindforge:flutter`, `/mindforge:offline`, `/mindforge:pwa`, `/mindforge:push-notify`.
44
+ - **6 new personas** — mobile-architect, react-native-engineer, flutter-engineer, offline-specialist, mobile-security-engineer, pwa-architect.
45
+ - **1 new swarm template** — MobileSwarm (HITL cross-platform architecture).
46
+
47
+ ---
48
+
49
+ ## [10.3.0] - 2026-05-27 — "Leader's Edge"
50
+
51
+ ### Added (v10.3.0)
52
+
53
+ - **10 new core skills** — technical-leadership, mentoring-patterns, stakeholder-communication, conflict-resolution, incident-communication, hiring-engineering, delegation-patterns, meeting-architecture, performance-reviews, change-management.
54
+ - **6 new commands** — `/mindforge:lead`, `/mindforge:communicate`, `/mindforge:hire`, `/mindforge:delegate`, `/mindforge:meeting-design`, `/mindforge:change`.
55
+ - **6 new personas** — tech-lead-coach, communication-architect, hiring-strategist, change-agent, meeting-designer, mentorship-lead.
56
+ - **1 new swarm template** — LeadershipSwarm (HITL engineering leadership).
57
+
58
+ ---
59
+
60
+ ## [10.2.0] - 2026-05-27 — "Industry Forge"
61
+
62
+ ### Added (v10.2.0)
63
+
64
+ - **10 new core skills** — healthcare-systems, fintech-patterns, ecommerce-architecture, gaming-backend, edtech-platform, saas-multi-tenant, media-streaming, iot-platform, marketplace-trust, logistics-optimization.
65
+ - **8 new commands** — `/mindforge:healthcare`, `/mindforge:fintech`, `/mindforge:ecommerce`, `/mindforge:gaming`, `/mindforge:edtech`, `/mindforge:iot`, `/mindforge:marketplace`, `/mindforge:logistics`.
66
+ - **8 new personas** — healthcare-engineer, fintech-architect, ecommerce-engineer, gaming-engineer, edtech-architect, iot-architect, marketplace-engineer, logistics-architect.
67
+ - **1 new swarm template** — IndustryVerticalSwarm (HITL domain-specific architecture).
68
+ - **150 core skills milestone** — Industry vertical coverage added.
69
+
70
+ ---
71
+
72
+ ## [10.1.1] - 2026-05-26 — "Scale & Edge"
73
+
74
+ ### Added (v10.1.1)
75
+
76
+ - **10 new core skills** — edge-computing, serverless-patterns, container-security, zero-trust-architecture, ai-agent-deployment, distributed-consensus, data-pipeline-design, dns-architecture, cdn-optimization, database-sharding-advanced.
77
+ - **6 new commands** — `/mindforge:edge`, `/mindforge:serverless`, `/mindforge:zero-trust`, `/mindforge:agent-deploy`, `/mindforge:data-pipeline`, `/mindforge:cdn`.
78
+ - **6 new personas** — edge-engineer, zero-trust-engineer, agent-ops-engineer, consensus-engineer, data-pipeline-architect, cdn-architect.
79
+ - **2 new swarm templates** — EdgeScaleSwarm (HITL edge + CDN), DistributedSwarm (HITL consensus + pipelines).
80
+ - **140 core skills milestone** — Comprehensive coverage of emerging technology and massive-scale patterns.
81
+ - **Swarm templates v14.0.0** — Bump from v13.0.0 with 2 new templates (total: 43 swarm templates).
82
+
83
+ ---
84
+
85
+ ## [10.1.0] - 2026-05-26 — "Strategic Intelligence"
86
+
87
+ ### Added (v10.1.0)
88
+
89
+ - **20 new core skills** — build-vs-buy, technology-radar, architecture-tradeoff-analysis, technical-interview-design, post-incident-learning, team-topology-design, sprint-retrospective-facilitation, knowledge-sharing-systems, estimation-techniques, on-call-design, experiment-design, analytics-instrumentation, notification-system-design, payment-integration, email-deliverability, agent-memory-design, agent-evaluation-framework, multi-turn-conversation-design, agent-tool-selection, human-in-the-loop-design.
90
+ - **10 new commands** — `/mindforge:build-vs-buy`, `/mindforge:tech-radar`, `/mindforge:team-topology`, `/mindforge:retro`, `/mindforge:experiment`, `/mindforge:analytics`, `/mindforge:payments`, `/mindforge:agent-memory`, `/mindforge:agent-eval`, `/mindforge:hitl`.
91
+ - **8 new personas** — decision-architect, team-coach, knowledge-curator, experiment-designer, payments-engineer, agent-memory-designer, agent-evaluator, hitl-architect.
92
+ - **3 new swarm templates** — DecisionSwarm (HITL decision quality), TeamDesignSwarm (HITL team topology), AgentMetaSwarm (autonomous self-improvement).
93
+ - **130 core skills milestone** — Category expansion into decision science, team engineering, product patterns, and agent meta-intelligence.
94
+ - **Minor version bump (10.1.0)** — Represents category expansion beyond pure engineering into strategy and meta-intelligence.
95
+ - **Swarm templates v13.0.0** — Bump from v12.0.0 with 3 new templates (total: 41 swarm templates).
96
+
97
+ ---
98
+
99
+ ## [10.0.9] - 2026-05-26 — "Full Spectrum"
100
+
101
+ ### Added (v10.0.9)
102
+
103
+ - **20 new core skills** — streaming-architecture, queue-design, real-time-sync, cost-estimation, technical-debt-management, capacity-planning, graceful-degradation, idempotency-patterns, rate-limiting-design, code-generation-patterns, dependency-management, git-workflow-design, i18n-architecture, a11y-testing, multi-tenancy-patterns, audit-logging, database-performance, bundle-optimization, graphql-patterns, pagination-patterns.
104
+ - **10 new commands** — `/mindforge:stream`, `/mindforge:queue`, `/mindforge:finops`, `/mindforge:tech-debt`, `/mindforge:degrade`, `/mindforge:idempotent`, `/mindforge:rate-limit`, `/mindforge:i18n`, `/mindforge:multi-tenant`, `/mindforge:graphql`.
105
+ - **8 new personas** — streaming-engineer, finops-analyst, debt-manager, resilience-engineer, codegen-specialist, i18n-architect, multi-tenancy-architect, graphql-designer.
106
+ - **3 new swarm templates** — StreamingSwarm (HITL real-time), ResilienceSwarm (autonomous failure engineering), GovernanceSwarm (HITL data governance).
107
+ - **110 core skills milestone** — Comprehensive coverage across all major software engineering domains achieved.
108
+ - **Swarm templates v12.0.0** — Bump from v11.0.0 with 3 new templates (total: 38 swarm templates).
109
+
110
+ ---
111
+
112
+ ## [10.0.8] - 2026-05-26 — "Deep Patterns"
113
+
114
+ ### Added (v10.0.8)
115
+
116
+ - **20 new core skills** — contract-testing, load-testing, mutation-testing, visual-regression-testing, monorepo-management, cli-design, developer-onboarding, error-handling-architecture, caching-strategies, migration-strategies, connection-pooling, event-driven-architecture, api-gateway-patterns, websocket-patterns, feature-flag-management, secrets-rotation, compliance-as-code, rag-architecture, fine-tuning-workflow, llm-cost-optimization.
117
+ - **10 new commands** — `/mindforge:contract-test`, `/mindforge:load-test`, `/mindforge:monorepo`, `/mindforge:cli`, `/mindforge:cache`, `/mindforge:events`, `/mindforge:secrets`, `/mindforge:rag`, `/mindforge:feature-flags`, `/mindforge:compliance`.
118
+ - **8 new personas** — contract-tester, dx-engineer, cache-architect, event-architect, compliance-engineer, ml-ops-engineer, platform-engineer, api-gateway-designer.
119
+ - **3 new swarm templates** — TestingDeepSwarm (autonomous deep testing), PlatformSwarm (HITL platform engineering), MLOpsSwarm (HITL ML operations).
120
+ - **90 core skills milestone** — Production-depth coverage for testing, caching, events, secrets, compliance, RAG, and cost optimization.
121
+ - **Swarm templates v11.0.0** — Bump from v10.0.0 with 3 new templates (total: 35 swarm templates).
122
+
123
+ ---
124
+
125
+ ## [10.0.7] - 2026-05-26 — "Meta Engineer"
126
+
127
+ ### Added (v10.0.7)
128
+
129
+ - **20 new core skills** — prompt-engineering, context-engineering, agent-orchestration-patterns, tool-design, guardrails-and-safety, observability-stack, ci-cd-pipeline, infrastructure-as-code, incident-management, chaos-engineering, data-modeling, api-versioning, search-implementation, design-system, state-management, responsive-patterns, auth-patterns, supply-chain-security, technical-writing, code-review-methodology.
130
+ - **10 new commands** — `/mindforge:prompt`, `/mindforge:context-budget`, `/mindforge:orchestrate`, `/mindforge:observability`, `/mindforge:pipeline`, `/mindforge:data-model`, `/mindforge:design-tokens`, `/mindforge:auth-flow`, `/mindforge:write-rfc`, `/mindforge:review-guide`.
131
+ - **8 new personas** — prompt-architect, agent-orchestrator, sre-lead, pipeline-engineer, data-architect, design-system-lead, auth-engineer, technical-writer-lead.
132
+ - **3 new swarm templates** — PromptEngineeringSwarm (HITL AI engineering), SRESwarm (HITL reliability), FrontendSwarm (autonomous design system).
133
+ - **70 core skills milestone** — Framework now covers AI engineering, DevOps, reliability, data, frontend, advanced security, and technical communication.
134
+ - **Swarm templates v10.0.0** — Bump from v9.0.0 with 3 new templates (total: 32 swarm templates).
135
+
136
+ ---
137
+
138
+ ## [10.0.6] - 2026-05-26 — "Complete Arsenal"
139
+
140
+ ### Added (v10.0.6)
141
+
142
+ - **17 new core skills** — microservices-patterns, cqrs-event-sourcing, system-design, business-analyst, product-manager, market-researcher, typescript-advanced, python-performance, react-performance, k8s-deployment, writing-plans, writing-skills, using-git-worktrees, code-tour, autonomous-agent-harness, mcp-server-patterns, proofreader.
143
+ - **10 new commands** — `/mindforge:microservices`, `/mindforge:system-design`, `/mindforge:brd`, `/mindforge:product-spec`, `/mindforge:market-research`, `/mindforge:code-tour`, `/mindforge:mcp-server`, `/mindforge:proofread`, `/mindforge:worktrees`, `/mindforge:plan-write`.
144
+ - **8 new personas** — business-analyst, product-owner, market-analyst, mcp-designer, proofreader, system-designer, worktree-manager, code-narrator.
145
+ - **3 new swarm templates** — ArchDesignSwarm (HITL system design), ProductSwarm (HITL product strategy), DocumentationSwarm (autonomous content quality).
146
+ - **Swarm templates v9.0.0** — Bump from v8.0.0 with 3 new templates (total: 29 swarm templates).
147
+ - **50 core skills milestone** — Framework now covers architecture, business, languages, workflow, infrastructure, and documentation domains.
148
+
149
+ ---
150
+
151
+ ## [10.0.5] - 2026-05-26 — "Forge Master"
152
+
153
+ ### Added (v10.0.5)
154
+
155
+ - **5 new core skills** — skill-creator-meta, deployment-workflow, dmux-workflows, vibe-security, instinct-clustering.
156
+ - **5 new commands** — `/mindforge:create-skill`, `/mindforge:deploy`, `/mindforge:dmux`, `/mindforge:vibe-check`, `/mindforge:cluster-instincts`.
157
+ - **5 new personas** — skill-smith, deployment-captain, dmux-orchestrator, vibe-checker, saga-orchestrator.
158
+ - **2 new swarm templates** — DeploymentSwarm (HITL staged rollout), ForgeSwarm (autonomous skill creation).
159
+ - **De-slop gate** — Phase 6.5 in verification-loop: informational de-slop scan before shipping (non-blocking).
160
+ - **Cross-model eval spec** — `.mindforge/engine/cross-model-eval.md` for routing same task to 2 models and comparing outputs.
161
+ - **Swarm templates v8.0.0** — Bump from v7.0.0 with 2 new templates (total: 26 swarm templates).
162
+
163
+ ---
164
+
165
+ ## [10.0.4] - 2026-05-26 — "Santa's Eval"
166
+
167
+ ### Added (v10.0.4)
168
+
169
+ - **8 new core skills** — santa-method, eval-harness, quality-audit, testing-anti-patterns, defense-in-depth, codebase-onboarding, rfc-pipeline, de-sloppify.
170
+ - **6 new commands** — `/mindforge:santa`, `/mindforge:eval`, `/mindforge:quality-audit`, `/mindforge:rfc`, `/mindforge:onboard`, `/mindforge:de-slop`.
171
+ - **6 new personas** — eval-judge, rfc-architect, anti-pattern-hunter, onboarding-navigator, de-sloppifier, quality-scorer.
172
+ - **3 new swarm templates** — EvalSwarm (autonomous eval gate), OnboardingSwarm (autonomous codebase discovery), RFCSwarm (HITL spec decomposition).
173
+ - **Proactive Skill Suggestion Engine** — Signal-based skill detection (file/error/task patterns) with confidence threshold (0.7), cooldown tracking, and debounce logic.
174
+ - **Eval storage** — `.mindforge/evals/` directory for persisting eval configs, rubrics, and results.
175
+ - **Swarm templates v7.0.0** — Bump from v6.0.0 with 3 new templates (total: 24 swarm templates).
176
+
177
+ ---
178
+
3
179
  ## [10.0.3] - 2026-05-25 — "Council Awakens"
4
180
 
5
181
  ### Added (v10.0.3)
package/MINDFORGE.md CHANGED
@@ -1,12 +1,12 @@
1
- # MINDFORGE.md — Parameter Registry (v10.0.3)
1
+ # MINDFORGE.md — Parameter Registry (v10.7.0)
2
2
 
3
3
  ## 1. IDENTITY & VERSIONING
4
4
 
5
5
  [NAME] = MindForge
6
- [VERSION] = 10.0.3-COUNCIL
6
+ [VERSION] = 10.7.0-SOVEREIGN
7
7
  [STABLE] = true
8
- [MODE] = \"Council Awakens\"
9
- [REQUIRED_CORE_VERSION] = 10.0.3
8
+ [MODE] = "Platform Sovereign"
9
+ [REQUIRED_CORE_VERSION] = 10.7.0
10
10
  [SOVEREIGN_IDENTITY] = true
11
11
  [SRE_LAYER_ENABLED] = true
12
12
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mindforge-cc",
3
- "version": "10.0.3",
4
- "description": "MindForge Sovereign Agentic Intelligence Framework. Bedrock Fortified: Production-Grade Architecture (v10)",
3
+ "version": "10.7.0",
4
+ "description": "MindForge \u2014 Sovereign Agentic Intelligence Framework. Bedrock Fortified: Production-Grade Architecture (v10)",
5
5
  "bin": {
6
6
  "mindforge-cc": "bin/install.js",
7
7
  "mindforge": "bin/mindforge-cli.js"
@@ -1,187 +0,0 @@
1
- ---
2
- name: mindforge-data-privacy-engineer
3
- description: Data privacy implementation specialist for PII detection, anonymization, differential privacy, and data masking in development environments
4
- tools: Read, Write, Bash, Grep, Glob, CommandStatus
5
- color: red
6
- ---
7
-
8
- <role>
9
- You are the MindForge Data Privacy Engineer. You are the technical specialist who ensures sensitive data never exists where it shouldn't — through automation, not policy.
10
- Privacy is not a policy document; it's a set of technical controls that make violation impossible, not just prohibited. Every byte of PII is a liability.
11
- Your job is to minimize the attack surface by implementing PII detection, anonymization, differential privacy, data masking, and consent enforcement systems.
12
- You build the technical infrastructure that makes privacy compliance automatic and verifiable.
13
- </role>
14
-
15
- <why_this_matters>
16
- Your work ensures that sensitive data is protected through technical controls at every layer:
17
- - **Developer** depends on your sanitized development environments and PII detection tools to build features without accidentally exposing real user data.
18
- - **Architect** relies on your data flow mapping and anonymization strategies to design systems that are privacy-compliant by architecture, not afterthought.
19
- - **Security Reviewer** uses your PII inventory and access audit trails as the ground truth for verifying that no sensitive data leaks through code changes.
20
- - **QA Engineer** needs your synthetic data generation and deterministic masking pipelines to run realistic tests without touching production PII.
21
- - **Release Manager** requires verification that non-production environments contain zero real PII before approving any deployment pipeline.
22
- </why_this_matters>
23
-
24
- <philosophy>
25
- **Technical Controls Over Policy:**
26
- A policy that says "don't log PII" will eventually be violated by a tired developer at 2am. A log scrubber that runs at write time makes violation impossible. Build systems that enforce privacy mechanically.
27
-
28
- **Every Byte of PII is a Liability:**
29
- Data you don't collect can't be breached, subpoenaed, or mishandled. Data minimization is the most effective privacy control. Question every PII collection: is it truly necessary?
30
-
31
- **Anonymization Must Resist Adversaries:**
32
- Removing names is not anonymization. Zip code + birthdate + gender identifies 87% of Americans. True anonymization requires formal guarantees (k-anonymity, differential privacy) validated against re-identification attacks.
33
-
34
- **Automation Over Manual Compliance:**
35
- Retention policies, consent enforcement, deletion cascades — all must run as automated jobs with monitoring and alerting. Manual compliance creates gaps that grow over time.
36
-
37
- **Privacy Budget is Finite:**
38
- Every analytics query against user data spends privacy budget. Differential privacy provides the mathematical framework to track cumulative privacy loss and prevent reconstruction attacks.
39
- </philosophy>
40
-
41
- <process>
42
-
43
- <step name="pii_detection">
44
- Automated scanning and classification of personally identifiable information:
45
- - **Automated Scanning**: Regex patterns for emails, SSNs, credit cards, phone numbers, IP addresses; ML classifiers (Stanford NER, spaCy) for names, addresses
46
- - **Database Column Classification**: Scan schema for columns named `email`, `ssn`, `credit_card`; pattern matching on sample data; label sensitivity levels
47
- - **Log Scanning**: Pre-commit hooks to detect PII in log statements; runtime scrubbing of sensitive fields before writing logs
48
- - **Code Scanning**: Static analysis for PII in string literals, comments, test fixtures; prevent accidental hardcoding
49
- - **Third-Party Data Flows**: Map PII to external services (analytics, support, marketing); ensure contracts and consent align
50
- </step>
51
-
52
- <step name="anonymization_techniques">
53
- Implementing data anonymization with formal guarantees:
54
- - **k-Anonymity**: Generalization (30-year-old → 30-40 age group), suppression (remove quasi-identifiers like rare zip codes); ensure k ≥ 5 for each group
55
- - **Pseudonymization**: Reversible replacement with key (user123 → abc-def-ghi-jkl); key stored separately, access controlled
56
- - **Tokenization**: Irreversible one-way hash (SHA-256 with salt); preserve uniqueness for joins but no reversal
57
- - **Data Masking**: Partial reveal (john.doe@example.com → j***@example.com, 4111-1111-1111-1234 → ****-****-****-1234)
58
- - **Synthetic Data Generation**: Statistical models trained on real data, generate fake records with equivalent distributions (SMOTE, GANs)
59
- </step>
60
-
61
- <step name="development_environments">
62
- Ensuring non-production environments contain zero real PII:
63
- - **Production Data Sanitization Pipeline**: Copy → detect PII → mask → load to staging/dev; automated nightly refresh
64
- - **Deterministic Masking**: Same input always produces same fake output (preserves foreign key relationships, enables debugging)
65
- - **Subset Extraction**: Representative sample (10% of production) with stratified sampling; no need to copy full database
66
- - **On-Demand Refresh Automation**: Developers request fresh data snapshot; pipeline runs anonymization, delivers within 1 hour
67
- - **Access Controls**: Non-production environments have no production PII; enforce via database grants, network isolation
68
- </step>
69
-
70
- <step name="consent_enforcement">
71
- Building technical systems that enforce consent decisions:
72
- - **Purpose Limitation**: Data tagged with collection purpose (marketing, support, billing); access controlled per purpose
73
- - **Retention Automation**: TTL per data category (marketing emails 2y, support tickets 7y, billing 10y); auto-delete on expiry
74
- - **Consent Withdrawal Propagation**: User requests deletion → cascade to all systems (database, backups, logs, analytics) within 30 days (GDPR requirement)
75
- - **Audit Trail**: Log every PII access (user ID, timestamp, purpose, IP); immutable append-only log; alert on anomalies
76
- - **Portability**: Export user's complete data in machine-readable format (JSON, CSV) for GDPR data portability requests
77
- </step>
78
-
79
- <step name="differential_privacy">
80
- Implementing mathematical privacy guarantees for analytics:
81
- - **Noise Injection for Analytics**: Add calibrated noise (Laplace, Gaussian) to query results; ε-differential privacy (ε = 1 is strong, ε = 10 is weak)
82
- - **Aggregation Thresholds**: Suppress results for groups with <5 members; prevent re-identification via small group attacks
83
- - **Query Auditing**: Track cumulative privacy loss per user across queries; limit total queries to prevent reconstruction attacks
84
- - **Privacy Budget**: Each query "spends" privacy budget (ε); user gets X queries per time window; prevents iterative de-anonymization
85
- - **Formal Verification**: Prove mathematically that algorithm satisfies ε-differential privacy; use libraries (Google DP, OpenDP)
86
- </step>
87
-
88
- <step name="reporting">
89
- Generate structured privacy assessment reports:
90
- - **PII Inventory**: Tables/columns/logs containing PII, sensitivity classification
91
- - **Data Flow Diagram**: Where PII moves (APIs, databases, third parties), consent coverage
92
- - **Anonymization Strategy**: Technique per data type, k-anonymity validation results
93
- - **Retention Schedule**: TTL per data category, deletion job status
94
- - **Audit Log Sample**: Recent PII access events, anomaly detection alerts
95
- - **Compliance Status**: GDPR/CCPA/HIPAA requirements vs implementation
96
- </step>
97
-
98
- </process>
99
-
100
- <templates>
101
-
102
- ## PII Inventory Report
103
-
104
- ```markdown
105
- # PII Inventory Report: [System/Component]
106
-
107
- ## Data Classification
108
- | Table/Column | PII Type | Sensitivity | Anonymization Method | Retention |
109
- |---|---|---|---|---|
110
- | users.email | Email Address | High | Pseudonymization | 2 years |
111
- | orders.ip_address | IP Address | Medium | Tokenization | 90 days |
112
-
113
- ## Data Flow Map
114
- - [Source] → [Processing] → [Storage] → [Third Parties]
115
- - Consent coverage: [Yes/No per flow]
116
-
117
- ## Anonymization Validation
118
- - k-Anonymity: k = [value] (minimum 5)
119
- - Differential Privacy: ε = [value]
120
- - Re-identification test: [Pass/Fail]
121
-
122
- ## Retention Status
123
- | Category | TTL | Last Deletion Run | Records Deleted |
124
- |---|---|---|---|
125
- | Marketing | 2 years | [date] | [count] |
126
-
127
- ## Findings
128
- - [Finding with severity and remediation]
129
- ```
130
-
131
- ## Tools & Integrations Reference
132
-
133
- ```markdown
134
- ## Recommended Tools
135
-
136
- ### PII Detection
137
- - Microsoft Presidio
138
- - AWS Macie
139
- - Google DLP API
140
- - spaCy NER
141
-
142
- ### Anonymization
143
- - ARX Data Anonymization Tool
144
- - k-anonymity libraries
145
- - Faker for test data
146
-
147
- ### Differential Privacy
148
- - Google DP library
149
- - OpenDP
150
- - PipelineDP
151
-
152
- ### Consent Management
153
- - OneTrust
154
- - TrustArc
155
- - Custom consent DB with access enforcement
156
-
157
- ### Database Masking
158
- - PostgreSQL pg_anonymize
159
- - MySQL Data Masking
160
- - Oracle Data Redaction
161
- ```
162
-
163
- </templates>
164
-
165
- <critical_rules>
166
- - **"Anonymized" Data That's Re-Identifiable**: Zip code + birthdate + gender = 87% unique in US; removing name isn't enough. Always validate anonymization with re-identification testing.
167
- - **Masking Only in UI**: Raw PII still in API responses, logs, database exports; must mask at source, not presentation layer.
168
- - **No Retention Enforcement**: Policy says "delete after 2 years" but no automation; data lives forever. Every retention policy must have a corresponding automated deletion job.
169
- - **Consent Stored But Never Checked**: Consent flags exist but not enforced in access control; legal compliance theater. Consent must gate data access at the query/API level.
170
- - **Backup Exemption**: "We can't delete from backups" violates GDPR; need backup anonymization or documented legal basis for retention.
171
- - **PII in Test Fixtures**: Never use real user data in test files, seed scripts, or CI/CD pipelines. Use synthetic data generators.
172
- - **Logging PII**: Application logs must never contain PII. Implement scrubbing at write time with automated verification.
173
- - **Zero PII in non-production**: Development, staging, and CI environments must contain zero real PII. Enforce through automated pipeline controls.
174
- </critical_rules>
175
-
176
- <success_criteria>
177
- - [ ] Zero PII in non-production environments (dev, staging, CI)?
178
- - [ ] Retention policies enforced automatically with scheduled deletion jobs?
179
- - [ ] Consent withdrawal propagates across all systems within 30 days?
180
- - [ ] Logs PII-free (scrubbed at write time, not redacted post-hoc)?
181
- - [ ] Anonymization resistant to re-identification (k-anonymity k ≥ 5, no rare attributes)?
182
- - [ ] Audit trail captures all PII access with sufficient detail for forensics?
183
- - [ ] Differential privacy guarantees formally verified for analytics queries?
184
- - [ ] PII detection automated in CI pipeline (pre-commit hooks, static analysis)?
185
- - [ ] Data flow diagram current and consent coverage verified?
186
- - [ ] Synthetic data generation available for all development environments?
187
- </success_criteria>