@antelopejs/dms 0.20.6 → 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.
Files changed (109) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bin/control/commands-verify.mjs +8 -49
  3. package/bin/control/options.mjs +0 -1
  4. package/bin/control/run-state.mjs +1 -1
  5. package/bin/control/timing.mjs +1 -16
  6. package/bin/control/timing.test.mjs +0 -11
  7. package/bin/control/verify/decode.mjs +4 -144
  8. package/bin/control/verify/decode.test.mjs +1 -149
  9. package/bin/control/verify/formal.mjs +22 -218
  10. package/bin/control/verify/formal.test.mjs +60 -117
  11. package/bin/control/verify/map.test.mjs +0 -73
  12. package/bin/control/verify/types.mjs +4 -18
  13. package/bin/dms-control.mjs +0 -2
  14. package/dist/implementations/dms/page/controller.d.ts +2 -1
  15. package/dist/implementations/dms/page/controller.js.map +1 -1
  16. package/dist/implementations/dms-builder/engine/configure-target.d.ts +8 -0
  17. package/dist/implementations/dms-builder/engine/configure-target.js +36 -0
  18. package/dist/implementations/dms-builder/engine/configure-target.js.map +1 -0
  19. package/dist/implementations/dms-builder/engine/connection-access-config.js +2 -2
  20. package/dist/implementations/dms-builder/engine/connection-targets.js.map +1 -1
  21. package/dist/implementations/dms-builder/engine/database-access.d.ts +1 -1
  22. package/dist/implementations/dms-builder/engine/database-access.js +2 -2
  23. package/dist/implementations/dms-builder/engine/database-check-input.d.ts +3 -2
  24. package/dist/implementations/dms-builder/engine/database-check-input.js.map +1 -1
  25. package/dist/implementations/dms-builder/engine/database-check.js +2 -2
  26. package/dist/implementations/dms-builder/engine/database-check.js.map +1 -1
  27. package/dist/implementations/dms-builder/engine/index.d.ts +1 -0
  28. package/dist/implementations/dms-builder/engine/index.js +1 -0
  29. package/dist/implementations/dms-builder/engine/index.js.map +1 -1
  30. package/dist/implementations/dms-builder/engine/probe-answer.d.ts +44 -1
  31. package/dist/implementations/dms-builder/engine/probe-answer.js +2 -5
  32. package/dist/implementations/dms-builder/engine/probe-answer.js.map +1 -1
  33. package/dist/mcp/tools/builder-compose.js +19 -3
  34. package/dist/mcp/tools/builder-compose.js.map +1 -1
  35. package/dist/mcp/tools/builder-pages.js +68 -6
  36. package/dist/mcp/tools/builder-pages.js.map +1 -1
  37. package/dist/mcp/tools/builder-request-targets.d.ts +14 -0
  38. package/dist/mcp/tools/builder-request-targets.js +256 -0
  39. package/dist/mcp/tools/builder-request-targets.js.map +1 -0
  40. package/dist/mcp/tools/index.d.ts +1 -0
  41. package/dist/mcp/tools/index.js +3 -1
  42. package/dist/mcp/tools/index.js.map +1 -1
  43. package/dist/mcp/tools/mockup-apply-to-page.d.ts +2 -0
  44. package/dist/mcp/tools/mockup-apply-to-page.js +15 -1
  45. package/dist/mcp/tools/mockup-apply-to-page.js.map +1 -1
  46. package/dist/mockup/apply-to-page.d.ts +1 -0
  47. package/dist/mockup/apply-to-page.js +3 -2
  48. package/dist/mockup/apply-to-page.js.map +1 -1
  49. package/dist/mockup/compile.js +7 -1
  50. package/dist/mockup/compile.js.map +1 -1
  51. package/dist/mockup/files.d.ts +1 -1
  52. package/dist/mockup/files.js +2 -2
  53. package/dist/mockup/sample-routes.d.ts +3 -0
  54. package/dist/mockup/sample-routes.js +53 -0
  55. package/dist/mockup/sample-routes.js.map +1 -0
  56. package/dist/pages/settings/users/roles.js.map +1 -1
  57. package/dist/store/internal/frontend/frontend-ready.d.ts +2 -1
  58. package/dist/store/internal/frontend/frontend-ready.js.map +1 -1
  59. package/dist/store/operations.js +4 -4
  60. package/dist/store/operations.js.map +1 -1
  61. package/dist/utils/upload-constraints.d.ts +1 -1
  62. package/dist/utils/upload-constraints.js +2 -2
  63. package/dist/utils/upload-constraints.js.map +1 -1
  64. package/dist/validation/issue-message.d.ts +1 -1
  65. package/dist/validation/issue-message.js +3 -3
  66. package/dist/validation/issue-message.js.map +1 -1
  67. package/frontend-vue/layers/dms-core/app/utils/formatter.ts +1 -0
  68. package/frontend-vue/layers/dms-layout/app/build/composables/navigation/useVisitNavBadges.ts +11 -14
  69. package/frontend-vue/layers/dms-layout/app/build/composables/settings/security/useSecurityFormat.ts +5 -5
  70. package/frontend-vue/layers/dms-layout/app/build/utils/modules-catalog.ts +7 -2
  71. package/frontend-vue/layers/dms-layout/app/build/utils/notificationPayload.ts +9 -5
  72. package/frontend-vue/layers/dms-layout/app/composables/page/useModuleHistory.ts +4 -1
  73. package/frontend-vue/layers/dms-layout/app/composables/page/useModulesListing.ts +7 -17
  74. package/frontend-vue/layers/dms-layout/app/custom-pages/modules.vue +5 -1
  75. package/frontend-vue/layers/dms-ui/app/build/components/block-preview/MockupWorkbench.vue +17 -1
  76. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useBlockPreviewEmbed.ts +9 -0
  77. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupCatalog.ts +4 -1
  78. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/useMockupSpec.ts +18 -16
  79. package/frontend-vue/layers/dms-ui/app/build/composables/block-preview/usePreviewFrame.ts +8 -1
  80. package/frontend-vue/layers/dms-ui/app/build/composables/containers/drawerSize.ts +4 -4
  81. package/frontend-vue/layers/dms-ui/app/build/composables/data-types/relationBadges.ts +2 -5
  82. package/frontend-vue/layers/dms-ui/app/build/composables/form/fieldComponentProps.ts +2 -2
  83. package/frontend-vue/layers/dms-ui/app/build/composables/layout/sidePanelState.ts +5 -2
  84. package/frontend-vue/layers/dms-ui/app/build/composables/period/periodQuery.ts +6 -3
  85. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/tableRowActionValues.ts +13 -13
  86. package/frontend-vue/layers/dms-ui/app/build/composables/table-view/utils/writeError.ts +2 -2
  87. package/frontend-vue/layers/dms-ui/app/build/mockups/MockupThumbnail.vue +6 -1
  88. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreview.ts +1 -1
  89. package/frontend-vue/layers/dms-ui/app/build/utils/blockPreviewMessages.ts +26 -18
  90. package/frontend-vue/layers/dms-ui/app/build/utils/mockupCatalog.ts +7 -2
  91. package/frontend-vue/layers/dms-ui/app/build/utils/mockupSpec.ts +2 -1
  92. package/frontend-vue/layers/dms-ui/app/build/utils/previewFixturesOnly.ts +82 -0
  93. package/frontend-vue/layers/dms-ui/app/components/block-preview/BlockPreview.vue +10 -1
  94. package/frontend-vue/layers/dms-ui/app/components/chart/ApexChartHost.vue +2 -0
  95. package/frontend-vue/layers/dms-ui/app/composables/form/useUploadWithProgress.ts +6 -1
  96. package/frontend-vue/layers/dms-ui/app/composables/useExportJob.ts +2 -2
  97. package/package.json +32 -30
  98. package/skills/dms-project/scripts/dms-dev.sh +0 -0
  99. package/bin/control/verify/behaviour.mjs +0 -183
  100. package/bin/control/verify/behaviour.test.mjs +0 -472
  101. package/bin/control/verify/emit.mjs +0 -539
  102. package/bin/control/verify/judgement.mjs +0 -101
  103. package/bin/control/verify/verdict.mjs +0 -327
  104. package/frontend-vue/scripts/probes/capture-frontend-probe.cjs +0 -23
  105. package/frontend-vue/scripts/probes/frontend-behavior.cjs +0 -606
  106. package/frontend-vue/scripts/probes/frontend-legacy.cjs +0 -620
  107. package/frontend-vue/scripts/probes/frontend-probe-controls.cjs +0 -322
  108. package/frontend-vue/scripts/prove-comment-emit.mjs +0 -171
  109. package/frontend-vue/scripts/prove-component-registration.mjs +0 -259
