@kenkaiiii/ggcoder 6.3.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.
- package/README.md +9 -8
- package/dist/app-sidecar/app-settings.d.ts +1 -1
- package/dist/app-sidecar/app-settings.js +3 -4
- package/dist/app-sidecar/app-settings.js.map +1 -1
- package/dist/app-sidecar/attachments.js +1 -1
- package/dist/app-sidecar/attachments.js.map +1 -1
- package/dist/app-sidecar/auth-routes.js +2 -5
- package/dist/app-sidecar/auth-routes.js.map +1 -1
- package/dist/app-sidecar/autopilot-runner.d.ts +8 -8
- package/dist/app-sidecar/autopilot-runner.js +8 -8
- package/dist/app-sidecar/autopilot-runner.js.map +1 -1
- package/dist/app-sidecar/branch-routes.d.ts +8 -1
- package/dist/app-sidecar/branch-routes.js +154 -2
- package/dist/app-sidecar/branch-routes.js.map +1 -1
- package/dist/app-sidecar/detached-sessions.d.ts +7 -10
- package/dist/app-sidecar/detached-sessions.js +6 -2
- package/dist/app-sidecar/detached-sessions.js.map +1 -1
- package/dist/app-sidecar/file-search.js +1 -1
- package/dist/app-sidecar/file-search.js.map +1 -1
- package/dist/app-sidecar/git-branches.d.ts +18 -1
- package/dist/app-sidecar/git-branches.js +24 -6
- package/dist/app-sidecar/git-branches.js.map +1 -1
- package/dist/app-sidecar/git-ship.d.ts +42 -0
- package/dist/app-sidecar/git-ship.js +349 -0
- package/dist/app-sidecar/git-ship.js.map +1 -0
- package/dist/app-sidecar/git-target.d.ts +2 -2
- package/dist/app-sidecar/git-target.js +2 -2
- package/dist/app-sidecar/git-target.js.map +1 -1
- package/dist/app-sidecar/goal-routes.d.ts +1 -1
- package/dist/app-sidecar/goal-routes.js +5 -6
- package/dist/app-sidecar/goal-routes.js.map +1 -1
- package/dist/app-sidecar/hf-pull-manager.d.ts +5 -4
- package/dist/app-sidecar/hf-pull-manager.js +1 -1
- package/dist/app-sidecar/hf-pull-manager.js.map +1 -1
- package/dist/app-sidecar/history-routes.js +6 -6
- package/dist/app-sidecar/history-routes.js.map +1 -1
- package/dist/app-sidecar/history.d.ts +2 -2
- package/dist/app-sidecar/integration-routes.js +4 -6
- package/dist/app-sidecar/integration-routes.js.map +1 -1
- package/dist/app-sidecar/keep-awake.d.ts +1 -1
- package/dist/app-sidecar/keep-awake.js +1 -1
- package/dist/app-sidecar/keep-awake.js.map +1 -1
- package/dist/app-sidecar/ken-context.d.ts +2 -2
- package/dist/app-sidecar/ken-context.js +1 -1
- package/dist/app-sidecar/ken-context.js.map +1 -1
- package/dist/app-sidecar/live-preview/dev-url.d.ts +1 -1
- package/dist/app-sidecar/live-preview/manager.d.ts +2 -14
- package/dist/app-sidecar/live-preview/manager.js.map +1 -1
- package/dist/app-sidecar/live-preview/pages.d.ts +21 -1
- package/dist/app-sidecar/live-preview/pages.js +138 -4
- package/dist/app-sidecar/live-preview/pages.js.map +1 -1
- package/dist/app-sidecar/live-preview/routes.d.ts +7 -3
- package/dist/app-sidecar/live-preview/routes.js +32 -2
- package/dist/app-sidecar/live-preview/routes.js.map +1 -1
- package/dist/app-sidecar/live-preview/servers.js +1 -1
- package/dist/app-sidecar/live-preview/servers.js.map +1 -1
- package/dist/app-sidecar/mcp-routes.js +2 -2
- package/dist/app-sidecar/mcp-routes.js.map +1 -1
- package/dist/app-sidecar/mcp-rows.d.ts +3 -15
- package/dist/app-sidecar/mcp-rows.js +7 -2
- package/dist/app-sidecar/mcp-rows.js.map +1 -1
- package/dist/app-sidecar/mcp-shell-command.d.ts +1 -1
- package/dist/app-sidecar/mcp-shell-command.js +3 -3
- package/dist/app-sidecar/mcp-shell-command.js.map +1 -1
- package/dist/app-sidecar/mcp-sync.d.ts +2 -2
- package/dist/app-sidecar/mcp-sync.js +3 -3
- package/dist/app-sidecar/mcp-sync.js.map +1 -1
- package/dist/app-sidecar/progress-manager.d.ts +1 -1
- package/dist/app-sidecar/progress-manager.js +6 -6
- package/dist/app-sidecar/progress-manager.js.map +1 -1
- package/dist/app-sidecar/prompt-routes.js +5 -5
- package/dist/app-sidecar/prompt-routes.js.map +1 -1
- package/dist/app-sidecar/repo-polls.d.ts +3 -3
- package/dist/app-sidecar/repo-polls.js +4 -4
- package/dist/app-sidecar/repo-polls.js.map +1 -1
- package/dist/app-sidecar/route-context.d.ts +17 -17
- package/dist/app-sidecar/run-control-routes.js +2 -5
- package/dist/app-sidecar/run-control-routes.js.map +1 -1
- package/dist/app-sidecar/session-file-routes.d.ts +1 -1
- package/dist/app-sidecar/session-file-routes.js +2 -2
- package/dist/app-sidecar/session-file-routes.js.map +1 -1
- package/dist/app-sidecar/session-routes.js +3 -4
- package/dist/app-sidecar/session-routes.js.map +1 -1
- package/dist/app-sidecar/session-types.d.ts +11 -13
- package/dist/app-sidecar/shell-routes.js +1 -1
- package/dist/app-sidecar/shell-routes.js.map +1 -1
- package/dist/app-sidecar/shell-runs.js +2 -2
- package/dist/app-sidecar/shell-runs.js.map +1 -1
- package/dist/app-sidecar/shell-suggestions.d.ts +2 -8
- package/dist/app-sidecar/shell-suggestions.js +1 -1
- package/dist/app-sidecar/shell-suggestions.js.map +1 -1
- package/dist/app-sidecar/task-routes.js +5 -5
- package/dist/app-sidecar/task-routes.js.map +1 -1
- package/dist/app-sidecar/trophy-manager.d.ts +2 -2
- package/dist/app-sidecar/trophy-manager.js +3 -3
- package/dist/app-sidecar/trophy-manager.js.map +1 -1
- package/dist/app-sidecar/usage.d.ts +1 -1
- package/dist/app-sidecar/usage.js +3 -2
- package/dist/app-sidecar/usage.js.map +1 -1
- package/dist/app-sidecar/workspace-routes.js +4 -4
- package/dist/app-sidecar/workspace-routes.js.map +1 -1
- package/dist/app-sidecar/worktrees.js +1 -1
- package/dist/app-sidecar/worktrees.js.map +1 -1
- package/dist/app-sidecar-sessions.d.ts +2 -5
- package/dist/app-sidecar-sessions.js +1 -1
- package/dist/app-sidecar-sessions.js.map +1 -1
- package/dist/app-sidecar.d.ts +1 -1
- package/dist/app-sidecar.js +54 -45
- package/dist/app-sidecar.js.map +1 -1
- package/dist/chat-agents/general.d.ts +1 -1
- package/dist/chat-agents/index.d.ts +1 -1
- package/dist/chat-agents/jiwa.d.ts +2 -9
- package/dist/chat-agents/jiwa.js +1 -0
- package/dist/chat-agents/jiwa.js.map +1 -1
- package/dist/chat-agents/memory.d.ts +2 -9
- package/dist/chat-agents/memory.js +1 -0
- package/dist/chat-agents/memory.js.map +1 -1
- package/dist/chat-agents/research.d.ts +1 -1
- package/dist/chat-agents/shared.d.ts +1 -1
- package/dist/chat-agents/shared.js +1 -1
- package/dist/chat-agents/shared.js.map +1 -1
- package/dist/chat-agents/therapist.d.ts +1 -1
- package/dist/chat-agents/types.d.ts +2 -1
- package/dist/chat-agents/types.js +6 -1
- package/dist/chat-agents/types.js.map +1 -1
- package/dist/cli/auth.js +3 -6
- package/dist/cli/auth.js.map +1 -1
- package/dist/cli/mcp.js +4 -3
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +26 -27
- package/dist/cli.js.map +1 -1
- package/dist/goals-agent/goal-team.d.ts +1 -1
- package/dist/goals-agent/goals-agent.d.ts +3 -3
- package/dist/goals-agent/goals-agent.js +5 -5
- package/dist/goals-agent/goals-agent.js.map +1 -1
- package/dist/hf-pull.d.ts +2 -1
- package/dist/hf-pull.js +0 -1
- package/dist/hf-pull.js.map +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/dist/modes/acp-autopilot.js +3 -3
- package/dist/modes/acp-autopilot.js.map +1 -1
- package/dist/modes/acp-goals.d.ts +2 -2
- package/dist/modes/acp-goals.js +3 -3
- package/dist/modes/acp-goals.js.map +1 -1
- package/dist/modes/acp-mode.d.ts +6 -6
- package/dist/modes/acp-mode.js +22 -23
- package/dist/modes/acp-mode.js.map +1 -1
- package/dist/modes/agent-home-mode.js +7 -8
- package/dist/modes/agent-home-mode.js.map +1 -1
- package/dist/modes/json-mode.js +4 -4
- package/dist/modes/json-mode.js.map +1 -1
- package/dist/modes/print-mode.js +4 -3
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc-mode.js +2 -2
- package/dist/modes/rpc-mode.js.map +1 -1
- package/dist/modes/serve-mode.js +10 -11
- package/dist/modes/serve-mode.js.map +1 -1
- package/dist/modes/subagent-worker-mode.d.ts +1 -1
- package/dist/modes/subagent-worker-mode.js +8 -8
- package/dist/modes/subagent-worker-mode.js.map +1 -1
- package/dist/motion-agent/motion-agent.d.ts +3 -2
- package/dist/motion-agent/motion-agent.js +3 -2
- package/dist/motion-agent/motion-agent.js.map +1 -1
- package/dist/motion-agent/motion-bundle.d.ts +18 -0
- package/dist/motion-agent/motion-bundle.js +34 -0
- package/dist/motion-agent/motion-bundle.js.map +1 -0
- package/dist/subagent-entry-path.d.ts +1 -0
- package/dist/subagent-entry-path.js +13 -0
- package/dist/subagent-entry-path.js.map +1 -0
- package/dist/subagent-entry.d.ts +1 -1
- package/dist/subagent-entry.js +2 -1
- package/dist/subagent-entry.js.map +1 -1
- package/dist/ui/App.d.ts +8 -8
- package/dist/ui/App.js +20 -21
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/app-items.d.ts +1 -1
- package/dist/ui/components/BackgroundTasksBar.d.ts +1 -1
- package/dist/ui/components/Banner.js +1 -1
- package/dist/ui/components/Banner.js.map +1 -1
- package/dist/ui/components/ChatFooterPane.d.ts +1 -1
- package/dist/ui/components/ChatScreen.d.ts +4 -4
- package/dist/ui/components/Footer.d.ts +1 -1
- package/dist/ui/components/Footer.js +1 -1
- package/dist/ui/components/Footer.js.map +1 -1
- package/dist/ui/components/FooterStatusRow.d.ts +1 -1
- package/dist/ui/components/InputArea.d.ts +2 -2
- package/dist/ui/components/InputArea.js +2 -2
- package/dist/ui/components/InputArea.js.map +1 -1
- package/dist/ui/components/ModelSelector.js +1 -1
- package/dist/ui/components/ModelSelector.js.map +1 -1
- package/dist/ui/components/RewindOverlay.d.ts +1 -1
- package/dist/ui/components/RewindOverlay.js.map +1 -1
- package/dist/ui/components/SessionSelector.d.ts +1 -1
- package/dist/ui/components/SettingsSelector.d.ts +1 -1
- package/dist/ui/components/SkillsOverlay.js +2 -2
- package/dist/ui/components/SkillsOverlay.js.map +1 -1
- package/dist/ui/components/StreamingArea.js +1 -1
- package/dist/ui/components/StreamingArea.js.map +1 -1
- package/dist/ui/components/TaskPickerMenu.d.ts +1 -1
- package/dist/ui/components/ToolExecution.js +1 -1
- package/dist/ui/components/ToolExecution.js.map +1 -1
- package/dist/ui/error-item.js +2 -2
- package/dist/ui/error-item.js.map +1 -1
- package/dist/ui/hooks/useAgentLoop.d.ts +2 -2
- package/dist/ui/hooks/useAgentLoop.js +8 -8
- package/dist/ui/hooks/useAgentLoop.js.map +1 -1
- package/dist/ui/hooks/useChatLayoutMeasurements.d.ts +1 -1
- package/dist/ui/hooks/useContextCompaction.d.ts +3 -3
- package/dist/ui/hooks/useContextCompaction.js +6 -7
- package/dist/ui/hooks/useContextCompaction.js.map +1 -1
- package/dist/ui/hooks/useModeState.d.ts +2 -2
- package/dist/ui/hooks/useModeState.js +2 -2
- package/dist/ui/hooks/useModeState.js.map +1 -1
- package/dist/ui/hooks/useSessionPersistence.d.ts +1 -1
- package/dist/ui/hooks/useSessionPersistence.js +3 -3
- package/dist/ui/hooks/useSessionPersistence.js.map +1 -1
- package/dist/ui/hooks/useTaskPickerController.d.ts +1 -1
- package/dist/ui/hooks/useTaskPickerController.js +1 -1
- package/dist/ui/hooks/useTaskPickerController.js.map +1 -1
- package/dist/ui/hooks/useTranscriptHistory.d.ts +1 -1
- package/dist/ui/item-helpers.js +1 -1
- package/dist/ui/item-helpers.js.map +1 -1
- package/dist/ui/language-pack-update.d.ts +1 -1
- package/dist/ui/language-pack-update.js +1 -1
- package/dist/ui/language-pack-update.js.map +1 -1
- package/dist/ui/login.js +1 -1
- package/dist/ui/login.js.map +1 -1
- package/dist/ui/mcp.d.ts +1 -1
- package/dist/ui/prompt-routing.d.ts +3 -3
- package/dist/ui/prompt-routing.js +3 -3
- package/dist/ui/prompt-routing.js.map +1 -1
- package/dist/ui/render.d.ts +8 -8
- package/dist/ui/sessions.js +1 -1
- package/dist/ui/sessions.js.map +1 -1
- package/dist/ui/stores/taskbar-store.d.ts +1 -1
- package/dist/ui/stores/taskbar-store.js.map +1 -1
- package/dist/ui/submit-prompt-command.d.ts +2 -2
- package/dist/ui/submit-prompt-command.js +2 -3
- package/dist/ui/submit-prompt-command.js.map +1 -1
- package/dist/ui/terminal-history-status-renderers.d.ts +1 -1
- package/dist/ui/terminal-history.js +2 -3
- package/dist/ui/terminal-history.js.map +1 -1
- package/dist/ui/theme/theme.d.ts +2 -1
- package/dist/ui/theme/theme.js.map +1 -1
- package/dist/ui/thinking-level.d.ts +1 -1
- package/dist/ui/thinking-level.js +1 -1
- package/dist/ui/thinking-level.js.map +1 -1
- package/dist/ui/tool-line-summary.js +1 -1
- package/dist/ui/tool-line-summary.js.map +1 -1
- package/dist/ui/transcript/presentation.js +1 -1
- package/dist/ui/transcript/presentation.js.map +1 -1
- package/dist/ui/utils/text-utils.js +1 -1
- package/dist/ui/utils/text-utils.js.map +1 -1
- package/dist/utils/git-overview.d.ts +2 -23
- package/dist/utils/git-overview.js +8 -1
- package/dist/utils/git-overview.js.map +1 -1
- package/package.json +13 -103
- package/assets/skills/bulletproof/SKILL.md +0 -132
- package/assets/skills/bulletproof/references/agent-surface.md +0 -113
- package/assets/skills/bulletproof/references/attack-classes.md +0 -226
- package/assets/skills/bulletproof/references/audit-protocol.md +0 -232
- package/assets/skills/bulletproof/references/platform-playbooks.md +0 -196
- package/assets/skills/bulletproof/references/provenance.md +0 -146
- package/assets/skills/bulletproof/references/secure-defaults.md +0 -137
- package/assets/skills/bulletproof/references/supply-chain.md +0 -84
- package/assets/skills/bulletproof/references/threat-landscape.md +0 -66
- package/assets/skills/bulletproof/references/verification.md +0 -74
- package/assets/skills/compliance-guard/SKILL.md +0 -115
- package/assets/skills/compliance-guard/references/artifacts.md +0 -199
- package/assets/skills/compliance-guard/references/eu-uk.md +0 -162
- package/assets/skills/compliance-guard/references/exposure-triage.md +0 -177
- package/assets/skills/compliance-guard/references/full-review.md +0 -155
- package/assets/skills/compliance-guard/references/lawsuit-vectors.md +0 -153
- package/assets/skills/compliance-guard/references/provenance.md +0 -135
- package/assets/skills/compliance-guard/references/sector-gates.md +0 -187
- package/assets/skills/compliance-guard/references/security-baseline.md +0 -117
- package/assets/skills/compliance-guard/references/trigger-map.md +0 -177
- package/assets/skills/compliance-guard/references/us.md +0 -194
- package/assets/skills/durable/SKILL.md +0 -114
- package/assets/skills/durable/references/agent-db-safety.md +0 -76
- package/assets/skills/durable/references/backups-and-runtime.md +0 -93
- package/assets/skills/durable/references/migrations-and-schema.md +0 -87
- package/assets/skills/gg-guide/SKILL.md +0 -43
- package/assets/skills/gg-guide/references/chat-motion-goals.md +0 -217
- package/assets/skills/gg-guide/references/checklist-and-safety.md +0 -177
- package/assets/skills/gg-guide/references/code-mode.md +0 -266
- package/assets/skills/gg-guide/references/getting-started.md +0 -291
- package/assets/skills/gg-guide/references/ken-and-autopilot.md +0 -172
- package/assets/skills/gg-guide/references/mcp-and-skills.md +0 -204
- package/assets/skills/gg-guide/references/models-and-sign-in.md +0 -200
- package/assets/skills/gg-guide/references/sessions-and-history.md +0 -213
- package/assets/skills/gg-guide/references/settings.md +0 -193
- package/assets/skills/gg-guide/references/troubleshooting-and-data.md +0 -186
- package/assets/skills/lean/SKILL.md +0 -117
- package/assets/skills/lean/references/memory-and-processes.md +0 -99
- package/assets/skills/lean/references/playbooks.md +0 -134
- package/dist/app-error.d.ts +0 -22
- package/dist/app-error.js +0 -41
- package/dist/app-error.js.map +0 -1
- package/dist/config.d.ts +0 -90
- package/dist/config.js +0 -240
- package/dist/config.js.map +0 -1
- package/dist/core/acceptance-checks.d.ts +0 -48
- package/dist/core/acceptance-checks.js +0 -151
- package/dist/core/acceptance-checks.js.map +0 -1
- package/dist/core/action-threats.d.ts +0 -68
- package/dist/core/action-threats.js +0 -894
- package/dist/core/action-threats.js.map +0 -1
- package/dist/core/agent-notifications.d.ts +0 -79
- package/dist/core/agent-notifications.js +0 -125
- package/dist/core/agent-notifications.js.map +0 -1
- package/dist/core/agent-session/helpers.d.ts +0 -26
- package/dist/core/agent-session/helpers.js +0 -47
- package/dist/core/agent-session/helpers.js.map +0 -1
- package/dist/core/agent-session/mcp-tools.d.ts +0 -87
- package/dist/core/agent-session/mcp-tools.js +0 -227
- package/dist/core/agent-session/mcp-tools.js.map +0 -1
- package/dist/core/agent-session/run-loop-monitor.d.ts +0 -63
- package/dist/core/agent-session/run-loop-monitor.js +0 -164
- package/dist/core/agent-session/run-loop-monitor.js.map +0 -1
- package/dist/core/agent-session/transcript-markers.d.ts +0 -57
- package/dist/core/agent-session/transcript-markers.js +0 -166
- package/dist/core/agent-session/transcript-markers.js.map +0 -1
- package/dist/core/agent-session/verification-tracker.d.ts +0 -71
- package/dist/core/agent-session/verification-tracker.js +0 -295
- package/dist/core/agent-session/verification-tracker.js.map +0 -1
- package/dist/core/agent-session.d.ts +0 -1398
- package/dist/core/agent-session.js +0 -5123
- package/dist/core/agent-session.js.map +0 -1
- package/dist/core/agents.d.ts +0 -63
- package/dist/core/agents.js +0 -160
- package/dist/core/agents.js.map +0 -1
- package/dist/core/ask-user.d.ts +0 -163
- package/dist/core/ask-user.js +0 -178
- package/dist/core/ask-user.js.map +0 -1
- package/dist/core/auth/index.d.ts +0 -11
- package/dist/core/auth/index.js +0 -11
- package/dist/core/auth/index.js.map +0 -1
- package/dist/core/auth-providers.d.ts +0 -2
- package/dist/core/auth-providers.js +0 -5
- package/dist/core/auth-providers.js.map +0 -1
- package/dist/core/auth-storage.d.ts +0 -1
- package/dist/core/auth-storage.js +0 -4
- package/dist/core/auth-storage.js.map +0 -1
- package/dist/core/auto-update.d.ts +0 -6
- package/dist/core/auto-update.js +0 -15
- package/dist/core/auto-update.js.map +0 -1
- package/dist/core/autopilot-cycle.d.ts +0 -127
- package/dist/core/autopilot-cycle.js +0 -182
- package/dist/core/autopilot-cycle.js.map +0 -1
- package/dist/core/autopilot-gate.d.ts +0 -106
- package/dist/core/autopilot-gate.js +0 -192
- package/dist/core/autopilot-gate.js.map +0 -1
- package/dist/core/autopilot-verdict.d.ts +0 -55
- package/dist/core/autopilot-verdict.js +0 -226
- package/dist/core/autopilot-verdict.js.map +0 -1
- package/dist/core/blocked-packages-file.d.ts +0 -33
- package/dist/core/blocked-packages-file.js +0 -274
- package/dist/core/blocked-packages-file.js.map +0 -1
- package/dist/core/bundled-agents.d.ts +0 -2
- package/dist/core/bundled-agents.js +0 -253
- package/dist/core/bundled-agents.js.map +0 -1
- package/dist/core/cache-diagnostics.d.ts +0 -72
- package/dist/core/cache-diagnostics.js +0 -200
- package/dist/core/cache-diagnostics.js.map +0 -1
- package/dist/core/cache-expiry.d.ts +0 -89
- package/dist/core/cache-expiry.js +0 -117
- package/dist/core/cache-expiry.js.map +0 -1
- package/dist/core/checklist-detection.d.ts +0 -11
- package/dist/core/checklist-detection.js +0 -238
- package/dist/core/checklist-detection.js.map +0 -1
- package/dist/core/checklist-git.d.ts +0 -19
- package/dist/core/checklist-git.js +0 -54
- package/dist/core/checklist-git.js.map +0 -1
- package/dist/core/checklist-items.d.ts +0 -181
- package/dist/core/checklist-items.js +0 -230
- package/dist/core/checklist-items.js.map +0 -1
- package/dist/core/checklist-prompt.d.ts +0 -14
- package/dist/core/checklist-prompt.js +0 -64
- package/dist/core/checklist-prompt.js.map +0 -1
- package/dist/core/checklist-snapshot.d.ts +0 -17
- package/dist/core/checklist-snapshot.js +0 -46
- package/dist/core/checklist-snapshot.js.map +0 -1
- package/dist/core/checklist-store.d.ts +0 -63
- package/dist/core/checklist-store.js +0 -273
- package/dist/core/checklist-store.js.map +0 -1
- package/dist/core/checkout-record.d.ts +0 -22
- package/dist/core/checkout-record.js +0 -68
- package/dist/core/checkout-record.js.map +0 -1
- package/dist/core/checkpoint-store.d.ts +0 -109
- package/dist/core/checkpoint-store.js +0 -260
- package/dist/core/checkpoint-store.js.map +0 -1
- package/dist/core/claude-code/complete.d.ts +0 -35
- package/dist/core/claude-code/complete.js +0 -125
- package/dist/core/claude-code/complete.js.map +0 -1
- package/dist/core/claude-code/events.d.ts +0 -67
- package/dist/core/claude-code/events.js +0 -460
- package/dist/core/claude-code/events.js.map +0 -1
- package/dist/core/claude-code/live-session.d.ts +0 -94
- package/dist/core/claude-code/live-session.js +0 -525
- package/dist/core/claude-code/live-session.js.map +0 -1
- package/dist/core/claude-code/loop.d.ts +0 -9
- package/dist/core/claude-code/loop.js +0 -15
- package/dist/core/claude-code/loop.js.map +0 -1
- package/dist/core/claude-code/session-sync.d.ts +0 -28
- package/dist/core/claude-code/session-sync.js +0 -53
- package/dist/core/claude-code/session-sync.js.map +0 -1
- package/dist/core/claude-code/tool-bridge.d.ts +0 -49
- package/dist/core/claude-code/tool-bridge.js +0 -352
- package/dist/core/claude-code/tool-bridge.js.map +0 -1
- package/dist/core/claude-code/transcripts.d.ts +0 -39
- package/dist/core/claude-code/transcripts.js +0 -195
- package/dist/core/claude-code/transcripts.js.map +0 -1
- package/dist/core/code-retrieval-chunkers.d.ts +0 -26
- package/dist/core/code-retrieval-chunkers.js +0 -264
- package/dist/core/code-retrieval-chunkers.js.map +0 -1
- package/dist/core/code-retrieval.d.ts +0 -18
- package/dist/core/code-retrieval.js +0 -124
- package/dist/core/code-retrieval.js.map +0 -1
- package/dist/core/codex-request-shape.d.ts +0 -7
- package/dist/core/codex-request-shape.js +0 -19
- package/dist/core/codex-request-shape.js.map +0 -1
- package/dist/core/compaction/active-context.d.ts +0 -16
- package/dist/core/compaction/active-context.js +0 -20
- package/dist/core/compaction/active-context.js.map +0 -1
- package/dist/core/compaction/compactor.d.ts +0 -281
- package/dist/core/compaction/compactor.js +0 -1452
- package/dist/core/compaction/compactor.js.map +0 -1
- package/dist/core/compaction/plan-step-policy.d.ts +0 -46
- package/dist/core/compaction/plan-step-policy.js +0 -57
- package/dist/core/compaction/plan-step-policy.js.map +0 -1
- package/dist/core/compaction/policy.d.ts +0 -36
- package/dist/core/compaction/policy.js +0 -144
- package/dist/core/compaction/policy.js.map +0 -1
- package/dist/core/compaction/query-aware-selector.d.ts +0 -32
- package/dist/core/compaction/query-aware-selector.js +0 -202
- package/dist/core/compaction/query-aware-selector.js.map +0 -1
- package/dist/core/compaction/token-estimator.d.ts +0 -36
- package/dist/core/compaction/token-estimator.js +0 -180
- package/dist/core/compaction/token-estimator.js.map +0 -1
- package/dist/core/compaction/tool-result-pruner.d.ts +0 -90
- package/dist/core/compaction/tool-result-pruner.js +0 -238
- package/dist/core/compaction/tool-result-pruner.js.map +0 -1
- package/dist/core/completion-review.d.ts +0 -24
- package/dist/core/completion-review.js +0 -2
- package/dist/core/completion-review.js.map +0 -1
- package/dist/core/context-files.d.ts +0 -8
- package/dist/core/context-files.js +0 -46
- package/dist/core/context-files.js.map +0 -1
- package/dist/core/context-limits.d.ts +0 -40
- package/dist/core/context-limits.js +0 -43
- package/dist/core/context-limits.js.map +0 -1
- package/dist/core/custom-commands.d.ts +0 -18
- package/dist/core/custom-commands.js +0 -57
- package/dist/core/custom-commands.js.map +0 -1
- package/dist/core/destructive-git-guard.d.ts +0 -113
- package/dist/core/destructive-git-guard.js +0 -874
- package/dist/core/destructive-git-guard.js.map +0 -1
- package/dist/core/encode-cwd.d.ts +0 -41
- package/dist/core/encode-cwd.js +0 -53
- package/dist/core/encode-cwd.js.map +0 -1
- package/dist/core/env-delta.d.ts +0 -34
- package/dist/core/env-delta.js +0 -84
- package/dist/core/env-delta.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -178
- package/dist/core/event-bus.js +0 -171
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/extensions/loader.d.ts +0 -7
- package/dist/core/extensions/loader.js +0 -68
- package/dist/core/extensions/loader.js.map +0 -1
- package/dist/core/extensions/plugin-bundles.d.ts +0 -13
- package/dist/core/extensions/plugin-bundles.js +0 -45
- package/dist/core/extensions/plugin-bundles.js.map +0 -1
- package/dist/core/extensions/types.d.ts +0 -18
- package/dist/core/extensions/types.js +0 -2
- package/dist/core/extensions/types.js.map +0 -1
- package/dist/core/foreign-session-import.d.ts +0 -119
- package/dist/core/foreign-session-import.js +0 -598
- package/dist/core/foreign-session-import.js.map +0 -1
- package/dist/core/foreign-transcript-blocks.d.ts +0 -50
- package/dist/core/foreign-transcript-blocks.js +0 -151
- package/dist/core/foreign-transcript-blocks.js.map +0 -1
- package/dist/core/frontmatter.d.ts +0 -22
- package/dist/core/frontmatter.js +0 -90
- package/dist/core/frontmatter.js.map +0 -1
- package/dist/core/goal-run-marker.d.ts +0 -32
- package/dist/core/goal-run-marker.js +0 -178
- package/dist/core/goal-run-marker.js.map +0 -1
- package/dist/core/goal-summary.d.ts +0 -32
- package/dist/core/goal-summary.js +0 -110
- package/dist/core/goal-summary.js.map +0 -1
- package/dist/core/goals-store.d.ts +0 -215
- package/dist/core/goals-store.js +0 -577
- package/dist/core/goals-store.js.map +0 -1
- package/dist/core/hashline.d.ts +0 -51
- package/dist/core/hashline.js +0 -76
- package/dist/core/hashline.js.map +0 -1
- package/dist/core/idle-wake.d.ts +0 -62
- package/dist/core/idle-wake.js +0 -103
- package/dist/core/idle-wake.js.map +0 -1
- package/dist/core/index.d.ts +0 -14
- package/dist/core/index.js +0 -14
- package/dist/core/index.js.map +0 -1
- package/dist/core/injection-detect.d.ts +0 -39
- package/dist/core/injection-detect.js +0 -241
- package/dist/core/injection-detect.js.map +0 -1
- package/dist/core/installed-threats.d.ts +0 -23
- package/dist/core/installed-threats.js +0 -71
- package/dist/core/installed-threats.js.map +0 -1
- package/dist/core/internal-diagnostics.d.ts +0 -159
- package/dist/core/internal-diagnostics.js +0 -495
- package/dist/core/internal-diagnostics.js.map +0 -1
- package/dist/core/keep-awake.d.ts +0 -88
- package/dist/core/keep-awake.js +0 -251
- package/dist/core/keep-awake.js.map +0 -1
- package/dist/core/ken-ask-answer.d.ts +0 -24
- package/dist/core/ken-ask-answer.js +0 -96
- package/dist/core/ken-ask-answer.js.map +0 -1
- package/dist/core/ken-context.d.ts +0 -119
- package/dist/core/ken-context.js +0 -447
- package/dist/core/ken-context.js.map +0 -1
- package/dist/core/ken-model.d.ts +0 -45
- package/dist/core/ken-model.js +0 -26
- package/dist/core/ken-model.js.map +0 -1
- package/dist/core/ken-prompt.d.ts +0 -21
- package/dist/core/ken-prompt.js +0 -370
- package/dist/core/ken-prompt.js.map +0 -1
- package/dist/core/language-detector.d.ts +0 -41
- package/dist/core/language-detector.js +0 -293
- package/dist/core/language-detector.js.map +0 -1
- package/dist/core/live-preview.d.ts +0 -26
- package/dist/core/live-preview.js +0 -80
- package/dist/core/live-preview.js.map +0 -1
- package/dist/core/local-endpoint-store.d.ts +0 -53
- package/dist/core/local-endpoint-store.js +0 -221
- package/dist/core/local-endpoint-store.js.map +0 -1
- package/dist/core/logger.d.ts +0 -22
- package/dist/core/logger.js +0 -95
- package/dist/core/logger.js.map +0 -1
- package/dist/core/loop-breaker.d.ts +0 -89
- package/dist/core/loop-breaker.js +0 -204
- package/dist/core/loop-breaker.js.map +0 -1
- package/dist/core/lsp/client.d.ts +0 -206
- package/dist/core/lsp/client.js +0 -685
- package/dist/core/lsp/client.js.map +0 -1
- package/dist/core/lsp/edit-telemetry.d.ts +0 -26
- package/dist/core/lsp/edit-telemetry.js +0 -52
- package/dist/core/lsp/edit-telemetry.js.map +0 -1
- package/dist/core/lsp/format.d.ts +0 -11
- package/dist/core/lsp/format.js +0 -30
- package/dist/core/lsp/format.js.map +0 -1
- package/dist/core/lsp/jsonrpc.d.ts +0 -68
- package/dist/core/lsp/jsonrpc.js +0 -153
- package/dist/core/lsp/jsonrpc.js.map +0 -1
- package/dist/core/lsp/manager.d.ts +0 -188
- package/dist/core/lsp/manager.js +0 -576
- package/dist/core/lsp/manager.js.map +0 -1
- package/dist/core/lsp/pool.d.ts +0 -114
- package/dist/core/lsp/pool.js +0 -259
- package/dist/core/lsp/pool.js.map +0 -1
- package/dist/core/lsp/project-root.d.ts +0 -9
- package/dist/core/lsp/project-root.js +0 -75
- package/dist/core/lsp/project-root.js.map +0 -1
- package/dist/core/lsp/reference-project.d.ts +0 -6
- package/dist/core/lsp/reference-project.js +0 -110
- package/dist/core/lsp/reference-project.js.map +0 -1
- package/dist/core/lsp/servers.d.ts +0 -44
- package/dist/core/lsp/servers.js +0 -289
- package/dist/core/lsp/servers.js.map +0 -1
- package/dist/core/lsp/test-support.d.ts +0 -17
- package/dist/core/lsp/test-support.js +0 -27
- package/dist/core/lsp/test-support.js.map +0 -1
- package/dist/core/mcp/catalog-cache.d.ts +0 -64
- package/dist/core/mcp/catalog-cache.js +0 -167
- package/dist/core/mcp/catalog-cache.js.map +0 -1
- package/dist/core/mcp/client.d.ts +0 -317
- package/dist/core/mcp/client.js +0 -1168
- package/dist/core/mcp/client.js.map +0 -1
- package/dist/core/mcp/content.d.ts +0 -23
- package/dist/core/mcp/content.js +0 -194
- package/dist/core/mcp/content.js.map +0 -1
- package/dist/core/mcp/defaults.d.ts +0 -26
- package/dist/core/mcp/defaults.js +0 -81
- package/dist/core/mcp/defaults.js.map +0 -1
- package/dist/core/mcp/deferred-catalog.d.ts +0 -53
- package/dist/core/mcp/deferred-catalog.js +0 -117
- package/dist/core/mcp/deferred-catalog.js.map +0 -1
- package/dist/core/mcp/elicitation-bridge.d.ts +0 -40
- package/dist/core/mcp/elicitation-bridge.js +0 -36
- package/dist/core/mcp/elicitation-bridge.js.map +0 -1
- package/dist/core/mcp/index.d.ts +0 -16
- package/dist/core/mcp/index.js +0 -10
- package/dist/core/mcp/index.js.map +0 -1
- package/dist/core/mcp/loopback.d.ts +0 -26
- package/dist/core/mcp/loopback.js +0 -66
- package/dist/core/mcp/loopback.js.map +0 -1
- package/dist/core/mcp/oauth-provider.d.ts +0 -55
- package/dist/core/mcp/oauth-provider.js +0 -106
- package/dist/core/mcp/oauth-provider.js.map +0 -1
- package/dist/core/mcp/oauth-store.d.ts +0 -44
- package/dist/core/mcp/oauth-store.js +0 -77
- package/dist/core/mcp/oauth-store.js.map +0 -1
- package/dist/core/mcp/parse-add-command.d.ts +0 -50
- package/dist/core/mcp/parse-add-command.js +0 -391
- package/dist/core/mcp/parse-add-command.js.map +0 -1
- package/dist/core/mcp/resolve-stdio.d.ts +0 -77
- package/dist/core/mcp/resolve-stdio.js +0 -359
- package/dist/core/mcp/resolve-stdio.js.map +0 -1
- package/dist/core/mcp/shared-pool.d.ts +0 -157
- package/dist/core/mcp/shared-pool.js +0 -236
- package/dist/core/mcp/shared-pool.js.map +0 -1
- package/dist/core/mcp/store.d.ts +0 -100
- package/dist/core/mcp/store.js +0 -202
- package/dist/core/mcp/store.js.map +0 -1
- package/dist/core/mcp/tool-guard.d.ts +0 -58
- package/dist/core/mcp/tool-guard.js +0 -215
- package/dist/core/mcp/tool-guard.js.map +0 -1
- package/dist/core/mcp/types.d.ts +0 -57
- package/dist/core/mcp/types.js +0 -2
- package/dist/core/mcp/types.js.map +0 -1
- package/dist/core/message-images.d.ts +0 -11
- package/dist/core/message-images.js +0 -52
- package/dist/core/message-images.js.map +0 -1
- package/dist/core/model-registry.d.ts +0 -1
- package/dist/core/model-registry.js +0 -5
- package/dist/core/model-registry.js.map +0 -1
- package/dist/core/model-unavailable.d.ts +0 -14
- package/dist/core/model-unavailable.js +0 -23
- package/dist/core/model-unavailable.js.map +0 -1
- package/dist/core/network-guard.d.ts +0 -28
- package/dist/core/network-guard.js +0 -251
- package/dist/core/network-guard.js.map +0 -1
- package/dist/core/node-debugger.d.ts +0 -148
- package/dist/core/node-debugger.js +0 -642
- package/dist/core/node-debugger.js.map +0 -1
- package/dist/core/oauth/openai.d.ts +0 -1
- package/dist/core/oauth/openai.js +0 -3
- package/dist/core/oauth/openai.js.map +0 -1
- package/dist/core/oauth/types.d.ts +0 -1
- package/dist/core/oauth/types.js +0 -2
- package/dist/core/oauth/types.js.map +0 -1
- package/dist/core/opencode-catalog-store.d.ts +0 -20
- package/dist/core/opencode-catalog-store.js +0 -82
- package/dist/core/opencode-catalog-store.js.map +0 -1
- package/dist/core/openrouter-catalog-store.d.ts +0 -24
- package/dist/core/openrouter-catalog-store.js +0 -140
- package/dist/core/openrouter-catalog-store.js.map +0 -1
- package/dist/core/package-cooldown.d.ts +0 -69
- package/dist/core/package-cooldown.js +0 -297
- package/dist/core/package-cooldown.js.map +0 -1
- package/dist/core/package-threats.d.ts +0 -92
- package/dist/core/package-threats.js +0 -1340
- package/dist/core/package-threats.js.map +0 -1
- package/dist/core/parked-requests.d.ts +0 -43
- package/dist/core/parked-requests.js +0 -34
- package/dist/core/parked-requests.js.map +0 -1
- package/dist/core/persistent-shell.d.ts +0 -81
- package/dist/core/persistent-shell.js +0 -452
- package/dist/core/persistent-shell.js.map +0 -1
- package/dist/core/plan-delta.d.ts +0 -23
- package/dist/core/plan-delta.js +0 -36
- package/dist/core/plan-delta.js.map +0 -1
- package/dist/core/plan-handoff.d.ts +0 -38
- package/dist/core/plan-handoff.js +0 -21
- package/dist/core/plan-handoff.js.map +0 -1
- package/dist/core/plan-submission-gate.d.ts +0 -28
- package/dist/core/plan-submission-gate.js +0 -27
- package/dist/core/plan-submission-gate.js.map +0 -1
- package/dist/core/platform-clis.d.ts +0 -15
- package/dist/core/platform-clis.js +0 -299
- package/dist/core/platform-clis.js.map +0 -1
- package/dist/core/process-gate.d.ts +0 -61
- package/dist/core/process-gate.js +0 -103
- package/dist/core/process-gate.js.map +0 -1
- package/dist/core/process-manager.d.ts +0 -242
- package/dist/core/process-manager.js +0 -902
- package/dist/core/process-manager.js.map +0 -1
- package/dist/core/progress/engine.d.ts +0 -22
- package/dist/core/progress/engine.js +0 -131
- package/dist/core/progress/engine.js.map +0 -1
- package/dist/core/progress/git-xp.d.ts +0 -15
- package/dist/core/progress/git-xp.js +0 -100
- package/dist/core/progress/git-xp.js.map +0 -1
- package/dist/core/progress/ranks.d.ts +0 -31
- package/dist/core/progress/ranks.js +0 -310
- package/dist/core/progress/ranks.js.map +0 -1
- package/dist/core/progress/rebuild.d.ts +0 -8
- package/dist/core/progress/rebuild.js +0 -125
- package/dist/core/progress/rebuild.js.map +0 -1
- package/dist/core/progress/store.d.ts +0 -34
- package/dist/core/progress/store.js +0 -200
- package/dist/core/progress/store.js.map +0 -1
- package/dist/core/progress/types.d.ts +0 -108
- package/dist/core/progress/types.js +0 -3
- package/dist/core/progress/types.js.map +0 -1
- package/dist/core/project-discovery.d.ts +0 -88
- package/dist/core/project-discovery.js +0 -907
- package/dist/core/project-discovery.js.map +0 -1
- package/dist/core/project-files.d.ts +0 -15
- package/dist/core/project-files.js +0 -37
- package/dist/core/project-files.js.map +0 -1
- package/dist/core/project-health-scan.d.ts +0 -109
- package/dist/core/project-health-scan.js +0 -673
- package/dist/core/project-health-scan.js.map +0 -1
- package/dist/core/project-health-score.d.ts +0 -41
- package/dist/core/project-health-score.js +0 -257
- package/dist/core/project-health-score.js.map +0 -1
- package/dist/core/prompt-command-expansion.d.ts +0 -13
- package/dist/core/prompt-command-expansion.js +0 -48
- package/dist/core/prompt-command-expansion.js.map +0 -1
- package/dist/core/prompt-commands.d.ts +0 -13
- package/dist/core/prompt-commands.js +0 -370
- package/dist/core/prompt-commands.js.map +0 -1
- package/dist/core/radio-players.d.ts +0 -28
- package/dist/core/radio-players.js +0 -133
- package/dist/core/radio-players.js.map +0 -1
- package/dist/core/radio.d.ts +0 -50
- package/dist/core/radio.js +0 -480
- package/dist/core/radio.js.map +0 -1
- package/dist/core/regrounding.d.ts +0 -37
- package/dist/core/regrounding.js +0 -89
- package/dist/core/regrounding.js.map +0 -1
- package/dist/core/resolve-start.d.ts +0 -28
- package/dist/core/resolve-start.js +0 -35
- package/dist/core/resolve-start.js.map +0 -1
- package/dist/core/run-claim.d.ts +0 -36
- package/dist/core/run-claim.js +0 -46
- package/dist/core/run-claim.js.map +0 -1
- package/dist/core/run-lifecycle.d.ts +0 -58
- package/dist/core/run-lifecycle.js +0 -104
- package/dist/core/run-lifecycle.js.map +0 -1
- package/dist/core/run-status.d.ts +0 -17
- package/dist/core/run-status.js +0 -28
- package/dist/core/run-status.js.map +0 -1
- package/dist/core/runtime-mode.d.ts +0 -21
- package/dist/core/runtime-mode.js +0 -43
- package/dist/core/runtime-mode.js.map +0 -1
- package/dist/core/sandbox-domains.d.ts +0 -13
- package/dist/core/sandbox-domains.js +0 -76
- package/dist/core/sandbox-domains.js.map +0 -1
- package/dist/core/sandbox-feedback.d.ts +0 -21
- package/dist/core/sandbox-feedback.js +0 -69
- package/dist/core/sandbox-feedback.js.map +0 -1
- package/dist/core/sandbox.d.ts +0 -106
- package/dist/core/sandbox.js +0 -383
- package/dist/core/sandbox.js.map +0 -1
- package/dist/core/semantic-loop-check.d.ts +0 -58
- package/dist/core/semantic-loop-check.js +0 -103
- package/dist/core/semantic-loop-check.js.map +0 -1
- package/dist/core/session-compaction.d.ts +0 -23
- package/dist/core/session-compaction.js +0 -54
- package/dist/core/session-compaction.js.map +0 -1
- package/dist/core/session-export.d.ts +0 -97
- package/dist/core/session-export.js +0 -368
- package/dist/core/session-export.js.map +0 -1
- package/dist/core/session-history.d.ts +0 -160
- package/dist/core/session-history.js +0 -467
- package/dist/core/session-history.js.map +0 -1
- package/dist/core/session-manager.d.ts +0 -509
- package/dist/core/session-manager.js +0 -1367
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/session-preview.d.ts +0 -12
- package/dist/core/session-preview.js +0 -58
- package/dist/core/session-preview.js.map +0 -1
- package/dist/core/session-storage.d.ts +0 -78
- package/dist/core/session-storage.js +0 -659
- package/dist/core/session-storage.js.map +0 -1
- package/dist/core/session-summary-index.d.ts +0 -51
- package/dist/core/session-summary-index.js +0 -192
- package/dist/core/session-summary-index.js.map +0 -1
- package/dist/core/settings-manager.d.ts +0 -113
- package/dist/core/settings-manager.js +0 -281
- package/dist/core/settings-manager.js.map +0 -1
- package/dist/core/shared-checkout-guard.d.ts +0 -78
- package/dist/core/shared-checkout-guard.js +0 -219
- package/dist/core/shared-checkout-guard.js.map +0 -1
- package/dist/core/shell-path.d.ts +0 -13
- package/dist/core/shell-path.js +0 -175
- package/dist/core/shell-path.js.map +0 -1
- package/dist/core/shell-threats-popular-packages.d.ts +0 -11
- package/dist/core/shell-threats-popular-packages.js +0 -675
- package/dist/core/shell-threats-popular-packages.js.map +0 -1
- package/dist/core/shell-threats.d.ts +0 -21
- package/dist/core/shell-threats.js +0 -235
- package/dist/core/shell-threats.js.map +0 -1
- package/dist/core/shell.d.ts +0 -54
- package/dist/core/shell.js +0 -99
- package/dist/core/shell.js.map +0 -1
- package/dist/core/shutdown.d.ts +0 -70
- package/dist/core/shutdown.js +0 -144
- package/dist/core/shutdown.js.map +0 -1
- package/dist/core/skill-scan.d.ts +0 -112
- package/dist/core/skill-scan.js +0 -781
- package/dist/core/skill-scan.js.map +0 -1
- package/dist/core/skills.d.ts +0 -100
- package/dist/core/skills.js +0 -299
- package/dist/core/skills.js.map +0 -1
- package/dist/core/slash-commands.d.ts +0 -58
- package/dist/core/slash-commands.js +0 -242
- package/dist/core/slash-commands.js.map +0 -1
- package/dist/core/steering.d.ts +0 -47
- package/dist/core/steering.js +0 -65
- package/dist/core/steering.js.map +0 -1
- package/dist/core/steroids.d.ts +0 -66
- package/dist/core/steroids.js +0 -243
- package/dist/core/steroids.js.map +0 -1
- package/dist/core/stream-diag-level.d.ts +0 -3
- package/dist/core/stream-diag-level.js +0 -24
- package/dist/core/stream-diag-level.js.map +0 -1
- package/dist/core/stream-rules.d.ts +0 -30
- package/dist/core/stream-rules.js +0 -151
- package/dist/core/stream-rules.js.map +0 -1
- package/dist/core/subagent-manager.d.ts +0 -239
- package/dist/core/subagent-manager.js +0 -1060
- package/dist/core/subagent-manager.js.map +0 -1
- package/dist/core/subagent-policy.d.ts +0 -9
- package/dist/core/subagent-policy.js +0 -41
- package/dist/core/subagent-policy.js.map +0 -1
- package/dist/core/subagent-receipt.d.ts +0 -54
- package/dist/core/subagent-receipt.js +0 -274
- package/dist/core/subagent-receipt.js.map +0 -1
- package/dist/core/subagent-store.d.ts +0 -41
- package/dist/core/subagent-store.js +0 -284
- package/dist/core/subagent-store.js.map +0 -1
- package/dist/core/subagent-turn-record.d.ts +0 -18
- package/dist/core/subagent-turn-record.js +0 -82
- package/dist/core/subagent-turn-record.js.map +0 -1
- package/dist/core/tasks-store.d.ts +0 -31
- package/dist/core/tasks-store.js +0 -97
- package/dist/core/tasks-store.js.map +0 -1
- package/dist/core/telegram-config.d.ts +0 -20
- package/dist/core/telegram-config.js +0 -52
- package/dist/core/telegram-config.js.map +0 -1
- package/dist/core/telegram.d.ts +0 -1
- package/dist/core/telegram.js +0 -3
- package/dist/core/telegram.js.map +0 -1
- package/dist/core/temp-paths.d.ts +0 -5
- package/dist/core/temp-paths.js +0 -50
- package/dist/core/temp-paths.js.map +0 -1
- package/dist/core/test-impact.d.ts +0 -73
- package/dist/core/test-impact.js +0 -467
- package/dist/core/test-impact.js.map +0 -1
- package/dist/core/thinking-level.d.ts +0 -1
- package/dist/core/thinking-level.js +0 -4
- package/dist/core/thinking-level.js.map +0 -1
- package/dist/core/threat-feed.d.ts +0 -65
- package/dist/core/threat-feed.js +0 -335
- package/dist/core/threat-feed.js.map +0 -1
- package/dist/core/trophies/catalog-more.d.ts +0 -2
- package/dist/core/trophies/catalog-more.js +0 -837
- package/dist/core/trophies/catalog-more.js.map +0 -1
- package/dist/core/trophies/catalog.d.ts +0 -4
- package/dist/core/trophies/catalog.js +0 -649
- package/dist/core/trophies/catalog.js.map +0 -1
- package/dist/core/trophies/engine.d.ts +0 -70
- package/dist/core/trophies/engine.js +0 -347
- package/dist/core/trophies/engine.js.map +0 -1
- package/dist/core/trophies/store.d.ts +0 -17
- package/dist/core/trophies/store.js +0 -113
- package/dist/core/trophies/store.js.map +0 -1
- package/dist/core/trophies/types.d.ts +0 -119
- package/dist/core/trophies/types.js +0 -76
- package/dist/core/trophies/types.js.map +0 -1
- package/dist/core/ui-adoption.d.ts +0 -32
- package/dist/core/ui-adoption.js +0 -302
- package/dist/core/ui-adoption.js.map +0 -1
- package/dist/core/ui-compatibility.d.ts +0 -10
- package/dist/core/ui-compatibility.js +0 -51
- package/dist/core/ui-compatibility.js.map +0 -1
- package/dist/core/ui-registry.d.ts +0 -101
- package/dist/core/ui-registry.js +0 -292
- package/dist/core/ui-registry.js.map +0 -1
- package/dist/core/user-shell-context.d.ts +0 -8
- package/dist/core/user-shell-context.js +0 -12
- package/dist/core/user-shell-context.js.map +0 -1
- package/dist/core/verification-evidence.d.ts +0 -49
- package/dist/core/verification-evidence.js +0 -816
- package/dist/core/verification-evidence.js.map +0 -1
- package/dist/core/verification-gate.d.ts +0 -77
- package/dist/core/verification-gate.js +0 -504
- package/dist/core/verification-gate.js.map +0 -1
- package/dist/core/verification-snapshot.d.ts +0 -7
- package/dist/core/verification-snapshot.js +0 -109
- package/dist/core/verification-snapshot.js.map +0 -1
- package/dist/core/verify-commands.d.ts +0 -34
- package/dist/core/verify-commands.js +0 -203
- package/dist/core/verify-commands.js.map +0 -1
- package/dist/core/voice-transcriber.d.ts +0 -1
- package/dist/core/voice-transcriber.js +0 -4
- package/dist/core/voice-transcriber.js.map +0 -1
- package/dist/core/workspace-guard.d.ts +0 -56
- package/dist/core/workspace-guard.js +0 -334
- package/dist/core/workspace-guard.js.map +0 -1
- package/dist/session.d.ts +0 -44
- package/dist/session.js +0 -105
- package/dist/session.js.map +0 -1
- package/dist/system-prompt.d.ts +0 -104
- package/dist/system-prompt.js +0 -480
- package/dist/system-prompt.js.map +0 -1
- package/dist/test-support/fake-home.d.ts +0 -19
- package/dist/test-support/fake-home.js +0 -37
- package/dist/test-support/fake-home.js.map +0 -1
- package/dist/test-support/keep-alive.d.ts +0 -14
- package/dist/test-support/keep-alive.js +0 -17
- package/dist/test-support/keep-alive.js.map +0 -1
- package/dist/test-support/slow-git.d.ts +0 -1
- package/dist/test-support/slow-git.js +0 -21
- package/dist/test-support/slow-git.js.map +0 -1
- package/dist/test-support/system-tools.d.ts +0 -6
- package/dist/test-support/system-tools.js +0 -36
- package/dist/test-support/system-tools.js.map +0 -1
- package/dist/tools/ask-user.d.ts +0 -34
- package/dist/tools/ask-user.js +0 -99
- package/dist/tools/ask-user.js.map +0 -1
- package/dist/tools/background-watch-lint.d.ts +0 -18
- package/dist/tools/background-watch-lint.js +0 -102
- package/dist/tools/background-watch-lint.js.map +0 -1
- package/dist/tools/bash-read-evidence.d.ts +0 -23
- package/dist/tools/bash-read-evidence.js +0 -180
- package/dist/tools/bash-read-evidence.js.map +0 -1
- package/dist/tools/bash.d.ts +0 -64
- package/dist/tools/bash.js +0 -552
- package/dist/tools/bash.js.map +0 -1
- package/dist/tools/browser-api.d.ts +0 -27
- package/dist/tools/browser-api.js +0 -449
- package/dist/tools/browser-api.js.map +0 -1
- package/dist/tools/browser-sandbox.d.ts +0 -16
- package/dist/tools/browser-sandbox.js +0 -158
- package/dist/tools/browser-sandbox.js.map +0 -1
- package/dist/tools/browser-session.d.ts +0 -84
- package/dist/tools/browser-session.js +0 -304
- package/dist/tools/browser-session.js.map +0 -1
- package/dist/tools/browser-snapshot.d.ts +0 -19
- package/dist/tools/browser-snapshot.js +0 -109
- package/dist/tools/browser-snapshot.js.map +0 -1
- package/dist/tools/browser.d.ts +0 -11
- package/dist/tools/browser.js +0 -106
- package/dist/tools/browser.js.map +0 -1
- package/dist/tools/checklist.d.ts +0 -49
- package/dist/tools/checklist.js +0 -154
- package/dist/tools/checklist.js.map +0 -1
- package/dist/tools/compress.d.ts +0 -56
- package/dist/tools/compress.js +0 -226
- package/dist/tools/compress.js.map +0 -1
- package/dist/tools/debug.d.ts +0 -54
- package/dist/tools/debug.js +0 -230
- package/dist/tools/debug.js.map +0 -1
- package/dist/tools/document-text.d.ts +0 -6
- package/dist/tools/document-text.js +0 -154
- package/dist/tools/document-text.js.map +0 -1
- package/dist/tools/edit-diff.d.ts +0 -123
- package/dist/tools/edit-diff.js +0 -476
- package/dist/tools/edit-diff.js.map +0 -1
- package/dist/tools/edit-targets.d.ts +0 -10
- package/dist/tools/edit-targets.js +0 -31
- package/dist/tools/edit-targets.js.map +0 -1
- package/dist/tools/edit.d.ts +0 -38
- package/dist/tools/edit.js +0 -695
- package/dist/tools/edit.js.map +0 -1
- package/dist/tools/enter-plan.d.ts +0 -7
- package/dist/tools/enter-plan.js +0 -20
- package/dist/tools/enter-plan.js.map +0 -1
- package/dist/tools/exit-plan.d.ts +0 -7
- package/dist/tools/exit-plan.js +0 -51
- package/dist/tools/exit-plan.js.map +0 -1
- package/dist/tools/find.d.ts +0 -17
- package/dist/tools/find.js +0 -100
- package/dist/tools/find.js.map +0 -1
- package/dist/tools/generate-image.d.ts +0 -83
- package/dist/tools/generate-image.js +0 -625
- package/dist/tools/generate-image.js.map +0 -1
- package/dist/tools/grep-scan.d.ts +0 -96
- package/dist/tools/grep-scan.js +0 -283
- package/dist/tools/grep-scan.js.map +0 -1
- package/dist/tools/grep.d.ts +0 -48
- package/dist/tools/grep.js +0 -1013
- package/dist/tools/grep.js.map +0 -1
- package/dist/tools/html-extract.d.ts +0 -57
- package/dist/tools/html-extract.js +0 -130
- package/dist/tools/html-extract.js.map +0 -1
- package/dist/tools/index.d.ts +0 -198
- package/dist/tools/index.js +0 -216
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/live-preview.d.ts +0 -23
- package/dist/tools/live-preview.js +0 -41
- package/dist/tools/live-preview.js.map +0 -1
- package/dist/tools/ls.d.ts +0 -9
- package/dist/tools/ls.js +0 -59
- package/dist/tools/ls.js.map +0 -1
- package/dist/tools/operations.d.ts +0 -86
- package/dist/tools/operations.js +0 -117
- package/dist/tools/operations.js.map +0 -1
- package/dist/tools/overflow.d.ts +0 -17
- package/dist/tools/overflow.js +0 -68
- package/dist/tools/overflow.js.map +0 -1
- package/dist/tools/path-utils.d.ts +0 -30
- package/dist/tools/path-utils.js +0 -74
- package/dist/tools/path-utils.js.map +0 -1
- package/dist/tools/pdf-extract.d.ts +0 -17
- package/dist/tools/pdf-extract.js +0 -43
- package/dist/tools/pdf-extract.js.map +0 -1
- package/dist/tools/prompt-hints.d.ts +0 -46
- package/dist/tools/prompt-hints.js +0 -171
- package/dist/tools/prompt-hints.js.map +0 -1
- package/dist/tools/read-only-bash.d.ts +0 -31
- package/dist/tools/read-only-bash.js +0 -338
- package/dist/tools/read-only-bash.js.map +0 -1
- package/dist/tools/read-tracker.d.ts +0 -43
- package/dist/tools/read-tracker.js +0 -120
- package/dist/tools/read-tracker.js.map +0 -1
- package/dist/tools/read.d.ts +0 -18
- package/dist/tools/read.js +0 -316
- package/dist/tools/read.js.map +0 -1
- package/dist/tools/redaction-guard.d.ts +0 -10
- package/dist/tools/redaction-guard.js +0 -55
- package/dist/tools/redaction-guard.js.map +0 -1
- package/dist/tools/routine-output.d.ts +0 -39
- package/dist/tools/routine-output.js +0 -281
- package/dist/tools/routine-output.js.map +0 -1
- package/dist/tools/safe-env.d.ts +0 -1
- package/dist/tools/safe-env.js +0 -79
- package/dist/tools/safe-env.js.map +0 -1
- package/dist/tools/session-stats.d.ts +0 -26
- package/dist/tools/session-stats.js +0 -51
- package/dist/tools/session-stats.js.map +0 -1
- package/dist/tools/side-web-search.d.ts +0 -34
- package/dist/tools/side-web-search.js +0 -146
- package/dist/tools/side-web-search.js.map +0 -1
- package/dist/tools/skill.d.ts +0 -12
- package/dist/tools/skill.js +0 -94
- package/dist/tools/skill.js.map +0 -1
- package/dist/tools/source-path.d.ts +0 -8
- package/dist/tools/source-path.js +0 -128
- package/dist/tools/source-path.js.map +0 -1
- package/dist/tools/steroids.d.ts +0 -44
- package/dist/tools/steroids.js +0 -356
- package/dist/tools/steroids.js.map +0 -1
- package/dist/tools/subagent-control.d.ts +0 -5
- package/dist/tools/subagent-control.js +0 -211
- package/dist/tools/subagent-control.js.map +0 -1
- package/dist/tools/subagent-shared.d.ts +0 -110
- package/dist/tools/subagent-shared.js +0 -180
- package/dist/tools/subagent-shared.js.map +0 -1
- package/dist/tools/subagent.d.ts +0 -37
- package/dist/tools/subagent.js +0 -406
- package/dist/tools/subagent.js.map +0 -1
- package/dist/tools/task-output.d.ts +0 -10
- package/dist/tools/task-output.js +0 -74
- package/dist/tools/task-output.js.map +0 -1
- package/dist/tools/task-send.d.ts +0 -11
- package/dist/tools/task-send.js +0 -36
- package/dist/tools/task-send.js.map +0 -1
- package/dist/tools/task-stop.d.ts +0 -8
- package/dist/tools/task-stop.js +0 -15
- package/dist/tools/task-stop.js.map +0 -1
- package/dist/tools/tasks.d.ts +0 -15
- package/dist/tools/tasks.js +0 -94
- package/dist/tools/tasks.js.map +0 -1
- package/dist/tools/tool-search.d.ts +0 -26
- package/dist/tools/tool-search.js +0 -81
- package/dist/tools/tool-search.js.map +0 -1
- package/dist/tools/tool-tiers.d.ts +0 -65
- package/dist/tools/tool-tiers.js +0 -121
- package/dist/tools/tool-tiers.js.map +0 -1
- package/dist/tools/truncate.d.ts +0 -39
- package/dist/tools/truncate.js +0 -242
- package/dist/tools/truncate.js.map +0 -1
- package/dist/tools/ui-adopt.d.ts +0 -16
- package/dist/tools/ui-adopt.js +0 -66
- package/dist/tools/ui-adopt.js.map +0 -1
- package/dist/tools/ui-registry.d.ts +0 -15
- package/dist/tools/ui-registry.js +0 -39
- package/dist/tools/ui-registry.js.map +0 -1
- package/dist/tools/verification-review.d.ts +0 -2
- package/dist/tools/verification-review.js +0 -41
- package/dist/tools/verification-review.js.map +0 -1
- package/dist/tools/web-fetch.d.ts +0 -52
- package/dist/tools/web-fetch.js +0 -986
- package/dist/tools/web-fetch.js.map +0 -1
- package/dist/tools/web-search.d.ts +0 -35
- package/dist/tools/web-search.js +0 -926
- package/dist/tools/web-search.js.map +0 -1
- package/dist/tools/write.d.ts +0 -16
- package/dist/tools/write.js +0 -196
- package/dist/tools/write.js.map +0 -1
- package/dist/types.d.ts +0 -44
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils/git.d.ts +0 -102
- package/dist/utils/git.js +0 -325
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/github-ci.d.ts +0 -18
- package/dist/utils/github-ci.js +0 -138
- package/dist/utils/github-ci.js.map +0 -1
- package/dist/utils/github.d.ts +0 -19
- package/dist/utils/github.js +0 -67
- package/dist/utils/github.js.map +0 -1
- package/dist/utils/image.d.ts +0 -166
- package/dist/utils/image.js +0 -673
- package/dist/utils/image.js.map +0 -1
- package/dist/utils/open-browser.d.ts +0 -13
- package/dist/utils/open-browser.js +0 -31
- package/dist/utils/open-browser.js.map +0 -1
- package/dist/utils/plan-steps.d.ts +0 -90
- package/dist/utils/plan-steps.js +0 -209
- package/dist/utils/plan-steps.js.map +0 -1
- package/dist/utils/process.d.ts +0 -48
- package/dist/utils/process.js +0 -175
- package/dist/utils/process.js.map +0 -1
- package/dist/utils/prompt-enhancer.d.ts +0 -53
- package/dist/utils/prompt-enhancer.js +0 -178
- package/dist/utils/prompt-enhancer.js.map +0 -1
- package/dist/utils/text.d.ts +0 -61
- package/dist/utils/text.js +0 -68
- package/dist/utils/text.js.map +0 -1
- package/dist/web.d.ts +0 -5
- package/dist/web.js +0 -5
- 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.
|