wowbagger 0.1.0-alpha.4 → 0.1.0-alpha.6
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 +451 -1
- package/README.md +643 -182
- package/adapters/claude-code/wowbagger-adapter.json +1 -1
- package/adapters/codex/wowbagger-adapter.json +1 -1
- package/adapters/opencode/wowbagger-adapter.json +1 -1
- package/docs/adapter-contract.md +139 -10
- package/docs/mutation-contract.md +990 -65
- package/docs/work-claim-contract.md +394 -0
- package/package.json +2 -1
- package/skills/wowbagger/SKILL.md +329 -9
- package/src/adapter/core-probe.js +3 -3
- package/src/adapter/entrypoint-main.js +30 -2
- package/src/adapter/process-outcome.js +180 -10
- package/src/claim-capabilities.js +8 -0
- package/src/claim-coordinator.js +30 -6
- package/src/claim-journal.js +21 -1
- package/src/claim-publication.js +392 -44
- package/src/claim-request.js +20 -0
- package/src/cli.js +104 -10
- package/src/extensions.js +127 -0
- package/src/git-reconciliation.js +136 -11
- package/src/ledger.js +162 -2
- package/src/mutation.js +461 -72
- package/src/report-attention.js +102 -0
- package/src/report-evidence.js +303 -0
- package/src/report-graph.js +364 -0
- package/src/report-html.js +141 -22
- package/src/report-sequencing.js +285 -0
- package/src/report-svg.js +342 -0
- package/src/report.js +40 -0
- package/src/schema-migration.js +27 -3
- package/src/validate.js +15 -5
- package/vendor/3d-force-graph/3d-force-graph.min.js +5 -0
- package/vendor/3d-force-graph/LICENSE +21 -0
- package/vendor/3d-force-graph/VERSIONS.json +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,457 @@ 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
|
-
##
|
|
8
|
+
## 0.1.0-alpha.6 - 2026-08-17
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`set.extensions` gives consumer-owned extension members a sanctioned patch
|
|
13
|
+
path.** Two field reports in two days: a consumer's own identifier field
|
|
14
|
+
rides a permitted extension member, and a wrong or missing one had no
|
|
15
|
+
ledger-side repair verb at all. On a provisioned ledger the hand-edit that
|
|
16
|
+
filled the gap is a stale write, so the protocol was forcing the edit it then
|
|
17
|
+
punished. `patch` now accepts an `extensions` container whose members name
|
|
18
|
+
extension members and whose values replace each one whole; `null` removes a
|
|
19
|
+
member. The fixed `set` allowlist is unchanged — `extensions` is one more
|
|
20
|
+
name on it, not an opening for arbitrary keys — so a top-level typo is still
|
|
21
|
+
an `unknown-member` refusal. Which members the container may name comes from
|
|
22
|
+
the committed `<ledger>/.wowbagger/extensions.json`, which declares a member
|
|
23
|
+
name and one value type each (`string`, `integer`, `boolean`, `string-list`).
|
|
24
|
+
**A ledger without that file has no patchable extension member at all**, and
|
|
25
|
+
the refusal names the missing declaration. Five new
|
|
26
|
+
`patch-precondition-failed` issue codes carry the refusals —
|
|
27
|
+
`extension-declaration-missing`, `extension-declaration-invalid`,
|
|
28
|
+
`extension-not-declared`, `extension-value-invalid`, `extension-anchored` —
|
|
29
|
+
in the existing four-member issue shape, with the member at fault named in
|
|
30
|
+
`field`. A member the item writes with a YAML anchor or alias is refused
|
|
31
|
+
rather than replaced, because replacing it would change every node bound to
|
|
32
|
+
the anchor; every member the request does not name keeps its exact
|
|
33
|
+
`extensionNodeIdentity` guarantee. The declaration authorizes a write and
|
|
34
|
+
never describes the ledger: `validate` does not read it, so an item whose
|
|
35
|
+
extension member disagrees with it stays valid and stays repairable. Nested
|
|
36
|
+
extension values still have no patch path and stay a reviewable hand-edit.
|
|
37
|
+
Core contract version stays 3 — the patch request schema widens and no
|
|
38
|
+
response envelope member is added, removed, or renamed — but version 3 is
|
|
39
|
+
published, so `contract_version` cannot answer whether a core carries this:
|
|
40
|
+
probe by sending an extension patch and reading the refusal, or pin the
|
|
41
|
+
distribution version. Documented in mutation contract section 9 and pinned by
|
|
42
|
+
`spec/fixtures/mutations/patch-extensions/`.
|
|
43
|
+
|
|
44
|
+
- **`claim-adopt` gives `unauthorized-revision` a non-destructive remedy.** A
|
|
45
|
+
consumer's staging checkout was blocked exit 6 on three items whose bodies
|
|
46
|
+
were hand-edited in a design session and merged. The refusal was correct, but
|
|
47
|
+
the only documented remedy — restore the authorized revision, then
|
|
48
|
+
`claim-verify` — discards reviewed, merged work. `claim-adopt` records that an
|
|
49
|
+
operator ruled the committed bytes legitimate and moves the coordinator's
|
|
50
|
+
authorized revision to them. It writes no item byte, so `updated` and the body
|
|
51
|
+
survive exactly. It is a standalone verb in the work-claim domain, a sibling
|
|
52
|
+
of `claim-verify`, and it is per item and per revision explicit: the request
|
|
53
|
+
names the item, the revision it believes is authorized, the revision being
|
|
54
|
+
adopted, and who is ruling. There is no adopt-all. It refuses
|
|
55
|
+
`adoption-witness-mismatch` on a stale witness (including a replay of a
|
|
56
|
+
successful adoption), `claim-held` while an unexpired claim holds the item,
|
|
57
|
+
`adoption-revision-uncommitted` unless the adopted revision is at Git `HEAD`
|
|
58
|
+
and in the caller's own working tree, and `adoption-ledger-invalid` when the
|
|
59
|
+
complete ledger would not validate. Success appends one `revision-adoption`
|
|
60
|
+
journal entry naming who, when, and both revisions, so the audit trail records
|
|
61
|
+
the ruling instead of losing it. Adoption is not a fence hole: the next
|
|
62
|
+
out-of-protocol edit is `unauthorized-revision` again, measured against the
|
|
63
|
+
adopted revision. Additive at contract version 1 — one new command, one new
|
|
64
|
+
journal entry type, three new error codes, no existing shape changed.
|
|
65
|
+
Documented in work-claim contract section 3.3 and pinned by
|
|
66
|
+
`spec/fixtures/work-claims/revision-adoption/`.
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
|
|
70
|
+
- **The report's epic-enablement factor now counts done or killed children
|
|
71
|
+
only.** It counted every child carrying a terminal date, which folded
|
|
72
|
+
archived and deferred children into the numerator: an epic with one done,
|
|
73
|
+
one archived, one deferred, and one backlog child reported enablement 0.75
|
|
74
|
+
while the mutation contract's terminal ratio for the same epic was 0.25. Two
|
|
75
|
+
numbers wore one name. A terminal date is not a terminal disposition —
|
|
76
|
+
archived restores and deferred undefers, both documented edges — so a parked
|
|
77
|
+
child is work postponed, not work retired, and counting it reported progress
|
|
78
|
+
that one transition takes back. The factor now reads the same done-or-killed
|
|
79
|
+
set as the contract and the epic complete rollup: one definition, three
|
|
80
|
+
surfaces. This is display-only and recomputed at render time; no ledger byte,
|
|
81
|
+
no wire shape, and no `ready` ordering changes. What does change is the
|
|
82
|
+
report: an epic with parked children reports a lower percentage, and its open
|
|
83
|
+
children rank lower on the epic-enablement step of `work next`.
|
|
84
|
+
- **Every `unauthorized-revision` remediation string now names both remedies.**
|
|
85
|
+
It was one sentence naming only the restore path, which reads as an
|
|
86
|
+
instruction to throw the edit away; the field report above did exactly that.
|
|
87
|
+
It is now two sentences, and each says what happens to the edit: `Restore the
|
|
88
|
+
authorized revision at <path>, then run claim-verify; that discards the edit.
|
|
89
|
+
Or adopt the committed revision of <path> with claim-adopt, then run
|
|
90
|
+
claim-verify; that keeps the edit.` The finding's `code`, `reason`,
|
|
91
|
+
`observed_surface`, `expected_path`, and revisions are unchanged; only the
|
|
92
|
+
human-readable `remediation` prose changed. `revision-regression` keeps its
|
|
93
|
+
restore-only string on purpose: it only fires while an active claim holds the
|
|
94
|
+
item, which is a state adoption refuses.
|
|
95
|
+
- **`patch` corrects an item title.** `set.title` takes a non-empty schema
|
|
96
|
+
string and replaces the title whole, under the same per-ID lock, exact-byte
|
|
97
|
+
compare-and-swap, candidate complete-ledger validation, and atomic
|
|
98
|
+
publication as every other patch; an item with an active claim is refused,
|
|
99
|
+
and `updated` moves to `request.date`. The scalar node is rewritten in place,
|
|
100
|
+
so the quoting style, the comments, the anchors, and every extension node
|
|
101
|
+
survive byte for byte. This closes a protocol contradiction reported twice
|
|
102
|
+
from the field: correcting a title used to require an out-of-protocol edit,
|
|
103
|
+
and on a provisioned ledger that edit is a stale write, so the next mutation
|
|
104
|
+
refused exit 6 `unauthorized-revision` and every later mutation stayed
|
|
105
|
+
blocked. `null` follows the frontmatter removal convention onto
|
|
106
|
+
`candidate-invalid`, because title is required; `""` is refused one step
|
|
107
|
+
earlier, at the request.
|
|
108
|
+
- **The mutation contract states the frontmatter ownership boundary.** Section
|
|
109
|
+
9 gains a `Frontmatter ownership` table: one row per member, sorted into
|
|
110
|
+
core-owned (`schema_version`, `id`, `number`, `status`, `created`, `updated`,
|
|
111
|
+
the terminal dates, `decisions`), consumer-editable through `patch` (`title`,
|
|
112
|
+
`priority`, `depends_on`, `related`, `body`), and create-once (`kind`,
|
|
113
|
+
`provenance`, `parent`, `snoozed_until`). The boundary was previously
|
|
114
|
+
discoverable only by sending a patch and reading the refusal. A docs test
|
|
115
|
+
pins every row and the skill teaches the same three classes.
|
|
116
|
+
|
|
117
|
+
### Decided
|
|
118
|
+
|
|
119
|
+
- **`kind` stays unpatchable, and the contract now says why.** A task-to-epic
|
|
120
|
+
flip changes which parent and children rules the item is validated under and
|
|
121
|
+
which lifecycle edges it may take. It needs its own verb with its own
|
|
122
|
+
preconditions, not a wider patch set.
|
|
123
|
+
- **Extension members stay out of `patch`, and the contract records the
|
|
124
|
+
reasons.** Two field reports asked for a sanctioned path for consumer-owned
|
|
125
|
+
identifier fields riding permitted extension members. The widening was
|
|
126
|
+
assessed against title's machinery and is not the same machinery: the
|
|
127
|
+
fail-closed `set` rule has no room for an arbitrary key, candidate validation
|
|
128
|
+
constrains no extension value, nested and anchored values do not survive a
|
|
129
|
+
whole-value replace the way a scalar does, and the oracle has no observable
|
|
130
|
+
surface to correlate an extension patch against. Section 9 names what a real
|
|
131
|
+
path would need — a `set.extensions` container, a declared per-ledger
|
|
132
|
+
extension schema, a stated rule for anchored and nested values, and an
|
|
133
|
+
oracle-visible surface — so the deferral is a design boundary rather than a
|
|
134
|
+
silence. Their status is stated in the ownership table either way.
|
|
135
|
+
- **`patch` gains `set.body_append`.** It takes a JSON string written after the
|
|
136
|
+
item's current body, under the same string rules `set.body` takes: the empty
|
|
137
|
+
string is valid, the bytes are the UTF-8 encoding of the string exactly, and
|
|
138
|
+
`null` is refused at `/set/body_append` because appending nothing is the empty
|
|
139
|
+
string. It is the same byte splice after the closing delimiter, so no
|
|
140
|
+
frontmatter byte moves, `updated` becomes request.date, and every existing
|
|
141
|
+
body byte survives — the request never names them. `body` and `body_append`
|
|
142
|
+
are mutually exclusive in one request: naming both is an `invalid-request`
|
|
143
|
+
issue at `/set`, exit 2, unchanged. This covers the annotation shape a mirror
|
|
144
|
+
consumer needs without making it carry a merge. The core contract stays
|
|
145
|
+
version 3 — it widens the patch request schema and moves no response envelope
|
|
146
|
+
member — but version 3 is already published without it, so a consumer
|
|
147
|
+
**cannot** probe for append support by reading `contract_version`. Send an
|
|
148
|
+
append and read the refusal instead: a core without it answers `unknown-member`
|
|
149
|
+
at `/set/body_append`, exit 2, unchanged.
|
|
150
|
+
|
|
151
|
+
### Documentation
|
|
152
|
+
|
|
153
|
+
- **The allowed-edges table carries the defer and undefer edges.** `task` and
|
|
154
|
+
`epic` `backlog` to `deferred` and `deferred` to `backlog` have shipped in
|
|
155
|
+
`src/mutation.js` since deferral existed, both requiring a decision, and the
|
|
156
|
+
ownership table already documented `deferred` as a core-owned field that
|
|
157
|
+
`transition` writes on a defer. Section 8's edge table listed neither row, so
|
|
158
|
+
the one place a consumer looks up what it may drive under-reported the
|
|
159
|
+
lifecycle by two edges. Both rows are added with the evidence the code
|
|
160
|
+
generates — `set deferred; append defer decision` and `clear deferred; append
|
|
161
|
+
undefer decision` — and a docs guard pins the kind, the date, and the
|
|
162
|
+
decision on each. No emitted byte changes and the core contract stays version
|
|
163
|
+
3: this documents shipped edges, it does not add them.
|
|
164
|
+
|
|
165
|
+
- **The epic derivation section cites one shared definition instead of a
|
|
166
|
+
divergence.** It recorded the report's epic-enablement factor as a different,
|
|
167
|
+
wider number than the terminal ratio. The report factor was narrowed to match
|
|
168
|
+
(see Changed above), so the paragraph is replaced: the contract, the epic
|
|
169
|
+
complete rollup, and the report all count done or killed direct children over
|
|
170
|
+
all direct children, and the section now says outright that a terminal date is
|
|
171
|
+
not the test. The docs guard is re-pointed at the new truth rather than
|
|
172
|
+
relaxed.
|
|
173
|
+
|
|
174
|
+
- **The contract states that `set.body` replaces and never merges.** A consumer
|
|
175
|
+
mirroring an external source regenerated an item body from its upstream card
|
|
176
|
+
and destroyed a ledger-only annotation; every check passed, because
|
|
177
|
+
`expected_revision` is a byte-level lost-update guard with no semantic safety.
|
|
178
|
+
Mutation contract section 9 and the skill's body bullet now say it plainly:
|
|
179
|
+
the replacement is total, and a mirroring consumer MUST read-modify-write from
|
|
180
|
+
the current item body and MUST never regenerate from the source alone. Docs
|
|
181
|
+
guards pin both sentences.
|
|
182
|
+
|
|
183
|
+
- **The contract documents the selector an `inspect` `item-not-found` refusal
|
|
184
|
+
echoes.** `inspect --number <n>` on a number no item carries emits
|
|
185
|
+
`details: {"number": <n>}`, and it has done so since `--number` shipped in
|
|
186
|
+
0.1.0-alpha.5. Mutation contract section 5 claimed these details contain only
|
|
187
|
+
`id`, so the published prose and the published wire disagreed. Section 5 now
|
|
188
|
+
states the rule the runtime follows — the details carry exactly the selector
|
|
189
|
+
the request used, `id` for `--id` and `number` for `--number` — and
|
|
190
|
+
`spec/fixtures/mutations/inspect-number-not-found/` pins it. No emitted byte
|
|
191
|
+
changes and the core contract stays version 3: this documents a shipped
|
|
192
|
+
shape, it does not introduce one. The adapter surfaces still require id-only
|
|
193
|
+
details, deliberately: the adapter's `inspect` request accepts no `number`
|
|
194
|
+
member and always invokes `--id`, so it can never see the number variant.
|
|
195
|
+
|
|
196
|
+
## 0.1.0-alpha.5 - 2026-08-16
|
|
197
|
+
|
|
198
|
+
### Breaking
|
|
199
|
+
|
|
200
|
+
- **`number` is no longer caller-settable on schema version 2 ledgers.**
|
|
201
|
+
`create` refuses a request supplying `item.number` and assigns the next
|
|
202
|
+
number itself (`max + 1` under the number-index lock); `patch` refuses
|
|
203
|
+
`set.number` because the number is the immutable item identity. A consumer
|
|
204
|
+
mirroring a legacy backlog cannot carry its legacy numbers into wowbagger
|
|
205
|
+
handles — keep legacy identifiers in a permitted extension member or in the
|
|
206
|
+
item body instead. (Shipped as part of the number-as-identity work; this
|
|
207
|
+
notice was added after the 0.1.0-alpha.5 tarball was cut, so the packaged
|
|
208
|
+
changelog carries it only inside the contract version 3 delta note.)
|
|
209
|
+
|
|
210
|
+
### Added
|
|
211
|
+
|
|
212
|
+
- **The report draws the whole ledger as a 3D dependency graph.** It sits below
|
|
213
|
+
the evidence layer, under the decision surface. Every item is a node labelled
|
|
214
|
+
`#N`, coloured by readiness or terminal status and sized by the same
|
|
215
|
+
transitive unblocking leverage the recommended order uses; `depends_on` edges
|
|
216
|
+
are straight and arrowed, `parent` edges are curved and unarrowed, and both
|
|
217
|
+
run from the prerequisite to the item it releases. Hovering or clicking a node
|
|
218
|
+
shows its number, title, status, age, leverage, and the same reasons line the
|
|
219
|
+
ranked list prints for it. The renderer is `3d-force-graph` 1.80.0 over
|
|
220
|
+
Three.js r183, vendored at `vendor/3d-force-graph/` with its upstream SHA-256
|
|
221
|
+
recorded beside it and pinned by a test, and inlined at generation time: the
|
|
222
|
+
report stays one self-contained file and fetches nothing at generation or view
|
|
223
|
+
time. It costs roughly 1.3 MB of report size. A browser without WebGL gets the
|
|
224
|
+
section's plain explanation and a per-node roster instead; no
|
|
225
|
+
decision-relevant content exists only in the 3D view.
|
|
226
|
+
|
|
227
|
+
### Changed
|
|
228
|
+
|
|
229
|
+
- **An invalid ledger can now be diagnosed with the documented commands.** One
|
|
230
|
+
invalid item still refuses every read and every guarded mutation on that
|
|
231
|
+
ledger, but the refusals no longer hide what the operator has to read.
|
|
232
|
+
`inspect` keeps refusing exit 3 `ledger-invalid` — handing back a revision
|
|
233
|
+
from a ledger the core has not judged would read as a mutation precondition,
|
|
234
|
+
and there is no flag that skips validation — and its refusal now carries
|
|
235
|
+
`error.details.item`, the same lossless snapshot the success envelope
|
|
236
|
+
defines, for the item the request selected, whenever no validation error
|
|
237
|
+
names that item's path. A faulted item is withheld; `validate` already names
|
|
238
|
+
its repair. `claim-verify` now reports `result.ledger_validation`, carrying
|
|
239
|
+
`valid` and `errors` exactly as the bare `validate` result does, plus a
|
|
240
|
+
`remediation` when the ledger is invalid. Its claim answer is unchanged:
|
|
241
|
+
`findings`, `state`, and the exit status still describe claim state alone, so
|
|
242
|
+
a consistent journal over an invalid ledger is still exit 0 with
|
|
243
|
+
`findings: []` — it just no longer pretends that is a clear road. The report
|
|
244
|
+
costs no extra ledger read. Fixtures extend item #104's misplaced-item
|
|
245
|
+
scenario.
|
|
246
|
+
- **The adapter forwards `inspect` refusals instead of calling them protocol
|
|
247
|
+
errors.** Both the engine and the independent oracle demanded a canonical
|
|
248
|
+
mutation request before they would accept any error details, which no read
|
|
249
|
+
command has, so every `inspect` `item-not-found` and `ledger-invalid` refusal
|
|
250
|
+
was mapped to `core-protocol-error`. The precondition now applies only to
|
|
251
|
+
mutation commands. The same surfaces accept the `expected_path` and
|
|
252
|
+
`remediation` that item #104 added to a validation error, and the optional
|
|
253
|
+
`details.item` on an `inspect` `ledger-invalid` refusal — on `inspect` only;
|
|
254
|
+
a mutation refusal that carries one is still rejected.
|
|
255
|
+
|
|
256
|
+
- **The report's content security policy now also forbids `connect-src`.** The
|
|
257
|
+
report has never opened a connection; the policy now says so.
|
|
258
|
+
|
|
259
|
+
- **The `item-outside-layout` validation error now names the expected path and
|
|
260
|
+
the relocation that repairs it.** It keeps its stable code and its actual
|
|
261
|
+
`path`, and gains `expected_path` plus a `remediation`; its message names
|
|
262
|
+
both paths. A committed item outside the configured items directory refuses
|
|
263
|
+
every read and every guarded mutation on that ledger, including ones that
|
|
264
|
+
never touch the misplaced item, so the refusal has to say where the item
|
|
265
|
+
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
|
|
267
|
+
root-misplaced item makes the fence report `stale-write-detected` with
|
|
268
|
+
`actual_revision: null`. Fixtures pin both configuration orders — layout
|
|
269
|
+
bound first, and layout bound after the item was already committed at the
|
|
270
|
+
root.
|
|
271
|
+
- **The core contract version is now `3`.** Every core command envelope
|
|
272
|
+
(`capabilities`, `inspect`, `create`, `transition`, `patch`, `mint-id`,
|
|
273
|
+
`report`) carries `contract_version: 3`, the shipped adapters require core
|
|
274
|
+
contract version 3, and the installed skill's version check gates on 3. A
|
|
275
|
+
version 1 or version 2 consumer fails closed against this core, which is the
|
|
276
|
+
point of the bump. Version 3 is version 2 plus four deltas against published
|
|
277
|
+
`0.1.0-alpha.4`: the widened `date-before-created` / `date-before-updated`
|
|
278
|
+
issue shape carrying `item_created` and `item_updated` (the delta that forced
|
|
279
|
+
the bump — a version 2 consumer validating issue members exactly refuses the
|
|
280
|
+
six-member shape); the patch field set widening from `number`/`priority` to
|
|
281
|
+
`priority`/`depends_on`/`related`; number as the core-assigned immutable item
|
|
282
|
+
identity on schema version 2, with `create` refusing a supplied number and
|
|
283
|
+
`inspect` accepting `--number`; and `create` deriving its published path from
|
|
284
|
+
a committed `.wowbagger/layout.json`. The mutation contract's "Contract
|
|
285
|
+
versions" section carries the full enumeration. The legacy work-claim,
|
|
286
|
+
ledger-publication, and ledger-mutation envelopes and
|
|
287
|
+
`result.operations.work_claim.api_version` are separate version domains and
|
|
288
|
+
stay at 1; the adapter contract stays at 2.
|
|
289
|
+
|
|
290
|
+
### Added
|
|
291
|
+
|
|
292
|
+
- The README and the installed skill warn that `git mv` refuses a freshly
|
|
293
|
+
created item, because `create` writes an untracked file and the `git add -A`
|
|
294
|
+
behind it in an unchecked batch commits the item at the ledger root instead.
|
|
295
|
+
Both state the safe sequence: plain `mv`, then `git add`, checking every exit
|
|
296
|
+
code before the commit. The warning sits in the `0.1.0-alpha.4` boundary text
|
|
297
|
+
that already tells consumers that core ignores the layout file.
|
|
298
|
+
- **`patch` can replace an item body.** `set.body` takes a JSON string that
|
|
299
|
+
replaces the whole body under `create`'s body rules, so a consumer whose
|
|
300
|
+
items mirror an external card updates them through the managed path instead
|
|
301
|
+
of hand-editing the Markdown. A body patch rewrites no frontmatter byte —
|
|
302
|
+
anchors, aliases, comments, quoting, styles, member order, and extension
|
|
303
|
+
members all survive, and only `updated` changes, as it does for every patch.
|
|
304
|
+
A body may be set in the same `set` as `priority`, `depends_on`, or
|
|
305
|
+
`related`, in one compare-and-swap write. `null` is refused at `/set/body`:
|
|
306
|
+
the body is a region of the file, so removing it means `""`, not null. A
|
|
307
|
+
claimed item, a stale revision, and a non-string body refuse as before. This
|
|
308
|
+
widens the patch request schema inside core contract version 3 and does not
|
|
309
|
+
move the version.
|
|
310
|
+
- One envelope rule now covers every `--json` response. The mutation contract
|
|
311
|
+
states the response domains (core, work-claim, ledger-publication,
|
|
312
|
+
ledger-mutation, and bare result), the dispatch steps a generic consumer
|
|
313
|
+
follows, which domain each command's success and each refusal class answers
|
|
314
|
+
in, and the exact root members of each shape. Both sanctioned exceptions are
|
|
315
|
+
stated with their reasons: `validate` and `ready` stay bare results because
|
|
316
|
+
scripts and fixtures depend on those bytes, and a claim-fenced refusal to
|
|
317
|
+
`create`, `transition`, or `patch` answers in the `ledger-mutation` domain
|
|
318
|
+
with `command: "<command>-v1"` and `contract_version: 1` because it is the
|
|
319
|
+
work-claim contract refusing, not the core contract. The work-claim contract
|
|
320
|
+
now names all three of its `namespace` values.
|
|
321
|
+
`spec/fixtures/envelope-domains/manifest.json` pins all 37 response classes,
|
|
322
|
+
and `test/envelope-dispatch.test.js` walks every one of them through the
|
|
323
|
+
documented dispatch rule and rejects drift in either direction. No emitted
|
|
324
|
+
byte changed and no contract version moved.
|
|
325
|
+
- `report` now renders a sequencing dashboard instead of a state snapshot. The
|
|
326
|
+
HTML opens with **Work next**, the ready set in a recommended order with the
|
|
327
|
+
factors that placed each entry printed beside it; then **Attention**, naming
|
|
328
|
+
blockers by number, the oldest open work with its age, and started work past
|
|
329
|
+
this ledger's own 85th-percentile cycle time; then an evidence layer with
|
|
330
|
+
aging buckets, weekly arrivals against completions, accept-to-complete cycle
|
|
331
|
+
time, and a Monte Carlo forecast as 50 and 85 percent bands. State counts,
|
|
332
|
+
item cards, and swarm batches remain, below that decision surface. Relations
|
|
333
|
+
and readiness reasons inside the drill-down now name items by number.
|
|
334
|
+
Ordering is a report-layer derivation, recomputed from ledger bytes at render
|
|
335
|
+
time and never persisted: `ready --json`, its four-step order, and the
|
|
336
|
+
mutation contract are unchanged. The report file stays self-contained with no
|
|
337
|
+
external runtime dependency.
|
|
338
|
+
- Report configuration accepts two more `fields` mappings, `class` and `due`.
|
|
339
|
+
`class` is a class of service from `expedite | fixed-date | standard |
|
|
340
|
+
intangible`; `expedite` lifts an item above every other ready item, an absent
|
|
341
|
+
value means `standard`, and an unrecognised value is ranked as standard and
|
|
342
|
+
reported in the report rather than dropped. `due` is an ISO calendar date
|
|
343
|
+
ordered by proximity. Both ride the existing extension-member channel, so no
|
|
344
|
+
core field carries them.
|
|
345
|
+
- The commit-per-mutation invariant is documented. On a provisioned ledger,
|
|
346
|
+
every mutation must be committed to Git before the next mutating command,
|
|
347
|
+
and `claim-verify` is the reconciliation procedure for the exit 6
|
|
348
|
+
`publication-reconciliation-required` refusal. The mutation contract, the
|
|
349
|
+
work-claim contract, the README, and the installed skill's claimed and
|
|
350
|
+
unclaimed loops all state the rule and the loop it implies. The mutation
|
|
351
|
+
contract also records why validating against working-tree bytes was
|
|
352
|
+
rejected.
|
|
353
|
+
- `claim capabilities --ledger <dir> --json` now advertises
|
|
354
|
+
`result.backend.write_serialization`. A provisioned Git-journal backend
|
|
355
|
+
reports `scope: "all-worktrees-of-one-repository"` and
|
|
356
|
+
`blocks_until: "peer-commit-visible-in-this-checkout"`; an unprovisioned
|
|
357
|
+
backend reports `scope: "none"`. This makes the serialization the shared
|
|
358
|
+
Git-common-directory journal already performed discoverable instead of
|
|
359
|
+
implied. The core `capabilities` envelope is unchanged; this change is not
|
|
360
|
+
one of the version 3 deltas.
|
|
361
|
+
|
|
362
|
+
- A `date-before-created` or `date-before-updated` issue now carries
|
|
363
|
+
`item_created` and `item_updated` after `related_ids` — the target item's own
|
|
364
|
+
dates at refusal time, both dates on both codes, on `transition` and `patch`
|
|
365
|
+
alike. One refusal now states the whole acceptable date window, so correcting
|
|
366
|
+
the request no longer costs an `inspect` round-trip. No other issue code
|
|
367
|
+
changes shape; a consumer that validates issue members exactly must accept
|
|
368
|
+
six members for these two codes. This widening is the reason the core
|
|
369
|
+
contract version moves to 3 (see Changed, above).
|
|
370
|
+
The mutation contract and the installed skill now also state that `create`
|
|
371
|
+
derives `created` from the ULID timestamp, which is UTC, with the
|
|
372
|
+
across-midnight example that produces this refusal.
|
|
373
|
+
|
|
374
|
+
### Documentation
|
|
375
|
+
|
|
376
|
+
- **`create` stays journal-silent, and the work-claim contract now says why.**
|
|
377
|
+
Section 3.1 already stated that `create` records no claim-journal entry and
|
|
378
|
+
therefore never blocks a sibling worktree. It now records the decision to
|
|
379
|
+
keep that asymmetry and the three reasons behind it: create's publication is
|
|
380
|
+
already atomic, no-clobber, and byte-verified; journaling create would
|
|
381
|
+
serialize every worktree on the highest-volume mutation; and the remaining
|
|
382
|
+
exposure window closes at the item's first `transition` or `patch`. The
|
|
383
|
+
window is stated honestly — until that first journal-visible mutation an
|
|
384
|
+
out-of-protocol overwrite of a created item is not detected, and a commit
|
|
385
|
+
alone does not close the window, because reconciliation compares only the
|
|
386
|
+
revisions the journal expects. `test/create-journal-asymmetry.test.js` pins
|
|
387
|
+
both halves end to end. No behaviour changed.
|
|
388
|
+
|
|
389
|
+
### Fixed
|
|
390
|
+
|
|
391
|
+
- A claim-fence refusal no longer reaches the agent as
|
|
392
|
+
`mutation-outcome-unknown`. Both adapter engines classified every response
|
|
393
|
+
with the core envelope validator, so a fenced refusal — `namespace:
|
|
394
|
+
"ledger-mutation"`, `command: "<command>-v1"`, `contract_version: 1`, `state:
|
|
395
|
+
"unchanged"` — failed core validation and became "the mutation may have been
|
|
396
|
+
applied; inspect current state before retrying", on every fenced refusal on a
|
|
397
|
+
provisioned ledger, about a write that provably never ran. The adapter now
|
|
398
|
+
dispatches on the response domain first, exactly as the mutation contract's
|
|
399
|
+
section 2 rule requires, and validates a fenced refusal on the work-claim
|
|
400
|
+
contract's terms: `claimed-item-write-refused` on `create`,
|
|
401
|
+
`active-claim-write-refused` on `transition` and `patch`, and
|
|
402
|
+
`claim-store-unavailable` on any mutation, each with its pinned message, exit,
|
|
403
|
+
and permitted states, its read-back bound to the item the caller asked to
|
|
404
|
+
write, and its reason plus findings and remediation forwarded verbatim. A
|
|
405
|
+
`claim-store-unavailable` refusal that declares `state: "unknown"` stays an
|
|
406
|
+
unknown outcome, and so does any namespaced envelope the adapter cannot
|
|
407
|
+
classify. Adapter contract section 6.1 states the rule and the honest-outcome
|
|
408
|
+
guarantee; five conformance vectors pin it, the differential test replays each
|
|
409
|
+
through both engines, and no version moved in either domain.
|
|
410
|
+
- A mutation on a claim-protected ledger now reads the complete ledger twice
|
|
411
|
+
instead of three times. Journal reconciliation and the mutation engine's
|
|
412
|
+
pre-lock phase were separate unlocked reads of the same directory inside one
|
|
413
|
+
claim-lock hold, and reconciliation writes nothing a complete load reads, so
|
|
414
|
+
the pre-lock phase reuses reconciliation's snapshot. On a 1,500-item
|
|
415
|
+
provisioned fixture a create fell from about 1.15 s to about 0.89 s and a
|
|
416
|
+
transition from about 1.17 s to about 0.91 s, matching one full load at about
|
|
417
|
+
0.29 s. The read under lock stays: it is what decides the revision
|
|
418
|
+
compare-and-swap and the lock-closure stability check, and every decision
|
|
419
|
+
drawn from the shared snapshot is re-made against it. A lock-closure retry
|
|
420
|
+
still reads fresh. No validation rule changed, and a mutation on a plain
|
|
421
|
+
directory is unaffected.
|
|
422
|
+
- A mutation on a large provisioned ledger no longer spends its wall time in
|
|
423
|
+
process spawns. Git HEAD reconciliation read every committed item with its
|
|
424
|
+
own `git show`, one subprocess per item, serially; it now reads them with
|
|
425
|
+
one `git cat-file --batch` subprocess per 16 MiB of tree content. On a
|
|
426
|
+
1,500-item fixture a create fell from about 15.4 s to about 1.2 s and a
|
|
427
|
+
transition from about 15.4 s to about 1.3 s. The reconciliation reads the
|
|
428
|
+
same bytes for the same items, and no validation is skipped: candidate
|
|
429
|
+
validation still validates the complete ledger.
|
|
430
|
+
|
|
431
|
+
- Every reconciliation finding that blocks a mutation now carries a
|
|
432
|
+
`remediation` string naming the path to act on and `claim-verify`.
|
|
433
|
+
`revision-regression`, `legacy-mutation-outcome-unknown`, and
|
|
434
|
+
`publication-outcome-unknown` previously blocked with no recovery action;
|
|
435
|
+
they now also carry `expected_path` when it is identifiable.
|
|
436
|
+
|
|
437
|
+
- A committed `.wowbagger/layout.json` now binds the ledger's item directory.
|
|
438
|
+
`create` derives its path from that configuration. Validation rejects parsed
|
|
439
|
+
items outside it, special or symbolic layout files, and metadata-directory
|
|
440
|
+
aliases. Malformed configuration fails closed. Ledgers without the file
|
|
441
|
+
retain the root-level `<id>.md` layout.
|
|
442
|
+
- A refused legacy mutation and a clean `claim-verify` now leave the ledger
|
|
443
|
+
working tree byte-identical. The tracked reconciliation log projects only
|
|
444
|
+
journal entries that record a decision, so per-invocation clock entries no
|
|
445
|
+
longer dirty it, and a successful legacy mutation now projects its own
|
|
446
|
+
entries before returning instead of one command later. Batch tooling no
|
|
447
|
+
longer needs to stage the log after a failure.
|
|
448
|
+
- `claim-verify` now classifies stale writes as unauthorized revisions, missing
|
|
449
|
+
Git finalization, worktree synchronization, or pending claimed publication.
|
|
450
|
+
Working-tree deletions of an authorized Git revision are unauthorized.
|
|
451
|
+
Findings name the expected item path and give a direct recovery action.
|
|
452
|
+
- The contracts and the skill now state that a provisioned ledger's claim
|
|
453
|
+
journal serializes every worktree of one repository, and that a recorded
|
|
454
|
+
write blocks mutations in the other worktrees until its commit is visible
|
|
455
|
+
there. `limits.cross_worktree_coordination: false` is documented as "the
|
|
456
|
+
core never synchronizes checkouts", not as independent worktree writes.
|
|
457
|
+
Both stale-write remedies, the moving-`expected_revision` trap, and the
|
|
458
|
+
failed copy-the-item-in workaround are documented and pinned by tests.
|
|
9
459
|
|
|
10
460
|
## 0.1.0-alpha.4 - 2026-08-14
|
|
11
461
|
|