@beehexa/hexasync-template-validate 2608.20.18 → 2608.20.31

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 (129) hide show
  1. package/dist/index.d.ts +39 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +39 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/validate/agentAnswers.d.ts +48 -0
  6. package/dist/validate/agentAnswers.d.ts.map +1 -0
  7. package/dist/validate/agentAnswers.js +84 -0
  8. package/dist/validate/agentAnswers.js.map +1 -0
  9. package/dist/validate/agentTools.d.ts +37 -0
  10. package/dist/validate/agentTools.d.ts.map +1 -0
  11. package/dist/validate/agentTools.js +141 -0
  12. package/dist/validate/agentTools.js.map +1 -0
  13. package/dist/validate/buildValidationModel.d.ts +31 -0
  14. package/dist/validate/buildValidationModel.d.ts.map +1 -0
  15. package/dist/validate/buildValidationModel.js +68 -0
  16. package/dist/validate/buildValidationModel.js.map +1 -0
  17. package/dist/validate/context.d.ts +117 -0
  18. package/dist/validate/context.d.ts.map +1 -0
  19. package/dist/validate/context.js +96 -0
  20. package/dist/validate/context.js.map +1 -0
  21. package/dist/validate/contextFromGraph.d.ts +70 -0
  22. package/dist/validate/contextFromGraph.d.ts.map +1 -0
  23. package/dist/validate/contextFromGraph.js +82 -0
  24. package/dist/validate/contextFromGraph.js.map +1 -0
  25. package/dist/validate/harvestPullerTaskIds.d.ts +60 -0
  26. package/dist/validate/harvestPullerTaskIds.d.ts.map +1 -0
  27. package/dist/validate/harvestPullerTaskIds.js +116 -0
  28. package/dist/validate/harvestPullerTaskIds.js.map +1 -0
  29. package/dist/validate/model.d.ts +14 -0
  30. package/dist/validate/model.d.ts.map +1 -0
  31. package/dist/validate/model.js +97 -0
  32. package/dist/validate/model.js.map +1 -0
  33. package/dist/validate/registry.d.ts +24 -0
  34. package/dist/validate/registry.d.ts.map +1 -0
  35. package/dist/validate/registry.js +105 -0
  36. package/dist/validate/registry.js.map +1 -0
  37. package/dist/validate/retrieve.d.ts +125 -0
  38. package/dist/validate/retrieve.d.ts.map +1 -0
  39. package/dist/validate/retrieve.js +272 -0
  40. package/dist/validate/retrieve.js.map +1 -0
  41. package/dist/validate/rule.d.ts +18 -0
  42. package/dist/validate/rule.d.ts.map +1 -0
  43. package/dist/validate/rule.js +2 -0
  44. package/dist/validate/rule.js.map +1 -0
  45. package/dist/validate/ruleCatalog.d.ts +22 -0
  46. package/dist/validate/ruleCatalog.d.ts.map +1 -0
  47. package/dist/validate/ruleCatalog.js +492 -0
  48. package/dist/validate/ruleCatalog.js.map +1 -0
  49. package/dist/validate/rules/apiShape.d.ts +51 -0
  50. package/dist/validate/rules/apiShape.d.ts.map +1 -0
  51. package/dist/validate/rules/apiShape.js +150 -0
  52. package/dist/validate/rules/apiShape.js.map +1 -0
  53. package/dist/validate/rules/arguments.d.ts +3 -0
  54. package/dist/validate/rules/arguments.d.ts.map +1 -0
  55. package/dist/validate/rules/arguments.js +301 -0
  56. package/dist/validate/rules/arguments.js.map +1 -0
  57. package/dist/validate/rules/connectorIdentity.d.ts +3 -0
  58. package/dist/validate/rules/connectorIdentity.d.ts.map +1 -0
  59. package/dist/validate/rules/connectorIdentity.js +347 -0
  60. package/dist/validate/rules/connectorIdentity.js.map +1 -0
  61. package/dist/validate/rules/context.d.ts +42 -0
  62. package/dist/validate/rules/context.d.ts.map +1 -0
  63. package/dist/validate/rules/context.js +92 -0
  64. package/dist/validate/rules/context.js.map +1 -0
  65. package/dist/validate/rules/dependencyIntegrity.d.ts +60 -0
  66. package/dist/validate/rules/dependencyIntegrity.d.ts.map +1 -0
  67. package/dist/validate/rules/dependencyIntegrity.js +296 -0
  68. package/dist/validate/rules/dependencyIntegrity.js.map +1 -0
  69. package/dist/validate/rules/duplicates.d.ts +27 -0
  70. package/dist/validate/rules/duplicates.d.ts.map +1 -0
  71. package/dist/validate/rules/duplicates.js +337 -0
  72. package/dist/validate/rules/duplicates.js.map +1 -0
  73. package/dist/validate/rules/flow.d.ts +57 -0
  74. package/dist/validate/rules/flow.d.ts.map +1 -0
  75. package/dist/validate/rules/flow.js +714 -0
  76. package/dist/validate/rules/flow.js.map +1 -0
  77. package/dist/validate/rules/missingInclude.d.ts +27 -0
  78. package/dist/validate/rules/missingInclude.d.ts.map +1 -0
  79. package/dist/validate/rules/missingInclude.js +29 -0
  80. package/dist/validate/rules/missingInclude.js.map +1 -0
  81. package/dist/validate/rules/overwriteLoss.d.ts +23 -0
  82. package/dist/validate/rules/overwriteLoss.d.ts.map +1 -0
  83. package/dist/validate/rules/overwriteLoss.js +40 -0
  84. package/dist/validate/rules/overwriteLoss.js.map +1 -0
  85. package/dist/validate/rules/pullerKind.d.ts +3 -0
  86. package/dist/validate/rules/pullerKind.d.ts.map +1 -0
  87. package/dist/validate/rules/pullerKind.js +92 -0
  88. package/dist/validate/rules/pullerKind.js.map +1 -0
  89. package/dist/validate/rules/querySelect.d.ts +24 -0
  90. package/dist/validate/rules/querySelect.d.ts.map +1 -0
  91. package/dist/validate/rules/querySelect.js +102 -0
  92. package/dist/validate/rules/querySelect.js.map +1 -0
  93. package/dist/validate/rules/reference.d.ts +44 -0
  94. package/dist/validate/rules/reference.d.ts.map +1 -0
  95. package/dist/validate/rules/reference.js +405 -0
  96. package/dist/validate/rules/reference.js.map +1 -0
  97. package/dist/validate/rules/referenceKind.d.ts +25 -0
  98. package/dist/validate/rules/referenceKind.d.ts.map +1 -0
  99. package/dist/validate/rules/referenceKind.js +235 -0
  100. package/dist/validate/rules/referenceKind.js.map +1 -0
  101. package/dist/validate/rules/retiredType.d.ts +149 -0
  102. package/dist/validate/rules/retiredType.d.ts.map +1 -0
  103. package/dist/validate/rules/retiredType.js +235 -0
  104. package/dist/validate/rules/retiredType.js.map +1 -0
  105. package/dist/validate/rules/stepData.d.ts +122 -0
  106. package/dist/validate/rules/stepData.d.ts.map +1 -0
  107. package/dist/validate/rules/stepData.js +249 -0
  108. package/dist/validate/rules/stepData.js.map +1 -0
  109. package/dist/validate/rules/stepIterations.d.ts +49 -0
  110. package/dist/validate/rules/stepIterations.d.ts.map +1 -0
  111. package/dist/validate/rules/stepIterations.js +156 -0
  112. package/dist/validate/rules/stepIterations.js.map +1 -0
  113. package/dist/validate/rules/tables.d.ts +8 -0
  114. package/dist/validate/rules/tables.d.ts.map +1 -0
  115. package/dist/validate/rules/tables.js +116 -0
  116. package/dist/validate/rules/tables.js.map +1 -0
  117. package/dist/validate/rules/variableDrift.d.ts +63 -0
  118. package/dist/validate/rules/variableDrift.d.ts.map +1 -0
  119. package/dist/validate/rules/variableDrift.js +132 -0
  120. package/dist/validate/rules/variableDrift.js.map +1 -0
  121. package/dist/validate/rules/variables.d.ts +12 -0
  122. package/dist/validate/rules/variables.d.ts.map +1 -0
  123. package/dist/validate/rules/variables.js +207 -0
  124. package/dist/validate/rules/variables.js.map +1 -0
  125. package/dist/validate/sourceLocator.d.ts +32 -0
  126. package/dist/validate/sourceLocator.d.ts.map +1 -0
  127. package/dist/validate/sourceLocator.js +166 -0
  128. package/dist/validate/sourceLocator.js.map +1 -0
  129. package/package.json +6 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrieve.js","sourceRoot":"","sources":["../../src/validate/retrieve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAqBhD,MAAM,SAAS,GAAG,CAAC,EAAU,EAAU,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CACzB,EAAU,EACV,OAAO,GAAoB,EAAE;IAE7B,MAAM,OAAO,GAAG,YAGf,CAAC;IACF;;;OAGG;IACH,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAA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AK,CAAC,IAAI,CAAC,IAAI,CAAC;QACtB,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM;YACnC,CAAC,OAAO,CAAC,IAAI,KAAK,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YAClE,CAAC,CAAC,EAAE,IAAI,EAAE,yDAAyD,EAAE;YACrE,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC;AAwBD,MAAM,UAAU,cAAc,CAAC,WAW9B;IACC,OAAO;QACL,QAAQ,EAAE,WAAW,CAAC,QAAQ;QAC9B,IAAI,EAAE,WAAW,CAAC,IAAI;QACtB,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACpD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;YACrB,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI;YAC1B,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM;gBACpD,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;gBACvC,CAAC,CAAC,EAAE,CAAC;SACR,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ValidationIssue } from '@beehexa/hexasync-template-report-model';
