tldr-experts 0.6.0 → 0.6.1

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 CHANGED
@@ -1,5 +1,326 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1 — 2026-09-03
4
+
5
+ ### Fixed
6
+
7
+ - **The Build handoff's `Cost:` header was invocation-scoped, so a re-entered stage reported
8
+ `$0.00` for a phase that had spent `$0.44` (#138).** The sibling of #137's two sections, one
9
+ line higher up, on a document whose own docstring says it "describes the phase, not the
10
+ invocation". `writeHandoff` fed the header `this.spent()` — the sum of the tasks THIS process
11
+ spawned — so a `tldrx next` → `tldrx reject` → `tldrx next` rewrote the same file's
12
+ `Cost: $0.44 of $200.00 ceiling` as `Cost: $0.00`: the second invocation settled nothing,
13
+ spent nothing, and said so about the whole phase. Measured on `f5936d2` with the `TWO_WAVES`
14
+ fixture at `FAKE_BUILD_COST=0.11`.
15
+ - **`FAKE_BUILD_COST=0` is why nobody saw it.** Every other re-entry test in
16
+ `test/build-executor.test.ts` pins the cost to zero, where both writes read `$0.00` and
17
+ agree. The new block does not, and buys the headroom that needs with a $200 stage ceiling —
18
+ the budget gate refuses to RESTART a stage whose estimate no longer fits, so a fixture whose
19
+ stage estimate IS the phase ceiling cannot re-enter once a cent is recorded. Raising the
20
+ default in the shared fixture instead was rejected: it would have rewritten the pinned
21
+ expectations of every re-entry test in the file for a defect one block now covers head-on.
22
+ - **The durable source is `run.yml`'s `stage.cost_usd`**, plus what this invocation has spent
23
+ and not yet handed back (`phaseCostToDate`, exported from `executors/build.ts`). Chosen over
24
+ the `agent.result` events because it is the ledger the budget is derived from AND it
25
+ validates its own arithmetic: `rollUp` recomputes it from `stage.tasks` on every save,
26
+ `rollUpBudget` mirrors it into `budget.yml`, `run status` and the dashboard read it, and
27
+ `validateRunFile` refuses a `run.yml` whose `budget.spent_usd` drifts from the sum of its
28
+ task rows by more than a cent. The events carry the same numbers — every `recordTask` is
29
+ paired with an `agent.result` written from the same task in the same loop — but nothing
30
+ checks that they still do.
31
+ - **Three properties it rests on, verified rather than assumed.** `tldrx reject` does not touch
32
+ the number (it rewrites `status`, `ended_at` and `gate` and nothing else), which answers the
33
+ open question in the issue: a re-run reports the earlier spend, because the money was spent.
34
+ This invocation is not in `run.yml` yet, because `recordExecutorTasks` runs after the
35
+ executor returns — so adding the two cannot double-count, and a re-entry that DOES spend is
36
+ pinned at `$0.22 + $0.11 = $0.33`. And opening the store mid-stage is the shape the executor
37
+ already uses twice, not a new coupling.
38
+ - **`ExecutorOutcome.costUsd` stays invocation-scoped.** It is what the facilitator adds to the
39
+ run budget; a phase-to-date figure there would double-count on every re-entry.
40
+ - **Unreadable is not zero.** No `run.yml`, one that fails schema validation, or a stage id
41
+ that does not resolve gives this invocation's own spend with the reason in brackets — never
42
+ a confident total. A stage that has genuinely spent nothing still reads `$0.00` with no note.
43
+
44
+ - **That same header was a LOWER BOUND whenever a turn ran in-session, and nothing on the line
45
+ said so (#139).** A host session driving `--prepare` / `--commit` without `--cost-usd` is
46
+ recorded as `cost_usd: null` + `metered: false`, and `rollUp` sums it as nothing — so the phase
47
+ figure is what the METERED turns cost, not what the phase cost. The dashboard has marked
48
+ exactly this case as a `lower bound` since #103 and `tldrx budget show` prints it in words; the
49
+ handoff header was the one cost surface that stayed silent, on the FIRST write as well as a
50
+ re-entry. Filed as *inferred* and **measured before it was fixed**, which is what the issue
51
+ asked for: a fixture driving the real host path — `--prepare`, a `result.json` with no
52
+ `cost_usd`, `--commit` — put one unmetered turn beside one `$0.11` spawn and wrote
53
+ `Cost: $0.11 of $200.00 ceiling`, a bare figure indistinguishable from a fully metered phase.
54
+ - **One derivation, three surfaces.** The counting and the sentence moved out of
55
+ `dashboard/model.ts` into `core/budget/spendBasis.ts`, and the header prints what it returns.
56
+ The dashboard's model imports the page renderer, so the executor could not import IT — and
57
+ fixing the wording in place is how two spellings of one caveat get born, which the issue
58
+ named as the reason not to. Only the SUBJECT differs: a stage-scoped header says "the stage".
59
+ Dashboard output is unchanged.
60
+ - **The counts come from the same rows the sum does** — `run.yml`'s `stage.tasks`, plus this
61
+ invocation's, for the same reason `invocationUsd` is added to the total: `recordExecutorTasks`
62
+ runs after the executor returns, so counting `run.yml` alone would report the first write of a
63
+ host-driven handoff as fully metered.
64
+ - **A fully metered stage keeps its clean line.** `measured` is the one basis with nothing to
65
+ caveat. A turn counts as having produced no dollars if it is `metered: false` OR a metered
66
+ `cost_usd` of exactly `0` — the wider of the two readings, inherited unchanged from #103, so
67
+ the two surfaces cannot classify the same turn differently. It is also the conservative
68
+ direction: #138 and #139 both flattered the number.
69
+ - **Both caveats when both apply.** An unreadable `run.yml` (#138) and an unmetered turn (#139)
70
+ are different facts about the same figure, and the note now carries both rather than one.
71
+
72
+ - **`test/attempt-cost.test.ts` proved "carries no format refusal" with the bare word
73
+ `REFUSED`, and unrelated prompt prose turned it red (#135).** The thing it means to detect
74
+ is `renderFormatRefusal`'s heading; what it detected was an eight-letter English word,
75
+ anywhere in a ~14 KB document. #133 added one sentence elsewhere in the same prompt that
76
+ happened to use it and the assertion went red over prose that has nothing to do with a
77
+ refusal — a wrong-instrument failure, not a behaviour change.
78
+ - The heading is now exported as `FORMAT_REFUSAL_HEADING` from `src/core/build/review.ts`
79
+ and asserted in place of the word, so the renderer and its test cannot spell it
80
+ differently. Same idiom, and same reason, as `SRC_GRAMMAR_HEADING` and
81
+ `REVIEWER_FOCUS_HEADING`. A test pins that the constant IS the rendered first line.
82
+ - The workaround went with it: `payloadCapLines`' docstring told the next author not to use
83
+ the word. A comment asking people to avoid an English word was never a guard, and the
84
+ prose is free to say `REFUSED` again.
85
+ - **03-plan had NO map at all on a single-repo workspace (#136).** Its one map declaration was
86
+ `.tldrx/map/workspace.md`, which `buildMap.ts:83-88` writes only in multi-repo mode — so on
87
+ a single-repo workspace Plan's entire map input resolved to nothing, while all six
88
+ `MAP_DOCS` sat unread under `.tldrx/map/<repo>/`. Measured on a single-repo fixture with a
89
+ real map: `map PRESENT: []`, and the prompt carried no map content whatsoever.
90
+ - Plan now also declares `.tldrx/map/{repo}/commands.md`. This is a GATE, not a preference:
91
+ Plan writes each story's `dod.commands`, the `plan` check validates every one against the
92
+ workspace allowlist and refuses the story when it cannot ("an empty allowlist is not a
93
+ permit", `src/core/schemas/commandAllowlist.ts:33`) — and Plan was shown that allowlist
94
+ nowhere. `.tldrx/workspace.yml` is not one of its inputs, the generic stage prompt renders
95
+ no commands section (only the DEVELOPER prompt does, `prompts.ts:175`), and multi-repo's
96
+ `workspace.md` carries repo name, path, stack, branch and confidence, not commands. The
97
+ map document that mirrors the allowlist (`renderMap.ts:27`) was declared by no stage.
98
+ - **One document, not six.** Plan decomposes a design 02-how has already placed on real
99
+ paths, so architecture stays upstream; six documents per repo on a stage whose job is
100
+ splitting and ordering is the context nobody asked for that the wave-N lesson in
101
+ `seedInputs.ts` is about. Measured cost: +120 B on a 20,777 B prompt, against budgets of
102
+ 98,304 (`inputs_max_bytes`) and 163,840 (`prompt_max_bytes`).
103
+ - **Multi-repo semantics are unchanged** — `workspace.md` stays, and stays without `{repo}`.
104
+ Its absence on a single-repo workspace is still SAID rather than performed (#131): there
105
+ is no cross-repo view of one repo, and the `absent:` block reports exactly that.
106
+
107
+ - **A re-entered Build stage OVERWROTE its own handoff with a degraded reconstruction (#137).**
108
+ `04-build/handoff.md` is rewritten by every `tldrx next` that reaches the end of the stage, and
109
+ its own docstring says it "describes the phase, not the invocation" — but two of its sections
110
+ were fed from what THIS process did. So the second write over a re-entered stage (`tldrx reject`
111
+ then `tldrx next`, or any run whose stories did not all settle at once) replaced true statements
112
+ with false ones. Measured on `340fb91`: an Evidence ledger of two green DoD rows became
113
+ `- no Definition of Done ran [src: absent:03-plan/stories]`, and a Gate row reading
114
+ `(S1, S2 merged)` became `(no story merged)` while `git log epic/e1` carried both merge commits
115
+ throughout. The Gate section is the one a human reads before merging an epic by hand, so this is
116
+ the 2026-08-30 empty-merge defect arriving from the other side; a third section degraded quietly
117
+ with them, Findings losing each story's merged sha to `at (no commit)`.
118
+ - **Reconstructed where the truth is durable.** The row `fromDisk` builds for a story an earlier
119
+ invocation settled now READS its DoD results and its merged commit from `events.jsonl` via
120
+ `readReviewLedger` — the same reader `rereview` already trusts when it declines to re-run a
121
+ DoD, so nothing new is being asserted. The Gate section learns what is on an epic branch from
122
+ both sources instead of one: this process's own merges, plus the stories disk says reached
123
+ `done`, which in this pipeline is a status only a merged story reaches.
124
+ - **Said as absent, with its reason, where it is not.** What a merge CARRIED is counted before
125
+ the merge and stored nowhere, and afterwards cannot be measured at all — a merged story branch
126
+ is an ancestor of the epic either way. Those stories get a third list of their own and a row
127
+ that names the gap and the command that closes it — *S1, S2 merged by an earlier `tldrx next`
128
+ — what each carried was not re-measured here, run `git log epic/e1`*. Folding them into
129
+ `merged` would overclaim; dropping them is what printed `no story merged`. A declared dod
130
+ command whose result is in no event is named the same way against its own log, and the negative
131
+ `- no Definition of Done ran` is now written only when the stories declare no commands.
132
+ - The degraded handoff PASSED the claim-sources check the whole time — it reads citations, not
133
+ truth — so nothing downstream was ever going to catch this. Five tests now pin it.
134
+ - Answered and filed, not fixed: the header's `Cost:` line is invocation-scoped too, so the
135
+ second write reports `$0.00` for a stage that spent `$0.44` (measured). Different seam — the
136
+ number is not in the ledger this fix reads — so it is #138.
137
+
138
+ - **The `feature` preset declared map inputs without `{repo}`, so 02-how and 03-plan ran with
139
+ no map at all (#131).** `stages/how/stage.yml` asked for `.tldrx/map/architecture.md` and
140
+ `.tldrx/map/conventions.md`. `tldrx init` writes the map PER REPO —
141
+ `.tldrx/map/<repo>/architecture.md`, one folder per repo, six `MAP_DOCS` documents each
142
+ (`src/core/map/buildMap.ts:74-79`) — so nothing on disk could ever answer either
143
+ declaration. They are OPTIONAL inputs, `declaredInputsOf` drops an optional input that is
144
+ not present, and the two stages the map exists FOR were dispatched without it on every
145
+ feature-scope run. 01-what and 05-watch carried the token the whole time, which is why two
146
+ stages of five went wrong quietly for as long as they did.
147
+ - Both paths gain `{repo}`. `03-plan`'s `.tldrx/map/workspace.md` deliberately does NOT:
148
+ it is the one map document written at the map ROOT, and only in multi-repo mode
149
+ (`buildMap.ts:83-88`), so the token would point it at a file that never exists. The
150
+ reasoning is now a comment in the file so the next sweep leaves it alone too.
151
+ - **Swept all thirteen scope presets.** `workflows/*.yml` compose the same five stage files
152
+ and declare no `inputs:` of their own, so `how` was the only offender — and both facts are
153
+ now pinned: one test asserts no shipped stage declares a `MAP_DOCS` document without
154
+ `{repo}` (derived from `MAP_DOCS`, so a seventh document is covered the day it is added),
155
+ another asserts no preset grows stage inputs that would bypass it.
156
+ - **And an absence is now SAID rather than performed.** A declared input that resolves to
157
+ nothing is named twice: as a `### Declared, but not on disk` block in the prompt's
158
+ `## Inputs`, carrying that path's own `[src: absent:<path>]` token so the stage's handoff
159
+ can source a negative claim on it, and as one line on stdout. This is the half that turns
160
+ the next such typo into a first-run report instead of a live incident — a sub-agent that is
161
+ not told what is missing cannot tell "the map says nothing about this" from "I was never
162
+ shown the map", and its handoff records the second as the first.
163
+
164
+ - **The reviewer prompt described the result envelope in prose beside the schema that defines
165
+ it (#133).** `REVIEW_SCHEMA` is handed to `claude --json-schema` on the spawned path and
166
+ written verbatim into the bundle as `pending.json` → `result_schema` on the host path, so
167
+ both halves of the handshake already answered the same question — and the prompt then
168
+ described the same envelope again, key by key, in the one document a model reads most
169
+ carefully. Two live reviews lost cycles to it, one because the host dictated the shape from
170
+ memory, which is exactly what a prose paraphrase invites.
171
+ - `## Produce` now points at `result_schema` (and at `--json-schema` for a spawn) as the
172
+ single authority and states no field of it. The verdicts moved to their own `## Verdict`
173
+ section, because WHICH verdict to return is judgement and judgement is what the prompt is
174
+ for; #77's `refuted`-needs-a-citation contract is judgement too and is untouched.
175
+ - **The 4096-byte payload cap is now named.** The verdict's prose is copied into a
176
+ `check.passed`/`check.failed` payload, `validateEvent` refuses any payload over
177
+ `MAX_PAYLOAD_BYTES` (`src/core/events/Event.ts:121`) and `EventLog.append` THROWS rather
178
+ than writing a shortened line — so an essay-length verdict does not arrive trimmed, it
179
+ takes the ledger entry down with it. The number is imported into the prompt, never typed,
180
+ so changing the cap changes the promise.
181
+ - Pinned by a test that asserts the prompt REFERENCES rather than RESTATES, off the schema
182
+ itself: every field name in `REVIEW_SCHEMA` — top level and inside a `fixlist` row, minus
183
+ the verdict words — must not appear in the rendered prompt. A field added to the schema is
184
+ covered without anyone remembering to add it here.
185
+ - **Pruning a blocked story's worktree destroyed the work inside it (#129).** Measured live
186
+ 2026-09-02 on run `260830-money-and-payments` (aparece-v2), reported by the unattended
187
+ driver: a story's Definition of Done failed, the executor settled it `blocked`, and
188
+ `cleanUp` ran `git worktree remove --force` over a tree that still held the developer's
189
+ fix, uncommitted. There was no branch, no stash and no reflog to get it back from. `blocked`
190
+ is precisely the state a human is going to want to inspect, and it was the one state that
191
+ destroyed the evidence first.
192
+ - The invariant, and it has no exceptions in it: **the framework never deletes a worktree
193
+ holding changes that reached no ref.** Before any prune, `settle` commits whatever the
194
+ tree still holds to the STORY branch as
195
+ `wip(<id>): rescued from a story that settled \`blocked\`` — an honest subject naming the
196
+ verdict, the reason in the body, and "nothing reviewed this and nothing merged it" said
197
+ out loud, because a rescue commit that read like a delivery would be #130 in another file.
198
+ - Commit-then-prune rather than never-prune, because *recoverable* has to mean recoverable
199
+ **by sha**: a kept directory survives until the next `run close` or temp sweep, a commit
200
+ on the story branch survives a year. If the commit cannot be made, the worktree is KEPT
201
+ instead and the review log names its path.
202
+ - The sha is recorded where a human looks, not only where a terminal scrolls: a
203
+ `## Uncommitted work rescued` section in `04-build/log/<id>.md`, and a new
204
+ `story.work_rescued` event (§2.9) carrying story, repo, branch, sha and the settled
205
+ status. It is the second event in the enum that records tldrx touching git on the
206
+ operator's behalf, and it is appended only when a commit was really made.
207
+ - `--keep-worktrees`, a story parked at `review`, and a parked developer failure are
208
+ untouched: nothing is about to be deleted on any of those paths, so there is nothing to
209
+ rescue from. A green story rescues nothing either — `commitIfDirty` has already put every
210
+ byte on the branch.
211
+ - Red first, in `test/blocked-prune.test.ts`: on `14f01ec` a blocked story's `s1.txt`
212
+ existed nowhere — `git cat-file -e story/<run>/S1:s1.txt` exited non-zero and the tip of
213
+ the story branch was still `chore: fixture repo`. Five tests, including the
214
+ commit-cannot-be-made path (a `pre-commit` hook that exits 1), which asserts the tree is
215
+ still there with the file in it.
216
+
217
+ - **The fix list recorded `Resolved: yes` over a fix that did not exist (#130).** Same
218
+ incident, and the driver called it the most dangerous of the four because it fails silently
219
+ and in the wrong direction: `04-build/fixlist/S4-1.md` ended with **`Resolved: yes`** and a
220
+ `result.json` describing the fix in detail, while the code did not contain it — the worktree
221
+ holding it had been pruned (#129) before anything reached a ref. The audit trail said a
222
+ defect was closed while it was alive, and one approval away from carrying the story to
223
+ `done`. Root: the accounting was written from an agent's REPORT rather than from a verified
224
+ code state, which is the one thing this framework refuses everywhere else and had never
225
+ applied to its own bookkeeping.
226
+ - **A close now carries the sha the fix landed as**: the line is `Resolved: yes <sha>`, and
227
+ the sha is CHECKED before a story may settle — it must resolve to a commit in the story's
228
+ repo (`git rev-parse --verify <sha>^{commit}`) and be reachable from the story branch
229
+ (`git merge-base --is-ancestor`). A bare `yes` closes nothing; `isOpen` treats an
230
+ unevidenced claim as an open finding.
231
+ - **The record stops lying about itself.** A claim that does not check out is rewritten in
232
+ place to `Resolved: claimed-unverified — <why>`, keeping the fact that somebody reported a
233
+ fix while withdrawing the assertion that it landed. Three refusals, each named: no commit
234
+ to point at, a sha that is not a commit in the repo, a commit that is not on the branch.
235
+ - One-directional by construction: verification can only move a finding from closed to
236
+ OPEN. Nothing here closes one, and a `Resolved: no` is never touched. Every `Resolved: yes`
237
+ is checked whatever its disposition — a `defer-with-log` claim over a fix that does not
238
+ exist is a smaller problem and the same lie — while only a `fix-now` gates `done`.
239
+ - The artifact teaches the form: its preamble now says `Resolved: yes <sha>`, says a bare
240
+ `yes` closes nothing, and says the sha is checked. So do the router's lines in a
241
+ `--prepare --fixlist` bundle and the block message on a refused `done`.
242
+ - Red first, in `test/fixlist.test.ts`: on `14f01ec` a fix list edited to `Resolved: yes`
243
+ with nothing landed settled the story `status: done`, evidence `commit 3380cca`, over two
244
+ live `fix-now` findings — and `Resolved: yes deadbeefdeadbeef` did the same. Two existing
245
+ tests that encoded the old contract were updated to name a real commit on the story branch;
246
+ they still prove that closing every finding lets the same approve settle `done`.
247
+
248
+ - **The Build handoff cited a story branch that does not exist (#134).** Any run whose stories
249
+ did not all settle in ONE `tldrx next` — the ordinary shape once a stage is re-entered — got
250
+ a Findings row reading ``done — repo `app`, `story/S1`, merged into `epic/e1` ``, and
251
+ `git show story/S1` fails, because the branch the executor cut and merged is
252
+ `story/<run-id>/S1`. The run id in that name is a deliberate invariant (§"Build branch and
253
+ worktree names carry the run id", after the 2026-08-29 audit and #40); the handoff's
254
+ reconstruction path for a story settled by an earlier invocation had its own copy of the
255
+ formula and the copy predated the invariant.
256
+ - Fixed as **one derivation, not two**: `storyBranchOf(runId, storyId)` in
257
+ `src/core/plan/branchModel.ts` is now the only place the name is written, and all three
258
+ callers — the cut in `openStory`, the reconstruction in `fromDisk`, and the
259
+ `--discard-pending` evidence check on an implicit plan — go through it. A second formula
260
+ that matched would only postpone this; the name is a pure function of two ids that are
261
+ both in scope, exactly like `integrationBranchFor` and `epicWorktreeName`, so there is
262
+ nothing to persist and re-read.
263
+ - **Reporting only, and checked rather than assumed.** `StoryOutcome.branch` has three
264
+ consumers and all three render text: the handoff's `finding()`, the review log's
265
+ `- Branch:` line, and the retro's merge-conflict line. Every git operation and every
266
+ command a host is handed to run — `addWorktree`, `commitsBetween`, the reviewer bundle's
267
+ `diff`, the fix list's `diff` — reads `StoryContext.branch`, which `openStory` cut. No
268
+ ref was resolved from the wrong name, so nothing merged, moved or deleted wrongly; it was
269
+ a wrong name in an audit document.
270
+ - Red first, in `test/build-executor.test.ts`: on `30737a5` a second invocation's handoff
271
+ contained ``story/S1`` where `story/260829-build/S1` was expected, and
272
+ `git rev-parse --verify story/S1` exited 128 (`fatal: Needed a single revision`). The test
273
+ now asserts every `story/…` ref the handoff cites resolves in the repo, and a second one
274
+ asserts the template is written nowhere in the executor.
275
+
276
+ ### Added
277
+
278
+ - **The Plan prompt now says how to make a `touches` list COMPLETE (#132).** Measured on one
279
+ live run: 3 of 5 stories needed their write surface extended after the fact. S2 could not
280
+ write the failing test its own test plan promised, because the test file was outside
281
+ `touches`. S4 added two enum members and left out the switch sites, so the branch did not
282
+ compile. S8's security criterion read a file the story never declared, so the criterion
283
+ would have passed on nothing. The developers caught all three — at the cost of a round each
284
+ time. Every other rule in `## Output schemas` is generated from a validator, because a
285
+ validator refuses what breaks it and says why; under-declaration breaks no rule at all.
286
+ `["src/thing.ts"]` is a well-formed list, `validateStory` passes it, and the bill arrives
287
+ one stage later at the developer prompt's "change only what `touches` names" and at
288
+ auto-gate condition 7 `boundary`.
289
+ - A `### Completing \`touches\`` sub-section in `renderPlanSchemaContract()`, ~1.3 KB in the
290
+ cached, most-stable part of a prompt whose stage budget is $4: three sweeps, one per real
291
+ failure — its tests · every switch, registration, factory, DI container or barrel a new
292
+ name has to reach · every file a gated criterion reads — plus what omitting one costs, so
293
+ the reason is in the prompt rather than in an issue. The `touches` row of the generated
294
+ table now points at it instead of restating it.
295
+ - Prose on purpose, and the only prose in that file: no compiler runs at Plan time, so
296
+ nothing can compute this list. **Compile simulation stays the escalation path** if the
297
+ checklist measures poorly on the next runs.
298
+ - Red-first in two places: `test/plan-schema-contract.test.ts` pins the three rules and the
299
+ cost statement against the rendered contract, and `test/plan-contract.test.ts` pins them
300
+ against the prompt the real `tldrx next --prepare` bundle writes — a contract that renders
301
+ correctly and is spliced into no prompt is the `templates/story.md` failure again (#48).
302
+ 6 red before, green after. `docs/spec.md` §2.13 and the `delivery` expert each carry one
303
+ line pointing at the checklist.
304
+
305
+ - **The landing page now sells the unattended flow it never mentioned (#128).** Measured at
306
+ `95a39db`: `grep -c 'tldrx drive' docs-site/index.md` returned `0`, and so did its Spanish
307
+ twin — a bare `grep drive` exited `1` on both. `tldrx drive` is the star command for handing
308
+ a run over for the night; it has a guide in each locale and a chapter behind that, and the
309
+ front door had still never named it. The landing walked a reader from `run new` through
310
+ `next` / `approve` / `reject` to `run auto` and stopped, which is where the reader stopped
311
+ too — the one flow that most needs explaining was reachable only by someone who already
312
+ knew to go looking for it.
313
+ - One compact section per locale — "When nobody is watching" / "Cuando nadie está viendo" —
314
+ led by the outcome rather than the flags: hand a run over inside boundaries you wrote
315
+ down, and get the run itself back instead of a summary you have to believe. It shows the
316
+ three-command path (`tldrx init` → `tldrx run new … --attended-by host --gates …` →
317
+ `tldrx drive --unattended`) and links to the guide for the rest.
318
+ - The hero is untouched in both locales, and both pages are pure insertions — no existing
319
+ line was edited.
320
+ - Pinned in `test/public-surface-consistency.test.ts`: each landing must name `tldrx drive`
321
+ and link to its guide. Red on both locales before the change, green after. The pin is on
322
+ the entry point, not the prose — heading, wording and placement stay free to change.
323
+
3
324
  ## 0.6.0 — 2026-09-02
4
325
 
5
326
  ### Added
package/README.md CHANGED
@@ -298,6 +298,7 @@ back on the registry is 0.3.0.
298
298
 
299
299
  | Version | Date | Status | Contains |
300
300
  |---|---|---|---|
301
+ | 0.6.1 | 2026-09-03 | `beta` | dogfooding fixes from the first fully-unattended runs: blocked stories never lose uncommitted work (rescue commits + `story.work_rescued`), a fix is only Resolved with a reachable sha, re-entered stages reconstruct their handoff from the ledger instead of degrading it, the Cost header reports the phase and names its lower bound (shared `spendBasis`), feature presets resolve their per-repo maps, Plan sees the command allowlist its gate enforces, the landing sells the unattended flow |
301
302
  | 0.6.0 | 2026-09-02 | `beta` | the dashboard suite — a "Now" hero strip, `--serve` live refresh, stage durations and gate notes on page and CLI, and a public demo generated from fixtures; honest dual-economy spend (metered + host, lower-bound named); gate provenance — `executed_by` + `authority` so a delegated signature never reads as a personal one, machine-signed reporting fixed; ONE `absent:` semantic shared by claim-sources and the auto gate; superseded stamps when an owner answer flips an earlier phase doc; run close commits its state and `ship` refuses a state-carrying epic; merge-wave gates `docs:build`, survives interruption and self-rewrite; a public-surface drift guard; env.yml validation (unique ids, tool cap) |
302
303
  | 0.5.0 | 2026-09-02 | `beta` | `tldrx drive` and its own preflight, `watch check` / `watch arm`, `questions cards`, `plan schema`, `retro --all` (with its findings fed back into every reviewer prompt) and `story reopen --for-fix`; `tldrx update` plus a cached newer-version notice; the dashboard reads `budget.yml` and `events.jsonl` — operator notes, reopens and retries, the per-phase budget panel, and a host-attended run metered in tokens against `ceiling_host_tokens`; a rejected review envelope no longer burns a story attempt; `ship` opens one PR per repo; merge-wave lock + ref guard; five golden-transcript evals, one per stage; `CONTRIBUTING.md` and a model-provider contract |
303
304
  | 0.4.0 | 2026-09-01 | `beta` | FIRST BETA — 40-issue hardening burn (DoD pre-flight + `plan sync-dod`, merge-wave lock + gated-HEAD, load-aware tests, claim-sources across all outputs), `tldrx learn` 8-chapter sandbox tutorial (cold-player QA), `tldrx ship` / `tldrx note` / `run gates set`, budget policies + dual-economy wiring, single integration branch for chained epics, epic worktrees live to run close, bilingual docs site |
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  EventLog,
11
11
  PHASE_ID_RE
12
- } from "./chunk-h7151g8w.js";
12
+ } from "./chunk-dgct01h0.js";
13
13
  import"./chunk-g4db8rbs.js";
14
14
  import"./chunk-v4ay50nq.js";
15
15
  import {
@@ -29,10 +29,10 @@ import {
29
29
  validateRunBudget,
30
30
  wouldExceed,
31
31
  wouldExceedHostTokens
32
- } from "./chunk-7eqhfddw.js";
32
+ } from "./chunk-pstax1g9.js";
33
33
  import {
34
34
  EventLog
35
- } from "./chunk-h7151g8w.js";
35
+ } from "./chunk-dgct01h0.js";
36
36
  import"./chunk-rrkdfk7s.js";
37
37
  import"./chunk-g4db8rbs.js";
38
38
  import {
@@ -47,6 +47,7 @@ var EVENT_TYPES = [
47
47
  "story.reopened",
48
48
  "story.base_fastforwarded",
49
49
  "story.review_retried",
50
+ "story.work_rescued",
50
51
  "result.unreadable",
51
52
  "operator_note",
52
53
  "check.passed",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  EVIDENCE_FILE,
3
3
  gateEvidenceRelPath
4
- } from "./chunk-h7151g8w.js";
4
+ } from "./chunk-dgct01h0.js";
5
5
  import {
6
6
  MAX_PLAN_STORIES,
7
7
  MAX_STORIES_PER_WAVE,
@@ -7,7 +7,7 @@ import {
7
7
  nowRfc3339,
8
8
  openRunViews,
9
9
  validateRunBudget
10
- } from "./chunk-7eqhfddw.js";
10
+ } from "./chunk-pstax1g9.js";
11
11
  import {
12
12
  EventLog,
13
13
  asRunFile,
@@ -19,7 +19,7 @@ import {
19
19
  isTerminal,
20
20
  stageAt,
21
21
  validateRunFile
22
- } from "./chunk-h7151g8w.js";
22
+ } from "./chunk-dgct01h0.js";
23
23
  import {
24
24
  backupPathFor,
25
25
  isAlive,
@@ -15,7 +15,7 @@ import {
15
15
  openQuestions,
16
16
  runSnapshot,
17
17
  whatIsWaiting
18
- } from "./chunk-5k4dggq0.js";
18
+ } from "./chunk-yvp9ayxs.js";
19
19
  import {
20
20
  evidencePath,
21
21
  expertsDir,
@@ -25,10 +25,10 @@ import {
25
25
  pathsIntersect,
26
26
  readExpertDomain,
27
27
  stackExpertNames
28
- } from "./chunk-7eqhfddw.js";
28
+ } from "./chunk-pstax1g9.js";
29
29
  import {
30
30
  parseEvidence
31
- } from "./chunk-h7151g8w.js";
31
+ } from "./chunk-dgct01h0.js";
32
32
  import"./chunk-rrkdfk7s.js";
33
33
  import"./chunk-g4db8rbs.js";
34
34
  import"./chunk-v4ay50nq.js";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  bar,
4
4
  runSnapshot
5
- } from "./chunk-5k4dggq0.js";
6
- import"./chunk-7eqhfddw.js";
7
- import"./chunk-h7151g8w.js";
5
+ } from "./chunk-yvp9ayxs.js";
6
+ import"./chunk-pstax1g9.js";
7
+ import"./chunk-dgct01h0.js";
8
8
  import"./chunk-rrkdfk7s.js";
9
9
  import"./chunk-g4db8rbs.js";
10
10
  import"./chunk-v4ay50nq.js";