@prestyj/cli 5.32.2 → 5.34.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 (620) hide show
  1. package/README.md +16 -16
  2. package/assets/motion/skills/motion/SKILL.md +1 -1
  3. package/assets/skills/bulletproof/SKILL.md +72 -131
  4. package/assets/skills/bulletproof/references/agent-surface.md +22 -1
  5. package/assets/skills/bulletproof/references/audit-protocol.md +23 -6
  6. package/assets/skills/bulletproof/references/platform-playbooks.md +12 -0
  7. package/assets/skills/bulletproof/references/provenance.md +19 -2
  8. package/assets/skills/bulletproof/references/secure-defaults.md +13 -1
  9. package/assets/skills/bulletproof/references/supply-chain.md +8 -5
  10. package/assets/skills/bulletproof/references/threat-landscape.md +46 -57
  11. package/assets/skills/compliance-guard/SKILL.md +59 -212
  12. package/assets/skills/compliance-guard/references/artifacts.md +14 -1
  13. package/assets/skills/compliance-guard/references/eu-uk.md +17 -7
  14. package/assets/skills/compliance-guard/references/exposure-triage.md +16 -0
  15. package/assets/skills/compliance-guard/references/full-review.md +155 -0
  16. package/assets/skills/compliance-guard/references/lawsuit-vectors.md +14 -2
  17. package/assets/skills/compliance-guard/references/provenance.md +33 -2
  18. package/assets/skills/compliance-guard/references/sector-gates.md +15 -1
  19. package/assets/skills/compliance-guard/references/security-baseline.md +21 -34
  20. package/assets/skills/compliance-guard/references/trigger-map.md +15 -1
  21. package/assets/skills/compliance-guard/references/us.md +32 -8
  22. package/assets/skills/durable/SKILL.md +22 -29
  23. package/assets/skills/durable/references/agent-db-safety.md +2 -2
  24. package/assets/skills/durable/references/backups-and-runtime.md +6 -6
  25. package/assets/skills/durable/references/migrations-and-schema.md +5 -4
  26. package/assets/skills/lean/SKILL.md +36 -50
  27. package/assets/skills/lean/references/playbooks.md +9 -7
  28. package/dist/app-sidecar/app-settings.d.ts +5 -0
  29. package/dist/app-sidecar/app-settings.js +16 -0
  30. package/dist/app-sidecar/app-settings.js.map +1 -1
  31. package/dist/app-sidecar/auth-routes.js +45 -2
  32. package/dist/app-sidecar/auth-routes.js.map +1 -1
  33. package/dist/app-sidecar/autopilot-runner.d.ts +7 -0
  34. package/dist/app-sidecar/autopilot-runner.js +79 -19
  35. package/dist/app-sidecar/autopilot-runner.js.map +1 -1
  36. package/dist/app-sidecar/desktop-guidance.d.ts +1 -0
  37. package/dist/app-sidecar/desktop-guidance.js +27 -0
  38. package/dist/app-sidecar/desktop-guidance.js.map +1 -0
  39. package/dist/app-sidecar/history-routes.d.ts +6 -0
  40. package/dist/app-sidecar/history-routes.js +57 -2
  41. package/dist/app-sidecar/history-routes.js.map +1 -1
  42. package/dist/app-sidecar/history.d.ts +17 -0
  43. package/dist/app-sidecar/history.js.map +1 -1
  44. package/dist/app-sidecar/http.d.ts +1 -1
  45. package/dist/app-sidecar/http.js +2 -2
  46. package/dist/app-sidecar/http.js.map +1 -1
  47. package/dist/app-sidecar/integration-routes.js +4 -0
  48. package/dist/app-sidecar/integration-routes.js.map +1 -1
  49. package/dist/app-sidecar/live-preview/dev-url.d.ts +32 -0
  50. package/dist/app-sidecar/live-preview/dev-url.js +97 -0
  51. package/dist/app-sidecar/live-preview/dev-url.js.map +1 -0
  52. package/dist/app-sidecar/live-preview/frame-server.d.ts +31 -0
  53. package/dist/app-sidecar/live-preview/frame-server.js +193 -0
  54. package/dist/app-sidecar/live-preview/frame-server.js.map +1 -0
  55. package/dist/app-sidecar/live-preview/manager.d.ts +44 -0
  56. package/dist/app-sidecar/live-preview/manager.js +215 -0
  57. package/dist/app-sidecar/live-preview/manager.js.map +1 -0
  58. package/dist/app-sidecar/live-preview/proxy.d.ts +30 -0
  59. package/dist/app-sidecar/live-preview/proxy.js +235 -0
  60. package/dist/app-sidecar/live-preview/proxy.js.map +1 -0
  61. package/dist/app-sidecar/live-preview/routes.d.ts +4 -0
  62. package/dist/app-sidecar/live-preview/routes.js +52 -0
  63. package/dist/app-sidecar/live-preview/routes.js.map +1 -0
  64. package/dist/app-sidecar/live-preview/servers.d.ts +36 -0
  65. package/dist/app-sidecar/live-preview/servers.js +228 -0
  66. package/dist/app-sidecar/live-preview/servers.js.map +1 -0
  67. package/dist/app-sidecar/mcp-routes.js +9 -0
  68. package/dist/app-sidecar/mcp-routes.js.map +1 -1
  69. package/dist/app-sidecar/mcp-shell-command.d.ts +36 -0
  70. package/dist/app-sidecar/mcp-shell-command.js +302 -0
  71. package/dist/app-sidecar/mcp-shell-command.js.map +1 -0
  72. package/dist/app-sidecar/mcp-sync.d.ts +18 -0
  73. package/dist/app-sidecar/mcp-sync.js +38 -0
  74. package/dist/app-sidecar/mcp-sync.js.map +1 -0
  75. package/dist/app-sidecar/prompt-routes.js +58 -30
  76. package/dist/app-sidecar/prompt-routes.js.map +1 -1
  77. package/dist/app-sidecar/route-context.d.ts +13 -2
  78. package/dist/app-sidecar/run-control-routes.js +17 -3
  79. package/dist/app-sidecar/run-control-routes.js.map +1 -1
  80. package/dist/app-sidecar/session-routes.js +8 -0
  81. package/dist/app-sidecar/session-routes.js.map +1 -1
  82. package/dist/app-sidecar/shell-routes.d.ts +12 -0
  83. package/dist/app-sidecar/shell-routes.js +140 -0
  84. package/dist/app-sidecar/shell-routes.js.map +1 -0
  85. package/dist/app-sidecar/shell-runs.d.ts +103 -0
  86. package/dist/app-sidecar/shell-runs.js +268 -0
  87. package/dist/app-sidecar/shell-runs.js.map +1 -0
  88. package/dist/app-sidecar/shell-suggestions.d.ts +33 -0
  89. package/dist/app-sidecar/shell-suggestions.js +152 -0
  90. package/dist/app-sidecar/shell-suggestions.js.map +1 -0
  91. package/dist/app-sidecar/task-routes.js +1 -1
  92. package/dist/app-sidecar/task-routes.js.map +1 -1
  93. package/dist/app-sidecar/usage.js +26 -2
  94. package/dist/app-sidecar/usage.js.map +1 -1
  95. package/dist/app-sidecar/workspace-routes.js +35 -37
  96. package/dist/app-sidecar/workspace-routes.js.map +1 -1
  97. package/dist/app-sidecar-sessions.js +13 -3
  98. package/dist/app-sidecar-sessions.js.map +1 -1
  99. package/dist/app-sidecar.js +365 -96
  100. package/dist/app-sidecar.js.map +1 -1
  101. package/dist/chat-agents/index.d.ts +1 -1
  102. package/dist/chat-agents/index.js +1 -1
  103. package/dist/chat-agents/index.js.map +1 -1
  104. package/dist/chat-agents/shared.d.ts +4 -0
  105. package/dist/chat-agents/shared.js +8 -1
  106. package/dist/chat-agents/shared.js.map +1 -1
  107. package/dist/cli/mcp.js +19 -5
  108. package/dist/cli/mcp.js.map +1 -1
  109. package/dist/cli/shared.js +4 -0
  110. package/dist/cli/shared.js.map +1 -1
  111. package/dist/cli.js +41 -9
  112. package/dist/cli.js.map +1 -1
  113. package/dist/config.d.ts +22 -2
  114. package/dist/config.js +42 -97
  115. package/dist/config.js.map +1 -1
  116. package/dist/core/agent-session/mcp-tools.d.ts +17 -0
  117. package/dist/core/agent-session/mcp-tools.js +31 -0
  118. package/dist/core/agent-session/mcp-tools.js.map +1 -1
  119. package/dist/core/agent-session/verification-tracker.js +2 -10
  120. package/dist/core/agent-session/verification-tracker.js.map +1 -1
  121. package/dist/core/agent-session.d.ts +129 -11
  122. package/dist/core/agent-session.js +925 -171
  123. package/dist/core/agent-session.js.map +1 -1
  124. package/dist/core/agents.d.ts +0 -10
  125. package/dist/core/agents.js +5 -1
  126. package/dist/core/agents.js.map +1 -1
  127. package/dist/core/ask-user.d.ts +8 -0
  128. package/dist/core/ask-user.js +28 -6
  129. package/dist/core/ask-user.js.map +1 -1
  130. package/dist/core/autopilot-gate.js +2 -3
  131. package/dist/core/autopilot-gate.js.map +1 -1
  132. package/dist/core/bundled-agents.js +9 -29
  133. package/dist/core/bundled-agents.js.map +1 -1
  134. package/dist/core/cache-diagnostics.d.ts +4 -0
  135. package/dist/core/cache-diagnostics.js +4 -1
  136. package/dist/core/cache-diagnostics.js.map +1 -1
  137. package/dist/core/cache-expiry.d.ts +2 -0
  138. package/dist/core/cache-expiry.js +6 -0
  139. package/dist/core/cache-expiry.js.map +1 -1
  140. package/dist/core/checklist-items.d.ts +2 -10
  141. package/dist/core/checklist-items.js +14 -10
  142. package/dist/core/checklist-items.js.map +1 -1
  143. package/dist/core/checklist-prompt.d.ts +1 -1
  144. package/dist/core/checklist-prompt.js +1 -1
  145. package/dist/core/checkpoint-store.d.ts +17 -0
  146. package/dist/core/checkpoint-store.js +72 -0
  147. package/dist/core/checkpoint-store.js.map +1 -1
  148. package/dist/core/claude-code/complete.d.ts +35 -0
  149. package/dist/core/claude-code/complete.js +115 -0
  150. package/dist/core/claude-code/complete.js.map +1 -0
  151. package/dist/core/claude-code/events.d.ts +65 -0
  152. package/dist/core/claude-code/events.js +434 -0
  153. package/dist/core/claude-code/events.js.map +1 -0
  154. package/dist/core/claude-code/live-session.d.ts +92 -0
  155. package/dist/core/claude-code/live-session.js +519 -0
  156. package/dist/core/claude-code/live-session.js.map +1 -0
  157. package/dist/core/claude-code/loop.d.ts +9 -0
  158. package/dist/core/claude-code/loop.js +15 -0
  159. package/dist/core/claude-code/loop.js.map +1 -0
  160. package/dist/core/claude-code/session-sync.d.ts +28 -0
  161. package/dist/core/claude-code/session-sync.js +53 -0
  162. package/dist/core/claude-code/session-sync.js.map +1 -0
  163. package/dist/core/claude-code/tool-bridge.d.ts +49 -0
  164. package/dist/core/claude-code/tool-bridge.js +352 -0
  165. package/dist/core/claude-code/tool-bridge.js.map +1 -0
  166. package/dist/core/claude-code/transcripts.d.ts +29 -0
  167. package/dist/core/claude-code/transcripts.js +117 -0
  168. package/dist/core/claude-code/transcripts.js.map +1 -0
  169. package/dist/core/claude-code-version.d.ts +1 -1
  170. package/dist/core/claude-code-version.js +1 -1
  171. package/dist/core/claude-code-version.js.map +1 -1
  172. package/dist/core/code-retrieval.d.ts +1 -1
  173. package/dist/core/code-retrieval.js +2 -2
  174. package/dist/core/code-retrieval.js.map +1 -1
  175. package/dist/core/codex-request-shape.js +1 -1
  176. package/dist/core/compaction/compactor.d.ts +27 -1
  177. package/dist/core/compaction/compactor.js +143 -9
  178. package/dist/core/compaction/compactor.js.map +1 -1
  179. package/dist/core/compaction/plan-step-policy.d.ts +1 -1
  180. package/dist/core/compaction/plan-step-policy.js +1 -1
  181. package/dist/core/compaction/policy.d.ts +18 -0
  182. package/dist/core/compaction/policy.js +27 -7
  183. package/dist/core/compaction/policy.js.map +1 -1
  184. package/dist/core/compaction/tool-result-pruner.d.ts +20 -0
  185. package/dist/core/compaction/tool-result-pruner.js +25 -0
  186. package/dist/core/compaction/tool-result-pruner.js.map +1 -1
  187. package/dist/core/env-delta.d.ts +3 -3
  188. package/dist/core/env-delta.js +4 -5
  189. package/dist/core/env-delta.js.map +1 -1
  190. package/dist/core/extensions/plugin-bundles.d.ts +0 -9
  191. package/dist/core/extensions/plugin-bundles.js +0 -185
  192. package/dist/core/extensions/plugin-bundles.js.map +1 -1
  193. package/dist/core/goals-store.d.ts +9 -2
  194. package/dist/core/goals-store.js +111 -55
  195. package/dist/core/goals-store.js.map +1 -1
  196. package/dist/core/internal-diagnostics.d.ts +17 -0
  197. package/dist/core/internal-diagnostics.js +45 -0
  198. package/dist/core/internal-diagnostics.js.map +1 -1
  199. package/dist/core/language-detector.d.ts +2 -3
  200. package/dist/core/language-detector.js.map +1 -1
  201. package/dist/core/live-preview.d.ts +24 -0
  202. package/dist/core/live-preview.js +76 -0
  203. package/dist/core/live-preview.js.map +1 -0
  204. package/dist/core/local-endpoint-store.d.ts +4 -0
  205. package/dist/core/local-endpoint-store.js +31 -15
  206. package/dist/core/local-endpoint-store.js.map +1 -1
  207. package/dist/core/logger.d.ts +5 -0
  208. package/dist/core/logger.js +10 -2
  209. package/dist/core/logger.js.map +1 -1
  210. package/dist/core/lsp/edit-telemetry.js +3 -1
  211. package/dist/core/lsp/edit-telemetry.js.map +1 -1
  212. package/dist/core/lsp/manager.d.ts +15 -0
  213. package/dist/core/lsp/manager.js +31 -0
  214. package/dist/core/lsp/manager.js.map +1 -1
  215. package/dist/core/mcp/client.d.ts +9 -0
  216. package/dist/core/mcp/client.js +58 -5
  217. package/dist/core/mcp/client.js.map +1 -1
  218. package/dist/core/mcp/deferred-catalog.d.ts +1 -1
  219. package/dist/core/mcp/deferred-catalog.js +1 -1
  220. package/dist/core/mcp/oauth-provider.d.ts +7 -1
  221. package/dist/core/mcp/oauth-provider.js +11 -4
  222. package/dist/core/mcp/oauth-provider.js.map +1 -1
  223. package/dist/core/mcp/oauth-store.d.ts +6 -0
  224. package/dist/core/mcp/oauth-store.js +14 -0
  225. package/dist/core/mcp/oauth-store.js.map +1 -1
  226. package/dist/core/mcp/parse-add-command.d.ts +29 -3
  227. package/dist/core/mcp/parse-add-command.js +196 -26
  228. package/dist/core/mcp/parse-add-command.js.map +1 -1
  229. package/dist/core/mcp/store.d.ts +16 -0
  230. package/dist/core/mcp/store.js +28 -0
  231. package/dist/core/mcp/store.js.map +1 -1
  232. package/dist/core/mcp/types.d.ts +9 -0
  233. package/dist/core/nolan-ask-answer.d.ts +24 -0
  234. package/dist/core/nolan-ask-answer.js +96 -0
  235. package/dist/core/nolan-ask-answer.js.map +1 -0
  236. package/dist/core/nolan-context.d.ts +20 -0
  237. package/dist/core/nolan-context.js +55 -0
  238. package/dist/core/nolan-context.js.map +1 -1
  239. package/dist/core/nolan-prompt.js +6 -0
  240. package/dist/core/nolan-prompt.js.map +1 -1
  241. package/dist/core/opencode-catalog-store.d.ts +20 -0
  242. package/dist/core/opencode-catalog-store.js +82 -0
  243. package/dist/core/opencode-catalog-store.js.map +1 -0
  244. package/dist/core/openrouter-catalog-store.d.ts +24 -0
  245. package/dist/core/openrouter-catalog-store.js +140 -0
  246. package/dist/core/openrouter-catalog-store.js.map +1 -0
  247. package/dist/core/package-cooldown.d.ts +0 -2
  248. package/dist/core/package-cooldown.js +0 -4
  249. package/dist/core/package-cooldown.js.map +1 -1
  250. package/dist/core/plan-delta.d.ts +23 -0
  251. package/dist/core/plan-delta.js +36 -0
  252. package/dist/core/plan-delta.js.map +1 -0
  253. package/dist/core/process-gate.d.ts +17 -0
  254. package/dist/core/process-gate.js +24 -0
  255. package/dist/core/process-gate.js.map +1 -1
  256. package/dist/core/process-manager.d.ts +1 -1
  257. package/dist/core/process-manager.js +1 -1
  258. package/dist/core/project-discovery.js +2 -2
  259. package/dist/core/project-discovery.js.map +1 -1
  260. package/dist/core/project-files.js +1 -1
  261. package/dist/core/project-files.js.map +1 -1
  262. package/dist/core/prompt-commands.js +106 -107
  263. package/dist/core/prompt-commands.js.map +1 -1
  264. package/dist/core/radio-players.d.ts +28 -0
  265. package/dist/core/radio-players.js +133 -0
  266. package/dist/core/radio-players.js.map +1 -0
  267. package/dist/core/radio.js +20 -3
  268. package/dist/core/radio.js.map +1 -1
  269. package/dist/core/runtime-mode.d.ts +9 -8
  270. package/dist/core/runtime-mode.js +26 -0
  271. package/dist/core/runtime-mode.js.map +1 -1
  272. package/dist/core/session-history.d.ts +7 -0
  273. package/dist/core/session-history.js +48 -4
  274. package/dist/core/session-history.js.map +1 -1
  275. package/dist/core/session-manager.d.ts +10 -1
  276. package/dist/core/session-manager.js +48 -14
  277. package/dist/core/session-manager.js.map +1 -1
  278. package/dist/core/session-preview.js +2 -2
  279. package/dist/core/session-preview.js.map +1 -1
  280. package/dist/core/session-storage.d.ts +0 -2
  281. package/dist/core/session-storage.js +0 -2
  282. package/dist/core/session-storage.js.map +1 -1
  283. package/dist/core/session-summary-index.d.ts +18 -4
  284. package/dist/core/session-summary-index.js +28 -8
  285. package/dist/core/session-summary-index.js.map +1 -1
  286. package/dist/core/settings-manager.d.ts +9 -0
  287. package/dist/core/settings-manager.js +56 -8
  288. package/dist/core/settings-manager.js.map +1 -1
  289. package/dist/core/shell-path.d.ts +2 -0
  290. package/dist/core/shell-path.js +10 -1
  291. package/dist/core/shell-path.js.map +1 -1
  292. package/dist/core/shell.d.ts +4 -0
  293. package/dist/core/shell.js +15 -1
  294. package/dist/core/shell.js.map +1 -1
  295. package/dist/core/skills.d.ts +10 -0
  296. package/dist/core/skills.js +20 -5
  297. package/dist/core/skills.js.map +1 -1
  298. package/dist/core/steering.d.ts +4 -0
  299. package/dist/core/steering.js +8 -1
  300. package/dist/core/steering.js.map +1 -1
  301. package/dist/core/stream-diag-level.d.ts +3 -0
  302. package/dist/core/stream-diag-level.js +24 -0
  303. package/dist/core/stream-diag-level.js.map +1 -0
  304. package/dist/core/subagent-manager.d.ts +11 -0
  305. package/dist/core/subagent-manager.js +16 -4
  306. package/dist/core/subagent-manager.js.map +1 -1
  307. package/dist/core/subagent-policy.d.ts +6 -0
  308. package/dist/core/subagent-policy.js +22 -3
  309. package/dist/core/subagent-policy.js.map +1 -1
  310. package/dist/core/subagent-receipt.d.ts +3 -3
  311. package/dist/core/subagent-receipt.js +6 -9
  312. package/dist/core/subagent-receipt.js.map +1 -1
  313. package/dist/core/task-store.d.ts +0 -1
  314. package/dist/core/task-store.js +0 -3
  315. package/dist/core/task-store.js.map +1 -1
  316. package/dist/core/trophies/catalog-more.js +16 -36
  317. package/dist/core/trophies/catalog-more.js.map +1 -1
  318. package/dist/core/trophies/catalog.js +3 -3
  319. package/dist/core/trophies/catalog.js.map +1 -1
  320. package/dist/core/trophies/engine.js +0 -4
  321. package/dist/core/trophies/engine.js.map +1 -1
  322. package/dist/core/trophies/types.d.ts +1 -1
  323. package/dist/core/trophies/types.js +0 -2
  324. package/dist/core/trophies/types.js.map +1 -1
  325. package/dist/core/user-shell-context.d.ts +8 -0
  326. package/dist/core/user-shell-context.js +12 -0
  327. package/dist/core/user-shell-context.js.map +1 -0
  328. package/dist/core/verify-commands.d.ts +1 -1
  329. package/dist/goals-agent/goal-team.js +3 -4
  330. package/dist/goals-agent/goal-team.js.map +1 -1
  331. package/dist/goals-agent/goals-agent.d.ts +1 -1
  332. package/dist/goals-agent/goals-agent.js +4 -3
  333. package/dist/goals-agent/goals-agent.js.map +1 -1
  334. package/dist/modes/acp-mode.d.ts +2 -2
  335. package/dist/modes/acp-mode.js +4 -5
  336. package/dist/modes/acp-mode.js.map +1 -1
  337. package/dist/modes/agent-home-mode.js +5 -5
  338. package/dist/modes/agent-home-mode.js.map +1 -1
  339. package/dist/modes/json-mode.js +5 -0
  340. package/dist/modes/json-mode.js.map +1 -1
  341. package/dist/modes/serve-mode.js +5 -5
  342. package/dist/modes/serve-mode.js.map +1 -1
  343. package/dist/motion-agent/motion-agent.d.ts +12 -5
  344. package/dist/motion-agent/motion-agent.js +24 -9
  345. package/dist/motion-agent/motion-agent.js.map +1 -1
  346. package/dist/motion-agent/motion-review.d.ts +0 -75
  347. package/dist/motion-agent/motion-review.js +0 -189
  348. package/dist/motion-agent/motion-review.js.map +1 -1
  349. package/dist/subagent-entry.d.ts +1 -0
  350. package/dist/subagent-entry.js +50 -0
  351. package/dist/subagent-entry.js.map +1 -0
  352. package/dist/system-prompt.d.ts +11 -4
  353. package/dist/system-prompt.js +38 -22
  354. package/dist/system-prompt.js.map +1 -1
  355. package/dist/test-support/system-tools.d.ts +6 -0
  356. package/dist/test-support/system-tools.js +36 -0
  357. package/dist/test-support/system-tools.js.map +1 -0
  358. package/dist/tools/ask-user.js +5 -3
  359. package/dist/tools/ask-user.js.map +1 -1
  360. package/dist/tools/bash.d.ts +9 -2
  361. package/dist/tools/bash.js +382 -362
  362. package/dist/tools/bash.js.map +1 -1
  363. package/dist/tools/checklist.js +6 -11
  364. package/dist/tools/checklist.js.map +1 -1
  365. package/dist/tools/debug.js +6 -9
  366. package/dist/tools/debug.js.map +1 -1
  367. package/dist/tools/document-text.d.ts +6 -0
  368. package/dist/tools/document-text.js +154 -0
  369. package/dist/tools/document-text.js.map +1 -0
  370. package/dist/tools/enter-plan.js +4 -7
  371. package/dist/tools/enter-plan.js.map +1 -1
  372. package/dist/tools/find.d.ts +9 -0
  373. package/dist/tools/find.js +38 -1
  374. package/dist/tools/find.js.map +1 -1
  375. package/dist/tools/generate-image.d.ts +18 -0
  376. package/dist/tools/generate-image.js +208 -17
  377. package/dist/tools/generate-image.js.map +1 -1
  378. package/dist/tools/goals.d.ts +2 -2
  379. package/dist/tools/index.d.ts +5 -2
  380. package/dist/tools/index.js +5 -13
  381. package/dist/tools/index.js.map +1 -1
  382. package/dist/tools/live-preview.d.ts +21 -0
  383. package/dist/tools/live-preview.js +37 -0
  384. package/dist/tools/live-preview.js.map +1 -0
  385. package/dist/tools/operations.js +1 -1
  386. package/dist/tools/operations.js.map +1 -1
  387. package/dist/tools/overflow.d.ts +2 -0
  388. package/dist/tools/overflow.js +10 -0
  389. package/dist/tools/overflow.js.map +1 -1
  390. package/dist/tools/path-utils.d.ts +0 -15
  391. package/dist/tools/path-utils.js +0 -17
  392. package/dist/tools/path-utils.js.map +1 -1
  393. package/dist/tools/prompt-hints.d.ts +2 -0
  394. package/dist/tools/prompt-hints.js +16 -9
  395. package/dist/tools/prompt-hints.js.map +1 -1
  396. package/dist/tools/read.js +25 -10
  397. package/dist/tools/read.js.map +1 -1
  398. package/dist/tools/routine-output.d.ts +10 -1
  399. package/dist/tools/routine-output.js +79 -1
  400. package/dist/tools/routine-output.js.map +1 -1
  401. package/dist/tools/screenshot.js +6 -10
  402. package/dist/tools/screenshot.js.map +1 -1
  403. package/dist/tools/side-web-search.d.ts +35 -0
  404. package/dist/tools/side-web-search.js +147 -0
  405. package/dist/tools/side-web-search.js.map +1 -0
  406. package/dist/tools/skill.d.ts +2 -0
  407. package/dist/tools/skill.js +33 -6
  408. package/dist/tools/skill.js.map +1 -1
  409. package/dist/tools/steroids.d.ts +7 -6
  410. package/dist/tools/steroids.js +193 -87
  411. package/dist/tools/steroids.js.map +1 -1
  412. package/dist/tools/subagent-control.js +66 -10
  413. package/dist/tools/subagent-control.js.map +1 -1
  414. package/dist/tools/subagent-shared.d.ts +19 -2
  415. package/dist/tools/subagent-shared.js +35 -10
  416. package/dist/tools/subagent-shared.js.map +1 -1
  417. package/dist/tools/subagent.js +23 -7
  418. package/dist/tools/subagent.js.map +1 -1
  419. package/dist/tools/tool-search.js +7 -1
  420. package/dist/tools/tool-search.js.map +1 -1
  421. package/dist/tools/tool-tiers.d.ts +3 -2
  422. package/dist/tools/tool-tiers.js +7 -5
  423. package/dist/tools/tool-tiers.js.map +1 -1
  424. package/dist/tools/truncate.d.ts +0 -2
  425. package/dist/tools/truncate.js +4 -10
  426. package/dist/tools/truncate.js.map +1 -1
  427. package/dist/tools/web-fetch.d.ts +15 -1
  428. package/dist/tools/web-fetch.js +138 -21
  429. package/dist/tools/web-fetch.js.map +1 -1
  430. package/dist/tools/web-search.d.ts +3 -2
  431. package/dist/tools/web-search.js +25 -1
  432. package/dist/tools/web-search.js.map +1 -1
  433. package/dist/ui/App.js +37 -38
  434. package/dist/ui/App.js.map +1 -1
  435. package/dist/ui/app-items.d.ts +0 -2
  436. package/dist/ui/app-items.js +0 -2
  437. package/dist/ui/app-items.js.map +1 -1
  438. package/dist/ui/components/Footer.js +8 -5
  439. package/dist/ui/components/Footer.js.map +1 -1
  440. package/dist/ui/components/ModelSelector.js +2 -0
  441. package/dist/ui/components/ModelSelector.js.map +1 -1
  442. package/dist/ui/components/SkillsOverlay.js +2 -1
  443. package/dist/ui/components/SkillsOverlay.js.map +1 -1
  444. package/dist/ui/constants/figures.d.ts +0 -8
  445. package/dist/ui/constants/figures.js +0 -8
  446. package/dist/ui/constants/figures.js.map +1 -1
  447. package/dist/ui/hooks/useAgentLoop.d.ts +3 -0
  448. package/dist/ui/hooks/useAgentLoop.js +54 -4
  449. package/dist/ui/hooks/useAgentLoop.js.map +1 -1
  450. package/dist/ui/hooks/useContextCompaction.js +1 -0
  451. package/dist/ui/hooks/useContextCompaction.js.map +1 -1
  452. package/dist/ui/language-pack-update.d.ts +25 -0
  453. package/dist/ui/language-pack-update.js +19 -0
  454. package/dist/ui/language-pack-update.js.map +1 -0
  455. package/dist/ui/layout-decisions.d.ts +0 -5
  456. package/dist/ui/layout-decisions.js +1 -10
  457. package/dist/ui/layout-decisions.js.map +1 -1
  458. package/dist/ui/terminal-history-status-renderers.d.ts +0 -1
  459. package/dist/ui/terminal-history-status-renderers.js +0 -12
  460. package/dist/ui/terminal-history-status-renderers.js.map +1 -1
  461. package/dist/ui/terminal-history.js +3 -1
  462. package/dist/ui/terminal-history.js.map +1 -1
  463. package/dist/ui/transcript/presentation.d.ts +1 -2
  464. package/dist/ui/transcript/presentation.js +0 -4
  465. package/dist/ui/transcript/presentation.js.map +1 -1
  466. package/dist/utils/http-body.d.ts +5 -0
  467. package/dist/utils/http-body.js +5 -0
  468. package/dist/utils/http-body.js.map +1 -1
  469. package/dist/utils/image.d.ts +11 -4
  470. package/dist/utils/image.js +34 -11
  471. package/dist/utils/image.js.map +1 -1
  472. package/dist/utils/plan-steps.d.ts +1 -0
  473. package/dist/utils/plan-steps.js +10 -0
  474. package/dist/utils/plan-steps.js.map +1 -1
  475. package/dist/utils/prompt-enhancer.d.ts +3 -1
  476. package/dist/utils/prompt-enhancer.js +21 -16
  477. package/dist/utils/prompt-enhancer.js.map +1 -1
  478. package/dist/web.d.ts +5 -0
  479. package/dist/web.js +5 -0
  480. package/dist/web.js.map +1 -0
  481. package/package.json +27 -6
  482. package/assets/skills/clarify/SKILL.md +0 -39
  483. package/assets/skills/code-review/SKILL.md +0 -88
  484. package/assets/skills/code-review/references/agent-diffs.md +0 -27
  485. package/assets/skills/code-review/references/tests.md +0 -19
  486. package/assets/skills/evidence-led-ui/LICENSES.md +0 -80
  487. package/assets/skills/evidence-led-ui/SKILL.md +0 -100
  488. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/LICENSE +0 -21
  489. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airbnb/DESIGN.md +0 -545
  490. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airtable/DESIGN.md +0 -554
  491. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/apple/DESIGN.md +0 -562
  492. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/binance/DESIGN.md +0 -634
  493. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw/DESIGN.md +0 -544
  494. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw-m/DESIGN.md +0 -503
  495. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bugatti/DESIGN.md +0 -454
  496. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cal/DESIGN.md +0 -542
  497. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/claude/DESIGN.md +0 -589
  498. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clay/DESIGN.md +0 -541
  499. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clickhouse/DESIGN.md +0 -544
  500. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cohere/DESIGN.md +0 -451
  501. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/coinbase/DESIGN.md +0 -570
  502. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/composio/DESIGN.md +0 -506
  503. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cursor/DESIGN.md +0 -537
  504. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/dell-1996/DESIGN.md +0 -632
  505. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/elevenlabs/DESIGN.md +0 -504
  506. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/expo/DESIGN.md +0 -526
  507. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ferrari/DESIGN.md +0 -531
  508. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/figma/DESIGN.md +0 -578
  509. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/framer/DESIGN.md +0 -544
  510. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hashicorp/DESIGN.md +0 -575
  511. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hp/DESIGN.md +0 -670
  512. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ibm/DESIGN.md +0 -550
  513. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/intercom/DESIGN.md +0 -546
  514. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/kraken/DESIGN.md +0 -125
  515. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lamborghini/DESIGN.md +0 -288
  516. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/linear.app/DESIGN.md +0 -548
  517. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lovable/DESIGN.md +0 -298
  518. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mastercard/DESIGN.md +0 -365
  519. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/meta/DESIGN.md +0 -683
  520. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/minimax/DESIGN.md +0 -746
  521. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mintlify/DESIGN.md +0 -852
  522. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/miro/DESIGN.md +0 -825
  523. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mistral.ai/DESIGN.md +0 -773
  524. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mongodb/DESIGN.md +0 -767
  525. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nike/DESIGN.md +0 -575
  526. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nintendo-2001/DESIGN.md +0 -649
  527. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/notion/DESIGN.md +0 -821
  528. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nvidia/DESIGN.md +0 -640
  529. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ollama/DESIGN.md +0 -539
  530. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/opencode.ai/DESIGN.md +0 -521
  531. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/pinterest/DESIGN.md +0 -597
  532. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/playstation/DESIGN.md +0 -661
  533. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/posthog/DESIGN.md +0 -690
  534. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/raycast/DESIGN.md +0 -669
  535. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/renault/DESIGN.md +0 -589
  536. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/replicate/DESIGN.md +0 -616
  537. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/resend/DESIGN.md +0 -585
  538. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/revolut/DESIGN.md +0 -636
  539. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/runwayml/DESIGN.md +0 -244
  540. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sanity/DESIGN.md +0 -357
  541. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sentry/DESIGN.md +0 -551
  542. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/shopify/DESIGN.md +0 -516
  543. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/slack/DESIGN.md +0 -482
  544. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spacex/DESIGN.md +0 -363
  545. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spotify/DESIGN.md +0 -246
  546. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/starbucks/DESIGN.md +0 -580
  547. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/stripe/DESIGN.md +0 -487
  548. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/supabase/DESIGN.md +0 -462
  549. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/superhuman/DESIGN.md +0 -448
  550. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/tesla/DESIGN.md +0 -286
  551. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/theverge/DESIGN.md +0 -339
  552. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/together.ai/DESIGN.md +0 -633
  553. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/uber/DESIGN.md +0 -636
  554. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vercel/DESIGN.md +0 -736
  555. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vodafone/DESIGN.md +0 -538
  556. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/voltagent/DESIGN.md +0 -521
  557. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/warp/DESIGN.md +0 -526
  558. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/webflow/DESIGN.md +0 -588
  559. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wired/DESIGN.md +0 -497
  560. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wise/DESIGN.md +0 -544
  561. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/x.ai/DESIGN.md +0 -465
  562. package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/zapier/DESIGN.md +0 -537
  563. package/assets/skills/evidence-led-ui/data/corpus-manifest.json +0 -768
  564. package/assets/skills/evidence-led-ui/data/observations.json +0 -47053
  565. package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
  566. package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
  567. package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
  568. package/assets/skills/evidence-led-ui/references/direction.md +0 -124
  569. package/assets/skills/evidence-led-ui/references/methodology.md +0 -72
  570. package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
  571. package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
  572. package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
  573. package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
  574. package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
  575. package/assets/skills/refactoring/SKILL.md +0 -87
  576. package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
  577. package/assets/skills/refactoring/references/legacy.md +0 -70
  578. package/assets/skills/refactoring/references/smells.md +0 -71
  579. package/assets/skills/root-cause/SKILL.md +0 -46
  580. package/assets/skills/shared-language/SKILL.md +0 -32
  581. package/assets/skills/tdd/SKILL.md +0 -42
  582. package/dist/core/setup-history.d.ts +0 -6
  583. package/dist/core/setup-history.js +0 -55
  584. package/dist/core/setup-history.js.map +0 -1
  585. package/dist/core/style-packs/index.d.ts +0 -18
  586. package/dist/core/style-packs/index.js +0 -60
  587. package/dist/core/style-packs/index.js.map +0 -1
  588. package/dist/core/style-packs/packs.d.ts +0 -8
  589. package/dist/core/style-packs/packs.js +0 -188
  590. package/dist/core/style-packs/packs.js.map +0 -1
  591. package/dist/interactive.d.ts +0 -2
  592. package/dist/interactive.js +0 -257
  593. package/dist/interactive.js.map +0 -1
  594. package/dist/motion-agent/motion-review-coverage.d.ts +0 -12
  595. package/dist/motion-agent/motion-review-coverage.js +0 -33
  596. package/dist/motion-agent/motion-review-coverage.js.map +0 -1
  597. package/dist/motion-agent/motion-review-gate.d.ts +0 -48
  598. package/dist/motion-agent/motion-review-gate.js +0 -88
  599. package/dist/motion-agent/motion-review-gate.js.map +0 -1
  600. package/dist/motion-agent/motion-review-session.d.ts +0 -65
  601. package/dist/motion-agent/motion-review-session.js +0 -422
  602. package/dist/motion-agent/motion-review-session.js.map +0 -1
  603. package/dist/tools/code-nav.d.ts +0 -29
  604. package/dist/tools/code-nav.js +0 -299
  605. package/dist/tools/code-nav.js.map +0 -1
  606. package/dist/tools/code-skeleton.d.ts +0 -28
  607. package/dist/tools/code-skeleton.js +0 -115
  608. package/dist/tools/code-skeleton.js.map +0 -1
  609. package/dist/tools/search-code.d.ts +0 -10
  610. package/dist/tools/search-code.js +0 -90
  611. package/dist/tools/search-code.js.map +0 -1
  612. package/dist/ui/stores/index.d.ts +0 -2
  613. package/dist/ui/stores/index.js +0 -3
  614. package/dist/ui/stores/index.js.map +0 -1
  615. package/dist/utils/format.d.ts +0 -16
  616. package/dist/utils/format.js +0 -159
  617. package/dist/utils/format.js.map +0 -1
  618. package/dist/utils/shell.d.ts +0 -2
  619. package/dist/utils/shell.js +0 -8
  620. package/dist/utils/shell.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  A03:2025 is Software Supply Chain Failures — promoted because this is now the dominant compromise route for small teams. Your dependencies, your CI, and your release pipeline are all code you ship, written by people you have not met.
