@feigi/fleet-ctl 3.23.35 → 3.23.37

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 (204) hide show
  1. package/package.json +1 -1
  2. package/scripts/main-checkout.mjs +1 -1
  3. package/scripts/member-write-guard.mjs +1 -1
  4. package/scripts/repo-root.mjs +1 -1
  5. package/skills/run-team/references/reaping.md +1 -1
  6. package/scripts/agent-test-dir-prose.test.mjs +0 -59
  7. package/scripts/agent-test.test.mjs +0 -1640
  8. package/scripts/ambient-git-vars-mjs-prose.test.mjs +0 -397
  9. package/scripts/ambient-git-vars-prose.test.mjs +0 -192
  10. package/scripts/ancestry-check-position-prose.test.mjs +0 -175
  11. package/scripts/apply-ruleset.test.mjs +0 -421
  12. package/scripts/arg-header-probes-prose.test.mjs +0 -394
  13. package/scripts/arg.test.mjs +0 -1354
  14. package/scripts/board-cli.test.mjs +0 -710
  15. package/scripts/board-identity.test.mjs +0 -429
  16. package/scripts/board-liveness-banner.test.mjs +0 -119
  17. package/scripts/board-prev-shape.test.mjs +0 -228
  18. package/scripts/board-tryparse-null.test.mjs +0 -119
  19. package/scripts/board.test.mjs +0 -3121
  20. package/scripts/brief-after-cut-prose.test.mjs +0 -53
  21. package/scripts/candidates-exit3-prose.test.mjs +0 -302
  22. package/scripts/candidates.test.mjs +0 -2312
  23. package/scripts/caveat-unification-prose.test.mjs +0 -98
  24. package/scripts/cell-readout.test.mjs +0 -615
  25. package/scripts/ci-comment-rot-prose.test.mjs +0 -2025
  26. package/scripts/ci-completes-premise-prose.test.mjs +0 -257
  27. package/scripts/ci-state-prose.test.mjs +0 -113
  28. package/scripts/ci-state.test.mjs +0 -1933
  29. package/scripts/ci-vacuous-green.test.mjs +0 -368
  30. package/scripts/citation-sweep-prose.test.mjs +0 -1712
  31. package/scripts/claim-lifecycle.test.mjs +0 -187
  32. package/scripts/claim-ticket.test.mjs +0 -1122
  33. package/scripts/closing-keyword-prose.test.mjs +0 -193
  34. package/scripts/cockpit-launch-idempotent-prose.test.mjs +0 -165
  35. package/scripts/cockpit-tick-nonblocking.test.mjs +0 -210
  36. package/scripts/compute-board.test.mjs +0 -1214
  37. package/scripts/compute-spend.test.mjs +0 -517
  38. package/scripts/consumer-technology-prose.test.mjs +0 -126
  39. package/scripts/cross-repo-citation-prose.test.mjs +0 -155
  40. package/scripts/cwd-isolation-pins.mjs +0 -83
  41. package/scripts/dedupe-guard-prose.test.mjs +0 -243
  42. package/scripts/delete-merged-branch.test.mjs +0 -576
  43. package/scripts/derive-testcmd.test.mjs +0 -595
  44. package/scripts/diff-stats.test.mjs +0 -404
  45. package/scripts/dispatch-block-golden-prose.test.mjs +0 -1130
  46. package/scripts/dispatch-block-pins-prose.test.mjs +0 -615
  47. package/scripts/dispositions-check.test.mjs +0 -936
  48. package/scripts/dispositions-gate-prose.test.mjs +0 -129
  49. package/scripts/drop-merged-label.test.mjs +0 -479
  50. package/scripts/exec-stub.mjs +0 -93
  51. package/scripts/exec-stub.test.mjs +0 -69
  52. package/scripts/expected-jobs-prose.test.mjs +0 -80
  53. package/scripts/fan-out-authorization-prose.test.mjs +0 -80
  54. package/scripts/filing-bar-seat-prose.test.mjs +0 -242
  55. package/scripts/filing-claim-bar-prose.test.mjs +0 -166
  56. package/scripts/finisher-died-prose.test.mjs +0 -31
  57. package/scripts/finisher-dispatch-premise-prose.test.mjs +0 -312
  58. package/scripts/finisher-halt-prose.test.mjs +0 -106
  59. package/scripts/finisher-name-prose.test.mjs +0 -134
  60. package/scripts/finisher-own-tree-prose.test.mjs +0 -299
  61. package/scripts/finisher-pin-race-prose.test.mjs +0 -339
  62. package/scripts/finisher-test-verdict-prose.test.mjs +0 -102
  63. package/scripts/fix-applier-correction-rules-prose.test.mjs +0 -202
  64. package/scripts/fix-applier-result-file-prose.test.mjs +0 -149
  65. package/scripts/fleet-bootstrap.test.mjs +0 -75
  66. package/scripts/fleet-heartbeat.test.mjs +0 -450
  67. package/scripts/fleet-provenance.test.mjs +0 -138
  68. package/scripts/fleet-run.test.mjs +0 -90
  69. package/scripts/fleet-state.test.mjs +0 -460
  70. package/scripts/fleet-tick-prose.test.mjs +0 -300
  71. package/scripts/fleet-tick.test.mjs +0 -2444
  72. package/scripts/force-with-lease-reason-prose.test.mjs +0 -184
  73. package/scripts/frontmatter-check.test.mjs +0 -436
  74. package/scripts/git-env.test.mjs +0 -149
  75. package/scripts/git-status-untracked-mode-sweep.test.mjs +0 -216
  76. package/scripts/gone-walk.test.mjs +0 -213
  77. package/scripts/gp-sep-invariant-prose.test.mjs +0 -188
  78. package/scripts/head-moved-after-label-prose.test.mjs +0 -233
  79. package/scripts/immutable-body-claim-prose.test.mjs +0 -204
  80. package/scripts/implementer-model-tier.test.mjs +0 -235
  81. package/scripts/inflight-citation-prose.test.mjs +0 -144
  82. package/scripts/inflight-exit2-prose.test.mjs +0 -81
  83. package/scripts/inflight-probe-guard-prose.test.mjs +0 -109
  84. package/scripts/inflight-scan-scope-prose.test.mjs +0 -57
  85. package/scripts/inflight.test.mjs +0 -2882
  86. package/scripts/injection-control-prose.test.mjs +0 -404
  87. package/scripts/install-root-audit.test.mjs +0 -464
  88. package/scripts/instrument-check-prose.test.mjs +0 -235
  89. package/scripts/instruments.test.mjs +0 -787
  90. package/scripts/is-cli.test.mjs +0 -99
  91. package/scripts/issue-tracker-prose.test.mjs +0 -71
  92. package/scripts/json.test.mjs +0 -364
  93. package/scripts/ledger-dispatch.test.mjs +0 -927
  94. package/scripts/ledger-grammar.test.mjs +0 -227
  95. package/scripts/ledger-read-require-file.test.mjs +0 -197
  96. package/scripts/ledger-rotate.test.mjs +0 -142
  97. package/scripts/ledger.test.mjs +0 -3436
  98. package/scripts/line-distance-prose.test.mjs +0 -245
  99. package/scripts/liveness-rationale-prose.test.mjs +0 -83
  100. package/scripts/locale-pin-prose.test.mjs +0 -189
  101. package/scripts/main-checkout.test.mjs +0 -332
  102. package/scripts/member-outcome-prose.test.mjs +0 -167
  103. package/scripts/member-outcomes-header.test.mjs +0 -129
  104. package/scripts/member-outcomes-prose.test.mjs +0 -63
  105. package/scripts/member-outcomes.test.mjs +0 -638
  106. package/scripts/member-prompt-prose.test.mjs +0 -165
  107. package/scripts/member-record.test.mjs +0 -541
  108. package/scripts/member-write-guard.test.mjs +0 -214
  109. package/scripts/merge-commit-probe-prose.test.mjs +0 -122
  110. package/scripts/merge-gate.test.mjs +0 -613
  111. package/scripts/muted-git-guard-sweep.test.mjs +0 -493
  112. package/scripts/net-ssh-precedence-prose.test.mjs +0 -91
  113. package/scripts/net-watchdog-prose.test.mjs +0 -79
  114. package/scripts/net.test.mjs +0 -211
  115. package/scripts/no-ci-gate-prose.test.mjs +0 -108
  116. package/scripts/no-undo-audit.test.mjs +0 -3961
  117. package/scripts/no-wave.test.mjs +0 -138
  118. package/scripts/node-floor-sweep.test.mjs +0 -611
  119. package/scripts/pointer-target-prose.test.mjs +0 -186
  120. package/scripts/pr-cost.test.mjs +0 -521
  121. package/scripts/pr-overlap.test.mjs +0 -692
  122. package/scripts/printf-die-sweep.test.mjs +0 -384
  123. package/scripts/prompt-renderer.mjs +0 -40
  124. package/scripts/prompt-renderer.test.mjs +0 -68
  125. package/scripts/prose-pin.mjs +0 -807
  126. package/scripts/prose-pin.test.mjs +0 -1034
  127. package/scripts/prove-merge.test.mjs +0 -995
  128. package/scripts/pull-table-relabel-prose.test.mjs +0 -60
  129. package/scripts/quiet-payload-prose.test.mjs +0 -222
  130. package/scripts/reap-cherry-check-prose.test.mjs +0 -80
  131. package/scripts/reap.test.mjs +0 -4432
  132. package/scripts/reaping-prose.test.mjs +0 -239
  133. package/scripts/reaping-reap-authorizers-prose.test.mjs +0 -112
  134. package/scripts/reaping-release-authorizers-prose.test.mjs +0 -85
  135. package/scripts/recipe-derivation-prose.test.mjs +0 -112
  136. package/scripts/recipe-prove.test.mjs +0 -1042
  137. package/scripts/refuter-scratch-prose.test.mjs +0 -135
  138. package/scripts/release-label-required-prose.test.mjs +0 -71
  139. package/scripts/release-label-split-prose.test.mjs +0 -184
  140. package/scripts/release-ticket-reap-pairing-prose.test.mjs +0 -63
  141. package/scripts/release-ticket.test.mjs +0 -5099
  142. package/scripts/renovate-release-contract.test.mjs +0 -379
  143. package/scripts/repo-root.test.mjs +0 -873
  144. package/scripts/reporter-output-rule-prose.test.mjs +0 -208
  145. package/scripts/review-agent-report-only.test.mjs +0 -49
  146. package/scripts/review-core-booking.test.mjs +0 -35
  147. package/scripts/review-core-cwd-isolation.test.mjs +0 -374
  148. package/scripts/review-core-reads.test.mjs +0 -478
  149. package/scripts/review-core-refuter-scratch.test.mjs +0 -148
  150. package/scripts/review-core-scratch-refusal.test.mjs +0 -64
  151. package/scripts/review-core-shared-test-run.test.mjs +0 -275
  152. package/scripts/review-core-snapshot-path.test.mjs +0 -830
  153. package/scripts/review-core-specialist-scratch.test.mjs +0 -191
  154. package/scripts/review-core-testcmd.test.mjs +0 -335
  155. package/scripts/review-core-unrun.test.mjs +0 -566
  156. package/scripts/review-core-unverified-discriminant.test.mjs +0 -208
  157. package/scripts/review-eval-resolver-path.test.mjs +0 -55
  158. package/scripts/review-host-fixture.mjs +0 -89
  159. package/scripts/review-in-run-retry.test.mjs +0 -211
  160. package/scripts/review-no-vendor-dispatch.test.mjs +0 -45
  161. package/scripts/review-path-default.test.mjs +0 -796
  162. package/scripts/review-runner-spawns.test.mjs +0 -95
  163. package/scripts/review-runner.test.mjs +0 -166
  164. package/scripts/review-tier-audit.test.mjs +0 -140
  165. package/scripts/run-artifact-pr-prose.test.mjs +0 -341
  166. package/scripts/run-merge-bot-prose.test.mjs +0 -1413
  167. package/scripts/run-team-local-hook.test.mjs +0 -442
  168. package/scripts/scratch-partition-invariant-prose.test.mjs +0 -74
  169. package/scripts/scripts-path-citation-sweep.test.mjs +0 -73
  170. package/scripts/section-between-guard-prose.test.mjs +0 -379
  171. package/scripts/select-dimensions.test.mjs +0 -674
  172. package/scripts/shared-refusal.test.mjs +0 -388
  173. package/scripts/shell-traps-prose.test.mjs +0 -504
  174. package/scripts/shortlist.test.mjs +0 -380
  175. package/scripts/slow-transport.mjs +0 -72
  176. package/scripts/snapshot-repo.test.mjs +0 -1006
  177. package/scripts/snapshot-runner-audience-prose.test.mjs +0 -130
  178. package/scripts/spend-view.test.mjs +0 -312
  179. package/scripts/staleness-qualifier-prose.test.mjs +0 -251
  180. package/scripts/staleness-verdict-prose.test.mjs +0 -142
  181. package/scripts/staleness.test.mjs +0 -893
  182. package/scripts/stalled-member-liveness-prose.test.mjs +0 -219
  183. package/scripts/stash-prohibition-prose.test.mjs +0 -313
  184. package/scripts/strip-comments.mjs +0 -44
  185. package/scripts/temp-dir.mjs +0 -47
  186. package/scripts/ticket-router.test.mjs +0 -981
  187. package/scripts/tier-check.test.mjs +0 -828
  188. package/scripts/tier-outcomes-header.test.mjs +0 -518
  189. package/scripts/tier-outcomes.test.mjs +0 -572
  190. package/scripts/tier-roles.test.mjs +0 -535
  191. package/scripts/tracker-block-copy-prose.test.mjs +0 -288
  192. package/scripts/triage-labels-gloss-prose.test.mjs +0 -97
  193. package/scripts/unattended-git-sweep.test.mjs +0 -142
  194. package/scripts/verify-sha-exit2-prose.test.mjs +0 -269
  195. package/scripts/verify-sha.test.mjs +0 -692
  196. package/scripts/watcher-degraded-block.test.mjs +0 -369
  197. package/scripts/watcher-key-prose.test.mjs +0 -106
  198. package/scripts/within-run-pair-prose.test.mjs +0 -212
  199. package/scripts/worktree-audit.test.mjs +0 -1408
  200. package/scripts/worktree-head-prose.test.mjs +0 -276
  201. package/scripts/worktree-listing-sweep.test.mjs +0 -217
  202. package/scripts/worktree-model-prose.test.mjs +0 -216
  203. package/scripts/worktree-porcelain.mjs +0 -35
  204. package/scripts/worktree-porcelain.test.mjs +0 -102
