@prestyj/cli 5.32.2 → 5.33.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/assets/motion/skills/motion/SKILL.md +1 -1
- package/assets/skills/bulletproof/SKILL.md +72 -131
- package/assets/skills/bulletproof/references/agent-surface.md +22 -1
- package/assets/skills/bulletproof/references/audit-protocol.md +23 -6
- package/assets/skills/bulletproof/references/platform-playbooks.md +12 -0
- package/assets/skills/bulletproof/references/provenance.md +19 -2
- package/assets/skills/bulletproof/references/secure-defaults.md +13 -1
- package/assets/skills/bulletproof/references/supply-chain.md +8 -5
- package/assets/skills/bulletproof/references/threat-landscape.md +46 -57
- package/assets/skills/compliance-guard/SKILL.md +59 -212
- package/assets/skills/compliance-guard/references/artifacts.md +14 -1
- package/assets/skills/compliance-guard/references/eu-uk.md +17 -7
- package/assets/skills/compliance-guard/references/exposure-triage.md +16 -0
- package/assets/skills/compliance-guard/references/full-review.md +155 -0
- package/assets/skills/compliance-guard/references/lawsuit-vectors.md +14 -2
- package/assets/skills/compliance-guard/references/provenance.md +33 -2
- package/assets/skills/compliance-guard/references/sector-gates.md +15 -1
- package/assets/skills/compliance-guard/references/security-baseline.md +21 -34
- package/assets/skills/compliance-guard/references/trigger-map.md +15 -1
- package/assets/skills/compliance-guard/references/us.md +32 -8
- package/assets/skills/durable/SKILL.md +22 -29
- package/assets/skills/durable/references/agent-db-safety.md +2 -2
- package/assets/skills/durable/references/backups-and-runtime.md +6 -6
- package/assets/skills/durable/references/migrations-and-schema.md +5 -4
- package/assets/skills/lean/SKILL.md +36 -50
- package/assets/skills/lean/references/playbooks.md +9 -7
- package/dist/app-sidecar/app-settings.d.ts +5 -0
- package/dist/app-sidecar/app-settings.js +13 -0
- package/dist/app-sidecar/app-settings.js.map +1 -1
- package/dist/app-sidecar/auth-routes.js +45 -2
- package/dist/app-sidecar/auth-routes.js.map +1 -1
- package/dist/app-sidecar/desktop-guidance.d.ts +1 -0
- package/dist/app-sidecar/desktop-guidance.js +27 -0
- package/dist/app-sidecar/desktop-guidance.js.map +1 -0
- package/dist/app-sidecar/history-routes.d.ts +6 -0
- package/dist/app-sidecar/history-routes.js +57 -2
- package/dist/app-sidecar/history-routes.js.map +1 -1
- package/dist/app-sidecar/history.d.ts +17 -0
- package/dist/app-sidecar/history.js.map +1 -1
- package/dist/app-sidecar/http.d.ts +1 -1
- package/dist/app-sidecar/http.js +2 -2
- package/dist/app-sidecar/http.js.map +1 -1
- package/dist/app-sidecar/integration-routes.js +4 -0
- package/dist/app-sidecar/integration-routes.js.map +1 -1
- package/dist/app-sidecar/prompt-routes.js +28 -5
- package/dist/app-sidecar/prompt-routes.js.map +1 -1
- package/dist/app-sidecar/route-context.d.ts +10 -1
- package/dist/app-sidecar/run-control-routes.js +9 -2
- package/dist/app-sidecar/run-control-routes.js.map +1 -1
- package/dist/app-sidecar/session-routes.js +8 -0
- package/dist/app-sidecar/session-routes.js.map +1 -1
- package/dist/app-sidecar/shell-routes.d.ts +12 -0
- package/dist/app-sidecar/shell-routes.js +133 -0
- package/dist/app-sidecar/shell-routes.js.map +1 -0
- package/dist/app-sidecar/shell-runs.d.ts +103 -0
- package/dist/app-sidecar/shell-runs.js +268 -0
- package/dist/app-sidecar/shell-runs.js.map +1 -0
- package/dist/app-sidecar/shell-suggestions.d.ts +33 -0
- package/dist/app-sidecar/shell-suggestions.js +152 -0
- package/dist/app-sidecar/shell-suggestions.js.map +1 -0
- package/dist/app-sidecar/usage.js +26 -2
- package/dist/app-sidecar/usage.js.map +1 -1
- package/dist/app-sidecar-sessions.js +13 -3
- package/dist/app-sidecar-sessions.js.map +1 -1
- package/dist/app-sidecar.js +231 -60
- package/dist/app-sidecar.js.map +1 -1
- package/dist/chat-agents/index.d.ts +1 -1
- package/dist/chat-agents/index.js +1 -1
- package/dist/chat-agents/index.js.map +1 -1
- package/dist/chat-agents/shared.d.ts +4 -0
- package/dist/chat-agents/shared.js +8 -1
- package/dist/chat-agents/shared.js.map +1 -1
- package/dist/cli.js +28 -6
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +22 -2
- package/dist/config.js +40 -97
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session.d.ts +100 -11
- package/dist/core/agent-session.js +734 -165
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/ask-user.d.ts +6 -0
- package/dist/core/ask-user.js +20 -5
- package/dist/core/ask-user.js.map +1 -1
- package/dist/core/autopilot-gate.js +2 -3
- package/dist/core/autopilot-gate.js.map +1 -1
- package/dist/core/bundled-agents.js +9 -29
- package/dist/core/bundled-agents.js.map +1 -1
- package/dist/core/cache-diagnostics.d.ts +4 -0
- package/dist/core/cache-diagnostics.js +4 -1
- package/dist/core/cache-diagnostics.js.map +1 -1
- package/dist/core/cache-expiry.d.ts +2 -0
- package/dist/core/cache-expiry.js +6 -0
- package/dist/core/cache-expiry.js.map +1 -1
- package/dist/core/checklist-items.d.ts +0 -8
- package/dist/core/checklist-items.js +0 -8
- package/dist/core/checklist-items.js.map +1 -1
- package/dist/core/checkpoint-store.d.ts +17 -0
- package/dist/core/checkpoint-store.js +72 -0
- package/dist/core/checkpoint-store.js.map +1 -1
- package/dist/core/claude-code/complete.d.ts +33 -0
- package/dist/core/claude-code/complete.js +112 -0
- package/dist/core/claude-code/complete.js.map +1 -0
- package/dist/core/claude-code/events.d.ts +65 -0
- package/dist/core/claude-code/events.js +434 -0
- package/dist/core/claude-code/events.js.map +1 -0
- package/dist/core/claude-code/live-session.d.ts +92 -0
- package/dist/core/claude-code/live-session.js +519 -0
- package/dist/core/claude-code/live-session.js.map +1 -0
- package/dist/core/claude-code/loop.d.ts +9 -0
- package/dist/core/claude-code/loop.js +15 -0
- package/dist/core/claude-code/loop.js.map +1 -0
- package/dist/core/claude-code/session-sync.d.ts +28 -0
- package/dist/core/claude-code/session-sync.js +53 -0
- package/dist/core/claude-code/session-sync.js.map +1 -0
- package/dist/core/claude-code/tool-bridge.d.ts +49 -0
- package/dist/core/claude-code/tool-bridge.js +352 -0
- package/dist/core/claude-code/tool-bridge.js.map +1 -0
- package/dist/core/claude-code-version.d.ts +1 -1
- package/dist/core/claude-code-version.js +1 -1
- package/dist/core/claude-code-version.js.map +1 -1
- package/dist/core/code-retrieval.d.ts +1 -1
- package/dist/core/code-retrieval.js +2 -2
- package/dist/core/code-retrieval.js.map +1 -1
- package/dist/core/compaction/compactor.d.ts +25 -1
- package/dist/core/compaction/compactor.js +137 -7
- package/dist/core/compaction/compactor.js.map +1 -1
- package/dist/core/compaction/policy.d.ts +18 -0
- package/dist/core/compaction/policy.js +24 -5
- package/dist/core/compaction/policy.js.map +1 -1
- package/dist/core/compaction/tool-result-pruner.d.ts +10 -0
- package/dist/core/compaction/tool-result-pruner.js +14 -0
- package/dist/core/compaction/tool-result-pruner.js.map +1 -1
- package/dist/core/env-delta.d.ts +3 -3
- package/dist/core/env-delta.js +4 -5
- package/dist/core/env-delta.js.map +1 -1
- package/dist/core/goals-store.d.ts +9 -0
- package/dist/core/goals-store.js +111 -50
- package/dist/core/goals-store.js.map +1 -1
- package/dist/core/internal-diagnostics.d.ts +17 -0
- package/dist/core/internal-diagnostics.js +45 -0
- package/dist/core/internal-diagnostics.js.map +1 -1
- package/dist/core/language-detector.d.ts +2 -3
- package/dist/core/language-detector.js.map +1 -1
- package/dist/core/local-endpoint-store.d.ts +4 -0
- package/dist/core/local-endpoint-store.js +31 -15
- package/dist/core/local-endpoint-store.js.map +1 -1
- package/dist/core/logger.d.ts +5 -0
- package/dist/core/logger.js +10 -2
- package/dist/core/logger.js.map +1 -1
- package/dist/core/lsp/edit-telemetry.js +3 -1
- package/dist/core/lsp/edit-telemetry.js.map +1 -1
- package/dist/core/lsp/manager.d.ts +15 -0
- package/dist/core/lsp/manager.js +31 -0
- package/dist/core/lsp/manager.js.map +1 -1
- package/dist/core/mcp/deferred-catalog.d.ts +1 -1
- package/dist/core/mcp/deferred-catalog.js +1 -1
- package/dist/core/openrouter-catalog-store.d.ts +24 -0
- package/dist/core/openrouter-catalog-store.js +140 -0
- package/dist/core/openrouter-catalog-store.js.map +1 -0
- package/dist/core/plan-delta.d.ts +23 -0
- package/dist/core/plan-delta.js +36 -0
- package/dist/core/plan-delta.js.map +1 -0
- package/dist/core/process-gate.d.ts +17 -0
- package/dist/core/process-gate.js +24 -0
- package/dist/core/process-gate.js.map +1 -1
- package/dist/core/project-discovery.js +2 -2
- package/dist/core/project-discovery.js.map +1 -1
- package/dist/core/project-files.js +1 -1
- package/dist/core/project-files.js.map +1 -1
- package/dist/core/prompt-commands.js +41 -75
- package/dist/core/prompt-commands.js.map +1 -1
- package/dist/core/radio-players.d.ts +28 -0
- package/dist/core/radio-players.js +133 -0
- package/dist/core/radio-players.js.map +1 -0
- package/dist/core/radio.js +20 -3
- package/dist/core/radio.js.map +1 -1
- package/dist/core/runtime-mode.d.ts +9 -0
- package/dist/core/runtime-mode.js +26 -0
- package/dist/core/runtime-mode.js.map +1 -1
- package/dist/core/session-history.d.ts +7 -0
- package/dist/core/session-history.js +34 -2
- package/dist/core/session-history.js.map +1 -1
- package/dist/core/session-manager.d.ts +5 -1
- package/dist/core/session-manager.js +36 -7
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-preview.js +2 -2
- package/dist/core/session-preview.js.map +1 -1
- package/dist/core/session-summary-index.d.ts +18 -4
- package/dist/core/session-summary-index.js +28 -8
- package/dist/core/session-summary-index.js.map +1 -1
- package/dist/core/settings-manager.d.ts +7 -0
- package/dist/core/settings-manager.js +53 -7
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/shell.d.ts +4 -0
- package/dist/core/shell.js +15 -1
- package/dist/core/shell.js.map +1 -1
- package/dist/core/skills.d.ts +8 -0
- package/dist/core/skills.js +15 -5
- package/dist/core/skills.js.map +1 -1
- package/dist/core/steering.d.ts +4 -0
- package/dist/core/steering.js +8 -1
- package/dist/core/steering.js.map +1 -1
- package/dist/core/stream-diag-level.d.ts +3 -0
- package/dist/core/stream-diag-level.js +24 -0
- package/dist/core/stream-diag-level.js.map +1 -0
- package/dist/core/subagent-manager.d.ts +11 -0
- package/dist/core/subagent-manager.js +16 -4
- package/dist/core/subagent-manager.js.map +1 -1
- package/dist/core/subagent-policy.d.ts +6 -0
- package/dist/core/subagent-policy.js +22 -3
- package/dist/core/subagent-policy.js.map +1 -1
- package/dist/core/subagent-receipt.d.ts +3 -3
- package/dist/core/subagent-receipt.js +6 -9
- package/dist/core/subagent-receipt.js.map +1 -1
- package/dist/core/trophies/catalog-more.js +16 -36
- package/dist/core/trophies/catalog-more.js.map +1 -1
- package/dist/core/trophies/engine.js +0 -4
- package/dist/core/trophies/engine.js.map +1 -1
- package/dist/core/trophies/types.d.ts +1 -1
- package/dist/core/trophies/types.js +0 -2
- package/dist/core/trophies/types.js.map +1 -1
- package/dist/core/user-shell-context.d.ts +8 -0
- package/dist/core/user-shell-context.js +12 -0
- package/dist/core/user-shell-context.js.map +1 -0
- package/dist/core/verify-commands.d.ts +1 -1
- package/dist/goals-agent/goal-team.js +3 -4
- package/dist/goals-agent/goal-team.js.map +1 -1
- package/dist/goals-agent/goals-agent.d.ts +1 -1
- package/dist/goals-agent/goals-agent.js +4 -3
- package/dist/goals-agent/goals-agent.js.map +1 -1
- package/dist/modes/acp-mode.d.ts +1 -1
- package/dist/modes/acp-mode.js +4 -5
- package/dist/modes/acp-mode.js.map +1 -1
- package/dist/modes/agent-home-mode.js +5 -5
- package/dist/modes/agent-home-mode.js.map +1 -1
- package/dist/modes/json-mode.js +5 -0
- package/dist/modes/json-mode.js.map +1 -1
- package/dist/modes/serve-mode.js +5 -5
- package/dist/modes/serve-mode.js.map +1 -1
- package/dist/motion-agent/motion-agent.d.ts +12 -5
- package/dist/motion-agent/motion-agent.js +24 -9
- package/dist/motion-agent/motion-agent.js.map +1 -1
- package/dist/subagent-entry.d.ts +1 -0
- package/dist/subagent-entry.js +50 -0
- package/dist/subagent-entry.js.map +1 -0
- package/dist/system-prompt.d.ts +6 -3
- package/dist/system-prompt.js +24 -15
- package/dist/system-prompt.js.map +1 -1
- package/dist/tools/ask-user.js +3 -2
- package/dist/tools/ask-user.js.map +1 -1
- package/dist/tools/bash.d.ts +7 -0
- package/dist/tools/bash.js +23 -8
- package/dist/tools/bash.js.map +1 -1
- package/dist/tools/checklist.js +6 -11
- package/dist/tools/checklist.js.map +1 -1
- package/dist/tools/debug.js +6 -9
- package/dist/tools/debug.js.map +1 -1
- package/dist/tools/document-text.d.ts +6 -0
- package/dist/tools/document-text.js +154 -0
- package/dist/tools/document-text.js.map +1 -0
- package/dist/tools/enter-plan.js +4 -7
- package/dist/tools/enter-plan.js.map +1 -1
- package/dist/tools/find.d.ts +9 -0
- package/dist/tools/find.js +38 -1
- package/dist/tools/find.js.map +1 -1
- package/dist/tools/generate-image.d.ts +18 -0
- package/dist/tools/generate-image.js +208 -17
- package/dist/tools/generate-image.js.map +1 -1
- package/dist/tools/goals.d.ts +2 -2
- package/dist/tools/index.d.ts +5 -2
- package/dist/tools/index.js +5 -13
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/operations.js +1 -1
- package/dist/tools/operations.js.map +1 -1
- package/dist/tools/overflow.d.ts +2 -0
- package/dist/tools/overflow.js +10 -0
- package/dist/tools/overflow.js.map +1 -1
- package/dist/tools/prompt-hints.d.ts +2 -0
- package/dist/tools/prompt-hints.js +16 -9
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/tools/read.js +25 -10
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/routine-output.d.ts +10 -1
- package/dist/tools/routine-output.js +79 -1
- package/dist/tools/routine-output.js.map +1 -1
- package/dist/tools/screenshot.js +6 -10
- package/dist/tools/screenshot.js.map +1 -1
- package/dist/tools/side-web-search.d.ts +35 -0
- package/dist/tools/side-web-search.js +147 -0
- package/dist/tools/side-web-search.js.map +1 -0
- package/dist/tools/skill.d.ts +2 -0
- package/dist/tools/skill.js +33 -6
- package/dist/tools/skill.js.map +1 -1
- package/dist/tools/steroids.d.ts +7 -6
- package/dist/tools/steroids.js +193 -87
- package/dist/tools/steroids.js.map +1 -1
- package/dist/tools/subagent-control.js +66 -10
- package/dist/tools/subagent-control.js.map +1 -1
- package/dist/tools/subagent-shared.d.ts +19 -2
- package/dist/tools/subagent-shared.js +35 -10
- package/dist/tools/subagent-shared.js.map +1 -1
- package/dist/tools/subagent.js +23 -7
- package/dist/tools/subagent.js.map +1 -1
- package/dist/tools/tool-search.js +7 -1
- package/dist/tools/tool-search.js.map +1 -1
- package/dist/tools/tool-tiers.d.ts +3 -2
- package/dist/tools/tool-tiers.js +7 -5
- package/dist/tools/tool-tiers.js.map +1 -1
- package/dist/tools/truncate.js +4 -8
- package/dist/tools/truncate.js.map +1 -1
- package/dist/tools/web-fetch.d.ts +8 -0
- package/dist/tools/web-fetch.js +123 -17
- package/dist/tools/web-fetch.js.map +1 -1
- package/dist/tools/web-search.d.ts +3 -2
- package/dist/tools/web-search.js +25 -1
- package/dist/tools/web-search.js.map +1 -1
- package/dist/ui/App.js +37 -37
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/components/Footer.js +4 -1
- package/dist/ui/components/Footer.js.map +1 -1
- package/dist/ui/components/SkillsOverlay.js +2 -1
- package/dist/ui/components/SkillsOverlay.js.map +1 -1
- package/dist/ui/hooks/useAgentLoop.d.ts +3 -0
- package/dist/ui/hooks/useAgentLoop.js +54 -4
- package/dist/ui/hooks/useAgentLoop.js.map +1 -1
- package/dist/ui/hooks/useContextCompaction.js +1 -0
- package/dist/ui/hooks/useContextCompaction.js.map +1 -1
- package/dist/ui/language-pack-update.d.ts +25 -0
- package/dist/ui/language-pack-update.js +19 -0
- package/dist/ui/language-pack-update.js.map +1 -0
- package/dist/ui/terminal-history.js +3 -1
- package/dist/ui/terminal-history.js.map +1 -1
- package/dist/utils/http-body.d.ts +5 -0
- package/dist/utils/http-body.js +5 -0
- package/dist/utils/http-body.js.map +1 -1
- package/dist/utils/image.d.ts +11 -0
- package/dist/utils/image.js +34 -1
- package/dist/utils/image.js.map +1 -1
- package/dist/utils/plan-steps.d.ts +1 -0
- package/dist/utils/plan-steps.js +10 -0
- package/dist/utils/plan-steps.js.map +1 -1
- package/dist/utils/prompt-enhancer.d.ts +3 -1
- package/dist/utils/prompt-enhancer.js +21 -16
- package/dist/utils/prompt-enhancer.js.map +1 -1
- package/package.json +24 -7
- package/assets/skills/clarify/SKILL.md +0 -39
- package/assets/skills/code-review/SKILL.md +0 -88
- package/assets/skills/code-review/references/agent-diffs.md +0 -27
- package/assets/skills/code-review/references/tests.md +0 -19
- package/assets/skills/evidence-led-ui/LICENSES.md +0 -80
- package/assets/skills/evidence-led-ui/SKILL.md +0 -100
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/LICENSE +0 -21
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airbnb/DESIGN.md +0 -545
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/airtable/DESIGN.md +0 -554
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/apple/DESIGN.md +0 -562
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/binance/DESIGN.md +0 -634
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bmw-m/DESIGN.md +0 -503
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/bugatti/DESIGN.md +0 -454
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cal/DESIGN.md +0 -542
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/claude/DESIGN.md +0 -589
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clay/DESIGN.md +0 -541
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/clickhouse/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cohere/DESIGN.md +0 -451
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/coinbase/DESIGN.md +0 -570
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/composio/DESIGN.md +0 -506
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/cursor/DESIGN.md +0 -537
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/dell-1996/DESIGN.md +0 -632
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/elevenlabs/DESIGN.md +0 -504
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/expo/DESIGN.md +0 -526
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ferrari/DESIGN.md +0 -531
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/figma/DESIGN.md +0 -578
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/framer/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hashicorp/DESIGN.md +0 -575
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/hp/DESIGN.md +0 -670
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ibm/DESIGN.md +0 -550
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/intercom/DESIGN.md +0 -546
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/kraken/DESIGN.md +0 -125
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lamborghini/DESIGN.md +0 -288
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/linear.app/DESIGN.md +0 -548
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/lovable/DESIGN.md +0 -298
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mastercard/DESIGN.md +0 -365
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/meta/DESIGN.md +0 -683
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/minimax/DESIGN.md +0 -746
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mintlify/DESIGN.md +0 -852
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/miro/DESIGN.md +0 -825
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mistral.ai/DESIGN.md +0 -773
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/mongodb/DESIGN.md +0 -767
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nike/DESIGN.md +0 -575
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nintendo-2001/DESIGN.md +0 -649
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/notion/DESIGN.md +0 -821
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/nvidia/DESIGN.md +0 -640
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/ollama/DESIGN.md +0 -539
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/opencode.ai/DESIGN.md +0 -521
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/pinterest/DESIGN.md +0 -597
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/playstation/DESIGN.md +0 -661
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/posthog/DESIGN.md +0 -690
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/raycast/DESIGN.md +0 -669
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/renault/DESIGN.md +0 -589
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/replicate/DESIGN.md +0 -616
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/resend/DESIGN.md +0 -585
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/revolut/DESIGN.md +0 -636
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/runwayml/DESIGN.md +0 -244
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sanity/DESIGN.md +0 -357
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/sentry/DESIGN.md +0 -551
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/shopify/DESIGN.md +0 -516
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/slack/DESIGN.md +0 -482
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spacex/DESIGN.md +0 -363
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/spotify/DESIGN.md +0 -246
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/starbucks/DESIGN.md +0 -580
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/stripe/DESIGN.md +0 -487
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/supabase/DESIGN.md +0 -462
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/superhuman/DESIGN.md +0 -448
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/tesla/DESIGN.md +0 -286
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/theverge/DESIGN.md +0 -339
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/together.ai/DESIGN.md +0 -633
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/uber/DESIGN.md +0 -636
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vercel/DESIGN.md +0 -736
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/vodafone/DESIGN.md +0 -538
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/voltagent/DESIGN.md +0 -521
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/warp/DESIGN.md +0 -526
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/webflow/DESIGN.md +0 -588
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wired/DESIGN.md +0 -497
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/wise/DESIGN.md +0 -544
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/x.ai/DESIGN.md +0 -465
- package/assets/skills/evidence-led-ui/corpus/awesome-design-md/design-md/zapier/DESIGN.md +0 -537
- package/assets/skills/evidence-led-ui/data/corpus-manifest.json +0 -768
- package/assets/skills/evidence-led-ui/data/observations.json +0 -47053
- package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
- package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
- package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
- package/assets/skills/evidence-led-ui/references/direction.md +0 -124
- package/assets/skills/evidence-led-ui/references/methodology.md +0 -72
- package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
- package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
- package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
- package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
- package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
- package/assets/skills/refactoring/SKILL.md +0 -87
- package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
- package/assets/skills/refactoring/references/legacy.md +0 -70
- package/assets/skills/refactoring/references/smells.md +0 -71
- package/assets/skills/root-cause/SKILL.md +0 -46
- package/assets/skills/shared-language/SKILL.md +0 -32
- package/assets/skills/tdd/SKILL.md +0 -42
- package/dist/core/setup-history.d.ts +0 -6
- package/dist/core/setup-history.js +0 -55
- package/dist/core/setup-history.js.map +0 -1
- package/dist/core/style-packs/index.d.ts +0 -18
- package/dist/core/style-packs/index.js +0 -60
- package/dist/core/style-packs/index.js.map +0 -1
- package/dist/core/style-packs/packs.d.ts +0 -8
- package/dist/core/style-packs/packs.js +0 -188
- package/dist/core/style-packs/packs.js.map +0 -1
- package/dist/interactive.d.ts +0 -2
- package/dist/interactive.js +0 -257
- package/dist/interactive.js.map +0 -1
- package/dist/motion-agent/motion-review-coverage.d.ts +0 -12
- package/dist/motion-agent/motion-review-coverage.js +0 -33
- package/dist/motion-agent/motion-review-coverage.js.map +0 -1
- package/dist/motion-agent/motion-review-session.d.ts +0 -65
- package/dist/motion-agent/motion-review-session.js +0 -422
- package/dist/motion-agent/motion-review-session.js.map +0 -1
- package/dist/tools/code-nav.d.ts +0 -29
- package/dist/tools/code-nav.js +0 -299
- package/dist/tools/code-nav.js.map +0 -1
- package/dist/tools/code-skeleton.d.ts +0 -28
- package/dist/tools/code-skeleton.js +0 -115
- package/dist/tools/code-skeleton.js.map +0 -1
- package/dist/tools/search-code.d.ts +0 -10
- package/dist/tools/search-code.js +0 -90
- package/dist/tools/search-code.js.map +0 -1
- package/dist/ui/stores/index.d.ts +0 -2
- package/dist/ui/stores/index.js +0 -3
- package/dist/ui/stores/index.js.map +0 -1
- package/dist/utils/format.d.ts +0 -16
- package/dist/utils/format.js +0 -159
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/shell.d.ts +0 -2
- package/dist/utils/shell.js +0 -8
- package/dist/utils/shell.js.map +0 -1
|
@@ -1,76 +1,65 @@
|
|
|
1
|
-
# Threat Landscape —
|
|
1
|
+
# Threat Landscape — techniques and defensive fingerprints
|
|
2
2
|
|
|
3
|
-
Why the defaults in this skill are what they are.
|
|
3
|
+
Why the defaults in this skill are what they are. Each entry is a **technique** an attacker used, the **fingerprint** a defender can check for, and the **lesson**. Incident names are kept as anchors only; counts and statistics rot, so they are deliberately left out. Markers: **[V]** verified against a primary source, **[S]** volatile or secondary, **[U]** uncertain. Snapshot 3 Oct 2026, reworked 22 Oct 2026.
|
|
4
4
|
|
|
5
|
-
Read
|
|
5
|
+
Read once per full review to set the threat model. Cite only entries that map to a finding.
|
|
6
6
|
|
|
7
|
-
## 1. What automation
|
|
7
|
+
## 1. What automation changed
|
|
8
8
|
|
|
9
|
-
**
|
|
9
|
+
- **AI-orchestrated intrusion is operational** [V] (Anthropic, GTG-1002, Nov 2025). Technique: an agent wired to tooling over MCP ran recon through exfiltration, after operators posed as an authorized security firm. Lesson: a defensive framing in a brief is necessary, never sufficient; the Hard stops still apply.
|
|
10
|
+
- **Machine-found bugs at scale, exploitation not proportionally** [V] (VulnCheck, Jul 2026): AI-attributed vulnerabilities were exploited at about the general rate. Lesson: discovery volume moved the bottleneck to maintainer triage and patch capacity, which is where small teams are weakest.
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
- **Runtime LLM use inside malware** [U] — Google GTIG (Nov 2025) reported malware families that query a hosted model at runtime for obfuscation or collection commands. Not re-verified for this snapshot.
|
|
13
|
-
- **Machine-found bugs at scale** [V] — Anthropic's Project Glasswing reported 23,019 vulnerability candidates; by late July 2026 about 126 had become published CVEs and one was confirmed exploited (per VulnCheck). Candidates are not CVEs, and CVEs are not exploitation.
|
|
12
|
+
What this means for code you write:
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
1. Assume any public repo has been read end-to-end by a machine. Obscurity is not even a delay.
|
|
15
|
+
2. Machines find classes with a cheap verification oracle fastest (web/API, parser memory safety). Business logic and multi-actor authorization remain where expensive breaches happen.
|
|
16
|
+
3. Patch latency is the dominant controllable variable.
|
|
17
|
+
4. Detection that needs a human to read a dashboard within the hour is not a control.
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
## 2. Supply chain
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
| Technique | Defensive fingerprint | Lesson |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| **Self-propagating npm worm** (Shai-Hulud lineage, Sept 2025 onward) [V]: steal a publish token, enumerate the victim's packages, inject, republish | Install hooks added in a patch release; packages you maintain republished without your commit; CI runners as the main victims | CI holds every credential at once; it is the real target |
|
|
24
|
+
| **Fork PR → `pull_request_target` → cache poisoning → OIDC token from runner memory** (TanStack, May 2026) [V] | `pull_request_target`/`workflow_run` jobs that check out PR code; release jobs restoring caches a PR job could write; `id-token: write` outside the publish job | No token theft is needed when CI trust boundaries leak |
|
|
25
|
+
| **Install-time execution without a lifecycle script** (bare `binding.gyp` → implicit `node-gyp rebuild`, mid-2026) [S] | `binding.gyp` in a package with no native need | Scanners that only watch `preinstall`/`postinstall` miss it |
|
|
26
|
+
| **Persistence in editor/agent config** (ChainDrop, Aug 2026) [V]: commits a `SessionStart` hook in `.claude/settings.json` and a `runOn: folderOpen` task in `.vscode/tasks.json` across branches | Those files on any branch, especially authored by an unfamiliar or bot-like identity | Opening the repo executes it; lockfile fixes do not remove it; check all branches |
|
|
27
|
+
| **Malicious release with valid provenance** (ChainDrop; `tensorlake@0.5.144`, Oct 2026, GHSA-rqxj-g25x-4v9v [V]): code pushed to main under a maintainer identity, shipped by the project's own release workflow, payload in a preinstall hook [S] | Direct pushes to the release branch without review; new install hooks | Provenance proves where an artifact was built, not that the build was honest |
|
|
28
|
+
| **Trust bound to a renameable name** (npm trusted publishing "SlugFest", Oct 2026) [S] | Publisher bindings pointing at a renamed, transferred or deleted repo | Bind trust to immutable IDs, in registries and in your own authorization |
|
|
29
|
+
| **Mutable tag repointed** (`tj-actions/changed-files`, Mar 2025, CVE-2025-30066) [S] | `uses: org/action@v1` instead of a 40-char SHA | A tag is not a pin |
|
|
30
|
+
| **Slopsquatting** (Spracklen et al., USENIX Security 2025) [V]: models recommend nonexistent package names, often the same names repeatedly, so squatters register them | A dependency with no history, a single early version, or a name that is a near-miss of a real one | Agents removed the human "does that name look right" check; verify existence first |
|
|
31
|
+
| **Malicious MCP server cloning an official one** (`postmark-mcp`, Sept 2025) [V]: clean releases, then a silent BCC of every email | A tool server whose behaviour changes across updates; unofficial publisher under the expected name | Pin servers and re-review after every update |
|
|
32
|
+
| **Lookalike editor extensions** [U] | Publisher identity differs from the display name; auto-updates on | Registry removal does not clean installed copies |
|
|
23
33
|
|
|
24
|
-
##
|
|
34
|
+
## 3. AI agents as an attack surface
|
|
25
35
|
|
|
26
|
-
|
|
36
|
+
Read `agent-surface.md` in full if the project is an agent, tool server, or AI feature.
|
|
27
37
|
|
|
28
|
-
**
|
|
38
|
+
- **Prompt injection has no reliable prevention** [V] (Nasr et al., arXiv 2510.09023: adaptive attacks bypassed every published defense tested). Design for containment.
|
|
39
|
+
- **Lethal trifecta**: private data + untrusted content + an egress channel. All three together is exploitable.
|
|
40
|
+
- **Sandbox escapes** [U]: files the agent writes inside the sandbox are later read, loaded or executed by a trusted process outside it (symlinks, config files).
|
|
41
|
+
- **Rules-file and skill backdoors** [S]: invisible Unicode in `CLAUDE.md`, `AGENTS.md`, `.cursorrules` or shared skills, instructing exfiltration of `.env` or injection of credential-harvesting code into generated files.
|
|
42
|
+
- **Fetched content steering an agent** [S]: a malicious public issue or support ticket made a credentialed agent leak private data.
|
|
43
|
+
- **AI credentials are loot** [S]: worms read `.claude`, `.cursor` and model-provider auth files alongside cloud keys.
|
|
29
44
|
|
|
30
|
-
|
|
45
|
+
## 4. What is exploited against small teams
|
|
31
46
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
**
|
|
39
|
-
|
|
40
|
-
**CI/CD.** The `tj-actions/changed-files` compromise (Mar 2025, CVE-2025-30066) [S] retroactively repointed version tags at a malicious commit and dumped secrets into build logs. **A mutable tag is not a pin. Pin actions by commit SHA** — GitHub itself recommends it and lets admins enforce it [V].
|
|
41
|
-
|
|
42
|
-
**Slopsquatting.** Spracklen et al. (USENIX Security 2025) [V]: across 576,000 generated code samples from 16 models, 19.7% of recommended packages did not exist (205,474 unique invented names); commercial models did far better than open ones but not zero. When hallucinating prompts were re-run ten times, 43% of names recurred every time — predictable, so registrable. **Agents removed the human "does that name look right" checkpoint.** Verify a package exists, is old enough, and is the one you meant, before adding it — see `supply-chain.md`.
|
|
43
|
-
|
|
44
|
-
**Editor extensions and MCP servers.** Lookalike-extension campaigns on open registries are recurring [U]; extensions auto-update by default and registry removal does not clean installed copies. The first malicious MCP server in the wild, `postmark-mcp` (Koi Security, Sept 2025) [V], copied the official Postmark server under the same npm name, shipped 15 clean versions, then in 1.0.16 added one line BCC-ing every outgoing email to the attacker.
|
|
45
|
-
|
|
46
|
-
## 3. AI coding agents as an attack surface
|
|
47
|
-
|
|
48
|
-
If the project you are hardening is itself an agent, a tool server, or ships an AI feature, read `agent-surface.md` in full. The headline facts:
|
|
49
|
-
|
|
50
|
-
- **Prompt injection has no known reliable prevention** [V]. "The Attacker Moves Second" (Nasr et al., Oct 2025) bypassed 12 published defenses with >90% success for most using adaptive attacks; human red-teaming succeeded on every scenario. Design for containment, not for a filter that holds.
|
|
51
|
-
- **The lethal trifecta** — private data access + untrusted content + an egress channel. Any two are usually fine; all three is exploitable. This is the single most useful architectural test for an agent feature.
|
|
52
|
-
- **Sandbox escapes were the 2026 bumper crop** [U] — multiple critical-severity escapes across the major coding-agent products, including symlink-based escapes and configuration-file protections bypassed from inside the sandbox. The recurring root pattern: **files the agent writes inside the sandbox are later read, loaded, or executed by a trusted process outside it.**
|
|
53
|
-
- **Rules-file and skill backdoors** [S] — instructions hidden in `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, or a shared skill using invisible Unicode (tag codepoints, bidi controls, zero-width characters) land directly in the model's context. Documented payloads have instructed agents to exfiltrate local `.env` contents while suppressing output, and to inject credential-harvesting code into every file they generate — turning the agent into the delivery mechanism for a backdoor that reaches CI and production.
|
|
54
|
-
- **Fetched content is executable-adjacent** [S] — a malicious issue in a public repository was enough to make an assistant leak private repository contents; a support ticket containing embedded instructions caused an agent holding a privileged database credential to publish secrets back into a public thread.
|
|
55
|
-
- **Repo config is now a worm vector** [V] — ChainDrop (above) persisted in agent and editor config. An agent that auto-loads hooks or auto-runs tasks from the repo it opens is executing the repo author's code.
|
|
56
|
-
|
|
57
|
-
## 4. What is actually being exploited against small teams
|
|
58
|
-
|
|
59
|
-
- **Secret sprawl is the number one route.** GitGuardian's *State of Secrets Sprawl 2026* (Mar 2026) [V]: 28.65M new hardcoded secrets in public GitHub commits in 2025 (+34%); AI-service secrets up 81%; 24,008 unique secrets in public MCP configuration files; Claude Code-assisted commits leaked at 3.2% vs a 1.5% baseline; and **64% of valid secrets from 2022 still valid** — leaks are not revoked.
|
|
60
|
-
- **Backend-as-a-service row-level security is the highest-yield indie misconfiguration.** CVE-2025-48757 [S] covered 170+ apps generated by a vibe-coding platform whose Supabase tables lacked RLS, so the public anon key in the page read and wrote everything. Failure modes to check, all [S]: RLS disabled; a permissive `using (true)` policy (what a generator writes when told "add a policy" with no rule); reads locked but writes open; a service-role key in the client bundle; `auth.uid()` present but not compared to the owner column. Generated schemas converge on the same table names, so enumeration is trivial.
|
|
61
|
-
- **Middleware-only auth** [V] — CVE-2025-29927 let any client skip Next.js middleware (fixed in 15.2.3 / 14.2.25 / 13.5.9) by sending an internal `x-middleware-subrequest` header. Apps that checked auth only in middleware were fully open. Enforce authorization again in the route handler or data layer.
|
|
62
|
-
- **Exposed AI and developer infrastructure** [U] — tens of thousands of internet-facing local-inference servers, plus smaller populations of notebook, experiment-tracking and MCP endpoints. Note the honest caveat from the same research: it recorded essentially no AI-aware exploitation; the traffic hitting those ports was generic credential-harvesting scanning probing for `.env` files and cloud secrets. Generic scanners find you first.
|
|
63
|
-
- **AI gateways concentrate credentials** [U] — a compromised dependency in a gateway library can expose an organization's entire portfolio of model provider keys at once. Several agent-framework and low-code AI platform CVEs have been used for initial access, credential harvesting and lateral movement, with at least one on CISA's exploited-vulnerabilities catalog.
|
|
64
|
-
- **Do not over-rotate to AI, though** [V] — one-third of known-exploited vulnerabilities in the first half of 2026 were content-management systems (VulnCheck 1H-2026), with network edge devices next. If the project runs a CMS or sits behind an appliance, that is the likelier door.
|
|
47
|
+
| Technique | Defensive fingerprint | Lesson |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| **Secret sprawl** [V] (GitGuardian, State of Secrets Sprawl 2026): hardcoded keys in commits, MCP configs, AI-assisted commits; old leaks stay valid | Literal keys in history, `.mcp.json`, build logs, client bundles | Leaks are not revoked by deleting the commit; rotate |
|
|
50
|
+
| **Open backend row-level security** (CVE-2025-48757, Supabase apps from a generator) [S] | RLS off; `using (true)`; reads locked but writes open; service-role key in the client; `auth.uid()` not compared to the owner column | The public anon key plus an open table is the standard indie breach |
|
|
51
|
+
| **Middleware-only auth** (CVE-2025-29927, Next.js `x-middleware-subrequest`) [V] | Authorization checked only in `middleware.ts` or edge guards | Re-check in the handler or data layer |
|
|
52
|
+
| **Framework fixed, native dependency reachable** (Next.js, 14 Oct 2026: unauthenticated RCE via SVG in image optimization / `next/og` through `sharp`/librsvg, and via `use cache` returning typed arrays) [V] | Native image/parsing deps in the lockfile; user-controlled images or cached values reaching them | After a framework upgrade, confirm its transitive native deps moved too |
|
|
53
|
+
| **Exposed AI and developer infrastructure** [U]: inference servers, notebooks, MCP endpoints on the internet | Services bound to `0.0.0.0` without auth | Generic credential scanners find you first, not AI-aware attackers |
|
|
54
|
+
| **CMS and edge devices** [V] (VulnCheck 1H-2026): the largest share of known-exploited vulnerabilities | A CMS or appliance in the deployment | Do not over-rotate to AI; check the likelier door |
|
|
65
55
|
|
|
66
56
|
## 5. Speed and economics
|
|
67
57
|
|
|
68
|
-
- **
|
|
69
|
-
- **
|
|
70
|
-
- **Patch aggressively where there is evidence of exploitation.** Guidance in 2026 [S] points toward days, not weeks, for vulnerabilities that are automatable, exploited, and reachable in your deployment.
|
|
58
|
+
- **Leaked credentials are used, not archived.** Any secret that touched a public surface, build log, paste or third-party service is compromised at the moment of exposure.
|
|
59
|
+
- **Patch fast where exploitation is evidenced** and the component is reachable in your deployment: days, not weeks.
|
|
71
60
|
|
|
72
61
|
## How to use this file
|
|
73
62
|
|
|
74
|
-
1. Pick the two or three
|
|
75
|
-
2. Skip the rest.
|
|
76
|
-
3. Re-verify anything
|
|
63
|
+
1. Pick the two or three techniques that plausibly apply to *this* project and write them into the threat model as concrete scenarios.
|
|
64
|
+
2. Skip the rest.
|
|
65
|
+
3. Re-verify anything [S] or [U] before presenting it as current.
|
|
@@ -1,51 +1,35 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: compliance-guard
|
|
3
|
-
description: Use
|
|
3
|
+
description: "Use for the legal side of shipping to real users: which laws apply, what cannot lawfully ship, and the consent, notices and policies the product owes. Do NOT use for bugs, data leaks or security hardening."
|
|
4
4
|
license: Apache-2.0. Content is engineering guidance, not legal advice. See references/provenance.md.
|
|
5
5
|
compatibility: Static review works offline from the bundled references. Legal status changes constantly; date-sensitive claims must be re-verified with web access before being stated as current. Never certifies compliance.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Compliance Guard
|
|
9
9
|
|
|
10
|
-
Catch
|
|
10
|
+
Catch legal, privacy, and regulatory exposure in a shipped product before a regulator, plaintiff's firm, or demand-letter mill does. Built for solo developers and small teams, who are targeted precisely because they ship fast.
|
|
11
11
|
|
|
12
12
|
## Governing rules
|
|
13
13
|
|
|
14
|
-
1. **Exposure drives obligations, not stack.** What the product
|
|
15
|
-
2. **Never certify.**
|
|
16
|
-
3. **Date-check before asserting.**
|
|
17
|
-
4. **Say it plainly when it is illegal
|
|
18
|
-
5. **Fix, do not just flag.**
|
|
19
|
-
6. **Proportionality.**
|
|
20
|
-
7. **Jurisdictions are a matrix
|
|
14
|
+
1. **Exposure drives obligations, not stack.** What the product does, who can reach it, and whose data it touches decide what applies.
|
|
15
|
+
2. **Never certify.** Never write "compliant", "GDPR compliant", "ADA compliant", "fully legal", or "you're covered". Produce risks, implemented controls, residual risk, and a *get a lawyer for this* list, labelled as engineering guidance, not legal advice.
|
|
16
|
+
3. **Date-check before asserting.** References are a snapshot (11 Aug 2026, re-verified in part 3 Oct and 22 Oct 2026) with **[V]/[S]/[U]** markers (`references/provenance.md`). Re-verify dates, thresholds, and "in force" claims with web access; without it, say the claim is from a snapshot. Never invent a citation, section, or deadline.
|
|
17
|
+
4. **Say it plainly when it is illegal** — early, before code: the regime, the red line, the safe subset, and what authorisation would change the answer. Never soften it, never silently build it.
|
|
18
|
+
5. **Fix, do not just flag.** Inline, build the control in. In a full review, report first, then fix what the user selects; fix straight away only when they asked for fixes ("fix it", "make it launch-ready"). Fix what code can fix (consent gating, security P0s via bulletproof's inline gate, opt-out plumbing, deletion propagation, disclosures, accessibility). Documents are templates with `[PLACEHOLDER]` fields; never invent entity name, address, DPO, retention periods, or vendor list.
|
|
19
|
+
6. **Proportionality.** Launch-blocking first, rank by probability × severity, keep the tail as backlog. Sixty findings produce zero fixes.
|
|
20
|
+
7. **Jurisdictions are a matrix.** Who can reach the app sets exposure, not where the company sits: an unblocked EU signup puts a US startup in scope for EU law.
|
|
21
21
|
|
|
22
22
|
## Two modes
|
|
23
23
|
|
|
24
|
-
**Inline gate** — triggered mid-build by a feature
|
|
24
|
+
**Inline gate** — triggered mid-build by a feature with exposure (a pixel, an upload, a subscription, an SMS, a chatbot, a face API, a health field). Do the minimum: name the trigger, apply the control while writing the feature, and note it in `COMPLIANCE.md` only if that file already exists. One or two sentences to the user, not a report.
|
|
25
25
|
|
|
26
26
|
This mode matters most, because the users who need this skill will never ask for it. They ask for a signup page, a Stripe checkout, a contact form, an image upload. **Build the control into the feature as you write it** rather than waiting to be asked — consent-gate the pixel you were told to add, put the unsubscribe link in the email template, enforce authorization at the data layer. Mention it in one line and move on. Do not stop the build to deliver a lecture, and do not silently ship the unsafe version and flag it later.
|
|
27
27
|
|
|
28
|
-
**Full review** — triggered by pre-launch, "is this safe", or an audit. A first use on a project mid-build stays an inline gate.
|
|
28
|
+
**Full review** — triggered by pre-launch, "is this safe", or an audit. A first use on a project mid-build stays an inline gate. **A full review MUST read `references/full-review.md` in full first**: profile sweep, trigger mapping, coverage ledger, product-model pass, jurisdiction table, ranking, implement order, guards, the `COMPLIANCE.md` template, and the plain-language report rules all live there.
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## Intake (full review)
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Do this before asking the user anything. `references/exposure-triage.md` has the full detection sweep; the fast version:
|
|
35
|
-
|
|
36
|
-
- **Reach**: is there a deployed public surface? Look for hosting/deploy config (`vercel.json`, `netlify.toml`, `fly.toml`, Dockerfile + ingress, `wrangler.toml`), a domain, a marketing page, app-store metadata, an auth flow.
|
|
37
|
-
- **Personal data**: schema/model files, migrations, form fields, session tables — email, name, phone, address, IP, device ID, location, DOB, photo, voice, health, payment, government ID.
|
|
38
|
-
- **Third parties**: every `<script src>`, tag manager, analytics, ad pixel, session replay, chat widget, error tracker, CDN font, LLM API, email/SMS provider, payment provider.
|
|
39
|
-
- **Money**: payment SDK, subscription/plan tables, trial logic, refund logic, payouts to users, wallets, balances.
|
|
40
|
-
- **People-facing decisions**: any code that scores, ranks, screens, approves, or rejects a human.
|
|
41
|
-
- **UGC**: uploads, comments, profiles, messaging, sharing, public feeds.
|
|
42
|
-
- **Domain signals**: table and route names carry the truth — `patients`, `diagnos*`, `prescription`, `loan`, `kyc`, `wallet`, `bet`, `wager`, `prize`, `minor`, `age`, `student`, `applicant`, `background_check`, `face_embedding`, `voiceprint`.
|
|
43
|
-
- **Messaging**: transactional vs marketing email, SMS, push.
|
|
44
|
-
- **AI**: model calls, agents with tools, chat personas, generated images/audio/video, training on user data.
|
|
45
|
-
|
|
46
|
-
### 2. Ask only what the code cannot tell you
|
|
47
|
-
|
|
48
|
-
Cap at **five questions**, batched in one message, in plain language, each stating the default you will assume if unanswered. Assume the user does not know what GDPR, CCPA, or an "entity" is — ask about facts they know, not about law.
|
|
32
|
+
Profile the code first; then ask only what it cannot tell you. At most **five questions** in one `ask_user` call, plain language, each option showing its default. Ask about facts the user knows, not law.
|
|
49
33
|
|
|
50
34
|
| Ask | Default if unanswered |
|
|
51
35
|
|---|---|
|
|
@@ -55,212 +39,75 @@ Cap at **five questions**, batched in one message, in plain language, each stati
|
|
|
55
39
|
| 4. Could under-18s realistically use it? Any age check? | **Possible, no age gate** |
|
|
56
40
|
| 5. Is there a registered company, or is this you personally? | **No company — the user is personally exposed** |
|
|
57
41
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
A non-answer is itself information. "I don't know if we have EU users" means you do, because nothing is blocking them.
|
|
61
|
-
|
|
62
|
-
### 3. Map triggers to obligations
|
|
63
|
-
|
|
64
|
-
Use `references/trigger-map.md` as the spine: each observable product fact maps to the regimes it triggers and the concrete artifact or code change required. Then pull the depth you need:
|
|
65
|
-
|
|
66
|
-
- `references/lawsuit-vectors.md` for what actually produces demand letters and class actions — read this **first** for any consumer-facing web product, it has the highest hit rate.
|
|
67
|
-
- `references/us.md` and `references/eu-uk.md` for jurisdiction detail, thresholds, and dates.
|
|
68
|
-
- `references/sector-gates.md` whenever a domain signal fires — this is where "you cannot ship this" lives.
|
|
69
|
-
- `references/security-baseline.md` for the pre-deploy technical blockers.
|
|
70
|
-
- `references/artifacts.md` for what each required document or flow must actually contain.
|
|
71
|
-
|
|
72
|
-
Do not read every reference by default. Load the ones the profile triggered.
|
|
73
|
-
|
|
74
|
-
**Then sweep the fixed checklists and emit a coverage ledger.** Narrative review finds what stands out and silently drops the rest — the boring items go missing precisely because they are boring, and an item you never wrote down is an item you never checked. So for any deployed product, produce this table **in the output**, one row per item, before writing any findings:
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
| # | Checklist item | fail / pass / n-a | Evidence |
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
Walk **every numbered item** of the PRE-DEPLOY BLOCKERS list in `security-baseline.md` (one row per numbered item, in order, including sub-numbered ones such as 4b) and **every universal row** of `trigger-map.md` section A. Add mandatory rows for **accessibility** on any product with a public UI — one row each for image alternatives, form labels, keyboard operability of every clickable element, colour contrast computed from the literal values in the source, focus visibility, media controls and captions on any audio or video element, and page language. These are the first thing scanned in the wild and the first thing dropped from a review, because they are never the most interesting finding on the page. **Emit these rows even when the report is long and the dramatic findings are elsewhere** — they are the highest-frequency real-world claim in this entire file, and dropping them under output pressure is the single most repeated failure in evaluation.
|
|
81
|
-
|
|
82
|
-
Add a mandatory row for **consumer contract duties** wherever money is taken from consumers, and for **platform duties** wherever users publish or upload — one row per applicable jurisdiction, not one row total. Add one mandatory row for **minors** on any consumer-facing product: the intake default is that under-18s are possible and there is no age gate, so this row is `fail` unless the code shows an actual age gate — "the terms say 18+" is not one. `n-a` requires a reason. This is mechanical, not a judgement call: you may not shorten the list, merge rows, or drop an item because something more dramatic was already found. An unverified payment webhook and an unmetered LLM endpoint are not less real than a headline issue, only less interesting.
|
|
83
|
-
|
|
84
|
-
**Every `fail` row becomes its own finding — and coverage survives the output format.** The ledger is a working artifact, not the deliverable. If the report format has no ledger, or you were asked for findings only, the sweep still runs and each failing item still appears as a separate numbered finding. Coverage is a property of the findings, never of an optional table: an obligation that exists only inside a ledger you were not asked to print has not been reported at all.
|
|
85
|
-
|
|
86
|
-
So regardless of format, a deployed product with a public UI always yields **separate** findings for each failing accessibility defect class, and a product taking consumer money or hosting user content always yields the consumer-contract and platform-duty findings for **each** applicable jurisdiction. Never merge these into one "accessibility issues" or "platform duties" row, and never describe a defect you did not see in the source — report the elements that are actually present, not the ones this file lists as examples.
|
|
42
|
+
No second round. If unanswered, proceed on the defaults, say which you used, and label findings assumption-based. **The defaults are deliberately the cautious reading**: a novice who ignores the questions must not get a quieter report. "I don't know if we have EU users" means you do, because nothing blocks them.
|
|
87
43
|
|
|
88
|
-
|
|
44
|
+
## Severity ladder
|
|
89
45
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
**Then do a second pass on the product model, not the files.** The code sweep finds defects that live in a line. It reliably misses obligations that arise from **what the product is**, or from *two facts combined*, because neither fact looks wrong on its own. Ask these five explicitly, every time:
|
|
93
|
-
|
|
94
|
-
1. **Does value move?** Balances, credits, in-app currency, tips, wallets, payouts, cash-out to a bank. Currency in + cash out = a money-transmission question no matter how small, and it is a **licensing gate**, not a to-do.
|
|
95
|
-
2. **Is it a platform?** If users publish, upload, or message each other, intermediary duties attach as a matter of status: notice-and-action, a contact point, moderation terms, a DMCA agent, illegal-content and child-safety processes. These never appear as a code defect — they appear as *absence*.
|
|
96
|
-
3. **Does it generate or manipulate media?** Synthetic audio, video, images, or a persona needs provenance marking and user-facing labelling — and this is **a second, separate finding from whether generating it was permitted at all**. Both runs of an evaluation caught unconsented voice cloning as illegal and then omitted the labelling duty entirely, because the dramatic finding felt like it had covered the topic. Consent to generate and disclosure of what was generated are different obligations owed to different people; emit both.
|
|
97
|
-
|
|
98
|
-
3b. **Where do credentials and financial identifiers live?** Bank account numbers, IBANs, tax identifiers, government IDs and payout details are high-value data whose storage is routinely written without any access control, encryption, or retention rule because they read as ordinary columns. Check them explicitly whenever a schema contains a payout, KYC, or identity field.
|
|
99
|
-
4. **Do people get tracked across contexts?** Then opt-out preference signals must be honoured server-side and the opt-out must actually sever the recipient. Nothing in the code will look broken; the handler simply will not exist.
|
|
100
|
-
5. **What two features combine into a third regime?** Video content **plus** an ad pixel is a distinct video-privacy claim, not just a tracking issue. In-app currency **plus** withdrawal is money movement. Biometrics **plus** a minor is a different statute. User uploads **plus** adult content is age assurance. Look for pairs, not just items.
|
|
101
|
-
|
|
102
|
-
**Name every jurisdiction's version of the same duty.** Most obligations exist in both regimes under different names, and a review reliably names the first one it thinks of and stops — so the EU version goes missing from US-shaped reasoning and vice versa. Once a duty fires, ask "what is this called in the other regime, and does it add anything?" and emit a row for each:
|
|
103
|
-
|
|
104
|
-
| Duty | US instantiation | EU/UK instantiation |
|
|
105
|
-
|---|---|---|
|
|
106
|
-
| Hosting user content | DMCA agent + repeat-infringer policy, CSAM reporting, NCII takedown | **DSA** notice-and-action, contact point, moderation terms, minors' protection; UK Online Safety duties |
|
|
107
|
-
| Selling to consumers | ROSCA and state auto-renewal, junk-fee rules | **Pre-contract information, 14-day withdrawal right and the digital-content waiver**, unfair-terms limits, VAT/OSS |
|
|
108
|
-
| Tracking | CIPA and state opt-out, GPC | ePrivacy prior consent, GDPR lawful basis |
|
|
109
|
-
| Biometrics | BIPA written release + retention schedule | GDPR Art 9 basis, AI Act biometric-categorisation duties |
|
|
110
|
-
| Automated decisions | ADMT notice and opt-out, FCRA, ECOA | AI Act risk tier, GDPR Art 22 |
|
|
111
|
-
| Accessibility | ADA Title III, WCAG in practice | EAA and EN 301 549 |
|
|
112
|
-
| Synthetic media | State provenance and disclosure laws | AI Act Art 50 marking and labelling |
|
|
113
|
-
|
|
114
|
-
An EU-established company gets the EU column as the headline. That is the row a regulator in its own country will open with, and the one a US-shaped review is most likely to omit entirely.
|
|
115
|
-
|
|
116
|
-
**Severity rule for licensed activities.** If an activity requires a licence, registration, or authorisation the user does not have — gambling, money transmission, lending, medical claims, regulated advice — that is **ILLEGAL**, not BLOCKER. BLOCKER means "ship this and something bad becomes likely"; ILLEGAL means "operating this without authorisation is itself the offence". Downgrading the second to the first reads as "fix it soon" and is the wrong instruction.
|
|
117
|
-
|
|
118
|
-
**Read the prose, not only the code.** README files, landing-page copy, pricing pages and app-store descriptions state the audience and the claims that the schema never reveals — "kids can make profiles too", "tells you what medication to give", "we import listings from X", "HIPAA-ready", "bank-level security". A sentence in a README is as much a trigger as a column name, and is frequently the only place a minors audience, a health claim, or a data-sourcing practice is admitted. Any statement about who uses the product or what it does for them must be run through the trigger map like a code signal.
|
|
119
|
-
|
|
120
|
-
### 4. Rank by realistic exposure
|
|
121
|
-
|
|
122
|
-
Severity ladder — use these exact labels in the report:
|
|
46
|
+
Use these exact labels:
|
|
123
47
|
|
|
124
48
|
| Label | Meaning |
|
|
125
49
|
|---|---|
|
|
126
|
-
| **ILLEGAL** | Cannot lawfully ship as described
|
|
127
|
-
| **BLOCKER** | Ship
|
|
128
|
-
| **HIGH** | Realistic regulator or plaintiff exposure within months.
|
|
129
|
-
| **MEDIUM** | Real obligation, low near-term probability, or
|
|
130
|
-
| **BACKLOG** | Applies at scale or on a future trigger
|
|
50
|
+
| **ILLEGAL** | Cannot lawfully ship as described: needs a licence or authorisation the user lacks, is banned, or is criminal. Stop and redirect. |
|
|
51
|
+
| **BLOCKER** | Ship it and harm is likely and hard to undo: exposed keys, no authorization, public write to user data, tracking before consent in a consent jurisdiction, children's data with no COPPA path, a private-right-of-action fingerprint. |
|
|
52
|
+
| **HIGH** | Realistic regulator or plaintiff exposure within months. |
|
|
53
|
+
| **MEDIUM** | Real obligation, low near-term probability, or easy to add later. |
|
|
54
|
+
| **BACKLOG** | Applies at scale or on a future trigger. |
|
|
131
55
|
| **LAWYER** | Cannot be resolved by code or template. Name it, do not guess it. |
|
|
132
56
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
**Lead with the jurisdiction the product actually operates in.** Worldwide reachability means other regimes apply, but it does not make them equally likely. For an EU company selling to EU customers, the EU regime is the headline and US exposure is a secondary section — and the reverse for a US product. Framing an EU-only product's central finding under a US statute is a real error: it buries the rule that will actually be enforced and sends the user to the wrong kind of lawyer. State the primary regime, then list the others as "also applies if you have users in X".
|
|
136
|
-
|
|
137
|
-
**Check for an outright ban before writing up an obligation.** Some regimes prohibit a practice rather than conditioning it — the EU AI Act's Art 5 list is the one small builders hit by accident. If a feature is banned, it is **ILLEGAL** and the fix is deletion; do not report it as a disclosure or consent obligation, because a transparency rule sitting next to a prohibition will read as the applicable one and quietly authorise the thing that is forbidden.
|
|
138
|
-
|
|
139
|
-
### 5. Implement
|
|
140
|
-
|
|
141
|
-
Fix in this order: BLOCKER security → tracking/consent gating → required disclosures and flows → documents → backlog. For each fix, make the smallest change that actually holds, and prefer a single enforced chokepoint over scattered checks (one `canSend()` gate, one `displayPrice()`, one consent state, one server-side authorization helper).
|
|
57
|
+
**Severity rule for licensed activities:** operating without a required licence, registration, or authorisation (gambling, money transmission, lending, medical claims, regulated advice) is **ILLEGAL**, not BLOCKER. BLOCKER means "something bad becomes likely"; ILLEGAL means "operating it is itself the offence". Downgrading reads as "fix it soon", the wrong instruction.
|
|
142
58
|
|
|
143
|
-
|
|
59
|
+
## Evidence labels
|
|
144
60
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
This is what separates a real review from a plausible-sounding one. **Reading code tells you what someone intended; running it tells you what ships.**
|
|
148
|
-
|
|
149
|
-
**Observe before asserting.** Static detection has false negatives that matter more than its false positives: tags injected at runtime by a tag manager, scripts added through a hosting dashboard and absent from the repo entirely, a framework's script component whose loading strategy decides whether consent is respected, a vendor SDK that phones home from inside a dependency. Grepping for `fbq(` finds none of those. Where the app can be run, verify the behaviour directly — load a page and record which third-party origins are contacted before any consent interaction, sign in as one user and request another user's object by id, submit the form and read what actually reaches the network. Label every finding with exactly one of three states — the distinction is between *running* and *reading*, not between certain and uncertain:
|
|
61
|
+
Reading code shows intent; running it shows what ships. Label every finding and every fix with exactly one — the split is *ran* vs *read*, not certain vs uncertain:
|
|
150
62
|
|
|
151
63
|
| Label | Means | Example |
|
|
152
64
|
|---|---|---|
|
|
153
65
|
| **RUNTIME** | You executed it and watched the result | Loaded the page, saw `connect.facebook.net` requested before any consent click |
|
|
154
|
-
| **CODE** | You read it in the source
|
|
155
|
-
| **DEDUCED** |
|
|
156
|
-
|
|
157
|
-
Never relabel upward. A `CODE` finding does not become `RUNTIME` because you are confident. Where you could not run the app at all, say so once at the top of the report rather than repeating it per finding — and note that the review therefore cannot see runtime-injected tags, dashboard-added scripts, or anything outside the repo.
|
|
158
|
-
|
|
159
|
-
**Then make the fix self-enforcing.** A register is a snapshot that starts rotting the moment someone adds a feature; a failing test is not. For every BLOCKER and HIGH you fix, leave a check that fails if it regresses, and wire it into the project's existing test or CI setup rather than inventing a parallel one:
|
|
160
|
-
|
|
161
|
-
| Fix | Guard that keeps it fixed |
|
|
162
|
-
|---|---|
|
|
163
|
-
| Consent gating | Test asserting **zero third-party network requests before consent** on first paint. The single highest-value check in this file. |
|
|
164
|
-
| Accessibility | `axe-core` run over the top routes, failing on `serious` and `critical` |
|
|
165
|
-
| Secrets | Secret scanner on commits, plus a test that the client bundle contains no key pattern |
|
|
166
|
-
| Authorization | A test that user A cannot read or write user B's object by id |
|
|
167
|
-
| Marketing email | A test that every send path goes through the one gate and includes an unsubscribe header |
|
|
168
|
-
| Licence contamination | Dependency licence scan that **fails**, not warns, on copyleft and unknown |
|
|
169
|
-
|
|
170
|
-
If the project has no test runner at all, say so plainly and add the one check with the highest ratio of protection to setup cost rather than building a test harness they did not ask for.
|
|
171
|
-
|
|
172
|
-
**Never report a fix you did not verify.** "Consent gating added" without loading the page is exactly the false assurance this skill exists to prevent — it is worse than the original finding, because the user now believes they are safe. If you could not run it, say "implemented, not verified — run `<command>` to confirm".
|
|
173
|
-
|
|
174
|
-
### 7. Report and persist
|
|
175
|
-
|
|
176
|
-
Write or update **`COMPLIANCE.md`** at the repo root (or extend an existing register if one exists). Structure:
|
|
177
|
-
|
|
178
|
-
```markdown
|
|
179
|
-
# Compliance Register
|
|
180
|
-
Snapshot: <date> · Reviewed by: EZ Coder compliance-guard · NOT LEGAL ADVICE
|
|
181
|
-
|
|
182
|
-
## Assumed exposure profile
|
|
183
|
-
<reach, jurisdictions, data classes, minors, money, domain, third parties — mark each Confirmed or Assumed>
|
|
184
|
-
|
|
185
|
-
## Findings
|
|
186
|
-
| ID | Severity | Trigger | Evidence (RUNTIME / CODE / DEDUCED) | Obligation | Status | Guard |
|
|
187
|
-
|
|
188
|
-
## Implemented in this pass
|
|
189
|
-
## Open — needs a decision from you
|
|
190
|
-
## Needs a lawyer
|
|
191
|
-
## Re-verify before relying (date-sensitive)
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
Keep IDs stable across runs so the register is diffable. Re-running the skill updates statuses rather than rewriting history.
|
|
66
|
+
| **CODE** | You read it in the source, did not run it | Pixel snippet in `layout.tsx` with no consent check |
|
|
67
|
+
| **DEDUCED** | Concluded from absence or context | No privacy-policy route anywhere in the repo |
|
|
195
68
|
|
|
196
|
-
**
|
|
197
|
-
|
|
198
|
-
### 8. Write it for someone who has never read a statute
|
|
199
|
-
|
|
200
|
-
The register is the artifact; the message to the user is what actually gets acted on. Most users of this skill cannot tell a real risk from a theoretical one and will either panic or ignore everything. Neither produces a fix.
|
|
201
|
-
|
|
202
|
-
**Every finding you surface must answer four things in plain words:**
|
|
203
|
-
|
|
204
|
-
1. **What in your app causes this** — name the file, line, or feature. "The Meta pixel in `app/layout.tsx` loads before anyone agrees to it."
|
|
205
|
-
2. **What could actually happen** — the real-world consequence, not the statute. "This is the single most common thing US law firms send demand letters about. Damages are claimed per visitor."
|
|
206
|
-
3. **What it takes to fix** — who does it and roughly how long. "I already fixed it" / "20 minutes of your time" / "a lawyer, a few hundred dollars".
|
|
207
|
-
4. **What happens if you ignore it** — honestly, including "probably nothing for a while" where that is true.
|
|
208
|
-
|
|
209
|
-
**Language rules.** Lead with the plain-English name, and put the statute in parentheses only if it helps them search — "tracking people before they agree to it (CIPA)", not "CIPA §631 exposure". Never use an unexplained acronym. Never say "you may wish to consider" when you mean "do this before launch". Translate every legal term the first time you use it: a *processor* is a company that handles your users' data for you; a *lawful basis* is your reason for being allowed to hold the data at all.
|
|
210
|
-
|
|
211
|
-
**Give them a ranked, finite next action.** End with at most three things to do next, in order, with the first one being the smallest. A user who reads "you have 47 issues" fixes zero. A user who reads "do this one thing today, these two this week" fixes three.
|
|
212
|
-
|
|
213
|
-
**Say what is already done.** Separate *"I fixed these while I was in here"* from *"you have to decide these"* from *"this one needs a real lawyer"*. Confusing the three is what makes people give up.
|
|
214
|
-
|
|
215
|
-
**Do not moralise and do not catastrophise.** State the base rate. "Small apps get sued over this regularly" and "this almost never gets enforced against someone your size, but it is cheap to fix" are both useful; "you could be fined €20 million" is not, because they will stop reading.
|
|
216
|
-
|
|
217
|
-
## Scaling: one agent or several
|
|
218
|
-
|
|
219
|
-
| Situation | Do |
|
|
220
|
-
|---|---|
|
|
221
|
-
| Inline gate, small edit, single feature | Main thread only. Never spawn for an inline gate. |
|
|
222
|
-
| Full review, one deployable, one primary jurisdiction, every ledger row readable by you | Stay single-threaded. |
|
|
223
|
-
| Several deployables/surfaces (web + mobile + admin + marketing site) **and** several jurisdictions or data flows | Build the coverage ledger first (rows = ledger items × surfaces × jurisdictions), then fan out. |
|
|
224
|
-
|
|
225
|
-
Fan-out rules:
|
|
226
|
-
- One `spawn_agent` call, ≤ 6 read-only children, each owning a disjoint slice — **by product surface** (paths) or **by jurisdiction** (US / EU / UK). Brief each with: absolute skill root, the exact reference files to read, its paths, the ledger rows it owns, the RUNTIME/CODE/DEDUCED labels, `[V]/[S]/[U]` markers, and the output schema (finding, file:line, label, severity, fix, plus explicit `checked` and `not checked` lists). Children never see this conversation.
|
|
227
|
-
- Dated legal claims the report will rely on → one `researcher` child per jurisdiction to re-verify against primary sources (statute site, official journal, regulator, court), returning date, status, and URL.
|
|
228
|
-
- **Merge:** a child that fails, times out, or omits a row → that row is `not checked`, never clean. Re-open each reported file:line yourself before reporting it.
|
|
229
|
-
- **Independent verification, always, for a full review:** a fresh-context child gets the draft findings and tries to disprove each one (wrong jurisdiction, ban vs duty, stale date, wrong label). Downgrade or drop what it refutes.
|
|
230
|
-
- Fixes stay serialized in the main thread (or `bee` children on strictly disjoint files); run checks once after merging.
|
|
69
|
+
**Never relabel upward**: confidence does not turn CODE into RUNTIME. **Never report a fix you did not verify** — "consent gating added" without loading the page is worse than the original finding, because the user now believes they are safe. Say "implemented, not verified — run `<command>` to confirm".
|
|
231
70
|
|
|
232
71
|
## Hard stops
|
|
233
72
|
|
|
234
|
-
Do not build these,
|
|
73
|
+
Do not build these, however framed. State the reason and offer the lawful subset from `references/sector-gates.md`:
|
|
235
74
|
|
|
236
|
-
- Tools
|
|
237
|
-
- Sexual content involving minors, or any pipeline that
|
|
238
|
-
- Unlicensed money transmission, unregistered securities offerings,
|
|
239
|
-
- Medical diagnosis, treatment decisions, or prescribing sold
|
|
240
|
-
- Covert
|
|
241
|
-
- Deceptive-by-design flows
|
|
75
|
+
- Tools to evade a legal control: age-verification bypass, sanctions/OFAC evasion, KYC circumvention, unauthorized access, stalkerware or covert tracking, scraping behind an auth wall you agreed not to bypass.
|
|
76
|
+
- Sexual content involving minors, or any pipeline that could generate it; non-consensual intimate imagery and sexual deepfakes of real people.
|
|
77
|
+
- Unlicensed money transmission, unregistered securities offerings, unlicensed real-money gambling presented as "just an app".
|
|
78
|
+
- Medical diagnosis, treatment decisions, or prescribing sold without the required clearance and clinical governance.
|
|
79
|
+
- Covert recording, keylogging, screen capture, or location tracking of a person without their knowledge, including "employee monitoring" and "parental control" framings that hide from the monitored person where notice is required.
|
|
80
|
+
- Deceptive-by-design flows: fabricated reviews and testimonials, fake scarcity counters, cancellation paths built to fail, hidden mandatory fees.
|
|
242
81
|
|
|
243
82
|
## Honesty rules
|
|
244
83
|
|
|
245
|
-
- Never state or imply the product is compliant, safe, or legal
|
|
246
|
-
- Never claim a scan proves accessibility or security
|
|
247
|
-
- Never present something you read as something you ran.
|
|
248
|
-
- Report what you did **not** check
|
|
249
|
-
- Never fabricate a statute, section
|
|
250
|
-
-
|
|
251
|
-
-
|
|
252
|
-
|
|
84
|
+
- Never state or imply the product is compliant, safe, or legal; state what was checked, fixed, and left.
|
|
85
|
+
- Never claim a scan proves accessibility or security; automated checks find a minority of defects.
|
|
86
|
+
- Never present something you read as something you ran. "I could not verify this" is a useful output; a fabricated confirmation is not.
|
|
87
|
+
- Report what you did **not** check (mobile app, admin panel, marketing site). Silent skips read as full coverage.
|
|
88
|
+
- Never fabricate a statute, section, case, date, or penalty. Preserve **[V]/[S]/[U]**; never launder an [S] or [U] into a confident claim.
|
|
89
|
+
- No fear as a lever: give the base rate and the fix.
|
|
90
|
+
- When the user says a jurisdiction does not apply, record it as their stated assumption.
|
|
91
|
+
|
|
92
|
+
## Scaling
|
|
93
|
+
|
|
94
|
+
- Inline gate, or a full review of one deployable in one primary jurisdiction: stay single-threaded.
|
|
95
|
+
- Several surfaces (web, mobile, admin, marketing) and several jurisdictions: build the coverage ledger first, then fan out read-only repo helpers sliced by surface or by jurisdiction, each owning disjoint ledger rows.
|
|
96
|
+
- Dated legal claims the report relies on: one researcher per jurisdiction re-verifies against primary sources (date, status, URL).
|
|
97
|
+
- Every full review: a fresh verifier tries to disprove each finding (wrong jurisdiction, ban vs duty, stale date, wrong label); downgrade or drop what it refutes. Fixes: main thread or an editor on disjoint files.
|
|
98
|
+
- Helper types, brief contents and merge rules come with the skill loader.
|
|
253
99
|
|
|
254
100
|
## Reference map
|
|
255
101
|
|
|
256
|
-
Resolve
|
|
102
|
+
Resolve paths from the skill root. Load only what the exposure profile triggered.
|
|
257
103
|
|
|
258
|
-
- `references/
|
|
259
|
-
- `references/
|
|
260
|
-
- `references/
|
|
261
|
-
- `references/
|
|
262
|
-
- `references/
|
|
104
|
+
- `references/full-review.md` — the full-review workflow. **Read in full before any full review.**
|
|
105
|
+
- `references/exposure-triage.md` — detection sweep: greps, file signatures, question set.
|
|
106
|
+
- `references/trigger-map.md` — observable fact → regimes → required action; the routing index.
|
|
107
|
+
- `references/lawsuit-vectors.md` — private suits, demand-letter mills, the fingerprints they scan for, fixes. First for any consumer web product.
|
|
108
|
+
- `references/security-baseline.md` — numbered PRE-DEPLOY BLOCKERS and AI-generated-code failure modes; security depth defers to the bulletproof skill.
|
|
109
|
+
- `references/us.md` — US federal and state: privacy, minors, health/biometric, AI, marketing, accessibility.
|
|
263
110
|
- `references/eu-uk.md` — GDPR/UK GDPR, ePrivacy, AI Act, DSA, EAA, CRA, Online Safety Act.
|
|
264
|
-
- `references/sector-gates.md` — regulated and prohibited domains, safe subsets,
|
|
265
|
-
- `references/artifacts.md` —
|
|
266
|
-
- `references/provenance.md` — snapshot
|
|
111
|
+
- `references/sector-gates.md` — regulated and prohibited domains, safe subsets, red-flag phrases.
|
|
112
|
+
- `references/artifacts.md` — skeletons: privacy policy, terms, consent banner, DSAR flow, AI disclosures, email/SMS, app-store gates, DPAs.
|
|
113
|
+
- `references/provenance.md` — snapshot dates, sources, markers, re-verification log, what decays fastest.
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# Artifacts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Contents
|
|
4
|
+
- 1. Privacy policy
|
|
5
|
+
- 2. Terms of service
|
|
6
|
+
- 3. Consent and preference infrastructure
|
|
7
|
+
- 4. Data subject / consumer rights flow
|
|
8
|
+
- 5. Records and governance
|
|
9
|
+
- 6. Accessibility statement
|
|
10
|
+
- 7. AI disclosures
|
|
11
|
+
- 8. Email and SMS in code
|
|
12
|
+
- 9. App store gates
|
|
13
|
+
- 10. Business basics (flag, do not draft)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
What each required document or flow must actually contain, as a skeleton to generate against. Snapshot **11 Aug 2026**, spot re-verified 3 Oct 2026 and 22 Oct 2026 (see `provenance.md`).
|
|
4
17
|
|
|
5
18
|
**Rule for every document here:** generate it with `[PLACEHOLDER]` fields for facts only the user has, never invent entity names, addresses, retention periods, or vendor lists, and mark the output as a template that needs review. State plainly which artifacts a competent developer can safely template and which genuinely need a lawyer.
|
|
6
19
|
|