circle-ir 4.19.0 → 4.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/dist/analysis/advisories.d.ts +21 -3
  2. package/dist/analysis/advisories.d.ts.map +1 -1
  3. package/dist/analysis/advisories.js +26 -8
  4. package/dist/analysis/advisories.js.map +1 -1
  5. package/dist/analysis/arg-executing-programs.d.ts +16 -0
  6. package/dist/analysis/arg-executing-programs.d.ts.map +1 -0
  7. package/dist/analysis/arg-executing-programs.js +24 -0
  8. package/dist/analysis/arg-executing-programs.js.map +1 -0
  9. package/dist/analysis/config-loader.d.ts.map +1 -1
  10. package/dist/analysis/config-loader.js +10 -1
  11. package/dist/analysis/config-loader.js.map +1 -1
  12. package/dist/analysis/constant-caller-gate.d.ts +3 -1
  13. package/dist/analysis/constant-caller-gate.d.ts.map +1 -1
  14. package/dist/analysis/constant-caller-gate.js +108 -1
  15. package/dist/analysis/constant-caller-gate.js.map +1 -1
  16. package/dist/analysis/constant-propagation/index.d.ts.map +1 -1
  17. package/dist/analysis/constant-propagation/index.js +1 -1
  18. package/dist/analysis/constant-propagation/index.js.map +1 -1
  19. package/dist/analysis/constant-propagation/patterns.d.ts.map +1 -1
  20. package/dist/analysis/constant-propagation/patterns.js +5 -0
  21. package/dist/analysis/constant-propagation/patterns.js.map +1 -1
  22. package/dist/analysis/constant-propagation/propagator.d.ts +1 -1
  23. package/dist/analysis/constant-propagation/propagator.d.ts.map +1 -1
  24. package/dist/analysis/constant-propagation/propagator.js +15 -1
  25. package/dist/analysis/constant-propagation/propagator.js.map +1 -1
  26. package/dist/analysis/constant-propagation/types.d.ts +2 -0
  27. package/dist/analysis/constant-propagation/types.d.ts.map +1 -1
  28. package/dist/analysis/dependency-versions.d.ts +33 -0
  29. package/dist/analysis/dependency-versions.d.ts.map +1 -1
  30. package/dist/analysis/dependency-versions.js +70 -0
  31. package/dist/analysis/dependency-versions.js.map +1 -1
  32. package/dist/analysis/passes/constant-propagation-pass.d.ts.map +1 -1
  33. package/dist/analysis/passes/constant-propagation-pass.js +1 -0
  34. package/dist/analysis/passes/constant-propagation-pass.js.map +1 -1
  35. package/dist/analysis/passes/cross-file-pass.d.ts.map +1 -1
  36. package/dist/analysis/passes/cross-file-pass.js +61 -0
  37. package/dist/analysis/passes/cross-file-pass.js.map +1 -1
  38. package/dist/analysis/passes/csharp-sanitizer-credit.d.ts.map +1 -1
  39. package/dist/analysis/passes/csharp-sanitizer-credit.js +60 -3
  40. package/dist/analysis/passes/csharp-sanitizer-credit.js.map +1 -1
  41. package/dist/analysis/passes/deserialization-safety-gate-pass.d.ts +15 -0
  42. package/dist/analysis/passes/deserialization-safety-gate-pass.d.ts.map +1 -1
  43. package/dist/analysis/passes/deserialization-safety-gate-pass.js +60 -1
  44. package/dist/analysis/passes/deserialization-safety-gate-pass.js.map +1 -1
  45. package/dist/analysis/passes/interprocedural-pass.d.ts +23 -1
  46. package/dist/analysis/passes/interprocedural-pass.d.ts.map +1 -1
  47. package/dist/analysis/passes/interprocedural-pass.js +140 -0
  48. package/dist/analysis/passes/interprocedural-pass.js.map +1 -1
  49. package/dist/analysis/passes/language-sources-pass.d.ts.map +1 -1
  50. package/dist/analysis/passes/language-sources-pass.js +110 -6
  51. package/dist/analysis/passes/language-sources-pass.js.map +1 -1
  52. package/dist/analysis/passes/resource-leak-pass.d.ts.map +1 -1
  53. package/dist/analysis/passes/resource-leak-pass.js +15 -3
  54. package/dist/analysis/passes/resource-leak-pass.js.map +1 -1
  55. package/dist/analysis/passes/sink-filter-pass.d.ts.map +1 -1
  56. package/dist/analysis/passes/sink-filter-pass.js +192 -8
  57. package/dist/analysis/passes/sink-filter-pass.js.map +1 -1
  58. package/dist/analysis/passes/taint-propagation-pass.d.ts +7 -3
  59. package/dist/analysis/passes/taint-propagation-pass.d.ts.map +1 -1
  60. package/dist/analysis/passes/taint-propagation-pass.js +176 -15
  61. package/dist/analysis/passes/taint-propagation-pass.js.map +1 -1
  62. package/dist/analysis/passes/xml-entity-expansion-pass.d.ts.map +1 -1
  63. package/dist/analysis/passes/xml-entity-expansion-pass.js +50 -6
  64. package/dist/analysis/passes/xml-entity-expansion-pass.js.map +1 -1
  65. package/dist/analysis/pep440-version.d.ts +40 -0
  66. package/dist/analysis/pep440-version.d.ts.map +1 -0
  67. package/dist/analysis/pep440-version.js +149 -0
  68. package/dist/analysis/pep440-version.js.map +1 -0
  69. package/dist/analysis/rules.d.ts.map +1 -1
  70. package/dist/analysis/rules.js +6 -0
  71. package/dist/analysis/rules.js.map +1 -1
  72. package/dist/analysis/sbom.d.ts +43 -4
  73. package/dist/analysis/sbom.d.ts.map +1 -1
  74. package/dist/analysis/sbom.js +265 -33
  75. package/dist/analysis/sbom.js.map +1 -1
  76. package/dist/analysis/taint-matcher.d.ts.map +1 -1
  77. package/dist/analysis/taint-matcher.js +39 -3
  78. package/dist/analysis/taint-matcher.js.map +1 -1
  79. package/dist/analyzer.d.ts +6 -0
  80. package/dist/analyzer.d.ts.map +1 -1
  81. package/dist/analyzer.js +27 -1
  82. package/dist/analyzer.js.map +1 -1
  83. package/dist/browser/circle-ir.js +3151 -61
  84. package/dist/core/circle-ir-core.cjs +78 -6
  85. package/dist/core/circle-ir-core.js +78 -6
  86. package/dist/core/extractors/ts-declaration-detail.d.ts +8 -0
  87. package/dist/core/extractors/ts-declaration-detail.d.ts.map +1 -1
  88. package/dist/core/extractors/ts-declaration-detail.js +22 -0
  89. package/dist/core/extractors/ts-declaration-detail.js.map +1 -1
  90. package/dist/facts/arrow.d.ts +106 -0
  91. package/dist/facts/arrow.d.ts.map +1 -0
  92. package/dist/facts/arrow.js +196 -0
  93. package/dist/facts/arrow.js.map +1 -0
  94. package/dist/facts/facts2.d.ts +59 -0
  95. package/dist/facts/facts2.d.ts.map +1 -0
  96. package/dist/facts/facts2.js +362 -0
  97. package/dist/facts/facts2.js.map +1 -0
  98. package/dist/facts/index.d.ts +20 -0
  99. package/dist/facts/index.d.ts.map +1 -0
  100. package/dist/facts/index.js +14 -0
  101. package/dist/facts/index.js.map +1 -0
  102. package/dist/facts/java-facts.d.ts +56 -0
  103. package/dist/facts/java-facts.d.ts.map +1 -0
  104. package/dist/facts/java-facts.js +250 -0
  105. package/dist/facts/java-facts.js.map +1 -0
  106. package/dist/facts/order.d.ts +39 -0
  107. package/dist/facts/order.d.ts.map +1 -0
  108. package/dist/facts/order.js +120 -0
  109. package/dist/facts/order.js.map +1 -0
  110. package/dist/facts/schema.d.ts +60 -0
  111. package/dist/facts/schema.d.ts.map +1 -0
  112. package/dist/facts/schema.js +126 -0
  113. package/dist/facts/schema.js.map +1 -0
  114. package/dist/facts/schema2.d.ts +47 -0
  115. package/dist/facts/schema2.d.ts.map +1 -0
  116. package/dist/facts/schema2.js +194 -0
  117. package/dist/facts/schema2.js.map +1 -0
  118. package/dist/facts/table.d.ts +80 -0
  119. package/dist/facts/table.d.ts.map +1 -0
  120. package/dist/facts/table.js +548 -0
  121. package/dist/facts/table.js.map +1 -0
  122. package/dist/graph-facts/dead-code.d.ts +2 -0
  123. package/dist/graph-facts/dead-code.d.ts.map +1 -1
  124. package/dist/graph-facts/dead-code.js +1 -1
  125. package/dist/graph-facts/dead-code.js.map +1 -1
  126. package/dist/graph-facts/reach.d.ts +24 -6
  127. package/dist/graph-facts/reach.d.ts.map +1 -1
  128. package/dist/graph-facts/reach.js +52 -12
  129. package/dist/graph-facts/reach.js.map +1 -1
  130. package/dist/graph-facts/removal-reach.d.ts +2 -0
  131. package/dist/graph-facts/removal-reach.d.ts.map +1 -1
  132. package/dist/graph-facts/removal-reach.js +1 -1
  133. package/dist/graph-facts/removal-reach.js.map +1 -1
  134. package/dist/index.d.ts +10 -4
  135. package/dist/index.d.ts.map +1 -1
  136. package/dist/index.js +13 -2
  137. package/dist/index.js.map +1 -1
  138. package/dist/navigation/java-graph.d.ts +23 -0
  139. package/dist/navigation/java-graph.d.ts.map +1 -1
  140. package/dist/navigation/java-graph.js +222 -8
  141. package/dist/navigation/java-graph.js.map +1 -1
  142. package/dist/navigation/navigation-index.d.ts +9 -0
  143. package/dist/navigation/navigation-index.d.ts.map +1 -1
  144. package/dist/navigation/navigation-index.js +25 -0
  145. package/dist/navigation/navigation-index.js.map +1 -1
  146. package/dist/navigation/ts-call-edges.d.ts +9 -0
  147. package/dist/navigation/ts-call-edges.d.ts.map +1 -1
  148. package/dist/navigation/ts-call-edges.js.map +1 -1
  149. package/dist/resolution/cross-file.d.ts +44 -0
  150. package/dist/resolution/cross-file.d.ts.map +1 -1
  151. package/dist/resolution/cross-file.js +259 -13
  152. package/dist/resolution/cross-file.js.map +1 -1
  153. package/dist/stable-ids/files.d.ts +22 -0
  154. package/dist/stable-ids/files.d.ts.map +1 -0
  155. package/dist/stable-ids/files.js +28 -0
  156. package/dist/stable-ids/files.js.map +1 -0
  157. package/dist/stable-ids/hash.d.ts +16 -4
  158. package/dist/stable-ids/hash.d.ts.map +1 -1
  159. package/dist/stable-ids/hash.js +266 -80
  160. package/dist/stable-ids/hash.js.map +1 -1
  161. package/dist/stable-ids/index.d.ts +3 -2
  162. package/dist/stable-ids/index.d.ts.map +1 -1
  163. package/dist/stable-ids/index.js +3 -2
  164. package/dist/stable-ids/index.js.map +1 -1
  165. package/dist/stable-ids/nodes.d.ts +45 -1
  166. package/dist/stable-ids/nodes.d.ts.map +1 -1
  167. package/dist/stable-ids/nodes.js +118 -15
  168. package/dist/stable-ids/nodes.js.map +1 -1
  169. package/dist/stable-ids/ts-parse-errors.d.ts +5 -1
  170. package/dist/stable-ids/ts-parse-errors.d.ts.map +1 -1
  171. package/dist/stable-ids/ts-parse-errors.js +35 -2
  172. package/dist/stable-ids/ts-parse-errors.js.map +1 -1
  173. package/package.json +8 -4
  174. package/schemas/facts@1.json +134 -0
  175. package/schemas/facts@2.json +216 -0