2
+ import { ValidationContext } from './context.js';
3
+ /**
4
+ * A single validation check. Adding a rule (or a whole family) is one entry in
5
+ * VALIDATION_RULES — the pipeline never changes (NFR-3). A rule reads the context
6
+ * and returns zero or more issues; it must be pure and must not throw fatally.
7
+ *
8
+ * Declared HERE rather than in `registry.ts` to break a cycle: every rule needs this type,
9
+ * and the registry needs every rule. While this code lived in `apps/cli` the cycle was
10
+ * invisible — `no-circular` only cruises `packages/` — so the move surfaced it rather than
11
+ * created it. A shared type with no dependents of its own is the natural place to cut.
12
+ */
13
+ export interface ValidationRule {
14
+ id: string;
15
+ family: string;
16
+ run(ctx: ValidationContext): ValidationIssue[];
17
+ }
18
+ //# sourceMappingURL=rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule.d.ts","sourceRoot":"","sources":["../../src/validate/rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,GAAG,EAAE,iBAAiB,GAAG,eAAe,EAAE,CAAC;CAChD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule.js","sourceRoot":"","sources":["../../src/validate/rule.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Human-readable documentation for every validation rule the engine can emit, rendered as
3
+ * an appendix at the end of the report so a developer/reviewer can look up what a rule id
4
+ * means, and what breaks if it is ignored. Keep an entry here for every ruleId any rule
5
+ * pushes; `ruleDocsFor` returns only the rules actually present in a report, in family order.
6
+ */
7
+ export interface RuleDoc {
8
+ /** Short human title. */
9
+ title: string;
10
+ /** What the rule checks (one sentence). */
11
+ what: string;
12
+ /** What goes wrong at runtime / review if the rule is not satisfied (one sentence). */
13
+ consequence: string;
14
+ }
15
+ export declare const RULE_CATALOG: Record<string, RuleDoc>;
16
+ /** The catalog entries for the given rule ids, deduped and sorted by family then number.
17
+ * Rule ids with no catalog entry are skipped (never invents documentation). */
18
+ export declare function ruleDocsFor(ruleIds: Iterable<string>): Array<{
19
+ ruleId: string;
20
+ doc: RuleDoc;
21
+ }>;
22
+ //# sourceMappingURL=ruleCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleCatalog.d.ts","sourceRoot":"","sources":["../../src/validate/ruleCatalog.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,uFAAuF;IACvF,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CA8fhD,CAAC;AAiDF;gFACgF;AAChF,wBAAgB,WAAW,CACzB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,GACxB,KAAK,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC,CAczC"}
@@ -0,0 +1,492 @@
1
+ import { UNSUPPORTED_CONNECTOR_SHORT } from '@beehexa/hexasync-template-model';
2
+ export const RULE_CATALOG = {
3
+ // REF — reference integrity (profile-local edges only).
4
+ 'REF-1': {
5
+ title: 'Association puller does not exist',
6
+ what: 'An objectAssociation names a `puller.id` that is not defined in `pullers[]`. Not flagged when the task is fed by a DIRECT_INDEX / data-insertion step in another puller or pusher — such a task is populated without a puller of its own.',
7
+ consequence: 'The object is never pulled — its inbound sync silently does nothing.',
8
+ },
9
+ 'REF-2': {
10
+ title: 'Association pusher does not exist',
11
+ what: 'An objectAssociation names a `pusher.id` that is not defined in `pushers[]`.',
12
+ consequence: 'The object is never pushed — its outbound sync silently does nothing.',
13
+ },
14
+ 'REF-3': {
15
+ title: 'Association table does not exist',
16
+ what: 'An objectAssociation names a `table.id` that is not defined in `tables[]`.',
17
+ consequence: 'The object has no backing table to read from or write to.',
18
+ },
19
+ 'REF-5': {
20
+ title: 'Transformations/validations keyed to a missing object',
21
+ what: 'A `transformations`/`validations` map is keyed by an object id that is not in `objects[]`.',
22
+ consequence: 'Those transformations/validations are silently never applied.',
23
+ },
24
+ 'REF-6': {
25
+ title: 'Dependency points at a missing object',
26
+ what: 'A `dependencies[]` entry `objectId`/`dependedOn` references an object not in `objects[]`.',
27
+ consequence: 'The dependency edge is silently ignored, so ordering is not enforced.',
28
+ },
29
+ 'REF-7': {
30
+ title: 'Metric references a missing group',
31
+ what: 'A metric `groups[]` entry names a metric-group key defined neither at top level nor under any object.',
32
+ consequence: 'The metric is ungrouped and will not display under its intended group.',
33
+ },
34
+ 'REF-9': {
35
+ title: 'Webhook target points at a missing object',
36
+ what: 'A webhook `targets[].objectIds` entry references an object not in `objects[]`.',
37
+ consequence: 'The webhook target is silently dead — inbound events go nowhere.',
38
+ },
39
+ 'REF-13': {
40
+ title: 'Step references a missing object',
41
+ what: 'A step (`data.objectId(s)` / `arguments.object_id`) references an object not in `objects[]`.',
42
+ consequence: 'The step no-ops or errors at runtime.',
43
+ },
44
+ 'REF-15': {
45
+ title: 'Startup task targets a missing object',
46
+ what: 'A `startupTasks[]` scheduler `entityId`/`targetId` (when object-typed) references an object not in `objects[]`.',
47
+ consequence: 'The scheduled task targets nothing and never runs meaningfully.',
48
+ },
49
+ 'REF-16': {
50
+ title: 'New-kind puller step targets a missing task',
51
+ what: 'A new-kind puller `SAVE_TASK_DATA` / `UPDATE_TASK_DATA_STATUS` step names a static `data.taskId` that is neither an object id nor a declared objectAssociation task.',
52
+ consequence: 'The puller writes into a task that does not exist — the data is silently dropped.',
53
+ },
54
+ 'REF-K1': {
55
+ title: 'Reference points at nothing',
56
+ what: 'A property the reference registry recognises — `pullerId`, `tableId`, `connectionId`, a discriminated `entityId`/`targetId`, and the rest — names an id that the project does not declare in the collection that property points into.',
57
+ consequence: 'The reference resolves to nothing at runtime: the step, association or schedule silently does nothing.',
58
+ },
59
+ 'REF-K2': {
60
+ title: 'Reference points at the wrong KIND of thing',
61
+ what: 'The named id exists, but in a different collection from the one the property points into — a `pullerId` naming a pusher, for example. The target collection comes from the reference registry, which discriminates `entityId`/`targetId` on their sibling `entityType`/`targetType`.',
62
+ consequence: 'The worker looks the id up in the collection the property implies and finds nothing, so the reference is dead even though the id exists somewhere.',
63
+ },
64
+ // DUP — duplicate ids/keys.
65
+ 'DUP-1': {
66
+ title: 'Two component identities resolve to one id',
67
+ what: 'Two different keys in the same collection — typically two `**Variable**` names bound to the same value — produce the same id once variables are substituted.',
68
+ consequence: 'Both entries reach `output.yaml` under one id. When their content matches, the duplicate is merely redundant; when it differs, HexaSync keeps one and the other declaration is silently discarded.',
69
+ },
70
+ 'DUP-3': {
71
+ title: 'Duplicate step key in a workflow',
72
+ what: 'Two steps in the same workflow (pullSteps/pushSteps/…) share the same `key`.',
73
+ consequence: 'Step routing (`next`) is nondeterministic — the wrong step may run.',
74
+ },
75
+ 'DUP-4': {
76
+ title: 'Duplicate nested id',
77
+ what: 'Two nested items (metric / transformation / validation) share the same id within their group.',
78
+ consequence: 'One silently shadows the other; the intended item may never execute.',
79
+ },
80
+ 'DUP-5': {
81
+ title: 'Step key reused across step-lists',
82
+ what: "The same step `key` appears in more than one of a puller's or pusher's step-lists combined (beforePullSteps/pullSteps/afterPullSteps/finalSteps/steps/onErrorSteps). NOT applied across a webhook's targets: a target is its own execution scope, so the same key in two targets is legitimate.",
83
+ consequence: 'The workflow engine keys `_outputs` and resolves `next` by a GLOBAL step key within the entity — a cross-list collision makes output reads and routing ambiguous.',
84
+ },
85
+ // DEP — the shape of the dependency graph.
86
+ 'DEP-1': {
87
+ title: 'Circular dependency between tasks',
88
+ what: 'Tasks depend on each other in a loop via `dependencies[].objectId`/`dependedOn`. A task depending on ITSELF is excluded — that is an ordinary self-join for a parent/child hierarchy.',
89
+ consequence: 'There is no order in which every task in the chain can be satisfied: each waits on the next and the last waits back on the first.',
90
+ },
91
+ // COL — column references.
92
+ 'COL-1': {
93
+ title: 'Dependency join key is not a declared column',
94
+ what: "A `dependencies[].data.keys` entry names a column that the task's backing table does not declare. Worker-managed `__`-prefixed names are not checked, and a task whose association or table cannot be resolved is left to REF-3/REF-5.",
95
+ consequence: 'The join matches nothing, so the dependency never resolves and the depending task is held back with no error to read.',
96
+ },
97
+ // OVW — inherited components dropped by a wholesale overwrite.
98
+ 'OVW-1': {
99
+ title: 'Wholesale array overwrite dropped inherited components',
100
+ what: 'A file replaces an entire inherited component array because its own items declare no `id`, so the merge cannot match them element-by-element.',
101
+ consequence: 'Every inherited component that array held is absent from the composed output, with nothing left to point at — no `!` removal and no dangling reference. Give the override items their `id` to merge onto the inherited components instead.',
102
+ },
103
+ // MDI — a `!md[...]` description include whose target could not be read (2026-08-20). Like OVW, the
104
+ // evidence comes from the merge rather than from the composed document: the file was never inlined,
105
+ // so the description is an empty string and there is no directive left to match.
106
+ 'MDI-1': {
107
+ title: 'Description include not found',
108
+ what: 'A description is written as `!md[path/to/file.md]` and that file could not be read when the project composed.',
109
+ consequence: 'The description is EMPTY in everything downstream — the composed output, the report, the editor. The compose deliberately does not fail for this: losing a whole project to one missing Markdown file would also lose you the report that names it. Create the file at the path the finding gives, or correct the reference.',
110
+ },
111
+ // QDSL — the Query DSL's deprecated `select` sugar (2026-08-20). LOW: nothing is broken and nothing will
112
+ // break, the sugar compiles to the same SQL. It is a "stop writing new ones" finding, which is what LOW is
113
+ // for, and it sits beside `deprecated: true` on the same schema branch so the editor and the report agree.
114
+ 'QDSL-1': {
115
+ title: 'Deprecated `select` string form',
116
+ what: 'A `QUERY_SINGLE`/`QUERY_MANY` `select` projects a column with the string sugar — `"alias.field"`, `"alias.field as x"` or `"alias.*"` — instead of the object form `{ alias, field, as?, star? }`.',
117
+ consequence: 'None at run time: the string is parsed and every identifier re-validated, never passed through as SQL. It is deprecated because two spellings of one projection is one too many — `alias.*` and `star: true` read as different things, and when an identifier is rejected the string cannot say which half was wrong. The finding names the object form to write instead.',
118
+ },
119
+ // DRIFT — a copied family that no longer matches its source.
120
+ 'DRIFT-1': {
121
+ title: 'Copied variable family has partly drifted',
122
+ what: "A variable family copied from a component library matches the library for some of its ids and not others — e.g. `_Task_Id` and `_Table_Id` are still the library's while `_Puller_Id` was regenerated.",
123
+ consequence: "Part of the copy still points at the library's entities and part at this project's own. A family is normally all-shared (a second project using the same entities) or all-regenerated (an independent deployment); a mixture is a half-finished job.",
124
+ },
125
+ // PLK — puller kind (legacy vs new-kind).
126
+ 'PLK-1': {
127
+ title: 'Legacy (old-kind) puller',
128
+ what: 'A puller uses the old-kind shape (pullSteps/responseFilters) rather than the new-kind `steps` workflow.',
129
+ consequence: 'Still supported, but misses the generic `_inputs`/`_outputs`/`__this` context, errors-as-data, and onErrorSteps/finalSteps — migrate per the Worker > Puller Workflow guide.',
130
+ },
131
+ 'PLK-2': {
132
+ title: 'New-kind puller carries legacy fields',
133
+ what: 'A new-kind puller (has `steps`) also declares a legacy field (responseFilters/beforePullSteps/pullSteps/afterPullSteps).',
134
+ consequence: 'The two shapes are mutually exclusive; the legacy fields are ignored on the steps path and signal a half-migrated puller — remove them.',
135
+ },
136
+ /**
137
+ * STEP — what a step's own `data` must contain (Story 5.12).
138
+ *
139
+ * A separate family from FLOW, which is about routing between steps. These are about the inside of one step, and
140
+ * a reader filtering for "why is my step wrong" should not have to know that a missing `sql` and a dangling
141
+ * `next` share a prefix.
142
+ */
143
+ 'STEP-1': {
144
+ title: 'A step’s `data` cannot run as written',
145
+ what: 'A step leaves out a field it requires, sets BOTH of a pair the runtime treats as one-or-the-other, sets ' +
146
+ 'NEITHER, or writes `data` as something other than a block of fields. ⚠️ The two executors that read ' +
147
+ '`items`/`dataPath` resolve them in OPPOSITE order — `SAVE_TASK_DATA` keeps `items`, `DIRECT_INDEX` keeps ' +
148
+ '`dataPath` — so a habit learned on one step is wrong on the other.',
149
+ consequence: 'A missing required field: the step cannot do its work — sometimes by throwing, and sometimes by quietly ' +
150
+ 'doing nothing (a `DIRECT_INDEX` with no `objectIds` indexes into no objects at all). Both of a pair set: ' +
151
+ 'the loser is dropped in silence, so the step runs against data you did not mean. Neither set: the step ' +
152
+ 'throws. ⚠️ An empty `dataPath` is set for the branch that picks a winner and ABSENT for the check that ' +
153
+ 'throws — so beside a real `items` it wins and selects the whole run context as a single row, and on its ' +
154
+ 'own it throws. That split is the hardest shape of all to debug.',
155
+ },
156
+ 'API-1': {
157
+ title: 'A step sets a field the runtime never reads',
158
+ what: 'An `API` step writes `annonymous` — a misspelling of `anonymous`. ⚠️ Correcting the spelling does not ' +
159
+ 'change the request either: the worker parses `anonymous` and never acts on it, so BOTH spellings are inert ' +
160
+ 'today. The finding names a stated intent the platform does not honour.',
161
+ consequence: 'Nothing about the request changes, now or after a correction — the connection authenticates regardless. ' +
162
+ 'Reported so the line is not mistaken for a working switch, and so the gap between what the template says ' +
163
+ 'and what the platform does is visible somewhere.',
164
+ },
165
+ /**
166
+ * ⛔ `ARG-8` DOES NOT EXIST, deliberately, and this is the only place a reader of this file will learn why.
167
+ *
168
+ * Story 10.8 AC-3 asks that an argument a step type does not support be reported. The rule was written, measured
169
+ * against the corpus at 49 findings — every one FALSE — and deleted. `PusherStepExecutor.cs:129` passes the whole
170
+ * `StepArguments` map into `pusher.PushItem`, and any argument is readable from any expression as
171
+ * `__this.arguments.<name>`. "Not looked up by name by this executor" is simply not the same claim as "does
172
+ * nothing", and a closed per-type allowlist cannot tell them apart. The per-type knowledge ships as documentation
173
+ * in the extension's step schema instead. Do not re-add it without a per-executor pass-through map.
174
+ */
175
+ 'API-2': {
176
+ title: 'An API step has no address for the request it will build',
177
+ what: 'The step’s `type` selects which kind of request is built, and every type except `GOOGLE_APP_SCRIPT` builds ' +
178
+ 'it from `url`. This step names such a type and sets no `url`. ⚠️ Only steps that look HTTP-shaped are ' +
179
+ 'judged: one whose `data` carries `sql`, or which declares no HTTP field at all, belongs to a connector with ' +
180
+ 'its own vocabulary and is left alone.',
181
+ consequence: 'The request cannot be addressed, so the step fails when it runs rather than when it is saved.',
182
+ },
183
+ 'STEP-2': {
184
+ title: 'A step’s execution cap will not be applied as written',
185
+ what: 'A step declares `maxStepIterations` — the number of times that one step may run within a single run — as ' +
186
+ 'something the runtime will not use: text, a true/false value, a list, a block, or a number that is zero or ' +
187
+ 'negative. The runtime ignores it entirely and applies the engine default of 1000. ⚠️ A DECIMAL is the ' +
188
+ 'exception: it is not ignored, it is rounded (`2.7` becomes `3`), so the cap that applies is not the number ' +
189
+ 'written. Set at the step root or under `data`; if both are set the **root wins** and the other is dropped ' +
190
+ 'in silence.',
191
+ consequence: 'The ceiling is not raised. A deliberately deep in-run loop still stops at 1000 executions of that step and ' +
192
+ 'the run fails with `PULL_MAX_STEP_ITERATIONS` — naming a limit the author believes they already lifted, ' +
193
+ 'with nothing at run time reporting that the value was discarded.',
194
+ },
195
+ 'STEP-3': {
196
+ title: 'A step’s execution cap is larger than the whole run’s budget',
197
+ what: 'A step’s `maxStepIterations` exceeds the total number of step executions the run allows — the template’s ' +
198
+ 'own `maxIterations` where it declares one, otherwise the engine ceiling of 300,000.',
199
+ consequence: 'The value is honoured, but clamped down to the run’s total: a single step can never be allowed more ' +
200
+ 'executions than the whole run. Informational — nothing is broken, and the number in the file is simply not ' +
201
+ 'the number that applies.',
202
+ },
203
+ 'CTX-3': {
204
+ title: 'Steps are declared outside any component',
205
+ what: 'A step stage (`pullSteps`, `pushSteps`, …) sits at the top level of the document rather than inside a ' +
206
+ 'puller or a pusher. It usually means a partial was composed at the root instead of into a component.',
207
+ consequence: 'Nothing runs those steps, and no validation rule sees them either — they are invisible rather than ' +
208
+ 'reported. Move them inside the component they belong to.',
209
+ },
210
+ /**
211
+ * CTX — the context an expression reads, and whether the runtime can provide it (Story 8.13).
212
+ *
213
+ * A separate family from STEP and FLOW: those are about a step's own configuration and about routing between
214
+ * steps, while these are about the VALUES a step reads out of the run. The distinguishing property is that every
215
+ * CTX finding degrades in silence — nothing throws, nothing logs, a guard simply never fires.
216
+ */
217
+ 'CTX-1': {
218
+ title: 'A context path names a root that has no such child',
219
+ what: 'An expression reads something like `pusher.lastToken.…` where the root exists but that child does not — ' +
220
+ '`lastToken` is written only for a puller, so on a pusher it is never there.',
221
+ consequence: 'The path resolves to nothing under any composition, so whatever reads it receives an empty value rather ' +
222
+ 'than an error. ⚠️ Fires on nothing in the corpus today: it guards a mistake that reads exactly like the ' +
223
+ 'puller idiom an author has just come from.',
224
+ },
225
+ 'CTX-2': {
226
+ title: 'A step reads a step key its phase does not contain',
227
+ what: 'An expression reads `puller.current.SOME_STEP` (or the same thing through the `history` / `lastToken` ' +
228
+ 'alias) naming a step the phase does not declare at all — usually a step that was renamed, and the alias is ' +
229
+ 'the same object as the phase rather than a separate store. ⚠️ A step declared LATER in the phase is NOT ' +
230
+ 'reported: from the second page onwards it holds the previous page’s value, which is the pagination idiom.',
231
+ consequence: 'The path resolves to nothing on every run, so a guard written around it never fires and its `else` branch ' +
232
+ 'is the only one ever taken. The commonest shape is an incremental pull whose watermark never resolves, ' +
233
+ 'which quietly becomes a full re-pull from the initial date — forever, and without an error anywhere.',
234
+ },
235
+ // TBL — table & column integrity.
236
+ 'TBL-1': {
237
+ title: 'Table has no SOURCE_ID column',
238
+ what: 'A synced object’s backing table has no column in the `SOURCE_ID` index group.',
239
+ consequence: 'The worker cannot identify source rows — upserts fail or duplicate.',
240
+ },
241
+ 'TBL-2': {
242
+ title: 'Table has more than one SOURCE_ID column',
243
+ what: 'A synced object’s backing table declares multiple `SOURCE_ID` columns.',
244
+ consequence: 'The source-row identity is ambiguous — reconciliation is undefined.',
245
+ },
246
+ 'TBL-3': {
247
+ title: 'Table has no KEYS column',
248
+ what: 'A synced object’s backing table has no column in the `KEYS` index group.',
249
+ consequence: 'The table has no primary key for change tracking / dedup.',
250
+ },
251
+ 'TBL-4': {
252
+ title: 'SOURCE_ID column is not also a KEYS column',
253
+ what: 'The single `SOURCE_ID` column is not also part of the `KEYS` group.',
254
+ consequence: 'Source identity is not part of the key — rows can collide or duplicate.',
255
+ },
256
+ 'TBL-5': {
257
+ title: 'Column uses an undeclared index group',
258
+ what: 'A column lists an `indexGroups` value that is neither reserved nor declared in the table’s `indexGroups`.',
259
+ consequence: 'The worker throws `KeyNotFoundException` building the table context.',
260
+ },
261
+ 'TBL-6': {
262
+ title: 'Declared index group is unused',
263
+ what: 'A table declares an index group that no column references.',
264
+ consequence: 'Dead configuration — usually a typo or a leftover after refactoring.',
265
+ },
266
+ 'TBL-7': {
267
+ title: 'Column name is not a safe SQL identifier',
268
+ what: 'A column name does not match `^[a-z0-9_]{1,63}$` (lowercase / digits / underscore).',
269
+ consequence: 'Produces an invalid or case-folded SQL identifier — the column breaks at DDL time.',
270
+ },
271
+ // VAR — variable hygiene.
272
+ 'VAR-1': {
273
+ title: 'Unresolved token in the output',
274
+ what: 'A `**token**` survived into the composed output (a value or field) because a variable was missing or misspelled.',
275
+ consequence: 'The value is never substituted; an unresolved token in an id can stop the profile loading.',
276
+ },
277
+ 'VAR-2': {
278
+ title: 'Malformed variable key',
279
+ what: 'A declared variable key does not match the `**Name**` pattern (double-star-wrapped identifier).',
280
+ consequence: 'The key is never substituted anywhere — the variable is effectively dead.',
281
+ },
282
+ 'VAR-4': {
283
+ title: 'Variables in this file are never substituted',
284
+ what: 'A `variables.yaml` was found by the component glob rather than declared, so its keys never reach the substitution pool.',
285
+ consequence: "Every token that file was meant to define ships to core.api as a literal `**Token**`, behind a green compose. Declare the file as a `type: local` external, or move its keys into the project's root `variables.yaml`.",
286
+ },
287
+ 'VAR-3': {
288
+ title: 'Declared variable never referenced',
289
+ what: 'A well-formed variable is declared but referenced nowhere in the profile.',
290
+ consequence: 'Dead declaration — harmless, but usually a leftover or a typo in the reference.',
291
+ },
292
+ // FLOW — workflow graph integrity.
293
+ 'FLOW-3': {
294
+ title: 'Orphan (unreachable) step',
295
+ what: 'A step is never reached from the workflow entry via any `next` edge (and its routing is not dynamic).',
296
+ consequence: 'The step never executes — dead logic in the workflow.',
297
+ },
298
+ 'FLOW-4': {
299
+ title: 'Dangling next edge',
300
+ what: 'A step’s `next` points at a step key that does not exist in the workflow.',
301
+ consequence: 'Execution falls off the end of the graph — the workflow stops early.',
302
+ },
303
+ 'FLOW-5': {
304
+ title: 'Cycle in the workflow graph',
305
+ what: 'The `next` edges form a cycle, so the workflow can loop back on itself. For a NEW-KIND puller the cycle is ' +
306
+ 'analysed and reported only when it is unguarded, inescapable, or unbounded — a guarded, bounded pagination ' +
307
+ 'loop is valid and says nothing. For an old-kind puller or a pusher there is nothing to analyse, so any ' +
308
+ 'back-edge is reported at `low` as something to look at.',
309
+ consequence: 'A loop with no reachable exit never terminates. A paginating loop that does have one is fine — which is why ' +
310
+ 'the old-kind report is advisory rather than a defect claim.',
311
+ },
312
+ 'FLOW-6': {
313
+ title: 'Empty SWITCH / incomplete branch',
314
+ what: 'A SWITCH step has no branches; an IF step routes nowhere at all; or a conditional ' +
315
+ '`next: { if, then, else }` is missing one of the three the schema requires. A `next`, `then` or ' +
316
+ '`else` that is a STRING is a step key and needs nothing further — only the object form is a branch.',
317
+ consequence: 'The branch step has nowhere to route — execution stalls or errors.',
318
+ },
319
+ 'FLOW-8': {
320
+ title: 'Dangling `_outputs` reference',
321
+ what: 'A step reads `_outputs.<KEY>` where no step ANYWHERE in the same component declares that key. Checked over ' +
322
+ 'the whole component rather than one stage, because reading an earlier stage\u2019s output is legitimate \u2014 an ' +
323
+ '`onErrorSteps` step may read what `steps` produced.',
324
+ consequence: 'The value resolves to nothing at run time. Nothing throws: the expression yields empty, so the mistake ' +
325
+ 'surfaces as a blank field or a skipped branch rather than as an error.',
326
+ },
327
+ 'FLOW-7': {
328
+ title: 'New-kind puller: misplaced sweep / bad Exception reference',
329
+ what: 'A removal-recipe `UPDATE_TASK_DATA_STATUS` (statusToAdd includes Removed) sits in `finalSteps`, or an Exception step `fromStep` names no existing step.',
330
+ consequence: 'A partial run sweeps un-pulled pages as removed, or the exception handler never binds to its source step.',
331
+ },
332
+ // RET — component types the platform has retired (Story 1.10). Was last in FAMILY_ORDER; CONN and ARG now
333
+ // follow it, which the FAMILY_ORDER docstring explains.
334
+ 'RET-1': {
335
+ title: 'Retired component type',
336
+ what: 'The project declares a `schemas` or `reports` component. Both types are retired: a Task (an `objects[]` entry) with `type: REFERENCE` replaces Schema. Report has no documented successor yet.',
337
+ consequence: 'Still composes today, so this is a warning and the build succeeds — but the type will stop being supported. Migrate Schema components to `type: REFERENCE` Tasks; ask the platform team about Report.',
338
+ },
339
+ // CONN — a connection's connector identity (Story 2.1, FR-9). Numbered from the fixture contract, which was
340
+ // written before the rules: CONN-1 uncatalogued, CONN-2 cross-entry system code, CONN-3 unusable identity,
341
+ // CONN-4 V3 without a system code, CONN-5 V2 carrying one.
342
+ 'CONN-0': {
343
+ title: 'Connector-catalog checks were skipped',
344
+ what: "No connector catalog was supplied to this run, so the four catalog-dependent CONN checks could not run. The catalog ships in the VS Code extension's asset tree by decision, and a bare `hexasync compose` has no access to it.",
345
+ consequence: 'Nothing is wrong with the template; the run simply could not answer four of the five connector questions. Said out loud on purpose: "no catalog" must never be indistinguishable from "everything is fine".',
346
+ },
347
+ 'CONN-1': {
348
+ title: 'Connector is not in the shipped catalog',
349
+ what: 'The connection names a well-formed connector id (or a V3 system code) that no catalog entry claims. Reported at INFO, and the message names the catalog version.',
350
+ /**
351
+ * ⛔ AD-31 — the request route is QUOTED, never re-typed (Epic 2 review).
352
+ *
353
+ * This sentence used to hand-write the policy, support address and all, and because the appendix
354
+ * renders `consequence`, the hand-written copy was the one a reader actually saw — while
355
+ * `unsupportedConnectorGuidance` and `REQUEST_REQUIREMENTS` in `@beehexa/hexasync-template-model` were
356
+ * referenced by nothing but their own spec file. AD-31 exists so six surfaces cannot drift; this was the
357
+ * seventh wording, shipped on the surface that mattered most.
358
+ *
359
+ * `unsupportedConnectorRequestGuard.spec.ts` now fails if the address or the four requirements are written
360
+ * anywhere but that one module, which is epic AC-4 for Story 2.5.
361
+ */
362
+ consequence: "Absence from the catalog is NOT proof of a mistake — most corpus connections are Gateway V1 and work today — so this is information, not an error. When the catalog is simply behind, that is the tool's fault, which is why the version is named. If the system genuinely is unsupported: " +
363
+ UNSUPPORTED_CONNECTOR_SHORT,
364
+ },
365
+ 'CONN-2': {
366
+ title: 'System code belongs to a different connector',
367
+ what: 'Two shapes, one consequence. (a) `systemId` and `systemCode` are 1:1 — each catalog entry has exactly one of each and neither is shared — so a Gateway V3 connection whose two fields name DIFFERENT entries is definitively wrong, not merely suspicious. (b) A V3 connection whose `systemCode` is registered to a real catalogued system that this connector does not cover, with or without a `systemId`. Both are the copy-paste mistake, and this is the only CRITICAL finding in this family.',
368
+ consequence: 'The connection WORKS and authenticates against the wrong system with valid-looking credentials, so nothing fails visibly and the data goes to the wrong place. Dangerous beats broken, because broken announces itself.',
369
+ },
370
+ 'CONN-4': {
371
+ title: 'Gateway V3 connection has no system code',
372
+ what: 'The connection names the shared universal connector id and sets no `systemCode`. Keyed on the connector ID rather than on `generation: v3`, because the id is the fact dispatch routes on and the only one present in the document.',
373
+ consequence: 'Every V3 system shares one connector id, so the system code is the only thing dispatch can route on. Without it the connection reaches no system at all — reported as an ERROR, found before deployment rather than after. Not critical: that band is for a connection that works and reaches the WRONG system, which does not announce itself the way this does.',
374
+ },
375
+ 'CONN-5': {
376
+ title: 'System code on a Gateway V2 connection is ignored',
377
+ what: 'A non-universal (V2) connection carries a `systemCode`. Both `systemCode` and `systemId` are OPTIONAL on V2, and V2 dispatch routes on the connector id alone and never reads them.',
378
+ consequence: 'Nothing breaks and nothing needs fixing — the field is optional here, which is why this is information rather than a warning. Surfaced because an author who set it expects it to do something, and on V2 it does not. Keeping it is reasonable, not least ahead of a V3 migration.',
379
+ },
380
+ // ARG — transform `arguments` correctness (Epic TA7). Restored 2026-08-09 after a ruleCatalog edit in the
381
+ // CONN work clobbered them; recovered from dist/ and re-indented. Owned by the transformation-arguments work.
382
+ 'ARG-1': {
383
+ title: 'ARG operand references an undeclared argument',
384
+ what: 'A `where`/`join` operand `{ type: "ARG", key }` names a `key` that the transform\'s `arguments` block does not declare.',
385
+ consequence: 'The operand binds nothing at run time. An error: declare the argument in this transform, or reference an existing one.',
386
+ },
387
+ 'ARG-2': {
388
+ title: 'Argument has an unknown declared type',
389
+ what: 'An ordered `arguments` entry declares a `type` that is not one of `string`/`integer`/`decimal`/`boolean`/`timestamp`/`uuid` (a typo like `"int"`).',
390
+ consequence: 'A warning: the value is not coerced to the intended type and binds as text, which can throw a type mismatch (e.g. `integer = text`) at run time.',
391
+ },
392
+ 'ARG-3': {
393
+ title: 'Reserved argument key',
394
+ what: 'A declared argument `key` is `__`-prefixed or a builder-reserved name (`limit`, `offset`, or `p_#####`).',
395
+ consequence: 'An error: the runtime bans these keys — a `__` key collides with a system column and a reserved name collides with a builder param.',
396
+ },
397
+ 'ARG-4': {
398
+ title: 'ARG operand in select',
399
+ what: 'An `ARG` operand appears in a `select` projection.',
400
+ consequence: 'An error: SELECT projects identifiers only — a value-binding `ARG` in select is rejected at compose. Bind the arg in `where`/`join` instead.',
401
+ },
402
+ 'ARG-5': {
403
+ title: 'Duplicate declared argument',
404
+ what: 'The ordered `arguments` form declares the same `key` more than once.',
405
+ consequence: 'A warning: only the last occurrence survives (index order); the earlier declarations are silently dropped.',
406
+ },
407
+ 'ARG-6': {
408
+ title: 'Unused declared argument',
409
+ what: 'A declared argument is never referenced — no `ARG` operand, no `@key` in the raw SQL, and no reuse by a later argument via `{{ __this.arguments.<key> }}`.',
410
+ consequence: 'A warning: the argument is resolved for every item to no effect — reference it or remove it.',
411
+ },
412
+ 'ARG-7': {
413
+ title: 'List argument under a non-IN operator',
414
+ what: 'An `isList` argument is bound by an `ARG` operand under a comparison whose operator is not `IN` / `NOT_IN`.',
415
+ consequence: 'A warning: a list value only makes sense for set membership — under `=`/`>`/etc. it will not match as intended.',
416
+ },
417
+ 'CONN-3': {
418
+ title: 'Connection has no usable connector identity',
419
+ what: 'A `connectors[]` entry names no connector — neither `connectorId` nor its legacy spelling `providerId` is set — or names one that is not a well-formed GUID. Judged on the COMPOSED document, so a `**Token**` identity is measured by the value it resolves to, not by the token.',
420
+ consequence: 'The connection cannot reach any system, so every puller, pusher and webhook that uses it fails at run time. An error, not a warning: there is no version of this that works. A value that is still a `**Token**` after composition is a VARIABLE problem and is reported by `VAR-1` instead, so the two never both fire for one cause.',
421
+ },
422
+ };
423
+ /**
424
+ * Family order for the appendix; unknown families sort last, alphabetically.
425
+ *
426
+ * EVERY family is listed, which it was not before. The comparator gives an unlisted family index `99`, so
427
+ * appending `RET` to a five-entry list put it AHEAD of `PLK`, `DEP` and `OVW` — the opposite of the "RET last"
428
+ * intent — and left those three interleaved by rule NUMBER alone, which is why `PLK-1, DEP-1, OVW-1, PLK-2`
429
+ * came out in that order. Both were pre-existing for the unlisted families; adding `RET` is what made the
430
+ * docstring's promise visibly false. Found by the Story 1.10 review.
431
+ *
432
+ * `RET` was last deliberately — a deprecation notice is the least urgent thing in a report — and it is **no
433
+ * longer last**: `CONN` and `ARG` were appended after it by two concurrent features. The Epic 2 review caught
434
+ * three comments still asserting the old arrangement, including one claiming `CONN` sits "last-but-one" while
435
+ * `ARG` follows it.
436
+ *
437
+ * The ORDER IS FAMILY AGE, not urgency, and that is the honest description of what this array is: families were
438
+ * appended as they were built. A reader looking for the most serious findings uses the severity markers in the
439
+ * report body, which are ordered by consequence; the appendix is a reference list, and a stable order matters
440
+ * more there than a meaningful one. Anything appended here from now on lands after `RET` too — say so rather
441
+ * than re-litigating the position of a deprecation notice each time.
442
+ *
443
+ * `RET`'s own entry is REDUNDANT and kept on purpose: an unlisted family falls to index `99`, so `RET` would
444
+ * land after everything anyway — mutation-checked, deleting the `'RET'` line changes no test. What fixed the
445
+ * original defect was naming the OTHERS. It stays listed so the array reads as a complete, intentional order.
446
+ */
447
+ const FAMILY_ORDER = [
448
+ 'REF',
449
+ 'DUP',
450
+ // STEP sits with the structural families: it is about one step's own contents.
451
+ 'STEP',
452
+ 'TBL',
453
+ 'VAR',
454
+ 'FLOW',
455
+ 'DRIFT',
456
+ 'COL',
457
+ 'DEP',
458
+ 'OVW',
459
+ // MDI sits beside OVW deliberately: both are merge-sourced findings about something ABSENT from the
460
+ // composed document, so a reader meets them together rather than one at each end of the report.
461
+ 'MDI',
462
+ 'PLK',
463
+ 'RET',
464
+ // Appended in build order — see the docstring above. `CONN` (Epic 2) and `ARG` (transformation-arguments)
465
+ // landed after `RET`, which is why the docstring no longer claims `RET` is last.
466
+ 'CONN',
467
+ 'ARG',
468
+ ];
469
+ /** The catalog entries for the given rule ids, deduped and sorted by family then number.
470
+ * Rule ids with no catalog entry are skipped (never invents documentation). */
471
+ export function ruleDocsFor(ruleIds) {
472
+ const present = new Set();
473
+ for (const id of ruleIds)
474
+ if (RULE_CATALOG[id])
475
+ present.add(id);
476
+ return [...present]
477
+ .sort((a, b) => {
478
+ const [fa, na] = splitRuleId(a);
479
+ const [fb, nb] = splitRuleId(b);
480
+ const oa = FAMILY_ORDER.indexOf(fa);
481
+ const ob = FAMILY_ORDER.indexOf(fb);
482
+ if (oa !== ob)
483
+ return (oa < 0 ? 99 : oa) - (ob < 0 ? 99 : ob) || fa.localeCompare(fb);
484
+ return na - nb;
485
+ })
486
+ .map((ruleId) => ({ ruleId, doc: RULE_CATALOG[ruleId] }));
487
+ }
488
+ function splitRuleId(id) {
489
+ const m = /^([A-Za-z]+)-(\d+)$/.exec(id);
490
+ return m ? [m[1], Number(m[2])] : [id, 0];
491
+ }
492
+ //# sourceMappingURL=ruleCatalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleCatalog.js","sourceRoot":"","sources":["../../src/validate/ruleCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAiB/E,MAAM,CAAC,MAAM,YAAY,GAA4B;IACnD,wDAAwD;IACxD,OAAO,EAAE;QACP,KAAK,EAAE,mCAAmC;QAC1C,IAAI,EAAE,2OAA2O;QACjP,WAAW,EACT,sEAAsE;KACzE;IACD,OAAO,EAAE;QACP,KAAK,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