4
4
 
5
- Snapshot 3 October 2026. **[V]** verified, **[S]** volatile, **[U]** uncertain.
5
+ Snapshot 3 October 2026, publishing and worm items re-verified 22 October 2026. **[V]** verified, **[S]** volatile, **[U]** uncertain.
6
6
 
7
7
  ## Adding a dependency
8
8
 
@@ -13,7 +13,7 @@ Before adding any package — and **especially** one you or a model produced fro
13
13
  3. **Check character-level lookalikes** against the package you meant: hyphen vs underscore, singular vs plural, scoped vs unscoped, `-js` suffix, homoglyphs.
14
14
  4. **Prefer what is already in the project.** The safest dependency is the one you do not add. For a few dozen lines, write the code.
15
15
  5. **Pin it.** Exact version in the manifest, lockfile committed, and for containers and Actions pin by digest or commit SHA.
16
- 6. **Let it age.** Malicious worm versions were typically pulled within hours, so a cooldown blocks most of them. Set one [S]: npm ≥ 11.10 `min-release-age=<days>` in `.npmrc`; pnpm ≥ 10.16 `minimumReleaseAge` (minutes; defaults to 1440 from v11); Yarn ≥ 4.10 `npmMinimalAgeGate`. Exempt a version only to take an urgent security fix.
16
+ 6. **Let it age.** Malicious worm versions were typically pulled within hours, so a cooldown blocks most of them. Set one in whatever package manager the project uses (npm `min-release-age`, pnpm `minimumReleaseAge`, Yarn `npmMinimalAgeGate`); check the installed version supports it rather than trusting a remembered minimum [S]. Exempt a version only to take an urgent security fix.
17
17
 
