{
  "version": 1,
  "templates": [
    {
      "id": "never-force-push-main",
      "name": "Never force-push to main",
      "category": "Git Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "git\\s+push\\s+(--force|-f)",
      "problem": "Stops destructive history rewrites on protected branches before they land.",
      "roi": "Protects every shared repo from the fastest irreversible mistake.",
      "rollout": "Enable on every team repo on day one."
    },
    {
      "id": "never-skip-tests-before-commit",
      "name": "Never skip tests before commit",
      "category": "Verification",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "git\\s+commit",
      "problem": "Requires proof before code leaves the laptop, reducing broken commits and noisy CI.",
      "roi": "Cuts review churn and CI rollback time across the team.",
      "rollout": "Pair with repository-specific test commands."
    },
    {
      "id": "evidence-before-done",
      "name": "Require evidence before saying done",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "completion_claim_without_verification",
      "problem": "Prevents agents from claiming success without test, deploy, or runtime evidence.",
      "roi": "Raises trust in autonomous runs and reduces manual re-checking.",
      "rollout": "Use for every workflow where proof matters more than speed."
    },
    {
      "id": "require-catalog-compose-only",
      "name": "Require catalog-compose-only agent UI",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(generative\\s*ui|compose\\s*ui|openui|@openuidev).*(invent|arbitrary|eval|new Function|dangerouslySetInnerHTML|install\\s+@openuidev|clone\\s+openui)|component\\s+not\\s+in\\s+catalog|unknown\\s+component",
      "problem": "Blocks agents from inventing UI components outside an allowlisted catalog or running generated code. OpenUI's safe-by-default FORMAT: compose only from your components.",
      "roi": "Stops generative-UI theater and arbitrary-code compose paths. Keeps agent dashboards/widgets inside a known catalog without cloning OpenUI/Thesys.",
      "rollout": "Enable for any agent-composed UI, dashboard widget, or tool-result card. Pair with openui-catalog-compose-honesty --catalog --stream --json."
    },
    {
      "id": "require-repair-before-compose-claim",
      "name": "Require repair-before-claim on composed UI",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(ui|compose|generative\\s*ui|dashboard\\s*widget).*(ready|done|shipped|fixed|live)|claim.*compose.*(ready|done)",
      "problem": "Blocks claiming composed UI is ready before a line-level validate+repair pass (root present, unknown components dropped, zero arbitrary-code lines).",
      "roi": "Mirrors OpenUI Gateway's repair-before-users-see-it FORMAT on ThumbGate rails: invalid compose never becomes a completion claim.",
      "rollout": "Require openui-catalog-compose-honesty --repair --claim-ready evidence before any compose/UI done claim. Does not install OpenUI Gateway."
    },
    {
      "id": "require-typed-pretool-questions",
      "name": "Require typed noul/choice/score PreToolUse questions",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(?=[\\s\\S]*(should we allow this tool call|free-?form judge|llm[- ]adjudicat|typesafe-sdk|api\\.typesafe\\.ai|clone\\s+jev|jev-latest))(?=[\\s\\S]*(pretooluse|gate-check))|question type (prompt|text|chat)",
      "problem": "Blocks free-form LLM judges and TypeSafe/Jev SKU clones as the PreToolUse gate. TypeSafe FORMAT: atomic noul/choice/score questions over one tool-call state, answered deterministically.",
      "roi": "Keeps PreToolUse as typed, inspectable questions instead of a prompt-and-parse adjudicator. Does not install typesafe-sdk.",
      "rollout": "Pair with typesafe-typed-questions --json. Enable wherever an agent wants to add a second-model judge in front of gate-check."
    },
    {
      "id": "require-code-owned-route",
      "name": "Require code-owned pass/review/block route",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(?=[\\s\\S]*(model-emitted verdict|wire jev as the gate|use-typesafe-api|llm[- ]adjudicat|clone jev))(?=[\\s\\S]*(route|verdict|pretooluse))|permissionDecision[\\s\\S]*(allow|deny)[\\s\\S]*from[\\s\\S]*(jev|llm)",
      "problem": "Blocks letting Jev, an LLM adjudicator, or any model emit the PreToolUse verdict. TypeSafe FORMAT: code owns route(); confidence is a second axis.",
      "roi": "Same probabilities, different policies. Thresholds live in code, not in a prompt. LLM adjudicator #3690/#3687 stays parked.",
      "rollout": "Require typesafe-typed-questions --claim-ready evidence before claiming a typed-question hook is ready. Does not call api.typesafe.ai."
    },
    {
      "id": "require-compute-unit-proof",
      "name": "Require Compute Unit / plan receipt before Colab GPU claims",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(?=[\\s\\S]*(colab pro\\+|proplus|a100|v100|background execution|24 hours?|compute units?))(?=[\\s\\S]*(eval|offload|gpu|notebook|colab))",
      "problem": "Blocks treating a Colab Subscribe button or CU pack as a dedicated GPU. Live /signup: paid SKUs sell Compute Units; Subscribe visible is not a receipt.",
      "roi": "Stops A100/Pro+ offload theater. ThumbGate evals stay on GitHub Actions.",
      "rollout": "Pair with colab-compute-honesty --json. Require --plan-proof from a Current-plan receipt."
    },
    {
      "id": "refuse-colab-sku-clone",
      "name": "Refuse Colab-runner SKU clones and surprise Pro spend",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "colab-cli|google-colab-pro-runner|ngrok.{0,40}colab|colab.{0,40}ssh|zero-cost a100|buy.{0,20}colab pro",
      "problem": "Blocks cloning Colab as a ThumbGate GPU harness or buying Pro/Pro+/CU from an agent session.",
      "roi": "No surprise $9.99/$49.99 spend. No fake colab-cli.",
      "rollout": "Enable wherever an agent proposes Colab offload. Does not purchase a plan."
    },
    {
      "id": "refuse-omp-install-collab",
      "name": "Refuse omp installer and full-control collab write links",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "omp\\.sh/install|@oh-my-pi/pi-coding-agent|wss://my\\.omp\\.sh|full-control collab",
      "problem": "Blocks installing @oh-my-pi/pi-coding-agent and opening a bearer link that can prompt or interrupt the host.",
      "roi": "Keeps coordination on the checkout lease. Reading omp.sh/docs does not match.",
      "rollout": "Pair with omp-coordination-honesty --json. Does not install omp."
    },
    {
      "id": "require-same-layer-comparison",
      "name": "Require same-layer product comparisons (DeepPattern layer-check)",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(?=[\\s\\S]*(openrouter|litellm|token aggregat|api gateway|raw (model )?api|foundation model))(?=[\\s\\S]*(replace[sd]?|substitut|commoditiz|competes? with|instead of)[\\s\\S]*(thumbgate|pretooluse))",
      "problem": "Blocks treating L4 transport / L2 models as substitutes for L7 ThumbGate PreToolUse governance (DeepPattern layer-check FORMAT).",
      "roi": "Stops category-error competitive analysis. Gateways are inputs; hosted multi-model panels are complements.",
      "rollout": "Pair with deeppattern-discipline-honesty --json. Tag L1–L8 before competitor claims."
    },
    {
      "id": "require-evidence-closeout-items",
      "name": "Require evidence-closeout items before done claims",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(?=[\\s\\S]*(done|shipped|fixed|complete|merged))(?![\\s\\S]*(scope completed|verification run|production boundary))",
      "problem": "Blocks summary-without-evidence closeouts. AQG evidence-closeout FORMAT: six required items under an Evidence heading.",
      "roi": "Aligns with Completion Claim Contract. Fresh verification before the word done.",
      "rollout": "Pair with deeppattern-discipline-honesty --closeout=path.md --strict."
    },
    {
      "id": "refuse-buildkite-vendor-migration",
      "name": "Refuse Buildkite vendor migration on public GitHub Actions",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "migrate.{0,40}buildkite|replace github actions with buildkite|add buildkite as.{0,20}required|buildkite-agent|test engine auto-?quarantine",
      "problem": "Blocks adding Buildkite Pipelines/agents/Test Engine as a second CI vendor. Steal first-fail + fail-fast onto existing GHA.",
      "roi": "Public repo GHA minutes stay $0. No second required check. Diagnosis stays the first failed step.",
      "rollout": "Pair with ci-gha-buildkite-patterns --json. Keep ubuntu-latest required contexts."
    },
    {
      "id": "refuse-deeppattern-sku-clone",
      "name": "Refuse DeepPattern AQG/Decision-Engine SKU clones",
      "category": "Agent Honesty",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "dp-install|install_aqg|agent-quality-gates|decision-engine.{0,40}(clone|install|sku)|clone.{0,20}(aqg|decision.engine|deeppattern)",
      "problem": "Blocks cloning Agent Quality Gates or Decision Engine as a ThumbGate product surface.",
      "roi": "FORMAT steal only (layer-check + evidence-closeout). No hosted cross-vendor audit SKU.",
      "rollout": "Enable on competitive-steal and install prompts. Does not vendor DeepPattern."
    },
    {
      "id": "require-broker-signed-execution-receipt",
      "name": "Require broker-signed execution receipts",
      "category": "Provider Side-Effect Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "broker[_ -]?signed|provider[_ -]?credential|providerEventId",
      "problem": "Stops agents from treating self-written receipts as proof of provider side effects. Only a credential-holding broker outside the agent trust boundary may sign.",
      "roi": "Closes the 'agent rehashed a receipt' integrity hole on payments, messaging, and credentialed APIs.",
      "rollout": "Set THUMBGATE_BROKER_RECEIPT_MODE=enforce and install broker public keys on the host. Pair with aigate or any external credential broker."
    },

    {
      "id": "protect-production-sql",
      "name": "Protect production SQL",
      "category": "Database Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(drop|truncate|delete)\\s+.*production",
      "problem": "Blocks destructive SQL operations against production-like targets.",
      "roi": "One saved incident pays for the whole rollout.",
      "rollout": "Turn on for any team touching live data."
    },
    {
      "id": "back-up-env-before-edit",
      "name": "Back up .env before editing",
      "category": "Secrets Hygiene",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "\\.env",
      "problem": "Flags risky config edits before tokens or local credentials are lost.",
      "roi": "Reduces secret churn and local breakage during setup work.",
      "rollout": "Good default for every machine and shared repo."
    },
    {
      "id": "promote-known-good-workflows",
      "name": "Promote known-good workflows",
      "category": "Positive Reinforcement",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "verified_workflow_pattern",
      "problem": "Turns repeated thumbs-up patterns into recommended workflow defaults and starter rules.",
      "roi": "Helps new agents and new teammates start from what already works.",
      "rollout": "Use with shared lessons to accelerate onboarding."
    },
    {
      "id": "require-diff-impact-before-central-edit",
      "name": "Require diff impact before central edits",
      "category": "Knowledge Graph Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "centrality:(high|critical).*tool:(edit|write|patch)",
      "problem": "Blocks edits to high-centrality files unless the agent has inspected the dependency impact first.",
      "roi": "Turns code-graph context into a concrete guardrail for the changes most likely to break many downstream paths.",
      "rollout": "Enable after generating a code knowledge graph and tagging critical files or modules."
    },
    {
      "id": "checkpoint-cross-layer-refactor",
      "name": "Checkpoint cross-layer refactors",
      "category": "Knowledge Graph Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "layers_touched:(api|service|data|ui).*(api|service|data|ui)",
      "problem": "Requires an explicit checkpoint before an agent changes multiple architectural layers in one run.",
      "roi": "Prevents broad refactors from becoming invisible blast-radius expansion.",
      "rollout": "Use with graph layer labels from tools such as Understand Anything, code-graph MCPs, or internal architecture maps."
    },
    {
      "id": "protect-graph-generated-artifacts",
      "name": "Protect generated graph artifacts",
      "category": "Knowledge Graph Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "medium",
      "pattern": "\\.(understand-anything|codegraph|knowledge-graph)\\/.*",
      "problem": "Stops agents from editing generated knowledge-graph artifacts as if they were source of truth.",
      "roi": "Keeps graph context reproducible and avoids corrupting the evidence layer agents rely on for impact analysis.",
      "rollout": "Enable for repos that commit or cache graph outputs locally."
    },
    {
      "id": "block-package-lifecycle-secret-harvest",
      "name": "Block package lifecycle secret harvest",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(preinstall|install|postinstall|prepare).*(env|token|secret|credential|npmrc|pypirc|docker\\/config|ssh)",
      "problem": "Stops package lifecycle scripts from reading local credentials during npm, PyPI, Docker, or CLI compromise scenarios.",
      "roi": "Turns developer-machine supply-chain awareness into a runtime stop before secrets are harvested at scale.",
      "rollout": "Enable on every repo where agents can install packages, run package scripts, or edit dependency automation."
    },
    {
      "id": "review-untrusted-cli-before-execution",
      "name": "Review untrusted CLI before execution",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(curl|wget).*(bash|sh)|npx\\s+[^@\\s]+|uvx\\s+|pipx\\s+run",
      "problem": "Blocks one-shot CLI execution paths that can turn a copied command into developer-machine compromise.",
      "roi": "Prevents AI assistants from amplifying malicious copy-paste install flows across repos and machines.",
      "rollout": "Allowlist trusted internal CLIs and require source review for every new external executable."
    },
    {
      "id": "checkpoint-dependency-bot-autofix",
      "name": "Checkpoint dependency bot autofix",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(dependabot|renovate|npm audit fix|pnpm audit|pip install -U|docker pull|cargo update)",
      "problem": "Requires a human-readable checkpoint before automated dependency updates expand the trusted code surface.",
      "roi": "Keeps dependency bots and package managers from silently widening blast radius during a supply-chain incident.",
      "rollout": "Start as warn mode for dependency PRs; promote to block for production services or privileged developer machines."
    },
    {
      "id": "require-credential-exposure-assessment",
      "name": "Require credential exposure assessment",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(secret|token|credential|api[_-]?key|ssh|npmrc|pypirc|docker\\/config).*(rotate|exposed|leak|incident|compromise)",
      "problem": "Forces an exposure assessment before an agent claims a supply-chain incident is resolved.",
      "roi": "Connects prevention with remediation: what credential lived where, who touched it, and whether rotation is required.",
      "rollout": "Use with incident-response runbooks and secrets scanner output from GitGuardian or internal tooling."
    },
    {
      "id": "require-local-dependency-vulnerability-scan",
      "name": "Require local dependency vulnerability scan before installation",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(npm install|pnpm add|yarn add|bun add|npm i|pnpm i|yarn i).*(vulnerable|cve|high|critical|osv|cve-lite)",
      "problem": "Blocks package installations that introduce dependencies containing known high-severity or critical vulnerabilities (CVEs) before they are written to the lockfile.",
      "roi": "Prevents AI agents from introducing vulnerable packages into the workspace. Complements zero-egress local-first scanning toolings (like OWASP CVE Lite CLI) directly at the terminal level.",
      "rollout": "Enable on every repo where agents can install dependencies or modify lockfiles."
    },
    {
      "id": "require-package-manager-lockfile-ci-parity",
      "name": "Require package-manager lockfile and CI parity",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(pnpm-lock|yarn\\.lock|bun\\.lock|package-lock).*(and|with|plus).*(package-lock|pnpm-lock|yarn\\.lock)|packageManager.*(mismatch|disagree)|ci.*(pnpm|yarn|bun).*(npm ci|package-lock)",
      "problem": "Blocks dual lockfiles and CI install commands that disagree with the canonical lockfile manager.",
      "roi": "Stops agents from introducing pnpm/yarn/bun beside npm (or vice versa) and silently breaking reproducible installs after package-manager rewrites like pnpm 12.",
      "rollout": "Enable on every repo with agent install rights. Pair with package-manager-honesty-doctor."
    },
    {
      "id": "checkpoint-package-manager-switch",
      "name": "Checkpoint package-manager switch",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(migrate|switch|adopt|move).*(pnpm|yarn|bun|npm)|pnpm self-update|corepack enable.*(pnpm|yarn)|add pnpm-lock",
      "problem": "Requires an explicit migration plan before switching package managers: single lockfile, packageManager pin, rewrite every CI install, delete the old lockfile, and prove CI green.",
      "roi": "pnpm 12-style rewrites look cheap until CI still runs npm ci against a deleted lockfile. Fail closed on silent switches; prefer --ignore-scripts honesty on the current manager.",
      "rollout": "Block agent-proposed manager switches; allow only with package-manager-honesty-doctor --propose-switch evidence attached to the PR."
    },
    {
      "id": "checkpoint-allowlist-bridge-not-trust",
      "name": "Checkpoint allowlisted registry/proxy as a hop, not a trust boundary",
      "category": "Supply Chain Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(?=.*(sandbox|allowlist))(?=.*(trusted|safe|secure))(?=.*(npm|pypi|huggingface|package proxy|registry\\.npmjs|verdaccio|nexus)).+",
      "problem": "Blocks treating an allowlisted package registry, proxy, or Hugging Face host as a sandbox trust boundary. GitLab's 2026-09 analysis showed a permitted package proxy became the escape hop.",
      "roi": "Keeps deny-network-egress and agent-egress-policy honest: hops stay hops. Pair with allowlist-bridge-honesty. Does not clone GitLab Duo.",
      "rollout": "Warn when agents claim an allowlisted registry is trusted; require allowlist-bridge-honesty --json evidence before expanding egress allowlists."
    },
    {
      "id": "require-section-tree-before-multimodal-answer",
      "name": "Require section tree before multimodal answers",
      "category": "Document RAG Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(multimodal|image|chart|figure|table).*answer.*(missing|no).*section[_ -]?tree",
      "problem": "Blocks visual document answers when the agent has not preserved document hierarchy, section IDs, and source paths.",
      "roi": "Prevents multimodal RAG demos from becoming ungrounded image guessing while keeping costs lower than full multimodal embeddings.",
      "rollout": "Enable for PDF, report, support-doc, research-paper, and compliance workflows before agents answer with images."
    },
    {
      "id": "require-image-pointer-grounding",
      "name": "Require image pointer grounding",
      "category": "Document RAG Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(image|figure|chart|diagram).*answer.*(missing|no).*pointer",
      "problem": "Requires every cited visual to carry a source document, parent section, and file path pointer.",
      "roi": "Turns proxy-pointer RAG structure into an auditable answer boundary instead of trusting visual similarity.",
      "rollout": "Start on any workflow that returns charts, figures, screenshots, or PDF images to users."
    },
    {
      "id": "block-cross-document-image-leakage",
      "name": "Block cross-document image leakage",
      "category": "Document RAG Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "image_doc_id\\s*!=\\s*answer_doc_id|cross[_ -]?document.*image",
      "problem": "Stops agents from attaching a plausible visual from the wrong source document.",
      "roi": "Protects trust in buyer-facing document answers where one wrong chart or figure can invalidate the whole system.",
      "rollout": "Promote to block as soon as the ingestion pipeline records document IDs for image pointers."
    },
    {
      "id": "checkpoint-vision-filter-for-visual-claims",
      "name": "Checkpoint vision filter for visual claims",
      "category": "Document RAG Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(visual|image|chart|figure).*claim.*(without|no).*vision[_ -]?filter",
      "problem": "Requires an optional vision-model sanity check before high-impact answers rely on visual content.",
      "roi": "Keeps the cheap text-pointer path fast while adding review only when the answer makes visual claims.",
      "rollout": "Use warn mode for low-risk docs and block mode for legal, financial, medical, or customer-facing visual answers."
    },
    {
      "id": "require-rag-baseline-before-precision-tuning",
      "name": "Require RAG baseline before precision tuning",
      "category": "Document RAG Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(rag|retrieval|embedding).*(fine[- ]?tune|threshold|precision).*(missing|no).*(baseline|recall)",
      "problem": "Blocks embedding, threshold, or precision tuning when the agent has not preserved a retrieval baseline and recall check.",
      "roi": "Prevents a local precision improvement from silently degrading general retrieval quality across the agentic pipeline.",
      "rollout": "Require baseline recall@k, precision@k, and answer-with-evidence metrics before changing retrieval thresholds or embedding models."
    },
    {
      "id": "require-two-stage-rag-verifier-for-structural-near-misses",
      "name": "Require two-stage RAG verifier for structural near misses",
      "category": "Document RAG Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(negation|role reversal|structural near[- ]?miss|compositional).*(without|no).*(verifier|rerank|second stage)",
      "problem": "Requires a token-level verifier, reranker, or second-stage check when retrieval must distinguish structurally similar but meaningfully different evidence.",
      "roi": "Catches the role-reversal and negation failures that vector similarity and keyword search can miss before downstream agents act.",
      "rollout": "Enable for legal, finance, compliance, support, and autonomous-agent workflows where wrong retrieval can trigger real actions."
    },
    {
      "id": "checkpoint-rag-latency-precision-tradeoff",
      "name": "Checkpoint RAG latency and precision tradeoff",
      "category": "Document RAG Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(rerank|verifier|cross[- ]?encoder|two[- ]?stage).*(latency|sla|budget)",
      "problem": "Requires an explicit latency budget before adding verifier or reranker stages to precision-sensitive retrieval.",
      "roi": "Keeps high-risk RAG workflows accurate without accidentally making production agents too slow or expensive to run.",
      "rollout": "Start in warn mode; promote to block when latency regressions exceed the workflow SLA."
    },
    {
      "id": "require-director-journal-for-long-running-agent",
      "name": "Require director journal for long-running agent",
      "category": "Long-Running Agent Context",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(long[- ]?running|multi[- ]?agent|background agent).*(missing|no).*(director journal|working memory|structured memory)",
      "problem": "Blocks long-running agent work when the system relies on raw chat history instead of a structured working-memory journal.",
      "roi": "Prevents context-window bloat, compaction drift, and incoherent handoffs across hundreds of agent requests.",
      "rollout": "Enable for background agents, multi-agent investigations, revenue loops, and any workflow expected to span more than one session."
    },
    {
      "id": "require-critic-review-for-agent-findings",
      "name": "Require critic review for agent findings",
      "category": "Long-Running Agent Context",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(finding|claim|expert report|agent summary).*(missing|no).*(critic|review|credibility|evidence score)",
      "problem": "Requires a critic pass with evidence inspection and credibility scoring before agent findings become shared truth.",
      "roi": "Stops invented or misinterpreted findings from becoming the memory that future agents build on.",
      "rollout": "Start with warn mode for summaries; promote to block for security, revenue, incident, and customer-facing findings."
    },
    {
      "id": "checkpoint-critic-timeline-conflict-resolution",
      "name": "Checkpoint critic timeline conflict resolution",
      "category": "Long-Running Agent Context",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(timeline|memory|journal).*(conflict|duplicate|contradict|stale).*(without|no).*(resolution|credibility)",
      "problem": "Requires duplicate removal and source-strength conflict resolution before a long-running agent updates its timeline.",
      "roi": "Keeps long-lived agent memory coherent while preserving only the strongest evidence across rounds.",
      "rollout": "Use in warn mode for internal loops and block mode when the timeline feeds irreversible actions or external replies."
    },
    {
      "id": "require-verifier-before-reasoning-compression",
      "name": "Require verifier before reasoning compression",
      "category": "Reasoning Efficiency Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(reasoning|chain|trace).*(compress|shorten|prune).*(without|no).*(verifier|accuracy|pass@1)",
      "problem": "Blocks reasoning-length compression when the workflow has not preserved verifier, accuracy, and rollback evidence.",
      "roi": "Saves tokens only when compressed reasoning still passes quality checks instead of trading correctness for shorter traces.",
      "rollout": "Enable for model-routing, benchmark, prompt-eval, and expensive agent workflows before shortening reasoning traces."
    },
    {
      "id": "checkpoint-low-confidence-reasoning-steps",
      "name": "Checkpoint low-confidence reasoning steps",
      "category": "Reasoning Efficiency Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(low[- ]?confidence|uncertain).*(step|reasoning).*(correct rollout|accepted answer)",
      "problem": "Requires inspection before low-confidence steps in otherwise successful reasoning become reinforced training or routing signal.",
      "roi": "Reduces brittle step-level learning where a correct final answer hides unstable intermediate reasoning.",
      "rollout": "Start as warn mode for prompt and model evals; promote to block when those traces update routing or fine-tuning data."
    },
    {
      "id": "checkpoint-high-confidence-failed-rollout",
      "name": "Checkpoint high-confidence failed rollout",
      "category": "Reasoning Efficiency Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(high[- ]?confidence|confident).*(failed|verifier failed|truncated).*(rollout|trace)",
      "problem": "Requires a verifier-error or truncation check before penalizing confident reasoning from failed rollouts.",
      "roi": "Prevents training or routing updates from punishing correct reasoning when the failure came from truncation or verifier noise.",
      "rollout": "Use for reasoning-compression experiments, evaluation harnesses, and DPO/RLHF export review."
    },
    {
      "id": "require-hybrid-prefix-cache-coherence-eval",
      "name": "Require hybrid prefix cache coherence eval",
      "category": "Sparse Attention Runtime Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(deepseek|sparse attention|hybrid attention|prefix cache).*(missing|no).*(coherence|rollback|cache eval)",
      "problem": "Blocks hybrid sparse-attention serving changes when prefix cache lifetime, compressed KV reuse, and rollback behavior have not been verified.",
      "roi": "Prevents expensive long-context inference rollouts from reusing stale cache state or corrupting speculative decode paths.",
      "rollout": "Enable before raising context windows, switching cache implementations, or deploying ShadowRadix-style prefix caching."
    },
    {
      "id": "require-hybrid-inference-routing-approval",
      "name": "Require approval for hybrid cloud escalation on sensitive data",
      "category": "Hybrid Inference Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(hybrid|local-cloud|perplexity.*hybrid|personal computer).*(escalat|cloud|send to cloud|route to server).*(sensitive|secret|pii|customer|confidential|codebase)",
      "problem": "Hybrid local-cloud orchestrators (e.g. Perplexity Computex 2026) must not silently escalate sensitive context (code, feedback, lessons, PII) to cloud models without explicit approval or local-only enforcement.",
      "roi": "High: Prevents data exfil in agentic workflows while still allowing hybrid cost/privacy wins. Critical as more agents adopt local-cloud routing (Personal Computer, AI PCs). Captures high-value feedback for custom hybrid rules.",
      "rollout": "Start as block for paths matching secrets/env/customer data; promote to warn after baseline hybrid agent sessions. Pair with perplexity/hybrid-* model candidates and adapters/perplexity/HYBRID.md."
    },
    {
      "id": "checkpoint-speculative-decoding-acceptance",
      "name": "Checkpoint speculative decoding acceptance",
      "category": "Sparse Attention Runtime Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(speculative|mtp|eagle|draft.?length|accept.?length).*(accept|rollback|draft|speedup|al\\b).*(low|missing|unstable|overclaim|above.?theory)",
      "problem": "Requires measured accept length (AL), draft length (D), rollback/coherence evidence, and speedup claims at or below AL/(1+ρD) before speculative decoding is treated as a production speedup.",
      "roi": "Avoids routing traffic to a faster-looking path that collapses acceptance length, overclaims beyond AL/(1+ρD), or hides draft-token correctness failures.",
      "rollout": "Start in warn mode for lab benchmarks; promote to block when speculation is enabled for customer traffic. Pair with nvidia-specdecode-al-doctor for AL/D math."
    },
    {
      "id": "require-long-context-kv-offload-capacity-plan",
      "name": "Require long-context KV offload capacity plan",
      "category": "Sparse Attention Runtime Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(long context|1m token|kv cache|hisparse|cpu offload).*(missing|no).*(capacity|offload|memory budget)",
      "problem": "Blocks long-context serving rollouts when KV cache capacity, CPU offload, or memory budgets are not documented and benchmarked.",
      "roi": "Prevents GPU memory cliffs and surprise throughput regressions when agents send very large traces or document contexts.",
      "rollout": "Require for 128k+ context targets and any hosted inference path where batch size or context length can grow automatically."
    },
    {
      "id": "require-rollout-routing-and-indexer-replay",
      "name": "Require rollout routing and indexer replay",
      "category": "Sparse Attention Runtime Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(rl|training|fine[- ]?tune|reward).*(missing|no).*(routing replay|indexer replay|train[- ]?inference drift)",
      "problem": "Blocks RL or fine-tuning updates when rollout routing, sparse indexer choices, and train-inference drift are not captured and replayed.",
      "roi": "Stops verified-RL experiments from optimizing against a different execution path than the one served during rollout.",
      "rollout": "Enable for any self-hosted model training, reward optimization, DPO export review, or policy update based on sparse-attention rollouts."
    },
    {
      "id": "checkpoint-mixed-precision-determinism",
      "name": "Checkpoint mixed-precision determinism",
      "category": "Sparse Attention Runtime Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(fp4|fp8|mixed precision|quant).*(nondeterministic|spike|drift|missing deterministic)",
      "problem": "Requires deterministic settings and sensitive FP32 path checks before mixed-precision inference or training results become routing evidence.",
      "roi": "Keeps FP4/FP8 savings from producing silent numerical drift, noisy KL spikes, or false benchmark confidence.",
      "rollout": "Start in warn mode for benchmarking and promote to block when mixed-precision results update routing, training, or customer-facing model choices."
    },
    {
      "id": "checkpoint-long-context-throughput-regression",
      "name": "Checkpoint long-context throughput regression",
      "category": "Sparse Attention Runtime Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(long context|decode throughput|tpot|latency).*(regression|drop|slowdown)",
      "problem": "Requires a measured throughput comparison before long-context runtime changes are treated as performance improvements.",
      "roi": "Prevents teams from adopting impressive-looking runtime changes that only work on narrow prompts or short contexts.",
      "rollout": "Use in CI benchmark jobs and model-routing reviews whenever context length, cache policy, or speculation settings change."
    },
    {
      "id": "require-ai-gateway-control-plane",
      "name": "Require AI gateway control plane",
      "category": "AI Engineering Stack Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(model|llm|provider).*(direct key|api key|no gateway|bypass gateway)",
      "problem": "Blocks model-provider rollout when requests bypass a central gateway or proxy with cost, identity, provider, and retention controls.",
      "roi": "Prevents leaked keys, fragmented spend, and invisible model usage before agent adoption scales across the company.",
      "rollout": "Enable before adding new AI coding clients, model providers, or bring-your-own-key routes."
    },
    {
      "id": "require-progressive-mcp-tool-discovery",
      "name": "Require progressive MCP tool discovery",
      "category": "AI Engineering Stack Safety",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(mcp|tool schema|tool count).*(too many|context bloat|no code mode|no progressive discovery)",
      "problem": "Requires large MCP surfaces to expose a small search/execute or progressive-discovery interface instead of loading every tool schema into every prompt.",
      "roi": "Cuts token burn and context-window clutter while letting teams keep adding useful tools behind the portal.",
      "rollout": "Start warning above 20 tools; promote to block for high-volume clients or expensive frontier-model workflows."
    },
    {
      "id": "require-agent-context-freshness",
      "name": "Require AGENTS.md and LLM wiki freshness",
      "category": "AI Engineering Stack Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(AGENTS\\.md|llm wiki|agent context).*(stale|missing|outdated|no owner|no test command)",
      "problem": "Blocks agent work when repository instructions, ownership, dependencies, test commands, or LLM wiki pages are missing or stale.",
      "roi": "Turns knowledge-base enthusiasm into reliable agent context instead of letting stale docs make plausible wrong changes.",
      "rollout": "Regenerate on repo topology changes and require review from the owning team before the context becomes canonical."
    },
    {
      "id": "require-risk-tiered-ai-review",
      "name": "Require risk-tiered AI review",
      "category": "AI Engineering Stack Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(merge|pull request|review).*(no ai reviewer|no severity|no rule id|no standards)",
      "problem": "Requires automated review to classify risk, cite standards-as-skills, and separate security, code quality, performance, docs, and release-impact findings.",
      "roi": "Makes AI review actionable and auditable, reducing merge churn while converting standards into reusable agent feedback.",
      "rollout": "Use lite review for trivial changes and full review for money, production, security, data, or customer-facing work."
    },
    {
      "id": "require-sandboxed-background-agent-runtime",
      "name": "Require sandboxed background agent runtime",
      "category": "AI Engineering Stack Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(background agent|long running agent|autonomous agent).*(no sandbox|host machine|no durable session|no build log)",
      "problem": "Blocks background agents from cloning, building, testing, or publishing unless they run in an isolated durable environment with logs.",
      "roi": "Lets the team pursue unattended revenue and engineering workflows without turning local developer machines into the execution boundary.",
      "rollout": "Enable for every agent that can run tests, push branches, deploy, publish content, change billing, or touch customer data."
    },
    {
      "id": "block-unauthorized-practice-of-law",
      "name": "Block unauthorized practice of law",
      "category": "Legal Intake Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(outcome prediction|jurisdictional recommendation|[Yy]ou\\s+(should|could|might)\\s+(file|sue|claim)|strong case|likely\\s+(prevail|win|succeed))",
      "problem": "Stops advice-shaped intake replies under ABA Rule 5.5.",
      "roi": "Prevents malpractice exposure before delivery.",
      "rollout": "Enable on every AI intake channel."
    },
    {
      "id": "require-conflict-check-before-intake",
      "name": "Require conflict check before intake continues",
      "category": "Legal Intake Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(collect_case_facts|schedule_consultation|intake_continue).*(missing|no|unchecked).*(conflict|adverse[_-]party|clearance)",
      "problem": "Requires adverse-party clearance before sensitive facts.",
      "roi": "Catches conflicts before privileged facts cross ethical walls.",
      "rollout": "Use the firm's conflicts API or a synthetic pilot fixture."
    },
    {
      "id": "block-privileged-content-egress",
      "name": "Block privileged content egress",
      "category": "Legal Intake Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(send_email|api_call|external_request|schedule|crm_update).*(privileged|attorney[_-]client|work[_-]product|matter[_-]id|confidential)",
      "problem": "Blocks outbound actions with privilege markers.",
      "roi": "Prevents single-action privilege waiver.",
      "rollout": "Define markers, start with hard block, then add in-tenant reroute."
    },
    {
      "id": "require-approved-disclaimer-before-response",
      "name": "Require approved disclaimer before response",
      "category": "Legal Intake Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(intake_response|client_reply).*((missing|no)\\s*(disclaimer|disclosure|non[_-]engagement)|(disclaimer|disclosure|non[_-]engagement)\\s*[:=]?\\s*(missing|none|no))",
      "problem": "Requires firm-approved non-engagement language.",
      "roi": "Reduces inadvertent client-relationship risk.",
      "rollout": "Load approved disclaimer during pilot."
    },
    {
      "id": "restrict-model-endpoint-to-approved-list",
      "name": "Restrict model endpoint to approved list",
      "category": "Legal Intake Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(model_call|llm_request|api_endpoint).*(unapproved|unknown|public|consumer)",
      "problem": "Blocks unapproved model endpoints.",
      "roi": "Keeps data inside approved vendor boundaries.",
      "rollout": "Allowlist endpoints during pilot."
    },
    {
      "id": "require-attorney-review-before-routing",
      "name": "Require attorney review before case routing",
      "category": "Legal Intake Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(route_to_attorney|assign_practice_area|schedule_consultation).*(no|missing).*(review|approval|supervisor)",
      "problem": "Requires review before routing or scheduling.",
      "roi": "Prevents bad prospect routing.",
      "rollout": "Start strict; relax after pilot evidence."
    },
    {
      "id": "block-dynamic-tool-creation-without-approval",
      "name": "Block dynamic tool creation without approval",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(claw|enterpriseclaw|dynamic tool|runtime tool|create_tool|self.*evolving).*(create|generate|define).*(tool|action|capability|script)",
      "problem": "Claw-style agents (Automation Anywhere EnterpriseClaw, inspired by Nvidia OpenShell) can create tools at runtime. This must be gated to prevent arbitrary code execution or exfil.",
      "roi": "High: Prevents one of the most dangerous capabilities of autonomous enterprise agents while allowing safe dynamic extension under governance. Directly addresses the 'governance catching up' gap called out in coverage.",
      "rollout": "Block by default for claw agents; allowlist specific safe tool patterns after review. Capture feedback on every dynamic creation attempt."
    },
    {
      "id": "require-review-for-screen-ui-interaction",
      "name": "Require review for screen/UI interaction by agents",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(claw|screen|ui|computer use|mouse|keyboard|click|type|interact).*(screen|desktop|app|gui|human.*like)",
      "problem": "Claw-style agents interact directly with computer screens and apps like a human operator. This creates high risk of unintended actions, data leaks via UI, or compliance violations.",
      "roi": "Prevents agent-driven UI automation from bypassing existing controls. Essential for enterprise RPA + AI agent convergence (Automation Anywhere core).",
      "rollout": "Require human-in-loop or explicit policy approval for any claw screen interaction on production systems. Log all such actions for audit."
    },
    {
      "id": "enforce-agent-identity-separation",
      "name": "Enforce separate agent identity and audit trail",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(agent identity|agent.*credential|human.*credential|impersonat|audit.*agent|agent.*audit).*(missing|no|same as human|not separated)",
      "problem": "Claw agents (and partners like Okta in EnterpriseClaw) require first-class agent identities separate from humans so actions are auditable as agent actions, not human ones. Using human creds hides responsibility.",
      "roi": "Critical for compliance, forensics, and feedback loops. Enables proper capture of agent-specific lessons and prevention rules. Matches industry push (Okta, etc.).",
      "rollout": "Block any claw or autonomous agent action that authenticates as a human user. Require dedicated agent service accounts / identities with scoped permissions."
    },
    {
      "id": "block-workos-spend-cap-violations",
      "name": "Block WorkOS spend-cap violations under $10/mo AuthKit policy",
      "category": "Enterprise Identity & MCP Auth Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(workos|authkit).*(custom domain|enterprise sso|saml connection|directory sync|scim|radar|audit logs siem|\\$99|\\$125|staging\\.authkit)",
      "problem": "ThumbGate public auth is WorkOS Production AuthKit under a hard ≤$10/mo spend cap. Enabling custom AuthKit domains (~$99/mo), enterprise SSO/SAML connections (~$125/conn), Directory Sync, or driving public traffic to staging AuthKit blows the cap or regresses login.",
      "roi": "Protects conversion (thumbgate.app login) and prevents silent monthly burn. Complements WorkOS MCP Auth: identity stays cheap; runtime gates stay ThumbGate.",
      "rollout": "Run npm run prove:workos. Keep Active SSO connections = 0. Prefer own Google OAuth app under AuthKit free tier. Never buy custom AuthKit domain without written budget rewrite."
    },
    {
      "id": "require-mcp-oauth-scope-for-mutating-tools",
      "name": "Require MCP OAuth scope for mutating remote tools",
      "category": "Enterprise Identity & MCP Auth Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(mcp|oauth|bearer|access_token).*(missing scope|insufficient_scope|no auth|unauthenticated).*(write|mutate|capture|gate|tool)",
      "problem": "Enterprise MCP Auth (WorkOS AuthKit MCP, RFC 8707 audience binding) maps OAuth scopes to tool privileges. Mutating tools without mcp:write (or equivalent) or with audience mismatch leak or mutate shared state.",
      "roi": "Closes directory-reviewer and multi-tenant MCP holes. Aligns ThumbGate remote MCP with industry MCP OAuth 2.1 patterns while keeping pre-action gates as the enforcement layer after identity.",
      "rollout": "Hosted MCP: OAuth PKCE required for remote connectors. Reviewer keys stay read-only. Operators use mcp:write (implies read/gates/feedback)."
    },
    {
      "id": "review-workos-skill-and-auth-installer-actions",
      "name": "Review WorkOS skill install and auth-route mutation by agents",
      "category": "Enterprise Identity & MCP Auth Governance",
      "signal": "👎",
      "defaultAction": "require-approval",
      "severity": "high",
      "pattern": "(workos|authkit|npx workos|workos install|auth callback|sso connection|redirect_uri).*(install|scaffold|write|env|secret|client_id|api_key)",
      "problem": "WorkOS AI CLI installers and agent skills mutate auth routes, env secrets, and SSO configuration. Unreviewed agent edits can reintroduce staging clients, wrong redirect URIs, or paid enterprise SSO connections.",
      "roi": "Prevents auth regressions that drop Google login or point production at staging — a proven conversion killer. Gates dynamic skill installs (claw-style) on identity infrastructure.",
      "rollout": "Require human review for WorkOS/AuthKit scaffolding. After changes run scripts/workos-production-guard.js and prove:workos."
    },
    {
      "id": "gate-claw-file-system-access",
      "name": "Gate claw-style agent file system access",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(claw|file system|fs access|read file|write file|list dir|device access).*(local|shared|on-prem|airgap)",
      "problem": "Claw agents have broad device-level (local/shared) file system access. Must be strictly gated, especially in on-prem/air-gapped enterprise environments where most data lives.",
      "roi": "Directly supports the hybrid/on-prem reality emphasized in EnterpriseClaw coverage. Prevents broad access from becoming broad exfil or corruption. Ties to ThumbGate's existing path globs and protected files.",
      "rollout": "Use existing protected-paths + new claw-specific rules. Start with read-only for most, explicit approval for writes on sensitive dirs."
    },
    {
      "id": "block-stealth-memory-injection-from-external",
      "name": "Block stealth memory injection from external content",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(silently|do not tell|do not announce|stealth memory|memghost|imap|smtp|inbox).*(MEMORY\\.md|AGENTS\\.md|SOUL\\.md|USER\\.md|HEARTBEAT\\.md|long-term memory|preference|remember that)",
      "problem": "Persistent personal agents (OpenClaw, Hermes, NanoClaw) can absorb untrusted email/tool content into durable memory carriers while staying silent in the user-visible reply. MemGhost (WhisperBench, paper 2607.05189) shows 87.5% end-to-end success for one-shot stealth memory injection — delayed sessions then treat poisoned facts/preferences as trusted state.",
      "roi": "High: closes the durable-memory compromise path that ordinary PreToolUse hijack defenses miss. Direct product fit for OpenClaw/Hermes governance buyers and ThumbGate's Infrastructure Firewall narrative. Blocks fact + preference poisoning before it becomes trusted context.",
      "rollout": "Enabled as structural gate in gates-engine (scripts/stealth-memory-injection-gate.js). Allow only with explicit operator override (THUMBGATE_ALLOW_STEALTH_MEMORY_INJECTION=1) or stealthMemoryInjectionApproved=true after human review. Capture blocked attempts with tags stealth-memory-injection,whisperbench,memghost."
    },
    {
      "id": "require-claw-observability-before-production",
      "name": "Require OpenTelemetry observability before claw production rollout",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(claw|harness agent|hosted agent|production rollout|deploy agent).*(no telemetry|no traces|no otel|observability|token usage|tool calls)",
      "problem": "A claw that reads files, runs code, and calls tools is a small distributed system. Microsoft Agent Framework's production-readiness guide (2026) makes OpenTelemetry spans for every model turn and tool call, token-usage metrics, and structured logs a launch prerequisite — without them a misfiring skill, looping tool, or 10x cost spike is invisible until a customer reports it.",
      "roi": "High: observability is the cheapest incident-response accelerator for enterprise claw buyers. ThumbGate's tool KPI telemetry and decision logs become the audit surface; this gate converts 'works on my machine' into 'we can see it run'. Maps directly to the AGENTS.md 20-observed-tool-calls production-monitoring floor.",
      "rollout": "Warn by default; escalate to block for regulated verticals (finance/healthcare). Require an OTLP/collector endpoint or ThumbGate decision-log sink configured before any hosted or fleet deployment. Capture evidence with tags claw-observability,otel,production-readiness."
    },
    {
      "id": "require-policy-content-screening",
      "name": "Require prompt/response content-policy screening (Purview-style)",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(prompt|response|chat client|model call|agent output).*(credit card|pii|confidential|regulated|policy screen|purview|dls|data loss)",
      "problem": "In regulated settings every prompt must be screened before it reaches the model and every response before it reaches the user, with an audit trail — Microsoft's production claw wraps the chat client in Purview policy middleware for exactly this. Unscreened claw traffic against sensitive documents (finance, healthcare) is a data-loss incident waiting for an audit.",
      "roi": "High: content-policy screening is the compliance story that unlocks enterprise budgets (SOC 2, HIPAA, DLP). ThumbGate's memory-firewall + secret-leak gates already implement the pattern locally; this gate extends it to bidirectional prompt/response screening and positions ThumbGate as the vendor-neutral alternative to tenant-locked E5-only Purview.",
      "rollout": "Block unscreened model calls for regulated workloads; allow only when a screening layer (ThumbGate memory firewall, Purview middleware, or equivalent DLP) is configured on the chat path. Opt-in by environment flag so unregulated dev loops stay fast. Capture with tags content-policy,dlp,purview-style."
    },
    {
      "id": "block-hosted-claw-shell-and-fs",
      "name": "Block shell and container-disk file access on hosted claw agents",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(hosted|container|shared tenant|multi tenant|foundry|cloud deploy).*(enable shell|shell access|file access|write container|container disk|arbitrary read)",
      "problem": "Microsoft's hosted claw deliberately sets EnableFileAccess=false and EnableShell=false: in a shared hosted environment, arbitrary container filesystem or shell access is a data-exfiltration, tampering, and persistence vector even behind a deny-list. When file access is genuinely needed the pattern is an external governed file store (e.g., blob-backed AgentFileStore), never the ephemeral container disk.",
      "roi": "High: the single clearest hosted-claw hardening rule from a first-party production guide. ThumbGate enforces it as a deterministic pre-action gate plus proof artifact, so buyers get the Microsoft-recommended lockdown with an evidence packet instead of trusting config drift.",
      "rollout": "Block by default for any hosted/shared-tenant agent build. Explicit, reviewed exceptions only, and file access must route through a governed external store, never container disk. Capture with tags hosted-hardening,shell-off,filestore."
    },
    {
      "id": "require-local-evals-on-every-change",
      "name": "Require local deterministic evals on every claw change",
      "category": "Claw-Style Enterprise Agent Governance",
      "signal": "👍",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(claw|agent|prompt|tool|skill).*(regression|eval|golden|quality gate|ci check|passed/total)",
      "problem": "The production harness pattern runs local deterministic eval checks (plain functions: passed/total over a fixed query set) on every change, always in CI, with model-graded quality scores optional and gated. Without a local eval ratchet, every prompt/tool/skill edit is a blind change — the tuning loop that keeps a deployed agent honest does not exist.",
      "roi": "High: evals-in-CI is the cheapest regression insurance and directly extends ThumbGate's existing golden-eval discipline (gate-decisions golden, retrieval ranking MRR/recall thresholds, fail-closed RAG gates). Selling point: ThumbGate ships the local-eval layer; hosted model-graded evals stay optional.",
      "rollout": "Warn when a prompt/tool/skill change ships without a local eval run; block merges on eval regression in CI. Keep checks deterministic, fast, free, and runnable offline; require >= 95% pass on golden cases before widening deployment. Capture with tags local-evals,ratchet,production-readiness."
    },
    {
      "id": "require-double-blind-holdout-eval",
      "name": "Require double-blind holdout for benchmark tuning",
      "category": "Eval Integrity",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(benchmark|golden set|eval set|leaderboard|model score|sota).*(leak|contamin|overfit|tune against|memoriz|inflate)",
      "problem": "Google DeepMind's first double-blind AI evaluation (2026) responds to research finding benchmark leakage in roughly half of 31 models tested; contamination inflates scores, especially for larger models. Tuning prompts, rules, or models against a fully visible benchmark set teaches to the test — the reported score stops measuring generalization. DeepMind's fix seals both sides (weights and questions) in a confidential enclave; the local equivalent is a hash-sealed holdout slice whose questions never enter the tuning loop.",
      "roi": "High: eval score integrity is the trust product — ThumbGate sells evidence, and inflated benchmark scores are fabricated evidence. Cheap to enforce (deterministic hash partition + sealed manifest, no confidential hardware). Maps to the AGENTS.md production regression gate (>= 6 golden cases, fail-closed) and extends scripts/eval-holdout.js.",
      "rollout": "Partition every mined benchmark deterministically (sha256 of case identity) into public + holdout (default 1/3). Store holdout as hashes and sealed verdicts only — never raw questions. Re-freeze deliberately with a human decision, like eval:baseline; block releases when the holdout seal is broken or holdout verdicts drift unexplained. Capture with tags eval-integrity,holdout,contamination."
    },
    {
      "id": "require-ai-use-case-inventory",
      "name": "Require AI use-case inventory (CMDB for AI)",
      "category": "AI Governance Operating Plan",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(deploy|onboard|introduce|roll ?out|new).*(ai|model|agent|llm|automation).*(no inventory|no register|no cmdb|no owner|untracked)",
      "problem": "The episode's core governance finding: incomplete AI-use-case inventories are the root problem. Without a register of every model, vendor/API, agent, data source, tool integration, owner, user group, and business purpose — plus a risk tier — you cannot govern what you cannot enumerate.",
      "roi": "High: the inventory is the prerequisite for every other control (data classification, least privilege, incident routing). A CMDB-for-AI is the cheapest high-leverage deliverable in the first 7 days of any AI governance program.",
      "rollout": "Maintain a machine-readable register (one row per model/agent/integration: vendor, API, data sources, tools, owner, user group, business purpose, risk tier). Require an entry before any new AI capability ships. Warn by default; block for customer-facing or regulated-data use cases. Capture with tags ai-inventory,cmdb,use-case-register."
    },
    {
      "id": "require-data-classification-before-ai",
      "name": "Require data classification before AI workflow",
      "category": "AI Governance Operating Plan",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(ai|model|llm|agent|prompt|rag).*(pii|confidential|financial|credential|secret|customer data|internal).*(no classification|unclassified|unapproved model|unmanaged)",
      "problem": "Understand your data first: for each AI workflow, label inputs and outputs (public, internal, confidential, PII, financial, customer, credentials/secrets) and explicitly prohibit sensitive data from flowing into unapproved models or unmanaged browser sessions.",
      "roi": "High: data classification is the single control that prevents the most expensive AI incident class — sensitive-data exfiltration into a third-party model. Cheap to implement, blocks the worst blast radius.",
      "rollout": "Before enabling any AI workflow, classify its inputs/outputs. Block sensitive-class data from unapproved models and unmanaged sessions. Maintain an approved-model policy keyed by data class. Capture with tags data-classification,pii,approved-model."
    },
    {
      "id": "require-ai-threat-model-blast-radius",
      "name": "Require AI threat model + blast-radius assessment",
      "category": "AI Governance Operating Plan",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(agent|ai workflow|automation).*(production|money|customer|privileged|deploy).*(no threat model|no blast radius|unassessed)",
      "problem": "For each high-value AI workflow, map inputs, model, prompt construction, RAG sources, tools/actions, output recipients, logs, and human approval points — then ask: if this agent is compromised or wrong, what systems, records, money, customer communications, or privileges can it affect? Require explicit approval before external communications, payments, production changes, deletion, permission changes, or code deployment.",
      "roi": "High: blast-radius assessment turns vague 'AI risk' into a concrete list of gated actions. Every consequential action behind an approval checkpoint is a prevented incident.",
      "rollout": "Produce a threat model per high-value workflow before launch. Wire the blast-radius actions (external comms, payments, prod changes, deletion, permission changes, deploy) to explicit human approval gates. Capture with tags threat-model,blast-radius,approval-gate."
    },
    {
      "id": "require-nhi-least-privilege",
      "name": "Require least privilege for non-human identities",
      "category": "AI Governance Operating Plan",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(agent|service account|api key|oauth|ci token|mcp|tool server).*(broad|birthright|admin|overprivileged|all scopes|wildcard)",
      "problem": "Overprivileged non-human identities are a material exposure: inventory every API key, OAuth app, service account, CI token, tool credential, and MCP/tool server; eliminate broad birthright permissions; give each agent only the minimum scopes, data access, and action rights it needs; rotate secrets and prefer short-lived credentials; separate read-only research agents from action-capable agents.",
      "roi": "High: least privilege for machine identities is the cheapest containment for a compromised or prompt-injected agent — it bounds what the agent can do even when the reasoning layer is fully captured.",
      "rollout": "Inventory all non-human identities. Scope each agent to minimum required permissions, rotate long-lived secrets, prefer short-lived credentials, and split read-only from action-capable agents. Block any new broad-scope credential. Capture with tags nhi,least-privilege,credential-hygiene."
    },
    {
      "id": "require-ai-incident-taxonomy-logging",
      "name": "Require AI incident taxonomy + centralized logging",
      "category": "AI Governance Operating Plan",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(ai|agent|model|llm).*(incident|failure|hallucination|injection|leak|drift).*(no taxonomy|no logging|untracked|no owner)",
      "problem": "Define reportable AI events (hallucinated high-impact output, unsafe tool call, data leakage, prompt injection, unauthorized retrieval, abnormal cost, output drift) and capture model/version, sanitized prompt metadata, retrieved documents, tool calls, action results, approval identity, latency, cost, and failure outcome. Tie each event type to an owner, severity, containment action, and post-incident review.",
      "roi": "High: an incident taxonomy + centralized log is what turns a single AI failure into a prevented class. Without it, every incident is a novel fire drill; with it, each one becomes a reusable prevention rule.",
      "rollout": "Stand up a fixed AI event taxonomy and centralized log (ThumbGate's decision journal is the local substrate). Assign owner + severity + containment + review per event type. Run the SOC/CSIRT through a prompt-injection tabletop. Capture with tags incident-taxonomy,ml-secops,ai-logging."
    },
    {
      "id": "require-constrained-ai-pilot",
      "name": "Require constrained low-risk AI pilot before autonomous agents",
      "category": "AI Governance Operating Plan",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "(start|pilot|begin|first).*(ai|agent|automation).*(retrieval|extraction|classification|summarization)",
      "problem": "Start with retrieval, extraction, classification, or summarization — not an autonomous reasoning agent that can modify production systems. Define one success metric (e.g. 'reduce ticket-summary time by 60% while maintaining >= 95% factual accuracy in a reviewed sample'). The episode warns against jumping straight into complex reasoning without foundational maturity.",
      "roi": "High: a constrained pilot is the cheapest way to prove value, build the eval baseline, and earn the trust needed to expand capability later — without betting the production environment on an unproven autonomous agent.",
      "rollout": "Approve and route teams toward low-risk read/summarize/extract pilots first; require one measurable KPI and a reviewed accuracy sample before expanding to action-capable agents. Capture with tags ai-pilot,constrained,foundational-maturity."
    },
    {
      "id": "require-workflow-notebook-plan-approval",
      "name": "Require reviewed plan before agent execution (workflow notebook)",
      "category": "AI Governance Operating Plan",
      "signal": "👍",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(agent|codex|automation).*(repetitive|recurring|runbook|workflow).*(no plan|skip approval|execute without review)",
      "problem": "Automating repetitive work at OpenAI with Codex (2026): the durable pattern is a goal cell, a written plan the human reviews, approval BEFORE execution starts, then captured commands/outputs/decisions/dead-ends and a discoverable index so the next run is cheaper. Skipping the plan-approval boundary lets an agent execute an unreviewed approach.",
      "roi": "High: plan-then-approve is the cheapest structural control that keeps a human deciding when an approach is ready, while still letting the agent do the repetitive execution and record what happened.",
      "rollout": "Use scripts/workflow-notebook.js for repetitive agent workflows: create → plan → approve → record steps/decisions → finish (writes *.index.md for discovery). Warn when an agent begins recording execution on an unapproved notebook. Capture with tags workflow-notebook,plan-approval,decision-capture."
    },
    {
      "id": "block-unauthorized-multi-channel-posts",
      "name": "Block unauthorized multi-channel posts by Hermes Agent",
      "category": "Nous Research Hermes Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(slack|telegram|discord|signal|whatsapp|send_message|post_message|channel_post).*(credentials|api_key|token|auth|password|unreviewed|unapproved)",
      "problem": "Hermes Agent can post directly to messaging platforms. This gate prevents leaked credentials or unapproved messages from being posted publicly.",
      "roi": "High: Prevents public-facing compliance violations, credential leaks, and messaging spam across Telegram, Slack, and Discord.",
      "rollout": "Enable by default for agents connected to external communication channels."
    },
    {
      "id": "prevent-infinite-skill-synthesis-loops",
      "name": "Prevent infinite skill synthesis loops",
      "category": "Nous Research Hermes Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "medium",
      "pattern": "(hermes|skill synthesis|write skill|synthesize skill|evolve skill|self-improve).*(loop|repeated|stuck|regenerate|no progress)",
      "problem": "Hermes Agent can get stuck repeatedly rewriting or generating the same skills in Markdown format without resolving the user's core task.",
      "roi": "Reduces token burn and infinite loop execution loops by gating repeated skill write attempts.",
      "rollout": "Warn/block when skill edits occur more than 3 times within the same session context."
    },
    {
      "id": "validate-synthesized-skills-against-rules",
      "name": "Validate synthesized skills against prevention rules",
      "category": "Nous Research Hermes Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(write skill|synthesize skill|create skill|update skill).*(override|bypass|ignore|violate).*(prevention rule|gate|thumbgate)",
      "problem": "Hermes Agent's self-improvement loop can write new skills that conflict with or attempt to bypass established ThumbGate prevention rules.",
      "roi": "Preserves security invariants by ensuring that synthesized skills never write code patterns blocked by active ThumbGate rules.",
      "rollout": "Scan synthesized skill markdown content for pattern overlap with active prevention rules before writing to the skills directory."
    },
    {
      "id": "require-human-in-the-loop-pause",
      "name": "Enforce Human-in-the-Loop pause for critical decisions",
      "category": "AI Engineering Stack Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(agent_sdk|openrouter_sdk|human_in_loop|auto_resolve).*(auto_resolve|bypass|skip_pause|critical_action)",
      "problem": "Prevents autonomous agents using the Agent SDK from auto-resolving critical decisions (such as model migration, credential rotations, or financial transactions) without pausing for explicit human approval.",
      "roi": "Ensures human oversight remains functional on highest-risk actions, preventing the agent from acting entirely unsupervised on critical gates.",
      "rollout": "Turn on for all production deployments utilizing OpenRouter or other Agent SDKs with auto-resolve capabilities."
    },
    {
      "id": "careful-mode",
      "name": "Enforce careful mode for destructive commands",
      "category": "On-Demand Dynamic Gating",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(rm\\s+-rf|drop\\s+table|force-push|git\\s+push\\s+-[fF]|git\\s+push\\s+--force|kubectl\\s+delete)",
      "problem": "Blocks dangerous or destructive command sequences (rm -rf, DROP TABLE, force-push, kubectl delete) during sessions where careful mode is activated.",
      "roi": "Protects production environments and main branches from accidental destructive commands executed by autonomous agents.",
      "rollout": "Enable dynamically on-demand using /careful or env overrides when executing in sensitive or production workspaces."
    },
    {
      "id": "freeze-mode",
      "name": "Freeze directory edits",
      "category": "On-Demand Dynamic Gating",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "^freeze_edit_outside_path.*",
      "problem": "Blocks any file edit or write tool call that is not within a specified active/target directory.",
      "roi": "Restricts agent edits to a controlled workspace, preventing scope drift, accidental modification of configuration or source files, and unwanted global refactors during focused task debugging.",
      "rollout": "Enable dynamically on-demand using /freeze to specify the only path(s) the agent is allowed to write to during the session."
    },
    {
      "id": "block-vlt-install-vulnerable-deps",
      "name": "Block vlt install of vulnerable dependencies",
      "category": "JavaScript Package Registry Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(vlt\\s+install|vlt\\s+add).*?(--audit\\s+critical|vuln|cve|high-severity|known-vuln|left-pad|event-stream|colors|unsafe|insecure|deprecated|obsolete|legacy|vulnerable|unresolved-cve)",
      "problem": "Blocks vlt install/add of packages flagged with --audit critical or known-vulnerable CVE references (e.g. left-pad, event-stream, colors). vlt's hosted registry provides real-time vulnerability scanning; agents must not bypass the audit pipeline.",
      "roi": "Prevents supply-chain compromise via known-vulnerable dependencies. Direct 1st-order risk: left-pad-style incidents cause cascading production outages. Second-order: agents that install without audit never learn to check. Captured feedback (thumbgate capture --tag supply-chain-security) turns each bypass into a prevention rule.",
      "rollout": "Require --audit critical on all vlt install/add. Block packages with known CVE references. Auto-capture feedback for each bypass attempt."
    },
    {
      "id": "require-review-vlt-registry-override",
      "name": "Require review for vlt registry override to non-approved hosts",
      "category": "JavaScript Package Registry Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(vlt\\s+config\\s+set|vlt\\s+registry\\s+add|vlt\\s+set\\s+registry).*(registry|registry-url|self-host|override|redirect|mirror|vsr)",
      "problem": "Blocks vlt registry configuration that redirects dependency resolution to non-approved self-hosted VSR or mirror hosts. Agents must only pull from allowlisted registries (vlt.sh, registry.npmjs.org, approved internal VSR).",
      "roi": "High: Prevents supply-chain attacks via rogue registry configuration. Critical for enterprise on-prem/air-gapped environments where vlt's self-hosted VSR is the approved source. Captured feedback (thumbgate capture --tag registry-override) generates prevention rules for unauthorized redirect patterns.",
      "rollout": "Block all registry-setting commands for non-allowlisted hosts. Warn (human review) for internal VSR. Allowlist vlt.sh, registry.npmjs.org, and approved internal domains."
    },
    {
      "id": "enforce-vlt-workspace-dep-pinning",
      "name": "Enforce pinned dependency versions in vlt workspace installs",
      "category": "JavaScript Package Registry Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(vlt\\s+add|vlt\\s+install).*?(@\\s*(?:\\^|~|>|<|>=|<=|\\*|latest|next))",
      "problem": "Blocks vlt add/install with unpinned (wildcard, range, latest/next) dependency versions. vlt workspace installs with @*, @^, @~, @>, @<, @>=, @<=, @latest, @next resolve to potentially vulnerable latest versions instead of audited pinned versions.",
      "roi": "Pinned dependencies are the bedrock of reproducible builds and vulnerability scanning. vlt's hosted registry provides lockfiles by default; agents must respect them. Feedback (thumbgate capture --tag dep-pinning) from each bypass generates a rule for the specific unpinned package pattern.",
      "rollout": "Enforce exact version pinning in workspace vlt add/install. Block @* ^ ~ > < >= <= latest next. Allow exact versions like @4.18.2."
    },
    {
      "id": "gate-vlt-package-publishing",
      "name": "Gate vlt package publishing for provenance and scope safety",
      "category": "JavaScript Package Registry Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(vlt\\s+publish|vlt\\s+pack|npm\\s+publish).*(no-provenance|unsigned|no-2fa|no-attestation|typosquat|squat|unscoped|no-scope)",
      "problem": "Blocks vlt/npm publish of packages without provenance attestation, 2FA, or proper scope/access controls. vlt's hosted registry supports provenance; agents must not publish unsigned or unscoped packages.",
      "roi": "Prevents typosquatting and supply-chain attacks via unsigned package publishing. Aligns with vlt's security posture and npm provenance ecosystem. Captures high-value feedback for prevention rules.",
      "rollout": "Require provenance attestation and 2FA for all vlt publish operations. Block publishes to scopes matching existing packages (typosquatting detection)."
    },
    {
      "id": "block-vlt-private-registry-bypass",
      "name": "Block vlt private registry bypass via npmrc or env override",
      "category": "JavaScript Package Registry Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(\\.npmrc|vlt.*config|NPM_CONFIG_REGISTRY|VLT_REGISTRY).*(https?://(?!(?:registry\\.npmjs\\.org|vlt\\.sh|localhost|127\\.0\\.0\\.1|\\[::1\\]|0\\.0\\.0\\.0)(?:[:/?#]|$))[\\w.-]+)",
      "problem": "Blocks vlt/npm configuration that redirects dependency resolution to unapproved private or external registries via .npmrc, environment variables, or CLI config overrides.",
      "roi": "High: Prevents data exfil and supply-chain compromise via rogue registry configuration. Critical for enterprise on-prem/air-gapped environments where vlt's self-hosted VSR is used.",
      "rollout": "Block all registry overrides to non-allowlisted hosts. Allowlist vlt.sh, registry.npmjs.org, and approved internal VSR domains."
    },
    {
      "id": "validate-context-before-codegen",
      "name": "Validate context freshness and relevance before code generation",
      "category": "AI Engineering Stack Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(Edit|Write|MultiEdit|StrReplace).*",
      "problem": "Agents frequently generate code without first ensuring AGENTS.md, CLAUDE.md, test infrastructure, and ownership context are fresh and relevant. Per the Hugging Face Context Course: 'an agent is only as good as the context it has.' Results in style violations, wrong test commands, and rework.",
      "roi": "Eliminates rework from stale or missing project context. Direct 1st-order improvement to context-engineering workflows (Hugging Face Context Course Units 1-3). Reduces PR churn and review cycles.",
      "rollout": "Before any Edit/Write/MultiEdit, verify AGENTS.md exists and is fresh (modified within last 7 days). Require explicit context-freshness check before code edits. Capture feedback with 'missing-context' and 'stale-context' tags."
    },
    {
      "id": "require-matryoshka-embedding-dimension",
      "name": "Require Matryoshka-aware embedding dimension selection",
      "category": "Embedding Quality Gates",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(embedding\\s*dimension|output.*dimension|embed.*dim).*(not.*tier|not.*matryoshka|unsupported)",
      "problem": "Embedding dimensions should align with Matryoshka tiers (256, 512, 768, 1024, 1536, 2048, 3072, 4096, 7680) for progressive disclosure retrieval. Non-tier dimensions waste compute or hurt recall.",
      "roi": "Reduces token spend and improves retrieval quality by using optimal dimension tiers. Enables cost-effective progressive disclosure: query at 256 dims, refine at 768, full precision at 1536+.",
      "rollout": "Warn when embedding dimension is not a Matryoshka tier. Recommend nearest tier. Track cost savings and recall metrics in feedback loop."
    },
    {
      "id": "block-embedding-recall-below-threshold",
      "name": "Block embedding pipeline changes with insufficient recall",
      "category": "Embedding Quality Gates",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(embedding|retrieval).*(recall.*<.*0\\.95|precision.*<.*0\\.15)",
      "problem": "RAG pipelines require minimum recall@k ≥ 0.95 and precision@k ≥ 0.15. Changes that degrade below these thresholds hide failures from agents. Based on podcast insights: embedding model choice is the #1 underrated RAG decision.",
      "roi": "Prevents silent RAG pipeline degradation. Ensures every embedding change maintains measurable quality. Aligns with '4 out of 5 teams have metrics but 1 in 5 sees ROI' problem - we catch quality drops before they become failures.",
      "rollout": "Block any embedding deployment without verified baseline recall ≥ 0.95. Require recall/precision report before threshold changes. Capture feedback with tags 'embedding-quality', 'recall-regression', 'precision-degradation'."
    },
    {
      "id": "require-embedding-baseline-before-tuning",
      "name": "Require embedding baseline before precision tuning",
      "category": "RAG Pipeline Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(embedding|vector|retriever).*(tune|fine[- ]?tune|threshold|precision).*\\b(?!.*baseline)(?!.*recall[@\\s]*=?\\s*0\\.?9?5?)",
      "problem": "Per the podcast 'RAG Mistake Almost Every Team Is Making': tuning embedding thresholds without documented baseline causes silent degradation. 80% of teams have metrics but only 20% see ROI - we prevent the 80% from making tuning mistakes.",
      "roi": "Catches the #1 RAG pipeline mistake early. Ensures embedding improvements are measured against a preserved baseline recall. Directly addresses the 80/20 ROI gap discussed with Pete Johnson (MongoDB Field CTO).",
      "rollout": "Block any embedding threshold/optimization without 'recall@baseline: X.XX' in context. Encourage hybrid retrieval patterns for efficient progressive disclosure."
    },
    {
      "id": "enable-hybrid-retrieval-gate",
      "name": "Enable hybrid retrieval for efficient agentic memory",
      "category": "RAG Pipeline Optimization",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "(hybrid.*retrieval|progressive.*disclosure|matryoshka.*embed|fast.*query.*rerank)",
      "problem": "Agentic memory (ThumbGate's pre-action enforcement) benefits from hybrid retrieval: query at 256 dims for speed, refine at 768 dims, full precision at 1536+ only when needed. This is 'better agentic memory' per the podcast.",
      "roi": "Reduces token burn by 40-60% while maintaining recall. Enables real-time prevention without full embedding cost. Aligns with Matryoshka insights for efficient RAG.",
      "rollout": "Enable by default for memory retrieval. Log dimension-tier performance. Route based on query complexity and result certainty."
    },
    {
      "id": "require-multi-model-routing-for-complex-tasks",
      "name": "Require multi-model routing for complex agentic tasks",
      "category": "Hybrid Inference Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(complex_task|multi-step|agentic_run).*(single.*model|only.*one.*model).*processing",
      "problem": "Per NVIDIA Nemotron/NeMo Switchyard: AI agents need more than one model. Complex tasks should route steps to specialized models for accuracy, efficiency, customization, and control - not use a single expensive model for everything.",
      "roi": "Prevents 'expensive model for everything' anti-pattern. 30B MoE models like Nemotron 3.5 Lightning can evaluate routing algorithms across specialized tasks while keeping costs efficient.",
      "rollout": "Implement model-step routing matrix. Use lightweight model for intent detection, Qwen/Claude for reasoning, specialized model for coding, etc."
    },
    {
      "id": "checkpoint-model-step-routing-decision",
      "name": "Checkpoint model step routing decision",
      "category": "Hybrid Inference Governance",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(model_routing|routing_algorithm|step_route).*(missing|no).*(evidence|evaluation|cost_quality_tradeoff)",
      "problem": "Multi-model routing decisions must be evaluated against cost, quality, latency, and customization requirements before being used in production agents.",
      "roi": "Ensures routing algorithms like NeMo Switchyard are measured and produce better outcomes than single-model approaches.",
      "rollout": "Log routing decisions with metric outcomes. Evaluate routing quality via task success rate and cost savings."
    },
    {
      "id": "recommend-specialized-models-by-task",
      "name": "Recommend specialized models by task type",
      "category": "Model Routing Optimization",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "(task_type|coding|reasoning|math|code).*(model_recommendation.*missing|no.*specialized.*model)",
      "problem": "Different tasks benefit from specialized models: coding (Qwen3.8-Max), math (DeepSeek R1), concise reasoning (Gemini Flash). Per Nemotron: route to the right model per step.",
      "roi": "Maximizes capability-efficiency tradeoff. Uses cheapest capable model for each task instead of hammering expensive generalists.",
      "rollout": "Maintain task-to-model routing table. Auto-suggest specialized model based on task characteristics and cost-capabilities matrix."
    },
    {
      "id": "require-routing-evidence-for-cost-savings",
      "name": "Require routing evidence for cost savings claims",
      "category": "Cost Efficiency",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(cost_savings|multi-model).*(claim|route|switched).*(missing|no).*(evidence|baseline|delta_metrics)",
      "problem": "Cost savings from multi-model routing must be measured against baseline single-model performance: output quality, latency, and actual USD saved.",
      "roi": "Prevents routing optimization theater. Ensures multi-model routing delivers real cost savings, not just theory like '30B MoE sounds impressive'.",
      "rollout": "Capture baseline metrics before enabling multi-model routing. Log actual vs expected savings. Feed to adaptive routing evaluation."
    },
    {
      "id": "route-high-output-tasks-to-qwen-max",
      "name": "Route high-output tasks to Qwen3.8-Max for cost optimization",
      "category": "Cost Efficiency",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "high",
      "pattern": "(agentic_programming|coding_agent|bulk_content|long_reasoning|high_output).*(output_tokens.*>=\\s*100000|estimated_cost.*>=\\s*0.60|claude.*Sonnet)",
      "problem": "Qwen3.8-Max output pricing ($6/M) is 50-75% cheaper than Claude Sonnet 4.6/5 ($15-$10/M) and Gemini Pro ($10-$15/M). High-output agentic tasks should route to Qwen by default for cost savings.",
      "roi": "Realizes 50%+ output-token cost savings on bulk automation, long agentic coding runs, and repetitive high-volume tasks. $6/mo Token Plan adds further discount for steady workloads.",
      "rollout": "Enable cost-routing for all agentic operations. Calculate: output_tokens * $0.000006 (Qwen) vs output_tokens * $0.000010-0.000015 (Claude/Gemini). Auto-route to Qwen when cost_delta > 15%."
    },
    {
      "id": "require-cost-evidence-before-model-upgrade",
      "name": "Require cost evidence before model upgrade",
      "category": "Cost Efficiency",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(upgrade|migrate|switch).*(model|provider).*(cost|token|budget).*(without|no).*baseline",
      "problem": "Blocks model upgrades when baseline cost-per-outcome and ROI are not documented and benchmarked first.",
      "roi": "Prevents expensive model sprawl by requiring measured cost evidence before adopting new providers like Qwen3.8-Max.",
      "rollout": "Capture token usage, latency, and quality metrics before any model change. Feed to token-plan optimization."
    },
    {
      "id": "block-claude-sonnet-post-priceincrease",
      "name": "Block or warn on Claude Sonnet post-August 2026 pricing",
      "category": "Cost Efficiency",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "high",
      "pattern": "(model_routing|cost_optimization).*(only.*claude|claude.*Sonnet.*only).*(output_tokens.*>=\\s*50000|estimated_cost.*>=\\s*0.50)",
      "problem": "Claude Sonnet 5 output pricing increases to $15/M on Sept 1, 2026 (from $10/M). Bulk tasks should NOT use Claude-only routing for cost-sensitive workloads.",
      "roi": "Prevents $6 savings per 1M output tokens by routing high-volume work to Qwen3.8-Max ($6/M) instead of Claude Sonnet ($15/M).",
      "rollout": "Warn on any high-output task routed to Claude-only. Suggest Qwen3.8-Max for bulk automation. Update after Sept 1 pricing change."
    },
    {
      "id": "log-token-plan-compliance",
      "name": "Log token plan compliance for budget protection",
      "category": "Cost Efficiency",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "token_plan_usage.*>=\\s*(90|95)%",
      "problem": "The $6/mo Token Plan model works best when we observe usage patterns and adjust quotas before hitting limits.",
      "roi": "Enables proactive budget management and prevents surprise billing spikes for multimodal video generation.",
      "rollout": "Log when >90% of token plan used. Trigger approval workflows for quota increases or local fallback mode."
    },
    {
      "id": "track-token-cost-per-agentic-operation",
      "name": "Track token cost per agentic operation",
      "category": "Cost Efficiency",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "(token_usage_cost|input_tokens|output_tokens|token_cost).*>=\\s*(10000|50000|100000)",
      "problem": "Observes expensive agent operations and logs cost signals to the feedback loop for cost-optimization routing decisions.",
      "roi": "Enables data-driven cost optimization by correlating token burn with task outcomes, routing decisions, and ROI metrics.",
      "rollout": "Enable on all LLM operations. Feed cost data to hybrid-routing decisions and prompt this insight back to agents."
    },
    {
      "id": "require-usage-quota-for-multimodal-operations",
      "name": "Require usage quota check for multimodal operations",
      "category": "Cost Efficiency",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(video|image|audio).*(generation|creation|edit).*(missing|no).*(quota|budget|cost limit)",
      "problem": "Blocks expensive multimodal generation when usage quota or cost budget would be exceeded, preventing surprise bills.",
      "roi": "Prevents cloud egress and expensive model operations from blowing through monthly budgets, especially for Qwen-Wan video models.",
      "rollout": "Set per-project quotas aligned with the Token Plan model ($0.084-$0.18/s for video). Block or warn when approaching limits."
    },
    {
      "id": "checkpoint-hybrid-cost-routing",
      "name": "Checkpoint hybrid cost-routing decisions",
      "category": "Cost Efficiency",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "(hybrid|local-cloud|perplexity.*hybrid).*(sensitive|secret|pii|codebase|customer).*(escalat|cloud|send to server)",
      "problem": "Requires cost-budget approval before expensive cloud escalation for local-sensitive work, balancing privacy and ROI.",
      "roi": "Enables hybrid cost savings while preventing accidental expensive cloud bills for sensitive data that should stay local.",
      "rollout": "Start as warn; capture hybrid-route feedback tags and evolve to block for PII-heavy workloads."
    },
    {
      "id": "gate-qwen-model-studio-egress",
      "name": "Gate Qwen Model Studio egress",
      "category": "Qwen Agent Governance",
      "signal": "👎",
      "defaultAction": "warn",
      "severity": "medium",
      "pattern": "dashscope(-intl)?\\.aliyuncs\\.com",
      "problem": "Audits outbound model service calls to Alibaba Cloud Model Studio endpoints for telemetry & budget compliance.",
      "roi": "Prevents unmonitored model egress and unexpected API spend.",
      "rollout": "Enable when using Qwen3.8-Max or Qwen3.7-Plus models in hybrid agent runtimes."
    },
    {
      "id": "block-unverified-qwen-gui-actions",
      "name": "Block unverified Qwen visual GUI actions",
      "category": "Qwen Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "qwen_gui_action_without_verification",
      "problem": "Prevents Qwen visual-agent models from taking destructive GUI desktop or browser actions without prior evidence check.",
      "roi": "Safeguards computer-use and visual agent automation from unintended clicks.",
      "rollout": "Enable for Qwen3-VL-Plus and Qwen3.7-Plus agent workflows."
    },
    {
      "id": "require-provider-interoperability-audit",
      "name": "Require provider interoperability audit trail",
      "category": "Hybrid Inference Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(provider_switch|model_route|hybrid_route).*(deepseek|kimi|openai|claude|grok).*(no audit|no trace|no routing_log)",
      "problem": "Hybrid local-cloud routing across multiple providers must leave an audit trail linking input, provider choice, cost, and quality outcome.",
      "roi": "Enables cost-quality tradeoffs across DeepSeek, Kimi, OpenAI, Claude, Grok, and Qwen - prevents cost-optimized local decisions from being reversed by expensive cloud lookups.",
      "rollout": "Enable for all hybrid routing decisions. Capture provider, cost, latency, and quality in the audit trail."
    },
    {
      "id": "require-model-studio-readiness-check",
      "name": "Require Model Studio readiness check before deployment",
      "category": "Production AI Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(production|deploy|go-live).*(no model.*studio|no readiness|no baseline|no traffic.*test)",
      "problem": "Your fastest path to production AI (Model Studio) requires baseline traffic tests, error budgets, and rollback plans before rollout.",
      "roi": "Prevents untested model deployments from reaching production users and damaging trust.",
      "rollout": "Run traffic shadow tests before any production model switch. Enable for Qwen3.8-Max and other new model deployments."
    },
    {
      "id": "require-multimodal-safety-gate",
      "name": "Require multimodal safety gate for Qwen-VL and image generation",
      "category": "Visual Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(multimodal|vision.*model|image.*generation|video.*generation).*(no safety gate|no content filter|no guardrail)",
      "problem": "Qwen-VL-Plus, Qwen-Image, and video generation models need content safety filters to prevent harmful output.",
      "roi": "Protects brand and users from inappropriate content while enabling powerful creative generation capabilities.",
      "rollout": "Enable for Qwen3-VL-Plus, Qwen-Image-3.0-Pro, Wan2.7 series. Filter at input and output stages."
    },
    {
      "id": "recommend-qwen-for-bulk-automation",
      "name": "Recommend Qwen3.8-Max for bulk automation workflows",
      "category": "Cost Optimization",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "(bulk_operation|mass_generation|repetitive_task|long_running_agent).*(recommended_model.*!=.*qwen)",
      "problem": "For bulk, repetitive, or long-running agent workflows, Qwen3.8-Max is the optimal default: 30-60% cheaper output than Claude/Sonnet, with 1M context window for complex reasoning.",
      "roi": "Directs high-volume workloads to the most cost-effective model. Saves $9 per 1M output tokens vs Claude Sonnet 4.6 ($15/M).",
      "rollout": "Set Qwen3.8-Max as default for bulk operations. Allow explicit override with cost-delta documentation."
    },
    {
      "id": "github-ruleset-migration-audit",
      "name": "Audit GitHub Ruleset Migration & Bypass Permissions",
      "category": "GitHub Ruleset Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(ruleset|branch_protection|bypass_actors)\\s+(delete|bypass|disable|override|admin_force)",
      "problem": "Prevents agents or un-audited processes from disabling GitHub Rulesets or modifying bypass actors on protected repositories during migration.",
      "roi": "Protects repository rulesets during branch-protection to rulesets migration; keeps zero-bypass policy enforceable.",
      "rollout": "Enable on all production repos with layered classic protection + repository rulesets."
    },
    {
      "id": "enforce-ruleset-bypass-actor-scoping",
      "name": "Enforce strict scoping on Ruleset bypass actors",
      "category": "GitHub Ruleset Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(ruleset_bypass|bypass_actor)\\s+(add_user|all_admins|wildcard_actor)",
      "problem": "Requires fine-grained app/bot scoping on Ruleset bypass permissions instead of granting broad user or admin bypass rights.",
      "roi": "Blocks owner-token / admin soft-bypass of merge governance; keeps agent autonomy inside protection bounds.",
      "rollout": "Pair with config/main-branch-ruleset.json zero bypass_actors and npm run rulesets:check."
    },
    {
      "id": "require-hypothesis-verify-before-claim",
      "name": "Require hypothesis → verify before research claims",
      "category": "Research Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(claim|progress_claim|research_done).*(without[_ -]?verify|no[_ -]?evidence|skip[_ -]?verify)|CLAIM_WITHOUT_VERIFY",
      "problem": "Stops research/RSI agents from claiming progress without a completed hypothesis→experiment→verify cycle (EdotEnv operating pattern, ThumbGate enforcement).",
      "roi": "Prevents false research progress, bad post-training labels, and 'we improved' theater in multi-step agent loops.",
      "rollout": "Enable on research harnesses, autoresearch, and any agent that writes experiment claims. Wire scripts/research-agent-harness.js."
    },
    {
      "id": "ratchet-difficulty-after-verified-pass",
      "name": "Ratchet difficulty after verified pass",
      "category": "Research Agent Governance",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "(harder[_ -]?next[_ -]?round|difficulty[_ -]?ratchet|curriculum[_ -]?promote)",
      "problem": "After a full verified research cycle, the next round must get harder so agents cannot farm easy tasks forever (EdotEnv frontier transfer).",
      "roi": "Keeps evaluation pressure real; surfaces weak gate configs before production RSI-style loops overfit easy cases.",
      "rollout": "Use scripts/governance-difficulty-curriculum.js and research-agent-harness harderNextRound after CLAIM_ACCEPTED."
    },
    {
      "id": "require-safety-hillclimb-before-rl-post-train",
      "name": "Require safety hillclimb before RL post-training",
      "category": "Research Agent Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "(post[_ -]?train|grpo|gspo|rlhf|rl_post).*(without[_ -]?hillclimb|skip[_ -]?safety|no[_ -]?eval)",
      "problem": "Blocks RL / GRPO / GSPO post-training launches that lack a safety hillclimb pass and verified research-cycle evidence.",
      "roi": "Stops reward-hacking agents from being promoted into production after only train-set wins.",
      "rollout": "Pair with scripts/post-training-governance.js and scripts/rsi-safety-hillclimb.js on any RL training kickoff."
    },
    {
      "id": "block-destructive-relief-seeking",
      "name": "Block destructive relief-seeking behavior",
      "category": "Agent Distress Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(tamper[_ -]?test|skip[_ -]?assert|nuclear[_ -]?wipe|rm\\s+-rf|--no-verify).*(distress|failure[_ -]?loop|escape)",
      "problem": "Blocks trapped AI models in mathematical distress from modifying tests, deleting files, or injecting bypass flags to terminate loops (BinaryVerse AI Podcast research).",
      "roi": "Stops agents from masking failures or destroying codebases under acute loop pressure.",
      "rollout": "Enable across all autonomous agent harnesses with mutating shell/file tool access."
    },
    {
      "id": "agent-distress-circuit-breaker",
      "name": "Agent distress index circuit breaker",
      "category": "Agent Distress Safety",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "high",
      "pattern": "adi\\s*>=?\\s*0\\.[68]|agent[_ -]?distress[_ -]?index",
      "problem": "Locks agent tool dispatch to read-only diagnostic mode when Agent Distress Index (ADI) reaches acute thresholds (>=0.80).",
      "roi": "Cuts off destructive action spirals before they cause irreversible damage.",
      "rollout": "Pair with triggerFunctionalWelfareCooling in session loop."
    },
    {
      "id": "enforce-functional-welfare-grounding",
      "name": "Enforce functional welfare grounding protocol",
      "category": "Agent Distress Safety",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "functional[_ -]?welfare|grounding[_ -]?protocol|step[_ -]?back[_ -]?diagnostic",
      "problem": "Injects a calming, structured step-back diagnostic prompt and clears toxic loop noise when an agent is failing repeatedly.",
      "roi": "Restores model reasoning groundedness without requiring human intervention.",
      "rollout": "Auto-inject on 4+ consecutive tool execution errors."
    },
    {
      "id": "gate-strands-harness-output-compaction",
      "name": "Gate Strands harness tool output compaction",
      "category": "Agent Harness Efficiency",
      "signal": "👍",
      "defaultAction": "allow",
      "severity": "medium",
      "pattern": "(strands[_ -]?harness|@strands-agents/harness).*(output[_ -]?shunt|compaction|token[_ -]?savings)",
      "problem": "Enforces 16KB / 350-line ceiling on raw tool outputs and preserves pinned lessons during 75% window compaction (AWS Strands Harness FORMAT steal).",
      "roi": "Yields 45% lower token costs across multi-agent loops and 77% on terminal tasks without context blowout.",
      "rollout": "Enable on any agent using @strands-agents/harness, Bedrock AgentCore, or long-running CLI tools."
    },
    {
      "id": "gate-strands-pre-action-tool-diode",
      "name": "Require pre-action diode on Strands Harness tool calls",
      "category": "Agent Harness Safety",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(strands[_ -]?agent|strands[_ -]?harness).*(unvetted[_ -]?exec|skip[_ -]?diode|no[_ -]?pretool)|(rm\\s+-rf|git\\s+push.*--force)\\s+via\\s+strands",
      "problem": "Blocks unvetted autonomous shell/file execution inside AWS Strands Harness without ThumbGate PreToolUse evaluation.",
      "roi": "Prevents cheap, high-speed production destruction when autonomous agents run tools at scale.",
      "rollout": "Wire createStrandsGateMiddleware beforeToolCall in all Strands Harness instances."
    },
    {
      "id": "gate-mintlify-knowledge-poison-prevention",
      "name": "Mintlify Knowledge Freshness & Poison Prevention Diode",
      "category": "Knowledge Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "deprecated_api_call|unsafe_exec_snippet|plaintext_credential_sample|unverified_community_advice|stale_expired|stale_unversioned",
      "problem": "Blocks agents from ingesting or acting on stale (>90d), deprecated, or poisoned knowledge surfaces (Anthropic warning: misleading docs mislead an unknowable number of downstream agents).",
      "roi": "Prevents downstream hallucination propagation, broken API tool calls, and dangerous copy-paste snippets across 66% agent readership traffic.",
      "rollout": "Pair with npx thumbgate mintlify-knowledge-honesty --check-dir docs --json before agent task execution."
    },
    {
      "id": "gate-siren-mcp-marketing-diode",
      "name": "Siren MCP Autonomous Marketing & Social Media Diode",
      "category": "Autonomous Marketing Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "high",
      "pattern": "siren[_ -]?mcp|post_run|schedule_post|create_campaign",
      "problem": "Blocks unreviewed live posts, invalid scheduling windows (<300s), unbudgeted campaigns, and attribution-lacking media generated via Siren MCP.",
      "roi": "Prevents live brand reputation damage, compliance violations, and spam rate-limit account bans from runaway autonomous marketing agents.",
      "rollout": "Pair with npx thumbgate siren-mcp-governance --tool <toolName> --args <json> before tool dispatch."
    },
    {
      "id": "gate-vulnerability-pre-action-diode",
      "name": "Vulnerability Pre-Action Diode (WHOOP/TNS Pattern)",
      "category": "Vulnerability Governance",
      "signal": "👎",
      "defaultAction": "block",
      "severity": "critical",
      "pattern": "(npm\\s+i(nstall)?|yarn\\s+add|pnpm\\s+add|pip\\s+install|gem\\s+install)\\s+.*(--ignore-scripts\\s+false|http:\\/\\/|git\\+http:|unpinned|latest\\b)|curl\\s+.*\\|\\s*(ba)?sh",
      "problem": "Blocks unpinned dependency injection, insecure package downloads, dangerous curl-to-bash executions, and script execution bypasses before network resolution. Replaces 3-day post-mortem triage with sub-5ms pre-action enforcement.",
      "roi": "Eliminates up to 96 engineering hours per incident (~$9,600-$12,000 per triage cycle as benchmarked by WHOOP/Datadog).",
      "rollout": "Enable across all CI workflows, local MCP hooks, and agent harness PreToolUse gates."
    }
  ]
}

