reading-stone 0.0.0-stage → 0.2.1

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 (72) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +11 -0
  3. package/README.md +301 -2
  4. package/dist/analysis.d.ts +341 -0
  5. package/dist/analysis.js +392 -0
  6. package/dist/cognitive.d.ts +163 -0
  7. package/dist/cognitive.js +380 -0
  8. package/dist/complexity.d.ts +102 -0
  9. package/dist/complexity.js +163 -0
  10. package/dist/coverage.d.ts +78 -0
  11. package/dist/coverage.js +635 -0
  12. package/dist/detector.d.ts +41 -0
  13. package/dist/detector.js +2134 -0
  14. package/dist/discovery.d.ts +330 -0
  15. package/dist/discovery.js +930 -0
  16. package/dist/doc-coverage.d.ts +155 -0
  17. package/dist/doc-coverage.js +543 -0
  18. package/dist/extract.d.ts +209 -0
  19. package/dist/extract.js +498 -0
  20. package/dist/index.d.ts +64 -0
  21. package/dist/index.js +63 -0
  22. package/dist/internal.d.ts +75 -0
  23. package/dist/internal.js +63 -0
  24. package/dist/main.d.ts +8 -0
  25. package/dist/main.js +39 -0
  26. package/dist/models.d.ts +185 -0
  27. package/dist/models.js +170 -0
  28. package/dist/program.d.ts +207 -0
  29. package/dist/program.js +662 -0
  30. package/dist/protocol.d.ts +88 -0
  31. package/dist/protocol.js +74 -0
  32. package/dist/quality/assertions.d.ts +81 -0
  33. package/dist/quality/assertions.js +425 -0
  34. package/dist/quality/collect.d.ts +66 -0
  35. package/dist/quality/collect.js +412 -0
  36. package/dist/quality/inference.d.ts +86 -0
  37. package/dist/quality/inference.js +603 -0
  38. package/dist/quality/matchers.d.ts +129 -0
  39. package/dist/quality/matchers.js +220 -0
  40. package/dist/quality/pairing.d.ts +133 -0
  41. package/dist/quality/pairing.js +770 -0
  42. package/dist/quality/pipeline.d.ts +59 -0
  43. package/dist/quality/pipeline.js +202 -0
  44. package/dist/quality/types.d.ts +127 -0
  45. package/dist/quality/types.js +92 -0
  46. package/dist/safeio.d.ts +107 -0
  47. package/dist/safeio.js +314 -0
  48. package/dist/server.d.ts +19 -0
  49. package/dist/server.js +451 -0
  50. package/dist/signals/adapter.d.ts +103 -0
  51. package/dist/signals/adapter.js +323 -0
  52. package/dist/signals/caller-index.d.ts +117 -0
  53. package/dist/signals/caller-index.js +147 -0
  54. package/dist/signals/caller.d.ts +76 -0
  55. package/dist/signals/caller.js +108 -0
  56. package/dist/signals/evidence.d.ts +233 -0
  57. package/dist/signals/evidence.js +578 -0
  58. package/dist/signals/interface.d.ts +68 -0
  59. package/dist/signals/interface.js +87 -0
  60. package/dist/signals/jsdoc.d.ts +27 -0
  61. package/dist/signals/jsdoc.js +233 -0
  62. package/dist/signals/naming.d.ts +26 -0
  63. package/dist/signals/naming.js +160 -0
  64. package/dist/signals/routing.d.ts +163 -0
  65. package/dist/signals/routing.js +416 -0
  66. package/dist/signals/types.d.ts +146 -0
  67. package/dist/signals/types.js +99 -0
  68. package/dist/signals/visibility.d.ts +23 -0
  69. package/dist/signals/visibility.js +82 -0
  70. package/dist/taxonomy.d.ts +89 -0
  71. package/dist/taxonomy.js +217 -0
  72. package/package.json +61 -4