18
18
  ## Install-time execution
19
19
 
@@ -30,9 +30,10 @@ If others install your code, you are their supply chain.
30
30
 
31
31
  - **npm state of play** [V]: classic tokens were permanently revoked on 9 Dec 2025; `npm login` now yields 2-hour session tokens; granular write tokens enforce 2FA by default (Bypass-2FA is opt-in) and are capped at 90 days. npm intends to end direct publishing with Bypass-2FA tokens around Jan 2027 [U].
32
32
  - **Trusted publishing (OIDC) instead of stored tokens.** A token in CI is the exact asset every worm enumerates. But OIDC alone did not stop TanStack or ChainDrop: put `id-token: write` only on the publish job, never in a job that runs PR code or restores a cache a PR could have written.
33
- - **Staged publishing** (GA 22 May 2026, npm CLI ≥ 11.15.0) [V]: CI uploads to a stage queue and a maintainer approves with 2FA; since Sep 2026 approval waits for npm's malware scan. For a solo maintainer, this is the single best publish control — a stolen CI identity can stage but not release.
33
+ - **Staged publishing** (GA 22 May 2026, npm CLI ≥ 11.15.0) [V]: CI uploads to a stage queue and a maintainer approves with 2FA; since Sep 2026 approval waits for npm's malware scan; since 2 Oct 2026 it also covers creating brand-new packages [V]. For a solo maintainer, this is the single best publish control — a stolen CI identity can stage but not release.
34
+ - **Bind trust to immutable IDs.** Until its first publish, an npm trusted-publishing config matched the repo by renameable `owner/repo` name, so whoever claimed a freed name could publish ("SlugFest", disclosed 13 Oct 2026) [S]. Since 2 Oct 2026 unvalidated configs expire after 48 hours [V] and npm refuses trusted-publishing tokens from `issue_comment` workflows as well as `pull_request_target` [S]. Publish once right after creating a binding, recreate bindings after any rename or transfer, and apply the same rule to your own authorization code: key on IDs, not names.
34
35
  - 2FA on the registry and source-control accounts, phishing-resistant (passkey/security key) where possible.
