@feigi/fleet-ctl 0.0.0
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/.claude-plugin/plugin.json +9 -0
- package/LICENSE +202 -0
- package/NOTICE +18 -0
- package/agents/fleet-finisher.agent.md +7 -0
- package/agents/fleet-implementer-alt.agent.md +210 -0
- package/agents/fleet-implementer.agent.md +210 -0
- package/agents/fleet-merge-bot.agent.md +7 -0
- package/agents/fleet-review-comments.agent.md +40 -0
- package/agents/fleet-review-correctness.agent.md +43 -0
- package/agents/fleet-review-runner.agent.md +73 -0
- package/agents/fleet-review-silent-failure.agent.md +49 -0
- package/agents/fleet-review-simplify.agent.md +46 -0
- package/agents/fleet-review-snapshot.agent.md +24 -0
- package/agents/fleet-review-tests.agent.md +46 -0
- package/agents/fleet-review-types.agent.md +41 -0
- package/agents/fleet-review-verifier.agent.md +29 -0
- package/commands/review-and-fix.md +98 -0
- package/commands/run-merge-bot.md +357 -0
- package/commands/run-team-help.md +17 -0
- package/package.json +23 -0
- package/scripts/agent-test-dir-prose.test.mjs +59 -0
- package/scripts/agent-test.test.mjs +1636 -0
- package/scripts/ambient-git-vars-mjs-prose.test.mjs +354 -0
- package/scripts/ambient-git-vars-prose.test.mjs +192 -0
- package/scripts/ancestry-check-position-prose.test.mjs +175 -0
- package/scripts/apply-ruleset.test.mjs +420 -0
- package/scripts/arg-header-probes-prose.test.mjs +393 -0
- package/scripts/arg.mjs +600 -0
- package/scripts/arg.test.mjs +1354 -0
- package/scripts/board-cli.test.mjs +694 -0
- package/scripts/board-identity.test.mjs +429 -0
- package/scripts/board-liveness-banner.test.mjs +119 -0
- package/scripts/board-prev-shape.test.mjs +229 -0
- package/scripts/board-tryparse-null.test.mjs +119 -0
- package/scripts/board.html +471 -0
- package/scripts/board.mjs +2037 -0
- package/scripts/board.test.mjs +3086 -0
- package/scripts/brief-after-cut-prose.test.mjs +53 -0
- package/scripts/candidates-exit3-prose.test.mjs +302 -0
- package/scripts/candidates.mjs +674 -0
- package/scripts/candidates.test.mjs +2101 -0
- package/scripts/caveat-unification-prose.test.mjs +98 -0
- package/scripts/ci-comment-rot-prose.test.mjs +2025 -0
- package/scripts/ci-completes-premise-prose.test.mjs +257 -0
- package/scripts/ci-state-prose.test.mjs +113 -0
- package/scripts/ci-state.mjs +761 -0
- package/scripts/ci-state.test.mjs +1640 -0
- package/scripts/ci-vacuous-green.test.mjs +368 -0
- package/scripts/citation-sweep-prose.test.mjs +1572 -0
- package/scripts/claim-lifecycle.test.mjs +185 -0
- package/scripts/claim-ticket.sh +417 -0
- package/scripts/claim-ticket.test.mjs +1121 -0
- package/scripts/closing-keyword-prose.test.mjs +193 -0
- package/scripts/cockpit-launch-idempotent-prose.test.mjs +165 -0
- package/scripts/cockpit-tick-nonblocking.test.mjs +210 -0
- package/scripts/compute-board.mjs +579 -0
- package/scripts/compute-board.test.mjs +1060 -0
- package/scripts/compute-spend.mjs +329 -0
- package/scripts/compute-spend.test.mjs +451 -0
- package/scripts/cross-repo-citation-prose.test.mjs +156 -0
- package/scripts/cwd-isolation-pins.mjs +83 -0
- package/scripts/dedupe-guard-prose.test.mjs +243 -0
- package/scripts/derive-testcmd.sh +239 -0
- package/scripts/derive-testcmd.test.mjs +380 -0
- package/scripts/diff-stats.mjs +231 -0
- package/scripts/diff-stats.test.mjs +408 -0
- package/scripts/dispatch-block-golden-prose.test.mjs +1024 -0
- package/scripts/dispatch-block-pins-prose.test.mjs +615 -0
- package/scripts/drop-merged-label.sh +173 -0
- package/scripts/drop-merged-label.test.mjs +480 -0
- package/scripts/expected-jobs-prose.test.mjs +80 -0
- package/scripts/filing-bar-seat-prose.test.mjs +242 -0
- package/scripts/filing-claim-bar-prose.test.mjs +166 -0
- package/scripts/finisher-dispatch-premise-prose.test.mjs +312 -0
- package/scripts/finisher-halt-prose.test.mjs +106 -0
- package/scripts/finisher-name-prose.test.mjs +134 -0
- package/scripts/finisher-own-tree-prose.test.mjs +285 -0
- package/scripts/finisher-pin-race-prose.test.mjs +339 -0
- package/scripts/fix-applier-correction-rules-prose.test.mjs +201 -0
- package/scripts/fix-applier-result-file-prose.test.mjs +100 -0
- package/scripts/fleet-bootstrap +155 -0
- package/scripts/fleet-heartbeat.mjs +272 -0
- package/scripts/fleet-heartbeat.test.mjs +450 -0
- package/scripts/fleet-provenance +207 -0
- package/scripts/fleet-provenance.test.mjs +64 -0
- package/scripts/fleet-run +148 -0
- package/scripts/fleet-run.test.mjs +90 -0
- package/scripts/fleet-state.mjs +400 -0
- package/scripts/fleet-state.test.mjs +373 -0
- package/scripts/fleet-tick-prose.test.mjs +299 -0
- package/scripts/fleet-tick.mjs +832 -0
- package/scripts/fleet-tick.test.mjs +1332 -0
- package/scripts/force-with-lease-reason-prose.test.mjs +184 -0
- package/scripts/frontmatter-allowlist.json +64 -0
- package/scripts/frontmatter-check.mjs +256 -0
- package/scripts/frontmatter-check.test.mjs +436 -0
- package/scripts/git-env.mjs +124 -0
- package/scripts/git-env.test.mjs +149 -0
- package/scripts/git-status-untracked-mode-sweep.test.mjs +216 -0
- package/scripts/gone-walk.test.mjs +213 -0
- package/scripts/gp-sep-invariant-prose.test.mjs +188 -0
- package/scripts/head-moved-after-label-prose.test.mjs +233 -0
- package/scripts/immutable-body-claim-prose.test.mjs +413 -0
- package/scripts/implementer-model-tier.test.mjs +643 -0
- package/scripts/inflight-citation-prose.test.mjs +144 -0
- package/scripts/inflight-exit2-prose.test.mjs +81 -0
- package/scripts/inflight-probe-guard-prose.test.mjs +109 -0
- package/scripts/inflight-scan-scope-prose.test.mjs +57 -0
- package/scripts/inflight.sh +1106 -0
- package/scripts/inflight.test.mjs +2984 -0
- package/scripts/injection-control-prose.test.mjs +404 -0
- package/scripts/install-root-audit.test.mjs +464 -0
- package/scripts/instrument-check-prose.test.mjs +235 -0
- package/scripts/instruments.sh +394 -0
- package/scripts/instruments.test.mjs +787 -0
- package/scripts/issue-tracker-prose.test.mjs +71 -0
- package/scripts/json.sh +248 -0
- package/scripts/json.test.mjs +364 -0
- package/scripts/ledger-dispatch.test.mjs +516 -0
- package/scripts/ledger-grammar.mjs +85 -0
- package/scripts/ledger-grammar.test.mjs +142 -0
- package/scripts/ledger-read-require-file.test.mjs +197 -0
- package/scripts/ledger.mjs +1753 -0
- package/scripts/ledger.test.mjs +3554 -0
- package/scripts/line-distance-prose.test.mjs +245 -0
- package/scripts/liveness-rationale-prose.test.mjs +83 -0
- package/scripts/locale-pin-prose.test.mjs +189 -0
- package/scripts/member-outcome-prose.test.mjs +167 -0
- package/scripts/member-outcomes-header.test.mjs +148 -0
- package/scripts/member-outcomes-prose.test.mjs +63 -0
- package/scripts/member-outcomes.mjs +231 -0
- package/scripts/member-outcomes.test.mjs +507 -0
- package/scripts/member-prompt-prose.test.mjs +161 -0
- package/scripts/member-record.mjs +605 -0
- package/scripts/member-record.test.mjs +516 -0
- package/scripts/member-write-guard.mjs +279 -0
- package/scripts/member-write-guard.test.mjs +211 -0
- package/scripts/merge-commit-probe-prose.test.mjs +122 -0
- package/scripts/merge-gate.mjs +262 -0
- package/scripts/merge-gate.test.mjs +613 -0
- package/scripts/muted-git-guard-sweep.test.mjs +493 -0
- package/scripts/net-ssh-precedence-prose.test.mjs +91 -0
- package/scripts/net-watchdog-prose.test.mjs +79 -0
- package/scripts/net.sh +409 -0
- package/scripts/net.test.mjs +211 -0
- package/scripts/no-ci-gate-prose.test.mjs +108 -0
- package/scripts/no-undo-audit.sh +1134 -0
- package/scripts/no-undo-audit.test.mjs +3965 -0
- package/scripts/no-wave.test.mjs +138 -0
- package/scripts/node-floor-sweep.test.mjs +611 -0
- package/scripts/pointer-target-prose.test.mjs +186 -0
- package/scripts/pr-overlap.mjs +417 -0
- package/scripts/pr-overlap.test.mjs +695 -0
- package/scripts/printf-die-sweep.test.mjs +384 -0
- package/scripts/prompt-renderer.mjs +39 -0
- package/scripts/prompt-renderer.test.mjs +68 -0
- package/scripts/prose-pin.mjs +808 -0
- package/scripts/prose-pin.test.mjs +1034 -0
- package/scripts/prove-merge.sh +228 -0
- package/scripts/prove-merge.test.mjs +995 -0
- package/scripts/pull-table-relabel-prose.test.mjs +60 -0
- package/scripts/quiet-payload-prose.test.mjs +222 -0
- package/scripts/reap.sh +1768 -0
- package/scripts/reap.test.mjs +4395 -0
- package/scripts/reaping-prose.test.mjs +159 -0
- package/scripts/refuter-scratch-prose.test.mjs +135 -0
- package/scripts/release-label-required-prose.test.mjs +71 -0
- package/scripts/release-label-split-prose.test.mjs +169 -0
- package/scripts/release-ticket.sh +1716 -0
- package/scripts/release-ticket.test.mjs +5106 -0
- package/scripts/renovate-release-contract.test.mjs +379 -0
- package/scripts/repo-root.mjs +544 -0
- package/scripts/repo-root.test.mjs +873 -0
- package/scripts/reporter-output-rule-prose.test.mjs +208 -0
- package/scripts/review-agent-report-only.test.mjs +49 -0
- package/scripts/review-core-cwd-isolation.test.mjs +374 -0
- package/scripts/review-core-reads.test.mjs +478 -0
- package/scripts/review-core-refuter-scratch.test.mjs +148 -0
- package/scripts/review-core-snapshot-path.test.mjs +777 -0
- package/scripts/review-core-specialist-scratch.test.mjs +189 -0
- package/scripts/review-core-testcmd.test.mjs +288 -0
- package/scripts/review-core-unrun.test.mjs +530 -0
- package/scripts/review-core-unverified-discriminant.test.mjs +208 -0
- package/scripts/review-core.mjs +1028 -0
- package/scripts/review-eval-resolver-path.test.mjs +55 -0
- package/scripts/review-eval.mjs +197 -0
- package/scripts/review-host-fixture.mjs +73 -0
- package/scripts/review-in-run-retry.test.mjs +187 -0
- package/scripts/review-no-vendor-dispatch.test.mjs +45 -0
- package/scripts/review-path-default.test.mjs +796 -0
- package/scripts/review-runner-spawns.test.mjs +93 -0
- package/scripts/review-runner.test.mjs +155 -0
- package/scripts/review-tier-audit.test.mjs +140 -0
- package/scripts/run-artifact-pr-prose.test.mjs +341 -0
- package/scripts/run-merge-bot-prose.test.mjs +1391 -0
- package/scripts/scratch-partition-invariant-prose.test.mjs +74 -0
- package/scripts/scripts-path-citation-sweep.test.mjs +73 -0
- package/scripts/section-between-guard-prose.test.mjs +378 -0
- package/scripts/select-dimensions.test.mjs +674 -0
- package/scripts/shared-refusal.test.mjs +388 -0
- package/scripts/shell-traps-prose.test.mjs +507 -0
- package/scripts/shortlist.mjs +355 -0
- package/scripts/shortlist.test.mjs +366 -0
- package/scripts/slow-transport.mjs +72 -0
- package/scripts/snapshot-repo.test.mjs +772 -0
- package/scripts/snapshot-runner-audience-prose.test.mjs +129 -0
- package/scripts/spend-view.test.mjs +312 -0
- package/scripts/staleness-qualifier-prose.test.mjs +251 -0
- package/scripts/staleness-verdict-prose.test.mjs +142 -0
- package/scripts/staleness.mjs +414 -0
- package/scripts/staleness.test.mjs +893 -0
- package/scripts/stalled-member-liveness-prose.test.mjs +219 -0
- package/scripts/stash-prohibition-prose.test.mjs +313 -0
- package/scripts/strip-comments.mjs +44 -0
- package/scripts/tier-check.mjs +468 -0
- package/scripts/tier-check.test.mjs +726 -0
- package/scripts/tier-guard-gate-prose.test.mjs +216 -0
- package/scripts/tier-outcomes-header.test.mjs +586 -0
- package/scripts/tier-outcomes.mjs +441 -0
- package/scripts/tier-outcomes.test.mjs +342 -0
- package/scripts/tier-roles.mjs +250 -0
- package/scripts/tier-roles.test.mjs +316 -0
- package/scripts/tracker-block-copy-prose.test.mjs +288 -0
- package/scripts/triage-labels-gloss-prose.test.mjs +97 -0
- package/scripts/unattended-git-sweep.test.mjs +142 -0
- package/scripts/verify-sha-exit2-prose.test.mjs +269 -0
- package/scripts/verify-sha.sh +117 -0
- package/scripts/verify-sha.test.mjs +693 -0
- package/scripts/watcher-degraded-block.test.mjs +372 -0
- package/scripts/watcher-key-prose.test.mjs +106 -0
- package/scripts/within-run-pair-prose.test.mjs +208 -0
- package/scripts/worktree-audit.sh +482 -0
- package/scripts/worktree-audit.test.mjs +1407 -0
- package/scripts/worktree-head-prose.test.mjs +276 -0
- package/scripts/worktree-listing-sweep.test.mjs +217 -0
- package/scripts/worktree-model-prose.test.mjs +216 -0
- package/scripts/worktree.sh +470 -0
- package/skills/next-ticket/SKILL.md +138 -0
- package/skills/run-team/SKILL.md +3603 -0
- package/skills/run-team/references/ci-and-staleness.md +75 -0
- package/skills/run-team/references/correction-tickets.md +37 -0
- package/skills/run-team/references/isolation.md +23 -0
- package/skills/run-team/references/member-lifecycle.md +73 -0
- package/skills/run-team/references/reaping.md +73 -0
- package/skills/sizing-a-ticket/SKILL.md +39 -0
|
@@ -0,0 +1,208 @@
|
|
|
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 { between as section } from "./prose-pin.mjs";
|
|
6
|
+
|
|
7
|
+
// #864's finding is that tier is entangled with calendar date and therefore
|
|
8
|
+
// with prompt evolution — 8 of 9 sonnet rows in one week, 23 of 24 opus rows in
|
|
9
|
+
// the next. Dispatching every 5th Pull at the alternate tier (ADR 0013 §6,
|
|
10
|
+
// which replaced the one-per-staged-set rate when #1804 retired staging) makes
|
|
11
|
+
// tier orthogonal to date BY CONSTRUCTION, which is the only thing that lets
|
|
12
|
+
// the accumulated rows ever answer the question they are collected for.
|
|
13
|
+
//
|
|
14
|
+
// This is the one part of the change that costs something on every run, so it
|
|
15
|
+
// is also the part a compression pass is likeliest to quietly drop. These pins
|
|
16
|
+
// are what notices.
|
|
17
|
+
const REPO = join(import.meta.dirname, "..");
|
|
18
|
+
const RUN_TEAM = readFileSync(join(REPO, "skills", "run-team", "SKILL.md"), "utf8");
|
|
19
|
+
|
|
20
|
+
// Paragraph-tight, and deliberately NARROWER than the dispatch slice in
|
|
21
|
+
// implementer-model-tier.test.mjs: widened to the phase, the tier-guard
|
|
22
|
+
// paragraphs below would satisfy half of these pins on their own.
|
|
23
|
+
const dispatch = () =>
|
|
24
|
+
section(RUN_TEAM, "**Dispatch every implementer", "**`class=routine`", "run-team phase 2 dispatch rule");
|
|
25
|
+
|
|
26
|
+
test("phase 2 dispatches the alternate-tier implementer on every 5th Pull", () => {
|
|
27
|
+
const slice = dispatch();
|
|
28
|
+
assert.match(slice, /fleet-implementer-alt/, "phase 2 no longer dispatches the alternate tier at all");
|
|
29
|
+
// The RATE, not just the existence. "Dispatch some at the alternate tier"
|
|
30
|
+
// reproduces the block design the pairing exists to replace.
|
|
31
|
+
//
|
|
32
|
+
// Bound to `alternate tier` inside one sentence: an unbound rate pin once
|
|
33
|
+
// stayed GREEN through exactly that mutation, because the "**Why one … and
|
|
34
|
+
// not a week…**" rationale below satisfied it on its own. The rate has to be
|
|
35
|
+
// pinned where the rate is ORDERED, not wherever the words co-occur. Order is
|
|
36
|
+
// not assumed — the mirrored phrasing binds the same rate.
|
|
37
|
+
assert.match(
|
|
38
|
+
slice,
|
|
39
|
+
/every 5th Pull[^.]{0,60}alternate tier|alternate tier[^.]{0,60}every 5th Pull/i,
|
|
40
|
+
"phase 2 no longer orders the rate — every 5th Pull is what makes the pair within-run",
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// The RATE pin above catches "every 5th Pull" going missing or reworded to a
|
|
45
|
+
// different fraction, but not the MECHANISM that fraction is measured
|
|
46
|
+
// against. Confirmed live: a contradicting cadence ("row 2, 4, 6 …") stays
|
|
47
|
+
// green through every existing run-team prose test, because nothing reads
|
|
48
|
+
// the concrete row-count claim — only the "every 5th Pull" phrase two
|
|
49
|
+
// sentences above it.
|
|
50
|
+
test("phase 2 counts the alternate tier by ledger row 5, 10, 15 …, not by any other cadence", () => {
|
|
51
|
+
const slice = dispatch();
|
|
52
|
+
assert.match(
|
|
53
|
+
slice,
|
|
54
|
+
/the Pull that creates row 5, 10, 15 …/,
|
|
55
|
+
"phase 2 no longer names row 5, 10, 15 … as the concrete alternate-tier cadence",
|
|
56
|
+
);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
test("phase 2 does not tell the alternate member it is a control", () => {
|
|
60
|
+
// A member that knows it is being measured is not measuring the same thing.
|
|
61
|
+
assert.match(
|
|
62
|
+
dispatch(),
|
|
63
|
+
/do not tell the member it is a control/i,
|
|
64
|
+
"phase 2 no longer withholds the control status from the member",
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
test("phase 2 does NOT ask the controller to label the control", () => {
|
|
69
|
+
// A hand-set control column would not survive the metrics file's
|
|
70
|
+
// regeneration, and one derived against today's declared tiers would
|
|
71
|
+
// mislabel every historical row. The pairing is a QUERY over
|
|
72
|
+
// member-outcomes.tsv: a session+role carrying more than one distinct model.
|
|
73
|
+
const slice = dispatch();
|
|
74
|
+
assert.doesNotMatch(
|
|
75
|
+
slice,
|
|
76
|
+
/control=yes|mark .{0,20}control/i,
|
|
77
|
+
"phase 2 asks for a hand-set control label — it cannot survive a regeneration",
|
|
78
|
+
);
|
|
79
|
+
assert.match(
|
|
80
|
+
slice,
|
|
81
|
+
/member-outcomes\.tsv/,
|
|
82
|
+
"phase 2 no longer says where the pairing is recovered from, so the label comes back",
|
|
83
|
+
);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
test("phase 2 says why the pairing is within-run and not week-by-week", () => {
|
|
87
|
+
// Without the reason, the every-5th-Pull rate reads as arbitrary overhead and the next
|
|
88
|
+
// cost-trimming pass converts it back into a block design — which is the
|
|
89
|
+
// state #864 documents.
|
|
90
|
+
assert.match(
|
|
91
|
+
dispatch(),
|
|
92
|
+
/confounded with calendar date|confounded with the calendar/i,
|
|
93
|
+
"phase 2 no longer says what within-run pairing buys — the rate reads as arbitrary cost",
|
|
94
|
+
);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test("the alternate definition differs from the default in ROLE ONLY, the level stays shared", () => {
|
|
98
|
+
// Varying role and level at once yields a pair that answers neither
|
|
99
|
+
// question. The level rides on the same `model: "@<role>:<level>"` key as
|
|
100
|
+
// the role now (ADR 0014), so this is the one field left to parse apart.
|
|
101
|
+
const fm = (n) => readFileSync(join(REPO, "agents", `${n}.agent.md`), "utf8").split("---")[1] ?? "";
|
|
102
|
+
const route = (name) => {
|
|
103
|
+
const hit = /^model:\s*"?@([a-z]+):([a-z]+)"?$/m.exec(fm(name));
|
|
104
|
+
assert.ok(hit, `${name}.agent.md declares no model: route`);
|
|
105
|
+
return { role: hit[1], level: hit[2] };
|
|
106
|
+
};
|
|
107
|
+
const alt = route("fleet-implementer-alt");
|
|
108
|
+
const base = route("fleet-implementer");
|
|
109
|
+
// Mutation-tested: setting fleet-implementer-alt.agent.md's level suffix
|
|
110
|
+
// to `xhigh` (leaving fleet-implementer's `high` alone, #2036) fails this
|
|
111
|
+
// assertion (`'xhigh' !== 'high'`); reverting the file green again
|
|
112
|
+
// confirms the pin only fires on the real divergence, not on file-read
|
|
113
|
+
// noise.
|
|
114
|
+
assert.equal(
|
|
115
|
+
alt.level, base.level,
|
|
116
|
+
"the two implementer definitions no longer share one level — the pair now varies two things",
|
|
117
|
+
);
|
|
118
|
+
assert.notEqual(
|
|
119
|
+
alt.role, base.role,
|
|
120
|
+
"the alternate definition names the same role as the default — the pair compares nothing",
|
|
121
|
+
);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
test("the alternate definition's body is byte-identical to the default's (#1801)", () => {
|
|
125
|
+
// #1801 duplicated the shared implementer background into these two agent
|
|
126
|
+
// files' BODIES — SKILL.md's own per-dispatch prompt copy is untouched by
|
|
127
|
+
// this diff, so the text now exists in three places — on the premise that a
|
|
128
|
+
// member reads its own agent.md body as `§ Role` regardless of which prompt
|
|
129
|
+
// dispatched it (measured on #1777: omp injects the body verbatim, every
|
|
130
|
+
// occurrence). A body that drifts between the two agent files dispatches two
|
|
131
|
+
// differently-briefed implementers under one shared label, silently — the
|
|
132
|
+
// frontmatter-field pins above read one line each and cannot see a
|
|
133
|
+
// divergence anywhere else in the file. Exact string equality over the whole
|
|
134
|
+
// body is the tightest pin this claim admits: unlike a regex slice, a single
|
|
135
|
+
// added, dropped or reworded byte on either side fails it, and nothing
|
|
136
|
+
// benign can satisfy it by accident.
|
|
137
|
+
const body = (n) =>
|
|
138
|
+
readFileSync(join(REPO, "agents", `${n}.agent.md`), "utf8").split("---").slice(2).join("---") ?? "";
|
|
139
|
+
assert.equal(
|
|
140
|
+
body("fleet-implementer-alt"),
|
|
141
|
+
body("fleet-implementer"),
|
|
142
|
+
"the two implementer definitions' bodies have diverged — #1801's shared background must be pasted identically into both",
|
|
143
|
+
);
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
test("phase 2 counts the rate off the ledger's impl- rows, and a replacement does not count again", () => {
|
|
147
|
+
// The pin above binds the WORDS, not a countable rule — the same gap the old
|
|
148
|
+
// one-per-staged-set rate had, measured then: appending either explicit
|
|
149
|
+
// resolution of its wording left every assertion GREEN while the two readings
|
|
150
|
+
// differed by an order of magnitude in how much of the fleet ran at the
|
|
151
|
+
// alternate tier.
|
|
152
|
+
//
|
|
153
|
+
// Under Pull the count is the ledger's (ADR 0013 §6), and what disambiguates
|
|
154
|
+
// it is what a row IS: one `impl-` row per pulled ticket, so a replacement
|
|
155
|
+
// member inherits its row's tier instead of drawing a Pull number of its
|
|
156
|
+
// own. Without that clause a killed-and-replaced member shifts every later
|
|
157
|
+
// alternate-tier assignment by one, silently.
|
|
158
|
+
const slice = dispatch();
|
|
159
|
+
assert.match(
|
|
160
|
+
slice,
|
|
161
|
+
/Count\s+the\s+`impl-`\s+rows\s+in\s+`\.fleet\/ledger\.md`\s+at\s+Pull\s+time/,
|
|
162
|
+
"phase 2 no longer says what the every-5th count is counted over — the rate is ambiguous again",
|
|
163
|
+
);
|
|
164
|
+
assert.match(
|
|
165
|
+
slice,
|
|
166
|
+
/records\s+`tier=alt`\s+in\s+the\s+row,\s+and\s+a\s+replacement\s+inherits\s+the\s+row's\s+tier/,
|
|
167
|
+
"phase 2 no longer records the tier on the row, or no longer says a replacement inherits it rather than counting as a Pull",
|
|
168
|
+
);
|
|
169
|
+
// The roll: a Pull that lands on a correction or a chain head passes the
|
|
170
|
+
// alternate tier to the next Pull rather than skipping it, which is the rule
|
|
171
|
+
// ADR 0013 §6 states and the difficulty caveat below depends on.
|
|
172
|
+
assert.match(
|
|
173
|
+
slice,
|
|
174
|
+
/assignment\s+rolls\s+to\s+the\s+next\s+Pull\s+when\s+the\s+pulled\s+ticket\s+is\s+`class=correction`\s*\n?\s*or\s+another\s+open\s+ticket\s+sequences\s+after\s+it/,
|
|
175
|
+
"phase 2 no longer rolls the alternate tier past corrections and chain heads",
|
|
176
|
+
);
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
// The difficulty caveat lives in the counter-evidence section, past this file's
|
|
180
|
+
// dispatch slice, so it needs its own anchor pair.
|
|
181
|
+
const counterEvidence = () =>
|
|
182
|
+
section(RUN_TEAM, "within-run pairing above**", "`minted_false_claim`", "run-team tier-guard counter-evidence");
|
|
183
|
+
|
|
184
|
+
test("the orthogonality claim is scoped — date only, not difficulty", () => {
|
|
185
|
+
// The claim itself is literally true and narrowly scoped, so this is not a
|
|
186
|
+
// false-claim pin. It is the caveat that goes missing: the alternate member
|
|
187
|
+
// rolls past every correction and every chain head, while the top tier
|
|
188
|
+
// absorbs all of those. That makes tier SYSTEMATICALLY correlated with ticket
|
|
189
|
+
// kind, in a known direction — a different hazard from the "difficulty adds
|
|
190
|
+
// noise" the covariates are elsewhere sold as handling, and the one a reader
|
|
191
|
+
// who trusts "by construction" will skip.
|
|
192
|
+
const slice = counterEvidence();
|
|
193
|
+
assert.match(
|
|
194
|
+
slice,
|
|
195
|
+
/rolling\s+past\s+every\s+correction[\s\S]{0,120}the\s+top\s+tier\s+absorbs\s+all\s+of\s+those/,
|
|
196
|
+
"the counter-evidence section no longer says which tickets the alternate tier skips and the top tier absorbs",
|
|
197
|
+
);
|
|
198
|
+
assert.match(
|
|
199
|
+
slice,
|
|
200
|
+
/difficulty/i,
|
|
201
|
+
"the orthogonality claim no longer names difficulty as the confound it does NOT remove",
|
|
202
|
+
);
|
|
203
|
+
assert.match(
|
|
204
|
+
slice,
|
|
205
|
+
/`sizing`\/`profile`\/`loc`\/`files`|condition a pair comparison/i,
|
|
206
|
+
"the caveat no longer routes the reader to the covariates before reading a pair",
|
|
207
|
+
);
|
|
208
|
+
});
|