@@ -0,0 +1,163 @@
1
+ import type { SideEffectType } from "../taxonomy.js";
2
+ /**
3
+ * The normative effect-type routing table (FR-005/FR-006/FR-007; research
4
+ * R2; data-model.md Section 6, rendered verbatim) — the agreement gate
5
+ * between matched classification vocabulary and canonical effect types.
6
+ *
7
+ * FR-007 pins the contract: the naming extractor (FR-005) and the
8
+ * documentation extractor (FR-006) emit a signal only when the matched
9
+ * prefix, tag, or verb agrees with the effect's canonical type through
10
+ * this table. A match without agreement produces no signal; a type with no
11
+ * agreeing vocabulary produces none either — never an exception. The gate
12
+ * is the pipeline's false-positive control: ungated, a `Get` prefix would
13
+ * +10 every effect on every getter (research R2).
14
+ *
15
+ * This module is pure fixed data — no compiler interaction, no I/O, no
16
+ * logic. Every value is transcribed from data-model.md Section 6 (spec-
17
+ * driven development: FR-007 pins the table as normative data precisely so
18
+ * implementation-time discretion cannot reshape it; Constitution Principle
19
+ * I — the table is deterministic, version-stable data). Safety mechanisms,
20
+ * in the taxonomy.ts tradition:
21
+ *
22
+ * - Compile-time exhaustiveness: `ROUTING_TABLE` is keyed by the full
23
+ * `SideEffectType` union (the `TIER_MAP` pattern), so a missing row, an
24
+ * extra row, or a misspelled key cannot build. Totality is structural —
25
+ * every canonical type routes to a branch or explicitly to none.
26
+ * - Conformance pin: tests/signals/routing.test.ts (T003) asserts the 48
27
+ * keys at runtime against `SIDE_EFFECT_TYPES`, checks every row's
28
+ * vocabulary against the exported closed lists, and diffs all 48 rows
29
+ * against data-model.md Section 6 itself (the disposition-table
30
+ * anti-drift pattern), so the code table and the normative prose cannot
31
+ * drift apart.
32
+ *
33
+ * Design decisions:
34
+ *
35
+ * - Rows are rendered one per canonical type, in data-model.md Section 6
36
+ * table order, with inline literals — normative data is transcribed, not
37
+ * factored into shared family constants: each row is independently
38
+ * pinned (a one-row data-model amendment edits one row here) and
39
+ * independently diffed by the conformance suite. Vocabulary order within
40
+ * each row follows the pinned closed-list order, so the doc-parity diff
41
+ * is exact, order included.
42
+ * - `RoutingBranch.docIncidental` carries the incidental prefixes AND
43
+ * verbs in one list, per data-model.md Section 5.3 ("incidental
44
+ * prefixes+verbs"): both incidental columns route identically (only the
45
+ * output family — `LogWrite`, `StdoutWrite`, `StderrWrite`), and the
46
+ * token sets are disjoint (log/debug/trace/print vs
47
+ * logs/prints/traces/debugs), so the naming extractor matches the four
48
+ * prefixes against it (−10) and the documentation extractor the four
49
+ * verbs (−15) without ambiguity.
50
+ * - The `Err` + `SentinelError` special case (+30, in place of the prefix
51
+ * rules) is NOT table data — it is a naming-extractor rule keyed on this
52
+ * table's `SentinelError` row (research R3). That row's naming list is
53
+ * empty because no closed-list prefix agrees with sentinel errors.
54
+ */
55
+ /**
56
+ * One row of the normative routing table (FR-007; data-model.md Section
57
+ * 5.3) — the closed-list vocabulary that agrees with one canonical effect
58
+ * type, split by the signal source that consumes it: naming prefixes feed
59
+ * the naming extractor (FR-005), tags and verbs the documentation
60
+ * extractor (FR-006).
61
+ *
62
+ * An immutable value record (convention pack AP-004): the table is fixed
63
+ * normative data, constructed once, never mutated.
64
+ */
65
+ export interface RoutingBranch {
66
+ /**
67
+ * Contractual naming prefixes that agree with the effect type (+10 via
68
+ * `naming_convention` when the longest applicable prefix is listed
69
+ * here). Drawn from `CONTRACTUAL_PREFIXES`.
70
+ */
71
+ readonly naming: readonly string[];
72
+ /**
73
+ * Direct JSDoc tags that agree with the effect type (+15 via
74
+ * `docstring`). Entries keep their FR-006 `@`-prefixed form
75
+ * (`@returns`, `@throws`); the documentation extractor normalizes the
76
+ * compiler's bare tag names from `getJSDocTags` (e.g. `returns`) to
77
+ * this form when matching. Drawn from `DIRECT_TAGS`.
78
+ */
79
+ readonly docTags: readonly string[];
80
+ /**
81
+ * Indirect prose verbs that agree with the effect type (+5 via
82
+ * `docstring` when matched in the flattened doc text, case-insensitive
83
+ * and word-boundary delimited). Drawn from `INDIRECT_VERBS`, in pinned
84
+ * list order — the first routed verb in this order names the match in
85
+ * the emitted reasoning (the deterministic tie-break, research R4).
86
+ */
87
+ readonly docIndirect: readonly string[];
88
+ /**
89
+ * Incidental prefixes AND verbs whose presence disagrees with the
90
+ * effect being contractual (−10 via `naming_convention` for the
91
+ * prefixes, −15 via `docstring` for the verbs). Data-model.md Section
92
+ * 5.3 pins the combination; the token sets are disjoint, so one list
93
+ * serves both extractors. Drawn from `INCIDENTAL_PREFIXES` and
94
+ * `INCIDENTAL_VERBS`.
95
+ */
96
+ readonly docIncidental: readonly string[];
97
+ }
98
+ /**
99
+ * The closed contractual-prefix vocabulary (FR-005) — exactly 18
100
+ * leading-name prefixes, transcribed verbatim in data-model.md Section 6
101
+ * order. A contractual prefix is positive naming evidence (+10 via
102
+ * `naming_convention`) for exactly the effect types whose `ROUTING_TABLE`
103
+ * row lists it. The naming extractor selects the longest applicable
104
+ * prefix over this list united with `INCIDENTAL_PREFIXES` (the 22 closed
105
+ * prefixes) before consulting the table; the conformance suite checks
106
+ * every row's `naming` list against this list.
107
+ */
108
+ export declare const CONTRACTUAL_PREFIXES: readonly string[];
109
+ /**
110
+ * The closed incidental-prefix vocabulary (FR-005) — exactly 4
111
+ * leading-name prefixes whose presence DISAGREES with an effect being
112
+ * contractual (−10 via `naming_convention` when routed). Incidental
113
+ * prefixes are logging vocabulary, so they agree only with the output
114
+ * family — routing them there is what makes negative naming evidence
115
+ * possible at all (research R2). Like every prefix, they match
116
+ * case-insensitively on the name's leading characters; the pinned
117
+ * lowercase spelling is representational, not a matching rule.
118
+ */
119
+ export declare const INCIDENTAL_PREFIXES: readonly string[];
120
+ /**
121
+ * The closed direct-tag vocabulary (FR-006; Clarification Q1) — exactly 2
122
+ * JSDoc tags, the strongest documentation tier (+15 via `docstring` when
123
+ * routed to the effect type). Entries keep the FR-006 `@`-prefixed form;
124
+ * the documentation extractor normalizes the compiler's bare tag names
125
+ * from `getJSDocTags` (e.g. `returns`) to this form when matching.
126
+ */
127
+ export declare const DIRECT_TAGS: readonly string[];
128
+ /**
129
+ * The closed indirect-verb vocabulary (FR-006) — exactly 9 prose verbs
130
+ * matched in the flattened doc text (case-insensitive, word-boundary
131
+ * delimited; +5 via `docstring` when routed). Order is pinned by the doc
132
+ * and semantically meaningful: within the indirect tier, the first verb
133
+ * in this order that both matches and routes names the match in the
134
+ * emitted reasoning — the deterministic tie-break (research R4).
135
+ */
136
+ export declare const INDIRECT_VERBS: readonly string[];
137
+ /**
138
+ * The closed incidental-verb vocabulary (FR-006) — exactly 4 prose verbs
139
+ * whose presence DISAGREES with the effect being contractual (−15 via
140
+ * `docstring` when routed). Like the incidental prefixes, these are
141
+ * logging vocabulary routed only to the output family. Order is pinned
142
+ * (the same first-verb tie-break as the indirect tier).
143
+ */
144
+ export declare const INCIDENTAL_VERBS: readonly string[];
145
+ /**
146
+ * The normative routing table (FR-007) — all 48 rows, transcribed
147
+ * verbatim from data-model.md Section 6 in its table order.
148
+ *
149
+ * Compile-time exhaustiveness (the `TIER_MAP` pattern): the value type is
150
+ * keyed by the full `SideEffectType` union, so the compiler rejects a
151
+ * missing row, an extra row, or a misspelled key. Totality is structural:
152
+ * every canonical type lookup finds a branch (possibly an explicitly
153
+ * empty one), so the extractors never need a fallback path — FR-007's
154
+ * "never an exception" holds by construction, runtime-asserted against
155
+ * `SIDE_EFFECT_TYPES` by tests/signals/routing.test.ts (T003), which also
156
+ * doc-parity-diffs every row and column against data-model.md.
157
+ *
158
+ * Lookups are typed-canonical: the extractors index with `SideEffectType`
159
+ * values only. The table is a plain object literal (the TIER_MAP shape)
160
+ * and therefore inherits `Object.prototype` — never index it with
161
+ * unvalidated strings (the taxonomy module's prototype-chain stance).
162
+ */
163
+ export declare const ROUTING_TABLE: Readonly<Record<SideEffectType, RoutingBranch>>;
@@ -0,0 +1,416 @@
1
+ /**
2
+ * The closed contractual-prefix vocabulary (FR-005) — exactly 18
3
+ * leading-name prefixes, transcribed verbatim in data-model.md Section 6
4
+ * order. A contractual prefix is positive naming evidence (+10 via
5
+ * `naming_convention`) for exactly the effect types whose `ROUTING_TABLE`
6
+ * row lists it. The naming extractor selects the longest applicable
7
+ * prefix over this list united with `INCIDENTAL_PREFIXES` (the 22 closed
8
+ * prefixes) before consulting the table; the conformance suite checks
9
+ * every row's `naming` list against this list.
10
+ */
11
+ export const CONTRACTUAL_PREFIXES = [
12
+ "Get",
13
+ "Fetch",
14
+ "Load",
15
+ "Read",
16
+ "Save",
17
+ "Write",
18
+ "Update",
19
+ "Set",
20
+ "Delete",
21
+ "Remove",
22
+ "Handle",
23
+ "Process",
24
+ "Compute",
25
+ "Analyze",
26
+ "Classify",
27
+ "Parse",
28
+ "Build",
29
+ "New",
30
+ ];
31
+ /**
32
+ * The closed incidental-prefix vocabulary (FR-005) — exactly 4
33
+ * leading-name prefixes whose presence DISAGREES with an effect being
34
+ * contractual (−10 via `naming_convention` when routed). Incidental
35
+ * prefixes are logging vocabulary, so they agree only with the output
36
+ * family — routing them there is what makes negative naming evidence
37
+ * possible at all (research R2). Like every prefix, they match
38
+ * case-insensitively on the name's leading characters; the pinned
39
+ * lowercase spelling is representational, not a matching rule.
40
+ */
41
+ export const INCIDENTAL_PREFIXES = [
42
+ "log",
43
+ "debug",
44
+ "trace",
45
+ "print",
46
+ ];
47
+ /**
48
+ * The closed direct-tag vocabulary (FR-006; Clarification Q1) — exactly 2
49
+ * JSDoc tags, the strongest documentation tier (+15 via `docstring` when
50
+ * routed to the effect type). Entries keep the FR-006 `@`-prefixed form;
51
+ * the documentation extractor normalizes the compiler's bare tag names
52
+ * from `getJSDocTags` (e.g. `returns`) to this form when matching.
53
+ */
54
+ export const DIRECT_TAGS = ["@returns", "@throws"];
55
+ /**
56
+ * The closed indirect-verb vocabulary (FR-006) — exactly 9 prose verbs
57
+ * matched in the flattened doc text (case-insensitive, word-boundary
58
+ * delimited; +5 via `docstring` when routed). Order is pinned by the doc
59
+ * and semantically meaningful: within the indirect tier, the first verb
60
+ * in this order that both matches and routes names the match in the
61
+ * emitted reasoning — the deterministic tie-break (research R4).
62
+ */
63
+ export const INDIRECT_VERBS = [
64
+ "returns",
65
+ "writes",
66
+ "modifies",
67
+ "updates",
68
+ "sets",
69
+ "persists",
70
+ "stores",
71
+ "deletes",
72
+ "removes",
73
+ ];
74
+ /**
75
+ * The closed incidental-verb vocabulary (FR-006) — exactly 4 prose verbs
76
+ * whose presence DISAGREES with the effect being contractual (−15 via
77
+ * `docstring` when routed). Like the incidental prefixes, these are
78
+ * logging vocabulary routed only to the output family. Order is pinned
79
+ * (the same first-verb tie-break as the indirect tier).
80
+ */
81
+ export const INCIDENTAL_VERBS = [
82
+ "logs",
83
+ "prints",
84
+ "traces",
85
+ "debugs",
86
+ ];
87
+ /**
88
+ * The normative routing table (FR-007) — all 48 rows, transcribed
89
+ * verbatim from data-model.md Section 6 in its table order.
90
+ *
91
+ * Compile-time exhaustiveness (the `TIER_MAP` pattern): the value type is
92
+ * keyed by the full `SideEffectType` union, so the compiler rejects a
93
+ * missing row, an extra row, or a misspelled key. Totality is structural:
94
+ * every canonical type lookup finds a branch (possibly an explicitly
95
+ * empty one), so the extractors never need a fallback path — FR-007's
96
+ * "never an exception" holds by construction, runtime-asserted against
97
+ * `SIDE_EFFECT_TYPES` by tests/signals/routing.test.ts (T003), which also
98
+ * doc-parity-diffs every row and column against data-model.md.
99
+ *
100
+ * Lookups are typed-canonical: the extractors index with `SideEffectType`
101
+ * values only. The table is a plain object literal (the TIER_MAP shape)
102
+ * and therefore inherits `Object.prototype` — never index it with
103
+ * unvalidated strings (the taxonomy module's prototype-chain stance).
104
+ */
105
+ export const ROUTING_TABLE = {
106
+ // Value family: Get/Fetch/Load/Read/Compute/Analyze/Classify/Parse/
107
+ // Build/New + @returns + "returns" (research R2).
108
+ ReturnValue: {
109
+ naming: [
110
+ "Get",
111
+ "Fetch",
112
+ "Load",
113
+ "Read",
114
+ "Compute",
115
+ "Analyze",
116
+ "Classify",
117
+ "Parse",
118
+ "Build",
119
+ "New",
120
+ ],
121
+ docTags: ["@returns"],
122
+ docIndirect: ["returns"],
123
+ docIncidental: [],
124
+ },
125
+ GeneratorYield: {
126
+ naming: [
127
+ "Get",
128
+ "Fetch",
129
+ "Load",
130
+ "Read",
131
+ "Compute",
132
+ "Analyze",
133
+ "Classify",
134
+ "Parse",
135
+ "Build",
136
+ "New",
137
+ ],
138
+ docTags: ["@returns"],
139
+ docIndirect: ["returns"],
140
+ docIncidental: [],
141
+ },
142
+ AsyncGeneratorYield: {
143
+ naming: [
144
+ "Get",
145
+ "Fetch",
146
+ "Load",
147
+ "Read",
148
+ "Compute",
149
+ "Analyze",
150
+ "Classify",
151
+ "Parse",
152
+ "Build",
153
+ "New",
154
+ ],
155
+ docTags: ["@returns"],
156
+ docIndirect: ["returns"],
157
+ docIncidental: [],
158
+ },
159
+ // ImportSideEffect routes the Load prefix alone: module evaluation is
160
+ // triggered by loading, not by reading values out of the module.
161
+ ImportSideEffect: {
162
+ naming: ["Load"],
163
+ docTags: [],
164
+ docIndirect: [],
165
+ docIncidental: [],
166
+ },
167
+ // Error family: @throws only — no closed-list prefix agrees with error
168
+ // effects (research R2).
169
+ ErrorReturn: {
170
+ naming: [],
171
+ docTags: ["@throws"],
172
+ docIndirect: [],
173
+ docIncidental: [],
174
+ },
175
+ ErrorSignal: {
176
+ naming: [],
177
+ docTags: ["@throws"],
178
+ docIndirect: [],
179
+ docIncidental: [],
180
+ },
181
+ // No closed-list prefix: the doc's "Err special case only" cell means
182
+ // the +30 sentinel rule is a naming-extractor rule keyed on this row
183
+ // (research R3) — it replaces the prefix rules; it is not stored here.
184
+ SentinelError: {
185
+ naming: [],
186
+ docTags: ["@throws"],
187
+ docIndirect: [],
188
+ docIncidental: [],
189
+ },
190
+ // Mutation family: the eleven state-mutation types share
191
+ // Update/Set/Delete/Remove and the five mutation verbs.
192
+ ReceiverMutation: {
193
+ naming: ["Update", "Set", "Delete", "Remove"],
194
+ docTags: [],
195
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
196
+ docIncidental: [],
197
+ },
198
+ PointerArgMutation: {
199
+ naming: ["Update", "Set", "Delete", "Remove"],
200
+ docTags: [],
201
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
202
+ docIncidental: [],
203
+ },
204
+ SliceMutation: {
205
+ naming: ["Update", "Set", "Delete", "Remove"],
206
+ docTags: [],
207
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
208
+ docIncidental: [],
209
+ },
210
+ MapMutation: {
211
+ naming: ["Update", "Set", "Delete", "Remove"],
212
+ docTags: [],
213
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
214
+ docIncidental: [],
215
+ },
216
+ GlobalMutation: {
217
+ naming: ["Update", "Set", "Delete", "Remove"],
218
+ docTags: [],
219
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
220
+ docIncidental: [],
221
+ },
222
+ ContainerMutation: {
223
+ naming: ["Update", "Set", "Delete", "Remove"],
224
+ docTags: [],
225
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
226
+ docIncidental: [],
227
+ },
228
+ EnvVarMutation: {
229
+ naming: ["Update", "Set", "Delete", "Remove"],
230
+ docTags: [],
231
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
232
+ docIncidental: [],
233
+ },
234
+ DeferredReturnMutation: {
235
+ naming: ["Update", "Set", "Delete", "Remove"],
236
+ docTags: [],
237
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
238
+ docIncidental: [],
239
+ },
240
+ ClosureCaptureMutation: {
241
+ naming: ["Update", "Set", "Delete", "Remove"],
242
+ docTags: [],
243
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
244
+ docIncidental: [],
245
+ },
246
+ MonkeyPatch: {
247
+ naming: ["Update", "Set", "Delete", "Remove"],
248
+ docTags: [],
249
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
250
+ docIncidental: [],
251
+ },
252
+ MetaprogrammingMutation: {
253
+ naming: ["Update", "Set", "Delete", "Remove"],
254
+ docTags: [],
255
+ docIndirect: ["modifies", "updates", "sets", "deletes", "removes"],
256
+ docIncidental: [],
257
+ },
258
+ // File-system metadata: the narrowed mutation vocabulary
259
+ // (Update/Set, modifies/updates).
260
+ FileSystemMeta: {
261
+ naming: ["Update", "Set"],
262
+ docTags: [],
263
+ docIndirect: ["modifies", "updates"],
264
+ docIncidental: [],
265
+ },
266
+ // Write family: Save/Write + writes, with persists/stores on the two
267
+ // durable stores (research R2).
268
+ FileSystemWrite: {
269
+ naming: ["Save", "Write"],
270
+ docTags: [],
271
+ docIndirect: ["writes", "persists", "stores"],
272
+ docIncidental: [],
273
+ },
274
+ DatabaseWrite: {
275
+ naming: ["Save", "Write"],
276
+ docTags: [],
277
+ docIndirect: ["writes", "persists", "stores"],
278
+ docIncidental: [],
279
+ },
280
+ WriterOutput: {
281
+ naming: ["Save", "Write"],
282
+ docTags: [],
283
+ docIndirect: ["writes"],
284
+ docIncidental: [],
285
+ },
286
+ // HTTP responses also take the handler prefixes (Handle/Process).
287
+ HTTPResponseWrite: {
288
+ naming: ["Save", "Write", "Handle", "Process"],
289
+ docTags: [],
290
+ docIndirect: ["writes"],
291
+ docIncidental: [],
292
+ },
293
+ // StreamOutput routes to the write family, not the return-like branch:
294
+ // TypeScript's construct is `.pipe(...)`, writing to a stream (research
295
+ // R2's deliberate deviation from snake-eyes).
296
+ StreamOutput: {
297
+ naming: ["Save", "Write"],
298
+ docTags: [],
299
+ docIndirect: ["writes"],
300
+ docIncidental: [],
301
+ },
302
+ // Output family: Write + writes plus the incidental vocabulary — the
303
+ // only rows negative evidence routes to (research R2). docIncidental
304
+ // holds the incidental prefixes then the incidental verbs.
305
+ StdoutWrite: {
306
+ naming: ["Write"],
307
+ docTags: [],
308
+ docIndirect: ["writes"],
309
+ docIncidental: [
310
+ "log",
311
+ "debug",
312
+ "trace",
313
+ "print",
314
+ "logs",
315
+ "prints",
316
+ "traces",
317
+ "debugs",
318
+ ],
319
+ },
320
+ StderrWrite: {
321
+ naming: ["Write"],
322
+ docTags: [],
323
+ docIndirect: ["writes"],
324
+ docIncidental: [
325
+ "log",
326
+ "debug",
327
+ "trace",
328
+ "print",
329
+ "logs",
330
+ "prints",
331
+ "traces",
332
+ "debugs",
333
+ ],
334
+ },
335
+ LogWrite: {
336
+ naming: ["Write"],
337
+ docTags: [],
338
+ docIndirect: ["writes"],
339
+ docIncidental: [
340
+ "log",
341
+ "debug",
342
+ "trace",
343
+ "print",
344
+ "logs",
345
+ "prints",
346
+ "traces",
347
+ "debugs",
348
+ ],
349
+ },
350
+ // Delete family: Delete/Remove + deletes/removes.
351
+ FileSystemDelete: {
352
+ naming: ["Delete", "Remove"],
353
+ docTags: [],
354
+ docIndirect: ["deletes", "removes"],
355
+ docIncidental: [],
356
+ },
357
+ // AtomicOp: the narrowed mutation vocabulary (Update/Set,
358
+ // modifies/updates/sets).
359
+ AtomicOp: {
360
+ naming: ["Update", "Set"],
361
+ docTags: [],
362
+ docIndirect: ["modifies", "updates", "sets"],
363
+ docIncidental: [],
364
+ },
365
+ // Handler family: Handle/Process.
366
+ ChannelSend: {
367
+ naming: ["Handle", "Process"],
368
+ docTags: [],
369
+ docIndirect: [],
370
+ docIncidental: [],
371
+ },
372
+ // Construction family: Build/New.
373
+ GoroutineSpawn: {
374
+ naming: ["Build", "New"],
375
+ docTags: [],
376
+ docIndirect: [],
377
+ docIncidental: [],
378
+ },
379
+ DescriptorEffect: {
380
+ naming: ["Build", "New"],
381
+ docTags: [],
382
+ docIndirect: [],
383
+ docIncidental: [],
384
+ },
385
+ FinalizerRegistration: {
386
+ naming: ["Build", "New"],
387
+ docTags: [],
388
+ docIndirect: [],
389
+ docIncidental: [],
390
+ },
391
+ CgoCall: {
392
+ naming: ["Build", "New"],
393
+ docTags: [],
394
+ docIndirect: [],
395
+ docIncidental: [],
396
+ },
397
+ // Explicitly-empty rows: no closed-list vocabulary agrees with these
398
+ // types — routed to none, never an exception (FR-007 totality). The
399
+ // seven never-emitted N/A types (research R2) route to none because
400
+ // their routing is moot, not because agreement was evaluated.
401
+ ChannelClose: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
402
+ DatabaseTransaction: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
403
+ CallbackInvocation: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
404
+ ContextCancellation: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
405
+ ResourceManagement: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
406
+ TimeDependency: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
407
+ ProcessExit: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
408
+ Panic: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
409
+ MutexOp: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
410
+ WaitGroupOp: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
411
+ RecoverBehavior: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
412
+ ReflectionMutation: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
413
+ UnsafeMutation: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
414
+ SyncPoolOp: { naming: [], docTags: [], docIndirect: [], docIncidental: [] },
415
+ };
416
+ //# sourceMappingURL=routing.js.map