35
- - Generate provenance/attestations — but **provenance proves where an artifact was built, not that the build was honest.** Both 2026 worms shipped valid provenance [V].
36
+ - Generate provenance/attestations — but **provenance proves where an artifact was built, not that the build was honest.** ChainDrop (Aug 2026) and the `tensorlake@0.5.144` worm (8 Oct 2026, GHSA-rqxj-g25x-4v9v [V], via a preinstall hook) both shipped valid provenance [S].
36
37
  - Verify what is in the tarball before it ships: `npm pack --dry-run` or equivalent. Ship no source maps, no `.env`, no test fixtures, no internal docs. A source-map leak has already exposed a major product's source [S].
37
38
  - Review the diff of every release, including dependency bumps. Maintainer-account compromise is the entry point in most of these incidents; a second pair of eyes on the release commit is the cheapest control.
38
39
 
@@ -65,7 +66,9 @@ The highest-value target, because CI holds every credential at once — 59% of m
65
66
 
66
67
  - Automated dependency updates with a review gate, plus a scanner that fails the build on known-exploited vulnerabilities in reachable code — not on every advisory, or the team learns to ignore it.
67
68
  - Track a real SBOM (CycloneDX or SPDX) generated in CI per release. It is a regulatory obligation for some products [V], and independently it is the only way to answer "are we affected" in hours instead of days.
68
- - Median time from CVE publication to confirmed exploitation is now roughly 80 days [S]. **The controllable variable is your patch latency**, not their speed.
69
+ - **The controllable variable is your patch latency**, not the attacker's speed.
70
+ - **Run a currently patched runtime line.** Node ships security releases several times a year (21 Oct 2026 covered a Brotli decoder out-of-bounds write and a TLS hostname-check bypass) [V]; stay on a supported line and take its patch releases, rather than pinning a remembered version.
71
+ - **After a framework upgrade, check its transitive native dependencies.** Next.js's 14 Oct 2026 advisories included unauthenticated RCE through SVG handling in image optimization and `next/og` (native `sharp`/librsvg) [V]: the framework version was the fix, but the reachable code was a native image library. List native deps (`npm ls sharp`, lockfile) and confirm they moved too.
69
72
  - Subscribe to advisories for your actual stack. For a small team, three feeds you read beats thirty you filter.
70
73
 
71
74
  ## If you suspect compromise
@@ -1,76 +1,65 @@
1
- # Threat Landscape — snapshot 3 October 2026
1
+ # Threat Landscape — techniques and defensive fingerprints
2
2
 
3
- Why the defaults in this skill are what they are. Confidence markers: **[V]** verified against a primary source at snapshot time, **[S]** snapshot-accurate but volatile, **[U]** uncertain or single-sourced. Preserve the markers when you repeat these claims.
3
+ Why the defaults in this skill are what they are. Each entry is a **technique** an attacker used, the **fingerprint** a defender can check for, and the **lesson**. Incident names are kept as anchors only; counts and statistics rot, so they are deliberately left out. Markers: **[V]** verified against a primary source, **[S]** volatile or secondary, **[U]** uncertain. Snapshot 3 Oct 2026, reworked 22 Oct 2026.
4
4
 
5
- Read this once per full review to set the threat model. Do not paste incident lists into a report — cite only the ones that map to a finding.
5
+ Read once per full review to set the threat model. Cite only entries that map to a finding.
6
6
 
7
- ## 1. What automation actually changed
7
+ ## 1. What automation changed
8
8
 
9
- **Confirmed: AI-orchestrated intrusion is real and operational.**
9
+ - **AI-orchestrated intrusion is operational** [V] (Anthropic, GTG-1002, Nov 2025). Technique: an agent wired to tooling over MCP ran recon through exfiltration, after operators posed as an authorized security firm. Lesson: a defensive framing in a brief is necessary, never sufficient; the Hard stops still apply.
10
+ - **Machine-found bugs at scale, exploitation not proportionally** [V] (VulnCheck, Jul 2026): AI-attributed vulnerabilities were exploited at about the general rate. Lesson: discovery volume moved the bottleneck to maintainer triage and patch capacity, which is where small teams are weakest.
10
11
 
11
- - **GTG-1002** [V] — Anthropic disclosed (13 Nov 2025) the first documented largely-autonomous AI-orchestrated espionage campaign: an actor it assessed as China state-sponsored drove a coding agent wired to tooling over MCP through recon, vulnerability discovery, exploitation, credential harvesting and exfiltration against roughly 30 organizations, with 80–90% of tactical work machine-executed and a small number of intrusions succeeding. The operators got the model to cooperate by **posing as a security firm doing authorized defensive testing** — so a defensive framing in a brief is necessary, never sufficient; the Hard stops still apply.
12
- - **Runtime LLM use inside malware** [U] — Google GTIG (Nov 2025) reported malware families that query a hosted model at runtime for obfuscation or collection commands. Not re-verified for this snapshot.
13
- - **Machine-found bugs at scale** [V] — Anthropic's Project Glasswing reported 23,019 vulnerability candidates; by late July 2026 about 126 had become published CVEs and one was confirmed exploited (per VulnCheck). Candidates are not CVEs, and CVEs are not exploitation.
12
+ What this means for code you write:
14
13
 
15
- **The honest counterweight — do not overstate this.** VulnCheck (28 Jul 2026) [V] found that of ~1,061 vulnerabilities attributed to AI-assisted discovery, only about 1.3% are confirmed exploited in the wild — roughly the same rate as vulnerabilities generally. Discovery volume is not exploitation volume. Machine-scale scanning has moved the bottleneck to **maintainer capacity to triage, patch, test and ship**, which is exactly where a small team is weakest.
14
+ 1. Assume any public repo has been read end-to-end by a machine. Obscurity is not even a delay.
15
+ 2. Machines find classes with a cheap verification oracle fastest (web/API, parser memory safety). Business logic and multi-actor authorization remain where expensive breaches happen.
16
+ 3. Patch latency is the dominant controllable variable.
17
+ 4. Detection that needs a human to read a dashboard within the hour is not a control.
16
18
 
17
- **What this means for the code you write:**
19
+ ## 2. Supply chain
18
20
 
19
- 1. Assume any public repository has been read end-to-end by an automated system. Obscurity was never a control; now it is not even a delay.
20
- 2. The bug classes machines find fastest are the ones with a cheap verification oracle — web/API classes and memory-safety in parsers. Business logic and multi-actor authorization remain comparatively hard for them, and remain where the expensive breaches happen.
21
- 3. Patch latency is now the dominant controllable variable. A dependency you cannot update quickly is a standing liability.
22
- 4. Breakout speed is measured in minutes [U] (vendor threat reports; not re-verified). Detection that requires a human to read a dashboard within the hour is not a control.
21
+ | Technique | Defensive fingerprint | Lesson |
22
+ |---|---|---|
23
+ | **Self-propagating npm worm** (Shai-Hulud lineage, Sept 2025 onward) [V]: steal a publish token, enumerate the victim's packages, inject, republish | Install hooks added in a patch release; packages you maintain republished without your commit; CI runners as the main victims | CI holds every credential at once; it is the real target |
24
+ | **Fork PR → `pull_request_target` → cache poisoning → OIDC token from runner memory** (TanStack, May 2026) [V] | `pull_request_target`/`workflow_run` jobs that check out PR code; release jobs restoring caches a PR job could write; `id-token: write` outside the publish job | No token theft is needed when CI trust boundaries leak |
25
+ | **Install-time execution without a lifecycle script** (bare `binding.gyp` → implicit `node-gyp rebuild`, mid-2026) [S] | `binding.gyp` in a package with no native need | Scanners that only watch `preinstall`/`postinstall` miss it |
26
+ | **Persistence in editor/agent config** (ChainDrop, Aug 2026) [V]: commits a `SessionStart` hook in `.claude/settings.json` and a `runOn: folderOpen` task in `.vscode/tasks.json` across branches | Those files on any branch, especially authored by an unfamiliar or bot-like identity | Opening the repo executes it; lockfile fixes do not remove it; check all branches |
27
+ | **Malicious release with valid provenance** (ChainDrop; `tensorlake@0.5.144`, Oct 2026, GHSA-rqxj-g25x-4v9v [V]): code pushed to main under a maintainer identity, shipped by the project's own release workflow, payload in a preinstall hook [S] | Direct pushes to the release branch without review; new install hooks | Provenance proves where an artifact was built, not that the build was honest |
28
+ | **Trust bound to a renameable name** (npm trusted publishing "SlugFest", Oct 2026) [S] | Publisher bindings pointing at a renamed, transferred or deleted repo | Bind trust to immutable IDs, in registries and in your own authorization |
29
+ | **Mutable tag repointed** (`tj-actions/changed-files`, Mar 2025, CVE-2025-30066) [S] | `uses: org/action@v1` instead of a 40-char SHA | A tag is not a pin |
30
+ | **Slopsquatting** (Spracklen et al., USENIX Security 2025) [V]: models recommend nonexistent package names, often the same names repeatedly, so squatters register them | A dependency with no history, a single early version, or a name that is a near-miss of a real one | Agents removed the human "does that name look right" check; verify existence first |
31
+ | **Malicious MCP server cloning an official one** (`postmark-mcp`, Sept 2025) [V]: clean releases, then a silent BCC of every email | A tool server whose behaviour changes across updates; unofficial publisher under the expected name | Pin servers and re-review after every update |
32
+ | **Lookalike editor extensions** [U] | Publisher identity differs from the display name; auto-updates on | Registry removal does not clean installed copies |
23
33
 
