wowbagger 0.1.0-alpha.6 → 0.1.0-alpha.8

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +500 -1
  2. package/LICENSE +21 -201
  3. package/README.md +255 -21
  4. package/adapters/claude-code/wowbagger-adapter.json +3 -3
  5. package/adapters/codex/wowbagger-adapter.json +1 -1
  6. package/adapters/opencode/wowbagger-adapter.json +1 -1
  7. package/docs/adapter-contract.md +183 -20
  8. package/docs/host-contract.md +287 -0
  9. package/docs/mutation-contract.md +867 -30
  10. package/docs/work-claim-contract.md +174 -42
  11. package/package.json +16 -1
  12. package/schemas/bare-ready-result.json +27 -0
  13. package/schemas/bare-validation-result.json +23 -0
  14. package/schemas/common.json +470 -0
  15. package/schemas/core-capabilities-response.json +346 -0
  16. package/schemas/core-envelope.json +141 -0
  17. package/schemas/core-inspect-response.json +37 -0
  18. package/schemas/core-inspect-workbench-response.json +340 -0
  19. package/schemas/core-list-error-response.json +242 -0
  20. package/schemas/core-list-query.json +98 -0
  21. package/schemas/core-list-response.json +140 -0
  22. package/schemas/core-report-response.json +379 -0
  23. package/schemas/core-transition-error-response.json +852 -0
  24. package/schemas/core-transition-request.json +47 -0
  25. package/schemas/core-transition-response.json +49 -0
  26. package/schemas/index.json +108 -0
  27. package/schemas/ledger-mutation-refusal.json +288 -0
  28. package/schemas/report-config-v1.json +140 -0
  29. package/schemas/report-config-v2.json +242 -0
  30. package/skills/wowbagger/SKILL.md +210 -45
  31. package/src/adapter/core-probe.js +96 -8
  32. package/src/adapter/entrypoint-main.js +48 -10
  33. package/src/adapter/invoke.js +43 -24
  34. package/src/adapter/process-outcome.js +127 -16
  35. package/src/claim-capabilities.js +7 -8
  36. package/src/claim-coordinator.js +15 -2
  37. package/src/claim-journal.js +37 -5
  38. package/src/claim-prospective.js +151 -0
  39. package/src/claim-publication.js +137 -63
  40. package/src/claim-store.js +20 -1
  41. package/src/claim-sync.js +66 -0
  42. package/src/cli.js +727 -51
  43. package/src/extension-provision.js +33 -0
  44. package/src/extensions.js +15 -2
  45. package/src/git-autocommit.js +1015 -0
  46. package/src/git-reconciliation.js +61 -12
  47. package/src/instrumentation.js +75 -0
  48. package/src/launch.js +52 -0
  49. package/src/lifecycle.js +153 -0
  50. package/src/limits.js +50 -0
  51. package/src/list.js +365 -0
  52. package/src/mutation.js +201 -124
  53. package/src/projection.js +39 -0
  54. package/src/report-graph.js +122 -21
  55. package/src/report-html.js +219 -51
  56. package/src/report-view.js +189 -0
  57. package/src/report.js +145 -15
  58. package/src/validate.js +4 -1
  59. package/src/workbench.js +117 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,505 @@ A change to what a command accepts, refuses, emits, or writes is a behaviour
5
5
  change even when the commit that carried it was labelled refactor, docs, or
6
6
  consolidation. The first tagged release inherits this file.
7
7
 
