@feigi/fleet-ctl 3.23.36 → 3.23.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/cell-readout.mjs +38 -11
- package/scripts/main-checkout.mjs +1 -1
- package/scripts/member-write-guard.mjs +1 -1
- package/scripts/repo-root.mjs +1 -1
- package/skills/run-team/references/reaping.md +1 -1
- package/scripts/agent-test-dir-prose.test.mjs +0 -59
- package/scripts/agent-test.test.mjs +0 -1640
- package/scripts/ambient-git-vars-mjs-prose.test.mjs +0 -397
- package/scripts/ambient-git-vars-prose.test.mjs +0 -192
- package/scripts/ancestry-check-position-prose.test.mjs +0 -175
- package/scripts/apply-ruleset.test.mjs +0 -421
- package/scripts/arg-header-probes-prose.test.mjs +0 -394
- package/scripts/arg.test.mjs +0 -1354
- package/scripts/board-cli.test.mjs +0 -710
- package/scripts/board-identity.test.mjs +0 -429
- package/scripts/board-liveness-banner.test.mjs +0 -119
- package/scripts/board-prev-shape.test.mjs +0 -228
- package/scripts/board-tryparse-null.test.mjs +0 -119
- package/scripts/board.test.mjs +0 -3121
- package/scripts/brief-after-cut-prose.test.mjs +0 -53
- package/scripts/candidates-exit3-prose.test.mjs +0 -302
- package/scripts/candidates.test.mjs +0 -2312
- package/scripts/caveat-unification-prose.test.mjs +0 -98
- package/scripts/cell-readout.test.mjs +0 -615
- package/scripts/ci-comment-rot-prose.test.mjs +0 -2025
- package/scripts/ci-completes-premise-prose.test.mjs +0 -257
- package/scripts/ci-state-prose.test.mjs +0 -113
- package/scripts/ci-state.test.mjs +0 -1933
- package/scripts/ci-vacuous-green.test.mjs +0 -368
- package/scripts/citation-sweep-prose.test.mjs +0 -1712
- package/scripts/claim-lifecycle.test.mjs +0 -187
- package/scripts/claim-ticket.test.mjs +0 -1122
- package/scripts/closing-keyword-prose.test.mjs +0 -193
- package/scripts/cockpit-launch-idempotent-prose.test.mjs +0 -165
- package/scripts/cockpit-tick-nonblocking.test.mjs +0 -210
- package/scripts/compute-board.test.mjs +0 -1214
- package/scripts/compute-spend.test.mjs +0 -517
- package/scripts/consumer-technology-prose.test.mjs +0 -126
- package/scripts/cross-repo-citation-prose.test.mjs +0 -155
- package/scripts/cwd-isolation-pins.mjs +0 -83
- package/scripts/dedupe-guard-prose.test.mjs +0 -243
- package/scripts/delete-merged-branch.test.mjs +0 -576
- package/scripts/derive-testcmd.test.mjs +0 -595
- package/scripts/diff-stats.test.mjs +0 -404
- package/scripts/dispatch-block-golden-prose.test.mjs +0 -1130
- package/scripts/dispatch-block-pins-prose.test.mjs +0 -615
- package/scripts/dispositions-check.test.mjs +0 -936
- package/scripts/dispositions-gate-prose.test.mjs +0 -129
- package/scripts/drop-merged-label.test.mjs +0 -479
- package/scripts/exec-stub.mjs +0 -93
- package/scripts/exec-stub.test.mjs +0 -69
- package/scripts/expected-jobs-prose.test.mjs +0 -80
- package/scripts/fan-out-authorization-prose.test.mjs +0 -80
- package/scripts/filing-bar-seat-prose.test.mjs +0 -242
- package/scripts/filing-claim-bar-prose.test.mjs +0 -166
- package/scripts/finisher-died-prose.test.mjs +0 -31
- package/scripts/finisher-dispatch-premise-prose.test.mjs +0 -312
- package/scripts/finisher-halt-prose.test.mjs +0 -106
- package/scripts/finisher-name-prose.test.mjs +0 -134
- package/scripts/finisher-own-tree-prose.test.mjs +0 -299
- package/scripts/finisher-pin-race-prose.test.mjs +0 -339
- package/scripts/finisher-test-verdict-prose.test.mjs +0 -102
- package/scripts/fix-applier-correction-rules-prose.test.mjs +0 -202
- package/scripts/fix-applier-result-file-prose.test.mjs +0 -149
- package/scripts/fleet-bootstrap.test.mjs +0 -75
- package/scripts/fleet-heartbeat.test.mjs +0 -450
- package/scripts/fleet-provenance.test.mjs +0 -138
- package/scripts/fleet-run.test.mjs +0 -90
- package/scripts/fleet-state.test.mjs +0 -460
- package/scripts/fleet-tick-prose.test.mjs +0 -300
- package/scripts/fleet-tick.test.mjs +0 -2444
- package/scripts/force-with-lease-reason-prose.test.mjs +0 -184
- package/scripts/frontmatter-check.test.mjs +0 -436
- package/scripts/git-env.test.mjs +0 -149
- package/scripts/git-status-untracked-mode-sweep.test.mjs +0 -216
- package/scripts/gone-walk.test.mjs +0 -213
- package/scripts/gp-sep-invariant-prose.test.mjs +0 -188
- package/scripts/head-moved-after-label-prose.test.mjs +0 -233
- package/scripts/immutable-body-claim-prose.test.mjs +0 -204
- package/scripts/implementer-model-tier.test.mjs +0 -235
- package/scripts/inflight-citation-prose.test.mjs +0 -144
- package/scripts/inflight-exit2-prose.test.mjs +0 -81
- package/scripts/inflight-probe-guard-prose.test.mjs +0 -109
- package/scripts/inflight-scan-scope-prose.test.mjs +0 -57
- package/scripts/inflight.test.mjs +0 -2882
- package/scripts/injection-control-prose.test.mjs +0 -404
- package/scripts/install-root-audit.test.mjs +0 -464
- package/scripts/instrument-check-prose.test.mjs +0 -235
- package/scripts/instruments.test.mjs +0 -787
- package/scripts/is-cli.test.mjs +0 -99
- package/scripts/issue-tracker-prose.test.mjs +0 -71
- package/scripts/json.test.mjs +0 -364
- package/scripts/ledger-dispatch.test.mjs +0 -927
- package/scripts/ledger-grammar.test.mjs +0 -227
- package/scripts/ledger-read-require-file.test.mjs +0 -197
- package/scripts/ledger-rotate.test.mjs +0 -142
- package/scripts/ledger.test.mjs +0 -3436
- package/scripts/line-distance-prose.test.mjs +0 -245
- package/scripts/liveness-rationale-prose.test.mjs +0 -83
- package/scripts/locale-pin-prose.test.mjs +0 -189
- package/scripts/main-checkout.test.mjs +0 -332
- package/scripts/member-outcome-prose.test.mjs +0 -167
- package/scripts/member-outcomes-header.test.mjs +0 -129
- package/scripts/member-outcomes-prose.test.mjs +0 -63
- package/scripts/member-outcomes.test.mjs +0 -638
- package/scripts/member-prompt-prose.test.mjs +0 -165
- package/scripts/member-record.test.mjs +0 -541
- package/scripts/member-write-guard.test.mjs +0 -214
- package/scripts/merge-commit-probe-prose.test.mjs +0 -122
- package/scripts/merge-gate.test.mjs +0 -613
- package/scripts/muted-git-guard-sweep.test.mjs +0 -493
- package/scripts/net-ssh-precedence-prose.test.mjs +0 -91
- package/scripts/net-watchdog-prose.test.mjs +0 -79
- package/scripts/net.test.mjs +0 -211
- package/scripts/no-ci-gate-prose.test.mjs +0 -108
- package/scripts/no-undo-audit.test.mjs +0 -3961
- package/scripts/no-wave.test.mjs +0 -138
- package/scripts/node-floor-sweep.test.mjs +0 -611
- package/scripts/pointer-target-prose.test.mjs +0 -186
- package/scripts/pr-cost.test.mjs +0 -521
- package/scripts/pr-overlap.test.mjs +0 -692
- package/scripts/printf-die-sweep.test.mjs +0 -384
- package/scripts/prompt-renderer.mjs +0 -40
- package/scripts/prompt-renderer.test.mjs +0 -68
- package/scripts/prose-pin.mjs +0 -807
- package/scripts/prose-pin.test.mjs +0 -1034
- package/scripts/prove-merge.test.mjs +0 -995
- package/scripts/pull-table-relabel-prose.test.mjs +0 -60
- package/scripts/quiet-payload-prose.test.mjs +0 -222
- package/scripts/reap-cherry-check-prose.test.mjs +0 -80
- package/scripts/reap.test.mjs +0 -4432
- package/scripts/reaping-prose.test.mjs +0 -239
- package/scripts/reaping-reap-authorizers-prose.test.mjs +0 -112
- package/scripts/reaping-release-authorizers-prose.test.mjs +0 -85
- package/scripts/recipe-derivation-prose.test.mjs +0 -112
- package/scripts/recipe-prove.test.mjs +0 -1042
- package/scripts/refuter-scratch-prose.test.mjs +0 -135
- package/scripts/release-label-required-prose.test.mjs +0 -71
- package/scripts/release-label-split-prose.test.mjs +0 -184
- package/scripts/release-ticket-reap-pairing-prose.test.mjs +0 -63
- package/scripts/release-ticket.test.mjs +0 -5099
- package/scripts/renovate-release-contract.test.mjs +0 -379
- package/scripts/repo-root.test.mjs +0 -873
- package/scripts/reporter-output-rule-prose.test.mjs +0 -208
- package/scripts/review-agent-report-only.test.mjs +0 -49
- package/scripts/review-core-booking.test.mjs +0 -35
- package/scripts/review-core-cwd-isolation.test.mjs +0 -374
- package/scripts/review-core-reads.test.mjs +0 -478
- package/scripts/review-core-refuter-scratch.test.mjs +0 -148
- package/scripts/review-core-scratch-refusal.test.mjs +0 -64
- package/scripts/review-core-shared-test-run.test.mjs +0 -275
- package/scripts/review-core-snapshot-path.test.mjs +0 -830
- package/scripts/review-core-specialist-scratch.test.mjs +0 -191
- package/scripts/review-core-testcmd.test.mjs +0 -335
- package/scripts/review-core-unrun.test.mjs +0 -566
- package/scripts/review-core-unverified-discriminant.test.mjs +0 -208
- package/scripts/review-eval-resolver-path.test.mjs +0 -55
- package/scripts/review-host-fixture.mjs +0 -89
- package/scripts/review-in-run-retry.test.mjs +0 -211
- package/scripts/review-no-vendor-dispatch.test.mjs +0 -45
- package/scripts/review-path-default.test.mjs +0 -796
- package/scripts/review-runner-spawns.test.mjs +0 -95
- package/scripts/review-runner.test.mjs +0 -166
- package/scripts/review-tier-audit.test.mjs +0 -140
- package/scripts/run-artifact-pr-prose.test.mjs +0 -341
- package/scripts/run-merge-bot-prose.test.mjs +0 -1413
- package/scripts/run-team-local-hook.test.mjs +0 -442
- package/scripts/scratch-partition-invariant-prose.test.mjs +0 -74
- package/scripts/scripts-path-citation-sweep.test.mjs +0 -73
- package/scripts/section-between-guard-prose.test.mjs +0 -379
- package/scripts/select-dimensions.test.mjs +0 -674
- package/scripts/shared-refusal.test.mjs +0 -388
- package/scripts/shell-traps-prose.test.mjs +0 -504
- package/scripts/shortlist.test.mjs +0 -380
- package/scripts/slow-transport.mjs +0 -72
- package/scripts/snapshot-repo.test.mjs +0 -1006
- package/scripts/snapshot-runner-audience-prose.test.mjs +0 -130
- package/scripts/spend-view.test.mjs +0 -312
- package/scripts/staleness-qualifier-prose.test.mjs +0 -251
- package/scripts/staleness-verdict-prose.test.mjs +0 -142
- package/scripts/staleness.test.mjs +0 -893
- package/scripts/stalled-member-liveness-prose.test.mjs +0 -219
- package/scripts/stash-prohibition-prose.test.mjs +0 -313
- package/scripts/strip-comments.mjs +0 -44
- package/scripts/temp-dir.mjs +0 -47
- package/scripts/ticket-router.test.mjs +0 -981
- package/scripts/tier-check.test.mjs +0 -828
- package/scripts/tier-outcomes-header.test.mjs +0 -518
- package/scripts/tier-outcomes.test.mjs +0 -572
- package/scripts/tier-roles.test.mjs +0 -535
- package/scripts/tracker-block-copy-prose.test.mjs +0 -288
- package/scripts/triage-labels-gloss-prose.test.mjs +0 -97
- package/scripts/unattended-git-sweep.test.mjs +0 -142
- package/scripts/verify-sha-exit2-prose.test.mjs +0 -269
- package/scripts/verify-sha.test.mjs +0 -692
- package/scripts/watcher-degraded-block.test.mjs +0 -369
- package/scripts/watcher-key-prose.test.mjs +0 -106
- package/scripts/within-run-pair-prose.test.mjs +0 -212
- package/scripts/worktree-audit.test.mjs +0 -1408
- package/scripts/worktree-head-prose.test.mjs +0 -276
- package/scripts/worktree-listing-sweep.test.mjs +0 -217
- package/scripts/worktree-model-prose.test.mjs +0 -216
- package/scripts/worktree-porcelain.mjs +0 -35
- package/scripts/worktree-porcelain.test.mjs +0 -102
package/package.json
CHANGED
package/scripts/cell-readout.mjs
CHANGED
|
@@ -66,7 +66,7 @@ import { readFileSync } from "node:fs";
|
|
|
66
66
|
import { makeDie, defineFlags } from "./arg.mjs";
|
|
67
67
|
import { isCLI } from "./is-cli.mjs";
|
|
68
68
|
import { CELL, POLICY_CELL } from "./ledger-grammar.mjs";
|
|
69
|
-
import { parseTsv as parseMemberTsv } from "./member-outcomes.mjs";
|
|
69
|
+
import { formatTsv as formatMemberTsv, parseTsv as parseMemberTsv } from "./member-outcomes.mjs";
|
|
70
70
|
import { parseFeatures } from "./pr-cost.mjs";
|
|
71
71
|
import { VERDICT, VERDICT_COLUMNS } from "./tier-outcomes.mjs";
|
|
72
72
|
|
|
@@ -103,16 +103,33 @@ function admissibleMember(pull, members) {
|
|
|
103
103
|
return m;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
// One member row per session+agent. A key repeated with different fields is
|
|
107
|
+
// refused rather than collapsed to whichever row came last; an identical
|
|
108
|
+
// repeat is one row.
|
|
109
|
+
function indexMembers(members) {
|
|
110
|
+
const byKey = new Map();
|
|
111
|
+
for (const m of members) {
|
|
112
|
+
const k = key(m.session, m.agent);
|
|
113
|
+
const held = byKey.get(k);
|
|
114
|
+
if (held && formatMemberTsv([held]) !== formatMemberTsv([m])) {
|
|
115
|
+
throw new Error(`member-outcomes session ${m.session} agent ${m.agent} has two rows with different fields`);
|
|
116
|
+
}
|
|
117
|
+
if (!held) byKey.set(k, m);
|
|
118
|
+
}
|
|
119
|
+
return byKey;
|
|
120
|
+
}
|
|
121
|
+
|
|
106
122
|
/**
|
|
107
123
|
* `cells`: one entry per cell other than the policy cell that has a
|
|
108
124
|
* ticket-features row, `{ cell, comparisons, runDates, dates, models, gated }`,
|
|
109
125
|
* sorted by cell. `dates` is the comparisons' distinct run_dates, sorted;
|
|
110
126
|
* `models` maps each resolved model of the cell's admissible rows to its row
|
|
111
127
|
* count, largest first. `unjoined` counts Pulls with no member row. Throws on
|
|
112
|
-
* two ticket-features rows of one session+agent naming different cells
|
|
128
|
+
* two ticket-features rows of one session+agent naming different cells, and on
|
|
129
|
+
* a member-outcomes session+agent repeated with different fields.
|
|
113
130
|
*/
|
|
114
131
|
export function readout({ features, members }) {
|
|
115
|
-
const byKey =
|
|
132
|
+
const byKey = indexMembers(members);
|
|
116
133
|
const pulls = pullsOf(features);
|
|
117
134
|
const sessions = new Map();
|
|
118
135
|
const cells = new Map();
|
|
@@ -152,11 +169,12 @@ export function readout({ features, members }) {
|
|
|
152
169
|
* sorted by ticket, `run_date` the ruling's; `stop` is whether the stopping
|
|
153
170
|
* rule withdraws the cell. `verdicts` are parsed tier-outcomes.tsv rows.
|
|
154
171
|
* Throws on a counted ruling whose `closed_own_ticket` or `minted_false_claim`
|
|
155
|
-
* is not `yes` or `no`,
|
|
156
|
-
* `run_date` is not `YYYY-MM-DD
|
|
172
|
+
* is not `yes` or `no`, on a non-blank ruling row of a Pulled ticket whose
|
|
173
|
+
* `run_date` is not `YYYY-MM-DD`, and on a member-outcomes session+agent
|
|
174
|
+
* repeated with different fields.
|
|
157
175
|
*/
|
|
158
176
|
export function stoppingRule({ features, members, verdicts, added }) {
|
|
159
|
-
const byKey =
|
|
177
|
+
const byKey = indexMembers(members);
|
|
160
178
|
const rulings = new Map();
|
|
161
179
|
for (const v of verdicts) {
|
|
162
180
|
if (VERDICT_COLUMNS.every((c) => v[c] === "")) continue;
|
|
@@ -217,12 +235,21 @@ function main() {
|
|
|
217
235
|
try { return parse(text); }
|
|
218
236
|
catch (e) { die(`${path}: ${e.message}`); }
|
|
219
237
|
};
|
|
220
|
-
|
|
221
|
-
|
|
238
|
+
// A repeated session+agent naming different cells, or a member-outcomes one
|
|
239
|
+
// repeated with different fields, is refused while its file is loaded, so the
|
|
240
|
+
// refusal names the path that was read.
|
|
241
|
+
const features = load(featuresPath, (text) => {
|
|
242
|
+
const rows = parseFeatures(text);
|
|
243
|
+
pullsOf(rows);
|
|
244
|
+
return rows;
|
|
245
|
+
});
|
|
246
|
+
const members = load(membersPath, (text) => {
|
|
247
|
+
const rows = parseMemberTsv(text);
|
|
248
|
+
indexMembers(rows);
|
|
249
|
+
return rows;
|
|
250
|
+
});
|
|
222
251
|
|
|
223
|
-
|
|
224
|
-
try { ({ cells, unjoined } = readout({ features, members })); }
|
|
225
|
-
catch (e) { die(`${featuresPath}: ${e.message}`); }
|
|
252
|
+
const { cells, unjoined } = readout({ features, members });
|
|
226
253
|
const lines = [];
|
|
227
254
|
const notes = [];
|
|
228
255
|
if (unjoined > 0) {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
// main-checkout.mjs --check print the state. Exit 0 clean, 1 dirty,
|
|
69
69
|
// 2 unknown or no baseline.
|
|
70
70
|
//
|
|
71
|
-
// Zero deps:
|
|
71
|
+
// Zero deps: node builtins and sibling scripts only.
|
|
72
72
|
|
|
73
73
|
import { spawnSync } from "node:child_process";
|
|
74
74
|
import { createHash } from "node:crypto";
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
// inside one — and every git child gets `gitEnv()`, so an ambient GIT_DIR
|
|
61
61
|
// cannot answer for another repository (#1599).
|
|
62
62
|
//
|
|
63
|
-
// Zero deps:
|
|
63
|
+
// Zero deps: node builtins and sibling scripts only.
|
|
64
64
|
|
|
65
65
|
import { spawn } from "node:child_process";
|
|
66
66
|
import { realpathSync } from "node:fs";
|
package/scripts/repo-root.mjs
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
// loudly instead of waiting on each caller's
|
|
98
98
|
// guard to notice.
|
|
99
99
|
//
|
|
100
|
-
// Zero deps:
|
|
100
|
+
// Zero deps: node builtins and sibling scripts only.
|
|
101
101
|
|
|
102
102
|
import { execFileSync, spawnSync } from "node:child_process";
|
|
103
103
|
import { gitEnv } from "./git-env.mjs";
|
|
@@ -66,7 +66,7 @@ So nothing in the run cleans it up. Next run, the in-flight probe's local-worktr
|
|
|
66
66
|
|
|
67
67
|
**Which remedy depends on whether that directory still exists.** The registration outlives it: `worktree list --porcelain` keeps the entry, annotated `prunable`, after an `rm -rf`, so the blocker named a hand-release nobody could perform and every later run repeated it. When the directory is established gone the blocker names `git worktree prune` instead — that clears the entry and the next run releases (verified, git 2.50.1). Still a blocker, never a release: the worktree is not on the claim's branch, so releasing would delete a different ref and then reach the prune every `--apply` ends with, unanchoring a detached HEAD's commits as a side effect. Absence is established by walking up to the nearest ancestor that exists and requiring it to be searchable — the same predicate the dirty check uses, because `-e` is false both for a directory that is gone and for one inside a prefix we may not search, and pruning the second unregisters a worktree still holding uncommitted work.
|
|
68
68
|
|
|
69
|
-
Check:
|
|
69
|
+
Check: the script's own test suite — real throwaway repos, no mocked git history, one case per precondition proving it blocks on its own.
|
|
70
70
|
|
|
71
71
|
## Never reap a branch a live member is on
|
|
72
72
|
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// #102. PR #75 made `./agent-test <dir>` work, but the two documents that brief
|
|
2
|
-
// members still said `<file>`. Neither was falsified — a file argument works —
|
|
3
|
-
// so the capability stayed invisible to exactly the audience #75 was for: agents
|
|
4
|
-
// type a directory anyway, and before #75 the resulting MODULE_NOT_FOUND red got
|
|
5
|
-
// misread as a finding against the diff under review.
|
|
6
|
-
//
|
|
7
|
-
// Measured against this worktree's own runner before being written down: a
|
|
8
|
-
// directory holding one test file ran it (`ℹ tests 1`, exit 0), and an empty
|
|
9
|
-
// directory printed `agent-test: no test files under <dir>` and exited 1. The
|
|
10
|
-
// refusal is the half that has to be documented with the capability — appending
|
|
11
|
-
// nothing to argv leaves it empty, and bare `node --test` then discovers the
|
|
12
|
-
// whole worktree, a green for a suite nobody asked for.
|
|
13
|
-
//
|
|
14
|
-
// The clause is pinned VERBATIM in both documents, and by one regex set, because
|
|
15
|
-
// the two are the same brief written twice: run-team/SKILL.md's Phase 1 step and
|
|
16
|
-
// references/isolation.md's rationale for it. A fix landing in only one leaves
|
|
17
|
-
// whichever the reader reached still file-only.
|
|
18
|
-
//
|
|
19
|
-
// NOT pinned, deliberately — these mention `./agent-test` without claiming an
|
|
20
|
-
// argument shape, so they are not this ticket's class: the "filesystem isolation
|
|
21
|
-
// is not stack isolation" guard in both documents, the reused-worktree note in
|
|
22
|
-
// run-team/SKILL.md, review-and-fix.md's specialist test command, and
|
|
23
|
-
// references/reaping.md's note that the runner is an ignored file.
|
|
24
|
-
//
|
|
25
|
-
// THE CEILING, same as refuter-scratch-prose.test.mjs: PRESENCE pins over a
|
|
26
|
-
// bounded slice. A whole new sentence appended after the clause, carving out an
|
|
27
|
-
// exception, stays green; text spliced inside one does not. A reflow stays green
|
|
28
|
-
// by design — the words are pinned, not their layout.
|
|
29
|
-
import { test } from "node:test";
|
|
30
|
-
import assert from "node:assert/strict";
|
|
31
|
-
import { readFileSync } from "node:fs";
|
|
32
|
-
import { join } from "node:path";
|
|
33
|
-
import { between, phrase } from "./prose-pin.mjs";
|
|
34
|
-
|
|
35
|
-
const REPO = join(import.meta.dirname, "..");
|
|
36
|
-
const read = (...p) => readFileSync(join(REPO, ...p), "utf8");
|
|
37
|
-
const RUN_TEAM = read("skills", "run-team", "SKILL.md");
|
|
38
|
-
const ISOLATION = read("skills", "run-team", "references", "isolation.md");
|
|
39
|
-
|
|
40
|
-
const slices = [
|
|
41
|
-
["run-team/SKILL.md", () =>
|
|
42
|
-
between(RUN_TEAM, "Materialize the isolation envelope as a file", "A reused worktree may lack the runner", "run-team/SKILL.md")],
|
|
43
|
-
["references/isolation.md", () =>
|
|
44
|
-
between(ISOLATION, "## Materialize the isolation envelope as a file", "## Filesystem isolation is not stack isolation", "references/isolation.md")],
|
|
45
|
-
];
|
|
46
|
-
|
|
47
|
-
for (const [name, slice] of slices) {
|
|
48
|
-
test(`${name} briefs the runner with a shape that admits a directory`, () => {
|
|
49
|
-
assert.match(slice(), phrase("`./agent-test <file-or-dir>`"));
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
test(`${name} says a directory expands to the test files under it`, () => {
|
|
53
|
-
assert.match(slice(), phrase("A directory works too and expands to the test files under it"));
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
test(`${name} says a directory with no test files refuses`, () => {
|
|
57
|
-
assert.match(slice(), phrase("one holding none refuses rather than passing vacuously"));
|
|
58
|
-
});
|
|
59
|
-
}
|