@feigi/fleet-ctl 3.23.36 → 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,165 +0,0 @@
1
- import { test } from "node:test";
2
- import assert from "node:assert/strict";
3
- import { readFileSync } from "node:fs";
4
- import { join } from "node:path";
5
- import { anchorAt, phrase, stripQuoteGutter } from "./prose-pin.mjs";
6
-
7
- // #172. A fleet member learns what it is, and what to run, only from the blocks
8
- // run-team phase 2 carries VERBATIM. Everything else in that section is
9
- // controller-facing prose the member sees only if the controller paraphrases it
10
- // — and `sizing-a-ticket`'s fleet entry point is CONDITIONED on the reader being
11
- // an unattended fleet member. Take that condition's evidence away and the member
12
- // reads itself as a solo session, waits on a user to settle the open design
13
- // choices before planning, and parks on an answer no unattended member can obtain.
14
- //
15
- // So the pin is on LOCATION, not vocabulary. Moving these words back out into
16
- // prose IS the defect, and every word would still be somewhere in the file — a
17
- // pin that only searched the section would stay green through the whole bug.
18
- //
19
- // The ceiling these six tests have, measured against them: they are PRESENCE
20
- // pins over a slice, which covers the location half and only that half. Moving
21
- // the identity lines back out of the `>` quoting fails the suite (pass 5, fail
22
- // 1), but a sentence APPENDED inside a block that contradicts a pinned one does
23
- // not — a carve-out after the identity block, or a conditional permission after
24
- // `Never apply ready-to-merge`, each left all 6 green.
25
- //
26
- // #1002 closed that half elsewhere rather than by tightening these regexes,
27
- // which was tried and rejected on measurement: asserting the absence of
28
- // arbitrary natural-language negation is unbounded, and a word blacklist
29
- // ("unless", "except") buys a false-positive trap on ordinary prose rather than
30
- // the guarantee. `dispatch-block-golden-prose.test.mjs` compares every block in
31
- // this region — the identity block included — against a whole-block golden
32
- // fixture it owns, so an appended carve-out reds there on the equality.
33
- //
34
- // These pins stay because they say something that file's diff does not: WHICH
35
- // rule went missing, and the one thing a golden cannot express — the ACCEPT
36
- // side of `sizing-a-ticket`'s own conditioning, which lives in another file
37
- // entirely (see the last test below).
38
- //
39
- // #1465. Every multi-word pin below goes through `phrase()`, and so do the two
40
- // slice anchors. A pin carrying a hardcoded single space reds on a pure rewrap
41
- // of the runbook — no wording changed, no rule weakened — and that red is worse
42
- // than a missing pin, because it teaches its reader that this suite reds for no
43
- // reason. Measured before the conversion, against copies of both source files
44
- // reflowed with the gutter preserved: at 55 columns 4 of these 6 tests red, and
45
- // at 45 the START anchor's own `indexOf` misses, so 5 of them throw out of
46
- // `memberBlocks()` without reaching a pin at all. The wrap width only samples
47
- // which pin happens to fire, so the conversion is the whole file's, not the
48
- // three phrases a rewrap was first seen to break.
49
- //
50
- // `phrase()`'s `\s+` cannot cross the `>` gutter that a wrap inside these
51
- // blocks leaves behind, so the phrase pins match `memberProse()` — the region
52
- // with the gutter stripped. `memberBlocks()` keeps the raw bytes for the first
53
- // test, the one place the gutter is the subject rather than an obstacle.
54
- const REPO = join(import.meta.dirname, "..");
55
- const RUN_TEAM = readFileSync(join(REPO, "skills", "run-team", "SKILL.md"), "utf8");
56
- const SIZING = readFileSync(join(REPO, "skills", "sizing-a-ticket", "SKILL.md"), "utf8");
57
-
58
- // #1804: the member-facing text is the BODY of the implementer agent
59
- // definition (spec 2026-09-24 § 2 Decision 2), which each harness injects as
60
- // the member's system prompt — the verbatim carrier the `>` blocks in phase 2
61
- // used to be. Byte-identical in every `fleet-implementer-<cell>` file
62
- // (implementer-model-tier.test.mjs pins that), so one file stands for all.
63
- const AGENT_FILE = readFileSync(join(REPO, "agents", "fleet-implementer-slow-high.agent.md"), "utf8");
64
- const memberBlocks = () => AGENT_FILE.split("---").slice(2).join("---");
65
- const memberProse = () => stripQuoteGutter(memberBlocks());
66
- const phase2 = () => RUN_TEAM.slice(anchorAt(RUN_TEAM, "## Phase 2", "run-team phase 2"), anchorAt(RUN_TEAM, "## Phase 3", "run-team phase 3"));
67
-
68
- test("every member-facing rule sits in the agent body the harness injects, not in the controller's phase 2", () => {
69
- assert.ok(memberBlocks().trim().length > 0, "the implementer agent body is empty — the member receives no rules at all");
70
- // The location defect, restated for the new carrier. A rule the controller
71
- // reads in phase 2 reaches the member only if the controller retypes it,
72
- // and a controller that drops it emits no error. A copy left there as well
73
- // is the other half: two sources free to drift, one of which no member reads.
74
- for (const opener of ["**You are an unattended fleet member.**", "Run `sizing-a-ticket`", "`next-ticket` **step 7**"]) {
75
- assert.match(memberProse(), phrase(opener), `the implementer agent body no longer carries "${opener}"`);
76
- assert.doesNotMatch(phase2(), phrase(opener), `run-team/SKILL.md's phase 2 carries "${opener}" again — the member reads the agent body, so this copy is either dead or a second source to drift`);
77
- }
78
- });
79
-
80
- test("the member is told it is unattended, in text it receives verbatim", () => {
81
- const prose = memberProse();
82
-
83
- // Without this, `sizing-a-ticket`'s `**Fleet member on heavy:**` condition
84
- // cannot fire. The only prior signal was the incidental word "controller".
85
- assert.match(
86
- prose,
87
- phrase("**You are an unattended fleet member.**"),
88
- "no block tells the member it is an unattended fleet member — the sizing skill's fleet branch cannot fire",
89
- );
90
- assert.match(
91
- prose,
92
- phrase("No maintainer is reachable"),
93
- "the member is not told a maintainer is unreachable, so it can still read a gated skill as worth waiting on",
94
- );
95
- });
96
-
97
- test("the sizing instruction reaches the member verbatim, on either row", () => {
98
- const prose = memberProse();
99
- assert.match(prose, phrase("Run `sizing-a-ticket`"), "the sizing instruction is no longer in a verbatim block");
100
- assert.match(
101
- prose,
102
- phrase("**either row**"),
103
- "the member is not told both rows are workable, so a heavy row reads as a reason to bail",
104
- );
105
- });
106
-
107
- test("the handoff names its destination, and a light-row member cannot read it as the heavy-row entry", () => {
108
- const prose = memberProse();
109
-
110
- // `next-ticket` steps 1-5 are selection and claiming; step 6 is the sizing run.
111
- // The pre-fix text said "the member starts there" with no antecedent, and two
112
- // reviewing specialists bound it differently. So match the number together
113
- // with the action beside it: bare presence checks for "step 6" and "step 7"
114
- // BOTH stay green when the two numbers are swapped, and a member reading that
115
- // runs the PR steps at the sizing checkpoint and vice versa.
116
- assert.match(
117
- prose,
118
- phrase("`next-ticket` **step 6**, which is that sizing run"),
119
- "step 6 is no longer bound to the sizing run — its destination is a pronoun again, or the number now names another step",
120
- );
121
- // The wrong binding, and the one that bites: the nearest place-like phrase was
122
- // the heavy-row entry point, which would send a LIGHT-row member to plan-writing.
123
- // So the member prompt must not carry the heavy row's own first action.
124
- assert.doesNotMatch(
125
- prose,
126
- phrase("write the plan under your own scratch path"),
127
- "the member prompt names the heavy-row entry point, which a light-row member would follow",
128
- );
129
- });
130
-
131
- test("the PR handoff reaches the member verbatim, including what it must never do", () => {
132
- const prose = memberProse();
133
- assert.match(
134
- prose,
135
- phrase("`next-ticket` **step 7**: rebase, re-run tests, push"),
136
- "step 7 is no longer bound to the rebase/push/PR action — the PR step is not carried verbatim, or the number now names another step",
137
- );
138
- assert.match(prose, phrase("`Closes #N`"), "the member is not told to close its issue from the PR body");
139
- assert.match(
140
- prose,
141
- phrase("Never apply `ready-to-merge`, never merge"),
142
- "the two prohibitions the member must never learn by paraphrase are no longer in the block",
143
- );
144
- });
145
-
146
- test("the sizing skill stays conditioned — a solo session still runs the interactive path", () => {
147
- // The ACCEPT side. #172 was fixed by telling the member what it is, NOT by
148
- // deleting the distinction: triage rejected making this entry unconditional,
149
- // because it correctly serves solo sessions, which do have a user to approve.
150
- assert.match(
151
- SIZING,
152
- phrase("**Fleet member on heavy: write the plan under your own scratch path"),
153
- "the fleet heavy-row branch is gone — sizing no longer tells a member from a solo session",
154
- );
155
- assert.match(
156
- SIZING,
157
- phrase("Heavy is never a reason to give up"),
158
- "the fleet heavy-row branch no longer says heavy is never a reason to give up",
159
- );
160
- assert.match(
161
- SIZING,
162
- phrase("Solo session has a user: settle the open design choices with them before planning"),
163
- "a solo session no longer settles design with its user before planning",
164
- );
165
- });