8
+ ## Unreleased
9
+
10
+ ## 0.1.0-alpha.8 - 2026-08-23
11
+
12
+ ### Added
13
+
14
+ - **A published launch seam for a host that cannot run a shell.** The package
15
+ now declares `exports`, and its main entry `wowbagger` exposes
16
+ `CORE_SCRIPT_PATH`, `MINIMUM_NODE_MAJOR`, and `resolveCoreLaunch(argv)`, which
17
+ returns the exact process tuple a direct-core host needs: an absolute Node
18
+ executable, an argument array whose first element is the absolute
19
+ `bin/wowbagger.js`, and `shell: false`. A host that resolves its own runtime
20
+ gets `resolveCoreLaunch(argv, { nodeExecutable })`, and a relative or bare
21
+ executable name is refused rather than left for PATH to answer. The script
22
+ path is also resolvable on its own as `wowbagger/wowbagger.js` for a host that
23
+ wants the path without importing anything. Deep imports that already worked —
24
+ `wowbagger/src/limits.js` and every other published path — keep resolving
25
+ through an explicit `"./*"` subpath. No command accepts, refuses, emits, or
26
+ writes anything different.
27
+
28
+ - **The machine contract ships as JSON Schema, not only as prose and fixtures.**
29
+ Seventeen JSON Schema 2020-12 documents under `schemas/` are published with
30
+ the package and resolvable as `wowbagger/schemas/<file>.json`, with
31
+ `schemas/index.json` naming each one's response domain and that domain's
32
+ version. They cover the core envelope and its four exact root shapes, the
33
+ capabilities envelope with every advertised limit as a constant, the two bare
34
+ results, the list query and its page and refusals, the default and workbench
35
+ inspect projections, the transition request, success, and every documented
36
+ refusal with its mutation state, the `ledger-mutation` fence refusals, report
37
+ configuration versions 1 and 2, and the report responses including a named
38
+ view. Every schema fixes its root members exactly and pins the version of its
39
+ own domain, so a core envelope refuses a namespaced refusal, a version 4
40
+ envelope, or an extra root member, and a version 1 report configuration
41
+ refuses a version 2 one. Exactness reaches the members too: an item core must
42
+ carry both relation lists, because the core view always emits them, and a
43
+ refusal raised before a commit is established pins its state to `unchanged`
44
+ rather than admitting the indeterminate state that only an interrupted write
45
+ can report. The validator is a test-only dependency; the runtime still has
46
+ exactly one dependency.
47
+
48
+ ### Documentation
49
+
50
+ - **`docs/host-contract.md` publishes the direct-core host boundary.** One
51
+ document now states what a UI plugin or other non-agent consumer needs and
52
+ what it must supply itself: the package resolution seam and the four-part
53
+ launch — Node.js 20 or later, an absolute Node executable, the absolute
54
+ `wowbagger.js`, an argument array, and `shell: false`; bounded stdin or a
55
+ host-created request file, never shell source and never inline unbounded argv
56
+ JSON; captured stdout and stderr; the owning-host path rule for a worktree, a
57
+ plain folder, direct SSH, and WSL, with no cross-runtime path guessing;
58
+ namespace-first response dispatch and the exit table; every advertised limit
59
+ with its exact value; the once-only dispatch sequence for a lost response; and
60
+ the seventeen packaged JSON Schemas by domain. It states that a missing
61
+ executable is a host-level result rather than malformed Wowbagger JSON, that
62
+ the host owns executable discovery, working directory, timeout, cancellation,
63
+ process-tree containment, stream caps, and routing, and that Wowbagger will
64
+ not add automatic transitions, mirrored ledger state, operation identity,
65
+ remote routing, or a daemon. The full `inspect` read is documented as
66
+ deliberately unbounded, with the reason. The README, the installed skill, and
67
+ `SPEC.md` section 10 point at it, and it ships in the npm package.
68
+ - **The public version and lifecycle vocabulary agrees with the runtime.**
69
+ `SPEC.md` section 10 said core mutation contracts 1 and 2 were defined and
70
+ that the runtime emitted version 2; it now says 1 through 5 and version 5. The
71
+ mutation contract's status line said versions 1, 2, and 3 with the runtime on
72
+ 3; it now says 1 through 5 and version 5. `deferred` has been a real status
73
+ since it shipped, but `SPEC.md` omitted it from the status field, the
74
+ lifecycle table, the transition table, the terminal-date invariants, the
75
+ decision-action list, and the terminal-decision table, and the mutation
76
+ contract omitted the `deferred` date from the lossless core view; all seven
77
+ now name it, along with the `resolve`, `defer`, and `undefer` decision actions
78
+ the validator has always accepted. No behaviour changed: these were prose
79
+ omissions, and the tests that guard them read the vocabularies from
80
+ `src/lifecycle.js` and `src/validate.js` rather than retyping them.
81
+ - **Response loss is a named contract instead of folklore.** The mutation
82
+ contract, the adapter contract, the README, and the installed skill now carry
83
+ the same sequence for a mutation whose response never arrived: dispatch once,
84
+ never replay, invalidate the inspected revision, reconnect, then re-read the
85
+ ledger. The mutation contract's new section 10 table separates the outcomes a
86
+ caller may act on — committed success, proven non-write, committed recovery,
87
+ unknown publication — from the two that establish nothing, a signalled or
88
+ timed-out transport and a missing envelope, and states that a later item state
89
+ never proves that the lost dispatch caused it. Adapter contract section 6.2
90
+ documents the `mutation_outcome: "unknown"` envelope and its per-command
91
+ `recovery` object exactly as the adapter emits them, and states that exit 4
92
+ `revision-conflict` is a proven non-write that is never relabelled response
93
+ loss. There is no operation ID, durable outcome store, or replay endpoint;
94
+ adding correlation requires a new contract decision. No command accepts,
95
+ refuses, emits, or writes anything different. Two conformance vectors now pin
96
+ the core's own exit-6 `write-outcome-unknown` and `post-commit-recovery-required`
97
+ envelopes at the adapter's process-outcome seam, taking the adapter vector set
98
+ to 212 assertions.
99
+ - **The exit tables state where `report` actually lands.** Both contracts filed
100
+ exit 1 as a bare-result-only condition and exit 3 as every invalid ledger,
101
+ while `report` answers an invalid ledger, an unreadable input, and a failed
102
+ publication at exit 1. The mutation contract now carries an exit 1 row naming
103
+ those codes, lists `report-config-invalid` and `report-view-not-found` in its
104
+ exit 2 row, and scopes exit 3 to every command except `report`; the host
105
+ contract's exit 1 and exit 3 conditions say the same. Two guards assert the
106
+ rows against the codes the runtime emits.
107
+
108
+ ### Changed
109
+
110
+ - **The report filters by facet groups instead of one value at a time.** The
111
+ drill-down's single-value mapped-field selects and its All/Ready/Blocked/
112
+ Ineligible buttons are gone. In their place is one group of checkbox chips per
113
+ dimension of the open set — Readiness, Status, Kind, and every configured
114
+ mapped field, so a mapped `class: bug` is a chip rather than a value hidden in
115
+ a dropdown. Values inside a group are alternatives, groups narrow each other,
116
+ and the search box is one more condition; every chip states the count it would
117
+ leave, measured against the search and the other groups but never against its
118
+ own, so two selections in one group cannot make their siblings read zero. A
119
+ visible result count, per-chip selected state, and `Clear filters` are new, and
120
+ opening a Work next or Attention row still clears whatever detached its card,
121
+ facets included.
122
+ - **The ledger graph filters by lifecycle status.** One chip group above the
123
+ stage carries the statuses the ledger holds, all selected, with `Select all`
124
+ and `Clear`. Deselecting a status drops its nodes, every link incident to one,
125
+ and their labels, reheats the layout in place, and takes a hidden node off the
126
+ hover card; the roster and node count follow the same selection, and an empty
127
+ selection draws an empty graph that says so. The legend, the WebGL-less
128
+ roster, camera interaction, and the no-fetch contract are unchanged, and
129
+ nothing here reads or writes the ledger.
130
+
131
+ ### Fixed
132
+
133
+ - **A report failure before publication says so, and never arrives causeless.**
134
+ An output path the filesystem cannot resolve — a `--out` under a regular
135
+ file, an unreadable directory on the way to it — was a raw runtime error
136
+ escaping into the command's catch-all, answered as `report-write-failed` with
137
+ empty `details` even though nothing had been rendered or replaced. It is now
138
+ `report-read-failed` with `details.operation` naming which resolution failed,
139
+ `details.path` naming the path the caller configured or passed, and
140
+ `details.cause` naming the filesystem's own code. An error no report path
141
+ throws on purpose still answers `report-write-failed`, because nothing
142
+ reached the output path, but it now carries `{operation, cause}` instead of
143
+ `{}`. Every `details.cause` is a bounded token — an error code, or the
144
+ error's kind when the runtime gave no code — so a publication failure no
145
+ longer republishes a runtime message, and the paths, credentials, and
146
+ run-specific values a message carries stay out of the envelope. Atomic
147
+ publication is unchanged: a report already at the selected path survives
148
+ every one of these refusals.
149
+ - **An empty named view stops blaming the reader.** A view whose criteria
150
+ matched nothing rendered the drill-down's `No items match these filters.` and
151
+ the graph's `No status is selected`, sending a reader to controls that could
152
+ not bring an item back. A named artifact with no items now states
153
+ `No ledger item matches this view's criteria.` and, in the graph, that it has
154
+ nothing to draw — visibly, without waiting for scripting. A report that holds
155
+ items keeps the filter and status copy, which is the honest answer when the
156
+ reader is the one who narrowed it, and the base report's bytes are unchanged.
157
+ - **`core-report-response.json` named a member the report never emitted.** The
158
+ published `ledger-invalid` refusal required `details.validation_errors`,
159
+ which is the mutation commands' member name; `report` has always emitted
160
+ `details.errors`. A consumer validating a real refusal against the shipped
161
+ schema failed on the runtime's own bytes. The schema now states `errors`, and
162
+ a live invalid-ledger report run is validated against it.
163
+
164
+ ## 0.1.0-alpha.7 - 2026-08-18
165
+
166
+ ### Changed
167
+
168
+ - **The item source is bounded at every candidate door, and the core contract
169
+ moves to 4.** The published version 3 core accepted a 50-MiB `create` with
170
+ exit `0` and state `committed` in 0.70 s: `create`, `transition`, and `patch`
171
+ had no bound
172
+ anywhere, and `publish-claimed` alone bounded candidates but reported an
173
+ oversized, perfectly canonical candidate as `The candidate source is not
174
+ canonical base64.` One shared `MAX_ITEM_SOURCE_BYTES` of 8,388,608 now bounds
175
+ the complete serialized successor at all four doors, and every one of them
176
+ answers the same named refusal: `item-source-too-large`, exit 2, state
177
+ `unchanged`, details exactly `{id, size_bytes, limit_bytes}` in the core
178
+ domain and `{item_id, size_bytes, limit_bytes}` in the ledger-publication
179
+ domain. The measurement is serialized UTF-8 bytes, so frontmatter, decisions,
180
+ extensions, and body all draw on the same budget; `transition` is bounded
181
+ because its decision block can push a legal stored item past it. Core
182
+ capabilities advertises the value at `result.limits.max_item_source_bytes`.
183
+ This narrows accepted input against a published version, so the core contract
184
+ moves to 4 and version 3 consumers fail closed at negotiation. A ledger
185
+ committed before the bound does not brick: an oversized item still validates,
186
+ still inspects, and a patch that shrinks it under the bound is accepted.
187
+
188
+ - **The work-claim API moves to 2.** The oversized-candidate response replaces
189
+ the error `publish-claimed` version 1 pinned for that input, so
190
+ `result.operations.work_claim.api_version` is now `2` and version 1 consumers
191
+ fail closed. Malformed base64 keeps its version 1 `invalid-request`: without
192
+ canonical base64 there is no item source to measure. The base64-character
193
+ precheck is gone — the 11,534,336-byte serialized-request bound already caps
194
+ what a candidate can decode to, and the precheck was the remaining path that
195
+ answered a genuine size refusal with a false base64 message. That transport
196
+ bound is unchanged and still measures a different object.
197
+ - **A claimed publication no longer takes one cooperative lock per ledger
198
+ item.** `publish-claimed` computed its lock closure from every item in the
199
+ loaded ledger, so publishing one item on a 1,500-item ledger created, wrote,
200
+ fsynced, and unlinked 1,503 lock files. It runs from journal replay through
201
+ its terminal record inside the namespace write lock, and every other
202
+ cooperative writer of a provisioned ledger enters that same lock before it
203
+ writes, so the per-item closure excluded nobody the namespace lock did not
204
+ already exclude. Publication now takes no per-item locks. Newly instrumented
205
+ phase counters measured the cost this removes: on 1,500 items the lock phase
206
+ was 11.2 s of the 12.6 s the publication took, against 0.2 s for reading Git
207
+ HEAD. Everything else is unchanged and proved byte-for-byte identical against
208
+ the previous implementation across all six publication outcome classes —
209
+ success, fence refusal, revision conflict, validation refusal, idempotent
210
+ replay, and indeterminate publication — in envelope, claim journal, and item
211
+ bytes. Every cooperative writer of one ledger must be upgraded together: a
212
+ writer that honors only per-ID locks can race one that honors only the
213
+ namespace lock.
214
+ - **The README installs with `@next` and says why.** The registry mandates a
215
+ `latest` dist-tag, so `latest` mirrors `next`; `@next` stays the documented
216
+ spelling and the explicit prerelease consent.
217
+ - **Cuts happen on the release branch, not in a session worktree.** Merge
218
+ session work first, then cut; the cut command refuses to run anywhere but the
219
+ branch tip. The previous two-phase topology is why the last two release tags
220
+ name merge commits rather than their cut commits.
221
+ `docs/adapter-release-path.md` records the ritual.
222
+
223
+ ### Fixed
224
+
225
+ - **A live publication is no longer reported as a broken lock.** Publication
226
+ lock files recorded `"operation": "publish-claimed"`, but the lock reader
227
+ accepts only `create`, `transition`, and `patch`, so a concurrent writer that
228
+ hit a live publication lock classified it `invalid-shape` — a diagnostic that
229
+ says the lock is corrupt. Publication writes no lock files at all now, so
230
+ there is nothing to misclassify.
231
+
232
+ - **A committed `patch` is forwarded instead of reported as an unknown
233
+ outcome.** The shipped adapter engine still named the pre-widening patchable
234
+ pair `number` and `priority`, so every patch a consumer actually sends — a
235
+ body rewrite, a title correction, a relation-list replacement, a declared
236
+ extension member — read as a non-canonical request, failed result
237
+ correlation, and came back `mutation-outcome-unknown` with recovery guidance
238
+ about a write that had provably committed. `number` is the immutable item
239
+ identity and was never patchable at all. The patchable field set is now what
240
+ mutation contract section 9 names — `title`, `priority`, `depends_on`,
241
+ `related`, `body`, `body_append`, and `extensions` — with the two body write
242
+ modes mutually exclusive and the extensions container judged only on its own
243
+ shape, and correlation follows each member to the surface it is observable
244
+ on. The independent reference model already had all of this, so the drift was
245
+ one-sided and no differential test could see it; the new end-to-end
246
+ core-outcome vectors found it on their first run.
247
+
248
+ - **`publish-claimed` now reconciles the journal unconditionally, like every
249
+ other mutating command.** The work-claim contract has always said an
250
+ uncommitted prior mutation refuses the next `create`, `transition`, `patch`,
251
+ **or `publish-claimed`**. The code only reconciled when it happened to
252
+ observe an unresolved `publish-intent`, and an uncommitted legacy mutation
253
+ leaves none behind. A fixture pinned the gap: with a legacy create and
254
+ transition sitting uncommitted, `claim-verify` returned exit 6 and a legacy
255
+ `create` refused with `publication-reconciliation-required`, while
256
+ `publish-claimed` on a claimed item published straight over the unreconciled
257
+ ledger. It now reconciles before the fence decision on every publication and
258
+ refuses with exit 6 `claim-store-unavailable`,
259
+ `details.reason: "publication-reconciliation-required"`, and
260
+ `details.findings` — the same envelope the legacy fence emits, so one
261
+ `claim-verify` clears every blocked path. **A publication behind an
262
+ unresolvable prior intent now returns that refusal instead of exit 6
263
+ `publication-outcome-unknown`.** The old code named the refused publication's
264
+ own outcome uncertain when it had not run at all; `state: "unchanged"` is the
265
+ honest answer, and the blocking finding still travels in `details.findings`.
266
+ The cost is honest about which read is new. Reconciliation adds no
267
+ complete-ledger read: it produces the snapshot the candidate validation and
268
+ the mutation engine's pre-lock read already share, so a claimed publication
269
+ still reads the working-tree ledger exactly twice. It does add the Git `HEAD`
270
+ read — `rev-parse`, one `ls-tree`, and a batched `cat-file` over every item
271
+ blob at `HEAD` — to every publication that previously had no unresolved
272
+ intent. That is the same read `create`, `transition`, `patch`, and every
273
+ claim lifecycle command already perform, so `publish-claimed` now pays the
274
+ toll its peers pay rather than a new one. Each publication persists one clock
275
+ floor, as it did before; a publication behind a pending intent, which used to
276
+ persist two, now persists one as well.
277
+
278
+ - **A shipped adapter no longer advertises trusted approval it cannot
279
+ exercise.** The three shipped entrypoints declared
280
+ `trusted_approval: {"supported": true, "sources": ["consumer"]}` while
281
+ `runAdapterEntrypoint` passed no approval, clock, nonce store, or core
282
+ executable identity to the invoke engine, so `create`, `transition`, and
283
+ `patch` through every shipped adapter refused `consumer-approval-required`
284
+ and could not succeed on any input. The declaration now reflects the runtime
285
+ of the invocation, the way `optional_features.claims` already reflects the
286
+ core probe: a bare entrypoint run declares no trusted approval and refuses a
287
+ mutation `capability-unavailable` with `missing: ["trusted-approval"]`, the
288
+ refusal section 5.1 already required for an absent declaration, and a host
289
+ that wires an approval source declares it truthfully. The two refusals stay
290
+ distinguishable, because they are different facts — no approval source at all
291
+ versus a source that produced no approval for this invocation — and conformance
292
+ case `07-mutation-approval` now pins both against the runtimes that produce
293
+ them, adding one assertion to the conformance suite.
294
+ - **A committed `create` is forwarded instead of reported as an unknown
295
+ outcome.** Both adapter engines required `schema_version: 1` in a create
296
+ result and re-serialized the expected candidate with the schema 1 default, so
297
+ every create against a real ledger — an empty ledger is schema 2 — failed the
298
+ result correlation, was judged an invalid core envelope, and came back as
299
+ `mutation-outcome-unknown` with recovery guidance about a write that had
300
+ provably committed. The ledger's schema version and the number the core
301
+ assigns under its own lock are the only two members of the answer a caller
302
+ could not have known; both engines now read those from the result and
303
+ re-derive the whole candidate from the request bytes, leaving every other
304
+ member pinned by an exact byte comparison against the source the core
305
+ returned. The defect was unreachable while every shipped mutation refused
306
+ before launch, and surfaced the moment a host runtime carried a real approval
307
+ through to the core.
308
+ - Adapter contract section 5's core-request table and section 5.1's approval
309
+ rule named only `create` and `transition`. Both have accepted `patch` since
310
+ adapter contract version 2; the prose now says so.
311
+
312
+ ### Added
313
+
314
+ - **`inspect` answers a bounded per-item lifecycle affordance projection.**
315
+ `inspect --ledger <dir> (--id <id> | --number <n>) --workbench --as-of
316
+ YYYY-MM-DD --json` returns, from one complete validated ledger snapshot,
317
+ `result.workbench`: the projection version, the as-of date, the ledger
318
+ snapshot witness, an `observation` member, a bounded item summary, and one
319
+ `transition_options` entry for every lifecycle target the native edge table
320
+ allows out of that item's kind and status. Each option names its target
321
+ status, its generated decision action or `null`, whether a caller-supplied
322
+ summary and rationale are required, the minimum legal transition date
323
+ `max(created, updated)`, its observed enabled state, and the observed
324
+ precondition issues and multi-item blockers in the exact `transition`
325
+ vocabulary. A workbench can now show a person which transitions an item can
326
+ take without duplicating lifecycle logic and without submitting a mutating
327
+ probe.
328
+
329
+ The read is an observation, not a lease, and says so in the response:
330
+ `observation.authority` is `observed-snapshot` and `observation.rechecked_by`
331
+ names what a later `transition` rechecks under lock — revision, lock, claim
332
+ fence, reconciliation, and candidate validation. It writes no item, lock,
333
+ claim journal, reconciliation log, or Git state, and it takes no lock.
334
+ `transition` and the projection share one lifecycle definition
335
+ (`src/lifecycle.js`), and a differential guard dispatches every projected
336
+ option and every unadvertised target through the real mutation, so an
337
+ advertised affordance cannot drift from what the mutation does.
338
+
339
+ Every variable-size field is bounded and says what it left out: the projected
340
+ title, the relation lists, each option's issues and blockers, and the related
341
+ IDs inside an issue. `--workbench` requires `--as-of`, an unpaired `--as-of`
342
+ is refused rather than ignored, and an `inspect` invocation without
343
+ `--workbench` is byte-identical to before. `capabilities` advertises
344
+ `operations.inspect.workbench` and the three exact bounds
345
+ `max_workbench_title_characters`, `max_workbench_collection_entries`, and
346
+ `max_workbench_response_bytes`; the core contract version stays 5, and the
347
+ projection is negotiated by its own `projection_version`. An invalid ledger is
348
+ `ledger-invalid` at exit 3 with no projection attached, and a projection that
349
+ would exceed its response bound is refused whole with
350
+ `workbench-response-too-large` at exit 2.
351
+
352
+ - **The conformance suite now measures real core outcomes end to end.** A new
353
+ equivalence case, `16-core-outcome-e2e`, carries nine hand-authored scenarios
354
+ that each run the direct real core in one isolated temporary workspace and,
355
+ separately, spawn the real shipped entrypoint over the bootstrap wire against
356
+ the real core in a second workspace materialized from the same before state:
357
+ `inspect` item-not-found, a committed `create`, a committed `transition`, a
358
+ committed `patch` by body replacement and by declared extension member, the
359
+ six-member date refusal, and all three `ledger-mutation` claim-fence refusal
360
+ classes. Success vectors match the exact core exit, stdout bytes, decoded
361
+ adapter streams with their digests and lengths, and the exact ledger
362
+ post-state; refusal vectors match the exact nonzero exit and unchanged ledger
363
+ bytes, and the fence refusals arrive as `ok: true` adapter transport results
364
+ rather than adapter errors. Before this case, no conformance assertion and no
365
+ bootstrap-wire test carried a mutation through a spawned entrypoint into a
366
+ launched core, which is how two real adapter defects shipped. The suite is
367
+ 210 assertions across 16 cases.
368
+
369
+ Determinism comes from fixed inputs and never from normalizing output: a
370
+ caller-supplied ULID, seeded revisions on isolated temporary ledgers, literal
371
+ dates, and — for the two real claim-fence read-backs — a fixed namespace, a
372
+ hand-authored claim journal, and a seeded future clock floor, so the emitted
373
+ `observed_at` is `max(physical_now, floor)` and therefore the floor. That
374
+ makes the refusal bytes fixed without mocking the core clock, and it expires:
375
+ both runners fail loudly and name `2031-01-15T12:01:00.000Z` once wall time
376
+ reaches it. Goldens are authored from the adapter contract, the work-claim
377
+ contract, and the normative `spec/fixtures/mutations/**` bytes; every byte
378
+ reused from those fixtures carries a `derived_from` pin, so drift on either
379
+ side stops the vector and asks for a reviewed golden change instead of
380
+ regenerating one. Only base64, SHA-256, and byte length are derived, and only
381
+ from an already hand-authored byte string.
382
+
383
+ The conformance host gains a granting approval mode, without which no
384
+ mutation can cross the spawned entrypoint at all. **Adapter contract section
385
+ 10 previously said no conformance fixture could manufacture authority; that
386
+ is no longer true, and the claim is withdrawn rather than quietly narrowed.**
387
+ What replaces it is narrower and checkable: the granting mode is reachable
388
+ only from a fixture's own runtime configuration, which no shipped adapter
389
+ package reads and no wire this contract defines carries; every granting
390
+ scenario runs against a throwaway temporary ledger; the approval is minted
391
+ from the binding the engine resolved and canonicalized by the independent
392
+ reference model. The evidence label is the production adapter engine under a
393
+ conformance host approval provider, not a live consumer approval mechanism.
394
+
395
+ - **A host process can wire consumer approval into a shipped adapter
396
+ entrypoint.** `runAdapterEntrypoint` now accepts an optional `hostRuntime`
397
+ carrying the approval source, the current time, the redeemed-nonce store, and
398
+ the core executable identity the host attests. It is a code-level parameter of
399
+ the embedding process and is deliberately absent from every wire: the
400
+ bootstrap request root schema is exact and has no approval member, so an
401
+ approval a model places on the request is an `invalid-invocation` that never
402
+ reaches the gate, exactly as adapter contract section 5.1 requires. The
403
+ approval may be a finished event or a resolver the adapter calls with the
404
+ exact binding it has just resolved — the argument vector, absolute workspace
405
+ paths, and instruction and handoff digests an approval covers do not exist
406
+ until the adapter has built them, so an interactive consumer prompt cannot
407
+ mint the approval any earlier. A resolver that fails produced no approval and
408
+ the mutation refuses; it never proceeds unapproved. The default is unchanged
409
+ and remains no approval. `test/adapter-host-approval-wire.test.js` carries the
410
+ first approved mutation in this repository to cross a spawned entrypoint into
411
+ a launched core and change a ledger, with its binding digest canonicalized by
412
+ the independent reference model rather than by the engine under test. No
413
+ version moved in any domain: `host.trusted_approval` has been optional since
414
+ version 1, the approval object and binding are untouched, and the mechanism is
415
+ invisible on every wire the contract defines. Adapter contract sections 3.2,
416
+ 3.3, 5.1, 10, and 12 state the seam, the honesty rule, the two-runtime
417
+ evidence, and the version argument.
418
+
419
+ - **The cut is one command, and version drift now fails the cut instead of
420
+ shipping.** `npm run release:cut -- <version> --date YYYY-MM-DD` runs on the
421
+ tip of the release branch, proves every version site is accounted for, plans
422
+ the new bytes in memory, runs the full release gate over them, and leaves one
423
+ `Cut <version>` commit and one annotated `v<version>` tag. It stops there:
424
+ push, `npm publish --tag next`, and the registry check stay separate named
425
+ steps, because no local command can undo any of them. Coverage is proved by
426
+ exact-set equality against a hand-maintained
427
+ `scripts/release-version-sites.json`, not by a global grep — the changelog and
428
+ the dated design records must keep naming old versions, so "grep finds
429
+ nothing" would be the wrong test. A release site added next month is
430
+ unmanifested and refuses the cut. `--dry-run` runs the same planner and the
431
+ same gate against a copy of HEAD and then proves the repository unchanged.
432
+ Reruns converge rather than repair: a cut tag at a clean HEAD reports
433
+ `already cut`, a complete cut commit without its tag resumes at tagging, and a
434
+ tag pointing elsewhere refuses.
435
+ - **The changelog can no longer lose its Unreleased section.** A cut opens a
436
+ fresh empty `## Unreleased` and files the released notes beneath it. The two
437
+ previous cuts renamed the heading instead, which left later changes landing
438
+ under an already published release.
439
+ - **The prerelease channel policy is stated and checkable.**
440
+ `npm run release:channels -- check|repair <version>` encodes it: `latest`
441
+ mirroring `next` at the published version and the first published alpha
442
+ deprecated. The first-choice policy — no `latest` at all, so a bare install
443
+ fails loudly — was refused by the registry itself: npm rejects deleting the
444
+ `latest` tag with E400 (verified live), so the current prerelease replaces
445
+ the dead first alpha as the forced default. `check` is read-only and is the
446
+ post-publish verification step; `repair` is idempotent and never unpublishes.
447
+
448
+ - **`--auto-commit` folds the commit-per-mutation ceremony into the mutation.**
449
+ The invariant is correct and the ceremony around it was the consumer's most
450
+ frequent daily cost: mutate, `git add`, `git commit`, `claim-verify`, repeat,
451
+ ten times for ten items. On a provisioned merge-coordinated ledger the new
452
+ opt-in bare flag on `create`, `transition`, `patch`, and `publish-claimed`
453
+ does that loop inside one invocation. It takes a per-working-tree mutex,
454
+ refuses any staged path anywhere and any dirty path under the ledger, checks
455
+ Git identity, runs an internal pre-mutation `claim-verify`, runs the mutation
456
+ unchanged, then commits **exactly** the changed item plus at most one
457
+ `.wowbagger/reconcile-<namespace>.md` under a fixed subject
458
+ (`wowbagger: transition item #7`; the canonical item ID for a schema-1 item
459
+ with no number). It verifies the resulting commit's parent, subject,
460
+ changed-path set, and every blob, then runs `claim-verify` again before it
461
+ answers. Success adds `git_commit`, `commit_paths`, and `claim_verified` to
462
+ `result`.
463
+
464
+ There is no configuration file setting, environment default, or repository
465
+ default, because a hidden default would make existing mutation automation
466
+ create Git commits unexpectedly. An invocation without the flag is
467
+ byte-identical to before, so the core contract stays 3 and the work-claim API
468
+ stays 1. The flag is direct-CLI only in this release; no adapter advertises or
469
+ constructs it.
470
+
471
+ What it will not do: commit anything on `state: "unchanged"` or
472
+ `state: "unknown"`, including the documented reconcile-log residue a refused
473
+ `publish-claimed` leaves behind; stage a path outside the ledger; broad-add,
474
+ amend, squash, reset, clean, stash, or unstage; pass `--no-verify` or disable
475
+ signing; fabricate an author; customize a commit message; or push, fetch,
476
+ pull, merge, or rebase. Hooks through `core.hooksPath`, `commit.gpgSign`, and
477
+ signing programs are honoured, and a hook that rewrites the subject or the
478
+ tree is reported rather than accepted.
479
+
480
+ - **An honest commit-failed contract, and one idempotent recovery verb.** A
481
+ post-publication Git failure that proves the commit is absent is exit 6
482
+ `git-commit-failed` with `state: "committed"` — the state still describes item
483
+ publication, not Git finalization — carrying the published revision, the exact
484
+ ledger-relative commit set with digests, `failure_stage`, `reason`, and a
485
+ bounded `recovery_token`. `create`, `transition`, and `patch` keep the core
486
+ domain; `publish-claimed` keeps `ledger-publication` and its top-level
487
+ `operation_id`. An **ambiguous** Git outcome is `git-commit-outcome-unknown`,
488
+ never `git-commit-failed`, and a commit that stands while reconciliation then
489
+ refuses is `post-commit-reconciliation-failed`. No failure envelope carries
490
+ hook output, signing output, absolute paths, or environment values.
491
+
492
+ New command: `wowbagger mutation-finalize --ledger <dir> --recovery-token
493
+ <token> --json`, answering in the work-claim domain because it changes Git
494
+ reconciliation state and no item byte. It re-derives every path from the
495
+ ledger and the provisioned namespace — the token is a witness, never authority
496
+ to select a path — re-checks the current bytes and the foreign-change rules,
497
+ creates the exact commit if it is absent, then runs `claim-verify`. When
498
+ `HEAD` already holds that exact commit it verifies and returns it without
499
+ creating a second one, so a lost response and a failed commit recover through
500
+ the same command, and repeating it is safe.
501
+
502
+ A failed attempt leaves its own commit set staged, because the design forbids
503
+ unstaging. Recovery tolerates exactly that residue and refuses anything else
504
+ staged; until it runs, the next `--auto-commit` invocation refuses on
505
+ `staged-paths-present`, which is the intended signal.
506
+
8
507
  ## 0.1.0-alpha.6 - 2026-08-17
9
508
 
10
509
  ### Added
@@ -263,7 +762,7 @@ consolidation. The first tagged release inherits this file.
263
762
  every read and every guarded mutation on that ledger, including ones that
264
763
  never touch the misplaced item, so the refusal has to say where the item
265
764
  belongs. The claim fence is not involved: `claim-verify` reports no finding
266
- on such a ledger, refuting the PropertyCompass2 PR #2184 claim that a
765
+ on such a ledger, refuting an earlier consumer report that a
267
766
  root-misplaced item makes the fence report `stale-write-detected` with
268
767
  `actual_revision: null`. Fixtures pin both configuration orders — layout
269
768
  bound first, and layout bound after the item was already committed at the