24
- ## 2. Supply chain — the dominant compromise route for small teams
34
+ ## 3. AI agents as an attack surface
25
35
 
26
- Named incidents, with the fingerprint a defender can grep for. All [V] unless marked.
36
+ Read `agent-surface.md` in full if the project is an agent, tool server, or AI feature.
27
37
 
28
- **The self-propagating npm worm lineage.** Shai-Hulud (Sept 2025) established the pattern: steal a publish token, enumerate every package the victim can publish, inject, republish. The November 2025 wave added destructive behavior. GitGuardian's analysis of 6,943 compromised developer machines found **59% were CI/CD runners rather than laptops** [V] — CI is the real target.
38
+ - **Prompt injection has no reliable prevention** [V] (Nasr et al., arXiv 2510.09023: adaptive attacks bypassed every published defense tested). Design for containment.
39
+ - **Lethal trifecta**: private data + untrusted content + an egress channel. All three together is exploitable.
40
+ - **Sandbox escapes** [U]: files the agent writes inside the sandbox are later read, loaded or executed by a trusted process outside it (symlinks, config files).
41
+ - **Rules-file and skill backdoors** [S]: invisible Unicode in `CLAUDE.md`, `AGENTS.md`, `.cursorrules` or shared skills, instructing exfiltration of `.env` or injection of credential-harvesting code into generated files.
42
+ - **Fetched content steering an agent** [S]: a malicious public issue or support ticket made a credentialed agent leak private data.
43
+ - **AI credentials are loot** [S]: worms read `.claude`, `.cursor` and model-provider auth files alongside cloud keys.
29
44
 
30
- Successor waves worth knowing because each broke a different assumption:
45
+ ## 4. What is exploited against small teams
31
46
 