@@ -0,0 +1,216 @@
1
+ {
2
+ "$comment": "facts@2 (graph-store plan 0.1, T5a.1; design §2a, GS15). The fact relations circle-ir owes the store, as Arrow columns in canonical order keyed by ids@0.1. The successor of facts@1, published as a major in one step (P1 of the facts@2 decision of 2026-11-02, P1-P7): site positions relative to the enclosing declaration's start line, no site_file, declaration positions in decl_pos (P2, layout V3); a stable file key in every relation that names a file, superseding the dense file_id of reconciliation decision 2 (P3); the relations and columns the T6 rules read (P4); decl_pos and parse_error store-only (P5). Deferred and not in this file (P6): registration_bound, the TypeScript-only relations, imports.is_static, the entries route method and path. Everything facts@1 fixed and P1-P7 do not change stays: 128-bit ids, sets with no nulls, the total canonical order, fixed-size chunks, the producer's metadata keys, hex digests. This file is the schema the store reads; the TypeScript mirror is src/facts/schema2.ts and tests/facts/schema2.test.ts locks the two together. facts@1 (schemas/facts@1.json) stays the producer's default until the store has adopted facts@2.",
3
+ "scheme": "facts@2",
4
+ "ids": "ids@0.1",
5
+ "id_encoding": {
6
+ "$comment": "An ids@0.1 id is 128 bits printed as 26 lowercase base32 characters (RFC 4648, unpadded). In a column it is the 16 raw bytes, so every id column is FixedSizeBinary(16); the 2 trailing padding bits of the printed form are always zero. Node ids (the flow endpoints) and file keys have the same width: see node_id and file_key.",
7
+ "arrow": "fixed_size_binary",
8
+ "width": 16
9
+ },
10
+ "node_id": {
11
+ "$comment": "The fixed-width form of an ids@0.1 node id (stable-ids design decision 1a, adopted 2026-11-01): digest128 over the parts listed, i.e. BLAKE3 of the UTF-8 parts each followed by NUL, first 16 bytes - the same construction as every other ids@0.1 id, printed as 26 base32 characters where a printed form is needed. body_id is the printed body id of the innermost declaration whose body encloses the node (<decl id>.<body_hash>, 53 characters; after the snapshot's #n re-key where decl applied one); kind is the IR array the node comes from; ordinal counts the nodes of that kind inside that body in IR array order, from 0, in decimal without leading zeros. It is a function of the printed node id <body_id>/<tag><ordinal> (tags b, d, u, c) and nothing else: an edit to one body re-keys only that body's nodes. The example is a test vector (tests/facts/schema2.test.ts recomputes it).",
12
+ "parts": ["ids@0.1", "node", "<body_id>", "<kind>", "<ordinal>"],
13
+ "kinds": ["block", "def", "use", "call"],
14
+ "example": {
15
+ "printed": "aaaaaaaaaaaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbb/u7",
16
+ "body_id": "aaaaaaaaaaaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbb",
17
+ "kind": "use",
18
+ "ordinal": 7,
19
+ "hex": "cd071ce8a3b6d97cc2dd1264742bb62d",
20
+ "base32": "zudrz2fdw3mxzqw5cjshik5wfu"
21
+ }
22
+ },
23
+ "file_key": {
24
+ "$comment": "The stable file key (P3; the ids@0.1 file kind of the stable-ids plan): digest128 over the parts listed - BLAKE3 of the UTF-8 parts each followed by NUL, first 16 bytes, the construction of every other ids@0.1 id. path is the file's files.path exactly as written (repository-relative, /-separated). The key is a function of the path and nothing else: adding or removing a file adds or removes only that file's rows, and moving one re-keys only that file's rows. It replaces facts@1's dense, snapshot-local file_id, and no delta re-maps through files.path. Every relation that names a file carries it as the column file (fixed16): files, decl, imports, parse_error. files is keyed by file, so two paths with one key (a 128-bit collision) fail the producer's key check rather than merge. The example is a test vector (tests/facts/schema2.test.ts recomputes it).",
25
+ "parts": ["ids@0.1", "file", "<path>"],
26
+ "example": {
27
+ "path": "src/main/java/org/example/App.java",
28
+ "hex": "d26d79b82b9a2df38e9b9ccd3946a3e8",
29
+ "base32": "2jwxtobltiw7hdu3ttgtsrvd5a"
30
+ }
31
+ },
32
+ "positions": {
33
+ "$comment": "Layout V3 (P2). A site (call, unresolved, ref, registration) carries rel_line = the site's line minus the start line (decl_pos.line) of the declaration whose body holds it (caller_id or from_id), and col; it carries no file, since its file is that declaration's file. A site never lies above its declaration's start, so rel_line fits u32. Declaration positions live only in decl_pos. No rule needs an absolute line: rendering one is decl_pos.line + rel_line, a single join. A blast radius seeds from decl changes only (a body added, removed or changed), never from site rows: an edit that adds or removes comment or blank lines inside a body moves rel_line below it while body_hash stays the same.",
34
+ "line": "1-based (rel_line: 0 on the declaration's first line)",
35
+ "col": "0-based"
36
+ },
37
+ "types": {
38
+ "$comment": "The closed set of column types. `dict` is Dictionary<Int8 index, Utf8 value> over a fixed vocabulary listed on the column; the whole vocabulary is written as the dictionary, in the listed order, whether or not every value occurs.",
39
+ "fixed16": "FixedSizeBinary(16)",
40
+ "u32": "Uint32",
41
+ "utf8": "Utf8",
42
+ "bool": "Bool",
43
+ "dict": "Dictionary<Int8, Utf8>"
44
+ },
45
+ "canonical_order": {
46
+ "$comment": "Within a relation rows are sorted ascending by the key columns in key order, then by every remaining column in schema order, so the comparator is total and a relation has one byte form. Column orders: fixed16 by unsigned bytes; u32 numerically; utf8 and dict by Unicode code point (which equals UTF-8 byte order), never by UTF-16 code unit or dictionary index; bool false before true; null before every value (a dead branch: no column is nullable). Relations are sets: after the sort exact duplicate rows are dropped and counted (manifest duplicates_dropped per relation), so rows are strictly increasing and a store may refuse equal rows.",
47
+ "key_then_remaining_columns": true,
48
+ "null_first": true,
49
+ "strings": "code-point",
50
+ "sets": true
51
+ },
52
+ "chunking": {
53
+ "$comment": "After the canonical sort a relation is cut into record batches of chunk_rows rows each (the last one shorter); a relation with no rows has no record batch. One Arrow IPC file per relation, so the batch boundaries are part of the bytes. Fixed row-count chunks, not file ranges: nine of the twelve relations are not keyed by a file.",
54
+ "chunk_rows": 65536,
55
+ "ipc": "file"
56
+ },
57
+ "loading": {
58
+ "$comment": "Every relation states store_only (P5). A store_only relation is written to the snapshot, digested into the snapshot digest and read back for rendering like any other, but a store does not load it into the engine unless a rule names it (decl_pos has one row per declaration and no rule reads it). Every other relation is loaded.",
59
+ "store_only": "written, digested and read; loaded into the engine only when a rule names it",
60
+ "engine": "every relation whose store_only is false"
61
+ },
62
+ "metadata": {
63
+ "$comment": "Schema-level custom metadata, and nothing else (no timestamps, no host): facts (the value facts@2, never a -draft) and ids always; engine and parser when the caller names them. The producer's manifest.json beside the files repeats them and adds source, chunk_rows and per relation file, rows, batches, bytes, blake3 (file-byte digest, hex) and duplicates_dropped.",
64
+ "facts": "facts@2",
65
+ "ids": "ids@0.1",
66
+ "engine": "optional, e.g. circle-ir@4.19.0",
67
+ "parser": "optional, e.g. tree-sitter-java@0.23.5"
68
+ },
69
+ "relations": {
70
+ "files": {
71
+ "key": ["file"],
72
+ "store_only": false,
73
+ "columns": [
74
+ { "name": "file", "type": "fixed16", "nullable": false, "doc": "The stable file key: digest128([\"ids@0.1\", \"file\", path]) (file_key)." },
75
+ { "name": "path", "type": "utf8", "nullable": false, "doc": "Repository-relative, /-separated." },
76
+ { "name": "content_hash", "type": "fixed16", "nullable": false, "doc": "blake3 of the file's UTF-8 bytes, first 16 bytes." },
77
+ { "name": "language", "type": "dict", "nullable": false, "values": ["java", "typescript", "javascript", "python", "go"] },
78
+ { "name": "partial", "type": "bool", "nullable": false, "doc": "The file did not parse cleanly (the engine's partial): its call sites may be missing, so its declarations and what they reach are may-be-live and an answer that relies on absence is not final. A partial file has exactly one parse_error row." }
79
+ ]
80
+ },
81
+ "decl": {
82
+ "key": ["id"],
83
+ "store_only": false,
84
+ "doc": "One row per declaration, with no position (declaration positions are in decl_pos). That every declaration loads its module is not a column: it follows from file and the module row of that file (kind module).",
85
+ "columns": [
86
+ { "name": "id", "type": "fixed16", "nullable": false, "doc": "ids@0.1 declaration id. Unique per snapshot: when two files derive the same id (two package-info.java of one package in different bundles), the later one in file order takes the stable-ids #n suffix on its qualified_name and the id derived from it, as the ids@0.1 duplicate rule does within one scope." },
87
+ { "name": "kind", "type": "dict", "nullable": false, "values": ["module", "type", "method", "field", "function"] },
88
+ { "name": "name", "type": "utf8", "nullable": false, "doc": "The declaration's own name as ids@0.1 records it (e.g. <clinit>; default for an anonymous default export). An unresolved site in a reached body can bind to a declaration of the same name." },
89
+ { "name": "qualified_name", "type": "utf8", "nullable": false },
90
+ { "name": "signature", "type": "utf8", "nullable": false, "doc": "The ids@0.1 canonical signature as written; empty for modules and types without type parameters." },
91
+ { "name": "file", "type": "fixed16", "nullable": false, "doc": "The declaring file's key (file_key)." },
92
+ { "name": "parent_id", "type": "fixed16", "nullable": false, "doc": "The enclosing declaration's id (ids@0.1 parent), rewritten by the snapshot's #n re-key as caller_id is; all-zero bytes for a module, which has none (no nulls in facts@2)." },
93
+ { "name": "body_hash", "type": "fixed16", "nullable": false, "doc": "ids@0.1 body hash; all-zero bytes when the engine derived none (no nulls in facts@2; Java always derives one)." },
94
+ { "name": "type_only", "type": "bool", "nullable": false, "doc": "Used only as a type (the engine's typeOnly): left out of reach and dead-code answers." },
95
+ { "name": "anonymous", "type": "bool", "nullable": false, "doc": "The ids@0.1 flag unstable:anonymous: an anonymous or nested body keyed by its enclosing declaration plus its structural position there; an edit to the enclosing body may re-key it." },
96
+ { "name": "duplicate", "type": "bool", "nullable": false, "doc": "The ids@0.1 flag unstable:duplicate: the id carries a #n suffix, so inserting a same-named declaration before it re-keys it." },
97
+ { "name": "contained", "type": "bool", "nullable": false, "doc": "A strong contains edge from parent_id to this declaration, computed by the producer: whenever the parent runs, this declaration is in use (a nested or anonymous body, a module's top-level value, a type's field or <clinit>, a constructor outside Java; a Java constructor runs only when called). False for a module." },
98
+ { "name": "loads_parent", "type": "bool", "nullable": false, "doc": "A strong loads edge from this declaration to parent_id, computed by the producer: running this declaration initializes its parent (Java: true for every declaration that is not a type and whose parent is a type; the rows java-graph's loads holds)." }
99
+ ]
100
+ },
101
+ "decl_pos": {
102
+ "key": ["id"],
103
+ "store_only": true,
104
+ "doc": "Declaration positions, out of decl so that a line shift changes no row a rule reads (P2). One row per decl row. Store-only (P5): read for rendering, SARIF, and mapping a diff hunk or a finding's line to its declaration; site lines are relative to line.",
105
+ "columns": [
106
+ { "name": "id", "type": "fixed16", "nullable": false, "doc": "The decl id." },
107
+ { "name": "line", "type": "u32", "nullable": false, "doc": "1-based start line." },
108
+ { "name": "end_line", "type": "u32", "nullable": false, "doc": "1-based end line, inclusive." },
109
+ { "name": "col", "type": "u32", "nullable": false, "doc": "0-based start column." },
110
+ { "name": "end_col", "type": "u32", "nullable": false, "doc": "0-based end column." }
111
+ ]
112
+ },
113
+ "call": {
114
+ "key": ["caller_id", "rel_line", "col", "callee_id"],
115
+ "store_only": false,
116
+ "doc": "Key: the site as (caller, relative line, column) maps one-to-one onto facts@1's (site_file, site_line, site_col), since the site's file is the caller's file; every row facts@1's key told apart stays apart.",
117
+ "columns": [
118
+ { "name": "caller_id", "type": "fixed16", "nullable": false, "doc": "The enclosing declaration (the module's id for top-level code)." },
119
+ { "name": "callee_id", "type": "fixed16", "nullable": false, "doc": "The declaration that can run; one row per candidate body on polymorphic." },
120
+ { "name": "tier", "type": "dict", "nullable": false, "values": ["exact", "polymorphic", "inferred"] },
121
+ { "name": "method_name", "type": "utf8", "nullable": false, "doc": "The name as written at the site (new sites: the class name). A site names more than one call in a chained expression, and the name is what tells them apart." },
122
+ { "name": "rel_line", "type": "u32", "nullable": false, "doc": "The site's line minus the caller's decl_pos.line (positions)." },
123
+ { "name": "col", "type": "u32", "nullable": false, "doc": "The site's column, 0-based." },
124
+ { "name": "declaring", "type": "bool", "nullable": false, "doc": "True on a polymorphic row whose callee is the member the receiver's static type declares (java-graph's declaring target); the navigation index's via for the other rows of that call (same caller_id, rel_line, col and method_name) is that row's callee_id. False on every other row, every exact and inferred row included." }
125
+ ]
126
+ },
127
+ "unresolved": {
128
+ "key": ["caller_id", "rel_line", "col", "method_name", "receiver", "reason"],
129
+ "store_only": false,
130
+ "doc": "Key: the site and the name as written, plus receiver and reason, because one site and name can carry several rows that differ only in those (T4, 2026-11-01). caller_id takes site_file's place in the key: the site's file is the caller's file.",
131
+ "columns": [
132
+ { "name": "caller_id", "type": "fixed16", "nullable": false },
133
+ { "name": "reason", "type": "dict", "nullable": false, "values": ["external", "dynamic", "generated", "overload-ambiguous", "parse-error", "unsupported-language", "unknown"] },
134
+ { "name": "receiver", "type": "utf8", "nullable": false, "doc": "The library type the call lands on; empty when unknown (no nulls in facts@2)." },
135
+ { "name": "method_name", "type": "utf8", "nullable": false },
136
+ { "name": "rel_line", "type": "u32", "nullable": false, "doc": "The site's line minus the caller's decl_pos.line (positions)." },
137
+ { "name": "col", "type": "u32", "nullable": false, "doc": "The site's column, 0-based." }
138
+ ]
139
+ },
140
+ "ref": {
141
+ "key": ["from_id", "rel_line", "col", "to_id"],
142
+ "store_only": false,
143
+ "doc": "A declaration used as a value - passed, stored, returned (the engine's references; Java method references): it may run, nothing proves it does. A weak edge for reach. Key: the site first (from_id, rel_line, col), then to_id, as call, unresolved and registration key their sites.",
144
+ "columns": [
145
+ { "name": "from_id", "type": "fixed16", "nullable": false, "doc": "The declaration whose body holds the reference." },
146
+ { "name": "to_id", "type": "fixed16", "nullable": false, "doc": "The declaration referenced." },
147
+ { "name": "rel_line", "type": "u32", "nullable": false, "doc": "The site's line minus from_id's decl_pos.line (positions)." },
148
+ { "name": "col", "type": "u32", "nullable": false, "doc": "The site's column, 0-based." }
149
+ ]
150
+ },
151
+ "registration": {
152
+ "key": ["from_id", "rel_line", "col", "reason"],
153
+ "store_only": false,
154
+ "doc": "A registration the recognizers saw but could not tie to a declaration (the engine's unresolvedRegistrations, #1092). Reach counts it only when from_id's body is reached.",
155
+ "columns": [
156
+ { "name": "from_id", "type": "fixed16", "nullable": false, "doc": "The declaration whose body holds the site (Java: the engine's from, always known since #1092; otherwise the innermost declaration enclosing the site, the module's id for top-level code)." },
157
+ { "name": "reason", "type": "dict", "nullable": false, "values": ["handler-unresolved", "manifest-unresolved", "mount-unresolved"] },
158
+ { "name": "evidence", "type": "utf8", "nullable": false, "doc": "The engine's evidence line." },
159
+ { "name": "rel_line", "type": "u32", "nullable": false, "doc": "The site's line minus from_id's decl_pos.line (positions)." },
160
+ { "name": "col", "type": "u32", "nullable": false, "doc": "The site's column, 0-based." }
161
+ ]
162
+ },
163
+ "parse_error": {
164
+ "key": ["file"],
165
+ "store_only": true,
166
+ "doc": "Where a partial file stopped parsing: its first blocking error in source order (the engine's parseError). Exactly one row per files row with partial true, and none for any other. Store-only (P5).",
167
+ "columns": [
168
+ { "name": "file", "type": "fixed16", "nullable": false, "doc": "The partial file's key (file_key)." },
169
+ { "name": "line", "type": "u32", "nullable": false, "doc": "1-based." },
170
+ { "name": "col", "type": "u32", "nullable": false, "doc": "0-based (the engine's 1-based parse-error column minus one)." },
171
+ { "name": "node_kind", "type": "utf8", "nullable": false, "doc": "ERROR for a region the grammar could not read, or MISSING <token> for a token the parser had to insert." },
172
+ { "name": "parent_kind", "type": "utf8", "nullable": false, "doc": "The syntax node the error sits in." }
173
+ ]
174
+ },
175
+ "flow": {
176
+ "key": ["from_id", "to_id", "kind"],
177
+ "store_only": false,
178
+ "columns": [
179
+ { "name": "from_id", "type": "fixed16", "nullable": false },
180
+ { "name": "to_id", "type": "fixed16", "nullable": false },
181
+ { "name": "kind", "type": "dict", "nullable": false, "values": ["def-use", "taint"] }
182
+ ],
183
+ "doc": "Def-use and taint edges on ids@0.1 node ids in their fixed-width form (node_id). The java-graph@0.1 post-pass writes one def-use row per DFG use with a reaching definition in the same file: from_id = the definition's node id (kind def), to_id = the use's node id (kind use); data flows from from_id to to_id. taint rows are not written by the post-pass yet (the engine's taint flows are line-keyed, not node-keyed); the kind stays in the vocabulary for them."
184
+ },
185
+ "imports": {
186
+ "key": ["file", "target", "wildcard"],
187
+ "store_only": false,
188
+ "columns": [
189
+ { "name": "file", "type": "fixed16", "nullable": false, "doc": "The importing file's key (file_key)." },
190
+ { "name": "target", "type": "utf8", "nullable": false, "doc": "The imported name as written, without a trailing `.*`; a static import's member path for `import static`." },
191
+ { "name": "wildcard", "type": "bool", "nullable": false, "doc": "In the key: one file may import both X and X.*, which share target." }
192
+ ]
193
+ },
194
+ "entries": {
195
+ "key": ["decl_id", "kind", "source"],
196
+ "store_only": false,
197
+ "columns": [
198
+ { "name": "decl_id", "type": "fixed16", "nullable": false },
199
+ { "name": "kind", "type": "dict", "nullable": false, "values": ["main", "route", "listener", "scheduled", "export", "di", "reflection", "lifecycle", "test", "osgi-ds", "extension-point", "data-declared", "script"], "doc": "entry-index@0.1 kinds plus the design's data-declared kinds; the engine's `bean` is written as `di` (one meaning, one word)." },
200
+ { "name": "source", "type": "utf8", "nullable": false, "doc": "What declared the entry — the annotation, the supertype member, the manifest or file; the engine's evidence line." },
201
+ { "name": "certainty", "type": "dict", "nullable": false, "values": ["declared", "conventional", "inferred"] }
202
+ ]
203
+ },
204
+ "moved": {
205
+ "key": ["old_id", "new_id"],
206
+ "store_only": false,
207
+ "columns": [
208
+ { "name": "old_id", "type": "fixed16", "nullable": false },
209
+ { "name": "new_id", "type": "fixed16", "nullable": false },
210
+ { "name": "kind", "type": "dict", "nullable": false, "values": ["moved", "renamed"] },
211
+ { "name": "evidence", "type": "utf8", "nullable": false }
212
+ ],
213
+ "doc": "Moves and renames between two snapshots: facts, not delete + insert. Empty from a single-snapshot post-pass."
214
+ }
215
+ }
216
+ }