{
  "rules": [
    {
      "tier": "deep",
      "label": "Deep reasoning",
      "description": "Architecture decisions, security review, complex debugging, large codebase analysis, novel problems.",
      "signals": {
        "match_verbs": [
          "design",
          "architect",
          "review security",
          "audit",
          "diagnose",
          "reason about",
          "model",
          "reverse engineer",
          "orchestrate",
          "benchmark",
          "profile",
          "load test",
          "threat model",
          "decouple",
          "investigate"
        ],
        "match_patterns": [
          "architecture",
          "vulnerability",
          "race condition",
          "multi-tenant",
          "multi tenant",
          "distributed",
          "trade-off",
          "tradeoff",
          "memory leak",
          "large codebase",
          "at scale",
          "high throughput",
          "cross-service",
          "cross service",
          "rate limit",
          "consensus",
          "eventual consistency",
          "migration strategy",
          "scaling strategy",
          "failure mode",
          "root cause",
          "zero trust",
          "microservices",
          "event driven",
          "event sourcing",
          "disaster recovery",
          "data governance",
          "cryptography",
          "deadlock",
          "thread pool",
          "concurrency",
          "bottleneck",
          "zero downtime",
          "blue-green deployment",
          "end-to-end encryption",
          "reverse engineering",
          "load balancer",
          "kubernetes cluster",
          "fault tolerance"
        ],
        "force_patterns": [
          "security vulnerabilit",
          "system design",
          "database schema",
          "from scratch",
          "operating system",
          "compiler",
          "kernel",
          "consensus algorithm",
          "distributed system",
          "cryptography implementation",
          "custom crypto",
          "zero day",
          "zero-day",
          "real-time operating system",
          "rtos",
          "custom database engine",
          "custom network protocol",
          "bare metal"
        ],
        "exclude_patterns": [],
        "min_tokens": 0
      },
      "notes": [
        "Multi-hop reasoning is likely required.",
        "Output quality is meaningfully higher at larger model tiers.",
        "Cost difference is justified."
      ]
    },
    {
      "tier": "moderate",
      "label": "Moderate",
      "description": "Feature work, refactors, debugging known errors, integrations. Multi-step but bounded.",
      "signals": {
        "match_verbs": [
          "refactor",
          "implement",
          "write",
          "update",
          "debug",
          "document",
          "review",
          "build",
          "create",
          "add",
          "integrate",
          "configure",
          "migrate",
          "deploy",
          "optimize",
          "optimise",
          "wire up",
          "hook up",
          "rewrite",
          "transition",
          "port",
          "upgrade",
          "scaffold",
          "mock",
          "stub",
          "containerize",
          "containerise",
          "dockerize",
          "dockerise",
          "prototype",
          "test-drive",
          "resolve",
          "triage",
          "connect",
          "authenticate",
          "authorize",
          "authorise"
        ],
        "match_patterns": [
          "react component",
          "vue component",
          "svelte component",
          "express api",
          "rest api",
          "graphql",
          "crud",
          "feature",
          "endpoint",
          "middleware",
          "hooks",
          "docs",
          "documentation",
          "known error",
          "authentication",
          "login flow",
          "signup flow",
          "pagination",
          "dashboard",
          "form validation",
          "file upload",
          "webhook",
          "cron job",
          "background job",
          "queue worker",
          "cache layer",
          "error handling",
          "retry logic",
          "state management",
          "routing",
          "database query",
          "orm query",
          "sql query",
          "integration test",
          "e2e test",
          "api endpoint",
          "api controller",
          "user interface",
          "ui component",
          "frontend",
          "front-end",
          "backend",
          "back-end",
          "single page app",
          "spa",
          "server side rendering",
          "ssr",
          "static site generation",
          "responsive design",
          "mobile friendly",
          "state machine",
          "redux store",
          "context api",
          "websockets",
          "graphql mutation",
          "graphql query",
          "apollo client",
          "rest client",
          "oauth",
          "jwt",
          "session token",
          "role based access",
          "rbac",
          "permissions",
          "database migration",
          "schema update",
          "index optimization",
          "active record",
          "data access layer",
          "dependency injection",
          "mvc",
          "event handler",
          "event listener",
          "dom manipulation",
          "browser api",
          "localstorage",
          "sessionstorage",
          "service worker",
          "pwa",
          "accessibility",
          "a11y",
          "internationalization",
          "i18n",
          "third-party api",
          "stripe integration",
          "payment gateway"
        ],
        "force_patterns": [],
        "exclude_patterns": [
          "unit test",
          "race condition",
          "security",
          "vulnerability",
          "database schema",
          "system design",
          "multi-tenant",
          "distributed",
          "at scale",
          "consensus",
          "from scratch",
          "deadlock",
          "memory leak",
          "kernel",
          "compiler",
          "bare metal",
          "zero day",
          "zero-day",
          "cryptography",
          "custom crypto"
        ]
      },
      "notes": [
        "Some reasoning and synthesis are required.",
        "Quality improves with stronger coding ability, but frontier depth is not necessary."
      ]
    },
    {
      "tier": "routine",
      "label": "Routine",
      "description": "Bounded, well-defined single-step work. Formatting, string and data ops, boilerplate, simple lookups.",
      "signals": {
        "match_verbs": [
          "format",
          "translate",
          "summarize",
          "summarise",
          "rename",
          "fix typo",
          "fix a typo",
          "add comment",
          "add a comment",
          "add docstring",
          "convert",
          "list",
          "sort",
          "alphabetize",
          "alphabetise",
          "order",
          "reorder",
          "count",
          "filter",
          "parse",
          "split",
          "join",
          "trim",
          "strip",
          "escape",
          "encode",
          "decode",
          "hash",
          "compare",
          "merge",
          "dedupe",
          "deduplicate",
          "round",
          "clamp",
          "uppercase",
          "lowercase",
          "capitalize",
          "capitalise",
          "reverse",
          "truncate",
          "pad",
          "replace",
          "remove",
          "extract",
          "slice",
          "pluralize",
          "pluralise",
          "singularize",
          "singularise",
          "prettify",
          "minify",
          "stringify",
          "serialize",
          "serialise",
          "deserialize",
          "deserialise",
          "sanitize",
          "sanitise",
          "normalize",
          "normalise",
          "calculate",
          "compute",
          "sum",
          "average",
          "tally",
          "validate",
          "print",
          "log",
          "spellcheck",
          "lint",
          "find",
          "search for",
          "titlecase",
          "camelcase",
          "snakecase",
          "kebabcase",
          "pascalcase",
          "indent",
          "unindent",
          "align",
          "wrap",
          "unwrap",
          "fold",
          "unfold",
          "comment out",
          "uncomment",
          "stub out",
          "cast",
          "typecast",
          "coerce",
          "mock out",
          "scaffold out",
          "flesh out",
          "clean up",
          "tidy up",
          "beautify",
          "destructure",
          "spread",
          "map over",
          "prepend",
          "append",
          "unshift",
          "pop",
          "shift",
          "splice",
          "flatten",
          "groupBy",
          "group by",
          "sort by",
          "order by",
          "partition",
          "chunk",
          "shuffle",
          "randomize",
          "randomise",
          "sample",
          "pick",
          "omit",
          "zip",
          "unzip",
          "debounce",
          "throttle",
          "delay",
          "defer",
          "retry",
          "timeout",
          "clear timeout",
          "set interval",
          "clear interval",
          "fetch data",
          "make api call",
          "send request",
          "read file",
          "write file"
        ],
        "match_patterns": [
          "unit test",
          "write unit tests",
          "boilerplate",
          "explain how",
          "what is",
          "summarize",
          "summarise",
          "meeting notes",
          "one-liner",
          "one liner",
          "regex",
          "regular expression",
          "cron expression",
          "gitignore",
          "env var",
          "environment variable",
          "readme",
          "commit message",
          "helper function",
          "utility function",
          "getter",
          "setter",
          "enum",
          "constant",
          "slug",
          "uuid",
          "random string",
          "date format",
          "email regex",
          "phone regex",
          "json to",
          "csv to",
          "yaml to",
          "a list",
          "the list",
          "an array",
          "a string",
          "a dictionary",
          "a map",
          "a set",
          "camel case",
          "snake case",
          "kebab case",
          "pascal case",
          "typescript interface",
          "ts interface",
          "typescript type",
          "ts type",
          "prop types",
          "jsdoc",
          "doc string",
          "class component",
          "functional component",
          "for loop",
          "while loop",
          "switch statement",
          "if else",
          "ternary",
          "try catch",
          "try/catch",
          "promise.all",
          "async await",
          "async/await",
          "arrow function",
          "lambda",
          "closure",
          "callback",
          "array map",
          "array filter",
          "array reduce",
          "object keys",
          "object values",
          "object entries",
          "json parse",
          "json stringify",
          "rest parameter",
          "spread operator",
          "template literal",
          "string interpolation",
          "regular expression for",
          "regex for",
          "css class",
          "html tag",
          "html element",
          "svg icon",
          "image tag",
          "button click",
          "text input",
          "select box",
          "checkbox",
          "radio button",
          "simple script",
          "bash script",
          "shell script",
          "powershell script",
          "npm install",
          "yarn add",
          "pip install",
          "gem install",
          "cargo add",
          "docker run",
          "git commit",
          "git push",
          "git pull",
          "git checkout",
          "git branch",
          "git merge",
          "git rebase",
          "curl command",
          "wget command",
          "ssh command",
          "scp command",
          "tar command",
          "grep command",
          "sed command",
          "awk command",
          "jq command"
        ],
        "force_patterns": [],
        "exclude_patterns": [
          "architecture",
          "security",
          "vulnerability",
          "refactor",
          "multi-step",
          "multi tenant",
          "at scale",
          "race condition",
          "distributed",
          "sort out",
          "figure out",
          "work out",
          "framework",
          "database schema",
          "system design",
          "performance tuning",
          "load testing",
          "complex",
          "tricky",
          "hard",
          "difficult",
          "untangle",
          "wrap my head around"
        ],
        "max_tokens": 4000
      },
      "notes": [
        "Single-domain knowledge required.",
        "Output is well-defined and bounded.",
        "No multi-hop reasoning required."
      ]
    }
  ]
}