wowbagger 0.1.0-alpha.6 → 0.1.0-alpha.7
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 +307 -0
- package/LICENSE +21 -201
- package/README.md +75 -19
- package/adapters/claude-code/wowbagger-adapter.json +3 -3
- package/adapters/codex/wowbagger-adapter.json +1 -1
- package/adapters/opencode/wowbagger-adapter.json +1 -1
- package/docs/adapter-contract.md +122 -19
- package/docs/mutation-contract.md +320 -24
- package/docs/work-claim-contract.md +118 -18
- package/package.json +3 -1
- package/skills/wowbagger/SKILL.md +66 -14
- package/src/adapter/core-probe.js +11 -3
- package/src/adapter/entrypoint-main.js +48 -10
- package/src/adapter/invoke.js +43 -24
- package/src/adapter/process-outcome.js +127 -16
- package/src/claim-capabilities.js +3 -3
- package/src/claim-journal.js +37 -5
- package/src/claim-publication.js +88 -54
- package/src/claim-store.js +20 -1
- package/src/cli.js +70 -16
- package/src/extensions.js +15 -2
- package/src/git-autocommit.js +985 -0
- package/src/git-reconciliation.js +8 -3
- package/src/instrumentation.js +75 -0
- package/src/limits.js +11 -0
- package/src/mutation.js +56 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,313 @@ 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.7 - 2026-08-18
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **The item source is bounded at every candidate door, and the core contract
|
|
15
|
+
moves to 4.** The published version 3 core accepted a 50-MiB `create` with
|
|
16
|
+
exit `0` and state `committed` in 0.70 s: `create`, `transition`, and `patch`
|
|
17
|
+
had no bound
|
|
18
|
+
anywhere, and `publish-claimed` alone bounded candidates but reported an
|
|
19
|
+
oversized, perfectly canonical candidate as `The candidate source is not
|
|
20
|
+
canonical base64.` One shared `MAX_ITEM_SOURCE_BYTES` of 8,388,608 now bounds
|
|
21
|
+
the complete serialized successor at all four doors, and every one of them
|
|
22
|
+
answers the same named refusal: `item-source-too-large`, exit 2, state
|
|
23
|
+
`unchanged`, details exactly `{id, size_bytes, limit_bytes}` in the core
|
|
24
|
+
domain and `{item_id, size_bytes, limit_bytes}` in the ledger-publication
|
|
25
|
+
domain. The measurement is serialized UTF-8 bytes, so frontmatter, decisions,
|
|
26
|
+
extensions, and body all draw on the same budget; `transition` is bounded
|
|
27
|
+
because its decision block can push a legal stored item past it. Core
|
|
28
|
+
capabilities advertises the value at `result.limits.max_item_source_bytes`.
|
|
29
|
+
This narrows accepted input against a published version, so the core contract
|
|
30
|
+
moves to 4 and version 3 consumers fail closed at negotiation. A ledger
|
|
31
|
+
committed before the bound does not brick: an oversized item still validates,
|
|
32
|
+
still inspects, and a patch that shrinks it under the bound is accepted.
|
|
33
|
+
|
|
34
|
+
- **The work-claim API moves to 2.** The oversized-candidate response replaces
|
|
35
|
+
the error `publish-claimed` version 1 pinned for that input, so
|
|
36
|
+
`result.operations.work_claim.api_version` is now `2` and version 1 consumers
|
|
37
|
+
fail closed. Malformed base64 keeps its version 1 `invalid-request`: without
|
|
38
|
+
canonical base64 there is no item source to measure. The base64-character
|
|
39
|
+
precheck is gone — the 11,534,336-byte serialized-request bound already caps
|
|
40
|
+
what a candidate can decode to, and the precheck was the remaining path that
|
|
41
|
+
answered a genuine size refusal with a false base64 message. That transport
|
|
42
|
+
bound is unchanged and still measures a different object.
|
|
43
|
+
- **A claimed publication no longer takes one cooperative lock per ledger
|
|
44
|
+
item.** `publish-claimed` computed its lock closure from every item in the
|
|
45
|
+
loaded ledger, so publishing one item on a 1,500-item ledger created, wrote,
|
|
46
|
+
fsynced, and unlinked 1,503 lock files. It runs from journal replay through
|
|
47
|
+
its terminal record inside the namespace write lock, and every other
|
|
48
|
+
cooperative writer of a provisioned ledger enters that same lock before it
|
|
49
|
+
writes, so the per-item closure excluded nobody the namespace lock did not
|
|
50
|
+
already exclude. Publication now takes no per-item locks. Newly instrumented
|
|
51
|
+
phase counters measured the cost this removes: on 1,500 items the lock phase
|
|
52
|
+
was 11.2 s of the 12.6 s the publication took, against 0.2 s for reading Git
|
|
53
|
+
HEAD. Everything else is unchanged and proved byte-for-byte identical against
|
|
54
|
+
the previous implementation across all six publication outcome classes —
|
|
55
|
+
success, fence refusal, revision conflict, validation refusal, idempotent
|
|
56
|
+
replay, and indeterminate publication — in envelope, claim journal, and item
|
|
57
|
+
bytes. Every cooperative writer of one ledger must be upgraded together: a
|
|
58
|
+
writer that honors only per-ID locks can race one that honors only the
|
|
59
|
+
namespace lock.
|
|
60
|
+
- **The README installs with `@next` and says why.** The registry mandates a
|
|
61
|
+
`latest` dist-tag, so `latest` mirrors `next`; `@next` stays the documented
|
|
62
|
+
spelling and the explicit prerelease consent.
|
|
63
|
+
- **Cuts happen on the release branch, not in a session worktree.** Merge
|
|
64
|
+
session work first, then cut; the cut command refuses to run anywhere but the
|
|
65
|
+
branch tip. The previous two-phase topology is why the last two release tags
|
|
66
|
+
name merge commits rather than their cut commits.
|
|
67
|
+
`docs/adapter-release-path.md` records the ritual.
|
|
68
|
+
|
|
69
|
+
### Fixed
|
|
70
|
+
|
|
71
|
+
- **A live publication is no longer reported as a broken lock.** Publication
|
|
72
|
+
lock files recorded `"operation": "publish-claimed"`, but the lock reader
|
|
73
|
+
accepts only `create`, `transition`, and `patch`, so a concurrent writer that
|
|
74
|
+
hit a live publication lock classified it `invalid-shape` — a diagnostic that
|
|
75
|
+
says the lock is corrupt. Publication writes no lock files at all now, so
|
|
76
|
+
there is nothing to misclassify.
|
|
77
|
+
|
|
78
|
+
- **A committed `patch` is forwarded instead of reported as an unknown
|
|
79
|
+
outcome.** The shipped adapter engine still named the pre-widening patchable
|
|
80
|
+
pair `number` and `priority`, so every patch a consumer actually sends — a
|
|
81
|
+
body rewrite, a title correction, a relation-list replacement, a declared
|
|
82
|
+
extension member — read as a non-canonical request, failed result
|
|
83
|
+
correlation, and came back `mutation-outcome-unknown` with recovery guidance
|
|
84
|
+
about a write that had provably committed. `number` is the immutable item
|
|
85
|
+
identity and was never patchable at all. The patchable field set is now what
|
|
86
|
+
mutation contract section 9 names — `title`, `priority`, `depends_on`,
|
|
87
|
+
`related`, `body`, `body_append`, and `extensions` — with the two body write
|
|
88
|
+
modes mutually exclusive and the extensions container judged only on its own
|
|
89
|
+
shape, and correlation follows each member to the surface it is observable
|
|
90
|
+
on. The independent reference model already had all of this, so the drift was
|
|
91
|
+
one-sided and no differential test could see it; the new end-to-end
|
|
92
|
+
core-outcome vectors found it on their first run.
|
|
93
|
+
|
|
94
|
+
- **`publish-claimed` now reconciles the journal unconditionally, like every
|
|
95
|
+
other mutating command.** The work-claim contract has always said an
|
|
96
|
+
uncommitted prior mutation refuses the next `create`, `transition`, `patch`,
|
|
97
|
+
**or `publish-claimed`**. The code only reconciled when it happened to
|
|
98
|
+
observe an unresolved `publish-intent`, and an uncommitted legacy mutation
|
|
99
|
+
leaves none behind. A fixture pinned the gap: with a legacy create and
|
|
100
|
+
transition sitting uncommitted, `claim-verify` returned exit 6 and a legacy
|
|
101
|
+
`create` refused with `publication-reconciliation-required`, while
|
|
102
|
+
`publish-claimed` on a claimed item published straight over the unreconciled
|
|
103
|
+
ledger. It now reconciles before the fence decision on every publication and
|
|
104
|
+
refuses with exit 6 `claim-store-unavailable`,
|
|
105
|
+
`details.reason: "publication-reconciliation-required"`, and
|
|
106
|
+
`details.findings` — the same envelope the legacy fence emits, so one
|
|
107
|
+
`claim-verify` clears every blocked path. **A publication behind an
|
|
108
|
+
unresolvable prior intent now returns that refusal instead of exit 6
|
|
109
|
+
`publication-outcome-unknown`.** The old code named the refused publication's
|
|
110
|
+
own outcome uncertain when it had not run at all; `state: "unchanged"` is the
|
|
111
|
+
honest answer, and the blocking finding still travels in `details.findings`.
|
|
112
|
+
The cost is honest about which read is new. Reconciliation adds no
|
|
113
|
+
complete-ledger read: it produces the snapshot the candidate validation and
|
|
114
|
+
the mutation engine's pre-lock read already share, so a claimed publication
|
|
115
|
+
still reads the working-tree ledger exactly twice. It does add the Git `HEAD`
|
|
116
|
+
read — `rev-parse`, one `ls-tree`, and a batched `cat-file` over every item
|
|
117
|
+
blob at `HEAD` — to every publication that previously had no unresolved
|
|
118
|
+
intent. That is the same read `create`, `transition`, `patch`, and every
|
|
119
|
+
claim lifecycle command already perform, so `publish-claimed` now pays the
|
|
120
|
+
toll its peers pay rather than a new one. Each publication persists one clock
|
|
121
|
+
floor, as it did before; a publication behind a pending intent, which used to
|
|
122
|
+
persist two, now persists one as well.
|
|
123
|
+
|
|
124
|
+
- **A shipped adapter no longer advertises trusted approval it cannot
|
|
125
|
+
exercise.** The three shipped entrypoints declared
|
|
126
|
+
`trusted_approval: {"supported": true, "sources": ["consumer"]}` while
|
|
127
|
+
`runAdapterEntrypoint` passed no approval, clock, nonce store, or core
|
|
128
|
+
executable identity to the invoke engine, so `create`, `transition`, and
|
|
129
|
+
`patch` through every shipped adapter refused `consumer-approval-required`
|
|
130
|
+
and could not succeed on any input. The declaration now reflects the runtime
|
|
131
|
+
of the invocation, the way `optional_features.claims` already reflects the
|
|
132
|
+
core probe: a bare entrypoint run declares no trusted approval and refuses a
|
|
133
|
+
mutation `capability-unavailable` with `missing: ["trusted-approval"]`, the
|
|
134
|
+
refusal section 5.1 already required for an absent declaration, and a host
|
|
135
|
+
that wires an approval source declares it truthfully. The two refusals stay
|
|
136
|
+
distinguishable, because they are different facts — no approval source at all
|
|
137
|
+
versus a source that produced no approval for this invocation — and conformance
|
|
138
|
+
case `07-mutation-approval` now pins both against the runtimes that produce
|
|
139
|
+
them, adding one assertion to the conformance suite.
|
|
140
|
+
- **A committed `create` is forwarded instead of reported as an unknown
|
|
141
|
+
outcome.** Both adapter engines required `schema_version: 1` in a create
|
|
142
|
+
result and re-serialized the expected candidate with the schema 1 default, so
|
|
143
|
+
every create against a real ledger — an empty ledger is schema 2 — failed the
|
|
144
|
+
result correlation, was judged an invalid core envelope, and came back as
|
|
145
|
+
`mutation-outcome-unknown` with recovery guidance about a write that had
|
|
146
|
+
provably committed. The ledger's schema version and the number the core
|
|
147
|
+
assigns under its own lock are the only two members of the answer a caller
|
|
148
|
+
could not have known; both engines now read those from the result and
|
|
149
|
+
re-derive the whole candidate from the request bytes, leaving every other
|
|
150
|
+
member pinned by an exact byte comparison against the source the core
|
|
151
|
+
returned. The defect was unreachable while every shipped mutation refused
|
|
152
|
+
before launch, and surfaced the moment a host runtime carried a real approval
|
|
153
|
+
through to the core.
|
|
154
|
+
- Adapter contract section 5's core-request table and section 5.1's approval
|
|
155
|
+
rule named only `create` and `transition`. Both have accepted `patch` since
|
|
156
|
+
adapter contract version 2; the prose now says so.
|
|
157
|
+
|
|
158
|
+
### Added
|
|
159
|
+
|
|
160
|
+
- **The conformance suite now measures real core outcomes end to end.** A new
|
|
161
|
+
equivalence case, `16-core-outcome-e2e`, carries nine hand-authored scenarios
|
|
162
|
+
that each run the direct real core in one isolated temporary workspace and,
|
|
163
|
+
separately, spawn the real shipped entrypoint over the bootstrap wire against
|
|
164
|
+
the real core in a second workspace materialized from the same before state:
|
|
165
|
+
`inspect` item-not-found, a committed `create`, a committed `transition`, a
|
|
166
|
+
committed `patch` by body replacement and by declared extension member, the
|
|
167
|
+
six-member date refusal, and all three `ledger-mutation` claim-fence refusal
|
|
168
|
+
classes. Success vectors match the exact core exit, stdout bytes, decoded
|
|
169
|
+
adapter streams with their digests and lengths, and the exact ledger
|
|
170
|
+
post-state; refusal vectors match the exact nonzero exit and unchanged ledger
|
|
171
|
+
bytes, and the fence refusals arrive as `ok: true` adapter transport results
|
|
172
|
+
rather than adapter errors. Before this case, no conformance assertion and no
|
|
173
|
+
bootstrap-wire test carried a mutation through a spawned entrypoint into a
|
|
174
|
+
launched core, which is how two real adapter defects shipped. The suite is
|
|
175
|
+
210 assertions across 16 cases.
|
|
176
|
+
|
|
177
|
+
Determinism comes from fixed inputs and never from normalizing output: a
|
|
178
|
+
caller-supplied ULID, seeded revisions on isolated temporary ledgers, literal
|
|
179
|
+
dates, and — for the two real claim-fence read-backs — a fixed namespace, a
|
|
180
|
+
hand-authored claim journal, and a seeded future clock floor, so the emitted
|
|
181
|
+
`observed_at` is `max(physical_now, floor)` and therefore the floor. That
|
|
182
|
+
makes the refusal bytes fixed without mocking the core clock, and it expires:
|
|
183
|
+
both runners fail loudly and name `2031-01-15T12:01:00.000Z` once wall time
|
|
184
|
+
reaches it. Goldens are authored from the adapter contract, the work-claim
|
|
185
|
+
contract, and the normative `spec/fixtures/mutations/**` bytes; every byte
|
|
186
|
+
reused from those fixtures carries a `derived_from` pin, so drift on either
|
|
187
|
+
side stops the vector and asks for a reviewed golden change instead of
|
|
188
|
+
regenerating one. Only base64, SHA-256, and byte length are derived, and only
|
|
189
|
+
from an already hand-authored byte string.
|
|
190
|
+
|
|
191
|
+
The conformance host gains a granting approval mode, without which no
|
|
192
|
+
mutation can cross the spawned entrypoint at all. **Adapter contract section
|
|
193
|
+
10 previously said no conformance fixture could manufacture authority; that
|
|
194
|
+
is no longer true, and the claim is withdrawn rather than quietly narrowed.**
|
|
195
|
+
What replaces it is narrower and checkable: the granting mode is reachable
|
|
196
|
+
only from a fixture's own runtime configuration, which no shipped adapter
|
|
197
|
+
package reads and no wire this contract defines carries; every granting
|
|
198
|
+
scenario runs against a throwaway temporary ledger; the approval is minted
|
|
199
|
+
from the binding the engine resolved and canonicalized by the independent
|
|
200
|
+
reference model. The evidence label is the production adapter engine under a
|
|
201
|
+
conformance host approval provider, not a live consumer approval mechanism.
|
|
202
|
+
|
|
203
|
+
- **A host process can wire consumer approval into a shipped adapter
|
|
204
|
+
entrypoint.** `runAdapterEntrypoint` now accepts an optional `hostRuntime`
|
|
205
|
+
carrying the approval source, the current time, the redeemed-nonce store, and
|
|
206
|
+
the core executable identity the host attests. It is a code-level parameter of
|
|
207
|
+
the embedding process and is deliberately absent from every wire: the
|
|
208
|
+
bootstrap request root schema is exact and has no approval member, so an
|
|
209
|
+
approval a model places on the request is an `invalid-invocation` that never
|
|
210
|
+
reaches the gate, exactly as adapter contract section 5.1 requires. The
|
|
211
|
+
approval may be a finished event or a resolver the adapter calls with the
|
|
212
|
+
exact binding it has just resolved — the argument vector, absolute workspace
|
|
213
|
+
paths, and instruction and handoff digests an approval covers do not exist
|
|
214
|
+
until the adapter has built them, so an interactive consumer prompt cannot
|
|
215
|
+
mint the approval any earlier. A resolver that fails produced no approval and
|
|
216
|
+
the mutation refuses; it never proceeds unapproved. The default is unchanged
|
|
217
|
+
and remains no approval. `test/adapter-host-approval-wire.test.js` carries the
|
|
218
|
+
first approved mutation in this repository to cross a spawned entrypoint into
|
|
219
|
+
a launched core and change a ledger, with its binding digest canonicalized by
|
|
220
|
+
the independent reference model rather than by the engine under test. No
|
|
221
|
+
version moved in any domain: `host.trusted_approval` has been optional since
|
|
222
|
+
version 1, the approval object and binding are untouched, and the mechanism is
|
|
223
|
+
invisible on every wire the contract defines. Adapter contract sections 3.2,
|
|
224
|
+
3.3, 5.1, 10, and 12 state the seam, the honesty rule, the two-runtime
|
|
225
|
+
evidence, and the version argument.
|
|
226
|
+
|
|
227
|
+
- **The cut is one command, and version drift now fails the cut instead of
|
|
228
|
+
shipping.** `npm run release:cut -- <version> --date YYYY-MM-DD` runs on the
|
|
229
|
+
tip of the release branch, proves every version site is accounted for, plans
|
|
230
|
+
the new bytes in memory, runs the full release gate over them, and leaves one
|
|
231
|
+
`Cut <version>` commit and one annotated `v<version>` tag. It stops there:
|
|
232
|
+
push, `npm publish --tag next`, and the registry check stay separate named
|
|
233
|
+
steps, because no local command can undo any of them. Coverage is proved by
|
|
234
|
+
exact-set equality against a hand-maintained
|
|
235
|
+
`scripts/release-version-sites.json`, not by a global grep — the changelog and
|
|
236
|
+
the dated design records must keep naming old versions, so "grep finds
|
|
237
|
+
nothing" would be the wrong test. A release site added next month is
|
|
238
|
+
unmanifested and refuses the cut. `--dry-run` runs the same planner and the
|
|
239
|
+
same gate against a copy of HEAD and then proves the repository unchanged.
|
|
240
|
+
Reruns converge rather than repair: a cut tag at a clean HEAD reports
|
|
241
|
+
`already cut`, a complete cut commit without its tag resumes at tagging, and a
|
|
242
|
+
tag pointing elsewhere refuses.
|
|
243
|
+
- **The changelog can no longer lose its Unreleased section.** A cut opens a
|
|
244
|
+
fresh empty `## Unreleased` and files the released notes beneath it. The two
|
|
245
|
+
previous cuts renamed the heading instead, which left later changes landing
|
|
246
|
+
under an already published release.
|
|
247
|
+
- **The prerelease channel policy is stated and checkable.**
|
|
248
|
+
`npm run release:channels -- check|repair <version>` encodes it: `latest`
|
|
249
|
+
mirroring `next` at the published version and the first published alpha
|
|
250
|
+
deprecated. The first-choice policy — no `latest` at all, so a bare install
|
|
251
|
+
fails loudly — was refused by the registry itself: npm rejects deleting the
|
|
252
|
+
`latest` tag with E400 (verified live), so the current prerelease replaces
|
|
253
|
+
the dead first alpha as the forced default. `check` is read-only and is the
|
|
254
|
+
post-publish verification step; `repair` is idempotent and never unpublishes.
|
|
255
|
+
|
|
256
|
+
- **`--auto-commit` folds the commit-per-mutation ceremony into the mutation.**
|
|
257
|
+
The invariant is correct and the ceremony around it was the consumer's most
|
|
258
|
+
frequent daily cost: mutate, `git add`, `git commit`, `claim-verify`, repeat,
|
|
259
|
+
ten times for ten items. On a provisioned merge-coordinated ledger the new
|
|
260
|
+
opt-in bare flag on `create`, `transition`, `patch`, and `publish-claimed`
|
|
261
|
+
does that loop inside one invocation. It takes a per-working-tree mutex,
|
|
262
|
+
refuses any staged path anywhere and any dirty path under the ledger, checks
|
|
263
|
+
Git identity, runs an internal pre-mutation `claim-verify`, runs the mutation
|
|
264
|
+
unchanged, then commits **exactly** the changed item plus at most one
|
|
265
|
+
`.wowbagger/reconcile-<namespace>.md` under a fixed subject
|
|
266
|
+
(`wowbagger: transition item #7`; the canonical item ID for a schema-1 item
|
|
267
|
+
with no number). It verifies the resulting commit's parent, subject,
|
|
268
|
+
changed-path set, and every blob, then runs `claim-verify` again before it
|
|
269
|
+
answers. Success adds `git_commit`, `commit_paths`, and `claim_verified` to
|
|
270
|
+
`result`.
|
|
271
|
+
|
|
272
|
+
There is no configuration file setting, environment default, or repository
|
|
273
|
+
default, because a hidden default would make existing mutation automation
|
|
274
|
+
create Git commits unexpectedly. An invocation without the flag is
|
|
275
|
+
byte-identical to before, so the core contract stays 3 and the work-claim API
|
|
276
|
+
stays 1. The flag is direct-CLI only in this release; no adapter advertises or
|
|
277
|
+
constructs it.
|
|
278
|
+
|
|
279
|
+
What it will not do: commit anything on `state: "unchanged"` or
|
|
280
|
+
`state: "unknown"`, including the documented reconcile-log residue a refused
|
|
281
|
+
`publish-claimed` leaves behind; stage a path outside the ledger; broad-add,
|
|
282
|
+
amend, squash, reset, clean, stash, or unstage; pass `--no-verify` or disable
|
|
283
|
+
signing; fabricate an author; customize a commit message; or push, fetch,
|
|
284
|
+
pull, merge, or rebase. Hooks through `core.hooksPath`, `commit.gpgSign`, and
|
|
285
|
+
signing programs are honoured, and a hook that rewrites the subject or the
|
|
286
|
+
tree is reported rather than accepted.
|
|
287
|
+
|
|
288
|
+
- **An honest commit-failed contract, and one idempotent recovery verb.** A
|
|
289
|
+
post-publication Git failure that proves the commit is absent is exit 6
|
|
290
|
+
`git-commit-failed` with `state: "committed"` — the state still describes item
|
|
291
|
+
publication, not Git finalization — carrying the published revision, the exact
|
|
292
|
+
ledger-relative commit set with digests, `failure_stage`, `reason`, and a
|
|
293
|
+
bounded `recovery_token`. `create`, `transition`, and `patch` keep the core
|
|
294
|
+
domain; `publish-claimed` keeps `ledger-publication` and its top-level
|
|
295
|
+
`operation_id`. An **ambiguous** Git outcome is `git-commit-outcome-unknown`,
|
|
296
|
+
never `git-commit-failed`, and a commit that stands while reconciliation then
|
|
297
|
+
refuses is `post-commit-reconciliation-failed`. No failure envelope carries
|
|
298
|
+
hook output, signing output, absolute paths, or environment values.
|
|
299
|
+
|
|
300
|
+
New command: `wowbagger mutation-finalize --ledger <dir> --recovery-token
|
|
301
|
+
<token> --json`, answering in the work-claim domain because it changes Git
|
|
302
|
+
reconciliation state and no item byte. It re-derives every path from the
|
|
303
|
+
ledger and the provisioned namespace — the token is a witness, never authority
|
|
304
|
+
to select a path — re-checks the current bytes and the foreign-change rules,
|
|
305
|
+
creates the exact commit if it is absent, then runs `claim-verify`. When
|
|
306
|
+
`HEAD` already holds that exact commit it verifies and returns it without
|
|
307
|
+
creating a second one, so a lost response and a failed commit recover through
|
|
308
|
+
the same command, and repeating it is safe.
|
|
309
|
+
|
|
310
|
+
A failed attempt leaves its own commit set staged, because the design forbids
|
|
311
|
+
unstaging. Recovery tolerates exactly that residue and refuses anything else
|
|
312
|
+
staged; until it runs, the next `--auto-commit` invocation refuses on
|
|
313
|
+
`staged-paths-present`, which is the intended signal.
|
|
314
|
+
|
|
8
315
|
## 0.1.0-alpha.6 - 2026-08-17
|
|
9
316
|
|
|
10
317
|
### Added
|
package/LICENSE
CHANGED
|
@@ -1,201 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lee Stutzman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|