@@ -1,138 +0,0 @@
1
- // #1856, ruled on #1821 (map #1768). The map's standing rule is that the word
2
- // "wave" is gone: the fleet loop has no waves (ADR 0012), and a word that
3
- // survives in a comment, a notice or a fixture name keeps teaching the unit
4
- // that was retired. #1821 measured 58 lines in 37 files still carrying it after
5
- // the prose tree was clean, and the sweep that emptied that list is only as
6
- // durable as whatever notices the next one. This file is what notices.
7
- //
8
- // SCOPE is every tracked file except the records, which are kept as written:
9
- // `docs/adr/`, `docs/specs/`, `docs/research/` and `docs/metrics/`, matched as
10
- // path PREFIXES from the repo root, so a lookalike directory elsewhere
11
- // (`docs/adrs/`, `plugin/docs/adr/`) is live text and swept. New ADRs and
12
- // dated specs land under those prefixes, so writing history stays free.
13
- //
14
- // EXEMPTIONS are exactly two, and nothing else is one: `CONTEXT.md` lines that
15
- // START with `_Avoid_:` (the glossary names the word in order to retire it),
16
- // and this file, which has to spell the word to look for it. Neither widens
17
- // to its neighbours — an `_Avoid_:` line in any other file, an indented one,
18
- // or a CONTEXT.md body line is still a hit.
19
- //
20
- // The PATTERN is #1821's, case-insensitive: `\bwav(e|es|ed|ing)\b`. The
21
- // boundaries are what keep `microwave`, `wavelength` and `waveform` out; the
22
- // suffix list is what keeps `waves`, `waved` and `waving` in. A tracked file
23
- // NAME is matched too, because every path that cites such a file repeats the
24
- // word; it is reported without a line number.
25
- //
26
- // repo-root.mjs's `trackedPaths`, never a directory walk, for the reason
27
- // scripts-path-citation-sweep.test.mjs states: an untracked scratch file must
28
- // never become a false positive. It is the one discovery every sweep here
29
- // shares, for the reasons repo-root.mjs's `trackedFiles` states: `-z`, since
30
- // git C-quotes an unusual path in its default form; a scrubbed env, since an
31
- // ambient GIT_DIR silently answers for another repository; and no path the
32
- // working tree holds no file at, since reading one aborted the whole sweep
33
- // (#1910).
34
- //
35
- // KNOWN LIMIT, same as those siblings: needs an ambient `.git` to ask what is
36
- // tracked. Absent one the tree sweep DECLINES with a reason; the scanner's own
37
- // tests below still run.
38
- //
39
- // Zero deps: `node --test plugin/scripts/no-wave.test.mjs`.
40
-
41
- import { test } from "node:test";
42
- import assert from "node:assert/strict";
43
- import { readFileSync } from "node:fs";
44
- import { join } from "node:path";
45
- import { fileURLToPath } from "node:url";
46
- import { repoRoot, skipWithoutRepo, trackedPaths } from "./repo-root.mjs";
47
-
48
- const DIR = fileURLToPath(new URL(".", import.meta.url));
49
- const ROOT = repoRoot(DIR);
50
- const SKIP_WITHOUT_REPO = skipWithoutRepo(ROOT, "the no-wave sweep over the tracked tree");
51
-
52
- const WAVE = /\bwav(?:e|es|ed|ing)\b/i;
53
- const RECORDS = ["docs/adr/", "docs/specs/", "docs/research/", "docs/metrics/"];
54
- // Hardcoded rather than derived: if this file moves, the exemption goes stale
55
- // and the sweep reds on this file's own spelling of the word — loudly, and in
56
- // the direction that gets it fixed.
57
- const SELF = "plugin/scripts/no-wave.test.mjs";
58
- const GLOSSARY = "CONTEXT.md";
59
- const AVOID = "_Avoid_:";
60
-
61
- /**
62
- * Every hit in one tracked file, as `path:line: text` (or `path: file name`
63
- * for the name itself). Empty for a record or for this file.
64
- */
65
- function waveHits(path, text) {
66
- if (path === SELF || RECORDS.some((prefix) => path.startsWith(prefix))) return [];
67
- const hits = [];
68
- if (WAVE.test(path)) hits.push(`${path}: file name`);
69
- text.split("\n").forEach((line, i) => {
70
- if (!WAVE.test(line)) return;
71
- if (path === GLOSSARY && line.startsWith(AVOID)) return;
72
- hits.push(`${path}:${i + 1}: ${line.trim()}`);
73
- });
74
- return hits;
75
- }
76
-
77
- test("scanner: every word form, in any case, is a hit named by file:line", () => {
78
- const text = ["clean line", "Wave one", "a per-wave rate", "two waves", "waved it on", "waving", "merge-bot-<WAVE#>"].join("\n");
79
- assert.deepEqual(waveHits("plugin/x.md", text), [
80
- "plugin/x.md:2: Wave one",
81
- "plugin/x.md:3: a per-wave rate",
82
- "plugin/x.md:4: two waves",
83
- "plugin/x.md:5: waved it on",
84
- "plugin/x.md:6: waving",
85
- "plugin/x.md:7: merge-bot-<WAVE#>",
86
- ]);
87
- });
88
-
89
- test("scanner: a word that merely contains the letters is not a hit", () => {
90
- // The ACCEPT half. Without the boundaries the gate would refuse ordinary
91
- // English, and the obvious way to quiet a gate like that is to delete it.
92
- assert.deepEqual(waveHits("plugin/x.md", "microwave\nwavelength\nwaveform\nwavy\nwaver"), []);
93
- });
94
-
95
- test("scanner: the records and CONTEXT.md's _Avoid_: lines are exempt, and nothing that merely resembles them", () => {
96
- for (const record of ["docs/adr/0012-x.md", "docs/specs/x.md", "docs/research/x.md", "docs/metrics/x.tsv"]) {
97
- assert.deepEqual(waveHits(record, "no waves"), [], `${record} is a record and must be kept as written`);
98
- }
99
- assert.deepEqual(waveHits(SELF, "wave"), [], "this file has to spell the word to look for it");
100
- assert.deepEqual(waveHits(GLOSSARY, "_Avoid_: queue, pool, wave"), [], "the glossary retires the word by naming it");
101
-
102
- assert.deepEqual(waveHits("docs/adrs/x.md", "wave"), ["docs/adrs/x.md:1: wave"], "a lookalike of a record prefix is live text");
103
- assert.deepEqual(waveHits("plugin/docs/adr/x.md", "wave"), ["plugin/docs/adr/x.md:1: wave"], "a record prefix matches from the repo root only");
104
- assert.deepEqual(waveHits("docs/agents/x.md", "wave"), ["docs/agents/x.md:1: wave"], "docs/ outside the four record paths is live text");
105
- assert.deepEqual(waveHits(GLOSSARY, "The wave is gone."), ["CONTEXT.md:1: The wave is gone."], "a glossary body line is live text");
106
- assert.deepEqual(waveHits(GLOSSARY, " _Avoid_: wave"), ["CONTEXT.md:1: _Avoid_: wave"], "only a line that STARTS with _Avoid_: is exempt");
107
- assert.deepEqual(waveHits("README.md", "_Avoid_: wave"), ["README.md:1: _Avoid_: wave"], "the _Avoid_: exemption is CONTEXT.md's alone");
108
- });
109
-
110
- test("scanner: a tracked file whose name carries the word is a hit even when its content is clean", () => {
111
- assert.deepEqual(waveHits("plugin/workflows/merge-wave.js", "export const meta = {};\n"), [
112
- "plugin/workflows/merge-wave.js: file name",
113
- ]);
114
- });
115
-
116
- /** Every tracked path, repo-relative — what the rule governs. */
117
- const FILES = ROOT === null ? [] : trackedPaths(ROOT);
118
-
119
- test("the sweep sees the tree it is supposed to police", { skip: SKIP_WITHOUT_REPO }, () => {
120
- // A guard on the guard: a `git ls-files` that answers nothing turns the
121
- // sweep below into a vacuous pass over an empty list — green, and blind.
122
- assert.ok(
123
- FILES.length > 200,
124
- `trackedPaths(ROOT) returned only ${FILES.length} entries — too few to be this repo's real tree, and the sweep below would pass vacuously`,
125
- );
126
- assert.ok(FILES.includes(SELF), `${SELF} is not a tracked path, so its self-exemption names nothing — update SELF`);
127
- assert.ok(FILES.includes(GLOSSARY), `${GLOSSARY} is not a tracked path, so the _Avoid_: exemption names nothing — update GLOSSARY`);
128
- });
129
-
130
- test("no tracked file outside the records carries the word", { skip: SKIP_WITHOUT_REPO }, () => {
131
- const hits = FILES.flatMap((path) => waveHits(path, readFileSync(join(ROOT, path), "utf8")));
132
- // `ok` rather than `deepEqual`: the message already lists every hit, one per
133
- // line, and a structural diff would print the same list a second time.
134
- assert.ok(
135
- hits.length === 0,
136
- `the word is retired outside docs/adr/, docs/specs/, docs/research/ and docs/metrics/ (#1821) — reword each hit:\n${hits.join("\n")}`,
137
- );
138
- });