tldr-experts 0.26.1 → 0.27.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/CHANGELOG.md +90 -0
- package/README.md +1 -0
- package/dist/hooks/budget-gate.js +1 -1
- package/dist/hooks/{chunk-bbrhs055.js → chunk-2qkbh9b6.js} +24 -20
- package/dist/hooks/{chunk-pwzy19er.js → chunk-w685jj9h.js} +34 -1
- package/dist/hooks/session-start.js +2 -2
- package/dist/hooks/statusline.js +2 -2
- package/dist/tldrx.js +1849 -1225
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/skills/tldrx-plan/SKILL.md +16 -5
- package/stages/plan/stage.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,95 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.27.0 — 2026-09-14
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **The Plan gate holds a plan to its shape, not only to whether it can execute (#316, #317,
|
|
8
|
+
#318, #319).** A planning audit of 9 runs (relayed, not re-run) found 25 of 54 build-gate
|
|
9
|
+
rejections were dependency reopens and every multi-story plan in one workspace a
|
|
10
|
+
one-story-per-wave chain; a 4-wave plan left 2 stories never attempted, while the 2-wave cap
|
|
11
|
+
lived only as skill prose and a `seed check` advisory nothing enforced. The `plan` check now
|
|
12
|
+
refuses more waves than the framework carries per run unless `waves.yml` records the new
|
|
13
|
+
optional `wave_cap_reason` (an additive root key — `version: 1` only grows), refuses a story
|
|
14
|
+
scheduled later than its `depends_on` requires, and names in its detail a dod command some
|
|
15
|
+
stories of one epic and repo carry and a sibling does not — an advisory, because which
|
|
16
|
+
stories share a shape is not machine-readable and the evidence is one epic. Vertical slices,
|
|
17
|
+
inventory files in `touches:` and end-to-end placement are Plan-prompt rules rather than
|
|
18
|
+
checks, because no stack-independent name marks a route file and no changed-file set exists
|
|
19
|
+
at Plan time to compare against. Every rule, number and sentence comes from one file,
|
|
20
|
+
`src/core/plan/planShape.ts`, which the gate, the rendered "Plan shape" section
|
|
21
|
+
(`tldrx plan schema`) and `seed check` all read; the gate's pass is its own, not
|
|
22
|
+
`validatePlan`'s, so a plan approved before it still loads at Build.
|
|
23
|
+
|
|
24
|
+
- **`tldrx run auto --rebalance-finished` moves a blocked phase's shortfall out of money a
|
|
25
|
+
finished phase can no longer spend (#314).** MEASURED on a field run: `04-build` was refused
|
|
26
|
+
$11.07 short while `01-what` had finished $16.25 under its ceiling and the run total had $141
|
|
27
|
+
of room; `run auto` stopped and a person typed `budget raise 04-build 12 --take-from 01-what`
|
|
28
|
+
and relaunched. The move was already sanctioned — nothing looked for it. With the flag, the
|
|
29
|
+
budget gate moves EXACTLY the shortfall before refusing, out of phases whose every stage is
|
|
30
|
+
`done`/`skipped`, none stale, priced in `metered-usd` and with no unmetered turn (a lower-bound
|
|
31
|
+
spend proves nothing about what is left) — so `05-watch` with a stage still to run never gives.
|
|
32
|
+
It goes through `budget raise --take-from`'s own code, so the run ceiling never grows; it never
|
|
33
|
+
passes a recorded grant, not even under `on_grant_exceed: warn`; it never makes a partial move.
|
|
34
|
+
Each move is one `budget.raised` with both phases' before/after, `source` and the launcher as
|
|
35
|
+
actor. OPT-IN, not a default or a `budget.yml` key, because a phase ceiling is a person's
|
|
36
|
+
decision about money — the reason `--retry-failed` and `--until-done` never touch exit 2.
|
|
37
|
+
Without the flag every money refusal now names the finished phases' unspent money and the exact
|
|
38
|
+
`--take-from` move, and `budget.blocked` records `short_usd`, `finished_unspent_usd` and
|
|
39
|
+
`uncovered_usd`. An agent gate on the stage a move unblocked still falls to a person, and its
|
|
40
|
+
reason now names the flag, the launcher and the donor phase instead of "a person moved" it.
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
|
|
44
|
+
- **`tldrx ship` no longer opens a PR over a stale or red epic (#315).** Four PRs it opened in
|
|
45
|
+
one audit window came back red and needed a person, because between choosing the base and
|
|
46
|
+
`gh pr create` nothing fetched the base or ran a workspace command. Ship now fetches the base,
|
|
47
|
+
merges it into the epic in a throwaway worktree when behind, and runs the `done` stories'
|
|
48
|
+
Definition of Done on that tree; a conflict or a red command refuses (exit 2) naming the
|
|
49
|
+
paths or the command. Under `ship.push` the base is merged into the epic (forward, never
|
|
50
|
+
rebased or forced) and pushed with it; without it the branch is untouched. `--dry-run` runs
|
|
51
|
+
the same checks and exits the same way.
|
|
52
|
+
|
|
53
|
+
- **A reviewer is given at least $2.00, not $1.00 — the old floor sat below the reviews that
|
|
54
|
+
finish (#307, owner decision: "A: piso $2").** MEASURED in the issue across 44 reviewer task
|
|
55
|
+
rows in two workspaces: the 37 that returned a verdict cost $0.17–$1.02 (median $0.50), so the
|
|
56
|
+
most expensive COMPLETED review already spent more than the $1.00 floor allowed; and a 3-story
|
|
57
|
+
run whose Plan priced every story at $8–$9 put every reviewer on that floor — at the shipped
|
|
58
|
+
defaults an $8 story derives `8 × 0.25 / (2 × 1.25)` = $0.80 — and one died with
|
|
59
|
+
`Reached maximum budget ($1)` before reading the diff, parking its story at `review`. $1.00
|
|
60
|
+
was never measured; it was chosen because it looked reasonable. `REVIEWER_FLOOR_USD` is now
|
|
61
|
+
$2.00, a fixed constant — no new key, event or schema. The consequence the owner accepted:
|
|
62
|
+
#289's refuse-before-spawn now fires when a stage has less than $2.00 left, and the refusal
|
|
63
|
+
already says so with the figure (`a review costs at least $2.00`). The budget brake's copy of
|
|
64
|
+
the floor in `budget/remainingWork.ts` is now IMPORTED from `build/caps.ts` rather than
|
|
65
|
+
restated, so the brake's estimate and the executor's cap read one definition (`caps.ts`
|
|
66
|
+
imports only two schema leaves, so the budget-gate hook stays cheap). The Build golden moves
|
|
67
|
+
by exactly that figure: the four reviewer `agent.spawned` lines carry `max_budget_usd: 2`.
|
|
68
|
+
`test/build-parallel.test.ts`'s three-story wave moves from a $9 to a $12 stage, because at $9
|
|
69
|
+
three $2.00 floors plus three developers sum past the ceiling the test proves the wave fits
|
|
70
|
+
inside. The seed-check / plan-gate warning (part 3 of #307) is not in this change.
|
|
71
|
+
|
|
72
|
+
- **A developer whose DoD goes red gets the story's next attempt, instead of blocking it on the
|
|
73
|
+
first miss (#313).** Reported in #313's audit of 12 run folders (relayed, not re-measured
|
|
74
|
+
here): 17 human `tldrx story reopen`s were a red DoD — a snapshot not regenerated, a pinned
|
|
75
|
+
inventory the story's own change moved, a lint rule — that the developer never got a second
|
|
76
|
+
look at, each one waiting on a person to read the kept output and type the reopen. MEASURED on
|
|
77
|
+
`70da3d1` with the fake agent: a story at `attempts: 2` whose attempt 1 left a red DoD ended
|
|
78
|
+
`blocked` with ONE `task.started`. Mechanism: `settleHalf` blocked on any half-A failure,
|
|
79
|
+
while the reviewer's `changes` verdict already requeued while `attempt < attempts` — two
|
|
80
|
+
failures on the merits, one retry budget honoured for only one of them. A red DoD now takes
|
|
81
|
+
the same bound: the attempt settles back at the status it started from (not `blocked` — it is
|
|
82
|
+
about to run again) with `the DoD was red on attempt 1 of 2`, keeps its worktree, and the next developer prompt carries the kept output under `## Previous
|
|
83
|
+
attempt` with the DoD header (#211); the last attempt blocks, saying `the DoD stayed red on 2
|
|
84
|
+
of 2 attempts` when both were red. Narrow on purpose — a refused developer (#271), a cap death
|
|
85
|
+
(#277), a REFUSED or absent-binary dod command (#165, #209), no dod commands and a reopen that
|
|
86
|
+
changed nothing (#308) still block on the first attempt, because a second one buys the same
|
|
87
|
+
outcome. The attempts a red DoD spent are counted off `events.jsonl`, not memory: review of
|
|
88
|
+
the first cut MEASURED three red DoDs under `attempts: 2` when a spawn fault ended an
|
|
89
|
+
invocation between attempts and the next process started counting from zero. No new event,
|
|
90
|
+
no new field; the host door (`--prepare`/`--commit`) is unchanged. `tldrx learn`'s chapter 5
|
|
91
|
+
now narrates — and asserts — the two red attempts before the reopen.
|
|
92
|
+
|
|
3
93
|
## 0.26.1 — 2026-09-14
|
|
4
94
|
|
|
5
95
|
### Changed
|
package/README.md
CHANGED
|
@@ -335,6 +335,7 @@ back on the registry is 0.3.0.
|
|
|
335
335
|
|
|
336
336
|
| Version | Date | Status | Contains |
|
|
337
337
|
|---|---|---|---|
|
|
338
|
+
| 0.27.0 | 2026-09-14 | `beta` | Five changes for unattended runs, from a planning audit and live field measurement. The `plan` check now refuses a plan with more waves than the framework carries per run (unless `waves.yml` names a `wave_cap_reason`), refuses a story scheduled before its `depends_on` allows, and flags a dod command siblings carry that one story doesn't (#316–#319). `tldrx run auto --rebalance-finished` moves a blocked phase's exact shortfall out of a finished phase's unspent ceiling before refusing, through `budget raise --take-from` itself, so the run ceiling never grows and no grant is ever assumed; every money refusal now names the unspent total and the exact command to fix it (#314). `tldrx ship` fetches and merges the base into the epic and re-runs the `done` stories' DoD before opening a PR, so a stale or red epic refuses instead of shipping a PR that comes back red (#315). A reviewer's budget floor rises from $1.00 to $2.00, matching what completed reviews actually cost, so a review no longer dies mid-diff on a floor that was never measured (#307). And a developer whose DoD goes red gets the story's next attempt instead of blocking on the first miss, with the kept output handed to the next attempt and the bound counted from `events.jsonl` so it holds across process restarts; a refused developer, a cap death, or a broken dod command still blocks immediately (#313). |
|
|
338
339
|
| 0.26.1 | 2026-09-14 | `beta` | Three refusals that stop a bad state from settling quietly. A Build fix round whose developer lands no diff is refused before the DoD instead of closing `done` on an unmoved tree, because `commitIfDirty` hands back the old head sha on a clean commit and the existing "no commit to review" gate never fires for it — `workSince` is now asked on the success path too, for any story a person put back with a note. `tldrx ship` refuses an epic carrying a story the reviewer marked `changes`: it asks the ledger's `lastMerge` for every story not `done` and exits 2 naming the story, the merge and the handoff's reason, instead of opening a PR whose "Not done" list hid rejected code already merged into the diff. And a stage-failure line keeps the branch it names when the worktree path is wider than the line: the refusal puts the branches before the path, and `oneLine` keeps a line's head and tail instead of dropping the identifiers that sat at the end. |
|
|
339
340
|
| 0.26.0 | 2026-09-14 | `beta` | Two field defects from the same class — a reader of an event payload trusting a field its writer never set — plus the ceiling that killed the turn that earned it. A wide story's measured `touches_widened` no longer throws after the turn has settled: the cap knows the three lists by name and drops them whole by count, every reader derives before/after through one function, and an executor that throws after paid turns leaves their rows and money in `run.yml` and saves before it emits. The cost surfaces then agree with each other: a turn whose result was lost to that fault reads as UNMETERED, LOWER BOUND on `tldrx cost` and in the Build handoff through the door other unmeasured turns already use, a turn still in flight reads as nothing, and a late result retires the lost mark instead of counting twice. Replay reads the reason a failed stage recorded instead of printing "no reason recorded" for every one. |
|
|
340
341
|
| 0.25.0 | 2026-09-14 | `beta` | The other half of the two-session protocol and four holes measured on live runs. `scripts/release.sh` now waits on a running wave's lock before touching the tree and never hands back the marker it wrote — release has precedence, the wave yields, exit 14 when it gives up; the heading gate also refuses an unreleased version at or below `package.json`; the marker carries its phase and `--status` reports a release queued behind a wave (#304). In-session `tldrx next --prepare` and `--commit` ask the same dependency frontier the headless loop asks: a terminal hold records the dependent `blocked`, a pending hold refuses without writing, a held `--commit` keeps the work it sits on and says where it is (#300). A Watch card refused for an unsourced `## Where` item comes back to its writer marked, the refusal names the cure, and the brief shows one non-file example, so a retry edits the card instead of regenerating it blind (#301). And `run.yml` no longer loses an external write to a live loop: a save carries only the fields the store changed over a fresh read, ownership is declared, `cancelled` is terminal and wins in the file and in the process, a file that cannot be merged is kept beside as `.bak` and said so, and a file recording another run is refused (#305). Minor release: a new exit code on a public script, a stricter merge gate, and `--prepare`/`--commit` refuse where they used to proceed. |
|
|
@@ -222,6 +222,16 @@ function hostTokenCeiling(budget, phaseId) {
|
|
|
222
222
|
return budget.ceiling_host_tokens ?? budget.ceiling_usd;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
+
// src/core/build/caps.ts
|
|
226
|
+
var MAX_ATTEMPTS = STAGE_TUNING_DEFAULTS.attempts;
|
|
227
|
+
var REVIEWER_SHARE = STAGE_TUNING_DEFAULTS.reviewerShare;
|
|
228
|
+
var REVIEWER_FLOOR_USD = 2;
|
|
229
|
+
var STORY_CAP_MULTIPLIER = STAGE_TUNING_DEFAULTS.storyCapMultiplier;
|
|
230
|
+
var STORY_CAP_FLOOR_USD = STAGE_TUNING_DEFAULTS.storyCapFloorUsd;
|
|
231
|
+
function shortBy(estimate, remaining) {
|
|
232
|
+
return Math.max(0.01, Math.ceil((estimate - remaining) * 100) / 100);
|
|
233
|
+
}
|
|
234
|
+
|
|
225
235
|
// src/core/budget/remainingWork.ts
|
|
226
236
|
import { existsSync as existsSync6, readFileSync as readFileSync6 } from "node:fs";
|
|
227
237
|
import { join as join6 } from "node:path";
|
|
@@ -794,6 +804,7 @@ function validateBudget(input) {
|
|
|
794
804
|
}
|
|
795
805
|
|
|
796
806
|
// src/core/plan/validatePlan.ts
|
|
807
|
+
var WAVES_FILE = "waves.yml";
|
|
797
808
|
var PLAN_BUDGET_FILE = "budget.yml";
|
|
798
809
|
|
|
799
810
|
// src/core/build/plan.ts
|
|
@@ -971,12 +982,11 @@ function looksLikeSpawnError(detail) {
|
|
|
971
982
|
}
|
|
972
983
|
|
|
973
984
|
// src/core/budget/remainingWork.ts
|
|
974
|
-
var
|
|
975
|
-
var
|
|
976
|
-
var
|
|
977
|
-
var
|
|
978
|
-
|
|
979
|
-
function developerAttemptDivisor(attempt, attempts = MAX_ATTEMPTS) {
|
|
985
|
+
var MAX_ATTEMPTS2 = STAGE_TUNING_DEFAULTS.attempts;
|
|
986
|
+
var REVIEWER_SHARE2 = STAGE_TUNING_DEFAULTS.reviewerShare;
|
|
987
|
+
var STORY_CAP_MULTIPLIER2 = STAGE_TUNING_DEFAULTS.storyCapMultiplier;
|
|
988
|
+
var STORY_CAP_FLOOR_USD2 = STAGE_TUNING_DEFAULTS.storyCapFloorUsd;
|
|
989
|
+
function developerAttemptDivisor(attempt, attempts = MAX_ATTEMPTS2) {
|
|
980
990
|
return attempt <= 1 ? 1 : attempts;
|
|
981
991
|
}
|
|
982
992
|
function remainingWork(input) {
|
|
@@ -1028,7 +1038,7 @@ function measure(input) {
|
|
|
1028
1038
|
const ids = new Set(all.map((story) => story.id));
|
|
1029
1039
|
const prices = progress.implicit ? new Map : loadPlanPrices(join6(input.runDir, PLAN_DIR), ids).prices;
|
|
1030
1040
|
const verdicts = reviewVerdictsByStory(input.runDir);
|
|
1031
|
-
const attempts = input.attempts ??
|
|
1041
|
+
const attempts = input.attempts ?? MAX_ATTEMPTS2;
|
|
1032
1042
|
const caps = new CapMath(input, prices, all.length);
|
|
1033
1043
|
const stories = [];
|
|
1034
1044
|
const blocked = [];
|
|
@@ -1112,9 +1122,9 @@ class CapMath {
|
|
|
1112
1122
|
return round2(Math.min(Math.max(derived, floor), this.maxBudgetUsd));
|
|
1113
1123
|
}
|
|
1114
1124
|
storyCeiling(price) {
|
|
1115
|
-
const declared = this.input.storyCapFloorUsd ??
|
|
1125
|
+
const declared = this.input.storyCapFloorUsd ?? STORY_CAP_FLOOR_USD2;
|
|
1116
1126
|
const floor = this.input.stageBudgetUsd > 0 ? Math.min(declared, this.input.stageBudgetUsd) : declared;
|
|
1117
|
-
return Math.max(price * (this.input.storyCapMultiplier ??
|
|
1127
|
+
return Math.max(price * (this.input.storyCapMultiplier ?? STORY_CAP_MULTIPLIER2), floor);
|
|
1118
1128
|
}
|
|
1119
1129
|
priceOf(storyId) {
|
|
1120
1130
|
const price = this.prices.get(storyId);
|
|
@@ -1126,10 +1136,10 @@ class CapMath {
|
|
|
1126
1136
|
return this.input.stageBudgetUsd <= 0 ? 1 : usd / this.input.stageBudgetUsd;
|
|
1127
1137
|
}
|
|
1128
1138
|
attempts() {
|
|
1129
|
-
return this.input.attempts ??
|
|
1139
|
+
return this.input.attempts ?? MAX_ATTEMPTS2;
|
|
1130
1140
|
}
|
|
1131
1141
|
reviewerShare() {
|
|
1132
|
-
return this.input.reviewerShare ??
|
|
1142
|
+
return this.input.reviewerShare ?? REVIEWER_SHARE2;
|
|
1133
1143
|
}
|
|
1134
1144
|
worstCaseShares() {
|
|
1135
1145
|
return Math.max(this.storyCount, 1) * this.attempts() * (1 + this.reviewerShare());
|
|
@@ -1235,18 +1245,12 @@ function wouldExceedHostTokens(budget, phaseId, spentTokens) {
|
|
|
1235
1245
|
};
|
|
1236
1246
|
}
|
|
1237
1247
|
|
|
1238
|
-
// src/core/
|
|
1239
|
-
var
|
|
1240
|
-
var REVIEWER_SHARE2 = STAGE_TUNING_DEFAULTS.reviewerShare;
|
|
1241
|
-
var STORY_CAP_MULTIPLIER2 = STAGE_TUNING_DEFAULTS.storyCapMultiplier;
|
|
1242
|
-
var STORY_CAP_FLOOR_USD2 = STAGE_TUNING_DEFAULTS.storyCapFloorUsd;
|
|
1243
|
-
function shortBy(estimate, remaining) {
|
|
1244
|
-
return Math.max(0.01, Math.ceil((estimate - remaining) * 100) / 100);
|
|
1245
|
-
}
|
|
1248
|
+
// src/core/budget/rebalance.ts
|
|
1249
|
+
var SETTLED = new Set(["done", "skipped"]);
|
|
1246
1250
|
|
|
1247
1251
|
// src/core/budget/budgetView.ts
|
|
1248
1252
|
function raiseCommand(runId, phaseId, amountUsd) {
|
|
1249
1253
|
return `tldrx budget raise ${phaseId} ${amountUsd.toFixed(2)} --run ${runId}`;
|
|
1250
1254
|
}
|
|
1251
1255
|
|
|
1252
|
-
export { currentActor, nowRfc3339, spentBasis, tallyOf, DEFAULT_ON_HOST_TOKENS_EXCEED, DEFAULT_ON_GRANT_EXCEED, DEFAULT_ECONOMY, economyFor, isHostTokens, validateRunBudget, asRunBudget, expertsDir, loadExperts, readExpertDomain, pathsIntersect, stackExpertNames, BUILD_PHASE2 as BUILD_PHASE, remainingWork, wouldExceed, wouldExceedHostTokens,
|
|
1256
|
+
export { currentActor, nowRfc3339, spentBasis, tallyOf, DEFAULT_ON_HOST_TOKENS_EXCEED, DEFAULT_ON_GRANT_EXCEED, DEFAULT_ECONOMY, economyFor, isHostTokens, validateRunBudget, asRunBudget, expertsDir, loadExperts, readExpertDomain, pathsIntersect, stackExpertNames, WAVES_FILE, BUILD_PHASE2 as BUILD_PHASE, shortBy, remainingWork, wouldExceed, wouldExceedHostTokens, raiseCommand };
|
|
@@ -3,12 +3,13 @@ import {
|
|
|
3
3
|
DEFAULT_ECONOMY,
|
|
4
4
|
DEFAULT_ON_GRANT_EXCEED,
|
|
5
5
|
DEFAULT_ON_HOST_TOKENS_EXCEED,
|
|
6
|
+
WAVES_FILE,
|
|
6
7
|
asRunBudget,
|
|
7
8
|
nowRfc3339,
|
|
8
9
|
spentBasis,
|
|
9
10
|
tallyOf,
|
|
10
11
|
validateRunBudget
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2qkbh9b6.js";
|
|
12
13
|
import {
|
|
13
14
|
EventLog,
|
|
14
15
|
OUTCOME_NOT_RECORDED,
|
|
@@ -421,6 +422,11 @@ class RunStore {
|
|
|
421
422
|
this.currentBudget = fn(structuredClone(this.currentBudget));
|
|
422
423
|
this.budgetMutated = true;
|
|
423
424
|
}
|
|
425
|
+
refreshCeilings() {
|
|
426
|
+
if (this.budgetMutated)
|
|
427
|
+
return;
|
|
428
|
+
this.currentBudget = this.ceilingsToWrite();
|
|
429
|
+
}
|
|
424
430
|
append(event) {
|
|
425
431
|
this.events.append(event);
|
|
426
432
|
}
|
|
@@ -621,6 +627,33 @@ var MIN_SLICE_BYTES = 2 * 1024;
|
|
|
621
627
|
// src/core/facilitator/contextLedger.ts
|
|
622
628
|
var DEFAULT_PROMPT_MAX_BYTES = 400 * 1024;
|
|
623
629
|
|
|
630
|
+
// src/core/plan/planShape.ts
|
|
631
|
+
var MAX_WAVES_PER_RUN = 2;
|
|
632
|
+
var RUN_SIZE_ISSUES = "#286/#244/#280";
|
|
633
|
+
var WAVE_CAP_REASON_KEY = "wave_cap_reason";
|
|
634
|
+
var PLAN_SHAPE_RULES = [
|
|
635
|
+
{
|
|
636
|
+
issue: "#316",
|
|
637
|
+
text: `**At most ${String(MAX_WAVES_PER_RUN)} waves** (patch for ${RUN_SIZE_ISSUES} — the framework's measured ` + "carry today, not a design preference). A later wave waits on every earlier merge, so each extra wave is " + "a stall: a 4-wave plan left 2 stories never attempted. The `plan` check refuses more unless the root of " + `\`${WAVES_FILE}\` records \`${WAVE_CAP_REASON_KEY}: "<why these stories cannot share a wave>"\`.`
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
issue: "#316",
|
|
641
|
+
text: "**Every story runs in the EARLIEST wave its `depends_on` allows.** `depends_on: []` runs in W1; a story " + "whose dependencies all finish in W1 runs in W2. The `plan` check refuses a story held later with nothing " + "making it wait. If something does — two stories editing one file — that is a `depends_on` edge: write it."
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
issue: "#317",
|
|
645
|
+
text: "**Each story is a vertical slice.** When its own dod goes green, what it adds is reachable from a route, " + "endpoint, command or job that a user or caller actually hits — not only from its own tests. A component " + "no route renders, or a handler nothing registers, is refused at Build review as unreachable: put the wiring " + "in the same story, and the wiring's file in its `touches`. No check reads this; the review does."
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
issue: "#318",
|
|
649
|
+
text: "**Inventory files go in `touches` up front.** Grep for the tests, snapshots and generated files that " + "ENUMERATE what the story adds — route trees, guard tables, allow-lists, architecture or coverage " + "inventories, approved snapshots — and declare them. They change because the story's change forces them " + "to, not because anyone meant to edit them, and each one left out is a `touches` widening at Build."
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
issue: "#319",
|
|
653
|
+
text: "**End-to-end coverage is not the last story.** Either a test-harness story runs in W1 and later stories " + "depend on it and run against it, or each UI or feature story carries the e2e command in its own dod. A " + "final e2e story that depends on everything is the story never reached. The `plan` check names a command " + "some stories of one epic and repo carry and a sibling does not — an advisory: say in that story why not."
|
|
654
|
+
}
|
|
655
|
+
];
|
|
656
|
+
|
|
624
657
|
// src/core/run/runOutcome.ts
|
|
625
658
|
import { join as join3 } from "node:path";
|
|
626
659
|
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
runSnapshot,
|
|
21
21
|
statusWithOutcome,
|
|
22
22
|
whatIsWaiting
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-w685jj9h.js";
|
|
24
24
|
import {
|
|
25
25
|
expertsDir,
|
|
26
26
|
loadExperts,
|
|
27
27
|
pathsIntersect,
|
|
28
28
|
readExpertDomain,
|
|
29
29
|
stackExpertNames
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2qkbh9b6.js";
|
|
31
31
|
import {
|
|
32
32
|
isFinished
|
|
33
33
|
} from "./chunk-41k19q8t.js";
|
package/dist/hooks/statusline.js
CHANGED