@antelopejs/dms 0.20.7 → 0.20.8-next.916.gd319141
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/bin/control/commands-verify.mjs +8 -49
- package/bin/control/options.mjs +0 -1
- package/bin/control/run-state.mjs +1 -1
- package/bin/control/timing.mjs +1 -16
- package/bin/control/timing.test.mjs +0 -11
- package/bin/control/verify/decode.mjs +4 -144
- package/bin/control/verify/decode.test.mjs +1 -149
- package/bin/control/verify/formal.mjs +22 -218
- package/bin/control/verify/formal.test.mjs +60 -117
- package/bin/control/verify/map.test.mjs +0 -73
- package/bin/control/verify/types.mjs +4 -18
- package/bin/dms-control.mjs +0 -2
- package/dist/implementations/dms/page/controller.d.ts +2 -1
- package/dist/implementations/dms/page/controller.js.map +1 -1
- package/dist/implementations/dms-builder/engine/connection-access-config.js +2 -2
- package/dist/implementations/dms-builder/engine/connection-targets.js.map +1 -1
- package/dist/implementations/dms-builder/engine/database-access.d.ts +1 -1
- package/dist/implementations/dms-builder/engine/database-access.js +2 -2
- package/dist/implementations/dms-builder/engine/database-check-input.d.ts +3 -2
- package/dist/implementations/dms-builder/engine/database-check-input.js.map +1 -1
- package/dist/implementations/dms-builder/engine/database-check.js +2 -2
- package/dist/implementations/dms-builder/engine/database-check.js.map +1 -1
- package/dist/implementations/dms-builder/engine/probe-answer.d.ts +44 -1
- package/dist/implementations/dms-builder/engine/probe-answer.js +2 -5
- package/dist/implementations/dms-builder/engine/probe-answer.js.map +1 -1
- package/dist/mockup/files.d.ts +1 -1
- package/dist/mockup/files.js +2 -2
- package/dist/pages/settings/users/roles.js.map +1 -1
- package/dist/store/internal/frontend/frontend-ready.d.ts +2 -1
- package/dist/store/internal/frontend/frontend-ready.js.map +1 -1
- package/dist/store/operations.js +4 -4
- package/dist/store/operations.js.map +1 -1
- package/dist/utils/upload-constraints.d.ts +1 -1
- package/dist/utils/upload-constraints.js +2 -2
- package/dist/utils/upload-constraints.js.map +1 -1
- package/dist/validation/issue-message.d.ts +1 -1
- package/dist/validation/issue-message.js +3 -3
- package/dist/validation/issue-message.js.map +1 -1
- package/frontend-vue/layers/dms-core/app/utils/formatter.ts +1 -0
- package/frontend-vue/layers/dms-layout/app/build/composables/navigation/useVisitNavBadges.ts +11 -14
- package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityFormat.ts +5 -5
- package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +7 -2
- package/frontend-vue/layers/dms-layout/app/build/utils/notificationPayload.ts +9 -5
- package/frontend-vue/layers/dms-layout/app/composables/page/useModuleHistory.ts +4 -1
- package/frontend-vue/layers/dms-layout/app/composables/page/useModulesListing.ts +7 -17
- package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +5 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupCatalog.ts +4 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +18 -16
- package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/build/composables/containers/drawerSize.ts +4 -4
- package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationBadges.ts +2 -5
- package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldComponentProps.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/layout/sidePanelState.ts +5 -2
- package/frontend-vue/layers/dms-ui/app/build/composables/period/periodQuery.ts +6 -3
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionValues.ts +13 -13
- package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/writeError.ts +2 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +1 -1
- package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +26 -18
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupCatalog.ts +7 -2
- package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +2 -1
- package/frontend-vue/layers/dms-ui/app/components/chart/ApexChartHost.vue +2 -0
- package/frontend-vue/layers/dms-ui/app/composables/useExportJob.ts +2 -2
- package/package.json +32 -30
- package/skills/dms-project/scripts/dms-dev.sh +0 -0
- package/bin/control/verify/behaviour.mjs +0 -183
- package/bin/control/verify/behaviour.test.mjs +0 -472
- package/bin/control/verify/emit.mjs +0 -539
- package/bin/control/verify/judgement.mjs +0 -101
- package/bin/control/verify/verdict.mjs +0 -327
- package/frontend-vue/scripts/probes/capture-frontend-probe.cjs +0 -23
- package/frontend-vue/scripts/probes/frontend-behavior.cjs +0 -606
- package/frontend-vue/scripts/probes/frontend-legacy.cjs +0 -620
- package/frontend-vue/scripts/probes/frontend-probe-controls.cjs +0 -322
- package/frontend-vue/scripts/prove-comment-emit.mjs +0 -171
- package/frontend-vue/scripts/prove-component-registration.mjs +0 -259
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
import { spawnSync } from "node:child_process";
|
|
2
|
-
import {
|
|
2
|
+
import { mkdirSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { join, matchesGlob, relative } from "node:path";
|
|
4
|
-
import { behaviourChange, inWorktree } from "./behaviour.mjs";
|
|
5
|
-
import { decodeFormalResult } from "./decode.mjs";
|
|
6
4
|
|
|
7
5
|
const OUTPUT_LIMIT = 64 * 1024 * 1024;
|
|
8
6
|
|
|
9
|
-
/**
|
|
10
|
-
* @param {import("./types.mjs").FormalCheck} check The check
|
|
11
|
-
* @param {string[]} changed Repository paths
|
|
12
|
-
* @returns {boolean} Whether a changed path matches the check's own files
|
|
13
|
-
*/
|
|
14
|
-
function changesCheckFiles(check, changed) {
|
|
15
|
-
return changed.some((file) =>
|
|
16
|
-
(check.files ?? []).some((glob) => matchesGlob(file, glob)),
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
7
|
/**
|
|
21
8
|
* The formal checks whose covered files or own `files` a set of changed files touches.
|
|
22
9
|
*
|
|
@@ -25,10 +12,12 @@ function changesCheckFiles(check, changed) {
|
|
|
25
12
|
* @returns {import("./types.mjs").FormalCheck[]} The checks
|
|
26
13
|
*/
|
|
27
14
|
export function touchedFormalChecks(skill, changed) {
|
|
28
|
-
return skill.config.formal.filter(
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
return skill.config.formal.filter((check) =>
|
|
16
|
+
changed.some(
|
|
17
|
+
(file) =>
|
|
18
|
+
check.covers.includes(file) ||
|
|
19
|
+
(check.files ?? []).some((glob) => matchesGlob(file, glob)),
|
|
20
|
+
),
|
|
32
21
|
);
|
|
33
22
|
}
|
|
34
23
|
|
|
@@ -49,225 +38,40 @@ function violatedRules(check, exitCode, output) {
|
|
|
49
38
|
return exitCode === 0 ? [] : ["property"];
|
|
50
39
|
}
|
|
51
40
|
|
|
52
|
-
/**
|
|
53
|
-
* @param {string[]} command The program and its arguments
|
|
54
|
-
* @param {string} cwd Where to run it
|
|
55
|
-
* @returns {import("node:child_process").SpawnSyncReturns<string>} The run
|
|
56
|
-
*/
|
|
57
|
-
function runCommand(command, cwd) {
|
|
58
|
-
const [program, ...args] = command;
|
|
59
|
-
return spawnSync(program, args, {
|
|
60
|
-
cwd,
|
|
61
|
-
encoding: "utf8",
|
|
62
|
-
maxBuffer: OUTPUT_LIMIT,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @param {string} folder The evidence folder
|
|
68
|
-
* @param {string} prefix `base-` for the base run, else empty
|
|
69
|
-
* @param {string[]} command The command that ran
|
|
70
|
-
* @param {import("node:child_process").SpawnSyncReturns<string>} run The run
|
|
71
|
-
*/
|
|
72
|
-
function writeRun(folder, prefix, command, run) {
|
|
73
|
-
writeFileSync(join(folder, `${prefix}command.txt`), `${command.join(" ")}\n`);
|
|
74
|
-
writeFileSync(join(folder, `${prefix}stdout.txt`), run.stdout ?? "");
|
|
75
|
-
writeFileSync(
|
|
76
|
-
join(folder, `${prefix}stderr.txt`),
|
|
77
|
-
`${run.stderr ?? ""}${run.error ? `\n${run.error.message}\n` : ""}`,
|
|
78
|
-
);
|
|
79
|
-
writeFileSync(join(folder, `${prefix}exit-code.txt`), `${run.status}\n`);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @param {import("./types.mjs").FormalCheck} check The check
|
|
84
|
-
* @param {string} output What the run printed
|
|
85
|
-
* @returns {string[]} The passing rules
|
|
86
|
-
*/
|
|
87
|
-
function passingRules(check, output) {
|
|
88
|
-
return check.passing
|
|
89
|
-
? [...new Set([...output.matchAll(check.passing)].map((match) => match[1]))]
|
|
90
|
-
: [];
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @param {import("./types.mjs").FormalCheck} check The check
|
|
95
|
-
* @param {import("node:child_process").SpawnSyncReturns<string>} run The run
|
|
96
|
-
* @returns {import("./types.mjs").Rules} The exit code and rules
|
|
97
|
-
*/
|
|
98
|
-
function rulesOf(check, run) {
|
|
99
|
-
return {
|
|
100
|
-
exitCode: run.status,
|
|
101
|
-
violated: violatedRules(check, run.status, run.stdout ?? ""),
|
|
102
|
-
passing: passingRules(check, run.stdout ?? ""),
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @param {import("./skill.mjs").Skill} skill The skill
|
|
108
|
-
* @param {import("./types.mjs").FormalCheck} check The check
|
|
109
|
-
* @param {string} baseSha The base commit
|
|
110
|
-
* @param {string} folder The evidence folder
|
|
111
|
-
* @returns {import("./types.mjs").Rules} The rules at the base
|
|
112
|
-
*/
|
|
113
|
-
function baseRules(skill, check, baseSha, folder) {
|
|
114
|
-
const command = check.baseCommand ?? check.command;
|
|
115
|
-
const run = inWorktree(skill.repo, baseSha, (dir) =>
|
|
116
|
-
runCommand(command, dir),
|
|
117
|
-
);
|
|
118
|
-
writeRun(folder, "base-", command, run);
|
|
119
|
-
return rulesOf(check, run);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @param {import("./skill.mjs").Skill} skill The skill
|
|
124
|
-
* @param {import("./types.mjs").FormalCheck} check The check
|
|
125
|
-
* @param {{ baseSha: string, headSha: string, changed: string[] }} diff The diff
|
|
126
|
-
* @param {string} folder The evidence folder
|
|
127
|
-
* @param {import("./types.mjs").Rules} head The rules at HEAD
|
|
128
|
-
* @returns {Pick<import("./types.mjs").FormalResult, "behaviour" | "checkChanged" | "base" | "fixed" | "dropped" | "missing">} The gate fields
|
|
129
|
-
*/
|
|
130
|
-
function gateFields(skill, check, diff, folder, head) {
|
|
131
|
-
const behaviour = behaviourChange(skill, check, diff);
|
|
132
|
-
const checkChanged = changesCheckFiles(check, diff.changed);
|
|
133
|
-
if (!behaviour.changed && !checkChanged)
|
|
134
|
-
return {
|
|
135
|
-
behaviour,
|
|
136
|
-
checkChanged,
|
|
137
|
-
base: null,
|
|
138
|
-
fixed: [],
|
|
139
|
-
dropped: [],
|
|
140
|
-
missing: [],
|
|
141
|
-
};
|
|
142
|
-
const base = baseRules(skill, check, diff.baseSha, folder);
|
|
143
|
-
const atHead = new Set([...head.violated, ...head.passing]);
|
|
144
|
-
const passingNow = base.violated.filter(
|
|
145
|
-
(rule) => head.passing.includes(rule) && !head.violated.includes(rule),
|
|
146
|
-
);
|
|
147
|
-
return {
|
|
148
|
-
behaviour,
|
|
149
|
-
checkChanged,
|
|
150
|
-
base,
|
|
151
|
-
fixed: behaviour.changed ? passingNow : [],
|
|
152
|
-
dropped: behaviour.changed ? [] : passingNow,
|
|
153
|
-
missing: base.violated.filter((rule) => !atHead.has(rule)),
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
|
|
157
41
|
/**
|
|
158
42
|
* Runs one formal check from the repository root and writes its command,
|
|
159
43
|
* output, exit code and violated rules under `evidence/formal/<name>/`.
|
|
160
|
-
* When the diff touches the check (`diff` given), it also records whether
|
|
161
|
-
* the diff changed the behaviour of the covered code. When it did, or when
|
|
162
|
-
* the diff changed the check's own `files`, it runs the check on the base:
|
|
163
|
-
* `fixed` lists the rules the base broke that HEAD reports passing when the
|
|
164
|
-
* covered behaviour changed, `dropped` the same rules when it did not (only
|
|
165
|
-
* the edit to the check removed them), and `missing` the rules the base
|
|
166
|
-
* broke that HEAD reports neither failing nor passing.
|
|
167
44
|
*
|
|
168
45
|
* @param {import("./skill.mjs").Skill} skill The skill
|
|
169
46
|
* @param {import("../run-state.mjs").RunState} state The run
|
|
170
47
|
* @param {import("./types.mjs").FormalCheck} check The check
|
|
171
|
-
* @param {{ baseSha: string, headSha: string, changed: string[] } | null} diff The diff's base, head and changed files, for a check that covers it
|
|
172
48
|
* @returns {import("./types.mjs").FormalResult} The result
|
|
173
49
|
*/
|
|
174
|
-
export function runFormalCheck(skill, state, check
|
|
50
|
+
export function runFormalCheck(skill, state, check) {
|
|
175
51
|
const folder = join(state.evidence, "formal", check.name);
|
|
176
52
|
mkdirSync(folder, { recursive: true });
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
|
|
53
|
+
const [program, ...args] = check.command;
|
|
54
|
+
const run = spawnSync(program, args, {
|
|
55
|
+
cwd: skill.repo,
|
|
56
|
+
encoding: "utf8",
|
|
57
|
+
maxBuffer: OUTPUT_LIMIT,
|
|
58
|
+
});
|
|
59
|
+
writeFileSync(join(folder, "command.txt"), `${check.command.join(" ")}\n`);
|
|
60
|
+
writeFileSync(join(folder, "stdout.txt"), run.stdout ?? "");
|
|
61
|
+
writeFileSync(
|
|
62
|
+
join(folder, "stderr.txt"),
|
|
63
|
+
`${run.stderr ?? ""}${run.error ? `\n${run.error.message}\n` : ""}`,
|
|
64
|
+
);
|
|
65
|
+
writeFileSync(join(folder, "exit-code.txt"), `${run.status}\n`);
|
|
180
66
|
const result = {
|
|
181
67
|
name: check.name,
|
|
182
68
|
exitCode: run.status,
|
|
183
|
-
violated:
|
|
184
|
-
passing: head.passing,
|
|
69
|
+
violated: violatedRules(check, run.status, run.stdout ?? ""),
|
|
185
70
|
folder: relative(state.evidence, folder),
|
|
186
71
|
};
|
|
187
|
-
if (diff) {
|
|
188
|
-
const commits = { baseSha: diff.baseSha, headSha: diff.headSha };
|
|
189
|
-
Object.assign(
|
|
190
|
-
result,
|
|
191
|
-
{ commits },
|
|
192
|
-
gateFields(skill, check, diff, folder, head),
|
|
193
|
-
);
|
|
194
|
-
}
|
|
195
72
|
writeFileSync(
|
|
196
73
|
join(folder, "result.json"),
|
|
197
74
|
`${JSON.stringify(result, null, 2)}\n`,
|
|
198
75
|
);
|
|
199
76
|
return result;
|
|
200
77
|
}
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* How a formal check's result weighs on a verdict whose diff it covers: a
|
|
204
|
-
* non-zero exit (a tool error, or a check that no longer matches its
|
|
205
|
-
* record) fails; recorded findings fail only when the diff changed the
|
|
206
|
-
* covered code's behaviour; a rule the base reported and HEAD no longer
|
|
207
|
-
* reports fails; a rule the base broke that HEAD reports passing though the
|
|
208
|
-
* covered behaviour is unchanged fails; rules the base broke that HEAD
|
|
209
|
-
* reports passing after a behaviour change are fixed.
|
|
210
|
-
*
|
|
211
|
-
* @param {import("./types.mjs").FormalResult} result The recorded result
|
|
212
|
-
* @returns {{ fails: boolean, outcome: string }} The weight and its wording
|
|
213
|
-
*/
|
|
214
|
-
export function formalGate(result) {
|
|
215
|
-
if (result.exitCode !== 0) {
|
|
216
|
-
const what =
|
|
217
|
-
result.violated.length > 0
|
|
218
|
-
? `the check no longer matches its record: ${result.violated.join(", ")}`
|
|
219
|
-
: "tool error";
|
|
220
|
-
return { fails: true, outcome: `${what}, exit ${result.exitCode}` };
|
|
221
|
-
}
|
|
222
|
-
const gone = [
|
|
223
|
-
result.missing?.length > 0 &&
|
|
224
|
-
`rules the base broke are absent at HEAD: ${result.missing.join(", ")}`,
|
|
225
|
-
result.dropped?.length > 0 &&
|
|
226
|
-
`findings the base broke are gone at HEAD, though the covered behaviour is unchanged (${result.behaviour?.method}): ${result.dropped.join(", ")}`,
|
|
227
|
-
].filter(Boolean);
|
|
228
|
-
if (gone.length > 0) return { fails: true, outcome: gone.join("; ") };
|
|
229
|
-
const fixed =
|
|
230
|
-
result.fixed?.length > 0 ? `; fixed: ${result.fixed.join(", ")}` : "";
|
|
231
|
-
if (!result.behaviour) {
|
|
232
|
-
return {
|
|
233
|
-
fails: result.violated.length > 0,
|
|
234
|
-
outcome: `violated ${result.violated.join(", ") || "nothing"}`,
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
const how = `${result.behaviour.method}`;
|
|
238
|
-
if (!result.behaviour.changed) {
|
|
239
|
-
const known =
|
|
240
|
-
result.violated.length > 0
|
|
241
|
-
? `known findings ${result.violated.join(", ")}`
|
|
242
|
-
: "no violated rule";
|
|
243
|
-
return {
|
|
244
|
-
fails: false,
|
|
245
|
-
outcome: `covered behaviour unchanged (${how}): ${known}`,
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
if (result.violated.length === 0) {
|
|
249
|
-
return {
|
|
250
|
-
fails: false,
|
|
251
|
-
outcome: `covered behaviour changed (${how}), no violated rule${fixed}`,
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
return {
|
|
255
|
-
fails: true,
|
|
256
|
-
outcome: `covered behaviour changed (${how}), violated ${result.violated.join(", ")}${fixed}`,
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* The recorded result of a formal check in a run, if it ran.
|
|
262
|
-
*
|
|
263
|
-
* @param {Pick<import("../run-state.mjs").RunState, "evidence">} state The run
|
|
264
|
-
* @param {string} name The check
|
|
265
|
-
* @returns {import("./types.mjs").FormalResult | undefined} The result
|
|
266
|
-
*/
|
|
267
|
-
export function readFormalResult(state, name) {
|
|
268
|
-
const file = join(state.evidence, "formal", name, "result.json");
|
|
269
|
-
if (!existsSync(file)) return undefined;
|
|
270
|
-
/** @type {unknown} */
|
|
271
|
-
const stored = JSON.parse(readFileSync(file, "utf8"));
|
|
272
|
-
return decodeFormalResult(stored, file);
|
|
273
|
-
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import assert from "node:assert/strict";
|
|
2
|
-
import { execFileSync } from "node:child_process";
|
|
3
2
|
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
4
3
|
import { tmpdir } from "node:os";
|
|
5
|
-
import {
|
|
4
|
+
import { dirname, join } from "node:path";
|
|
6
5
|
import test from "node:test";
|
|
7
|
-
import {
|
|
6
|
+
import { evidenceText } from "../helpers/evidence.mjs";
|
|
7
|
+
import { runFormalCheck, touchedFormalChecks } from "./formal.mjs";
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const source = readFileSync("src/math.js", "utf8");
|
|
12
|
-
console.log(source.includes("a + b") ? "holds AddWorks" : "BROKEN AddWorks");
|
|
9
|
+
const CHECK = `console.log("holds AddWorks");
|
|
10
|
+
console.log("BROKEN Overflow");
|
|
13
11
|
console.log("finding NegativeZero");
|
|
12
|
+
console.log("finding NegativeZero");
|
|
13
|
+
process.exit(1);
|
|
14
14
|
`;
|
|
15
|
-
const CHECK_WITHOUT_RULE = CHECK.replace(/console\.log\("finding[^\n]*\n/, "");
|
|
16
|
-
const CHECK_FIXED = CHECK.replace(
|
|
17
|
-
'"finding NegativeZero"',
|
|
18
|
-
'"holds NegativeZero"',
|
|
19
|
-
);
|
|
20
15
|
|
|
21
16
|
const CHECK_CONFIG = {
|
|
22
17
|
name: "formal-add",
|
|
@@ -24,128 +19,76 @@ const CHECK_CONFIG = {
|
|
|
24
19
|
files: [".agents/skills/formal-add/**"],
|
|
25
20
|
command: ["node", ".agents/skills/formal-add/check.mjs"],
|
|
26
21
|
violation: /^(?:finding|BROKEN) (\w+)/gm,
|
|
27
|
-
passing: /^holds (\w+)/gm,
|
|
28
|
-
behaviour: { kind: "emit" },
|
|
29
22
|
};
|
|
30
23
|
|
|
31
|
-
/**
|
|
32
|
-
* @param {string} repo
|
|
33
|
-
* @param {...string} args
|
|
34
|
-
*/
|
|
35
|
-
function git(repo, ...args) {
|
|
36
|
-
return execFileSync("git", args, { cwd: repo, encoding: "utf8" }).trim();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @param {string} repo
|
|
41
|
-
* @param {Record<string, string>} files
|
|
42
|
-
* @param {string} message
|
|
43
|
-
*/
|
|
44
|
-
function commit(repo, files, message) {
|
|
45
|
-
for (const [path, content] of Object.entries(files)) {
|
|
46
|
-
mkdirSync(dirname(join(repo, path)), { recursive: true });
|
|
47
|
-
writeFileSync(join(repo, path), content);
|
|
48
|
-
}
|
|
49
|
-
git(repo, "add", "-A");
|
|
50
|
-
git(
|
|
51
|
-
repo,
|
|
52
|
-
"-c",
|
|
53
|
-
"user.name=t",
|
|
54
|
-
"-c",
|
|
55
|
-
"user.email=t@example.com",
|
|
56
|
-
"-c",
|
|
57
|
-
"commit.gpgsign=false",
|
|
58
|
-
"commit",
|
|
59
|
-
"-q",
|
|
60
|
-
"-m",
|
|
61
|
-
message,
|
|
62
|
-
);
|
|
63
|
-
return git(repo, "rev-parse", "HEAD");
|
|
64
|
-
}
|
|
65
|
-
|
|
66
24
|
/**
|
|
67
25
|
* @param {import("node:test").TestContext} t
|
|
68
|
-
* @param {
|
|
26
|
+
* @param {string} check What the check script holds
|
|
69
27
|
*/
|
|
70
|
-
function formalRepo(t,
|
|
28
|
+
function formalRepo(t, check) {
|
|
71
29
|
const root = mkdtempSync(join(tmpdir(), "dms-control-formal-test-"));
|
|
72
30
|
t.after(() => rmSync(root, { recursive: true, force: true }));
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"src/math.js": ADD,
|
|
78
|
-
".agents/skills/formal-add/check.mjs": CHECK,
|
|
79
|
-
},
|
|
80
|
-
"base",
|
|
81
|
-
);
|
|
82
|
-
const headSha = commit(root, head, "head");
|
|
83
|
-
const changed = git(root, "diff", "--name-only", baseSha, headSha)
|
|
84
|
-
.split("\n")
|
|
85
|
-
.filter(Boolean);
|
|
86
|
-
const evidence = join(root, "..", `${basename(root)}-evidence`);
|
|
31
|
+
const script = join(root, ".agents/skills/formal-add/check.mjs");
|
|
32
|
+
mkdirSync(dirname(script), { recursive: true });
|
|
33
|
+
writeFileSync(script, check);
|
|
34
|
+
const evidence = join(root, "evidence");
|
|
87
35
|
mkdirSync(evidence);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
36
|
+
return {
|
|
37
|
+
skill: { repo: root, config: { formal: [CHECK_CONFIG] } },
|
|
38
|
+
evidence,
|
|
39
|
+
};
|
|
91
40
|
}
|
|
92
41
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
42
|
+
await test("a run records each violated rule once with the command, output and exit code; a runner that reports only the exit code loses the rule names", (t) => {
|
|
43
|
+
const { skill, evidence } = formalRepo(t, CHECK);
|
|
44
|
+
const result = runFormalCheck(skill, { evidence }, CHECK_CONFIG);
|
|
45
|
+
assert.deepEqual(result, {
|
|
46
|
+
name: "formal-add",
|
|
47
|
+
exitCode: 1,
|
|
48
|
+
violated: ["Overflow", "NegativeZero"],
|
|
49
|
+
folder: join("formal", "formal-add"),
|
|
50
|
+
});
|
|
51
|
+
const folder = join(evidence, "formal", "formal-add");
|
|
52
|
+
assert.deepEqual(JSON.parse(evidenceText(folder, "result.json")), result);
|
|
53
|
+
assert.equal(
|
|
54
|
+
evidenceText(folder, "command.txt"),
|
|
55
|
+
"node .agents/skills/formal-add/check.mjs\n",
|
|
107
56
|
);
|
|
108
|
-
assert.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
formalRepo(t, {
|
|
112
|
-
"src/math.js": ADD.replace("a + b", "a + b + 0"),
|
|
113
|
-
".agents/skills/formal-add/check.mjs": CHECK_WITHOUT_RULE,
|
|
114
|
-
}),
|
|
57
|
+
assert.equal(
|
|
58
|
+
evidenceText(folder, "stdout.txt"),
|
|
59
|
+
"holds AddWorks\nBROKEN Overflow\nfinding NegativeZero\nfinding NegativeZero\n",
|
|
115
60
|
);
|
|
116
|
-
assert.
|
|
117
|
-
assert.deepEqual(dropped.missing, ["NegativeZero"]);
|
|
61
|
+
assert.equal(evidenceText(folder, "exit-code.txt"), "1\n");
|
|
118
62
|
});
|
|
119
63
|
|
|
120
|
-
await test("a
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}),
|
|
125
|
-
);
|
|
126
|
-
assert.deepEqual(result.missing, ["NegativeZero"]);
|
|
127
|
-
assert.deepEqual(formalGate(result), {
|
|
128
|
-
fails: true,
|
|
129
|
-
outcome: "rules the base broke are absent at HEAD: NegativeZero",
|
|
130
|
-
});
|
|
64
|
+
await test("a check that holds reports no violated rule; a runner that counts a printed holds line as a violation fails it", (t) => {
|
|
65
|
+
const { skill, evidence } = formalRepo(t, 'console.log("holds AddWorks");\n');
|
|
66
|
+
const result = runFormalCheck(skill, { evidence }, CHECK_CONFIG);
|
|
67
|
+
assert.deepEqual([result.exitCode, result.violated], [0, []]);
|
|
131
68
|
});
|
|
132
69
|
|
|
133
|
-
await test("a
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
})
|
|
70
|
+
await test("a check with no violation pattern reports the property when it exits non-zero and nothing when it exits zero", (t) => {
|
|
71
|
+
const check = { ...CHECK_CONFIG, violation: null };
|
|
72
|
+
const failing = formalRepo(t, "process.exit(1);\n");
|
|
73
|
+
assert.deepEqual(
|
|
74
|
+
runFormalCheck(failing.skill, { evidence: failing.evidence }, check)
|
|
75
|
+
.violated,
|
|
76
|
+
["property"],
|
|
77
|
+
);
|
|
78
|
+
const passing = formalRepo(t, "");
|
|
79
|
+
assert.deepEqual(
|
|
80
|
+
runFormalCheck(passing.skill, { evidence: passing.evidence }, check)
|
|
81
|
+
.violated,
|
|
82
|
+
[],
|
|
138
83
|
);
|
|
139
|
-
assert.deepEqual(result.fixed, []);
|
|
140
|
-
assert.deepEqual(result.dropped, ["NegativeZero"]);
|
|
141
|
-
assert.deepEqual(formalGate(result), {
|
|
142
|
-
fails: true,
|
|
143
|
-
outcome:
|
|
144
|
-
"findings the base broke are gone at HEAD, though the covered behaviour is unchanged (emit): NegativeZero",
|
|
145
|
-
});
|
|
146
84
|
});
|
|
147
85
|
|
|
148
|
-
await test("a diff
|
|
149
|
-
const { skill
|
|
150
|
-
assert.deepEqual(touchedFormalChecks(skill,
|
|
86
|
+
await test("a diff touches a check through a covered file or one of its own files; a diff of neither leaves it untouched", (t) => {
|
|
87
|
+
const { skill } = formalRepo(t, CHECK);
|
|
88
|
+
assert.deepEqual(touchedFormalChecks(skill, ["src/math.js"]), [CHECK_CONFIG]);
|
|
89
|
+
assert.deepEqual(
|
|
90
|
+
touchedFormalChecks(skill, [".agents/skills/formal-add/check.mjs"]),
|
|
91
|
+
[CHECK_CONFIG],
|
|
92
|
+
);
|
|
93
|
+
assert.deepEqual(touchedFormalChecks(skill, ["README.md"]), []);
|
|
151
94
|
});
|
|
@@ -5,7 +5,6 @@ import { tmpdir } from "node:os";
|
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import test from "node:test";
|
|
7
7
|
import { checkMap, planFor } from "./map.mjs";
|
|
8
|
-
import { renderVerdict } from "./verdict.mjs";
|
|
9
8
|
|
|
10
9
|
const JOURNEYS = (/** @type {string} */ id) =>
|
|
11
10
|
`export const journeys = [{ id: "${id}", title: "t", entryPoint: "e", async run() {} }];\n`;
|
|
@@ -186,75 +185,3 @@ await test("map fails a shared glob that matches no tracked file or only notShar
|
|
|
186
185
|
"verify.config.ts: shared glob fixtures/** matches no tracked file",
|
|
187
186
|
]);
|
|
188
187
|
});
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @param {string} evidence
|
|
192
|
-
* @param {string[]} features
|
|
193
|
-
*/
|
|
194
|
-
function recordPassing(evidence, features) {
|
|
195
|
-
for (const feature of features) {
|
|
196
|
-
mkdirSync(join(evidence, feature), { recursive: true });
|
|
197
|
-
const journey = feature === "smoke" ? "smoke" : `${feature}-journey`;
|
|
198
|
-
writeFileSync(
|
|
199
|
-
join(evidence, feature, "feature.json"),
|
|
200
|
-
JSON.stringify([
|
|
201
|
-
{
|
|
202
|
-
feature,
|
|
203
|
-
journey,
|
|
204
|
-
title: "t",
|
|
205
|
-
entryPoint: "e",
|
|
206
|
-
status: "PASS",
|
|
207
|
-
database: "d",
|
|
208
|
-
steps: [],
|
|
209
|
-
error: null,
|
|
210
|
-
folder: `${feature}/${journey}`,
|
|
211
|
-
},
|
|
212
|
-
]),
|
|
213
|
-
);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
const JUDGEMENT = {
|
|
218
|
-
notVerified: [],
|
|
219
|
-
attention: [],
|
|
220
|
-
docs: [],
|
|
221
|
-
doorsNone: "none",
|
|
222
|
-
doors: [],
|
|
223
|
-
falsePositives: [],
|
|
224
|
-
verifier: "v",
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
await test("the verdict fails a run that skipped features the shared-file plan required; a verdict that requires only the touched features passes the smoke-only run", async (t) => {
|
|
228
|
-
const { skill, base, head } = fixture(t, { "pnpm-lock.yaml": "lock: 2\n" });
|
|
229
|
-
const evidence = mkdtempSync(join(tmpdir(), "dms-control-evidence-test-"));
|
|
230
|
-
t.after(() => rmSync(evidence, { recursive: true, force: true }));
|
|
231
|
-
const state = { baseRef: base, headSha: head, evidence };
|
|
232
|
-
recordPassing(evidence, ["smoke"]);
|
|
233
|
-
const skipped = await renderVerdict(skill, state, 1, JUDGEMENT);
|
|
234
|
-
assert.equal(skipped.result, "FAIL");
|
|
235
|
-
assert.deepEqual(skipped.reasons, [
|
|
236
|
-
"a/a-journey was not run",
|
|
237
|
-
"b/b-journey was not run",
|
|
238
|
-
]);
|
|
239
|
-
recordPassing(evidence, ["a", "b"]);
|
|
240
|
-
assert.equal(
|
|
241
|
-
(await renderVerdict(skill, state, 1, JUDGEMENT)).result,
|
|
242
|
-
"PASS",
|
|
243
|
-
);
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
await test("the verdict of a covered-only diff needs the other features only when all is set; a verdict that drops all passes an incomplete release run", async (t) => {
|
|
247
|
-
const { skill, base, head } = fixture(t, {
|
|
248
|
-
"src/a/x.ts": "export const x = 2;\n",
|
|
249
|
-
});
|
|
250
|
-
const evidence = mkdtempSync(join(tmpdir(), "dms-control-evidence-test-"));
|
|
251
|
-
t.after(() => rmSync(evidence, { recursive: true, force: true }));
|
|
252
|
-
const state = { baseRef: base, headSha: head, evidence };
|
|
253
|
-
recordPassing(evidence, ["smoke", "a"]);
|
|
254
|
-
assert.equal(
|
|
255
|
-
(await renderVerdict(skill, state, 1, JUDGEMENT)).result,
|
|
256
|
-
"PASS",
|
|
257
|
-
);
|
|
258
|
-
const release = await renderVerdict(skill, state, 1, JUDGEMENT, true);
|
|
259
|
-
assert.deepEqual(release.reasons, ["b/b-journey was not run"]);
|
|
260
|
-
});
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The shapes the verification harness passes between its modules: the plan a
|
|
3
|
-
* diff maps to, the
|
|
4
|
-
*
|
|
3
|
+
* diff maps to, the recorded result of a formal check and the results of a
|
|
4
|
+
* feature's journeys. This module holds types only.
|
|
5
5
|
*
|
|
6
|
-
* @typedef {{
|
|
7
|
-
* @typedef {{ name: string,
|
|
8
|
-
* @typedef {{ baseSha: string, headSha: string }} Commits
|
|
9
|
-
* @typedef {{ method: string, changed: boolean, removed: string[], added: string[] }} BehaviourChange
|
|
10
|
-
* @typedef {{ exitCode: number | null, violated: string[], passing: string[] }} Rules
|
|
11
|
-
* @typedef {{ name: string, exitCode: number | null, violated: string[], passing: string[], folder: string, commits?: Commits, behaviour?: BehaviourChange, checkChanged?: boolean, base?: Rules | null, fixed?: string[], dropped?: string[], missing?: string[] }} FormalResult
|
|
6
|
+
* @typedef {{ name: string, covers: string[], files?: string[], command: string[], violation: RegExp | null }} FormalCheck
|
|
7
|
+
* @typedef {{ name: string, exitCode: number | null, violated: string[], folder: string }} FormalResult
|
|
12
8
|
* @typedef {{ feature: string, files: string[] }} TouchedFeature
|
|
13
9
|
* @typedef {{ baseRef: string, baseSha: string, headSha: string, changed: string[], touched: TouchedFeature[], shared: string[], unmapped: string[], docs: string[], run: string[] }} Plan
|
|
14
|
-
* @typedef {{ kind?: string, location?: string, irreversible?: string, containment?: string }} RawDoorRow
|
|
15
|
-
* @typedef {{ kind?: string, location?: string, reason?: string }} RawFalsePositive
|
|
16
|
-
* @typedef {{ page: string, matches?: boolean, note?: string }} RawDocsJudgement
|
|
17
|
-
* @typedef {{ verifier?: string, notVerified?: string[], attention?: string[], docs?: RawDocsJudgement[], doors?: { none?: string, rows?: RawDoorRow[], falsePositives?: RawFalsePositive[] } }} RawJudgement
|
|
18
|
-
* @typedef {{ kind: string, location: string, irreversible: string, containment: string }} DoorRow
|
|
19
|
-
* @typedef {{ kind: string, location: string, reason: string }} FalsePositive
|
|
20
|
-
* @typedef {{ page: string, matches: boolean, note: string }} DocsJudgement
|
|
21
|
-
* @typedef {{ notVerified: string[], attention: string[], docs: DocsJudgement[], doorsNone: string | null, doors: DoorRow[], falsePositives: FalsePositive[], verifier: string }} Judgement
|
|
22
10
|
* @typedef {{ name: string, pass: boolean, detail: string }} JourneyCheck
|
|
23
11
|
* @typedef {{ feature: string, journey: string, title: string, entryPoint: string, status: "PASS" | "FAIL", database: string, steps: { name: string, checks: JourneyCheck[] }[], error: string | null, folder: string, ms?: number }} FeatureResult
|
|
24
|
-
* @typedef {{ result: string, headSha: string, skillSha: string, pr: number, reasons: string[] }} VerdictCore
|
|
25
|
-
* @typedef {VerdictCore & { markdown: string }} Verdict
|
|
26
12
|
*/
|
|
27
13
|
|
|
28
14
|
export {};
|
package/bin/dms-control.mjs
CHANGED
|
@@ -43,8 +43,6 @@ Verify a change (the .agents/skills/verify-* folder of the checkout, or --skill
|
|
|
43
43
|
journey <run> <feature> [ids...] run a feature's journeys and record evidence
|
|
44
44
|
doors [patch] [--base <ref>] print the One-way-door line for a patch, or for the diff
|
|
45
45
|
formal <run> [--all] run the formal checks that cover the diff (or every one)
|
|
46
|
-
verdict <run> --pr <n> [--all] render evidence/verdict.md from the results and evidence/judgement.json
|
|
47
|
-
(--all requires every feature, for a release)
|
|
48
46
|
`;
|
|
49
47
|
|
|
50
48
|
/**
|
|
@@ -2,6 +2,7 @@ import { type QueryValue, type RequestContext } from "@antelopejs/interface-api"
|
|
|
2
2
|
import { type FrontendManifest, type ManifestModuleEntry } from "../../../store/frontend";
|
|
3
3
|
import { RoleModel, TenantMemberModel } from "@antelopejs/interface-dms/db";
|
|
4
4
|
import type { User } from "@antelopejs/interface-dms/auth/db";
|
|
5
|
+
import type { JsonValue } from "@antelopejs/interface-dms/json";
|
|
5
6
|
import type { SiteLayoutPayload, ModuleCatalogEntry, PageResponsePayload } from "./types";
|
|
6
7
|
export declare const OMIT_SHARED_PAGE_QUERY_VALUE = "false";
|
|
7
8
|
declare const DMSController_base: import("@antelopejs/interface-api").ControllerClass<object>;
|
|
@@ -11,7 +12,7 @@ export declare class DMSController extends DMSController_base {
|
|
|
11
12
|
sharedPage: QueryValue;
|
|
12
13
|
authorization: string | undefined;
|
|
13
14
|
frontend(requestContext: RequestContext, clientUrl: QueryValue, renderer: QueryValue, rendererVersion: QueryValue): Promise<FrontendManifest<ManifestModuleEntry>>;
|
|
14
|
-
frontendReady(body:
|
|
15
|
+
frontendReady(body: JsonValue | undefined): void;
|
|
15
16
|
userPermissions(requestContext: RequestContext, roleModel: RoleModel, memberModel: TenantMemberModel, user: User | undefined): Promise<string[]>;
|
|
16
17
|
siteLayout(requestContext: RequestContext, roleModel: RoleModel, memberModel: TenantMemberModel, user: User | undefined): Promise<SiteLayoutPayload>;
|
|
17
18
|
modulesListing(requestContext: RequestContext, roleModel: RoleModel, memberModel: TenantMemberModel, user: User | undefined): Promise<ModuleCatalogEntry[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../../src/implementations/dms/page/controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DASmC;AACnC,sDAQiC;AACjC,uFAAkF;AAClF,qDAA4E;AAC5E,yDAA4D;AAE5D,6EAA8E;AAC9E,uEAAwD;
|
|
1
|
+
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../../src/implementations/dms/page/controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6DASmC;AACnC,sDAQiC;AACjC,uFAAkF;AAClF,qDAA4E;AAC5E,yDAA4D;AAE5D,6EAA8E;AAC9E,uEAAwD;AAExD,yDAGwC;AACxC,oDAA6D;AAC7D,0CAA2C;AAC3C,qCAAsE;AAMtE,yCAKoB;AACpB,mCAA6E;AAC7E,qDAM0B;AAEb,QAAA,4BAA4B,GAAG,OAAO,CAAC;AAEpD,MAAa,aAAc,SAAQ,IAAA,0BAAU,EAAC,MAAM,CAAC;IAc7C,AAAN,KAAK,CAAC,QAAQ,CACD,cAA8B,EACR,SAAqB,EACtB,QAAoB,EACb,eAA2B;QAElE,OAAO,IAAA,gCAAqB,EAC1B,cAAc,EACd,IAAA,iBAAS,EAAC,SAAS,CAAC,EACpB,IAAA,iBAAS,EAAC,QAAQ,CAAC,EACnB,IAAA,iBAAS,EAAC,eAAe,CAAC,EAC1B,IAAI,CAAC,eAAe,CACrB,CAAC;IACJ,CAAC;IAGD,aAAa,CAAa,IAA2B;QACnD,IAAA,qCAA0B,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACjD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,6BAAkB,EAAC,IAAI,CAAC,CAAC;QACtD,IAAA,8BAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAGK,AAAN,KAAK,C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