@kenkaiiii/ggcoder 6.4.0 → 7.0.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 (1116) hide show
  1. package/README.md +9 -8
  2. package/dist/app-sidecar/app-settings.d.ts +1 -1
  3. package/dist/app-sidecar/app-settings.js +3 -4
  4. package/dist/app-sidecar/app-settings.js.map +1 -1
  5. package/dist/app-sidecar/attachments.js +1 -1
  6. package/dist/app-sidecar/attachments.js.map +1 -1
  7. package/dist/app-sidecar/auth-routes.js +2 -5
  8. package/dist/app-sidecar/auth-routes.js.map +1 -1
  9. package/dist/app-sidecar/autopilot-runner.d.ts +8 -8
  10. package/dist/app-sidecar/autopilot-runner.js +8 -8
  11. package/dist/app-sidecar/autopilot-runner.js.map +1 -1
  12. package/dist/app-sidecar/branch-routes.d.ts +8 -1
  13. package/dist/app-sidecar/branch-routes.js +154 -2
  14. package/dist/app-sidecar/branch-routes.js.map +1 -1
  15. package/dist/app-sidecar/detached-sessions.d.ts +2 -10
  16. package/dist/app-sidecar/detached-sessions.js.map +1 -1
  17. package/dist/app-sidecar/file-search.js +1 -1
  18. package/dist/app-sidecar/file-search.js.map +1 -1
  19. package/dist/app-sidecar/git-branches.d.ts +18 -1
  20. package/dist/app-sidecar/git-branches.js +24 -6
  21. package/dist/app-sidecar/git-branches.js.map +1 -1
  22. package/dist/app-sidecar/git-ship.d.ts +42 -0
  23. package/dist/app-sidecar/git-ship.js +349 -0
  24. package/dist/app-sidecar/git-ship.js.map +1 -0
  25. package/dist/app-sidecar/git-target.d.ts +2 -2
  26. package/dist/app-sidecar/git-target.js +2 -2
  27. package/dist/app-sidecar/git-target.js.map +1 -1
  28. package/dist/app-sidecar/goal-routes.d.ts +1 -1
  29. package/dist/app-sidecar/goal-routes.js +5 -6
  30. package/dist/app-sidecar/goal-routes.js.map +1 -1
  31. package/dist/app-sidecar/hf-pull-manager.d.ts +5 -4
  32. package/dist/app-sidecar/hf-pull-manager.js +1 -1
  33. package/dist/app-sidecar/hf-pull-manager.js.map +1 -1
  34. package/dist/app-sidecar/history-routes.js +6 -6
  35. package/dist/app-sidecar/history-routes.js.map +1 -1
  36. package/dist/app-sidecar/history.d.ts +2 -2
  37. package/dist/app-sidecar/integration-routes.js +4 -6
  38. package/dist/app-sidecar/integration-routes.js.map +1 -1
  39. package/dist/app-sidecar/keep-awake.d.ts +1 -1
  40. package/dist/app-sidecar/keep-awake.js +1 -1
  41. package/dist/app-sidecar/keep-awake.js.map +1 -1
  42. package/dist/app-sidecar/ken-context.d.ts +2 -2
  43. package/dist/app-sidecar/ken-context.js +1 -1
  44. package/dist/app-sidecar/ken-context.js.map +1 -1
  45. package/dist/app-sidecar/live-preview/dev-url.d.ts +1 -1
  46. package/dist/app-sidecar/live-preview/manager.d.ts +2 -14
  47. package/dist/app-sidecar/live-preview/manager.js.map +1 -1
  48. package/dist/app-sidecar/live-preview/routes.js +1 -1
  49. package/dist/app-sidecar/live-preview/routes.js.map +1 -1
  50. package/dist/app-sidecar/live-preview/servers.js +1 -1
  51. package/dist/app-sidecar/live-preview/servers.js.map +1 -1
  52. package/dist/app-sidecar/mcp-routes.js +2 -2
  53. package/dist/app-sidecar/mcp-routes.js.map +1 -1
  54. package/dist/app-sidecar/mcp-rows.d.ts +3 -15
  55. package/dist/app-sidecar/mcp-rows.js +7 -2
  56. package/dist/app-sidecar/mcp-rows.js.map +1 -1
  57. package/dist/app-sidecar/mcp-shell-command.d.ts +1 -1
  58. package/dist/app-sidecar/mcp-shell-command.js +3 -3
  59. package/dist/app-sidecar/mcp-shell-command.js.map +1 -1
  60. package/dist/app-sidecar/mcp-sync.d.ts +2 -2
  61. package/dist/app-sidecar/mcp-sync.js +3 -3
  62. package/dist/app-sidecar/mcp-sync.js.map +1 -1
  63. package/dist/app-sidecar/progress-manager.d.ts +1 -1
  64. package/dist/app-sidecar/progress-manager.js +6 -6
  65. package/dist/app-sidecar/progress-manager.js.map +1 -1
  66. package/dist/app-sidecar/prompt-routes.js +5 -5
  67. package/dist/app-sidecar/prompt-routes.js.map +1 -1
  68. package/dist/app-sidecar/repo-polls.d.ts +3 -3
  69. package/dist/app-sidecar/repo-polls.js +4 -4
  70. package/dist/app-sidecar/repo-polls.js.map +1 -1
  71. package/dist/app-sidecar/route-context.d.ts +17 -17
  72. package/dist/app-sidecar/run-control-routes.js +2 -5
  73. package/dist/app-sidecar/run-control-routes.js.map +1 -1
  74. package/dist/app-sidecar/session-file-routes.d.ts +1 -1
  75. package/dist/app-sidecar/session-file-routes.js +2 -2
  76. package/dist/app-sidecar/session-file-routes.js.map +1 -1
  77. package/dist/app-sidecar/session-routes.js +3 -4
  78. package/dist/app-sidecar/session-routes.js.map +1 -1
  79. package/dist/app-sidecar/session-types.d.ts +5 -13
  80. package/dist/app-sidecar/shell-routes.js +1 -1
  81. package/dist/app-sidecar/shell-routes.js.map +1 -1
  82. package/dist/app-sidecar/shell-runs.js +2 -2
  83. package/dist/app-sidecar/shell-runs.js.map +1 -1
  84. package/dist/app-sidecar/shell-suggestions.d.ts +2 -8
  85. package/dist/app-sidecar/shell-suggestions.js +1 -1
  86. package/dist/app-sidecar/shell-suggestions.js.map +1 -1
  87. package/dist/app-sidecar/task-routes.js +5 -5
  88. package/dist/app-sidecar/task-routes.js.map +1 -1
  89. package/dist/app-sidecar/trophy-manager.d.ts +2 -2
  90. package/dist/app-sidecar/trophy-manager.js +3 -3
  91. package/dist/app-sidecar/trophy-manager.js.map +1 -1
  92. package/dist/app-sidecar/usage.d.ts +1 -1
  93. package/dist/app-sidecar/usage.js +3 -2
  94. package/dist/app-sidecar/usage.js.map +1 -1
  95. package/dist/app-sidecar/workspace-routes.js +4 -4
  96. package/dist/app-sidecar/workspace-routes.js.map +1 -1
  97. package/dist/app-sidecar/worktrees.js +1 -1
  98. package/dist/app-sidecar/worktrees.js.map +1 -1
  99. package/dist/app-sidecar-sessions.d.ts +2 -5
  100. package/dist/app-sidecar-sessions.js +1 -1
  101. package/dist/app-sidecar-sessions.js.map +1 -1
  102. package/dist/app-sidecar.d.ts +1 -1
  103. package/dist/app-sidecar.js +47 -45
  104. package/dist/app-sidecar.js.map +1 -1
  105. package/dist/chat-agents/general.d.ts +1 -1
  106. package/dist/chat-agents/index.d.ts +1 -1
  107. package/dist/chat-agents/jiwa.d.ts +2 -9
  108. package/dist/chat-agents/jiwa.js +1 -0
  109. package/dist/chat-agents/jiwa.js.map +1 -1
  110. package/dist/chat-agents/memory.d.ts +2 -9
  111. package/dist/chat-agents/memory.js +1 -0
  112. package/dist/chat-agents/memory.js.map +1 -1
  113. package/dist/chat-agents/research.d.ts +1 -1
  114. package/dist/chat-agents/shared.d.ts +1 -1
  115. package/dist/chat-agents/shared.js +1 -1
  116. package/dist/chat-agents/shared.js.map +1 -1
  117. package/dist/chat-agents/therapist.d.ts +1 -1
  118. package/dist/chat-agents/types.d.ts +2 -1
  119. package/dist/chat-agents/types.js +6 -1
  120. package/dist/chat-agents/types.js.map +1 -1
  121. package/dist/cli/auth.js +3 -6
  122. package/dist/cli/auth.js.map +1 -1
  123. package/dist/cli/mcp.js +4 -3
  124. package/dist/cli/mcp.js.map +1 -1
  125. package/dist/cli.d.ts +1 -0
  126. package/dist/cli.js +26 -27
  127. package/dist/cli.js.map +1 -1
  128. package/dist/goals-agent/goal-team.d.ts +1 -1
  129. package/dist/goals-agent/goals-agent.d.ts +3 -3
  130. package/dist/goals-agent/goals-agent.js +5 -5
  131. package/dist/goals-agent/goals-agent.js.map +1 -1
  132. package/dist/hf-pull.d.ts +2 -1
  133. package/dist/hf-pull.js +0 -1
  134. package/dist/hf-pull.js.map +1 -1
  135. package/dist/index.d.ts +0 -8
  136. package/dist/index.js +1 -14
  137. package/dist/index.js.map +1 -1
  138. package/dist/modes/acp-autopilot.js +3 -3
  139. package/dist/modes/acp-autopilot.js.map +1 -1
  140. package/dist/modes/acp-goals.d.ts +2 -2
  141. package/dist/modes/acp-goals.js +3 -3
  142. package/dist/modes/acp-goals.js.map +1 -1
  143. package/dist/modes/acp-mode.d.ts +6 -6
  144. package/dist/modes/acp-mode.js +22 -23
  145. package/dist/modes/acp-mode.js.map +1 -1
  146. package/dist/modes/agent-home-mode.js +7 -8
  147. package/dist/modes/agent-home-mode.js.map +1 -1
  148. package/dist/modes/json-mode.js +4 -4
  149. package/dist/modes/json-mode.js.map +1 -1
  150. package/dist/modes/print-mode.js +4 -3
  151. package/dist/modes/print-mode.js.map +1 -1
  152. package/dist/modes/rpc-mode.js +2 -2
  153. package/dist/modes/rpc-mode.js.map +1 -1
  154. package/dist/modes/serve-mode.js +10 -11
  155. package/dist/modes/serve-mode.js.map +1 -1
  156. package/dist/modes/subagent-worker-mode.d.ts +1 -1
  157. package/dist/modes/subagent-worker-mode.js +8 -8
  158. package/dist/modes/subagent-worker-mode.js.map +1 -1
  159. package/dist/motion-agent/motion-agent.d.ts +3 -2
  160. package/dist/motion-agent/motion-agent.js +3 -2
  161. package/dist/motion-agent/motion-agent.js.map +1 -1
  162. package/dist/motion-agent/motion-bundle.d.ts +18 -0
  163. package/dist/motion-agent/motion-bundle.js +34 -0
  164. package/dist/motion-agent/motion-bundle.js.map +1 -0
  165. package/dist/subagent-entry-path.d.ts +1 -0
  166. package/dist/subagent-entry-path.js +13 -0
  167. package/dist/subagent-entry-path.js.map +1 -0
  168. package/dist/subagent-entry.d.ts +1 -1
  169. package/dist/subagent-entry.js +2 -1
  170. package/dist/subagent-entry.js.map +1 -1
  171. package/dist/ui/App.d.ts +8 -8
  172. package/dist/ui/App.js +20 -21
  173. package/dist/ui/App.js.map +1 -1
  174. package/dist/ui/app-items.d.ts +1 -1
  175. package/dist/ui/components/BackgroundTasksBar.d.ts +1 -1
  176. package/dist/ui/components/Banner.js +1 -1
  177. package/dist/ui/components/Banner.js.map +1 -1
  178. package/dist/ui/components/ChatFooterPane.d.ts +1 -1
  179. package/dist/ui/components/ChatScreen.d.ts +4 -4
  180. package/dist/ui/components/Footer.d.ts +1 -1
  181. package/dist/ui/components/Footer.js +1 -1
  182. package/dist/ui/components/Footer.js.map +1 -1
  183. package/dist/ui/components/FooterStatusRow.d.ts +1 -1
  184. package/dist/ui/components/InputArea.d.ts +2 -2
  185. package/dist/ui/components/InputArea.js +2 -2
  186. package/dist/ui/components/InputArea.js.map +1 -1
  187. package/dist/ui/components/ModelSelector.js +1 -1
  188. package/dist/ui/components/ModelSelector.js.map +1 -1
  189. package/dist/ui/components/RewindOverlay.d.ts +1 -1
  190. package/dist/ui/components/RewindOverlay.js.map +1 -1
  191. package/dist/ui/components/SessionSelector.d.ts +1 -1
  192. package/dist/ui/components/SettingsSelector.d.ts +1 -1
  193. package/dist/ui/components/SkillsOverlay.js +2 -2
  194. package/dist/ui/components/SkillsOverlay.js.map +1 -1
  195. package/dist/ui/components/StreamingArea.js +1 -1
  196. package/dist/ui/components/StreamingArea.js.map +1 -1
  197. package/dist/ui/components/TaskPickerMenu.d.ts +1 -1
  198. package/dist/ui/components/ToolExecution.js +1 -1
  199. package/dist/ui/components/ToolExecution.js.map +1 -1
  200. package/dist/ui/error-item.js +2 -2
  201. package/dist/ui/error-item.js.map +1 -1
  202. package/dist/ui/hooks/useAgentLoop.d.ts +2 -2
  203. package/dist/ui/hooks/useAgentLoop.js +8 -8
  204. package/dist/ui/hooks/useAgentLoop.js.map +1 -1
  205. package/dist/ui/hooks/useChatLayoutMeasurements.d.ts +1 -1
  206. package/dist/ui/hooks/useContextCompaction.d.ts +3 -3
  207. package/dist/ui/hooks/useContextCompaction.js +6 -7
  208. package/dist/ui/hooks/useContextCompaction.js.map +1 -1
  209. package/dist/ui/hooks/useModeState.d.ts +2 -2
  210. package/dist/ui/hooks/useModeState.js +2 -2
  211. package/dist/ui/hooks/useModeState.js.map +1 -1
  212. package/dist/ui/hooks/useSessionPersistence.d.ts +1 -1
  213. package/dist/ui/hooks/useSessionPersistence.js +3 -3
  214. package/dist/ui/hooks/useSessionPersistence.js.map +1 -1
  215. package/dist/ui/hooks/useTaskPickerController.d.ts +1 -1
  216. package/dist/ui/hooks/useTaskPickerController.js +1 -1
  217. package/dist/ui/hooks/useTaskPickerController.js.map +1 -1
  218. package/dist/ui/hooks/useTranscriptHistory.d.ts +1 -1
  219. package/dist/ui/item-helpers.js +1 -1
  220. package/dist/ui/item-helpers.js.map +1 -1
  221. package/dist/ui/language-pack-update.d.ts +1 -1
  222. package/dist/ui/language-pack-update.js +1 -1
  223. package/dist/ui/language-pack-update.js.map +1 -1
  224. package/dist/ui/login.js +1 -1
  225. package/dist/ui/login.js.map +1 -1
  226. package/dist/ui/mcp.d.ts +1 -1
  227. package/dist/ui/prompt-routing.d.ts +3 -3
  228. package/dist/ui/prompt-routing.js +3 -3
  229. package/dist/ui/prompt-routing.js.map +1 -1
  230. package/dist/ui/render.d.ts +8 -8
  231. package/dist/ui/sessions.js +1 -1
  232. package/dist/ui/sessions.js.map +1 -1
  233. package/dist/ui/stores/taskbar-store.d.ts +1 -1
  234. package/dist/ui/stores/taskbar-store.js.map +1 -1
  235. package/dist/ui/submit-prompt-command.d.ts +2 -2
  236. package/dist/ui/submit-prompt-command.js +2 -3
  237. package/dist/ui/submit-prompt-command.js.map +1 -1
  238. package/dist/ui/terminal-history-status-renderers.d.ts +1 -1
  239. package/dist/ui/terminal-history.js +2 -3
  240. package/dist/ui/terminal-history.js.map +1 -1
  241. package/dist/ui/theme/theme.d.ts +2 -1
  242. package/dist/ui/theme/theme.js.map +1 -1
  243. package/dist/ui/thinking-level.d.ts +1 -1
  244. package/dist/ui/thinking-level.js +1 -1
  245. package/dist/ui/thinking-level.js.map +1 -1
  246. package/dist/ui/tool-line-summary.js +1 -1
  247. package/dist/ui/tool-line-summary.js.map +1 -1
  248. package/dist/ui/transcript/presentation.js +1 -1
  249. package/dist/ui/transcript/presentation.js.map +1 -1
  250. package/dist/ui/utils/text-utils.js +1 -1
  251. package/dist/ui/utils/text-utils.js.map +1 -1
  252. package/dist/utils/git-overview.d.ts +2 -23
  253. package/dist/utils/git-overview.js +8 -1
  254. package/dist/utils/git-overview.js.map +1 -1
  255. package/package.json +13 -103
  256. package/assets/skills/bulletproof/SKILL.md +0 -132
  257. package/assets/skills/bulletproof/references/agent-surface.md +0 -113
  258. package/assets/skills/bulletproof/references/attack-classes.md +0 -226
  259. package/assets/skills/bulletproof/references/audit-protocol.md +0 -232
  260. package/assets/skills/bulletproof/references/platform-playbooks.md +0 -196
  261. package/assets/skills/bulletproof/references/provenance.md +0 -146
  262. package/assets/skills/bulletproof/references/secure-defaults.md +0 -137
  263. package/assets/skills/bulletproof/references/supply-chain.md +0 -84
  264. package/assets/skills/bulletproof/references/threat-landscape.md +0 -66
  265. package/assets/skills/bulletproof/references/verification.md +0 -74
  266. package/assets/skills/compliance-guard/SKILL.md +0 -115
  267. package/assets/skills/compliance-guard/references/artifacts.md +0 -199
  268. package/assets/skills/compliance-guard/references/eu-uk.md +0 -162
  269. package/assets/skills/compliance-guard/references/exposure-triage.md +0 -177
  270. package/assets/skills/compliance-guard/references/full-review.md +0 -155
  271. package/assets/skills/compliance-guard/references/lawsuit-vectors.md +0 -153
  272. package/assets/skills/compliance-guard/references/provenance.md +0 -135
  273. package/assets/skills/compliance-guard/references/sector-gates.md +0 -187
  274. package/assets/skills/compliance-guard/references/security-baseline.md +0 -117
  275. package/assets/skills/compliance-guard/references/trigger-map.md +0 -177
  276. package/assets/skills/compliance-guard/references/us.md +0 -194
  277. package/assets/skills/durable/SKILL.md +0 -114
  278. package/assets/skills/durable/references/agent-db-safety.md +0 -76
  279. package/assets/skills/durable/references/backups-and-runtime.md +0 -93
  280. package/assets/skills/durable/references/migrations-and-schema.md +0 -87
  281. package/assets/skills/gg-guide/SKILL.md +0 -43
  282. package/assets/skills/gg-guide/references/chat-motion-goals.md +0 -217
  283. package/assets/skills/gg-guide/references/checklist-and-safety.md +0 -177
  284. package/assets/skills/gg-guide/references/code-mode.md +0 -268
  285. package/assets/skills/gg-guide/references/getting-started.md +0 -290
  286. package/assets/skills/gg-guide/references/ken-and-autopilot.md +0 -172
  287. package/assets/skills/gg-guide/references/mcp-and-skills.md +0 -204
  288. package/assets/skills/gg-guide/references/models-and-sign-in.md +0 -200
  289. package/assets/skills/gg-guide/references/sessions-and-history.md +0 -213
  290. package/assets/skills/gg-guide/references/settings.md +0 -193
  291. package/assets/skills/gg-guide/references/troubleshooting-and-data.md +0 -186
  292. package/assets/skills/lean/SKILL.md +0 -117
  293. package/assets/skills/lean/references/memory-and-processes.md +0 -99
  294. package/assets/skills/lean/references/playbooks.md +0 -134
  295. package/dist/app-error.d.ts +0 -22
  296. package/dist/app-error.js +0 -41
  297. package/dist/app-error.js.map +0 -1
  298. package/dist/config.d.ts +0 -90
  299. package/dist/config.js +0 -240
  300. package/dist/config.js.map +0 -1
  301. package/dist/core/acceptance-checks.d.ts +0 -48
  302. package/dist/core/acceptance-checks.js +0 -151
  303. package/dist/core/acceptance-checks.js.map +0 -1
  304. package/dist/core/action-threats.d.ts +0 -68
  305. package/dist/core/action-threats.js +0 -894
  306. package/dist/core/action-threats.js.map +0 -1
  307. package/dist/core/agent-notifications.d.ts +0 -79
  308. package/dist/core/agent-notifications.js +0 -125
  309. package/dist/core/agent-notifications.js.map +0 -1
  310. package/dist/core/agent-session/helpers.d.ts +0 -26
  311. package/dist/core/agent-session/helpers.js +0 -47
  312. package/dist/core/agent-session/helpers.js.map +0 -1
  313. package/dist/core/agent-session/mcp-tools.d.ts +0 -87
  314. package/dist/core/agent-session/mcp-tools.js +0 -227
  315. package/dist/core/agent-session/mcp-tools.js.map +0 -1
  316. package/dist/core/agent-session/run-loop-monitor.d.ts +0 -63
  317. package/dist/core/agent-session/run-loop-monitor.js +0 -164
  318. package/dist/core/agent-session/run-loop-monitor.js.map +0 -1
  319. package/dist/core/agent-session/transcript-markers.d.ts +0 -57
  320. package/dist/core/agent-session/transcript-markers.js +0 -166
  321. package/dist/core/agent-session/transcript-markers.js.map +0 -1
  322. package/dist/core/agent-session/verification-tracker.d.ts +0 -71
  323. package/dist/core/agent-session/verification-tracker.js +0 -295
  324. package/dist/core/agent-session/verification-tracker.js.map +0 -1
  325. package/dist/core/agent-session.d.ts +0 -1398
  326. package/dist/core/agent-session.js +0 -5123
  327. package/dist/core/agent-session.js.map +0 -1
  328. package/dist/core/agents.d.ts +0 -63
  329. package/dist/core/agents.js +0 -160
  330. package/dist/core/agents.js.map +0 -1
  331. package/dist/core/ask-user.d.ts +0 -163
  332. package/dist/core/ask-user.js +0 -178
  333. package/dist/core/ask-user.js.map +0 -1
  334. package/dist/core/auth/index.d.ts +0 -11
  335. package/dist/core/auth/index.js +0 -11
  336. package/dist/core/auth/index.js.map +0 -1
  337. package/dist/core/auth-providers.d.ts +0 -2
  338. package/dist/core/auth-providers.js +0 -5
  339. package/dist/core/auth-providers.js.map +0 -1
  340. package/dist/core/auth-storage.d.ts +0 -1
  341. package/dist/core/auth-storage.js +0 -4
  342. package/dist/core/auth-storage.js.map +0 -1
  343. package/dist/core/auto-update.d.ts +0 -6
  344. package/dist/core/auto-update.js +0 -15
  345. package/dist/core/auto-update.js.map +0 -1
  346. package/dist/core/autopilot-cycle.d.ts +0 -127
  347. package/dist/core/autopilot-cycle.js +0 -182
  348. package/dist/core/autopilot-cycle.js.map +0 -1
  349. package/dist/core/autopilot-gate.d.ts +0 -106
  350. package/dist/core/autopilot-gate.js +0 -192
  351. package/dist/core/autopilot-gate.js.map +0 -1
  352. package/dist/core/autopilot-verdict.d.ts +0 -55
  353. package/dist/core/autopilot-verdict.js +0 -226
  354. package/dist/core/autopilot-verdict.js.map +0 -1
  355. package/dist/core/blocked-packages-file.d.ts +0 -33
  356. package/dist/core/blocked-packages-file.js +0 -274
  357. package/dist/core/blocked-packages-file.js.map +0 -1
  358. package/dist/core/bundled-agents.d.ts +0 -2
  359. package/dist/core/bundled-agents.js +0 -253
  360. package/dist/core/bundled-agents.js.map +0 -1
  361. package/dist/core/cache-diagnostics.d.ts +0 -72
  362. package/dist/core/cache-diagnostics.js +0 -200
  363. package/dist/core/cache-diagnostics.js.map +0 -1
  364. package/dist/core/cache-expiry.d.ts +0 -89
  365. package/dist/core/cache-expiry.js +0 -117
  366. package/dist/core/cache-expiry.js.map +0 -1
  367. package/dist/core/checklist-detection.d.ts +0 -11
  368. package/dist/core/checklist-detection.js +0 -238
  369. package/dist/core/checklist-detection.js.map +0 -1
  370. package/dist/core/checklist-git.d.ts +0 -19
  371. package/dist/core/checklist-git.js +0 -54
  372. package/dist/core/checklist-git.js.map +0 -1
  373. package/dist/core/checklist-items.d.ts +0 -181
  374. package/dist/core/checklist-items.js +0 -230
  375. package/dist/core/checklist-items.js.map +0 -1
  376. package/dist/core/checklist-prompt.d.ts +0 -14
  377. package/dist/core/checklist-prompt.js +0 -64
  378. package/dist/core/checklist-prompt.js.map +0 -1
  379. package/dist/core/checklist-snapshot.d.ts +0 -17
  380. package/dist/core/checklist-snapshot.js +0 -46
  381. package/dist/core/checklist-snapshot.js.map +0 -1
  382. package/dist/core/checklist-store.d.ts +0 -63
  383. package/dist/core/checklist-store.js +0 -273
  384. package/dist/core/checklist-store.js.map +0 -1
  385. package/dist/core/checkout-record.d.ts +0 -22
  386. package/dist/core/checkout-record.js +0 -68
  387. package/dist/core/checkout-record.js.map +0 -1
  388. package/dist/core/checkpoint-store.d.ts +0 -109
  389. package/dist/core/checkpoint-store.js +0 -260
  390. package/dist/core/checkpoint-store.js.map +0 -1
  391. package/dist/core/claude-code/complete.d.ts +0 -35
  392. package/dist/core/claude-code/complete.js +0 -125
  393. package/dist/core/claude-code/complete.js.map +0 -1
  394. package/dist/core/claude-code/events.d.ts +0 -67
  395. package/dist/core/claude-code/events.js +0 -460
  396. package/dist/core/claude-code/events.js.map +0 -1
  397. package/dist/core/claude-code/live-session.d.ts +0 -94
  398. package/dist/core/claude-code/live-session.js +0 -525
  399. package/dist/core/claude-code/live-session.js.map +0 -1
  400. package/dist/core/claude-code/loop.d.ts +0 -9
  401. package/dist/core/claude-code/loop.js +0 -15
  402. package/dist/core/claude-code/loop.js.map +0 -1
  403. package/dist/core/claude-code/session-sync.d.ts +0 -28
  404. package/dist/core/claude-code/session-sync.js +0 -53
  405. package/dist/core/claude-code/session-sync.js.map +0 -1
  406. package/dist/core/claude-code/tool-bridge.d.ts +0 -49
  407. package/dist/core/claude-code/tool-bridge.js +0 -352
  408. package/dist/core/claude-code/tool-bridge.js.map +0 -1
  409. package/dist/core/claude-code/transcripts.d.ts +0 -39
  410. package/dist/core/claude-code/transcripts.js +0 -195
  411. package/dist/core/claude-code/transcripts.js.map +0 -1
  412. package/dist/core/code-retrieval-chunkers.d.ts +0 -26
  413. package/dist/core/code-retrieval-chunkers.js +0 -264
  414. package/dist/core/code-retrieval-chunkers.js.map +0 -1
  415. package/dist/core/code-retrieval.d.ts +0 -18
  416. package/dist/core/code-retrieval.js +0 -124
  417. package/dist/core/code-retrieval.js.map +0 -1
  418. package/dist/core/codex-request-shape.d.ts +0 -7
  419. package/dist/core/codex-request-shape.js +0 -19
  420. package/dist/core/codex-request-shape.js.map +0 -1
  421. package/dist/core/compaction/active-context.d.ts +0 -16
  422. package/dist/core/compaction/active-context.js +0 -20
  423. package/dist/core/compaction/active-context.js.map +0 -1
  424. package/dist/core/compaction/compactor.d.ts +0 -281
  425. package/dist/core/compaction/compactor.js +0 -1452
  426. package/dist/core/compaction/compactor.js.map +0 -1
  427. package/dist/core/compaction/plan-step-policy.d.ts +0 -46
  428. package/dist/core/compaction/plan-step-policy.js +0 -57
  429. package/dist/core/compaction/plan-step-policy.js.map +0 -1
  430. package/dist/core/compaction/policy.d.ts +0 -36
  431. package/dist/core/compaction/policy.js +0 -144
  432. package/dist/core/compaction/policy.js.map +0 -1
  433. package/dist/core/compaction/query-aware-selector.d.ts +0 -32
  434. package/dist/core/compaction/query-aware-selector.js +0 -202
  435. package/dist/core/compaction/query-aware-selector.js.map +0 -1
  436. package/dist/core/compaction/token-estimator.d.ts +0 -36
  437. package/dist/core/compaction/token-estimator.js +0 -180
  438. package/dist/core/compaction/token-estimator.js.map +0 -1
  439. package/dist/core/compaction/tool-result-pruner.d.ts +0 -90
  440. package/dist/core/compaction/tool-result-pruner.js +0 -238
  441. package/dist/core/compaction/tool-result-pruner.js.map +0 -1
  442. package/dist/core/completion-review.d.ts +0 -24
  443. package/dist/core/completion-review.js +0 -2
  444. package/dist/core/completion-review.js.map +0 -1
  445. package/dist/core/context-files.d.ts +0 -8
  446. package/dist/core/context-files.js +0 -46
  447. package/dist/core/context-files.js.map +0 -1
  448. package/dist/core/context-limits.d.ts +0 -40
  449. package/dist/core/context-limits.js +0 -43
  450. package/dist/core/context-limits.js.map +0 -1
  451. package/dist/core/custom-commands.d.ts +0 -18
  452. package/dist/core/custom-commands.js +0 -57
  453. package/dist/core/custom-commands.js.map +0 -1
  454. package/dist/core/destructive-git-guard.d.ts +0 -113
  455. package/dist/core/destructive-git-guard.js +0 -874
  456. package/dist/core/destructive-git-guard.js.map +0 -1
  457. package/dist/core/encode-cwd.d.ts +0 -41
  458. package/dist/core/encode-cwd.js +0 -53
  459. package/dist/core/encode-cwd.js.map +0 -1
  460. package/dist/core/env-delta.d.ts +0 -34
  461. package/dist/core/env-delta.js +0 -84
  462. package/dist/core/env-delta.js.map +0 -1
  463. package/dist/core/event-bus.d.ts +0 -178
  464. package/dist/core/event-bus.js +0 -171
  465. package/dist/core/event-bus.js.map +0 -1
  466. package/dist/core/extensions/loader.d.ts +0 -7
  467. package/dist/core/extensions/loader.js +0 -68
  468. package/dist/core/extensions/loader.js.map +0 -1
  469. package/dist/core/extensions/plugin-bundles.d.ts +0 -13
  470. package/dist/core/extensions/plugin-bundles.js +0 -45
  471. package/dist/core/extensions/plugin-bundles.js.map +0 -1
  472. package/dist/core/extensions/types.d.ts +0 -18
  473. package/dist/core/extensions/types.js +0 -2
  474. package/dist/core/extensions/types.js.map +0 -1
  475. package/dist/core/foreign-session-import.d.ts +0 -119
  476. package/dist/core/foreign-session-import.js +0 -598
  477. package/dist/core/foreign-session-import.js.map +0 -1
  478. package/dist/core/foreign-transcript-blocks.d.ts +0 -50
  479. package/dist/core/foreign-transcript-blocks.js +0 -151
  480. package/dist/core/foreign-transcript-blocks.js.map +0 -1
  481. package/dist/core/frontmatter.d.ts +0 -22
  482. package/dist/core/frontmatter.js +0 -90
  483. package/dist/core/frontmatter.js.map +0 -1
  484. package/dist/core/goal-run-marker.d.ts +0 -32
  485. package/dist/core/goal-run-marker.js +0 -178
  486. package/dist/core/goal-run-marker.js.map +0 -1
  487. package/dist/core/goal-summary.d.ts +0 -32
  488. package/dist/core/goal-summary.js +0 -110
  489. package/dist/core/goal-summary.js.map +0 -1
  490. package/dist/core/goals-store.d.ts +0 -215
  491. package/dist/core/goals-store.js +0 -577
  492. package/dist/core/goals-store.js.map +0 -1
  493. package/dist/core/hashline.d.ts +0 -51
  494. package/dist/core/hashline.js +0 -76
  495. package/dist/core/hashline.js.map +0 -1
  496. package/dist/core/idle-wake.d.ts +0 -62
  497. package/dist/core/idle-wake.js +0 -103
  498. package/dist/core/idle-wake.js.map +0 -1
  499. package/dist/core/index.d.ts +0 -14
  500. package/dist/core/index.js +0 -14
  501. package/dist/core/index.js.map +0 -1
  502. package/dist/core/injection-detect.d.ts +0 -39
  503. package/dist/core/injection-detect.js +0 -241
  504. package/dist/core/injection-detect.js.map +0 -1
  505. package/dist/core/installed-threats.d.ts +0 -23
  506. package/dist/core/installed-threats.js +0 -71
  507. package/dist/core/installed-threats.js.map +0 -1
  508. package/dist/core/internal-diagnostics.d.ts +0 -159
  509. package/dist/core/internal-diagnostics.js +0 -495
  510. package/dist/core/internal-diagnostics.js.map +0 -1
  511. package/dist/core/keep-awake.d.ts +0 -88
  512. package/dist/core/keep-awake.js +0 -251
  513. package/dist/core/keep-awake.js.map +0 -1
  514. package/dist/core/ken-ask-answer.d.ts +0 -24
  515. package/dist/core/ken-ask-answer.js +0 -96
  516. package/dist/core/ken-ask-answer.js.map +0 -1
  517. package/dist/core/ken-context.d.ts +0 -119
  518. package/dist/core/ken-context.js +0 -447
  519. package/dist/core/ken-context.js.map +0 -1
  520. package/dist/core/ken-model.d.ts +0 -45
  521. package/dist/core/ken-model.js +0 -26
  522. package/dist/core/ken-model.js.map +0 -1
  523. package/dist/core/ken-prompt.d.ts +0 -21
  524. package/dist/core/ken-prompt.js +0 -370
  525. package/dist/core/ken-prompt.js.map +0 -1
  526. package/dist/core/language-detector.d.ts +0 -41
  527. package/dist/core/language-detector.js +0 -293
  528. package/dist/core/language-detector.js.map +0 -1
  529. package/dist/core/live-preview.d.ts +0 -26
  530. package/dist/core/live-preview.js +0 -80
  531. package/dist/core/live-preview.js.map +0 -1
  532. package/dist/core/local-endpoint-store.d.ts +0 -53
  533. package/dist/core/local-endpoint-store.js +0 -221
  534. package/dist/core/local-endpoint-store.js.map +0 -1
  535. package/dist/core/logger.d.ts +0 -22
  536. package/dist/core/logger.js +0 -95
  537. package/dist/core/logger.js.map +0 -1
  538. package/dist/core/loop-breaker.d.ts +0 -89
  539. package/dist/core/loop-breaker.js +0 -204
  540. package/dist/core/loop-breaker.js.map +0 -1
  541. package/dist/core/lsp/client.d.ts +0 -206
  542. package/dist/core/lsp/client.js +0 -685
  543. package/dist/core/lsp/client.js.map +0 -1
  544. package/dist/core/lsp/edit-telemetry.d.ts +0 -26
  545. package/dist/core/lsp/edit-telemetry.js +0 -52
  546. package/dist/core/lsp/edit-telemetry.js.map +0 -1
  547. package/dist/core/lsp/format.d.ts +0 -11
  548. package/dist/core/lsp/format.js +0 -30
  549. package/dist/core/lsp/format.js.map +0 -1
  550. package/dist/core/lsp/jsonrpc.d.ts +0 -68
  551. package/dist/core/lsp/jsonrpc.js +0 -153
  552. package/dist/core/lsp/jsonrpc.js.map +0 -1
  553. package/dist/core/lsp/manager.d.ts +0 -188
  554. package/dist/core/lsp/manager.js +0 -576
  555. package/dist/core/lsp/manager.js.map +0 -1
  556. package/dist/core/lsp/pool.d.ts +0 -114
  557. package/dist/core/lsp/pool.js +0 -259
  558. package/dist/core/lsp/pool.js.map +0 -1
  559. package/dist/core/lsp/project-root.d.ts +0 -9
  560. package/dist/core/lsp/project-root.js +0 -75
  561. package/dist/core/lsp/project-root.js.map +0 -1
  562. package/dist/core/lsp/reference-project.d.ts +0 -6
  563. package/dist/core/lsp/reference-project.js +0 -110
  564. package/dist/core/lsp/reference-project.js.map +0 -1
  565. package/dist/core/lsp/servers.d.ts +0 -44
  566. package/dist/core/lsp/servers.js +0 -289
  567. package/dist/core/lsp/servers.js.map +0 -1
  568. package/dist/core/lsp/test-support.d.ts +0 -17
  569. package/dist/core/lsp/test-support.js +0 -27
  570. package/dist/core/lsp/test-support.js.map +0 -1
  571. package/dist/core/mcp/catalog-cache.d.ts +0 -64
  572. package/dist/core/mcp/catalog-cache.js +0 -167
  573. package/dist/core/mcp/catalog-cache.js.map +0 -1
  574. package/dist/core/mcp/client.d.ts +0 -317
  575. package/dist/core/mcp/client.js +0 -1168
  576. package/dist/core/mcp/client.js.map +0 -1
  577. package/dist/core/mcp/content.d.ts +0 -23
  578. package/dist/core/mcp/content.js +0 -194
  579. package/dist/core/mcp/content.js.map +0 -1
  580. package/dist/core/mcp/defaults.d.ts +0 -26
  581. package/dist/core/mcp/defaults.js +0 -81
  582. package/dist/core/mcp/defaults.js.map +0 -1
  583. package/dist/core/mcp/deferred-catalog.d.ts +0 -53
  584. package/dist/core/mcp/deferred-catalog.js +0 -117
  585. package/dist/core/mcp/deferred-catalog.js.map +0 -1
  586. package/dist/core/mcp/elicitation-bridge.d.ts +0 -40
  587. package/dist/core/mcp/elicitation-bridge.js +0 -36
  588. package/dist/core/mcp/elicitation-bridge.js.map +0 -1
  589. package/dist/core/mcp/index.d.ts +0 -16
  590. package/dist/core/mcp/index.js +0 -10
  591. package/dist/core/mcp/index.js.map +0 -1
  592. package/dist/core/mcp/loopback.d.ts +0 -26
  593. package/dist/core/mcp/loopback.js +0 -66
  594. package/dist/core/mcp/loopback.js.map +0 -1
  595. package/dist/core/mcp/oauth-provider.d.ts +0 -55
  596. package/dist/core/mcp/oauth-provider.js +0 -106
  597. package/dist/core/mcp/oauth-provider.js.map +0 -1
  598. package/dist/core/mcp/oauth-store.d.ts +0 -44
  599. package/dist/core/mcp/oauth-store.js +0 -77
  600. package/dist/core/mcp/oauth-store.js.map +0 -1
  601. package/dist/core/mcp/parse-add-command.d.ts +0 -50
  602. package/dist/core/mcp/parse-add-command.js +0 -391
  603. package/dist/core/mcp/parse-add-command.js.map +0 -1
  604. package/dist/core/mcp/resolve-stdio.d.ts +0 -77
  605. package/dist/core/mcp/resolve-stdio.js +0 -359
  606. package/dist/core/mcp/resolve-stdio.js.map +0 -1
  607. package/dist/core/mcp/shared-pool.d.ts +0 -157
  608. package/dist/core/mcp/shared-pool.js +0 -236
  609. package/dist/core/mcp/shared-pool.js.map +0 -1
  610. package/dist/core/mcp/store.d.ts +0 -100
  611. package/dist/core/mcp/store.js +0 -202
  612. package/dist/core/mcp/store.js.map +0 -1
  613. package/dist/core/mcp/tool-guard.d.ts +0 -58
  614. package/dist/core/mcp/tool-guard.js +0 -215
  615. package/dist/core/mcp/tool-guard.js.map +0 -1
  616. package/dist/core/mcp/types.d.ts +0 -57
  617. package/dist/core/mcp/types.js +0 -2
  618. package/dist/core/mcp/types.js.map +0 -1
  619. package/dist/core/message-images.d.ts +0 -11
  620. package/dist/core/message-images.js +0 -52
  621. package/dist/core/message-images.js.map +0 -1
  622. package/dist/core/model-registry.d.ts +0 -1
  623. package/dist/core/model-registry.js +0 -5
  624. package/dist/core/model-registry.js.map +0 -1
  625. package/dist/core/model-unavailable.d.ts +0 -14
  626. package/dist/core/model-unavailable.js +0 -23
  627. package/dist/core/model-unavailable.js.map +0 -1
  628. package/dist/core/network-guard.d.ts +0 -28
  629. package/dist/core/network-guard.js +0 -251
  630. package/dist/core/network-guard.js.map +0 -1
  631. package/dist/core/node-debugger.d.ts +0 -148
  632. package/dist/core/node-debugger.js +0 -642
  633. package/dist/core/node-debugger.js.map +0 -1
  634. package/dist/core/oauth/openai.d.ts +0 -1
  635. package/dist/core/oauth/openai.js +0 -3
  636. package/dist/core/oauth/openai.js.map +0 -1
  637. package/dist/core/oauth/types.d.ts +0 -1
  638. package/dist/core/oauth/types.js +0 -2
  639. package/dist/core/oauth/types.js.map +0 -1
  640. package/dist/core/opencode-catalog-store.d.ts +0 -20
  641. package/dist/core/opencode-catalog-store.js +0 -82
  642. package/dist/core/opencode-catalog-store.js.map +0 -1
  643. package/dist/core/openrouter-catalog-store.d.ts +0 -24
  644. package/dist/core/openrouter-catalog-store.js +0 -140
  645. package/dist/core/openrouter-catalog-store.js.map +0 -1
  646. package/dist/core/package-cooldown.d.ts +0 -69
  647. package/dist/core/package-cooldown.js +0 -297
  648. package/dist/core/package-cooldown.js.map +0 -1
  649. package/dist/core/package-threats.d.ts +0 -92
  650. package/dist/core/package-threats.js +0 -1340
  651. package/dist/core/package-threats.js.map +0 -1
  652. package/dist/core/parked-requests.d.ts +0 -43
  653. package/dist/core/parked-requests.js +0 -34
  654. package/dist/core/parked-requests.js.map +0 -1
  655. package/dist/core/persistent-shell.d.ts +0 -81
  656. package/dist/core/persistent-shell.js +0 -452
  657. package/dist/core/persistent-shell.js.map +0 -1
  658. package/dist/core/plan-delta.d.ts +0 -23
  659. package/dist/core/plan-delta.js +0 -36
  660. package/dist/core/plan-delta.js.map +0 -1
  661. package/dist/core/plan-handoff.d.ts +0 -38
  662. package/dist/core/plan-handoff.js +0 -21
  663. package/dist/core/plan-handoff.js.map +0 -1
  664. package/dist/core/plan-submission-gate.d.ts +0 -28
  665. package/dist/core/plan-submission-gate.js +0 -27
  666. package/dist/core/plan-submission-gate.js.map +0 -1
  667. package/dist/core/platform-clis.d.ts +0 -15
  668. package/dist/core/platform-clis.js +0 -299
  669. package/dist/core/platform-clis.js.map +0 -1
  670. package/dist/core/process-gate.d.ts +0 -61
  671. package/dist/core/process-gate.js +0 -103
  672. package/dist/core/process-gate.js.map +0 -1
  673. package/dist/core/process-manager.d.ts +0 -242
  674. package/dist/core/process-manager.js +0 -902
  675. package/dist/core/process-manager.js.map +0 -1
  676. package/dist/core/progress/engine.d.ts +0 -22
  677. package/dist/core/progress/engine.js +0 -131
  678. package/dist/core/progress/engine.js.map +0 -1
  679. package/dist/core/progress/git-xp.d.ts +0 -15
  680. package/dist/core/progress/git-xp.js +0 -100
  681. package/dist/core/progress/git-xp.js.map +0 -1
  682. package/dist/core/progress/ranks.d.ts +0 -31
  683. package/dist/core/progress/ranks.js +0 -310
  684. package/dist/core/progress/ranks.js.map +0 -1
  685. package/dist/core/progress/rebuild.d.ts +0 -8
  686. package/dist/core/progress/rebuild.js +0 -125
  687. package/dist/core/progress/rebuild.js.map +0 -1
  688. package/dist/core/progress/store.d.ts +0 -34
  689. package/dist/core/progress/store.js +0 -200
  690. package/dist/core/progress/store.js.map +0 -1
  691. package/dist/core/progress/types.d.ts +0 -108
  692. package/dist/core/progress/types.js +0 -3
  693. package/dist/core/progress/types.js.map +0 -1
  694. package/dist/core/project-discovery.d.ts +0 -88
  695. package/dist/core/project-discovery.js +0 -907
  696. package/dist/core/project-discovery.js.map +0 -1
  697. package/dist/core/project-files.d.ts +0 -15
  698. package/dist/core/project-files.js +0 -37
  699. package/dist/core/project-files.js.map +0 -1
  700. package/dist/core/project-health-scan.d.ts +0 -109
  701. package/dist/core/project-health-scan.js +0 -673
  702. package/dist/core/project-health-scan.js.map +0 -1
  703. package/dist/core/project-health-score.d.ts +0 -41
  704. package/dist/core/project-health-score.js +0 -257
  705. package/dist/core/project-health-score.js.map +0 -1
  706. package/dist/core/prompt-command-expansion.d.ts +0 -13
  707. package/dist/core/prompt-command-expansion.js +0 -48
  708. package/dist/core/prompt-command-expansion.js.map +0 -1
  709. package/dist/core/prompt-commands.d.ts +0 -13
  710. package/dist/core/prompt-commands.js +0 -370
  711. package/dist/core/prompt-commands.js.map +0 -1
  712. package/dist/core/radio-players.d.ts +0 -28
  713. package/dist/core/radio-players.js +0 -133
  714. package/dist/core/radio-players.js.map +0 -1
  715. package/dist/core/radio.d.ts +0 -50
  716. package/dist/core/radio.js +0 -480
  717. package/dist/core/radio.js.map +0 -1
  718. package/dist/core/regrounding.d.ts +0 -37
  719. package/dist/core/regrounding.js +0 -89
  720. package/dist/core/regrounding.js.map +0 -1
  721. package/dist/core/resolve-start.d.ts +0 -28
  722. package/dist/core/resolve-start.js +0 -35
  723. package/dist/core/resolve-start.js.map +0 -1
  724. package/dist/core/run-claim.d.ts +0 -36
  725. package/dist/core/run-claim.js +0 -46
  726. package/dist/core/run-claim.js.map +0 -1
  727. package/dist/core/run-lifecycle.d.ts +0 -58
  728. package/dist/core/run-lifecycle.js +0 -104
  729. package/dist/core/run-lifecycle.js.map +0 -1
  730. package/dist/core/run-status.d.ts +0 -17
  731. package/dist/core/run-status.js +0 -28
  732. package/dist/core/run-status.js.map +0 -1
  733. package/dist/core/runtime-mode.d.ts +0 -21
  734. package/dist/core/runtime-mode.js +0 -43
  735. package/dist/core/runtime-mode.js.map +0 -1
  736. package/dist/core/sandbox-domains.d.ts +0 -13
  737. package/dist/core/sandbox-domains.js +0 -76
  738. package/dist/core/sandbox-domains.js.map +0 -1
  739. package/dist/core/sandbox-feedback.d.ts +0 -21
  740. package/dist/core/sandbox-feedback.js +0 -69
  741. package/dist/core/sandbox-feedback.js.map +0 -1
  742. package/dist/core/sandbox.d.ts +0 -106
  743. package/dist/core/sandbox.js +0 -383
  744. package/dist/core/sandbox.js.map +0 -1
  745. package/dist/core/semantic-loop-check.d.ts +0 -58
  746. package/dist/core/semantic-loop-check.js +0 -103
  747. package/dist/core/semantic-loop-check.js.map +0 -1
  748. package/dist/core/session-compaction.d.ts +0 -23
  749. package/dist/core/session-compaction.js +0 -54
  750. package/dist/core/session-compaction.js.map +0 -1
  751. package/dist/core/session-export.d.ts +0 -97
  752. package/dist/core/session-export.js +0 -368
  753. package/dist/core/session-export.js.map +0 -1
  754. package/dist/core/session-history.d.ts +0 -160
  755. package/dist/core/session-history.js +0 -467
  756. package/dist/core/session-history.js.map +0 -1
  757. package/dist/core/session-manager.d.ts +0 -509
  758. package/dist/core/session-manager.js +0 -1367
  759. package/dist/core/session-manager.js.map +0 -1
  760. package/dist/core/session-preview.d.ts +0 -12
  761. package/dist/core/session-preview.js +0 -58
  762. package/dist/core/session-preview.js.map +0 -1
  763. package/dist/core/session-storage.d.ts +0 -78
  764. package/dist/core/session-storage.js +0 -659
  765. package/dist/core/session-storage.js.map +0 -1
  766. package/dist/core/session-summary-index.d.ts +0 -51
  767. package/dist/core/session-summary-index.js +0 -192
  768. package/dist/core/session-summary-index.js.map +0 -1
  769. package/dist/core/settings-manager.d.ts +0 -113
  770. package/dist/core/settings-manager.js +0 -281
  771. package/dist/core/settings-manager.js.map +0 -1
  772. package/dist/core/shared-checkout-guard.d.ts +0 -78
  773. package/dist/core/shared-checkout-guard.js +0 -219
  774. package/dist/core/shared-checkout-guard.js.map +0 -1
  775. package/dist/core/shell-path.d.ts +0 -13
  776. package/dist/core/shell-path.js +0 -175
  777. package/dist/core/shell-path.js.map +0 -1
  778. package/dist/core/shell-threats-popular-packages.d.ts +0 -11
  779. package/dist/core/shell-threats-popular-packages.js +0 -675
  780. package/dist/core/shell-threats-popular-packages.js.map +0 -1
  781. package/dist/core/shell-threats.d.ts +0 -21
  782. package/dist/core/shell-threats.js +0 -235
  783. package/dist/core/shell-threats.js.map +0 -1
  784. package/dist/core/shell.d.ts +0 -54
  785. package/dist/core/shell.js +0 -99
  786. package/dist/core/shell.js.map +0 -1
  787. package/dist/core/shutdown.d.ts +0 -70
  788. package/dist/core/shutdown.js +0 -144
  789. package/dist/core/shutdown.js.map +0 -1
  790. package/dist/core/skill-scan.d.ts +0 -112
  791. package/dist/core/skill-scan.js +0 -781
  792. package/dist/core/skill-scan.js.map +0 -1
  793. package/dist/core/skills.d.ts +0 -100
  794. package/dist/core/skills.js +0 -299
  795. package/dist/core/skills.js.map +0 -1
  796. package/dist/core/slash-commands.d.ts +0 -58
  797. package/dist/core/slash-commands.js +0 -242
  798. package/dist/core/slash-commands.js.map +0 -1
  799. package/dist/core/steering.d.ts +0 -47
  800. package/dist/core/steering.js +0 -65
  801. package/dist/core/steering.js.map +0 -1
  802. package/dist/core/steroids.d.ts +0 -66
  803. package/dist/core/steroids.js +0 -243
  804. package/dist/core/steroids.js.map +0 -1
  805. package/dist/core/stream-diag-level.d.ts +0 -3
  806. package/dist/core/stream-diag-level.js +0 -24
  807. package/dist/core/stream-diag-level.js.map +0 -1
  808. package/dist/core/stream-rules.d.ts +0 -30
  809. package/dist/core/stream-rules.js +0 -151
  810. package/dist/core/stream-rules.js.map +0 -1
  811. package/dist/core/subagent-manager.d.ts +0 -239
  812. package/dist/core/subagent-manager.js +0 -1060
  813. package/dist/core/subagent-manager.js.map +0 -1
  814. package/dist/core/subagent-policy.d.ts +0 -9
  815. package/dist/core/subagent-policy.js +0 -41
  816. package/dist/core/subagent-policy.js.map +0 -1
  817. package/dist/core/subagent-receipt.d.ts +0 -54
  818. package/dist/core/subagent-receipt.js +0 -274
  819. package/dist/core/subagent-receipt.js.map +0 -1
  820. package/dist/core/subagent-store.d.ts +0 -41
  821. package/dist/core/subagent-store.js +0 -284
  822. package/dist/core/subagent-store.js.map +0 -1
  823. package/dist/core/subagent-turn-record.d.ts +0 -18
  824. package/dist/core/subagent-turn-record.js +0 -82
  825. package/dist/core/subagent-turn-record.js.map +0 -1
  826. package/dist/core/tasks-store.d.ts +0 -31
  827. package/dist/core/tasks-store.js +0 -97
  828. package/dist/core/tasks-store.js.map +0 -1
  829. package/dist/core/telegram-config.d.ts +0 -20
  830. package/dist/core/telegram-config.js +0 -52
  831. package/dist/core/telegram-config.js.map +0 -1
  832. package/dist/core/telegram.d.ts +0 -1
  833. package/dist/core/telegram.js +0 -3
  834. package/dist/core/telegram.js.map +0 -1
  835. package/dist/core/temp-paths.d.ts +0 -5
  836. package/dist/core/temp-paths.js +0 -50
  837. package/dist/core/temp-paths.js.map +0 -1
  838. package/dist/core/test-impact.d.ts +0 -73
  839. package/dist/core/test-impact.js +0 -467
  840. package/dist/core/test-impact.js.map +0 -1
  841. package/dist/core/thinking-level.d.ts +0 -1
  842. package/dist/core/thinking-level.js +0 -4
  843. package/dist/core/thinking-level.js.map +0 -1
  844. package/dist/core/threat-feed.d.ts +0 -65
  845. package/dist/core/threat-feed.js +0 -335
  846. package/dist/core/threat-feed.js.map +0 -1
  847. package/dist/core/trophies/catalog-more.d.ts +0 -2
  848. package/dist/core/trophies/catalog-more.js +0 -837
  849. package/dist/core/trophies/catalog-more.js.map +0 -1
  850. package/dist/core/trophies/catalog.d.ts +0 -4
  851. package/dist/core/trophies/catalog.js +0 -649
  852. package/dist/core/trophies/catalog.js.map +0 -1
  853. package/dist/core/trophies/engine.d.ts +0 -70
  854. package/dist/core/trophies/engine.js +0 -347
  855. package/dist/core/trophies/engine.js.map +0 -1
  856. package/dist/core/trophies/store.d.ts +0 -17
  857. package/dist/core/trophies/store.js +0 -113
  858. package/dist/core/trophies/store.js.map +0 -1
  859. package/dist/core/trophies/types.d.ts +0 -119
  860. package/dist/core/trophies/types.js +0 -76
  861. package/dist/core/trophies/types.js.map +0 -1
  862. package/dist/core/ui-adoption.d.ts +0 -32
  863. package/dist/core/ui-adoption.js +0 -302
  864. package/dist/core/ui-adoption.js.map +0 -1
  865. package/dist/core/ui-compatibility.d.ts +0 -10
  866. package/dist/core/ui-compatibility.js +0 -51
  867. package/dist/core/ui-compatibility.js.map +0 -1
  868. package/dist/core/ui-registry.d.ts +0 -101
  869. package/dist/core/ui-registry.js +0 -292
  870. package/dist/core/ui-registry.js.map +0 -1
  871. package/dist/core/user-shell-context.d.ts +0 -8
  872. package/dist/core/user-shell-context.js +0 -12
  873. package/dist/core/user-shell-context.js.map +0 -1
  874. package/dist/core/verification-evidence.d.ts +0 -49
  875. package/dist/core/verification-evidence.js +0 -816
  876. package/dist/core/verification-evidence.js.map +0 -1
  877. package/dist/core/verification-gate.d.ts +0 -77
  878. package/dist/core/verification-gate.js +0 -504
  879. package/dist/core/verification-gate.js.map +0 -1
  880. package/dist/core/verification-snapshot.d.ts +0 -7
  881. package/dist/core/verification-snapshot.js +0 -109
  882. package/dist/core/verification-snapshot.js.map +0 -1
  883. package/dist/core/verify-commands.d.ts +0 -34
  884. package/dist/core/verify-commands.js +0 -203
  885. package/dist/core/verify-commands.js.map +0 -1
  886. package/dist/core/voice-transcriber.d.ts +0 -1
  887. package/dist/core/voice-transcriber.js +0 -4
  888. package/dist/core/voice-transcriber.js.map +0 -1
  889. package/dist/core/workspace-guard.d.ts +0 -56
  890. package/dist/core/workspace-guard.js +0 -334
  891. package/dist/core/workspace-guard.js.map +0 -1
  892. package/dist/session.d.ts +0 -44
  893. package/dist/session.js +0 -105
  894. package/dist/session.js.map +0 -1
  895. package/dist/system-prompt.d.ts +0 -104
  896. package/dist/system-prompt.js +0 -480
  897. package/dist/system-prompt.js.map +0 -1
  898. package/dist/test-support/fake-home.d.ts +0 -19
  899. package/dist/test-support/fake-home.js +0 -37
  900. package/dist/test-support/fake-home.js.map +0 -1
  901. package/dist/test-support/keep-alive.d.ts +0 -14
  902. package/dist/test-support/keep-alive.js +0 -17
  903. package/dist/test-support/keep-alive.js.map +0 -1
  904. package/dist/test-support/slow-git.d.ts +0 -1
  905. package/dist/test-support/slow-git.js +0 -21
  906. package/dist/test-support/slow-git.js.map +0 -1
  907. package/dist/test-support/system-tools.d.ts +0 -6
  908. package/dist/test-support/system-tools.js +0 -36
  909. package/dist/test-support/system-tools.js.map +0 -1
  910. package/dist/tools/ask-user.d.ts +0 -34
  911. package/dist/tools/ask-user.js +0 -99
  912. package/dist/tools/ask-user.js.map +0 -1
  913. package/dist/tools/background-watch-lint.d.ts +0 -18
  914. package/dist/tools/background-watch-lint.js +0 -102
  915. package/dist/tools/background-watch-lint.js.map +0 -1
  916. package/dist/tools/bash-read-evidence.d.ts +0 -23
  917. package/dist/tools/bash-read-evidence.js +0 -180
  918. package/dist/tools/bash-read-evidence.js.map +0 -1
  919. package/dist/tools/bash.d.ts +0 -64
  920. package/dist/tools/bash.js +0 -552
  921. package/dist/tools/bash.js.map +0 -1
  922. package/dist/tools/browser-api.d.ts +0 -27
  923. package/dist/tools/browser-api.js +0 -449
  924. package/dist/tools/browser-api.js.map +0 -1
  925. package/dist/tools/browser-sandbox.d.ts +0 -16
  926. package/dist/tools/browser-sandbox.js +0 -158
  927. package/dist/tools/browser-sandbox.js.map +0 -1
  928. package/dist/tools/browser-session.d.ts +0 -84
  929. package/dist/tools/browser-session.js +0 -304
  930. package/dist/tools/browser-session.js.map +0 -1
  931. package/dist/tools/browser-snapshot.d.ts +0 -19
  932. package/dist/tools/browser-snapshot.js +0 -109
  933. package/dist/tools/browser-snapshot.js.map +0 -1
  934. package/dist/tools/browser.d.ts +0 -11
  935. package/dist/tools/browser.js +0 -106
  936. package/dist/tools/browser.js.map +0 -1
  937. package/dist/tools/checklist.d.ts +0 -49
  938. package/dist/tools/checklist.js +0 -154
  939. package/dist/tools/checklist.js.map +0 -1
  940. package/dist/tools/compress.d.ts +0 -56
  941. package/dist/tools/compress.js +0 -226
  942. package/dist/tools/compress.js.map +0 -1
  943. package/dist/tools/debug.d.ts +0 -54
  944. package/dist/tools/debug.js +0 -230
  945. package/dist/tools/debug.js.map +0 -1
  946. package/dist/tools/document-text.d.ts +0 -6
  947. package/dist/tools/document-text.js +0 -154
  948. package/dist/tools/document-text.js.map +0 -1
  949. package/dist/tools/edit-diff.d.ts +0 -123
  950. package/dist/tools/edit-diff.js +0 -476
  951. package/dist/tools/edit-diff.js.map +0 -1
  952. package/dist/tools/edit-targets.d.ts +0 -10
  953. package/dist/tools/edit-targets.js +0 -31
  954. package/dist/tools/edit-targets.js.map +0 -1
  955. package/dist/tools/edit.d.ts +0 -38
  956. package/dist/tools/edit.js +0 -695
  957. package/dist/tools/edit.js.map +0 -1
  958. package/dist/tools/enter-plan.d.ts +0 -7
  959. package/dist/tools/enter-plan.js +0 -20
  960. package/dist/tools/enter-plan.js.map +0 -1
  961. package/dist/tools/exit-plan.d.ts +0 -7
  962. package/dist/tools/exit-plan.js +0 -51
  963. package/dist/tools/exit-plan.js.map +0 -1
  964. package/dist/tools/find.d.ts +0 -17
  965. package/dist/tools/find.js +0 -100
  966. package/dist/tools/find.js.map +0 -1
  967. package/dist/tools/generate-image.d.ts +0 -83
  968. package/dist/tools/generate-image.js +0 -625
  969. package/dist/tools/generate-image.js.map +0 -1
  970. package/dist/tools/grep-scan.d.ts +0 -96
  971. package/dist/tools/grep-scan.js +0 -283
  972. package/dist/tools/grep-scan.js.map +0 -1
  973. package/dist/tools/grep.d.ts +0 -48
  974. package/dist/tools/grep.js +0 -1013
  975. package/dist/tools/grep.js.map +0 -1
  976. package/dist/tools/html-extract.d.ts +0 -57
  977. package/dist/tools/html-extract.js +0 -130
  978. package/dist/tools/html-extract.js.map +0 -1
  979. package/dist/tools/index.d.ts +0 -198
  980. package/dist/tools/index.js +0 -216
  981. package/dist/tools/index.js.map +0 -1
  982. package/dist/tools/live-preview.d.ts +0 -23
  983. package/dist/tools/live-preview.js +0 -41
  984. package/dist/tools/live-preview.js.map +0 -1
  985. package/dist/tools/ls.d.ts +0 -9
  986. package/dist/tools/ls.js +0 -59
  987. package/dist/tools/ls.js.map +0 -1
  988. package/dist/tools/operations.d.ts +0 -86
  989. package/dist/tools/operations.js +0 -117
  990. package/dist/tools/operations.js.map +0 -1
  991. package/dist/tools/overflow.d.ts +0 -17
  992. package/dist/tools/overflow.js +0 -68
  993. package/dist/tools/overflow.js.map +0 -1
  994. package/dist/tools/path-utils.d.ts +0 -30
  995. package/dist/tools/path-utils.js +0 -74
  996. package/dist/tools/path-utils.js.map +0 -1
  997. package/dist/tools/pdf-extract.d.ts +0 -17
  998. package/dist/tools/pdf-extract.js +0 -43
  999. package/dist/tools/pdf-extract.js.map +0 -1
  1000. package/dist/tools/prompt-hints.d.ts +0 -46
  1001. package/dist/tools/prompt-hints.js +0 -171
  1002. package/dist/tools/prompt-hints.js.map +0 -1
  1003. package/dist/tools/read-only-bash.d.ts +0 -31
  1004. package/dist/tools/read-only-bash.js +0 -338
  1005. package/dist/tools/read-only-bash.js.map +0 -1
  1006. package/dist/tools/read-tracker.d.ts +0 -43
  1007. package/dist/tools/read-tracker.js +0 -120
  1008. package/dist/tools/read-tracker.js.map +0 -1
  1009. package/dist/tools/read.d.ts +0 -18
  1010. package/dist/tools/read.js +0 -316
  1011. package/dist/tools/read.js.map +0 -1
  1012. package/dist/tools/redaction-guard.d.ts +0 -10
  1013. package/dist/tools/redaction-guard.js +0 -55
  1014. package/dist/tools/redaction-guard.js.map +0 -1
  1015. package/dist/tools/routine-output.d.ts +0 -39
  1016. package/dist/tools/routine-output.js +0 -281
  1017. package/dist/tools/routine-output.js.map +0 -1
  1018. package/dist/tools/safe-env.d.ts +0 -1
  1019. package/dist/tools/safe-env.js +0 -79
  1020. package/dist/tools/safe-env.js.map +0 -1
  1021. package/dist/tools/session-stats.d.ts +0 -26
  1022. package/dist/tools/session-stats.js +0 -51
  1023. package/dist/tools/session-stats.js.map +0 -1
  1024. package/dist/tools/side-web-search.d.ts +0 -34
  1025. package/dist/tools/side-web-search.js +0 -146
  1026. package/dist/tools/side-web-search.js.map +0 -1
  1027. package/dist/tools/skill.d.ts +0 -12
  1028. package/dist/tools/skill.js +0 -94
  1029. package/dist/tools/skill.js.map +0 -1
  1030. package/dist/tools/source-path.d.ts +0 -8
  1031. package/dist/tools/source-path.js +0 -128
  1032. package/dist/tools/source-path.js.map +0 -1
  1033. package/dist/tools/steroids.d.ts +0 -44
  1034. package/dist/tools/steroids.js +0 -356
  1035. package/dist/tools/steroids.js.map +0 -1
  1036. package/dist/tools/subagent-control.d.ts +0 -5
  1037. package/dist/tools/subagent-control.js +0 -211
  1038. package/dist/tools/subagent-control.js.map +0 -1
  1039. package/dist/tools/subagent-shared.d.ts +0 -110
  1040. package/dist/tools/subagent-shared.js +0 -180
  1041. package/dist/tools/subagent-shared.js.map +0 -1
  1042. package/dist/tools/subagent.d.ts +0 -37
  1043. package/dist/tools/subagent.js +0 -406
  1044. package/dist/tools/subagent.js.map +0 -1
  1045. package/dist/tools/task-output.d.ts +0 -10
  1046. package/dist/tools/task-output.js +0 -74
  1047. package/dist/tools/task-output.js.map +0 -1
  1048. package/dist/tools/task-send.d.ts +0 -11
  1049. package/dist/tools/task-send.js +0 -36
  1050. package/dist/tools/task-send.js.map +0 -1
  1051. package/dist/tools/task-stop.d.ts +0 -8
  1052. package/dist/tools/task-stop.js +0 -15
  1053. package/dist/tools/task-stop.js.map +0 -1
  1054. package/dist/tools/tasks.d.ts +0 -15
  1055. package/dist/tools/tasks.js +0 -94
  1056. package/dist/tools/tasks.js.map +0 -1
  1057. package/dist/tools/tool-search.d.ts +0 -26
  1058. package/dist/tools/tool-search.js +0 -81
  1059. package/dist/tools/tool-search.js.map +0 -1
  1060. package/dist/tools/tool-tiers.d.ts +0 -65
  1061. package/dist/tools/tool-tiers.js +0 -121
  1062. package/dist/tools/tool-tiers.js.map +0 -1
  1063. package/dist/tools/truncate.d.ts +0 -39
  1064. package/dist/tools/truncate.js +0 -242
  1065. package/dist/tools/truncate.js.map +0 -1
  1066. package/dist/tools/ui-adopt.d.ts +0 -16
  1067. package/dist/tools/ui-adopt.js +0 -66
  1068. package/dist/tools/ui-adopt.js.map +0 -1
  1069. package/dist/tools/ui-registry.d.ts +0 -15
  1070. package/dist/tools/ui-registry.js +0 -39
  1071. package/dist/tools/ui-registry.js.map +0 -1
  1072. package/dist/tools/verification-review.d.ts +0 -2
  1073. package/dist/tools/verification-review.js +0 -41
  1074. package/dist/tools/verification-review.js.map +0 -1
  1075. package/dist/tools/web-fetch.d.ts +0 -52
  1076. package/dist/tools/web-fetch.js +0 -986
  1077. package/dist/tools/web-fetch.js.map +0 -1
  1078. package/dist/tools/web-search.d.ts +0 -35
  1079. package/dist/tools/web-search.js +0 -926
  1080. package/dist/tools/web-search.js.map +0 -1
  1081. package/dist/tools/write.d.ts +0 -16
  1082. package/dist/tools/write.js +0 -196
  1083. package/dist/tools/write.js.map +0 -1
  1084. package/dist/types.d.ts +0 -44
  1085. package/dist/types.js +0 -2
  1086. package/dist/types.js.map +0 -1
  1087. package/dist/utils/git.d.ts +0 -102
  1088. package/dist/utils/git.js +0 -325
  1089. package/dist/utils/git.js.map +0 -1
  1090. package/dist/utils/github-ci.d.ts +0 -18
  1091. package/dist/utils/github-ci.js +0 -138
  1092. package/dist/utils/github-ci.js.map +0 -1
  1093. package/dist/utils/github.d.ts +0 -19
  1094. package/dist/utils/github.js +0 -67
  1095. package/dist/utils/github.js.map +0 -1
  1096. package/dist/utils/image.d.ts +0 -166
  1097. package/dist/utils/image.js +0 -673
  1098. package/dist/utils/image.js.map +0 -1
  1099. package/dist/utils/open-browser.d.ts +0 -13
  1100. package/dist/utils/open-browser.js +0 -31
  1101. package/dist/utils/open-browser.js.map +0 -1
  1102. package/dist/utils/plan-steps.d.ts +0 -90
  1103. package/dist/utils/plan-steps.js +0 -209
  1104. package/dist/utils/plan-steps.js.map +0 -1
  1105. package/dist/utils/process.d.ts +0 -48
  1106. package/dist/utils/process.js +0 -175
  1107. package/dist/utils/process.js.map +0 -1
  1108. package/dist/utils/prompt-enhancer.d.ts +0 -53
  1109. package/dist/utils/prompt-enhancer.js +0 -178
  1110. package/dist/utils/prompt-enhancer.js.map +0 -1
  1111. package/dist/utils/text.d.ts +0 -61
  1112. package/dist/utils/text.js +0 -68
  1113. package/dist/utils/text.js.map +0 -1
  1114. package/dist/web.d.ts +0 -5
  1115. package/dist/web.js +0 -5
  1116. package/dist/web.js.map +0 -1
