@beehexa/hexasync-template-validate 2608.15.1 → 2608.20.18
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.
- package/package.json +6 -6
- package/dist/index.d.ts +0 -39
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -39
- package/dist/index.js.map +0 -1
- package/dist/validate/agentAnswers.d.ts +0 -48
- package/dist/validate/agentAnswers.d.ts.map +0 -1
- package/dist/validate/agentAnswers.js +0 -84
- package/dist/validate/agentAnswers.js.map +0 -1
- package/dist/validate/agentTools.d.ts +0 -37
- package/dist/validate/agentTools.d.ts.map +0 -1
- package/dist/validate/agentTools.js +0 -141
- package/dist/validate/agentTools.js.map +0 -1
- package/dist/validate/buildValidationModel.d.ts +0 -31
- package/dist/validate/buildValidationModel.d.ts.map +0 -1
- package/dist/validate/buildValidationModel.js +0 -68
- package/dist/validate/buildValidationModel.js.map +0 -1
- package/dist/validate/context.d.ts +0 -108
- package/dist/validate/context.d.ts.map +0 -1
- package/dist/validate/context.js +0 -95
- package/dist/validate/context.js.map +0 -1
- package/dist/validate/contextFromGraph.d.ts +0 -68
- package/dist/validate/contextFromGraph.d.ts.map +0 -1
- package/dist/validate/contextFromGraph.js +0 -81
- package/dist/validate/contextFromGraph.js.map +0 -1
- package/dist/validate/harvestPullerTaskIds.d.ts +0 -60
- package/dist/validate/harvestPullerTaskIds.d.ts.map +0 -1
- package/dist/validate/harvestPullerTaskIds.js +0 -116
- package/dist/validate/harvestPullerTaskIds.js.map +0 -1
- package/dist/validate/model.d.ts +0 -14
- package/dist/validate/model.d.ts.map +0 -1
- package/dist/validate/model.js +0 -97
- package/dist/validate/model.js.map +0 -1
- package/dist/validate/registry.d.ts +0 -24
- package/dist/validate/registry.d.ts.map +0 -1
- package/dist/validate/registry.js +0 -101
- package/dist/validate/registry.js.map +0 -1
- package/dist/validate/retrieve.d.ts +0 -125
- package/dist/validate/retrieve.d.ts.map +0 -1
- package/dist/validate/retrieve.js +0 -272
- package/dist/validate/retrieve.js.map +0 -1
- package/dist/validate/rule.d.ts +0 -18
- package/dist/validate/rule.d.ts.map +0 -1
- package/dist/validate/rule.js +0 -2
- package/dist/validate/rule.js.map +0 -1
- package/dist/validate/ruleCatalog.d.ts +0 -22
- package/dist/validate/ruleCatalog.d.ts.map +0 -1
- package/dist/validate/ruleCatalog.js +0 -473
- package/dist/validate/ruleCatalog.js.map +0 -1
- package/dist/validate/rules/apiShape.d.ts +0 -51
- package/dist/validate/rules/apiShape.d.ts.map +0 -1
- package/dist/validate/rules/apiShape.js +0 -150
- package/dist/validate/rules/apiShape.js.map +0 -1
- package/dist/validate/rules/arguments.d.ts +0 -3
- package/dist/validate/rules/arguments.d.ts.map +0 -1
- package/dist/validate/rules/arguments.js +0 -301
- package/dist/validate/rules/arguments.js.map +0 -1
- package/dist/validate/rules/connectorIdentity.d.ts +0 -3
- package/dist/validate/rules/connectorIdentity.d.ts.map +0 -1
- package/dist/validate/rules/connectorIdentity.js +0 -347
- package/dist/validate/rules/connectorIdentity.js.map +0 -1
- package/dist/validate/rules/context.d.ts +0 -42
- package/dist/validate/rules/context.d.ts.map +0 -1
- package/dist/validate/rules/context.js +0 -92
- package/dist/validate/rules/context.js.map +0 -1
- package/dist/validate/rules/dependencyIntegrity.d.ts +0 -60
- package/dist/validate/rules/dependencyIntegrity.d.ts.map +0 -1
- package/dist/validate/rules/dependencyIntegrity.js +0 -296
- package/dist/validate/rules/dependencyIntegrity.js.map +0 -1
- package/dist/validate/rules/duplicates.d.ts +0 -27
- package/dist/validate/rules/duplicates.d.ts.map +0 -1
- package/dist/validate/rules/duplicates.js +0 -337
- package/dist/validate/rules/duplicates.js.map +0 -1
- package/dist/validate/rules/flow.d.ts +0 -57
- package/dist/validate/rules/flow.d.ts.map +0 -1
- package/dist/validate/rules/flow.js +0 -714
- package/dist/validate/rules/flow.js.map +0 -1
- package/dist/validate/rules/overwriteLoss.d.ts +0 -23
- package/dist/validate/rules/overwriteLoss.d.ts.map +0 -1
- package/dist/validate/rules/overwriteLoss.js +0 -40
- package/dist/validate/rules/overwriteLoss.js.map +0 -1
- package/dist/validate/rules/pullerKind.d.ts +0 -3
- package/dist/validate/rules/pullerKind.d.ts.map +0 -1
- package/dist/validate/rules/pullerKind.js +0 -92
- package/dist/validate/rules/pullerKind.js.map +0 -1
- package/dist/validate/rules/reference.d.ts +0 -44
- package/dist/validate/rules/reference.d.ts.map +0 -1
- package/dist/validate/rules/reference.js +0 -405
- package/dist/validate/rules/reference.js.map +0 -1
- package/dist/validate/rules/referenceKind.d.ts +0 -25
- package/dist/validate/rules/referenceKind.d.ts.map +0 -1
- package/dist/validate/rules/referenceKind.js +0 -235
- package/dist/validate/rules/referenceKind.js.map +0 -1
- package/dist/validate/rules/retiredType.d.ts +0 -149
- package/dist/validate/rules/retiredType.d.ts.map +0 -1
- package/dist/validate/rules/retiredType.js +0 -235
- package/dist/validate/rules/retiredType.js.map +0 -1
- package/dist/validate/rules/stepData.d.ts +0 -122
- package/dist/validate/rules/stepData.d.ts.map +0 -1
- package/dist/validate/rules/stepData.js +0 -249
- package/dist/validate/rules/stepData.js.map +0 -1
- package/dist/validate/rules/stepIterations.d.ts +0 -49
- package/dist/validate/rules/stepIterations.d.ts.map +0 -1
- package/dist/validate/rules/stepIterations.js +0 -156
- package/dist/validate/rules/stepIterations.js.map +0 -1
- package/dist/validate/rules/tables.d.ts +0 -8
- package/dist/validate/rules/tables.d.ts.map +0 -1
- package/dist/validate/rules/tables.js +0 -116
- package/dist/validate/rules/tables.js.map +0 -1
- package/dist/validate/rules/variableDrift.d.ts +0 -63
- package/dist/validate/rules/variableDrift.d.ts.map +0 -1
- package/dist/validate/rules/variableDrift.js +0 -132
- package/dist/validate/rules/variableDrift.js.map +0 -1
- package/dist/validate/rules/variables.d.ts +0 -12
- package/dist/validate/rules/variables.d.ts.map +0 -1
- package/dist/validate/rules/variables.js +0 -207
- package/dist/validate/rules/variables.js.map +0 -1
- package/dist/validate/sourceLocator.d.ts +0 -32
- package/dist/validate/sourceLocator.d.ts.map +0 -1
- package/dist/validate/sourceLocator.js +0 -166
- package/dist/validate/sourceLocator.js.map +0 -1
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import { isDynamic, isRefEmpty, makeTokenResolver } from './reference.js';
|
|
2
|
-
function arr(cnf, key) {
|
|
3
|
-
const value = cnf?.[key];
|
|
4
|
-
return Array.isArray(value) ? value : [];
|
|
5
|
-
}
|
|
6
|
-
/** A usable, statically-known identifier, or undefined. */
|
|
7
|
-
function idish(raw, resolve) {
|
|
8
|
-
if (raw === null || raw === undefined || isRefEmpty(raw) || isDynamic(raw))
|
|
9
|
-
return undefined;
|
|
10
|
-
if (typeof raw !== 'string' && typeof raw !== 'number')
|
|
11
|
-
return undefined;
|
|
12
|
-
const resolved = resolve(String(raw));
|
|
13
|
-
return resolved === '' ? undefined : resolved;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* DEP-1 — a cycle in the dependency graph.
|
|
17
|
-
*
|
|
18
|
-
* **Self-dependencies are excluded, and that is the whole of the measurement.** 51 cycles exist in the
|
|
19
|
-
* corpus and 45 of them are `A -> A`: a task depending on itself is a SELF-JOIN, the ordinary way a
|
|
20
|
-
* parent/child hierarchy is resolved within one task — `LEFT JOIN variants root_v ON root_v.id =
|
|
21
|
-
* v.packsize_root_id`. Reporting those would make the rule wrong about 88% of what it found.
|
|
22
|
-
*
|
|
23
|
-
* What remains is 8 cycles across 7 projects, and they are real. `hapas` has *Sales Order Payments
|
|
24
|
-
* depends on Sales Orders* and *Sales Orders depends on Sales Order Payments*, both `nullable: false`
|
|
25
|
-
* with `constraints: [synced]` — a mutual readiness requirement where neither side can be satisfied
|
|
26
|
-
* first.
|
|
27
|
-
*
|
|
28
|
-
* The finding states the CYCLE and stops there. Whether the worker deadlocks, retries or breaks the
|
|
29
|
-
* tie is runtime behaviour this rule does not know, and asserting it would be the NFR-1 violation the
|
|
30
|
-
* two-surface architecture exists to prevent. `high` rather than `critical` for the same reason.
|
|
31
|
-
*
|
|
32
|
-
* Iterative rather than recursive: a corpus dependency graph is small, but the guard costs nothing and
|
|
33
|
-
* a stack overflow inside a rule is swallowed by `runValidation` — it would disable the rule
|
|
34
|
-
* SILENTLY, which is the worst way for this to fail.
|
|
35
|
-
*/
|
|
36
|
-
export const dependencyCycleRule = {
|
|
37
|
-
id: 'DEP',
|
|
38
|
-
family: 'DEP',
|
|
39
|
-
run(ctx) {
|
|
40
|
-
const cnf = ctx.tokenForm;
|
|
41
|
-
if (!cnf || typeof cnf !== 'object')
|
|
42
|
-
return [];
|
|
43
|
-
const resolve = makeTokenResolver(ctx.variables);
|
|
44
|
-
/** from -> to, deduped. Self-edges are never added: they are self-joins, not cycles. */
|
|
45
|
-
const edges = new Map();
|
|
46
|
-
/**
|
|
47
|
-
* `from→to` -> the id of the DEPENDENCY that declared it, and the file it lives in.
|
|
48
|
-
*
|
|
49
|
-
* Kept because a finding has to name something the graph can place. Reporting the cycle against a
|
|
50
|
-
* TASK id under `parentKey: 'dependencies'` cannot resolve — a task is not a dependency — so the
|
|
51
|
-
* lookup fell through to `main.yaml` and sent the developer to a file containing neither edge.
|
|
52
|
-
* Found by the Epic 1 review, by probing the panel rather than by reading the rule.
|
|
53
|
-
*/
|
|
54
|
-
const declaredBy = new Map();
|
|
55
|
-
/**
|
|
56
|
-
* resolved task id -> the TOKEN form first seen for it.
|
|
57
|
-
*
|
|
58
|
-
* Detection has to compare RESOLVED ids, because two token names can alias to one task. Display
|
|
59
|
-
* and attribution have to use the TOKEN form, because that is what the file contains and what the
|
|
60
|
-
* component→source-file map is keyed by. Keeping both is the only way to have each.
|
|
61
|
-
*/
|
|
62
|
-
const tokenFor = new Map();
|
|
63
|
-
for (const dependency of arr(cnf, 'dependencies')) {
|
|
64
|
-
const rawFrom = dependency?.objectId;
|
|
65
|
-
const rawTo = dependency?.dependedOn;
|
|
66
|
-
const from = idish(rawFrom, resolve);
|
|
67
|
-
const to = idish(rawTo, resolve);
|
|
68
|
-
if (!from || !to || from === to)
|
|
69
|
-
continue;
|
|
70
|
-
if (!tokenFor.has(from))
|
|
71
|
-
tokenFor.set(from, String(rawFrom));
|
|
72
|
-
if (!tokenFor.has(to))
|
|
73
|
-
tokenFor.set(to, String(rawTo));
|
|
74
|
-
const targets = edges.get(from) ?? new Set();
|
|
75
|
-
targets.add(to);
|
|
76
|
-
edges.set(from, targets);
|
|
77
|
-
const edgeKey = `${from}→${to}`;
|
|
78
|
-
// The dependency's own id in TOKEN form. Emitting the resolved GUID made attribution fail on
|
|
79
|
-
// every project that drives ids from variables — which is nearly all of them: the component→file
|
|
80
|
-
// map is keyed by the id as AUTHORED, so a resolved id never matched and the finding fell through
|
|
81
|
-
// to main.yaml. Found by the Epic 1 review, in the CLI report rather than in a test.
|
|
82
|
-
const declaredId = dependency?.id;
|
|
83
|
-
if (declaredId !== undefined &&
|
|
84
|
-
declaredId !== null &&
|
|
85
|
-
!isDynamic(declaredId) &&
|
|
86
|
-
!isRefEmpty(declaredId) &&
|
|
87
|
-
!declaredBy.has(edgeKey)) {
|
|
88
|
-
declaredBy.set(edgeKey, { id: String(declaredId) });
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (edges.size === 0)
|
|
92
|
-
return [];
|
|
93
|
-
// Deterministic traversal order, so the same project always yields the same cycle in the same
|
|
94
|
-
// rotation. A finding that changes shape between runs looks like a new problem each time.
|
|
95
|
-
const roots = [...edges.keys()].sort();
|
|
96
|
-
// GREY = on the current path, BLACK = fully explored. Absent = not yet visited.
|
|
97
|
-
const GREY = 1;
|
|
98
|
-
const BLACK = 2;
|
|
99
|
-
const colour = new Map();
|
|
100
|
-
/** Cycles as a canonical key, so one cycle reached from two roots is reported once. */
|
|
101
|
-
const cycles = new Map();
|
|
102
|
-
for (const root of roots) {
|
|
103
|
-
if (colour.get(root) !== undefined)
|
|
104
|
-
continue;
|
|
105
|
-
// An explicit stack of (node, iterator over its targets), which is the iterative equivalent of
|
|
106
|
-
// colouring on entry and clearing on exit.
|
|
107
|
-
const stack = [
|
|
108
|
-
{ node: root, next: [...(edges.get(root) ?? [])].sort(), at: 0 },
|
|
109
|
-
];
|
|
110
|
-
colour.set(root, GREY);
|
|
111
|
-
const path = [root];
|
|
112
|
-
while (stack.length > 0) {
|
|
113
|
-
const top = stack[stack.length - 1];
|
|
114
|
-
if (top.at >= top.next.length) {
|
|
115
|
-
colour.set(top.node, BLACK);
|
|
116
|
-
stack.pop();
|
|
117
|
-
path.pop();
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
const target = top.next[top.at];
|
|
121
|
-
top.at += 1;
|
|
122
|
-
if (colour.get(target) === GREY) {
|
|
123
|
-
// Back edge: the cycle is the path from `target` onwards.
|
|
124
|
-
const loop = path.slice(path.indexOf(target));
|
|
125
|
-
// Canonical: rotate so the smallest id leads, so the same cycle found from a different
|
|
126
|
-
// entry point produces the same key and is not reported twice.
|
|
127
|
-
const smallest = loop.indexOf([...loop].sort()[0]);
|
|
128
|
-
const rotated = [...loop.slice(smallest), ...loop.slice(0, smallest)];
|
|
129
|
-
cycles.set(rotated.join('→'), rotated);
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
|
-
if (colour.get(target) === BLACK)
|
|
133
|
-
continue;
|
|
134
|
-
colour.set(target, GREY);
|
|
135
|
-
path.push(target);
|
|
136
|
-
stack.push({
|
|
137
|
-
node: target,
|
|
138
|
-
next: [...(edges.get(target) ?? [])].sort(),
|
|
139
|
-
at: 0,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
const issues = [];
|
|
144
|
-
for (const loop of [...cycles.keys()]
|
|
145
|
-
.sort()
|
|
146
|
-
.map((key) => cycles.get(key))) {
|
|
147
|
-
// Token form in the message too, because a developer reading it has the FILE open and the file
|
|
148
|
-
// says `**SapoProductVariant**`, not a GUID.
|
|
149
|
-
const named = loop.map((id) => tokenFor.get(id) ?? id);
|
|
150
|
-
const chain = [...named, named[0]].join(' → ');
|
|
151
|
-
// The dependency that CLOSES the loop — the last edge back to the start. It is both the
|
|
152
|
-
// actionable one (deleting it breaks the cycle) and, unlike a task id, a `dependencies`
|
|
153
|
-
// component the graph can place in a file.
|
|
154
|
-
//
|
|
155
|
-
// The first version named `loop[0]`, a TASK id, under `parentKey: 'dependencies'`. A task is not
|
|
156
|
-
// a dependency, so the lookup never matched and every DEP-1 finding fell through to the
|
|
157
|
-
// project's `main.yaml` — sending the developer to a file containing neither edge. Found by the
|
|
158
|
-
// Epic 1 review by probing the panel, not by reading the rule.
|
|
159
|
-
const closing = declaredBy.get(`${loop[loop.length - 1]}→${loop[0]}`);
|
|
160
|
-
issues.push({
|
|
161
|
-
ruleId: 'DEP-1',
|
|
162
|
-
family: 'DEP',
|
|
163
|
-
// Not `critical`: the runtime's response to a cycle is not something this rule knows.
|
|
164
|
-
severity: 'high',
|
|
165
|
-
parentKey: 'dependencies',
|
|
166
|
-
// Falling back to the task id keeps a finding for an id-less dependency rather than dropping
|
|
167
|
-
// it: it lands on main.yaml, which is worse than exact and better than silent.
|
|
168
|
-
idOrKey: closing?.id ?? named[0],
|
|
169
|
-
message: `these tasks depend on each other in a cycle: ${chain}`,
|
|
170
|
-
why: 'each task in the chain declares that it depends on the next, and the last depends back on ' +
|
|
171
|
-
'the first, so there is no order in which they can all be satisfied. A task depending on ' +
|
|
172
|
-
'ITSELF is excluded — that is an ordinary self-join for a parent/child hierarchy — and this ' +
|
|
173
|
-
'is a genuine loop between distinct tasks.',
|
|
174
|
-
locateValue: closing?.id ?? named[0],
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
return issues;
|
|
178
|
-
},
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* COL-1 — a dependency's `data.keys` names a column the table does not declare.
|
|
182
|
-
*
|
|
183
|
-
* `keys: { customer_id: id }` on a dependency from Sales Orders to Customers means "join my
|
|
184
|
-
* `customer_id` to their `id`". Both sides are column names on the respective tasks' tables, reachable
|
|
185
|
-
* through `objectAssociations[taskId].table.id` → `tables[].columns`.
|
|
186
|
-
*
|
|
187
|
-
* Two exclusions, both from measurement, and each one is the difference between a usable rule and an
|
|
188
|
-
* unusable one:
|
|
189
|
-
*
|
|
190
|
-
* - **`__`-prefixed names are never checked.** `__id`, `__source_id`, `__destination_id` are managed
|
|
191
|
-
* by the worker and are not declared in `columns`: of 119,575 authored column keys in the corpus,
|
|
192
|
-
* exactly 2 begin with `__`, against thousands of references to them. Without this exclusion 17 of
|
|
193
|
-
* 25 findings were these, all false.
|
|
194
|
-
* - **An unresolvable chain reports nothing.** When the task has no association, or the association's
|
|
195
|
-
* table does not exist, or the table declares no columns, this rule is silent — 18 of 208 key
|
|
196
|
-
* references are in that state, and every one of them is already `REF-3`/`REF-5`'s finding. Two
|
|
197
|
-
* rules reporting one defect makes the panel look twice as bad as the project is.
|
|
198
|
-
*
|
|
199
|
-
* What survives: 12 of 190 resolvable references, across 5 projects.
|
|
200
|
-
*/
|
|
201
|
-
export const dependencyColumnRule = {
|
|
202
|
-
id: 'COL',
|
|
203
|
-
family: 'COL',
|
|
204
|
-
run(ctx) {
|
|
205
|
-
const cnf = ctx.tokenForm;
|
|
206
|
-
if (!cnf || typeof cnf !== 'object')
|
|
207
|
-
return [];
|
|
208
|
-
const resolve = makeTokenResolver(ctx.variables);
|
|
209
|
-
const associations = cnf.objectAssociations &&
|
|
210
|
-
typeof cnf.objectAssociations === 'object' &&
|
|
211
|
-
!Array.isArray(cnf.objectAssociations)
|
|
212
|
-
? cnf.objectAssociations
|
|
213
|
-
: {};
|
|
214
|
-
// Resolved association key -> its entry, and resolved table id -> its declared column names.
|
|
215
|
-
const associationOf = new Map();
|
|
216
|
-
for (const [key, entry] of Object.entries(associations)) {
|
|
217
|
-
const resolved = idish(key, resolve);
|
|
218
|
-
if (resolved && !associationOf.has(resolved))
|
|
219
|
-
associationOf.set(resolved, entry);
|
|
220
|
-
}
|
|
221
|
-
const columnsOfTable = new Map();
|
|
222
|
-
for (const table of arr(cnf, 'tables')) {
|
|
223
|
-
const id = idish(table?.id ?? table?.key, resolve);
|
|
224
|
-
if (!id)
|
|
225
|
-
continue;
|
|
226
|
-
const columns = table?.columns;
|
|
227
|
-
if (!columns || typeof columns !== 'object' || Array.isArray(columns))
|
|
228
|
-
continue;
|
|
229
|
-
if (columnsOfTable.has(id))
|
|
230
|
-
continue;
|
|
231
|
-
columnsOfTable.set(id, new Set(Object.keys(columns)));
|
|
232
|
-
}
|
|
233
|
-
/** The declared columns of a task's backing table, or undefined when the chain breaks. */
|
|
234
|
-
const columnsOfTask = (taskId) => {
|
|
235
|
-
const tableId = idish(associationOf.get(taskId)?.table?.id, resolve);
|
|
236
|
-
if (!tableId)
|
|
237
|
-
return undefined;
|
|
238
|
-
return columnsOfTable.get(tableId);
|
|
239
|
-
};
|
|
240
|
-
const issues = [];
|
|
241
|
-
for (const dependency of arr(cnf, 'dependencies')) {
|
|
242
|
-
const keys = dependency?.data?.keys;
|
|
243
|
-
if (!keys || typeof keys !== 'object' || Array.isArray(keys))
|
|
244
|
-
continue;
|
|
245
|
-
const from = idish(dependency?.objectId, resolve);
|
|
246
|
-
const to = idish(dependency?.dependedOn, resolve);
|
|
247
|
-
if (!from || !to)
|
|
248
|
-
continue;
|
|
249
|
-
const fromColumns = columnsOfTask(from);
|
|
250
|
-
const toColumns = columnsOfTask(to);
|
|
251
|
-
if (!fromColumns || !toColumns)
|
|
252
|
-
continue;
|
|
253
|
-
// TOKEN form, for the same reason as DEP-1: the component→source-file map is keyed by the id as
|
|
254
|
-
// authored, so a resolved GUID never matches and the finding lands on main.yaml.
|
|
255
|
-
const rawDependencyId = dependency?.id;
|
|
256
|
-
const dependencyId = rawDependencyId !== undefined &&
|
|
257
|
-
rawDependencyId !== null &&
|
|
258
|
-
!isDynamic(rawDependencyId) &&
|
|
259
|
-
!isRefEmpty(rawDependencyId)
|
|
260
|
-
? String(rawDependencyId)
|
|
261
|
-
: String(dependency?.objectId ?? from);
|
|
262
|
-
const report = (column, side, available) => {
|
|
263
|
-
issues.push({
|
|
264
|
-
ruleId: 'COL-1',
|
|
265
|
-
family: 'COL',
|
|
266
|
-
// The join silently matches nothing, so the dependency never resolves — but the table may
|
|
267
|
-
// simply be declared elsewhere in a way this cannot see, hence `high` and not `critical`.
|
|
268
|
-
severity: 'high',
|
|
269
|
-
parentKey: 'dependencies',
|
|
270
|
-
idOrKey: dependencyId,
|
|
271
|
-
message: `the join key "${column}" is not a column of the ${side} task's table ` +
|
|
272
|
-
`(it declares ${available.size} column(s))`,
|
|
273
|
-
why: "a dependency joins on named columns of the two tasks' backing tables. A name that is " +
|
|
274
|
-
'not declared matches nothing, so the dependency never resolves and the depending task ' +
|
|
275
|
-
'is held back with no error to read. Worker-managed `__`-prefixed columns are not ' +
|
|
276
|
-
'checked — they are never declared.',
|
|
277
|
-
locateValue: column,
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
for (const [left, right] of Object.entries(keys)) {
|
|
281
|
-
if (!left.startsWith('__') && !fromColumns.has(left)) {
|
|
282
|
-
report(left, 'depending', fromColumns);
|
|
283
|
-
}
|
|
284
|
-
if (typeof right === 'string' &&
|
|
285
|
-
right &&
|
|
286
|
-
!right.startsWith('__') &&
|
|
287
|
-
!isDynamic(right) &&
|
|
288
|
-
!toColumns.has(right)) {
|
|
289
|
-
report(right, 'depended-on', toColumns);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return issues;
|
|
294
|
-
},
|
|
295
|
-
};
|
|
296
|
-
//# sourceMappingURL=dependencyIntegrity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyIntegrity.js","sourceRoot":"","sources":["../../../src/validate/rules/dependencyIntegrity.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,SAAS,GAAG,CAAC,GAAY,EAAE,GAAW;IACpC,MAAM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C,CAAC;gBACD,IACE,OAAO,KAAK,KAAK,QAAQ;oBACzB,KAAK;oBACL,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;oBACvB,CAAC,SAAS,CAAC,KAAK,CAAC;oBACjB,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,EACrB,CAAC;oBACD,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;gBAC1C,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { ValidationRule } from '../rule.js';
|
|
2
|
-
/**
|
|
3
|
-
* Duplicate-identifier rule (DUP family). Detects duplicates that SURVIVE the merge —
|
|
4
|
-
* top-level identities that collide only after variable substitution (DUP-1), and duplicates
|
|
5
|
-
* within a single component's nested arrays: duplicate step keys in a workflow
|
|
6
|
-
* (DUP-3, CRITICAL — nondeterministic routing) and duplicate ids among an object's
|
|
7
|
-
* metrics or a task's transformations/validations (DUP-4, MEDIUM — last-wins overwrite).
|
|
8
|
-
*
|
|
9
|
-
* NOTE: top-level duplicates of the SAME token id (DUP-2) collapse during the merge
|
|
10
|
-
* (last-wins) and are therefore not present in the token-form — they are surfaced by the
|
|
11
|
-
* merge-integrity report instead, and deferred here. DUP-1 covers the case that does NOT
|
|
12
|
-
* collapse, because the keys differ and only their resolved values coincide.
|
|
13
|
-
*
|
|
14
|
-
* Two known limitations (documented, by design):
|
|
15
|
-
* - If a component is CUSTOMIZED across inheritance files, the merge deep-merges its
|
|
16
|
-
* nested arrays too (last-wins), so nested duplicates authored in one file collapse
|
|
17
|
-
* before this rule sees them — the merge-integrity report owns that silent-collapse case.
|
|
18
|
-
* - DUP-3 checks each phase array (before/main/after) in isolation, matching how the
|
|
19
|
-
* worker fetches step lists; a key reused ACROSS phases is flagged separately, as DUP-5.
|
|
20
|
-
* ⛔ This line claimed the cross-phase case *"is not flagged (would risk a false positive
|
|
21
|
-
* under unconfirmed cross-phase `next` semantics)"* until 2026-08-12, and it was false when
|
|
22
|
-
* checked: `beforePushSteps:[{key:'X'}], pushSteps:[{key:'X'}]` yields
|
|
23
|
-
* `DUP-5 high step key "X" appears in multiple step-lists (beforePushSteps, pushSteps)`.
|
|
24
|
-
* A reader trusting it would add a second rule for a case already covered.
|
|
25
|
-
*/
|
|
26
|
-
export declare const duplicatesRule: ValidationRule;
|
|
27
|
-
//# sourceMappingURL=duplicates.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"duplicates.d.ts","sourceRoot":"","sources":["../../../src/validate/rules/duplicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAgNjD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,cAAc,EAAE,cAoM5B,CAAC"}
|