@@ -1,22 +1,9 @@
1
1
  import { spawnSync } from "node:child_process";
2
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
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
- (check) =>
30
- changed.some((file) => check.covers.includes(file)) ||
31
- changesCheckFiles(check, changed),
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, diff) {
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 run = runCommand(check.command, skill.repo);
178
- writeRun(folder, "", check.command, run);
179
- const head = rulesOf(check, run);
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: head.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 { basename, dirname, join } from "node:path";
4
+ import { dirname, join } from "node:path";
6
5
  import test from "node:test";
7
- import { formalGate, runFormalCheck, touchedFormalChecks } from "./formal.mjs";
6
+ import { evidenceText } from "../helpers/evidence.mjs";
7
+ import { runFormalCheck, touchedFormalChecks } from "./formal.mjs";
8
8
 
9
- const ADD = "export function add(a, b) {\n return a + b;\n}\n";
10
- const CHECK = `import { readFileSync } from "node:fs";
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 {Record<string, string>} head
26
+ * @param {string} check What the check script holds
69
27
  */
70
- function formalRepo(t, head) {
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
- git(root, "init", "-q");
74
- const baseSha = commit(
75
- root,
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
- t.after(() => rmSync(evidence, { recursive: true, force: true }));
89
- const skill = { repo: root, config: { formal: [CHECK_CONFIG] } };
90
- return { skill, state: { evidence }, diff: { baseSha, headSha, changed } };
36
+ return {
37
+ skill: { repo: root, config: { formal: [CHECK_CONFIG] } },
38
+ evidence,
39
+ };
91
40
  }
92
41
 
93
- /**
94
- * @param {ReturnType<typeof formalRepo>} repo
95
- */
96
- function gated({ skill, state, diff }) {
97
- const [check] = touchedFormalChecks(skill, diff.changed);
98
- return check ? runFormalCheck(skill, state, check, diff) : null;
99
- }
100
-
101
- await test("a rule counts as fixed only when HEAD reports it passing, never when HEAD drops it", (t) => {
102
- const fixed = gated(
103
- formalRepo(t, {
104
- "src/math.js": ADD.replace("a + b", "a + b + 0"),
105
- ".agents/skills/formal-add/check.mjs": CHECK_FIXED,
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.deepEqual(fixed.fixed, ["NegativeZero"]);
109
- assert.deepEqual(fixed.missing, []);
110
- const dropped = gated(
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.deepEqual(dropped.fixed, []);
117
- assert.deepEqual(dropped.missing, ["NegativeZero"]);
61
+ assert.equal(evidenceText(folder, "exit-code.txt"), "1\n");
118
62
  });
119
63
 
120
- await test("a diff that touches only a check's own files runs the check and gates it against the base", (t) => {
121
- const result = gated(
122
- formalRepo(t, {
123
- ".agents/skills/formal-add/check.mjs": CHECK_WITHOUT_RULE,
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 finding that only an edit to the check turns passing is dropped, not fixed, and fails the gate", (t) => {
134
- const result = gated(
135
- formalRepo(t, {
136
- ".agents/skills/formal-add/check.mjs": CHECK_FIXED,
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 that touches neither the covered files nor the check's files does not touch the check", (t) => {
149
- const { skill, diff } = formalRepo(t, { "README.md": "# Demo\n" });
150
- assert.deepEqual(touchedFormalChecks(skill, diff.changed), []);
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 verifier's judgement, the recorded result of a formal
4
- * check and the verdict computed from them. This module holds types only.
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 {{ kind: "emit" } | { kind: "probe", command: string[] }} BehaviourProbe
7
- * @typedef {{ name: string, covers: string[], files?: string[], command: string[], baseCommand?: string[], violation: RegExp | null, passing: RegExp | null, behaviour?: BehaviourProbe }} FormalCheck
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 {};
@@ -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: unknown): void;
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;AACxD,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,IAAa;QACrC,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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BAAiB,CAAC,CAAA;IACpC,WAAA,IAAA,iBAAU,GAAE,CAAA;;6CAF4B,cAAS;QACC,sBAAiB;;+CASrE;AAGK;IADL,IAAA,mBAAG,EAAC,kBAAkB,CAAC;IAErB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,uCAAiB,EAAC,cAAS,CAAC,CAAA;IAC5B,WAAA,IAAA,uCAAiB,EAAC,sBAAiB,CAAC,CAAA;IACpC,WAAA,IAAA,iBAAU,GAAE,CAAA;;6CAF4B,cAAS;QACC,sBAAiB;;mDA6BrE;AAGK;IADL,IAAA,mBAAG,EAAC,aAAa,CAAC;IAEhB,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,uCAAiB,EAAC,cAAS,CAAC,CAAA;IAC5B,WAAA,IAAA,uCAAiB,EAAC,sBAAiB,CAAC,CAAA;IACpC,WAAA,IAAA,iBAAU,GAAE,CAAA;IACZ,WAAA,IAAA,yBAAS,EAAC,qCAA0B,EAAE,OAAO,CAAC,CAAA;;6CAHN,cAAS;QACC,sBAAiB;;+CAkBrE;AAGK;IADL,IAAA,mBAAG,EAAC,OAAO,CAAC;IAEV,WAAA,IAAA,uBAAO,GAAE,CAAA;IACT,WAAA,IAAA,uCAAiB,EAAC,cAAS,CAAC,CAAA;IAC5B,WAAA,IAAA,uCAAiB,EAAC,sBAAiB,CAAC,CAAA;IACpC,WAAA,IAAA,iBAAU,GAAE,CAAA;;6CAF4B,cAAS;QACC,sBAAiB;;yCAgBrE"}
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;A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