codebase-snapshot 0.17.0 → 0.19.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 +669 -0
- package/README.md +4 -3
- package/SECURITY.md +2 -2
- package/dist/bin.js +529 -275
- package/dist/{chunk-PDLN24ZZ.js → chunk-RTWSGQ3U.js} +378 -163
- package/dist/{chunk-VI3JLKPX.js → chunk-TQXTKDFD.js} +3 -3
- package/dist/cli.cjs +425 -174
- package/dist/cli.d.cts +2 -2
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +42 -4
- package/dist/{generate-worker-B79yGkQO.d.cts → generate-worker-C6Z1I0XS.d.cts} +3 -0
- package/dist/{generate-worker-B79yGkQO.d.ts → generate-worker-C6Z1I0XS.d.ts} +3 -0
- package/dist/index.cjs +337 -122
- package/dist/index.d.cts +27 -9
- package/dist/index.d.ts +27 -9
- package/dist/index.js +1 -1
- package/dist/mcp.cjs +316 -98
- package/dist/mcp.d.cts +22 -2
- package/dist/mcp.d.ts +22 -2
- package/dist/mcp.js +2 -2
- package/dist/{types-Cr5H2Y3t.d.cts → types-Drw1J0e0.d.cts} +8 -0
- package/dist/{types-Cr5H2Y3t.d.ts → types-Drw1J0e0.d.ts} +8 -0
- package/docs/agent.md +2 -2
- package/docs/answer.md +3 -0
- package/docs/benchmarks.md +4 -2
- package/docs/cli.md +39 -10
- package/docs/configuration.md +1 -1
- package/docs/deploy.md +2 -2
- package/docs/health.md +29 -18
- package/docs/mcp.md +16 -14
- package/docs/output.md +5 -3
- package/docs/security-review.md +2 -2
- package/docs/serve.md +20 -4
- package/docs/signing.md +3 -1
- package/docs/tools.md +13 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,675 @@ deprecated with an explanatory message instead. `latest` has pointed at 0.9.0 si
|
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
|
+
## 0.19.0
|
|
34
|
+
|
|
35
|
+
**The audit now agrees with the generator about what a secret is.**
|
|
36
|
+
|
|
37
|
+
- Two false positives made `health` fail a snapshot it had just written: it did not recognise its own
|
|
38
|
+
`[REDACTED: …]` marker as a placeholder, and it scanned each part as one markdown document instead
|
|
39
|
+
of section by section under the source path, so a comment the generator had deliberately left
|
|
40
|
+
(`DB_PASSWORD=envpass!@#$%^&*()` in prose) was read as a credential. A real snapshot of this
|
|
41
|
+
repository scored **70/100** for leaks that did not exist.
|
|
42
|
+
- Fixed: a candidate containing the marker is a placeholder; a finding whose original line carried the
|
|
43
|
+
marker is not reported (masking still runs); marker-only YAML blocks are not counted as masked
|
|
44
|
+
values; and parts are scanned per section under their source paths, while the heading, meta,
|
|
45
|
+
summaries and file list are still scanned as the part — removing bodies from a copy keeps that
|
|
46
|
+
coverage instead of trading a false positive for a blind spot.
|
|
47
|
+
|
|
48
|
+
The same snapshot regenerated: **95/100, 14 passed, 0 failed, 1 warning** — the warning is
|
|
49
|
+
`pii.paths` finding `/Users/name` and `C:\Users\name` in documentation examples, which are genuinely
|
|
50
|
+
in the text. Tests cover the marker shapes, a real secret in the same shapes, and a health run over a
|
|
51
|
+
snapshot that quotes the marker.
|
|
52
|
+
## 0.18.2
|
|
53
|
+
|
|
54
|
+
**The audit failed a snapshot for containing the redaction marker.**
|
|
55
|
+
|
|
56
|
+
- Reviewing a real 0.18.0 snapshot of this repository: 343 files, 13 parts, 1.1M tokens, no
|
|
57
|
+
incomplete files — structurally clean, but `health` scored **70/100** with one critical failure:
|
|
58
|
+
"7 artifact(s) contain a secret-shaped value".
|
|
59
|
+
- Every one of those hits was the marker itself: `token: [REDACTED: potential secret-like value
|
|
60
|
+
omitted from snapshot]`. The scanner did not recognise its own output, so a second pass over an
|
|
61
|
+
emitted artifact re-found lines the generator had already redacted. The audit also scanned each
|
|
62
|
+
part as a whole under `parts/part-007.md`, losing the source path — the generator had deliberately
|
|
63
|
+
left `DB_PASSWORD=envpass!@#$%^&*()` in a comment, because an unquoted value in a source file is an
|
|
64
|
+
expression, but the same text inside a part was read as markdown and flagged.
|
|
65
|
+
- Three fixes: a candidate that already contains the marker is a placeholder; a finding whose original
|
|
66
|
+
line carried the marker is not reported (the mask still runs, so a credential added after the marker
|
|
67
|
+
is still removed); and the artifact scan is per section, under the section's own path, so the
|
|
68
|
+
path-aware rules see what the generator saw. Marker-only YAML blocks no longer count as masked
|
|
69
|
+
values either.
|
|
70
|
+
|
|
71
|
+
The same snapshot regenerated: **95/100, 14 passed, 0 failed, 1 warning** — the warning is the
|
|
72
|
+
host-path check finding `/Users/name` and `C:\Users\name` in the documentation examples, which are
|
|
73
|
+
genuinely in the text. Tests: the marker shapes produce no finding, a real secret in the same shapes
|
|
74
|
+
still does, and a health run over a snapshot that quotes the marker exits 0.
|
|
75
|
+
## 0.18.1
|
|
76
|
+
|
|
77
|
+
- `PUBLISHED` moves to 0.18.0, so every `npx codebase-snapshot@…` example in the docs now pins the
|
|
78
|
+
milestone that is actually on the registry (`publish-train` run 44312176554: `+
|
|
79
|
+
codebase-snapshot@0.18.0`, provenance published).
|
|
80
|
+
## 0.18.0
|
|
81
|
+
|
|
82
|
+
**"A newer version is available" now has a command, and stops hiding after one failure.**
|
|
83
|
+
|
|
84
|
+
- The notice has existed since 0.9.6, and a reader running an old global copy reported seeing it
|
|
85
|
+
never. The cause was in their cache file: `{"checkedAt":…,"latest":null}` — a **failed** request
|
|
86
|
+
remembered for an hour. One slow answer (the deadline was 1.2 s) made every run in the next hour
|
|
87
|
+
silent, which is indistinguishable from "you are current".
|
|
88
|
+
- A failed check is now remembered for **five minutes**, and the request deadline is **2.5 s**. The
|
|
89
|
+
request overlaps the command, so the longer deadline adds no wall time to real work.
|
|
90
|
+
- New command: **`snapshot update`**. It bypasses the cache, works without a terminal, prints the
|
|
91
|
+
version it compared against even when that answer is "current", and sets an exit code a script can
|
|
92
|
+
branch on: `0` current, `1` newer release, `2` registry unreachable. `--format json` returns
|
|
93
|
+
`{ current, latest, updateAvailable, command }`. `CODEBASE_SNAPSHOT_REGISTRY_URL` points it at a
|
|
94
|
+
mirror.
|
|
95
|
+
- The command is registered in the contract, the option scope, the usage text, the README table and
|
|
96
|
+
the CLI reference; five tests drive it against a local registry, including a directory whose
|
|
97
|
+
`snapshot.config.ts` this server refuses to run.
|
|
98
|
+
## 0.17.58
|
|
99
|
+
|
|
100
|
+
**The changelog lost its first 4,278 lines, and nothing noticed for eight releases.**
|
|
101
|
+
|
|
102
|
+
- The 0.17.50 release rewrote `CHANGELOG.md` in a PowerShell one-liner meant to normalise the final
|
|
103
|
+
newline. It wrote back only the head of the file: 5,120 lines became 884, and every section older
|
|
104
|
+
than 0.13.4 — 118 tagged versions, the 0.9.x, 0.10.x, 0.11.x and most of the 0.12.x line — was
|
|
105
|
+
gone from the working tree. The commit recorded the deletion honestly; the changelog that was
|
|
106
|
+
supposed to be the release record no longer was one.
|
|
107
|
+
- Restored from `git show v0.17.49:CHANGELOG.md` spliced with the eight sections written since: 227
|
|
108
|
+
sections, 5,226 lines, ending at 1.0.0, and **every one of the 203 `v0.*` tags now has its section**
|
|
109
|
+
(checked individually, not just counted).
|
|
110
|
+
- A hygiene test now compares the tag list with the changelog: a tagged version without a section fails
|
|
111
|
+
the suite. It reads tags from git, so a truncated file cannot pass again. The one-liner is gone from
|
|
112
|
+
this repository's release procedure; file rewrites go through a script that reads and writes the
|
|
113
|
+
whole file.
|
|
114
|
+
|
|
115
|
+
This also explains part of what the tags looked like from outside: with the history gone, most recent
|
|
116
|
+
release diffs were only the few files a small fix touched.
|
|
117
|
+
## 0.17.57
|
|
118
|
+
|
|
119
|
+
- The goal log records the 0.17.52-0.17.56 backlog round: docs prose, SSE end to end, answer/query
|
|
120
|
+
edges, and a benchmark re-run that reproduced every published number.
|
|
121
|
+
## 0.17.56
|
|
122
|
+
|
|
123
|
+
**The ten-repository benchmark was re-run, not assumed.**
|
|
124
|
+
|
|
125
|
+
- `node scripts/benchmark-suite.mjs --json` cloned all ten default repositories shallow, packed each
|
|
126
|
+
with ours, repomix 1.19.0 and gitingest: **10/10 succeeded for all three tools**, and every file
|
|
127
|
+
count, token count and byte count is identical to the table already in `docs/benchmarks.md`. The
|
|
128
|
+
scanner is deterministic across 0.14.5 → 0.17.55, which is the result a refresh is meant to
|
|
129
|
+
establish.
|
|
130
|
+
- The page now says so, and the minimatch ratio carries its second decimal (202.72).
|
|
131
|
+
|
|
132
|
+
Verified: the run itself (exit 0, 10 rows, no skips); site checks unchanged.
|
|
133
|
+
## 0.17.55
|
|
134
|
+
|
|
135
|
+
**The output page's tree omitted two artifacts it documents elsewhere.**
|
|
136
|
+
|
|
137
|
+
- `reports/selection.md` (written by `--slice` and `--budget-tokens`, referenced in `slice.md`,
|
|
138
|
+
`answer.md` and `migration.md`) and `reports/audit.sarif` (`--sarif`) were missing from the tree in
|
|
139
|
+
`docs/output.md`.
|
|
140
|
+
- The `artifacts` row counted "a digest of every artifact" and listed eight keys, leaving out
|
|
141
|
+
`selection` and `fullXml` — both real keys in the manifest's digest map.
|
|
142
|
+
|
|
143
|
+
Verified: site rebuilt, 66 files / 742 links / 0 problems, `audit-site` clean.
|
|
144
|
+
## 0.17.54
|
|
145
|
+
|
|
146
|
+
**`snapshot_answer` said "1 skipped for budget" and named nothing.**
|
|
147
|
+
|
|
148
|
+
- With a tight budget the planner leaves a strong match out and packs a cheap one; the text said
|
|
149
|
+
"1 skipped for budget" while the structured `omitted` array stayed empty. A client reading the
|
|
150
|
+
reply could not tell which file it had missed or why.
|
|
151
|
+
- The planner's own skips now flow into the answer: `omitted` carries `{ path, reason }`, and the
|
|
152
|
+
text lists them under "Not included". The same 500-token question now says
|
|
153
|
+
`src/auth/login.ts - does not fit the remaining budget`.
|
|
154
|
+
- Probed the rest of both tools' edges and left them as they are: `snapshot_query` caps at `maxFiles`,
|
|
155
|
+
reports `0 file(s) matched` when nothing matches, and rejects an invalid `pathPattern` with the
|
|
156
|
+
reason; `snapshot_answer` measures `usedTokens` on the text it returns, marks clipped blocks, and
|
|
157
|
+
keeps the planner notes when nothing was assembled.
|
|
158
|
+
|
|
159
|
+
Verified: the new test asserts the omitted path in both the text and the structured reply;
|
|
160
|
+
`mcp-tools` 42/42.
|
|
161
|
+
## 0.17.53
|
|
162
|
+
|
|
163
|
+
**SSE probed end to end for the first time outside its unit tests.**
|
|
164
|
+
|
|
165
|
+
- Stream with `?token=`: 200, `event: endpoint`, then `initialize` and `tools/list` answered over a
|
|
166
|
+
`POST /messages` that carries no Authorization header but the token in the query — the pattern a
|
|
167
|
+
browser client with only `EventSource` needs. Both replies arrived as `message` events; a POST with
|
|
168
|
+
neither form of the token is 401.
|
|
169
|
+
- The page told clients to POST "to that path" without saying how a header-less client authenticates.
|
|
170
|
+
It now says to append `&token=<token>`, and a test drives the whole session that way and asserts a
|
|
171
|
+
supported version (`2025-06-18`) is echoed rather than upgraded.
|
|
172
|
+
- Also confirmed what the page already documents: a client asking for `2024-11-05` is answered with the
|
|
173
|
+
newest legacy revision (`2025-11-25`) because that request names a version this server does not
|
|
174
|
+
support; the version table in `docs/mcp.md` is accurate.
|
|
175
|
+
|
|
176
|
+
Verified: `mcp-http` 13/13, including the new query-token session.
|
|
177
|
+
## 0.17.52
|
|
178
|
+
|
|
179
|
+
**The resource page described a layout the server did not have.**
|
|
180
|
+
|
|
181
|
+
- `docs/mcp.md` said "the first four rows are always listed" above a table whose first four rows were
|
|
182
|
+
manifest, `parts/{index}`, `reports/audit` and `reports/tree` — two of which are conditional. The
|
|
183
|
+
always-listed set is `manifest`, `contract`, `skill`, `prompt`; the table now leads with those, then
|
|
184
|
+
the part template, then the six reports that appear only when written. The same page counted "the
|
|
185
|
+
three reports" when there are six.
|
|
186
|
+
- `docs/cli.md` still said "resources and two prompts"; the server serves seven.
|
|
187
|
+
- Three statements still described the browser surface as generating "with the default settings"
|
|
188
|
+
after 0.17.45 made it apply the repository's JSON configuration: `docs/serve.md`,
|
|
189
|
+
`docs/security-review.md` and the header comment in `src/web/server.ts`. All three now say the JSON
|
|
190
|
+
config is applied and an executable config is refused.
|
|
191
|
+
- The URI constants are exported from the MCP entry (`STATIC_RESOURCE_URIS`, `REPORT_RESOURCE_URIS`,
|
|
192
|
+
`RESOURCE_TEMPLATE_URIS`) so a test can compare the page with the server: every published URI must
|
|
193
|
+
appear on the page, and the page's prompt count must equal `buildPrompts().length`.
|
|
194
|
+
|
|
195
|
+
Verified: `check-site-links` (66 files, 742 links, 0 problems), `audit-site` clean, and both new docs
|
|
196
|
+
tests pass.
|
|
197
|
+
## 0.17.51
|
|
198
|
+
|
|
199
|
+
- The goal log records the 0.17.49-0.17.50 round: the README tool list that disagreed with the
|
|
200
|
+
server, the monolith warning about a pack that was never built, and the release gate that read a
|
|
201
|
+
pipe's exit code instead of the test run's.
|
|
202
|
+
## 0.17.50
|
|
203
|
+
|
|
204
|
+
**A warning about a file the run never tried to build.**
|
|
205
|
+
|
|
206
|
+
- With `--pack json --max-monolith-bytes 100`, the run printed two skip warnings: one for the JSON
|
|
207
|
+
pack (8 174 B, true) and one for the markdown pack reading
|
|
208
|
+
`full-codebase.md skipped: 0 B exceeds maxMonolithBytes 100 B`. Markdown was not requested; no size
|
|
209
|
+
existed; the 0 B was a placeholder compared against the ceiling.
|
|
210
|
+
- A pack that was not built can no longer be reported as too large. The warning is emitted only in
|
|
211
|
+
the branch where the pack exists and its real byte count exceeds the ceiling.
|
|
212
|
+
|
|
213
|
+
Verified: the same command now prints exactly one skip warning, for the JSON pack; a test filters the
|
|
214
|
+
warnings and asserts the markdown one is absent, with no `skipped: 0 B`.
|
|
215
|
+
|
|
216
|
+
`0.17.50` was tagged while a test run reported two failures from a stale `dist` and one from a fixture
|
|
217
|
+
this change forgot to remove. The exit code of that check had been lost in a pipe (`node --test … |
|
|
218
|
+
Select-String`), so the gate passed on a red run. The commit, tag and branch head were corrected
|
|
219
|
+
before the round ended; the fixture now removes itself. A gate reads the exit code of the command, not
|
|
220
|
+
of the filter at the end of its pipe.
|
|
221
|
+
|
|
222
|
+
## 0.17.49
|
|
223
|
+
|
|
224
|
+
**The README listed the tools in a different order than the server builds them — and was missing five.
|
|
225
|
+
**
|
|
226
|
+
|
|
227
|
+
- The tool-count test guaranteed the number, not the list. The README sentence introduced "26 tools"
|
|
228
|
+
and then named a different set in a different order: `budget` before `health`, `stats` after
|
|
229
|
+
`search`, and `history`, `tests`, `workspace` tacked on at the end.
|
|
230
|
+
- A test now parses the sentence and compares it with `buildTools()` name by name, in order. The
|
|
231
|
+
sentence was rewritten to the server's own order.
|
|
232
|
+
|
|
233
|
+
Also probed this round, and clean: the three `--pack` formats. XML escapes the CDATA terminator by
|
|
234
|
+
splitting it (`]]]]><![CDATA[>`), the JSON pack embeds `manifest` and `files[]`, and the markdown
|
|
235
|
+
pack uses `## File:`. The pack's `includedBytes` differing from the manifest is documented, not a
|
|
236
|
+
bug: it counts the raw content including the trailing newline.
|
|
237
|
+
## 0.17.48
|
|
238
|
+
|
|
239
|
+
- The goal log records the 0.17.47 round: remote provenance (clean), and the fallback branch that
|
|
240
|
+
every surface presented as fact.
|
|
241
|
+
## 0.17.47
|
|
242
|
+
|
|
243
|
+
**A directory that is not a repository was described as being on `main`.**
|
|
244
|
+
|
|
245
|
+
- The `branch` setting exists so a tree with no git history still gets deterministic metadata — but
|
|
246
|
+
nothing downstream said the value was a fallback. `README.md`, the audit, `PROMPT.md`, the CLI
|
|
247
|
+
header and `snapshot_status` all printed `Branch: main` (or `Git: main @ unknown`) for a plain
|
|
248
|
+
directory: a claim about a branch that does not exist, indistinguishable from a real one.
|
|
249
|
+
- `GitInfo` now carries `branchFromGit`, the manifest records it (optional, so older manifests still
|
|
250
|
+
read), and every surface that prints the branch says `fallback` when git did not report one.
|
|
251
|
+
Detached HEAD counts as a fallback too, which is what the recorded value always was.
|
|
252
|
+
|
|
253
|
+
Verified: a non-repository fixture prints `Branch: main (fallback)` on the terminal and `fallback;
|
|
254
|
+
git reported no branch here` in README, with `"branchFromGit": false` in the manifest; a repository
|
|
255
|
+
keeps the plain form.
|
|
256
|
+
## 0.17.46
|
|
257
|
+
|
|
258
|
+
- The goal log records the 0.17.45 round: the browser surface that ignored the repository config,
|
|
259
|
+
and the executable config it silently skipped.
|
|
260
|
+
## 0.17.45
|
|
261
|
+
|
|
262
|
+
**The web page generated on defaults and silently ignored the repository's config.**
|
|
263
|
+
|
|
264
|
+
- `POST /api/generate` called `generateSnapshot({ cwd })` directly, and the library never loads a
|
|
265
|
+
config file — the CLI and the MCP server do that before calling it. So a project with
|
|
266
|
+
`snapshot.config.json` got one snapshot from the browser and a different one from the terminal.
|
|
267
|
+
- Worse, an **executable** config (`snapshot.config.ts`) was silently ignored: the page generated on
|
|
268
|
+
defaults and said nothing, while the MCP server and the security review both promise this surface
|
|
269
|
+
refuses repository code. It now loads the config with `allowExecutableConfig: false` and answers
|
|
270
|
+
400 with the same message the server gives (`… is an executable config, and this server does not
|
|
271
|
+
run repository code.`).
|
|
272
|
+
|
|
273
|
+
Verified: a JSON config excluding `src/generated/**` removes the path from the browser snapshot and
|
|
274
|
+
records the skip; a `.ts` config is refused and its side effect never runs.
|
|
275
|
+
## 0.17.44
|
|
276
|
+
|
|
277
|
+
- The goal log records the 0.17.43 round: the health page covering 14 of 18 checks, and the
|
|
278
|
+
stats field named "sizes" that carried tokens.
|
|
279
|
+
## 0.17.43
|
|
280
|
+
|
|
281
|
+
**The health page listed 14 of the 18 checks, and its sample output was from an older tool.**
|
|
282
|
+
|
|
283
|
+
- `docs/health.md` had a "What it checks" table with 14 rows and no ids. The audit emits **18** ids
|
|
284
|
+
(16 on a clean snapshot, plus `pipeline.monolith` and `workspace.index` when they apply);
|
|
285
|
+
`bookkeeping`, `pipeline.bodies`, `pipeline.monolith` and `workspace.index` were missing entirely,
|
|
286
|
+
and the table could not be compared with the code.
|
|
287
|
+
- Every row now carries the check id, and a test runs a real audit and fails if any emitted id is not
|
|
288
|
+
documented. The sample output ("13 passed") and the JSON example were updated to what a clean
|
|
289
|
+
snapshot prints today (15 passed, 1 skipped).
|
|
290
|
+
- `snapshot_stats` `partSizes` carried `{ filename, tokens }` under a name that promises bytes; it
|
|
291
|
+
now carries `bytes` and `tokens`, and `heaviest`/`partSizes` appear in the output schema they were
|
|
292
|
+
missing from.
|
|
293
|
+
|
|
294
|
+
Verified: the docs parity test passes; the stats test compares both numbers with the manifest.
|
|
295
|
+
## 0.17.42
|
|
296
|
+
|
|
297
|
+
- The goal log records the 0.17.40-0.17.41 round: the concurrency probes that held, and the validate
|
|
298
|
+
tool that used to disagree with the snapshot it was validating.
|
|
299
|
+
## 0.17.41
|
|
300
|
+
|
|
301
|
+
- A test from an earlier release asserted that `snapshot_validate` **without** the generating flags
|
|
302
|
+
reports drift ("the flag has to be doing something"). That was the documented behaviour then; with
|
|
303
|
+
0.17.40 it is the bug, because a no-flag validate now compares against the manifest's recorded
|
|
304
|
+
settings. The assertion and its comment were updated to the new contract, and `docs/tools.md` says
|
|
305
|
+
it: validate uses the recorded settings, and a changed config file is still drift.
|
|
306
|
+
## 0.17.40
|
|
307
|
+
|
|
308
|
+
**`snapshot_validate` called a fresh snapshot "out of date".**
|
|
309
|
+
|
|
310
|
+
- The tool resolved a bare config file and compared digests. A snapshot generated with `tokenTree`,
|
|
311
|
+
`includeDiffs`, `removeEmptyLines`, `stripComments`, a pack or `maxParts` therefore reported
|
|
312
|
+
"2 setting(s) changed since the snapshot" immediately after generating — the same defect
|
|
313
|
+
`snapshot_review` had (0.17.17), in the other tool that makes the same claim.
|
|
314
|
+
- Both now share `configAsGenerated`: the artifact selection and flag-only settings come from the
|
|
315
|
+
manifest's own record, while everything the config file sets (budgets, include/exclude, layers,
|
|
316
|
+
kinds, preset) still comes from the current config, so real configuration drift is still reported.
|
|
317
|
+
|
|
318
|
+
Verified: generate with `tokenTree` + `removeEmptyLines` then validate reports "matches the
|
|
319
|
+
repository"; one appended line turns it into "1 file(s) changed on disk".
|
|
320
|
+
## 0.17.39
|
|
321
|
+
|
|
322
|
+
- The goal log records the 0.17.37-0.17.38 round: docs that pinned an unpublished version, and a
|
|
323
|
+
count test that could not fail catching two wrong counts once it could.
|
|
324
|
+
## 0.17.38
|
|
325
|
+
|
|
326
|
+
**Two documents described a server that no longer exists, and the test could not notice.**
|
|
327
|
+
|
|
328
|
+
- The hygiene test that compares the documented tool count with the real one matched only the words
|
|
329
|
+
`zero`…`ten`, so with 26 tools it could never fail, and it could not see a count split across a line
|
|
330
|
+
("serves the repository as 25\ntools"). It now parses digits and hyphenated number words and
|
|
331
|
+
tolerates whitespace, and it immediately found `AGENTS.md` saying **25** and `docs/agent.md` saying
|
|
332
|
+
**eleven**.
|
|
333
|
+
- A twin check for the prompt count found `README.md` and `docs/agent.md` saying **two** prompts where
|
|
334
|
+
the server serves **seven**, and the README's tool list was missing `budget`, `answer`, `history`,
|
|
335
|
+
`tests` and `workspace`. All corrected.
|
|
336
|
+
|
|
337
|
+
Verified: both counts come from `buildTools().length` and `buildPrompts().length`, so the documents
|
|
338
|
+
cannot drift from the server without failing.
|
|
339
|
+
## 0.17.37
|
|
340
|
+
|
|
341
|
+
**The docs told readers to install a version that does not exist.**
|
|
342
|
+
|
|
343
|
+
- `sync-docs` rewrote every `npx -y codebase-snapshot@x.y.z` example to the **current** package
|
|
344
|
+
version. Under the publish-at-`x.y.0` policy that is an unpublished patch, so the install commands
|
|
345
|
+
in `README.md`, `docs/mcp.md` and `docs/deploy.md` named a version the registry does not carry and
|
|
346
|
+
a reader who copied one got a 404.
|
|
347
|
+
- A `PUBLISHED` file now records the last milestone on npm (`0.17.0`), `sync-docs` pins the examples
|
|
348
|
+
to it, and a test fails when any doc pin disagrees or names a non-milestone. The devDependency
|
|
349
|
+
sample stays on the current version, because that is what `init` prints.
|
|
350
|
+
- `AGENTS.md` says when to update `PUBLISHED` (in the same commit as the milestone publish).
|
|
351
|
+
|
|
352
|
+
Verified: all five pins in the docs read `codebase-snapshot@0.17.0`, which is on the registry; the
|
|
353
|
+
pin test passes and would fail on an unpublished patch.
|
|
354
|
+
## 0.17.36
|
|
355
|
+
|
|
356
|
+
- The goal log records the 0.17.35 round: the history tool that repeated an edited report, and the
|
|
357
|
+
clean probes of stats, explain and tests.
|
|
358
|
+
## 0.17.35
|
|
359
|
+
|
|
360
|
+
**`snapshot_history` repeated an edited report as fact.**
|
|
361
|
+
|
|
362
|
+
- The tool read `reports/log.md` and printed its commits. It never compared the file with the digest
|
|
363
|
+
the manifest records for it, so appending `- fake commit` to the report changed the history an agent
|
|
364
|
+
received, with no signal; `validate` and `health` would have caught the edit, the tool that serves
|
|
365
|
+
the history did not.
|
|
366
|
+
- It now hashes the file and refuses a report whose digest no longer matches the manifest, naming the
|
|
367
|
+
reason and telling the caller to regenerate. A snapshot without the recorded artifact (older
|
|
368
|
+
manifests) is read as before.
|
|
369
|
+
|
|
370
|
+
Verified: a git fixture lists its commits; after one line is appended the tool is an error; the
|
|
371
|
+
snapshot without a recorded digest (pre-0.12 log) still reads.
|
|
372
|
+
## 0.17.34
|
|
373
|
+
|
|
374
|
+
- The goal log records the 0.17.33 round: the search summary that conflated searched with matched,
|
|
375
|
+
and the 3.5 MB harness artefact that had been tracked since 0.14.2.
|
|
376
|
+
## 0.17.33
|
|
377
|
+
|
|
378
|
+
**A 3.5 MB benchmark artefact was hiding in the repository.**
|
|
379
|
+
|
|
380
|
+
- `snapshot_search` said `3 match(es) in 4 file(s)`, which reads as three matches spread over four
|
|
381
|
+
files; the four was the size of the snapshot, not the number of files with a hit. It now says
|
|
382
|
+
`3 match(es) in 2 file(s) of 4 searched.` and `No match in N file(s).` when there are none.
|
|
383
|
+
- `repomix-output.xml` — 3.5 MB of this repository in repomix's format, written by the comparison
|
|
384
|
+
harness into the working directory — was **tracked in git** since 0.14.2, swept in by `git add -A`.
|
|
385
|
+
It is removed from the index and the working tree, and `.gitignore` now names it beside the probe
|
|
386
|
+
patterns. A hygiene test asserts that this and the `full-codebase.*` monoliths are never tracked.
|
|
387
|
+
|
|
388
|
+
Verified: the search wording test covers both the match and no-match forms; the hygiene test fails
|
|
389
|
+
if a generated monolith or the harness output is committed again.
|
|
390
|
+
## 0.17.32
|
|
391
|
+
|
|
392
|
+
- The goal log records the 0.17.30-0.17.31 round: routes that lost their paths, and the tests that
|
|
393
|
+
had pinned the loss.
|
|
394
|
+
## 0.17.31
|
|
395
|
+
|
|
396
|
+
- Two tests written before this round asserted the **method-only** route shape, so `verify` failed
|
|
397
|
+
after 0.17.30 fixed the extractor. They had pinned the defect as the contract; both now assert
|
|
398
|
+
`METHOD /path`, and their names say so.
|
|
399
|
+
## 0.17.30
|
|
400
|
+
|
|
401
|
+
**`snapshot_routes` printed a method and no route.**
|
|
402
|
+
|
|
403
|
+
- Probed the graph tools on a fixture with an import cycle and two Express routes. The cycle, the
|
|
404
|
+
entry points and the neighbors were right. The routes read:
|
|
405
|
+
|
|
406
|
+
```text
|
|
407
|
+
GET (src/index.ts, part-001.md)
|
|
408
|
+
POST (src/index.ts, part-001.md)
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
- The extractor pushed only the verb (`callee.name.text.toUpperCase()`) and **discarded the path
|
|
412
|
+
argument**. Every Express/Hono/Koa/Fastify route in every snapshot was recorded without its path,
|
|
413
|
+
and `/health` was indistinguishable from `/users/:id`.
|
|
414
|
+
- The handler now records `METHOD /path`; method-only handlers (Next.js route exports, decorators)
|
|
415
|
+
stay method-only because there is no literal to record, and the renderer trims so they do not print
|
|
416
|
+
a dangling double space.
|
|
417
|
+
|
|
418
|
+
Verified: the fixture reports `GET /health` and `POST /users/:id`, in text and in the structured
|
|
419
|
+
reply; the cycle/entrypoints/neighbors outputs are unchanged.
|
|
420
|
+
|
|
421
|
+
Two older tests asserted the method-only shape (`["DELETE", "GET", "POST"]`) — they had pinned the
|
|
422
|
+
defect as the contract. Both now assert `METHOD /path`, which is what the snapshot actually knows.
|
|
423
|
+
## 0.17.29
|
|
424
|
+
|
|
425
|
+
- The goal log records the 0.17.27-0.17.28 round: the response cap missing in half the tools, and the
|
|
426
|
+
audit that failed its own signature about one run in forty.
|
|
427
|
+
## 0.17.28
|
|
428
|
+
|
|
429
|
+
**`--sign` failed its own health check, about one run in forty.**
|
|
430
|
+
|
|
431
|
+
- Reproduced a full-`verify` failure: `health` reported `signature.json` as containing a
|
|
432
|
+
secret-shaped value, for a snapshot the tool had just signed with a fresh key. The rule was
|
|
433
|
+
`known-vendor-token-prefix`, whose Azure DevOps shape is **52 mixed-case alphanumerics** — a random
|
|
434
|
+
ed25519 public key or signature contains such a run often enough to match. A brute-force scan of
|
|
435
|
+
5,000 generated records put the false-positive rate at 2.6%.
|
|
436
|
+
- The audit now exempts the record's **key material** (`publicKey`, `signature`, `manifestSha256`,
|
|
437
|
+
`fingerprint`) from the artifact scan and scans every other field of the record, so a token
|
|
438
|
+
smuggled into `keyOrigin` or `signedAt` is still a critical failure. The exempt bytes are random
|
|
439
|
+
by construction and are verified against the manifest by the signature check.
|
|
440
|
+
- The first test I wrote for this replaced the public key with a fake one and expected health to
|
|
441
|
+
pass; it failed for the right reason (the signature no longer verified). The test now finds a real
|
|
442
|
+
ed25519 key whose base64 contains the token shape and signs the manifest with it, so it exercises
|
|
443
|
+
the false positive without lying about validity.
|
|
444
|
+
|
|
445
|
+
Verified: 12 consecutive signed snapshots pass health; the crafted token-shaped-but-valid signature
|
|
446
|
+
passes; the same record with a vendor token in `keyOrigin` fails.
|
|
447
|
+
## 0.17.27
|
|
448
|
+
|
|
449
|
+
**One limit, four tools, three of them ignoring it.**
|
|
450
|
+
|
|
451
|
+
- The 64 KiB per-response cap was applied in `snapshot_read` and, after 0.17.9, in `snapshot_answer`.
|
|
452
|
+
`snapshot_context`, `snapshot_diff_context` and `snapshot_symbol` rendered file bodies without it:
|
|
453
|
+
a 200 KB single-line file came back whole from `snapshot_context` — a 200 KB response measured and
|
|
454
|
+
unlabelled, while its siblings would have refused.
|
|
455
|
+
- One helper (`capResultText`) now applies the same limit and the same code-point-safe truncation in
|
|
456
|
+
all four places, and a clipped block says `first 64 KiB` in its heading.
|
|
457
|
+
|
|
458
|
+
Verified: the same 200 KB fixture returns under 80 KiB from all three formerly unbounded tools;
|
|
459
|
+
`snapshot_read` and `snapshot_answer` are unchanged.
|
|
460
|
+
## 0.17.26
|
|
461
|
+
|
|
462
|
+
- The goal log records the 0.17.25 round: the two resolvers that disagreed about the same import
|
|
463
|
+
graph, and the alias dependents that vanished without a word.
|
|
464
|
+
## 0.17.25
|
|
465
|
+
|
|
466
|
+
**`snapshot_diff_context` silently missed every alias import.**
|
|
467
|
+
|
|
468
|
+
- Probed a repository whose `src/app.ts` imports `@/user` through tsconfig `paths`. Asking
|
|
469
|
+
`snapshot_diff_context` for `src/user.ts` returned **no dependents**; `generate --delta` on the same
|
|
470
|
+
tree included `src/app.ts`, because the generator uses the real resolver. The tool had its own
|
|
471
|
+
hand-rolled loop that skipped any specifier not starting with `.` and tried a fixed extension list.
|
|
472
|
+
- The tool now builds the same `ImportResolver` the generator uses (`buildImportResolver` with
|
|
473
|
+
`tsconfigPathsFor`), so aliases, index files, `js`→`ts` mapping and non-JS languages resolve the
|
|
474
|
+
same way in the client and the CLI. The probe now reports `["src/app.ts"]`.
|
|
475
|
+
|
|
476
|
+
Verified: an alias-only fixture returns the dependent; the delta suite and the tool suite pass.
|
|
477
|
+
## 0.17.24
|
|
478
|
+
|
|
479
|
+
- The goal log records the 0.17.23 round: the delta flow reproduced clean, and the signed manifest
|
|
480
|
+
that `validate` called valid after it had been edited.
|
|
481
|
+
## 0.17.23
|
|
482
|
+
|
|
483
|
+
**`validate` did not verify signatures, and the docs implied it did.**
|
|
484
|
+
|
|
485
|
+
- Reproducing the signing flow end to end: `--sign` with `SNAPSHOT_SIGNING_KEY` writes a `configured`
|
|
486
|
+
record, `health` verifies it, and `validate` passed a manifest edited **after** signing — it never
|
|
487
|
+
looked at `signature.json`. A signature only matters if the tool that says "is this snapshot what
|
|
488
|
+
it claims" checks it.
|
|
489
|
+
- `validate` now verifies the record whenever it exists and fails with the reason:
|
|
490
|
+
`signature: manifest.json changed after it was signed.` (exit 1).
|
|
491
|
+
- `docs/signing.md` said health verifies; it now says validate does too, and shows the message.
|
|
492
|
+
|
|
493
|
+
Verified: a signed snapshot validates clean; editing one field of the manifest afterwards makes
|
|
494
|
+
`validate` exit 1 with the signature reason; `health` agrees.
|
|
495
|
+
## 0.17.22
|
|
496
|
+
|
|
497
|
+
- The goal log records the 0.17.19-0.17.21 round: the silent non-git report flags, the warning that
|
|
498
|
+
leaked the host path the audit then caught, and the docs row that claimed agreement it did not have.
|
|
499
|
+
## 0.17.21
|
|
500
|
+
|
|
501
|
+
- **The warning leaked the host path it was warning about.** 0.17.19 wrote "…was requested, but
|
|
502
|
+
C:\Users\… is not a git repository" into `manifest.warnings`; the health audit scans every written
|
|
503
|
+
artifact for host paths and failed the snapshot the run had just produced. That is the audit doing
|
|
504
|
+
its job.
|
|
505
|
+
- The message now says "the generated directory is not a git repository" and names no path. The
|
|
506
|
+
report test additionally asserts that a warning contains no drive-letter path.
|
|
507
|
+
|
|
508
|
+
Verified: the full health suite passes (15 tests), including the host-path check that caught this;
|
|
509
|
+
the non-git fixture still gets both warnings.
|
|
510
|
+
## 0.17.20
|
|
511
|
+
|
|
512
|
+
- `docs/cli.md` still described `--include-logs` as if it always wrote its report, and the 0.17.19
|
|
513
|
+
changelog said the contract and the page agreed. They did not: the row now carries the same
|
|
514
|
+
warning as the contract. The docs row is hand-written, which is why the flag test (names only)
|
|
515
|
+
did not catch it.
|
|
516
|
+
## 0.17.19
|
|
517
|
+
|
|
518
|
+
**A requested report that could not be written now says so.**
|
|
519
|
+
|
|
520
|
+
- `generate --include-diffs` outside a git repository accepted the flag, wrote no `reports/diff.md`,
|
|
521
|
+
recorded no artifact, printed no warning and exited 0. `--include-logs` did the same. The one
|
|
522
|
+
silent fallback this project forbids was in a documented feature.
|
|
523
|
+
- Both now warn with the reason and the path: "…was requested, but <cwd> is not a git repository;
|
|
524
|
+
reports/diff.md was not written." A clean tree in a real repository is a different fact — there is
|
|
525
|
+
nothing to show — and stays silent.
|
|
526
|
+
- The contract and `docs/cli.md` say the same thing, so the flag is not advertised as unconditional.
|
|
527
|
+
|
|
528
|
+
Verified: a non-git fixture generates with both flags, exit 0, neither artifact recorded, and both
|
|
529
|
+
warnings in `manifest.warnings`; the git tests still see their reports on a real repository.
|
|
530
|
+
## 0.17.18
|
|
531
|
+
|
|
532
|
+
- The goal log records the 0.17.17 round: the review that called a freshly generated snapshot stale,
|
|
533
|
+
the manifest fields added so it cannot happen again, and the two-sided fix.
|
|
534
|
+
## 0.17.17
|
|
535
|
+
|
|
536
|
+
**`snapshot_review` said "stale" about a snapshot it had just generated.**
|
|
537
|
+
|
|
538
|
+
- A review of a snapshot generated with `includeDiffs` (or `tokenTree`, `removeEmptyLines`, a pack,
|
|
539
|
+
`stripComments`, `sarif`) reported **"Snapshot: stale; run snapshot_generate before trusting it"**
|
|
540
|
+
immediately after the generate. The cause was honest and narrow: `validate` compares the config
|
|
541
|
+
digest, the digest covers the artifact selection and the run flags, and `snapshot_review` has no
|
|
542
|
+
flags — so it validated with a bare config file and blamed the user for a difference the review
|
|
543
|
+
tool itself could not see.
|
|
544
|
+
- The review now validates **as the snapshot was generated**: it takes the artifact selection and the
|
|
545
|
+
flag-only settings from `manifest.config`, where the run recorded them. Configuration drift the
|
|
546
|
+
config file still shows (budgets, include/exclude, layers, kinds, preset) is still reported.
|
|
547
|
+
- The manifest now records `removeEmptyLines`, `pack` and `logCount`, the three digest inputs it did
|
|
548
|
+
not carry, so a no-flag validator can reconstruct the run. The fields are optional; older
|
|
549
|
+
manifests are unaffected, and the digest does not change.
|
|
550
|
+
|
|
551
|
+
Verified: a review immediately after `snapshot_generate { tokenTree: true, removeEmptyLines: true }`
|
|
552
|
+
reports current; after appending one line to a file it reports stale. Same probe with a real git
|
|
553
|
+
diff and `includeDiffs`.
|
|
554
|
+
## 0.17.16
|
|
555
|
+
|
|
556
|
+
- The goal log records the 0.17.15 round: the HTTP probe that found the refusal counter counting
|
|
557
|
+
only CORS refusals while 401/405/413/404 passed uncounted.
|
|
558
|
+
## 0.17.15
|
|
559
|
+
|
|
560
|
+
**The refusal counter counted almost no refusals.**
|
|
561
|
+
|
|
562
|
+
- `GET /metrics` published `snapshot_requests_refused_total` with the help text "Requests refused
|
|
563
|
+
before dispatch", and only one path incremented it: a rejected CORS origin. A missing token (401),
|
|
564
|
+
a wrong method (405), an oversize body (413) and an unknown SSE session (404) were all served and
|
|
565
|
+
counted as nothing, so a server being probed with bad credentials reported **zero refusals**.
|
|
566
|
+
- Counting now happens in `send()` for every 4xx except 429, which keeps its own counter. The probe
|
|
567
|
+
that found it (401 + 403 + 405, then 90 requests into a 60-per-10s limit) now reads exactly 3
|
|
568
|
+
refusals and 30 rate-limited responses, and the test asserts both the totals and the 429 count.
|
|
569
|
+
|
|
570
|
+
Verified: `/metrics` after a 401, a cross-origin 403 and a 405 reports `refused 3`; the rate limit
|
|
571
|
+
fires at the documented threshold and `snapshot_requests_rate_limited_total` equals the number of
|
|
572
|
+
429 responses the client saw.
|
|
573
|
+
## 0.17.14
|
|
574
|
+
|
|
575
|
+
- The goal log records the 0.17.13 round: the prompts and resources probe, and the required argument
|
|
576
|
+
that `prompts/get` was not enforcing.
|
|
577
|
+
## 0.17.13
|
|
578
|
+
|
|
579
|
+
**A prompt cannot be requested without its subject.**
|
|
580
|
+
|
|
581
|
+
- `prompts/list` marks `review`'s `change` and `explain`'s `path` as required, and `prompts/get` did
|
|
582
|
+
not check: a client that omitted one received "Review a change" with no change named, and the
|
|
583
|
+
model had nothing to review. The request is now refused with `-32602`, the argument names and the
|
|
584
|
+
descriptions, in the same place the other argument checks live.
|
|
585
|
+
- Optional arguments stay optional: `orient` without `focus` still works.
|
|
586
|
+
|
|
587
|
+
Verified: `review` without `change` is refused and names the argument; with it, the text carries the
|
|
588
|
+
change; `orient` without `focus` is accepted.
|
|
589
|
+
## 0.17.12
|
|
590
|
+
|
|
591
|
+
- The goal log records the 0.17.11 round: accessible names and a live status on the serve page, and
|
|
592
|
+
command/docs parity now pinned by a test.
|
|
593
|
+
## 0.17.11
|
|
594
|
+
|
|
595
|
+
**The page works without a mouse, and the docs page is pinned.**
|
|
596
|
+
|
|
597
|
+
- The web form had four controls with no accessible names — only placeholders and `title` — and a
|
|
598
|
+
status line that screen readers never announced. Each control now carries an `aria-label`, and
|
|
599
|
+
`#status` is a `role="status" aria-live="polite"` region. A test fails if a future control arrives
|
|
600
|
+
without a name.
|
|
601
|
+
- `docs/cli.md` claims to document every command; nothing compared that list with the contract. A
|
|
602
|
+
new test compares `describe --format json` commands with the page's `### `command`` sections in
|
|
603
|
+
both directions, the way the options tests already did.
|
|
604
|
+
|
|
605
|
+
Verified: the page test asserts `lang`, the live region and a name on every control; the command
|
|
606
|
+
test fails on either an undocumented command or a section for a command that does not exist.
|
|
607
|
+
## 0.17.10
|
|
608
|
+
|
|
609
|
+
- The goal log records the 0.17.9 round: the adversarial-content pass (parser sound) and the 200 KB
|
|
610
|
+
block it found leaving through `snapshot_answer`.
|
|
611
|
+
## 0.17.9
|
|
612
|
+
|
|
613
|
+
**A block cannot flood the transport.**
|
|
614
|
+
|
|
615
|
+
- Probing adversarial content found the circular risk that survived the earlier checks: a file whose
|
|
616
|
+
body is one 200 KB line. The planner accepted it under a 60k budget, and `snapshot_answer`
|
|
617
|
+
returned the whole line — a 200 KB response, no note, while `snapshot_read` caps one response at
|
|
618
|
+
64 KiB.
|
|
619
|
+
- Each block is now capped at `MAX_RESULT_BYTES` (64 KiB) with the same code-point-safe truncation;
|
|
620
|
+
the header says `first 64 KiB of the window` and the structured entry carries `clippedAtBytes`.
|
|
621
|
+
- `usedTokens` is measured on **what is returned** rather than on the window before clipping: it used
|
|
622
|
+
to describe 200 KB while 64 KB was sent, which is the contract lying about its own size.
|
|
623
|
+
|
|
624
|
+
Verified: a 200 KB single-line file under a 60k budget returns under 80 KiB, labels the cap, and
|
|
625
|
+
keeps `usedTokens` consistent with the text; the other adversarial cases (fake `### FILE:` headings,
|
|
626
|
+
embedded fences, anchors, CRLF, EOF fence) all round-trip and pass the audit's body accounting.
|
|
627
|
+
## 0.17.8
|
|
628
|
+
|
|
629
|
+
- The goal log records the 0.17.7 round: the silent empty slice, the 100/100 member whose source was
|
|
630
|
+
gone, and the web page probe that found the first one.
|
|
631
|
+
## 0.17.7
|
|
632
|
+
|
|
633
|
+
**A slice that selected nothing, and a member whose source is gone.**
|
|
634
|
+
|
|
635
|
+
- `--slice "question"` that matched no file wrote an empty snapshot with no warning (`web` reported
|
|
636
|
+
`files: 0, dropped: 2, warning: null`). It now carries a warning with the planner's own reason,
|
|
637
|
+
the same way `--budget-tokens` already did.
|
|
638
|
+
- `health --all-members` reported **100/100** for a member whose source directory had been deleted:
|
|
639
|
+
the written snapshot is intact, so every hash passed, but the workspace index still names a path
|
|
640
|
+
that no longer exists. The audit now warns with the path and "regenerate the workspace"; the
|
|
641
|
+
combined score drops to the weakest member (95/100 in the probe).
|
|
642
|
+
|
|
643
|
+
Verified: an empty slice has exactly one warning naming the reason; a matching slice has none; a
|
|
644
|
+
deleted member loses five points, names the path, and keeps exit 0 (a warning, not a failure).
|
|
645
|
+
## 0.17.6
|
|
646
|
+
|
|
647
|
+
- The goal log records the 0.17.1-0.17.5 hardening round: the empty snapshot that warned nowhere, the
|
|
648
|
+
planner notes that blamed the wrong thing, the impossible line windows that were clamped, and the
|
|
649
|
+
docs slip the schema test caught.
|
|
650
|
+
## 0.17.5
|
|
651
|
+
|
|
652
|
+
- **`snapshot_read` refused nothing it could not do.** `lines: 0`, `lines: -3`, `fromLine: -5` and
|
|
653
|
+
`fromLine: 2.7` all returned a one-line window and said nothing: the schema declared a minimum, the
|
|
654
|
+
handler clamped. A request that cannot be honoured is now an error naming the argument and the
|
|
655
|
+
value.
|
|
656
|
+
|
|
657
|
+
Verified: the four impossible requests are refused with an explanatory message; a valid window is
|
|
658
|
+
unchanged.
|
|
659
|
+
## 0.17.4
|
|
660
|
+
|
|
661
|
+
**When the answer is empty, say why.**
|
|
662
|
+
|
|
663
|
+
- `snapshot_answer` dropped the planner's notes entirely, so a zero-file answer was a header and
|
|
664
|
+
nothing else. The notes now close the block under `Notes:`.
|
|
665
|
+
- The planner had one budget sentence for two different failures: "Nothing fit the budget" was
|
|
666
|
+
printed even when no file matched at all, sending the reader to the wrong number. It now says
|
|
667
|
+
"No candidate file matched the question…" when there were no candidates, and only blames the
|
|
668
|
+
budget when candidates existed and the cheapest one did not fit — with its cost named.
|
|
669
|
+
- The fallback sentence is emitted only when the centrality fallback produced files; saying "the
|
|
670
|
+
plan falls back to the most-imported files" and then "<no files> and no fallback to offer" said it
|
|
671
|
+
twice and contradicted itself.
|
|
672
|
+
|
|
673
|
+
Verified: an unmatched question on a repository without imports reports "no centrality data"; one
|
|
674
|
+
with imports lists its centrality reasons; neither claims the budget was the problem.
|
|
675
|
+
## 0.17.3
|
|
676
|
+
|
|
677
|
+
- The 0.17.2 docs change put the `snapshot_generate` note in the reading list as its own bullet,
|
|
678
|
+
which left the real entry without its example call; the docs/schema test caught it after the
|
|
679
|
+
commit. The note now sits inside the generate entry, where it belongs.
|
|
680
|
+
## 0.17.2
|
|
681
|
+
|
|
682
|
+
**An empty snapshot says it is empty.**
|
|
683
|
+
|
|
684
|
+
- `--only "nomatch/**"` produced a legitimate-looking empty snapshot: exit 0, no parts, "Integrity:
|
|
685
|
+
passed", no warning. The manifest now carries one: "No file matched the include allow-list (N
|
|
686
|
+
pattern(s): …), so the snapshot is empty."
|
|
687
|
+
- The planner said two false things about an empty snapshot at once ("no file matched … the plan
|
|
688
|
+
falls back" and "the budget is too small for any file"). It now says the one true thing and stops:
|
|
689
|
+
the snapshot holds no files, and `manifest.skipped` explains why.
|
|
690
|
+
- `snapshot_answer` and `snapshot_budget` repeat that sentence instead of returning zeros with no
|
|
691
|
+
explanation.
|
|
692
|
+
- **`snapshot_generate` takes `only` and `ignore`**, the last CLI narrowing flags without an MCP
|
|
693
|
+
equivalent; the tool description and `docs/tools.md` say so.
|
|
694
|
+
|
|
695
|
+
Verified: an allow-list matching nothing warns in stderr and in `manifest.warnings`; a matching one
|
|
696
|
+
does not; the empty-snapshot messages are pinned by a test that generates a real empty snapshot.
|
|
697
|
+
## 0.17.1
|
|
698
|
+
|
|
699
|
+
- The goal log records the final milestone: 0.17.0 published, and the registry carrying exactly the
|
|
700
|
+
five `x.y.0` versions with `latest = 0.17.0`. `ROADMAP.md` marks it published.
|
|
701
|
+
- What follows is 0.17.x: hardening and coverage until the deadline, with no new milestone promised.
|
|
33
702
|
## 0.17.0
|
|
34
703
|
|
|
35
704
|
**The endgame: what this is, and how it is proven.**
|