/**
 * AUTO-GENERATED by gen-oracle.ts — do NOT edit by hand.
 * Frozen, verified diagnostic-oracle table. Every handler below passed its
 * fixtures at generation time; the runtime uses this table with ZERO LLM calls
 * for classification, routing, or mechanical repair.
 *
 * Verified: 2026-07-24T00:43:24.140Z
 * Coverage: 47 codes (6 mechanical, 41 semantic).
 */
export interface OracleEntry { name: string; category: 'mechanical' | 'semantic'; route: 'reporter' | 'definer'; hint: string; }

export const ORACLE_BY_CODE: Record<number, OracleEntry> = {
  "1002": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "1003": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "1005": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "1109": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "1128": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "1131": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "1155": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "1161": {
    "name": "unterminated-regex",
    "category": "semantic",
    "route": "reporter",
    "hint": "unterminated regular expression literal — REWRITE using plain string scanning (indexOf/slice/split) instead of a regex literal; malformed regexes are a known failure class for generated code"
  },
  "1183": {
    "name": "syntax",
    "category": "semantic",
    "route": "reporter",
    "hint": "syntax error — fix the punctuation/structure so the file parses"
  },
  "2300": {
    "name": "duplicate-identifier",
    "category": "semantic",
    "route": "reporter",
    "hint": "the identifier is declared twice — remove the duplicate declaration"
  },
  "2304": {
    "name": "cannot-find-name",
    "category": "semantic",
    "route": "reporter",
    "hint": "this name is undefined — import it from its module, or define it"
  },
  "2305": {
    "name": "no-exported-member",
    "category": "semantic",
    "route": "definer",
    "hint": "a dependent imports a member this file does not provide — export it, or ADD it (throwing stub) if missing; never remove existing declarations"
  },
  "2307": {
    "name": "cannot-find-module",
    "category": "semantic",
    "route": "reporter",
    "hint": "the import path is wrong or the module is not owned here — fix the path or drop the import"
  },
  "2322": {
    "name": "type-not-assignable",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value type does not match the declared type — conform to the stub, never weaken it"
  },
  "2339": {
    "name": "property-does-not-exist",
    "category": "semantic",
    "route": "reporter",
    "hint": "this property/method is not on the type — call only what the stub declares"
  },
  "2345": {
    "name": "arg-not-assignable",
    "category": "semantic",
    "route": "reporter",
    "hint": "the argument type does not match the declared signature — conform to the stub, never weaken it"
  },
  "2348": {
    "name": "not-callable-or-constructable",
    "category": "semantic",
    "route": "reporter",
    "hint": "this value is not callable/constructable as used — call it the way the stub declares"
  },
  "2349": {
    "name": "not-callable-or-constructable",
    "category": "semantic",
    "route": "reporter",
    "hint": "this value is not callable/constructable as used — call it the way the stub declares"
  },
  "2351": {
    "name": "not-callable-or-constructable",
    "category": "semantic",
    "route": "reporter",
    "hint": "this value is not callable/constructable as used — call it the way the stub declares"
  },
  "2416": {
    "name": "implements-signature-mismatch",
    "category": "semantic",
    "route": "reporter",
    "hint": "the member does not match the interface it implements — match the declared signature exactly"
  },
  "2420": {
    "name": "implements-signature-mismatch",
    "category": "semantic",
    "route": "reporter",
    "hint": "the member does not match the interface it implements — match the declared signature exactly"
  },
  "2448": {
    "name": "used-before-assigned",
    "category": "semantic",
    "route": "reporter",
    "hint": "the identifier is used before it is assigned — assign it first or reorder"
  },
  "2451": {
    "name": "duplicate-identifier",
    "category": "semantic",
    "route": "reporter",
    "hint": "the identifier is declared twice — remove the duplicate declaration"
  },
  "2454": {
    "name": "used-before-assigned",
    "category": "semantic",
    "route": "reporter",
    "hint": "the identifier is used before it is assigned — assign it first or reorder"
  },
  "2459": {
    "name": "declared-locally-not-exported",
    "category": "mechanical",
    "route": "definer",
    "hint": "export the symbol a dependent imports from this file"
  },
  "2531": {
    "name": "possibly-nullish",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value may be null/undefined — narrow or guard per the declared type; call only what the stub guarantees"
  },
  "2532": {
    "name": "possibly-nullish",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value may be null/undefined — narrow or guard per the declared type; call only what the stub guarantees"
  },
  "2533": {
    "name": "possibly-nullish",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value may be null/undefined — narrow or guard per the declared type; call only what the stub guarantees"
  },
  "2551": {
    "name": "did-you-mean-rename",
    "category": "mechanical",
    "route": "reporter",
    "hint": "the compiler suggested the correct identifier — use it"
  },
  "2552": {
    "name": "did-you-mean-rename",
    "category": "mechanical",
    "route": "reporter",
    "hint": "the compiler suggested the correct identifier — use it"
  },
  "2554": {
    "name": "wrong-arg-count",
    "category": "semantic",
    "route": "reporter",
    "hint": "argument-count mismatch — pre-freeze this routes to the CONTRACT (widen the declared parameter list to what callers pass); post-freeze conform the call to the declared arity"
  },
  "2555": {
    "name": "wrong-arg-count",
    "category": "semantic",
    "route": "reporter",
    "hint": "argument-count mismatch — pre-freeze this routes to the CONTRACT (widen the declared parameter list to what callers pass); post-freeze conform the call to the declared arity"
  },
  "2571": {
    "name": "value-is-unknown",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value is of an unnarrowed type — narrow it before use per the stub"
  },
  "2614": {
    "name": "no-exported-member",
    "category": "semantic",
    "route": "definer",
    "hint": "a dependent imports a member this file does not provide — export it, or ADD it (throwing stub) if missing; never remove existing declarations"
  },
  "2724": {
    "name": "no-exported-member",
    "category": "semantic",
    "route": "definer",
    "hint": "a dependent imports a member this file does not provide — export it, or ADD it (throwing stub) if missing; never remove existing declarations"
  },
  "2739": {
    "name": "missing-required-props",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value is missing properties its declared type requires — provide them per the stub; do not cast to bypass the type"
  },
  "2740": {
    "name": "missing-required-props",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value is missing properties its declared type requires — provide them per the stub; do not cast to bypass the type"
  },
  "2741": {
    "name": "missing-required-props",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value is missing properties its declared type requires — provide them per the stub; do not cast to bypass the type"
  },
  "2749": {
    "name": "value-used-as-type",
    "category": "semantic",
    "route": "reporter",
    "hint": "a value is being used where a type is expected — reference the type, or use `typeof value`"
  },
  "2769": {
    "name": "no-overload-matches",
    "category": "semantic",
    "route": "reporter",
    "hint": "no declared overload matches — call with the exact signature the stub declares"
  },
  "2820": {
    "name": "did-you-mean-rename",
    "category": "mechanical",
    "route": "reporter",
    "hint": "the compiler suggested the correct identifier — use it"
  },
  "6133": {
    "name": "unused-import",
    "category": "mechanical",
    "route": "reporter",
    "hint": "remove the unused import"
  },
  "6196": {
    "name": "unused-import",
    "category": "mechanical",
    "route": "reporter",
    "hint": "remove the unused import"
  },
  "7006": {
    "name": "implicit-any-param",
    "category": "semantic",
    "route": "reporter",
    "hint": "the parameter needs an explicit type annotation from the declared signature"
  },
  "18046": {
    "name": "value-is-unknown",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value is of an unnarrowed type — narrow it before use per the stub"
  },
  "18047": {
    "name": "possibly-nullish",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value may be null/undefined — narrow or guard per the declared type; call only what the stub guarantees"
  },
  "18048": {
    "name": "possibly-nullish",
    "category": "semantic",
    "route": "reporter",
    "hint": "the value may be null/undefined — narrow or guard per the declared type; call only what the stub guarantees"
  }
};

export const ORACLE_COVERAGE = {
  codes: [1002,1003,1005,1109,1128,1131,1155,1161,1183,2300,2304,2305,2307,2322,2339,2345,2348,2349,2351,2416,2420,2448,2451,2454,2459,2531,2532,2533,2551,2552,2554,2555,2571,2614,2724,2739,2740,2741,2749,2769,2820,6133,6196,7006,18046,18047,18048],
  mechanical: [2459,2551,2552,2820,6133,6196],
  semantic: [2305,2614,2724,2307,2304,2339,2345,2322,2554,2555,7006,1005,1109,1128,1002,1003,1131,1155,1183,2739,2740,2741,2769,2531,2532,2533,18047,18048,18046,2571,2454,2448,2451,2300,2749,2416,2420,2348,2349,2351,1161],
  verifiedAt: "2026-07-24T00:43:24.140Z",
} as const;