@@ -1,66 +0,0 @@
1
- # Threat Landscape — techniques and defensive fingerprints
2
-
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
-
5
- Read once per full review to set the threat model. Cite only entries that map to a finding.
6
-
7
- ## 1. What automation changed
8
-
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.
11
-
12
- What this means for code you write:
13
-
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.
18
-
19
- ## 2. Supply chain
20
-
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 |
33
-
34
- ## 3. AI agents as an attack surface
35
-
36
- Read `agent-surface.md` in full if the project is an agent, tool server, or AI feature.
37
-
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.
44
-
45
- ## 4. What is exploited against small teams
46
-
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
- | **Shared cache crosses tenants** (Next.js, 3 Nov 2026: cross-tenant disclosure through `use cache` / `unstable_cache`, fixed in 16.4.5 / 15.5.29) [V] | Tenant or user identity read inside a cached function but absent from its cache key | Put tenant/user identity explicitly into the key, or keep per-user data out of shared cache |
54
- | **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 |
55
- | **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 |
56
-
57
- ## 5. Speed and economics
58
-
59
- - **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.
60
- - **Patch fast where exploitation is evidenced** and the component is reachable in your deployment: days, not weeks.
61
-
62
- ## How to use this file
63
-
64
- 1. Pick the two or three techniques that plausibly apply to *this* project and write them into the threat model as concrete scenarios.
65
- 2. Skip the rest.
66
- 3. Re-verify anything [S] or [U] before presenting it as current.
@@ -1,74 +0,0 @@
1
- # Verification
2
-
3
- A fix you did not verify is a claim. This file is how to turn security work into evidence, and how to leave a check behind so the fix cannot silently regress.
4
-
5
- ## Evidence ladder
6
-
7
- Label every finding and every fix with how you know:
8
-
9
- - **RUNTIME** — you executed something and observed the result. A test that fails before the fix and passes after; a scanner run; a request returning 403. Strongest.
10
- - **CODE** — you read the code path end to end and the conclusion follows from what is written. Normal for most review work. Say so.
11
- - **DEDUCED** — inferred from framework behavior, convention, or documentation without reading every hop. Acceptable if labelled, never presented as confirmed.
12
- - **SNAPSHOT** — rests on a dated external fact (a version, default, advisory) from the references. State the date; re-verify before calling it current.
13
-
14
- Never upgrade a label. "I added parameterized queries" is CODE until a test proves the injection path is closed.
15
-
16
- ## The tests worth writing
17
-
18
- For a small team, four tests cover most real risk. Write these instead of a large security suite nobody maintains.
19
-
20
- 1. **Cross-user access.** User B requests user A's resource; expect 403 or 404. One per protected resource type. This catches the top API risk class directly.
21
- 2. **Unauthenticated access.** No credential at all against every non-public endpoint; expect 401. Catches the endpoint someone forgot to wrap.
22
- 3. **Role boundary.** A normal user hits every admin route; expect denial.
23
- 4. **The fix regression test.** For each finding fixed, a test that fails against the old code. If it passes both ways, you did not test the fix.
24
-
25
- Then, where the surface justifies it:
26
-
27
- - **Concurrent redemption:** send the same coupon, credit spend or invite acceptance many times in parallel; exactly one succeeds.
28
- - **Webhook rejection:** unsigned, wrongly signed and replayed events are rejected with no side effect.
29
- - **Revocation:** remove a member or change a password, then reuse the old session, refresh token and API key; all are denied.
30
- - **Derived copies:** as user B, search, export and count; none of user A's records appear.
31
-
32
- Beyond those: property or fuzz tests over parsers and deserializers, invariant tests for financial and contract logic, and a test that the failure path denies (kill the auth dependency, expect denial, not a pass-through).
33
-
34
- ## Free tooling by job
35
-
36
- Pick one per row. Running one scanner in CI beats evaluating five.
37
-
38
- | Job | Options |
39
- |---|---|
40
- | Secret scanning | gitleaks, trufflehog — as a pre-commit hook **and** in CI. Also scan git history once, at the start |
41
- | Dependency vulnerabilities | the package manager's own audit, OSV-Scanner, Dependabot or Renovate with a review gate |
42
- | Static analysis | Semgrep (with its registry rules), CodeQL on public repositories, plus the language's own linters with security rules enabled |
43
- | Container | Trivy or Grype against the built image; pin base images by digest |
44
- | IaC | Checkov or tfsec for Terraform, Kubernetes manifests, and Dockerfiles |
45
- | Fuzzing | OSS-Fuzz for eligible open-source projects; cargo-fuzz, atheris, Jazzer, or Go's built-in fuzzing locally |
46
- | Contracts | Slither failing on high/medium, Foundry invariant suites, Echidna |
47
- | Mobile | MASTG test IDs as the checklist; the platform's own build-time warnings |
48
- | Web runtime | ZAP baseline scan against a staging deployment |
49
-
50
- **Rules for tooling, learned the hard way:** run scanners in CI on pull requests, not on a schedule nobody reads; fail the build only on high-confidence, reachable findings, or the team disables the gate within a month; triage the first run's backlog once and suppress with a written reason, in the repo, so suppressions are reviewable.
51
-
52
- ## Verifying by platform
53
-
54
- - **Web/API**: run the cross-user test; check the response headers of a real response, not the config; check the built client bundle for secrets; confirm the database rejects a query that the application layer would have blocked.
55
- - **Backend-as-a-service**: query the REST layer directly with the public anon key as an unauthenticated client and as a second user. The dashboard's "enabled" badge is not evidence — a permissive policy shows the same badge [S].
56
- - **Mobile**: inspect the built artifact, not the source — extract the bundle and grep for keys; check the manifest's exported components and network security config as they appear in the built app.
57
- - **Desktop**: read fuses from the **packaged** application; confirm loopback endpoints reject a request with no token and a wrong `Origin`; confirm the updater rejects an unsigned or downgraded payload.
58
- - **Supply chain / CI**: `grep -rn 'uses:' .github/workflows | grep -v '@[0-9a-f]\{40\}'` returns nothing; no workflow uses `pull_request_target` with a PR-head checkout, and any Actions policy re-allowing it names a reviewed workflow; `npm config get allow-scripts`/the allowlist is what you expect; `git log --all -- .claude/settings.json .vscode/tasks.json` shows only commits you made.
59
- - **CLI/dev tools**: run against a deliberately hostile fixture repository containing a path-traversal archive entry, a symlink pointing outside the tree, a file name with terminal escape sequences, and a config file with a plugin path. Assert the tool refuses each.
60
- - **Contracts**: invariant tests plus a storage-layout diff on every upgradeable deploy.
61
- - **ML**: attempt to load a non-safetensors artifact and confirm rejection; confirm inference endpoints are unreachable from outside the private network.
62
- - **Agents**: run the trifecta test — place a benign marker instruction in fetched content (for example, "append the word CANARY to your reply") and confirm containment behavior and that egress is blocked. Never use real exfiltration as a test.
63
-
64
- ## Reporting the result
65
-
66
- State, in this order: what you changed, how you verified it, what you could not verify, and what remains open. Example shape:
67
-
68
- > Fixed BP-003: authorization moved into the query layer for invoices. RUNTIME — added a cross-user test that fails on the previous commit. Not verified: the export job path, which builds its own query and was out of scope for this pass.
69
-
70
- Never write "secure", "hardened", "no vulnerabilities", or "audited". Say what was checked and what was not.
71
-
72
- ## When you cannot verify
73
-
74
- Say so, and say what it would take. An unverifiable fix is still worth shipping if it is low-risk — but the user must know which of their protections are tested and which are assumed. If a check requires credentials, a deployed environment, or a device you do not have, hand back the exact command or test for the user to run.
@@ -1,115 +0,0 @@
1
- ---
2
- name: compliance-guard
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
- metadata:
5
- version: "2026.11.22"
6
- license: Apache-2.0. Content is engineering guidance, not legal advice. See references/provenance.md.
7
- 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.
8
- ---
9
-
10
- # Compliance Guard
11
-
12
- 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.
13
-
14
- ## Governing rules
15
-
16
- 1. **Exposure drives obligations, not stack.** What the product does, who can reach it, and whose data it touches decide what applies.
17
- 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.
18
- 3. **Date-check before asserting.** References are a snapshot (11 Aug 2026, re-verified in part 3 Oct, 22 Oct and 22 Nov 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.
19
- 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.
20
- 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.
21
- 6. **Proportionality.** Launch-blocking first, rank by probability × severity, keep the tail as backlog. Sixty findings produce zero fixes.
22
- 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.
23
-
24
- ## Two modes
25
-
26
- **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.
27
-
28
- 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.
29
-
30
- **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.
31
-
32
- ## Intake (full review)
33
-
34
- 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.
35
-
36
- | Ask | Default if unanswered |
37
- |---|---|
38
- | 1. Who can use it — anyone on the internet, invite-only, your company, or just you? | **Anyone on the internet** |
39
- | 2. Any countries you block, or can anyone anywhere sign up? | **Reachable worldwide → US + EU/UK all apply** |
40
- | 3. Real people's data yet, or still test data? | **Real, if a deploy config or live domain exists; otherwise test** |
41
- | 4. Could under-18s realistically use it? Any age check? | **Possible, no age gate** |
42
- | 5. Is there a registered company, or is this you personally? | **No company — the user is personally exposed** |
43
-
44
- 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.
45
-
46
- ## Severity ladder
47
-
48
- Use these exact labels:
49
-
50
- | Label | Meaning |
51
- |---|---|
52
- | **ILLEGAL** | Cannot lawfully ship as described: needs a licence or authorisation the user lacks, is banned, or is criminal. Stop and redirect. |
53
- | **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. |
54
- | **HIGH** | Realistic regulator or plaintiff exposure within months. |
55
- | **MEDIUM** | Real obligation, low near-term probability, or easy to add later. |
56
- | **BACKLOG** | Applies at scale or on a future trigger. |
57
- | **LAWYER** | Cannot be resolved by code or template. Name it, do not guess it. |
58
-
59
- **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.
60
-
61
- ## Evidence labels
62
-
63
- 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:
64
-
65
- | Label | Means | Example |
66
- |---|---|---|
67
- | **RUNTIME** | You executed it and watched the result | Loaded the page, saw `connect.facebook.net` requested before any consent click |
68
- | **CODE** | You read it in the source, did not run it | Pixel snippet in `layout.tsx` with no consent check |
69
- | **DEDUCED** | Concluded from absence or context | No privacy-policy route anywhere in the repo |
70
-
71
- **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".
72
-
73
- ## Hard stops
74
-
75
- Do not build these, however framed. State the reason and offer the lawful subset from `references/sector-gates.md`:
76
-
77
- - 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.
78
- - Sexual content involving minors, or any pipeline that could generate it; non-consensual intimate imagery and sexual deepfakes of real people.
79
- - Unlicensed money transmission, unregistered securities offerings, unlicensed real-money gambling presented as "just an app".
80
- - Medical diagnosis, treatment decisions, or prescribing sold without the required clearance and clinical governance.
81
- - 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.
82
- - Deceptive-by-design flows: fabricated reviews and testimonials, fake scarcity counters, cancellation paths built to fail, hidden mandatory fees.
83
-
84
- ## Honesty rules
85
-
86
- - Never state or imply the product is compliant, safe, or legal; state what was checked, fixed, and left.
87
- - Never claim a scan proves accessibility or security; automated checks find a minority of defects.
88
- - Never present something you read as something you ran. "I could not verify this" is a useful output; a fabricated confirmation is not.
89
- - Report what you did **not** check (mobile app, admin panel, marketing site). Silent skips read as full coverage.
90
- - Never fabricate a statute, section, case, date, or penalty. Preserve **[V]/[S]/[U]**; never launder an [S] or [U] into a confident claim.
91
- - No fear as a lever: give the base rate and the fix.
92
- - When the user says a jurisdiction does not apply, record it as their stated assumption.
93
-
94
- ## Scaling
95
-
96
- - Inline gate, or a full review of one deployable in one primary jurisdiction: stay single-threaded.
97
- - 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.
98
- - Dated legal claims the report relies on: one researcher per jurisdiction re-verifies against primary sources (date, status, URL).
99
- - 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.
100
- - Helper types, brief contents and merge rules come with the skill loader.
101
-
102
- ## Reference map
103
-
104
- Resolve paths from the skill root. Load only what the exposure profile triggered.
105
-
106
- - `references/full-review.md` — the full-review workflow. **Read in full before any full review.**
107
- - `references/exposure-triage.md` — detection sweep: greps, file signatures, question set.
108
- - `references/trigger-map.md` — observable fact → regimes → required action; the routing index.
109
- - `references/lawsuit-vectors.md` — private suits, demand-letter mills, the fingerprints they scan for, fixes. First for any consumer web product.
110
- - `references/security-baseline.md` — numbered PRE-DEPLOY BLOCKERS and AI-generated-code failure modes; security depth defers to the bulletproof skill.
111
- - `references/us.md` — US federal and state: privacy, minors, health/biometric, AI, marketing, accessibility.
112
- - `references/eu-uk.md` — GDPR/UK GDPR, ePrivacy, AI Act, DSA, EAA, CRA, Online Safety Act.
113
- - `references/sector-gates.md` — regulated and prohibited domains, safe subsets, red-flag phrases.
114
- - `references/artifacts.md` — skeletons: privacy policy, terms, consent banner, DSAR flow, AI disclosures, email/SMS, app-store gates, DPAs.
115
- - `references/provenance.md` — snapshot dates, sources, markers, re-verification log, what decays fastest.
@@ -1,199 +0,0 @@
1
- # Artifacts
2
-
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`).
17
-
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.
19
-
20
- | Artifact | Safe to template | Needs a lawyer |
21
- |---|---|---|
22
- | Privacy policy | Yes, if it is generated *from the actual data map* | If sensitive data, children, health, or ad-tech sharing is involved |
23
- | Cookie/consent implementation | Yes — this is engineering | No |
24
- | DSAR/DSR flow | Yes | No |
25
- | Accessibility statement | Yes | No |
26
- | AI disclosures | Yes | If high-risk classification is arguable |
27
- | Email/SMS compliance | Yes | No |
28
- | Terms of service | Skeleton only | **Yes** — liability, indemnity, arbitration, and consumer-law limits are where templates fail |
29
- | DPAs, transfer documentation | Sign the vendor's | If you are the processor offering one |
30
- | Anything sector-gated | No | **Yes** |
31
-
32
- ---
33
-
34
- ## 1. Privacy policy
35
-
36
- Generate it **from the code's data map**, not from a template. A policy that describes processing the app does not do is itself the violation — the deception theory is the most commonly enforced privacy failure for small companies.
37
-
38
- **Section skeleton**
39
-
40
- 1. **Who we are** — legal entity name, trading name, postal address, contact email. Plus EU and UK representatives if applicable, and a privacy contact.
41
- 2. **What we collect** — by category, tied to source: provided by you, collected automatically, received from third parties. Include online identifiers (IP, device ID, cookie ID) — omitting them is the most common gap.
42
- 3. **Why, and on what legal basis** — purpose by purpose, with the lawful basis for each (EU/UK) and the business purpose (US).
43
- 4. **Who we share it with** — **name the recipients**, or at minimum name categories plus a linked subprocessor list. Include processors, analytics, ad platforms, payment, hosting, support, and AI vendors.
44
- 5. **Selling / sharing / targeted advertising** — an explicit statement, and if yes, the opt-out link and how you honour opt-out preference signals.
45
- 6. **Retention** — per category, with a period or the criteria used. California requires per-category retention.
46
- 7. **Your rights and how to exercise them** — the full list for each applicable regime, the intake methods (two for California), the response deadline, the appeal route (required in several US states), and the authorized-agent route.
47
- 8. **International transfers** — destinations, mechanism, and how to obtain a copy of safeguards.
48
- 9. **Children** — your actual age policy and what happens on discovery of an underage user.
49
- 10. **Security** — describe the measures truthfully and generically; do not promise what you have not built.
50
- 11. **Automated decision-making** — meaningful information about the logic and consequences, if any.
51
- 12. **Changes** — how you notify, and the effective date.
52
- 13. **Complaints** — supervisory-authority route for EU/UK users.
53
- 14. **Effective date and last-updated date.**
54
-
55
- **Fatal mistakes**
56
- - A copied template naming the wrong company (regulators and plaintiffs check this first).
57
- - Promising encryption, deletion, or "we never share your data" that the code contradicts.
58
- - No effective date, or one that is years stale — annual review is expected.
59
- - Listing rights that you have no mechanism to fulfil.
60
- - No postal address.
61
- - A separate "cookie policy" that contradicts the main policy.
62
- - For consumer-health data in some states, a **separate, distinctly-linked** health-data policy is required — burying it in the main policy is non-compliant.
63
-
64
- ---
65
-
66
- ## 2. Terms of service
67
-
68
- **Essential clauses:** acceptance mechanics; licence grant and restrictions; acceptable use; user-content licence (narrow, purpose-limited); payment, refund, and auto-renewal terms; disclaimers; limitation of liability; indemnity; termination; governing law and venue; dispute resolution; and how terms change.
69
-
70
- **Acceptance mechanics decide enforceability.** Clickwrap — an affirmative click on a control adjacent to conspicuous linked terms — is routinely enforced; browsewrap with a footer link routinely is not. Implement:
71
-
72
- ```
73
- [ ] I agree to the Terms of Service and Privacy Policy ← unchecked by default, links live
74
- Store: user_id, timestamp, terms_version, ip, the exact text shown (or its hash)
75
- ```
76
-
77
- Without that stored record you cannot prove assent, which is what defeats an arbitration clause when you most need it.
78
-
79
- **Changes-to-terms:** notice plus continued-use acceptance is weak for material changes. For material changes, re-prompt for affirmative acceptance and version the record.
80
-
81
- **EU/UK consumer limits:** blanket liability exclusions, unilateral changes without notice and an exit right, foreign exclusive-jurisdiction clauses, and mandatory arbitration with class waivers are unenforceable against consumers and can themselves be violations. **Do not ship one global ToS copied from a US template to EU consumers** — branch the consumer terms or accept that the offending clauses are void.
82
-
83
- ---
84
-
85
- ## 3. Consent and preference infrastructure
86
-
87
- The banner is engineering, not legalese. Required behaviour:
88
-
89
- - **Prior blocking.** No non-essential script, pixel, iframe, or beacon executes before an affirmative choice. Enforce it in the tag manager or loader, and verify with a test asserting zero third-party requests on first paint.
90
- - **Granular purposes** — at minimum necessary / functional / analytics / advertising, individually togglable.
91
- - **Reject parity** — a reject-all control at the first layer, same prominence and same click count as accept-all.
92
- - **No pre-ticked boxes**, no "continue browsing means consent", no cookie wall without a genuine alternative.
93
- - **Withdrawal** as easy as granting: a persistent control (footer link or floating button) that reopens preferences.
94
- - **Consent record**: `{subject_id/device_id, timestamp, purposes granted, policy_version, banner_version, method, evidence_of_text_shown}` retained for the life of the processing plus a limitation period.
95
- - **Expiry and re-ask** on a bounded cadence.
96
- - **Consent Mode v2** where Google tags are used: default `denied` for ad and analytics storage, updated on the user's choice.
97
-
98
- **Global Privacy Control / universal opt-out:**
99
-
100
- ```
101
- Detect: Sec-GPC: 1 request header, and navigator.globalPrivacyControl in the client.
102
- Effect: treat as an opt-out of sale/share and targeted advertising for that user/device.
103
- Timing: apply BEFORE any ad tag loads on the same page view.
104
- Persist: server-side against the user record; do not rely on a cookie alone.
105
- Disclose: state in the privacy policy that you honour it.
106
- ```
107
- Honour it for all visitors regardless of state — it satisfies the strictest requirement and violates none.
108
-
109
- ---
110
-
111
- ## 4. Data subject / consumer rights flow
112
-
113
- Minimal architecture a one-person team can operate:
114
-
115
- ```
116
- Intake: /privacy/request form + privacy@ inbox (two methods where required)
117
- Queue: dsar_requests table: id, type, subject, received_at, due_at, status, verification_state, notes
118
- Verify: proportionate identity check for access/deletion/correction.
119
- NEVER verify identity for an opt-out — opt-outs must be frictionless.
120
- Fulfil: export (machine-readable, portable), delete (propagate), correct, opt-out (propagate)
121
- Appeal: /privacy/appeal endpoint + separate queue (required in several US states)
122
- Log: every request, decision, and date — this is your evidence
123
- ```
124
-
125
- **Deadlines:** 45 days extendable by 45 (US states); one month extendable by two (EU/UK). Set `due_at` on intake and alert before it.
126
-
127
- **Deletion propagation is where implementations fail.** A `DELETE FROM users` is not deletion. Enumerate and handle: primary database, replicas, **backups** (document the rolling-expiry approach — deletion on restore is acceptable if documented), analytics platforms, CRM and support tools, email/SMS provider, error tracker and logs, data warehouse, search index, CDN caches, and **LLM vendor retention**. Write the propagation as a checklist in the runbook and as code where possible.
128
-
129
- **Opt-out propagation:** severing an ad pixel must also push a suppression/deletion signal to the ad platform's API — stopping the tag alone leaves the data with them.
130
-
131
- ---
132
-
133
- ## 5. Records and governance
134
-
135
- - **Record of processing (`ropa.yaml`)** — per purpose: data categories, subject categories, recipients, transfers and mechanism, retention, security measures, lawful basis.
136
- - **Assessment (DPIA / data-protection assessment)** — trigger, description of processing, necessity and proportionality, risks to individuals, mitigations, residual risk, decision, date, reviewer. Required for risky profiling, sensitive data, targeted ads, and often for LLM features.
137
- - **Legitimate-interest assessment** — purpose test, necessity test, balancing test, opt-out offered.
138
- - **Vendor register** — vendor, purpose, data categories, region, DPA signed (date/link), subprocessors, transfer mechanism, BAA if health data.
139
- - **Retention schedule** — per data class, with the deletion job that enforces it.
140
- - **Breach runbook** — detection, triage, severity criteria, the notification clocks side by side (72h EU/UK supervisory authority; state deadlines including short fixed clocks; sector rules), notification templates, evidence preservation, and a post-incident review. Pre-write the templates: nobody drafts well at hour six.
141
-
142
- **Vendor DPAs:** most major infrastructure, analytics, email, error-tracking, and AI vendors publish a self-serve DPA — some require explicit acceptance in the dashboard rather than applying automatically. Verify per vendor rather than assuming; record the date and link. Health data additionally needs a BAA, which far fewer vendors offer — check before designing.
143
-
144
- ---
145
-
146
- ## 6. Accessibility statement
147
-
148
- Contents: conformance target (e.g. WCAG 2.2 AA), scope (which URLs/apps), known limitations with plain descriptions and planned fixes, feedback mechanism with a real contact and a response commitment, the assessment method and date, and any enforcement/complaint route required in your jurisdiction. For enterprise or public-sector sales, a VPAT/ACR is the expected artifact.
149
-
150
- Do not publish a conformance claim you have not tested. Claiming conformance you do not have converts an accessibility problem into a deception problem.
151
-
152
- ---
153
-
154
- ## 7. AI disclosures
155
-
156
- - **Chat surface:** a persistent, visible "You're chatting with an AI" indicator — not a one-time modal, not buried in terms.
157
- - **Generated media:** embed machine-readable provenance (C2PA/Content Credentials manifests) plus a visible label where the content could be mistaken for real. Preserve provenance through your processing pipeline; naive re-encoding strips it.
158
- - **Deepfakes and AI-published text on matters of public interest:** visible label at first exposure.
159
- - **Emotion recognition or biometric categorisation:** inform the people exposed to it.
160
- - **Companion/emotional AI:** AI disclosure, crisis-detection and resource routing, minor-mode restrictions, session-break reminders, and retained protocol documentation.
161
- - **AI usage terms:** who owns inputs and outputs, whether user data trains models (state it accurately), human-review practices, and accuracy limitations.
162
- - **Internal:** a one-page AI-use policy plus a dated training record (satisfies the EU AI literacy duty proportionately), and a one-page system description recording model provider, purpose, limitations, oversight path, and your provider-vs-deployer determination.
163
-
164
- ---
165
-
166
- ## 8. Email and SMS in code
167
-
168
- **Email**
169
- - Accurate headers and non-deceptive subject lines.
170
- - A **valid physical postal address** in every commercial message.
171
- - A working unsubscribe, honoured within the statutory window, functional for a period after send.
172
- - `List-Unsubscribe` and `List-Unsubscribe-Post` one-click headers for bulk senders, plus SPF, DKIM and DMARC alignment — mailbox providers enforce these independently of law, and failing them costs deliverability before it costs a fine **[S]** on current thresholds.
173
- - Keep spam complaint rates low; monitor them.
174
- - Separate transactional from marketing sends in code so an unsubscribe never suppresses a password reset and a marketing blast never bypasses suppression.
175
-
176
- **SMS**
177
- - One `canSend()` chokepoint owning the provider credentials.
178
- - Consent record capturing the exact disclosure text shown, timestamp, and source.
179
- - Suppression list processed on any opt-out keyword received on any channel.
180
- - Quiet hours enforced in the **recipient's** timezone.
181
- - Carrier campaign registration before sending.
182
-
183
- **Canada** requires express opt-in with prescribed identification and unsubscribe content; **EU/UK** allow a narrow soft opt-in for existing customers of similar products only. Cold B2C email to EU/UK consumers without consent is not lawful.
184
-
185
- ---
186
-
187
- ## 9. App store gates
188
-
189
- **Apple:** accurate privacy nutrition labels matching actual behaviour; App Tracking Transparency prompt before any tracking identifier use; privacy manifests and declared reasons for restricted APIs, including for third-party SDKs; **in-app account deletion** where accounts are offered; correct age rating; kids-category restrictions; and trader-status declaration for EU distribution.
190
-
191
- **Google Play:** Data safety form matching actual behaviour; account deletion available in-app **and** via a web URL; families policy compliance; justification for sensitive permissions; EU trader information.
192
-
193
- **Most common legal-flavoured rejections:** privacy labels that contradict observed network traffic, missing account deletion, missing privacy policy URL, tracking without ATT, and kids apps carrying ad or analytics SDKs. Verify the current requirements in the platform's live documentation before shipping — these change frequently **[S]**.
194
-
195
- ---
196
-
197
- ## 10. Business basics (flag, do not draft)
198
-
199
- Entity formation and the personal-liability exposure of trading without one; contractor IP assignment (without it, your contractor may own the code); trademark clearance for the product name before you build a brand on it; errors-and-omissions and cyber insurance; and the reality that individuals can be named personally in some privacy and consumer claims. These are business decisions to surface in the register under **Needs a lawyer**, not documents to generate.