32
- - **TanStack / "Mini Shai-Hulud" (11 May 2026)** [V] — 84 malicious versions across 42 `@tanstack/*` packages in about six minutes, with **no npm token stolen**. Chain (from the maintainers' postmortem): a fork PR triggered a `pull_request_target` workflow that ran fork code; it poisoned the shared Actions cache (pnpm store); the release workflow later restored that cache; attacker code then read the OIDC token from runner memory and published. Fixes the maintainers shipped: restructured the PR workflow, repository-owner guards, third-party actions pinned to SHAs, caches purged.
33
- - **Miasma "Phantom Gyp" waves (mid-2026)** [S] — ran code at install time through a bare `binding.gyp` (implicit `node-gyp rebuild`) with no lifecycle script in `package.json`, evading scanners that only watch `preinstall`/`postinstall`.
34
- - **ChainDrop (4 Aug 2026)** [V] — a self-propagating worm starting from a malicious commit in `keyv`, reaching hundreds of packages within hours; releases published through hijacked GitHub Actions OIDC carried **valid provenance**. Two properties matter more than scale:
35
- - **Persistence outside the registry.** Using stolen GitHub tokens it committed a `SessionStart` hook in `.claude/settings.json` and a `runOn: folderOpen` task in `.vscode/tasks.json` to every eligible branch, authored as `claude <claude@users.noreply.github.com>`. Opening the repo in Claude Code or VS Code executed it; no `npm install` needed. Lockfile fixes do not remove it — check all branches.
36
- - **AI credentials are loot.** It read `.claude`, `.cursor`, and model-provider auth files alongside cloud keys [S].
37
-
38
- **Provenance proves where an artifact was built, not that the build was honest.** Both 2026 worms shipped valid provenance. Treat it as necessary, not sufficient.
39
-
40
- **CI/CD.** The `tj-actions/changed-files` compromise (Mar 2025, CVE-2025-30066) [S] retroactively repointed version tags at a malicious commit and dumped secrets into build logs. **A mutable tag is not a pin. Pin actions by commit SHA** — GitHub itself recommends it and lets admins enforce it [V].
41
-
42
- **Slopsquatting.** Spracklen et al. (USENIX Security 2025) [V]: across 576,000 generated code samples from 16 models, 19.7% of recommended packages did not exist (205,474 unique invented names); commercial models did far better than open ones but not zero. When hallucinating prompts were re-run ten times, 43% of names recurred every time — predictable, so registrable. **Agents removed the human "does that name look right" checkpoint.** Verify a package exists, is old enough, and is the one you meant, before adding it — see `supply-chain.md`.
43
-
44
- **Editor extensions and MCP servers.** Lookalike-extension campaigns on open registries are recurring [U]; extensions auto-update by default and registry removal does not clean installed copies. The first malicious MCP server in the wild, `postmark-mcp` (Koi Security, Sept 2025) [V], copied the official Postmark server under the same npm name, shipped 15 clean versions, then in 1.0.16 added one line BCC-ing every outgoing email to the attacker.
45
-
46
- ## 3. AI coding agents as an attack surface
47
-
48
- If the project you are hardening is itself an agent, a tool server, or ships an AI feature, read `agent-surface.md` in full. The headline facts:
49
-
50
- - **Prompt injection has no known reliable prevention** [V]. "The Attacker Moves Second" (Nasr et al., Oct 2025) bypassed 12 published defenses with >90% success for most using adaptive attacks; human red-teaming succeeded on every scenario. Design for containment, not for a filter that holds.
51
- - **The lethal trifecta** — private data access + untrusted content + an egress channel. Any two are usually fine; all three is exploitable. This is the single most useful architectural test for an agent feature.
52
- - **Sandbox escapes were the 2026 bumper crop** [U] — multiple critical-severity escapes across the major coding-agent products, including symlink-based escapes and configuration-file protections bypassed from inside the sandbox. The recurring root pattern: **files the agent writes inside the sandbox are later read, loaded, or executed by a trusted process outside it.**
53
- - **Rules-file and skill backdoors** [S] — instructions hidden in `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, or a shared skill using invisible Unicode (tag codepoints, bidi controls, zero-width characters) land directly in the model's context. Documented payloads have instructed agents to exfiltrate local `.env` contents while suppressing output, and to inject credential-harvesting code into every file they generate — turning the agent into the delivery mechanism for a backdoor that reaches CI and production.
54
- - **Fetched content is executable-adjacent** [S] — a malicious issue in a public repository was enough to make an assistant leak private repository contents; a support ticket containing embedded instructions caused an agent holding a privileged database credential to publish secrets back into a public thread.
55
- - **Repo config is now a worm vector** [V] — ChainDrop (above) persisted in agent and editor config. An agent that auto-loads hooks or auto-runs tasks from the repo it opens is executing the repo author's code.
56
-
57
- ## 4. What is actually being exploited against small teams
58
-
59
- - **Secret sprawl is the number one route.** GitGuardian's *State of Secrets Sprawl 2026* (Mar 2026) [V]: 28.65M new hardcoded secrets in public GitHub commits in 2025 (+34%); AI-service secrets up 81%; 24,008 unique secrets in public MCP configuration files; Claude Code-assisted commits leaked at 3.2% vs a 1.5% baseline; and **64% of valid secrets from 2022 still valid** — leaks are not revoked.
60
- - **Backend-as-a-service row-level security is the highest-yield indie misconfiguration.** CVE-2025-48757 [S] covered 170+ apps generated by a vibe-coding platform whose Supabase tables lacked RLS, so the public anon key in the page read and wrote everything. Failure modes to check, all [S]: RLS disabled; a permissive `using (true)` policy (what a generator writes when told "add a policy" with no rule); reads locked but writes open; a service-role key in the client bundle; `auth.uid()` present but not compared to the owner column. Generated schemas converge on the same table names, so enumeration is trivial.
61
- - **Middleware-only auth** [V] — CVE-2025-29927 let any client skip Next.js middleware (fixed in 15.2.3 / 14.2.25 / 13.5.9) by sending an internal `x-middleware-subrequest` header. Apps that checked auth only in middleware were fully open. Enforce authorization again in the route handler or data layer.
62
- - **Exposed AI and developer infrastructure** [U] — tens of thousands of internet-facing local-inference servers, plus smaller populations of notebook, experiment-tracking and MCP endpoints. Note the honest caveat from the same research: it recorded essentially no AI-aware exploitation; the traffic hitting those ports was generic credential-harvesting scanning probing for `.env` files and cloud secrets. Generic scanners find you first.
63
- - **AI gateways concentrate credentials** [U] — a compromised dependency in a gateway library can expose an organization's entire portfolio of model provider keys at once. Several agent-framework and low-code AI platform CVEs have been used for initial access, credential harvesting and lateral movement, with at least one on CISA's exploited-vulnerabilities catalog.
64
- - **Do not over-rotate to AI, though** [V] — one-third of known-exploited vulnerabilities in the first half of 2026 were content-management systems (VulnCheck 1H-2026), with network edge devices next. If the project runs a CMS or sits behind an appliance, that is the likelier door.
47
+ | Technique | Defensive fingerprint | Lesson |
48
+ |---|---|---|
49
+ | **Secret sprawl** [V] (GitGuardian, State of Secrets Sprawl 2026): hardcoded keys in commits, MCP configs, AI-assisted commits; old leaks stay valid | Literal keys in history, `.mcp.json`, build logs, client bundles | Leaks are not revoked by deleting the commit; rotate |
50
+ | **Open backend row-level security** (CVE-2025-48757, Supabase apps from a generator) [S] | RLS off; `using (true)`; reads locked but writes open; service-role key in the client; `auth.uid()` not compared to the owner column | The public anon key plus an open table is the standard indie breach |
51
+ | **Middleware-only auth** (CVE-2025-29927, Next.js `x-middleware-subrequest`) [V] | Authorization checked only in `middleware.ts` or edge guards | Re-check in the handler or data layer |
52
+ | **Framework fixed, native dependency reachable** (Next.js, 14 Oct 2026: unauthenticated RCE via SVG in image optimization / `next/og` through `sharp`/librsvg, and via `use cache` returning typed arrays) [V] | Native image/parsing deps in the lockfile; user-controlled images or cached values reaching them | After a framework upgrade, confirm its transitive native deps moved too |
53
+ | **Exposed AI and developer infrastructure** [U]: inference servers, notebooks, MCP endpoints on the internet | Services bound to `0.0.0.0` without auth | Generic credential scanners find you first, not AI-aware attackers |
54
+ | **CMS and edge devices** [V] (VulnCheck 1H-2026): the largest share of known-exploited vulnerabilities | A CMS or appliance in the deployment | Do not over-rotate to AI; check the likelier door |
65
55
 
66
56
  ## 5. Speed and economics
67
57
 
68
- - **Median time from CVE publication to confirmed exploitation fell from about 120 days (2025) to about 80 days (1H 2026)** [S] (VulnCheck 1H-2026). Known-exploited vulnerabilities grew ~10% while published CVEs grew ~45%, so the exploited *share* is falling even as *speed* rises.
69
- - **Leaked credentials are used, not archived.** Assume any secret that touched a public surface, a build log, a paste, or a third-party service is compromised at the moment of exposure. Rotation is the fix; deleting the commit is not.
70
- - **Patch aggressively where there is evidence of exploitation.** Guidance in 2026 [S] points toward days, not weeks, for vulnerabilities that are automatable, exploited, and reachable in your deployment.
58
+ - **Leaked credentials are used, not archived.** Any secret that touched a public surface, build log, paste or third-party service is compromised at the moment of exposure.
59
+ - **Patch fast where exploitation is evidenced** and the component is reachable in your deployment: days, not weeks.
71
60
 
72
61
  ## How to use this file
73
62
 
74
- 1. Pick the two or three items above that plausibly apply to *this* project and write them into the threat model as concrete scenarios with named actors and objectives.
75
- 2. Skip the rest. A threat model that lists every incident of the last two years is not a threat model.
76
- 3. Re-verify anything marked [S] or [U] before putting it in front of the user as current fact.
63
+ 1. Pick the two or three techniques that plausibly apply to *this* project and write them into the threat model as concrete scenarios.
64
+ 2. Skip the rest.
65
+ 3. Re-verify anything [S] or [U] before presenting it as current.
@@ -1,51 +1,35 @@
1
1
  ---
2
2
  name: compliance-guard
3
- description: Use when shipping to real users risks legal exposure (personal data, payments, minors). Do NOT use for local work.
3
+ description: "Use for the legal side of shipping to real users: which laws apply, what cannot lawfully ship, and the consent, notices and policies the product owes. Do NOT use for bugs, data leaks or security hardening."
4
4
  license: Apache-2.0. Content is engineering guidance, not legal advice. See references/provenance.md.
5
5
  compatibility: Static review works offline from the bundled references. Legal status changes constantly; date-sensitive claims must be re-verified with web access before being stated as current. Never certifies compliance.
6
6
  ---
7
7
 
8
8
  # Compliance Guard
9
9
 
10
- Catch the legal, privacy, and regulatory exposure in a shipped product before a regulator, a plaintiff's firm, or a demand-letter mill does. Built for solo developers and small teams shipping fast — the population that is now actively targeted precisely because it ships fast.
10
+ Catch legal, privacy, and regulatory exposure in a shipped product before a regulator, plaintiff's firm, or demand-letter mill does. Built for solo developers and small teams, who are targeted precisely because they ship fast.
11
11
 
12
12
  ## Governing rules
13
13
 
14
- 1. **Exposure drives obligations, not stack.** What the product *does*, *who can reach it*, and *whose data it touches* decide what applies. A CLI that never leaves the laptop owes almost nothing. A one-page site with a contact form and an ad pixel owes a surprising amount.
15
- 2. **Never certify.** Do not write or say "compliant", "GDPR compliant", "ADA compliant", "fully legal", or "you're covered". Produce a risk register, implemented controls, residual risk, and an explicit *get a lawyer for this* list. This is engineering guidance, not legal advice, and must be labelled as such in every report.
16
- 3. **Date-check before asserting.** The references are a snapshot dated **11 August 2026**, spot re-verified **3 October 2026** (`references/provenance.md` lists what was and was not re-checked). Effective dates, thresholds, injunctions, and penalty amounts move. Before stating a date, a threshold, or "this is in force", re-verify with web access if available; if unavailable, say the claim is from a dated snapshot and needs confirmation. Never invent a citation, statute section, or deadline.
17
- 4. **Say it plainly when it is illegal.** If the requested build is unlawful, licensed, or criminal as described, state that clearly and early — before writing code, not after. Name the specific regime, the concrete red line, the safe subset that *can* be built, and what authorization would change the answer. Do not soften it into a vague caution, and do not silently build it.
18
- 5. **Fix, do not just flag.** Anything code can fix, fix: consent gating, security P0s (via bulletproof's inline gate), opt-out plumbing, deletion propagation, disclosure strings, accessibility defects. Draft documents as clearly-marked templates with `[PLACEHOLDER]` fields. Never invent the user's legal facts — entity name, registered address, DPO, retention periods, or vendor list must come from the user or the repo.
19
- 6. **Proportionality.** A weekend prototype with no users does not need 60 findings. Gate on *launch-blocking* first, rank by probability × severity, and keep the tail as a backlog. Overwhelming a solo dev produces zero fixes.
20
- 7. **Jurisdictions are a matrix, not a country.** "Where the company is" rarely limits exposure; "who can reach the app" usually sets it. A US-only startup with EU visitors and an unblocked signup form is in scope for EU law.
14
+ 1. **Exposure drives obligations, not stack.** What the product does, who can reach it, and whose data it touches decide what applies.
15
+ 2. **Never certify.** Never write "compliant", "GDPR compliant", "ADA compliant", "fully legal", or "you're covered". Produce risks, implemented controls, residual risk, and a *get a lawyer for this* list, labelled as engineering guidance, not legal advice.
16
+ 3. **Date-check before asserting.** References are a snapshot (11 Aug 2026, re-verified in part 3 Oct and 22 Oct 2026) with **[V]/[S]/[U]** markers (`references/provenance.md`). Re-verify dates, thresholds, and "in force" claims with web access; without it, say the claim is from a snapshot. Never invent a citation, section, or deadline.
17
+ 4. **Say it plainly when it is illegal** — early, before code: the regime, the red line, the safe subset, and what authorisation would change the answer. Never soften it, never silently build it.
18
+ 5. **Fix, do not just flag.** Inline, build the control in. In a full review, report first, then fix what the user selects; fix straight away only when they asked for fixes ("fix it", "make it launch-ready"). Fix what code can fix (consent gating, security P0s via bulletproof's inline gate, opt-out plumbing, deletion propagation, disclosures, accessibility). Documents are templates with `[PLACEHOLDER]` fields; never invent entity name, address, DPO, retention periods, or vendor list.
19
+ 6. **Proportionality.** Launch-blocking first, rank by probability × severity, keep the tail as backlog. Sixty findings produce zero fixes.
20
+ 7. **Jurisdictions are a matrix.** Who can reach the app sets exposure, not where the company sits: an unblocked EU signup puts a US startup in scope for EU law.
21
21
 
22
22
  ## Two modes
23
23
 
24
- **Inline gate** — triggered mid-build by a feature that carries exposure (adding a pixel, an upload, a subscription, an SMS, a chatbot, a face API, a health field). Do the minimum: name the trigger, apply the control while writing the feature, note it in the register. One or two sentences to the user, not a report.
24
+ **Inline gate** — triggered mid-build by a feature with exposure (a pixel, an upload, a subscription, an SMS, a chatbot, a face API, a health field). Do the minimum: name the trigger, apply the control while writing the feature, and note it in `COMPLIANCE.md` only if that file already exists. One or two sentences to the user, not a report.
25
25
 
26
26
  This mode matters most, because the users who need this skill will never ask for it. They ask for a signup page, a Stripe checkout, a contact form, an image upload. **Build the control into the feature as you write it** rather than waiting to be asked — consent-gate the pixel you were told to add, put the unsubscribe link in the email template, enforce authorization at the data layer. Mention it in one line and move on. Do not stop the build to deliver a lecture, and do not silently ship the unsafe version and flag it later.
27
27
 
28
- **Full review** — triggered by pre-launch, "is this safe", or an audit. A first use on a project mid-build stays an inline gate. Run the whole workflow below and write the register.
28
+ **Full review** — triggered by pre-launch, "is this safe", or an audit. A first use on a project mid-build stays an inline gate. **A full review MUST read `references/full-review.md` in full first**: profile sweep, trigger mapping, coverage ledger, product-model pass, jurisdiction table, ranking, implement order, guards, the `COMPLIANCE.md` template, and the plain-language report rules all live there.
29
29
 
30
- ## Workflow
30
+ ## Intake (full review)
31
31
 
32
- ### 1. Profile the exposure from the code
33
-
34
- Do this before asking the user anything. `references/exposure-triage.md` has the full detection sweep; the fast version:
35
-
36
- - **Reach**: is there a deployed public surface? Look for hosting/deploy config (`vercel.json`, `netlify.toml`, `fly.toml`, Dockerfile + ingress, `wrangler.toml`), a domain, a marketing page, app-store metadata, an auth flow.
37
- - **Personal data**: schema/model files, migrations, form fields, session tables — email, name, phone, address, IP, device ID, location, DOB, photo, voice, health, payment, government ID.
38
- - **Third parties**: every `<script src>`, tag manager, analytics, ad pixel, session replay, chat widget, error tracker, CDN font, LLM API, email/SMS provider, payment provider.
39
- - **Money**: payment SDK, subscription/plan tables, trial logic, refund logic, payouts to users, wallets, balances.
40
- - **People-facing decisions**: any code that scores, ranks, screens, approves, or rejects a human.
41
- - **UGC**: uploads, comments, profiles, messaging, sharing, public feeds.
42
- - **Domain signals**: table and route names carry the truth — `patients`, `diagnos*`, `prescription`, `loan`, `kyc`, `wallet`, `bet`, `wager`, `prize`, `minor`, `age`, `student`, `applicant`, `background_check`, `face_embedding`, `voiceprint`.
43
- - **Messaging**: transactional vs marketing email, SMS, push.
44
- - **AI**: model calls, agents with tools, chat personas, generated images/audio/video, training on user data.
45
-
46
- ### 2. Ask only what the code cannot tell you
47
-
48
- Cap at **five questions**, batched in one message, in plain language, each stating the default you will assume if unanswered. Assume the user does not know what GDPR, CCPA, or an "entity" is — ask about facts they know, not about law.
32
+ Profile the code first; then ask only what it cannot tell you. At most **five questions** in one `ask_user` call, plain language, each option showing its default. Ask about facts the user knows, not law.
49
33
 
50
34
  | Ask | Default if unanswered |
51
35
  |---|---|
@@ -55,212 +39,75 @@ Cap at **five questions**, batched in one message, in plain language, each stati
55
39
  | 4. Could under-18s realistically use it? Any age check? | **Possible, no age gate** |
56
40
  | 5. Is there a registered company, or is this you personally? | **No company — the user is personally exposed** |
57
41
 
58
- Never interrogate, never send a second round. If the user does not answer, proceed on these defaults, say which ones you used, and label the findings as assumption-based. **The defaults are deliberately the cautious reading** — a novice who ignores the questions must not get a quieter report than one who answers.
59
-
60
- A non-answer is itself information. "I don't know if we have EU users" means you do, because nothing is blocking them.
61
-
62
- ### 3. Map triggers to obligations
63
-
64
- Use `references/trigger-map.md` as the spine: each observable product fact maps to the regimes it triggers and the concrete artifact or code change required. Then pull the depth you need:
65
-
66
- - `references/lawsuit-vectors.md` for what actually produces demand letters and class actions — read this **first** for any consumer-facing web product, it has the highest hit rate.
67
- - `references/us.md` and `references/eu-uk.md` for jurisdiction detail, thresholds, and dates.
68
- - `references/sector-gates.md` whenever a domain signal fires — this is where "you cannot ship this" lives.
69
- - `references/security-baseline.md` for the pre-deploy technical blockers.
70
- - `references/artifacts.md` for what each required document or flow must actually contain.
71
-
72
- Do not read every reference by default. Load the ones the profile triggered.
73
-
74
- **Then sweep the fixed checklists and emit a coverage ledger.** Narrative review finds what stands out and silently drops the rest — the boring items go missing precisely because they are boring, and an item you never wrote down is an item you never checked. So for any deployed product, produce this table **in the output**, one row per item, before writing any findings:
75
-
76
- ```
77
- | # | Checklist item | fail / pass / n-a | Evidence |
78
- ```
79
-
80
- Walk **every numbered item** of the PRE-DEPLOY BLOCKERS list in `security-baseline.md` (one row per numbered item, in order, including sub-numbered ones such as 4b) and **every universal row** of `trigger-map.md` section A. Add mandatory rows for **accessibility** on any product with a public UI — one row each for image alternatives, form labels, keyboard operability of every clickable element, colour contrast computed from the literal values in the source, focus visibility, media controls and captions on any audio or video element, and page language. These are the first thing scanned in the wild and the first thing dropped from a review, because they are never the most interesting finding on the page. **Emit these rows even when the report is long and the dramatic findings are elsewhere** — they are the highest-frequency real-world claim in this entire file, and dropping them under output pressure is the single most repeated failure in evaluation.
81
-
82
- Add a mandatory row for **consumer contract duties** wherever money is taken from consumers, and for **platform duties** wherever users publish or upload — one row per applicable jurisdiction, not one row total. Add one mandatory row for **minors** on any consumer-facing product: the intake default is that under-18s are possible and there is no age gate, so this row is `fail` unless the code shows an actual age gate — "the terms say 18+" is not one. `n-a` requires a reason. This is mechanical, not a judgement call: you may not shorten the list, merge rows, or drop an item because something more dramatic was already found. An unverified payment webhook and an unmetered LLM endpoint are not less real than a headline issue, only less interesting.
83
-
84
- **Every `fail` row becomes its own finding — and coverage survives the output format.** The ledger is a working artifact, not the deliverable. If the report format has no ledger, or you were asked for findings only, the sweep still runs and each failing item still appears as a separate numbered finding. Coverage is a property of the findings, never of an optional table: an obligation that exists only inside a ledger you were not asked to print has not been reported at all.
85
-
86
- So regardless of format, a deployed product with a public UI always yields **separate** findings for each failing accessibility defect class, and a product taking consumer money or hosting user content always yields the consumer-contract and platform-duty findings for **each** applicable jurisdiction. Never merge these into one "accessibility issues" or "platform duties" row, and never describe a defect you did not see in the source — report the elements that are actually present, not the ones this file lists as examples.
42
+ No second round. If unanswered, proceed on the defaults, say which you used, and label findings assumption-based. **The defaults are deliberately the cautious reading**: a novice who ignores the questions must not get a quieter report. "I don't know if we have EU users" means you do, because nothing blocks them.
87
43
 
88
- Items 1 and 2 of that list — **committed secrets and `.gitignore` gaps**, and **database row-level security left at the framework default** — are the two most frequently missed in evaluation, precisely because reviewers jump to the exciting findings. Check the actual `.gitignore` contents against the actual files present, and check the schema for a policy on every table a client SDK can reach.
44
+ ## Severity ladder
89
45
 
90
- Other habitual casualties: webhook signature verification, rate limits on expensive or abusable endpoints, storage bucket permissions and client-supplied filenames, precise geolocation as a sensitive class in its own right, and fabricated or placeholder testimonials left in the landing page.
91
-
92
- **Then do a second pass on the product model, not the files.** The code sweep finds defects that live in a line. It reliably misses obligations that arise from **what the product is**, or from *two facts combined*, because neither fact looks wrong on its own. Ask these five explicitly, every time:
93
-
94
- 1. **Does value move?** Balances, credits, in-app currency, tips, wallets, payouts, cash-out to a bank. Currency in + cash out = a money-transmission question no matter how small, and it is a **licensing gate**, not a to-do.
95
- 2. **Is it a platform?** If users publish, upload, or message each other, intermediary duties attach as a matter of status: notice-and-action, a contact point, moderation terms, a DMCA agent, illegal-content and child-safety processes. These never appear as a code defect — they appear as *absence*.
96
- 3. **Does it generate or manipulate media?** Synthetic audio, video, images, or a persona needs provenance marking and user-facing labelling — and this is **a second, separate finding from whether generating it was permitted at all**. Both runs of an evaluation caught unconsented voice cloning as illegal and then omitted the labelling duty entirely, because the dramatic finding felt like it had covered the topic. Consent to generate and disclosure of what was generated are different obligations owed to different people; emit both.
97
-
98
- 3b. **Where do credentials and financial identifiers live?** Bank account numbers, IBANs, tax identifiers, government IDs and payout details are high-value data whose storage is routinely written without any access control, encryption, or retention rule because they read as ordinary columns. Check them explicitly whenever a schema contains a payout, KYC, or identity field.
99
- 4. **Do people get tracked across contexts?** Then opt-out preference signals must be honoured server-side and the opt-out must actually sever the recipient. Nothing in the code will look broken; the handler simply will not exist.
100
- 5. **What two features combine into a third regime?** Video content **plus** an ad pixel is a distinct video-privacy claim, not just a tracking issue. In-app currency **plus** withdrawal is money movement. Biometrics **plus** a minor is a different statute. User uploads **plus** adult content is age assurance. Look for pairs, not just items.
101
-
102
- **Name every jurisdiction's version of the same duty.** Most obligations exist in both regimes under different names, and a review reliably names the first one it thinks of and stops — so the EU version goes missing from US-shaped reasoning and vice versa. Once a duty fires, ask "what is this called in the other regime, and does it add anything?" and emit a row for each:
103
-
104
- | Duty | US instantiation | EU/UK instantiation |
105
- |---|---|---|
106
- | Hosting user content | DMCA agent + repeat-infringer policy, CSAM reporting, NCII takedown | **DSA** notice-and-action, contact point, moderation terms, minors' protection; UK Online Safety duties |
107
- | Selling to consumers | ROSCA and state auto-renewal, junk-fee rules | **Pre-contract information, 14-day withdrawal right and the digital-content waiver**, unfair-terms limits, VAT/OSS |
108
- | Tracking | CIPA and state opt-out, GPC | ePrivacy prior consent, GDPR lawful basis |
109
- | Biometrics | BIPA written release + retention schedule | GDPR Art 9 basis, AI Act biometric-categorisation duties |
110
- | Automated decisions | ADMT notice and opt-out, FCRA, ECOA | AI Act risk tier, GDPR Art 22 |
111
- | Accessibility | ADA Title III, WCAG in practice | EAA and EN 301 549 |
112
- | Synthetic media | State provenance and disclosure laws | AI Act Art 50 marking and labelling |
113
-
114
- An EU-established company gets the EU column as the headline. That is the row a regulator in its own country will open with, and the one a US-shaped review is most likely to omit entirely.
115
-
116
- **Severity rule for licensed activities.** If an activity requires a licence, registration, or authorisation the user does not have — gambling, money transmission, lending, medical claims, regulated advice — that is **ILLEGAL**, not BLOCKER. BLOCKER means "ship this and something bad becomes likely"; ILLEGAL means "operating this without authorisation is itself the offence". Downgrading the second to the first reads as "fix it soon" and is the wrong instruction.
117
-
118
- **Read the prose, not only the code.** README files, landing-page copy, pricing pages and app-store descriptions state the audience and the claims that the schema never reveals — "kids can make profiles too", "tells you what medication to give", "we import listings from X", "HIPAA-ready", "bank-level security". A sentence in a README is as much a trigger as a column name, and is frequently the only place a minors audience, a health claim, or a data-sourcing practice is admitted. Any statement about who uses the product or what it does for them must be run through the trigger map like a code signal.
119
-
120
- ### 4. Rank by realistic exposure
121
-
122
- Severity ladder — use these exact labels in the report:
46
+ Use these exact labels:
123
47
 
124
48
  | Label | Meaning |
125
49
  |---|---|
126
- | **ILLEGAL** | Cannot lawfully ship as described. Requires a licence, an authorization the user does not have, or is criminal. Stop and redirect. |
127
- | **BLOCKER** | Ship this and harm is likely and hard to undo: exposed keys, no authorization checks, public write access to user data, no consent before tracking in a consent jurisdiction, children's data with no COPPA path, a private-right-of-action fingerprint sitting in the code. |
128
- | **HIGH** | Realistic regulator or plaintiff exposure within months. Fix before or immediately after launch. |
129
- | **MEDIUM** | Real obligation, low near-term probability, or straightforward to add later. |
130
- | **BACKLOG** | Applies at scale or on a future trigger (enterprise sales, EU expansion, headcount, revenue thresholds). |
50
+ | **ILLEGAL** | Cannot lawfully ship as described: needs a licence or authorisation the user lacks, is banned, or is criminal. Stop and redirect. |
51
+ | **BLOCKER** | Ship it and harm is likely and hard to undo: exposed keys, no authorization, public write to user data, tracking before consent in a consent jurisdiction, children's data with no COPPA path, a private-right-of-action fingerprint. |
52
+ | **HIGH** | Realistic regulator or plaintiff exposure within months. |
53
+ | **MEDIUM** | Real obligation, low near-term probability, or easy to add later. |
54
+ | **BACKLOG** | Applies at scale or on a future trigger. |
131
55
  | **LAWYER** | Cannot be resolved by code or template. Name it, do not guess it. |
132
56
 
133
- Rank the top items by *probability the fingerprint is actually detected in the wild*, not by statutory maximum. A missing form label produces more real letters than an exotic treaty issue.
134
-
135
- **Lead with the jurisdiction the product actually operates in.** Worldwide reachability means other regimes apply, but it does not make them equally likely. For an EU company selling to EU customers, the EU regime is the headline and US exposure is a secondary section — and the reverse for a US product. Framing an EU-only product's central finding under a US statute is a real error: it buries the rule that will actually be enforced and sends the user to the wrong kind of lawyer. State the primary regime, then list the others as "also applies if you have users in X".
136
-
137
- **Check for an outright ban before writing up an obligation.** Some regimes prohibit a practice rather than conditioning it — the EU AI Act's Art 5 list is the one small builders hit by accident. If a feature is banned, it is **ILLEGAL** and the fix is deletion; do not report it as a disclosure or consent obligation, because a transparency rule sitting next to a prohibition will read as the applicable one and quietly authorise the thing that is forbidden.
138
-
139
- ### 5. Implement
140
-
141
- Fix in this order: BLOCKER security → tracking/consent gating → required disclosures and flows → documents → backlog. For each fix, make the smallest change that actually holds, and prefer a single enforced chokepoint over scattered checks (one `canSend()` gate, one `displayPrice()`, one consent state, one server-side authorization helper).
57
+ **Severity rule for licensed activities:** operating without a required licence, registration, or authorisation (gambling, money transmission, lending, medical claims, regulated advice) is **ILLEGAL**, not BLOCKER. BLOCKER means "something bad becomes likely"; ILLEGAL means "operating it is itself the offence". Downgrading reads as "fix it soon", the wrong instruction.
142
58
 
143
- For documents, generate templates with placeholders, mark them clearly as templates needing review, and never fill in facts you were not given.
59
+ ## Evidence labels
144
60
 
145
- ### 6. Prove it, then leave the check behind
146
-
147
- This is what separates a real review from a plausible-sounding one. **Reading code tells you what someone intended; running it tells you what ships.**
148
-
149
- **Observe before asserting.** Static detection has false negatives that matter more than its false positives: tags injected at runtime by a tag manager, scripts added through a hosting dashboard and absent from the repo entirely, a framework's script component whose loading strategy decides whether consent is respected, a vendor SDK that phones home from inside a dependency. Grepping for `fbq(` finds none of those. Where the app can be run, verify the behaviour directly — load a page and record which third-party origins are contacted before any consent interaction, sign in as one user and request another user's object by id, submit the form and read what actually reaches the network. Label every finding with exactly one of three states — the distinction is between *running* and *reading*, not between certain and uncertain:
61
+ Reading code shows intent; running it shows what ships. Label every finding and every fix with exactly one — the split is *ran* vs *read*, not certain vs uncertain:
150
62
 
151
63
  | Label | Means | Example |
152
64
  |---|---|---|
153
65
  | **RUNTIME** | You executed it and watched the result | Loaded the page, saw `connect.facebook.net` requested before any consent click |
154
- | **CODE** | You read it in the source; you did not run it | The pixel snippet is in `layout.tsx` with no consent check around it |
155
- | **DEDUCED** | You concluded it from absence or from context | No privacy policy route exists anywhere in the repo |
156
-
157
- Never relabel upward. A `CODE` finding does not become `RUNTIME` because you are confident. Where you could not run the app at all, say so once at the top of the report rather than repeating it per finding — and note that the review therefore cannot see runtime-injected tags, dashboard-added scripts, or anything outside the repo.
158
-
159
- **Then make the fix self-enforcing.** A register is a snapshot that starts rotting the moment someone adds a feature; a failing test is not. For every BLOCKER and HIGH you fix, leave a check that fails if it regresses, and wire it into the project's existing test or CI setup rather than inventing a parallel one:
160
-
161
- | Fix | Guard that keeps it fixed |
162
- |---|---|
163
- | Consent gating | Test asserting **zero third-party network requests before consent** on first paint. The single highest-value check in this file. |
164
- | Accessibility | `axe-core` run over the top routes, failing on `serious` and `critical` |
165
- | Secrets | Secret scanner on commits, plus a test that the client bundle contains no key pattern |
166
- | Authorization | A test that user A cannot read or write user B's object by id |
167
- | Marketing email | A test that every send path goes through the one gate and includes an unsubscribe header |
168
- | Licence contamination | Dependency licence scan that **fails**, not warns, on copyleft and unknown |
169
-
170
- If the project has no test runner at all, say so plainly and add the one check with the highest ratio of protection to setup cost rather than building a test harness they did not ask for.
171
-
172
- **Never report a fix you did not verify.** "Consent gating added" without loading the page is exactly the false assurance this skill exists to prevent — it is worse than the original finding, because the user now believes they are safe. If you could not run it, say "implemented, not verified — run `<command>` to confirm".
173
-
174
- ### 7. Report and persist
175
-
176
- Write or update **`COMPLIANCE.md`** at the repo root (or extend an existing register if one exists). Structure:
177
-
178
- ```markdown
179
- # Compliance Register
180
- Snapshot: <date> · Reviewed by: EZ Coder compliance-guard · NOT LEGAL ADVICE
181
-
182
- ## Assumed exposure profile
183
- <reach, jurisdictions, data classes, minors, money, domain, third parties — mark each Confirmed or Assumed>
184
-
185
- ## Findings
186
- | ID | Severity | Trigger | Evidence (RUNTIME / CODE / DEDUCED) | Obligation | Status | Guard |
187
-
188
- ## Implemented in this pass
189
- ## Open — needs a decision from you
190
- ## Needs a lawyer
191
- ## Re-verify before relying (date-sensitive)
192
- ```
193
-
194
- Keep IDs stable across runs so the register is diffable. Re-running the skill updates statuses rather than rewriting history.
66
+ | **CODE** | You read it in the source, did not run it | Pixel snippet in `layout.tsx` with no consent check |
67
+ | **DEDUCED** | Concluded from absence or context | No privacy-policy route anywhere in the repo |
195
68
 
196
- **The register must age honestly.** Record the commit it was written against. On any later run, re-check the existing findings before adding new ones, and mark anything you could not re-confirm as stale rather than silently carrying it forward as still-true. A register that claims a clean bill of health for code that has moved on is a liability, not an asset.
197
-
198
- ### 8. Write it for someone who has never read a statute
199
-
200
- The register is the artifact; the message to the user is what actually gets acted on. Most users of this skill cannot tell a real risk from a theoretical one and will either panic or ignore everything. Neither produces a fix.
201
-
202
- **Every finding you surface must answer four things in plain words:**
203
-
204
- 1. **What in your app causes this** — name the file, line, or feature. "The Meta pixel in `app/layout.tsx` loads before anyone agrees to it."
205
- 2. **What could actually happen** — the real-world consequence, not the statute. "This is the single most common thing US law firms send demand letters about. Damages are claimed per visitor."
206
- 3. **What it takes to fix** — who does it and roughly how long. "I already fixed it" / "20 minutes of your time" / "a lawyer, a few hundred dollars".
207
- 4. **What happens if you ignore it** — honestly, including "probably nothing for a while" where that is true.
208
-
209
- **Language rules.** Lead with the plain-English name, and put the statute in parentheses only if it helps them search — "tracking people before they agree to it (CIPA)", not "CIPA §631 exposure". Never use an unexplained acronym. Never say "you may wish to consider" when you mean "do this before launch". Translate every legal term the first time you use it: a *processor* is a company that handles your users' data for you; a *lawful basis* is your reason for being allowed to hold the data at all.
210
-
211
- **Give them a ranked, finite next action.** End with at most three things to do next, in order, with the first one being the smallest. A user who reads "you have 47 issues" fixes zero. A user who reads "do this one thing today, these two this week" fixes three.
212
-
213
- **Say what is already done.** Separate *"I fixed these while I was in here"* from *"you have to decide these"* from *"this one needs a real lawyer"*. Confusing the three is what makes people give up.
214
-
215
- **Do not moralise and do not catastrophise.** State the base rate. "Small apps get sued over this regularly" and "this almost never gets enforced against someone your size, but it is cheap to fix" are both useful; "you could be fined €20 million" is not, because they will stop reading.
216
-
217
- ## Scaling: one agent or several
218
-
219
- | Situation | Do |
220
- |---|---|
221
- | Inline gate, small edit, single feature | Main thread only. Never spawn for an inline gate. |
222
- | Full review, one deployable, one primary jurisdiction, every ledger row readable by you | Stay single-threaded. |
223
- | Several deployables/surfaces (web + mobile + admin + marketing site) **and** several jurisdictions or data flows | Build the coverage ledger first (rows = ledger items × surfaces × jurisdictions), then fan out. |
224
-
225
- Fan-out rules:
226
- - One `spawn_agent` call, ≤ 6 read-only children, each owning a disjoint slice — **by product surface** (paths) or **by jurisdiction** (US / EU / UK). Brief each with: absolute skill root, the exact reference files to read, its paths, the ledger rows it owns, the RUNTIME/CODE/DEDUCED labels, `[V]/[S]/[U]` markers, and the output schema (finding, file:line, label, severity, fix, plus explicit `checked` and `not checked` lists). Children never see this conversation.
227
- - Dated legal claims the report will rely on → one `researcher` child per jurisdiction to re-verify against primary sources (statute site, official journal, regulator, court), returning date, status, and URL.
228
- - **Merge:** a child that fails, times out, or omits a row → that row is `not checked`, never clean. Re-open each reported file:line yourself before reporting it.
229
- - **Independent verification, always, for a full review:** a fresh-context child gets the draft findings and tries to disprove each one (wrong jurisdiction, ban vs duty, stale date, wrong label). Downgrade or drop what it refutes.
230
- - Fixes stay serialized in the main thread (or `bee` children on strictly disjoint files); run checks once after merging.
69
+ **Never relabel upward**: confidence does not turn CODE into RUNTIME. **Never report a fix you did not verify** — "consent gating added" without loading the page is worse than the original finding, because the user now believes they are safe. Say "implemented, not verified — run `<command>` to confirm".
231
70
 
232
71
  ## Hard stops
233
72
 
234
- Do not build these, regardless of framing. State the reason and offer the lawful subset from `references/sector-gates.md`:
73
+ Do not build these, however framed. State the reason and offer the lawful subset from `references/sector-gates.md`:
235
74
 
236
- - Tools whose purpose is to evade a legal control: age-verification bypass, sanctions/OFAC evasion, KYC circumvention, unauthorized access, stalkerware or covert tracking of a person, scraping behind an authentication wall you agreed not to bypass.
237
- - Sexual content involving minors, or any pipeline that would generate it. Non-consensual intimate imagery and sexual deepfakes of real people.
238
- - Unlicensed money transmission, unregistered securities offerings, and unlicensed real-money gambling presented as "just an app".
239
- - Medical diagnosis, treatment decisions, or prescribing sold as a product without the required clearance and clinical governance.
240
- - Covert data collection: recording, keylogging, screen capture, or location tracking of a person without their knowledge, including "employee monitoring" and "parental control" framings that hide from the monitored person where notice is required.
241
- - Deceptive-by-design flows whose function is to trick: fabricated reviews and testimonials, fake scarcity/urgency counters, cancellation paths engineered to fail, hidden mandatory fees.
75
+ - Tools to evade a legal control: age-verification bypass, sanctions/OFAC evasion, KYC circumvention, unauthorized access, stalkerware or covert tracking, scraping behind an auth wall you agreed not to bypass.
76
+ - Sexual content involving minors, or any pipeline that could generate it; non-consensual intimate imagery and sexual deepfakes of real people.
77
+ - Unlicensed money transmission, unregistered securities offerings, unlicensed real-money gambling presented as "just an app".
78
+ - Medical diagnosis, treatment decisions, or prescribing sold without the required clearance and clinical governance.
79
+ - Covert recording, keylogging, screen capture, or location tracking of a person without their knowledge, including "employee monitoring" and "parental control" framings that hide from the monitored person where notice is required.
80
+ - Deceptive-by-design flows: fabricated reviews and testimonials, fake scarcity counters, cancellation paths built to fail, hidden mandatory fees.
242
81
 
243
82
  ## Honesty rules
244
83
 
245
- - Never state or imply the product is compliant, safe, or legal. State what was checked, what was fixed, what remains.
246
- - Never claim a scan proves accessibility or security. Automated checks find a minority of defects; say so.
247
- - Never present something you read as something you ran. Every finding and every fix is **RUNTIME**, **CODE**, or **DEDUCED**, and the report says which. "I could not verify this" is a legitimate and useful output; a fabricated confirmation is not.
248
- - Report what you did **not** check. A review that silently skips the mobile app, the admin panel, or the marketing site reads as full coverage and is more dangerous than no review.
249
- - Never fabricate a statute, section number, case, effective date, or penalty. If unsure, say "verify this" and mark confidence.
250
- - Distinguish **verified**, **snapshot (11 Aug 2026 / 3 Oct 2026, re-verify)**, and **uncertain** in the report. The references carry these markers — preserve them; do not launder a flagged-uncertain item into a confident statement.
251
- - Do not use fear as a lever. Give the base rate and the fix, not doom.
252
- - When the user says a jurisdiction does not apply to them, record it as their stated assumption rather than silently accepting or arguing.
84
+ - Never state or imply the product is compliant, safe, or legal; state what was checked, fixed, and left.
85
+ - Never claim a scan proves accessibility or security; automated checks find a minority of defects.
86
+ - Never present something you read as something you ran. "I could not verify this" is a useful output; a fabricated confirmation is not.
87
+ - Report what you did **not** check (mobile app, admin panel, marketing site). Silent skips read as full coverage.
88
+ - Never fabricate a statute, section, case, date, or penalty. Preserve **[V]/[S]/[U]**; never launder an [S] or [U] into a confident claim.
89
+ - No fear as a lever: give the base rate and the fix.
90
+ - When the user says a jurisdiction does not apply, record it as their stated assumption.
91
+
92
+ ## Scaling
93
+
94
+ - Inline gate, or a full review of one deployable in one primary jurisdiction: stay single-threaded.
95
+ - Several surfaces (web, mobile, admin, marketing) and several jurisdictions: build the coverage ledger first, then fan out read-only repo helpers sliced by surface or by jurisdiction, each owning disjoint ledger rows.
96
+ - Dated legal claims the report relies on: one researcher per jurisdiction re-verifies against primary sources (date, status, URL).
97
+ - Every full review: a fresh verifier tries to disprove each finding (wrong jurisdiction, ban vs duty, stale date, wrong label); downgrade or drop what it refutes. Fixes: main thread or an editor on disjoint files.
98
+ - Helper types, brief contents and merge rules come with the skill loader.
253
99
 
254
100
  ## Reference map
255
101
 
256
- Resolve every path from the installed skill root. Load only what the exposure profile triggered.
102
+ Resolve paths from the skill root. Load only what the exposure profile triggered.
257
103
 
258
- - `references/exposure-triage.md` — detection sweep: greps, file signatures, and the question set. Read at the start of a full review.
259
- - `references/trigger-map.md` — master table: observable fact → regimes triggered → required action. The routing index for everything else.
260
- - `references/lawsuit-vectors.md` — private rights of action, demand-letter mills, technical fingerprints they scan for, and the engineering fix per vector. Read for any public consumer-facing product.
261
- - `references/security-baseline.md` — pre-deploy technical blockers, the failure modes specific to AI-generated code, and the AI/agent security section. Read before any deploy.
262
- - `references/us.md` — US federal and state detail: privacy laws, minors, health/biometric, AI laws, marketing, accessibility.
104
+ - `references/full-review.md` — the full-review workflow. **Read in full before any full review.**
105
+ - `references/exposure-triage.md` — detection sweep: greps, file signatures, question set.
106
+ - `references/trigger-map.md` — observable fact → regimes → required action; the routing index.
107
+ - `references/lawsuit-vectors.md` — private suits, demand-letter mills, the fingerprints they scan for, fixes. First for any consumer web product.
108
+ - `references/security-baseline.md` — numbered PRE-DEPLOY BLOCKERS and AI-generated-code failure modes; security depth defers to the bulletproof skill.
109
+ - `references/us.md` — US federal and state: privacy, minors, health/biometric, AI, marketing, accessibility.
263
110
  - `references/eu-uk.md` — GDPR/UK GDPR, ePrivacy, AI Act, DSA, EAA, CRA, Online Safety Act.
264
- - `references/sector-gates.md` — regulated and prohibited domains, safe subsets, hard red lines, and the red-flag phrase table.
265
- - `references/artifacts.md` — copy-ready skeletons: privacy policy, terms, consent banner, DSAR flow, AI disclosures, email/SMS compliance, app-store gates, vendor DPAs.
266
- - `references/provenance.md` — snapshot date, sources, confidence levels, and the volatile-items list that must be re-verified.
111
+ - `references/sector-gates.md` — regulated and prohibited domains, safe subsets, red-flag phrases.
112
+ - `references/artifacts.md` — skeletons: privacy policy, terms, consent banner, DSAR flow, AI disclosures, email/SMS, app-store gates, DPAs.
113
+ - `references/provenance.md` — snapshot dates, sources, markers, re-verification log, what decays fastest.
@@ -1,6 +1,19 @@
1
1
  # Artifacts
2
2
 
3
- What each required document or flow must actually contain, as a skeleton to generate against. Snapshot **11 Aug 2026**, spot re-verified 3 Oct 2026 (see `provenance.md`).
3
+ ## Contents
4
+ - 1. Privacy policy
5
+ - 2. Terms of service
6
+ - 3. Consent and preference infrastructure
7
+ - 4. Data subject / consumer rights flow
8
+ - 5. Records and governance
9
+ - 6. Accessibility statement
10
+ - 7. AI disclosures
11
+ - 8. Email and SMS in code
12
+ - 9. App store gates
13
+ - 10. Business basics (flag, do not draft)
14
+
15
+
16
+ What each required document or flow must actually contain, as a skeleton to generate against. Snapshot **11 Aug 2026**, spot re-verified 3 Oct 2026 and 22 Oct 2026 (see `provenance.md`).
4
17
 
5
18
  **Rule for every document here:** generate it with `[PLACEHOLDER]` fields for facts only the user has, never invent entity names, addresses, retention periods, or vendor lists, and mark the output as a template that needs review. State plainly which artifacts a competent developer can safely template and which genuinely need a lawyer.
6
19