@artblocks/abx-cli 0.1.0-alpha.3 → 0.1.0-alpha.31

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 (152) hide show
  1. package/CHANGELOG.md +3694 -0
  2. package/assets/renderer-scaffold/README.md +2 -2
  3. package/assets/renderer-scaffold/src/MyRenderer.sol +2 -2
  4. package/assets/renderer-scaffold/src/interfaces/IAbxFieldRenderer.sol +1 -1
  5. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +17 -0
  6. package/assets/renderer-scaffold/test/MyRenderer.t.sol +51 -2
  7. package/dist/bin.d.ts +27 -0
  8. package/dist/bin.d.ts.map +1 -0
  9. package/dist/bin.js +64 -0
  10. package/dist/bin.js.map +1 -0
  11. package/dist/commands/deploy.d.ts +242 -0
  12. package/dist/commands/deploy.d.ts.map +1 -0
  13. package/dist/commands/deploy.js +4764 -0
  14. package/dist/commands/deploy.js.map +1 -0
  15. package/dist/commands/project.d.ts +257 -0
  16. package/dist/commands/project.d.ts.map +1 -0
  17. package/dist/commands/project.js +1299 -0
  18. package/dist/commands/project.js.map +1 -0
  19. package/dist/commands/reads.d.ts +64 -0
  20. package/dist/commands/reads.d.ts.map +1 -0
  21. package/dist/commands/reads.js +701 -0
  22. package/dist/commands/reads.js.map +1 -0
  23. package/dist/commands/scaffold.d.ts +73 -0
  24. package/dist/commands/scaffold.d.ts.map +1 -0
  25. package/dist/commands/scaffold.js +679 -0
  26. package/dist/commands/scaffold.js.map +1 -0
  27. package/dist/commands/service.d.ts +41 -0
  28. package/dist/commands/service.d.ts.map +1 -0
  29. package/dist/commands/service.js +618 -0
  30. package/dist/commands/service.js.map +1 -0
  31. package/dist/commands/storage.d.ts +51 -0
  32. package/dist/commands/storage.d.ts.map +1 -0
  33. package/dist/commands/storage.js +370 -0
  34. package/dist/commands/storage.js.map +1 -0
  35. package/dist/commands/submit-app.d.ts +58 -0
  36. package/dist/commands/submit-app.d.ts.map +1 -0
  37. package/dist/commands/submit-app.js +512 -0
  38. package/dist/commands/submit-app.js.map +1 -0
  39. package/dist/config.d.ts +90 -2
  40. package/dist/config.d.ts.map +1 -1
  41. package/dist/config.js +285 -11
  42. package/dist/config.js.map +1 -1
  43. package/dist/conformance.d.ts +31 -0
  44. package/dist/conformance.d.ts.map +1 -0
  45. package/dist/conformance.js +393 -0
  46. package/dist/conformance.js.map +1 -0
  47. package/dist/deps.d.ts +6 -39
  48. package/dist/deps.d.ts.map +1 -1
  49. package/dist/deps.js +4 -68
  50. package/dist/deps.js.map +1 -1
  51. package/dist/errors.d.ts +20 -0
  52. package/dist/errors.d.ts.map +1 -0
  53. package/dist/errors.js +25 -0
  54. package/dist/errors.js.map +1 -0
  55. package/dist/flag-allowlists.d.ts +53 -0
  56. package/dist/flag-allowlists.d.ts.map +1 -0
  57. package/dist/flag-allowlists.js +157 -0
  58. package/dist/flag-allowlists.js.map +1 -0
  59. package/dist/flags.d.ts +45 -0
  60. package/dist/flags.d.ts.map +1 -1
  61. package/dist/flags.js +117 -1
  62. package/dist/flags.js.map +1 -1
  63. package/dist/jsonout.d.ts +37 -0
  64. package/dist/jsonout.d.ts.map +1 -0
  65. package/dist/jsonout.js +68 -0
  66. package/dist/jsonout.js.map +1 -0
  67. package/dist/kind.d.ts +61 -0
  68. package/dist/kind.d.ts.map +1 -0
  69. package/dist/kind.js +111 -0
  70. package/dist/kind.js.map +1 -0
  71. package/dist/main.js +699 -4736
  72. package/dist/main.js.map +1 -1
  73. package/dist/mintpage.d.ts +17 -2
  74. package/dist/mintpage.d.ts.map +1 -1
  75. package/dist/mintpage.js +241 -54
  76. package/dist/mintpage.js.map +1 -1
  77. package/dist/output.d.ts +179 -0
  78. package/dist/output.d.ts.map +1 -0
  79. package/dist/output.js +756 -0
  80. package/dist/output.js.map +1 -0
  81. package/dist/ownerops.d.ts +302 -51
  82. package/dist/ownerops.d.ts.map +1 -1
  83. package/dist/ownerops.js +1780 -357
  84. package/dist/ownerops.js.map +1 -1
  85. package/dist/preview.d.ts +81 -0
  86. package/dist/preview.d.ts.map +1 -0
  87. package/dist/preview.js +535 -0
  88. package/dist/preview.js.map +1 -0
  89. package/dist/prompt.d.ts +17 -0
  90. package/dist/prompt.d.ts.map +1 -0
  91. package/dist/prompt.js +19 -0
  92. package/dist/prompt.js.map +1 -0
  93. package/dist/provision.d.ts.map +1 -1
  94. package/dist/provision.js +16 -8
  95. package/dist/provision.js.map +1 -1
  96. package/dist/remote.d.ts +153 -52
  97. package/dist/remote.d.ts.map +1 -1
  98. package/dist/remote.js +406 -46
  99. package/dist/remote.js.map +1 -1
  100. package/dist/riskgate.d.ts +58 -0
  101. package/dist/riskgate.d.ts.map +1 -0
  102. package/dist/riskgate.js +212 -0
  103. package/dist/riskgate.js.map +1 -0
  104. package/dist/scaffold.d.ts +10 -0
  105. package/dist/scaffold.d.ts.map +1 -0
  106. package/dist/scaffold.js +52 -0
  107. package/dist/scaffold.js.map +1 -0
  108. package/dist/schema.d.ts +36 -1
  109. package/dist/schema.d.ts.map +1 -1
  110. package/dist/schema.js +121 -26
  111. package/dist/schema.js.map +1 -1
  112. package/dist/script-chunks.d.ts +8 -0
  113. package/dist/script-chunks.d.ts.map +1 -0
  114. package/dist/script-chunks.js +35 -0
  115. package/dist/script-chunks.js.map +1 -0
  116. package/dist/served.d.ts +30 -0
  117. package/dist/served.d.ts.map +1 -0
  118. package/dist/served.js +112 -0
  119. package/dist/served.js.map +1 -0
  120. package/dist/signer.d.ts +13 -0
  121. package/dist/signer.d.ts.map +1 -1
  122. package/dist/signer.js +84 -15
  123. package/dist/signer.js.map +1 -1
  124. package/dist/update-check.d.ts +83 -4
  125. package/dist/update-check.d.ts.map +1 -1
  126. package/dist/update-check.js +140 -19
  127. package/dist/update-check.js.map +1 -1
  128. package/package.json +12 -8
  129. package/skill/SKILL.md +351 -151
  130. package/skill/reference/code-projects.md +183 -26
  131. package/skill/reference/creator-token.md +99 -0
  132. package/skill/reference/decisions.md +174 -0
  133. package/skill/reference/hosting.md +63 -19
  134. package/skill/reference/operating.md +116 -12
  135. package/skill/reference/setup.md +57 -6
  136. package/skill/reference/troubleshooting.md +42 -5
  137. package/dist/inspect.d.ts +0 -48
  138. package/dist/inspect.d.ts.map +0 -1
  139. package/dist/inspect.js +0 -184
  140. package/dist/inspect.js.map +0 -1
  141. package/dist/migrate.d.ts +0 -65
  142. package/dist/migrate.d.ts.map +0 -1
  143. package/dist/migrate.js +0 -180
  144. package/dist/migrate.js.map +0 -1
  145. package/dist/onchain-uri.d.ts +0 -97
  146. package/dist/onchain-uri.d.ts.map +0 -1
  147. package/dist/onchain-uri.js +0 -243
  148. package/dist/onchain-uri.js.map +0 -1
  149. package/dist/upload.d.ts +0 -28
  150. package/dist/upload.d.ts.map +0 -1
  151. package/dist/upload.js +0 -41
  152. package/dist/upload.js.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,3694 @@
1
+ # @artblocks/abx-cli
2
+
3
+ ## 0.1.0-alpha.31
4
+
5
+ ### Patch Changes
6
+
7
+ - bd77ba2: Correct the Node floor to 22.13, and refuse to start with a remedy instead of a stack trace.
8
+
9
+ Every package declared `engines.node: ">=22.5.0"` — the version `node:sqlite` was **added**, not the
10
+ version it became usable. It shipped in v22.5.0 behind `--experimental-sqlite` and lost the flag in
11
+ v22.13.0 / v23.4.0. So `npm i -g @artblocks/abx-cli` on Node 22.5 installed silently (the engine
12
+ range was satisfied) and then `abx doctor` — the first command we tell everyone to run — died with a
13
+ raw `ERR_UNKNOWN_BUILTIN_MODULE: No such built-in module: node:sqlite` stack trace naming neither
14
+ abx nor a fix. Reported 2026-08-24; the floor is now `>=22.13.0` everywhere, so npm warns at install
15
+ time.
16
+
17
+ The crash happened while ESM _linked_ `main.ts`'s import graph (`output.ts` →
18
+ `@artblocks/abx-indexer` → `node:sqlite`), before any of our code ran, so no guard inside the CLI
19
+ could have caught it. The published binary is now a deliberately import-free shim (`dist/bin.js`)
20
+ that probes for `node:sqlite` and hands off to `main.js` — it prints the running version, the real
21
+ floor, and the upgrade command. It probes the **capability**, not the version number: an old Node
22
+ launched with `NODE_OPTIONS=--experimental-sqlite` genuinely works, and refusing that would be a
23
+ false negative. `engines` states what we support; the guard blocks only what is actually broken.
24
+
25
+ `abx doctor`'s header now also reports the running Node, since its output is what people paste when
26
+ something is wrong.
27
+
28
+ - Updated dependencies [bd77ba2]
29
+ - @artblocks/abx-indexer@0.1.0-alpha.24
30
+ - @artblocks/abx-token-api@0.1.0-alpha.26
31
+ - @artblocks/abx-storage@0.1.0-alpha.23
32
+ - @artblocks/abx-sdk@0.1.0-alpha.23
33
+
34
+ ## 0.1.0-alpha.30
35
+
36
+ ### Minor Changes
37
+
38
+ - 993e095: `--dry-run` now **simulates** the transaction instead of only describing it.
39
+
40
+ Every write command routes through one risk gate, so all of them gained this at once. A dry run
41
+ `eth_call`s the prepared transaction against current state and adds one line:
42
+
43
+ ```
44
+ simulation ✓ would succeed (eth_call against current state)
45
+ simulation ✗ would REVERT — FieldLocked()
46
+ sending this now would burn gas and change nothing.
47
+ ```
48
+
49
+ This matters most for a **multicall** — `attach`'s batched pairs, `deploy-code`'s setup — because a
50
+ multicall is one transaction, so simulating it exercises the whole sequence atomically, against real
51
+ state, with no fork involved.
52
+
53
+ It reports **unknown**, never a false green, whenever it cannot prove anything: no signer to simulate
54
+ as, a contract deploy, a target with no code yet, or an unreachable node.
55
+
56
+ Revert reasons decode to the contract's own error name (`RoyaltyTooHigh()`) where the node returns
57
+ revert data. Several public endpoints return none — in that case the output says so plainly and names
58
+ what a bare revert usually is, rather than viem's "reverted for an unknown reason", which reads like a
59
+ decoding failure on our side.
60
+
61
+ - 993e095: `deploy-code --copies` now supports `--image-renderer` / `--attributes-renderer` — a **true fully
62
+ on-chain ERC-1155 edition**.
63
+
64
+ ```bash
65
+ abx deploy-code --copies open --image-renderer 0x… --attributes-renderer 0x… --onchain-uri \
66
+ --name "…" --symbol …
67
+ ```
68
+
69
+ Open supply, minted over time by anyone you let mint, image and traits computed by your Solidity
70
+ renderers, `uri(id)` assembled on chain. No resolver, no render runner, no bucket, nothing to keep
71
+ running — the same zero-infrastructure lane the ERC-721 side has had, on the edition twin.
72
+
73
+ - `--script` is now **optional** on this command. A renderer-only edition stores no program and has no
74
+ `animation_url`; passing both a script and renderers composes (an on-chain live view _and_ an
75
+ on-chain still), exactly as on the 721 lane.
76
+ - The same guard applies as at 721 deploy time: a renderer address with no code is refused, because
77
+ pointing a field at one reverts every `uri()` in the collection.
78
+ - `--image-base` is still refused with `--copies` — it needs the effect runner to write a still per id
79
+ — and now says so, and names the lane that does work.
80
+
81
+ This was never a contract limit: `EditionCode` composes the same `OnChainMetadata` extension and URI
82
+ renderer slots as `SeriesCode`. Only the CLI flags were unported, and a reporter who asked the natural
83
+ question — "can I get a real on-chain-rendered 1155 with no server?" — read the blanket refusal as a
84
+ protocol answer and shipped an ERC-721 workaround instead. `contracts/test/EditionOnChainRender.t.sol`
85
+ now pins the claim end to end.
86
+
87
+ Reported in the 2026-08-24 field notes.
88
+
89
+ ### Patch Changes
90
+
91
+ - 993e095: `abx doctor` checks whether each RPC endpoint agrees with itself about your wallet's nonce.
92
+
93
+ `pending` is by definition at least `latest` on a coherent node. An endpoint that hasn't caught up
94
+ with its own head answers lower — measured on `sepolia.base.org` right after a confirmed write — and
95
+ the next command's first send re-uses a spent nonce. `doctor` reported that exact endpoint healthy in
96
+ that exact condition.
97
+
98
+ Sends are already protected (they floor at `max(pending, latest)`); this names the endpoint instead of
99
+ silently routing around it.
100
+
101
+ The check needs a wallet that has actually sent something — a fresh wallet reads 0 everywhere and
102
+ proves nothing — so on that path it prints `nonce coherence: unknown` rather than passing on no
103
+ evidence. A check that goes green without a signal is the same false green as an RPC answering `[]`
104
+ because it pruned its logs.
105
+
106
+ - 993e095: `deploy-code`, `deploy-code --copies` and `deploy-series` now state their permanent decisions on a real
107
+ send, not only under `--dry-run`.
108
+
109
+ The supply cap and the royalty rate — including the `⚠ default` marker when you didn't choose one —
110
+ were printed in the deploy _plan_, which only runs for `--dry-run`. A creator going straight to `--send`
111
+ learned afterwards, from `abx state`, that their collection carries a 5% royalty to the deploying wallet.
112
+ That is a real economic default to discover after the fact on a demo nobody meant to monetize. The
113
+ success readout now carries the same line the plan does.
114
+
115
+ The default itself is unchanged: 5% to the creator is the right default for a launch, and a lane-specific
116
+ 0% would silently strip royalties from projects deployed the same way for real.
117
+
118
+ Reported in the 2026-08-24 field notes.
119
+
120
+ - 993e095: `abx set-field --representation renderer` no longer writes a value the chain cannot decode.
121
+
122
+ A `renderer` field is stored as `abi.encode(address)` and the on-chain metadata renderer decodes it
123
+ before it can compute the field. `--value` was written to chain verbatim, so passing a plain 20-byte
124
+ address — the same shape `deploy-code --image-renderer` takes — landed 20 bytes where 32 were needed,
125
+ and **every `tokenURI` in the collection reverted**. It read like a protocol bug rather than a bad
126
+ write: `contractField("image")` still returned the right representation and a right-looking address,
127
+ and re-pointing at the renderer the collection was deployed with didn't fix it (that write had the
128
+ same wrong shape).
129
+
130
+ `set-field` now normalizes and validates the structured representations before sending:
131
+
132
+ - `--representation renderer` accepts the field renderer's plain `0x` address and abi-encodes it, or
133
+ an already-canonical 32-byte word. Any other length — or a 32-byte word with non-zero high bytes —
134
+ is refused with a message that says what to pass.
135
+ - `--representation reader` / `reader-gzip` must be `abi.encode(address reader, address pointer)`;
136
+ anything else is refused and points at `--file`, which encodes it correctly for you.
137
+ - A `renderer` value pointing at an address with **no code** is refused, the same guard
138
+ `deploy-code --image-renderer` already applied at deploy time.
139
+ - After a field write lands, `set-field` calls `tokenURI` once and says whether it still resolves —
140
+ so a renderer that reverts for its own reasons is reported against the write that exposed it,
141
+ with the recovery command.
142
+
143
+ Already-broken collections are recoverable, and were never permanently damaged: re-run the same
144
+ `set-field` on the current CLI (the field is only frozen by an explicit `abx lock-field`).
145
+
146
+ Reported in the 2026-08-24 field notes, from four projects shipped on Base Sepolia.
147
+
148
+ - Updated dependencies [549a32d]
149
+ - Updated dependencies [993e095]
150
+ - @artblocks/abx-token-api@0.1.0-alpha.25
151
+ - @artblocks/abx-sdk@0.1.0-alpha.22
152
+ - @artblocks/abx-indexer@0.1.0-alpha.23
153
+ - @artblocks/abx-storage@0.1.0-alpha.22
154
+
155
+ ## 0.1.0-alpha.29
156
+
157
+ ### Minor Changes
158
+
159
+ - c9f7aeb: Fold the burn, and make "canonically ABX v2" sayable — from abx-services' 2026-08-20 reply
160
+ (`reviews/2026-08/services-reply-docs-23.md`). All off-chain: no contract changed, no address moved.
161
+
162
+ **SDK — `foldSpine` now folds an ERC-721 burn, and `TokenState.minted` is replaced by `lifecycle`
163
+ (BREAKING).** A burn wrote the zero address into `TokenState.owner` — where nothing downstream could
164
+ tell it from a holder — and `minted` latched `true` at mint and was never recomputed, so a burned
165
+ token reconstructed as live. `lifecycle: 'unminted' | 'live' | 'burned' | 'no-live-copies'` replaces it,
166
+ and `owner` is `null` for a burned id rather than a sentinel. An enum rather than the `minted` +
167
+ `burned` pair the report asked for: a boolean whose `false` has two meanings leaves the burn case one
168
+ forgotten field away from rendering as "not yet minted", which is exactly what our own CLI did.
169
+
170
+ **`'burned'` is terminal and ERC-721-only; an edition at zero live copies is `'no-live-copies'`.** The
171
+ first cut of this enum shared `'burned'` across both standards, on the grounds that "one vocabulary on
172
+ both lanes" was the honest shape. It wasn't: the correct _response_ to destruction differs by standard
173
+ (a 721 id is gone forever and must `410`; an edition id can mint again and must not), so a shared word
174
+ put every consumer one forgotten `contractType` branch away from serving `410 Gone` for a token the
175
+ contract still resolves — and our own migration note told the first consumer to map the shared word
176
+ straight onto their `410` sites. abx-services caught it in review before it published. Splitting the
177
+ word moves the rule out of prose and into the type: **`lifecycle === 'burned'` is safe to treat as
178
+ permanent on either standard, with no carve-out**, which let the reference resolver's `isEditionState`
179
+ guard go away entirely. Pinned from both ends — no edition history can fold to `'burned'`, and the
180
+ route asserts its own standard-blindness.
181
+
182
+ **The two lanes now agree id-for-id.** The same review found `TokenRow.lifecycle` (head reads) reporting
183
+ `'unknown'` for a fully-burned edition id while the fold reported `'burned'` for that same id — under a
184
+ docstring claiming the two lanes used the same words. That is the sibling-drift class this repo treats
185
+ as a bug (see `TokenState.maxSupply`'s note, the last time one field name carried two meanings). Both
186
+ lanes now answer `'no-live-copies'` there: the fold _could_ distinguish never-minted from fully-burned
187
+ and deliberately does not, because the distinction has no consumer. `'unknown'` survives for the one
188
+ case where a head read genuinely cannot say — a 1/1 has no mint frontier, so a reverting `ownerOf`
189
+ there is evidence of nothing.
190
+
191
+ What the latched boolean was costing, all in our own tree: the effects harness re-rendered destroyed
192
+ tokens on every sweep, forever; `onchain-uri`'s probe reads the LOWEST live id, so burning token 0 made
193
+ a healthy collection's on-chain-URI lane report as **broken**; the resolver served metadata — and the
194
+ pre-mint _warming placeholder_, i.e. "still loading" forever — for ids the contract disowns; `mintedCount`
195
+ never went down; and `abx state` printed "not yet minted" for a token that had been destroyed.
196
+
197
+ **SDK — `BurnConfigured` and `MaxRoyaltyBpsUpdated` fold into `ProjectState.burnable` /
198
+ `.maxRoyaltyBps`.** Both events shipped in the ABI and in `SPINE_EVENT_DOC` and reached no field of
199
+ state; the upgrade memo then told consumers the doc entry _was_ the fold, which it has never been (it
200
+ supplies `register`/`what` on the event record, full stop). Both are tri-state: `null` means the spine
201
+ never stated it — an implementation with no `burn` entrypoint and an unpublished ceiling — which is not
202
+ `false`, and not 10%. The ceiling is deliberately not nested inside `royalty`, since clearing a royalty
203
+ nulls that field while the ceiling stays binding on chain.
204
+
205
+ **SDK — a fold-coverage guard, because this was the second instance in four days.** `DefaultMaxSupplySet`
206
+ did the same thing on 2026-08-17. `SPINE_EVENT_NO_FOLD` now lists the events that deliberately reach no
207
+ state _and why_ (a ping whose value is a head read, a factory's own log, a minter sibling, an allowance),
208
+ and `spine-fold-coverage.test.ts` asserts every decodable event is either folded or excused. A new event
209
+ is unfolded and unexcused until someone decides which.
210
+
211
+ **SDK — a burned 1/1 no longer vanishes from `listTokens`.** The id range fell back to `totalSupply`
212
+ (live: mints − burns) when a token type exposes no `nextTokenId`, so burning a 1/1's only token made the
213
+ listing enumerate ZERO ids — `abx tokens` printed nothing at all, indistinguishable from a collection
214
+ with no tokens. A 1/1's id space is `{0}` forever regardless of what is live. Found by burning a real
215
+ token on Sepolia rather than by any fixture, which is the only way this one surfaces.
216
+
217
+ **SDK — head reads can now say `burned`.** `nextTokenId` is a mint frontier that only rises, so an id
218
+ below it whose `ownerOf` reverts was minted and destroyed. `TokenRow.lifecycle` (`'live'` / `'burned'` /
219
+ `'unminted'` / `'unknown'`) and `TokenListing.burnedCount` (`nextTokenId − totalSupply`) drop out of that,
220
+ with no event log. `'unknown'` stays a real member where the chain declines to say: a 1/1 has no frontier,
221
+ and an edition's `supply == 0` cannot distinguish never-minted from fully-burned.
222
+
223
+ **SDK — `burned` joins `ServiceErrorCode`, paired with `410 Gone`.** A remote token API had nothing
224
+ honest to say about a destroyed id and was sending `410` with `code: 'not_registered'` — a statement
225
+ about the _contract_. The rule behind the pairing is the general one: **a resolver answers what the
226
+ contract's own URI getter answers.** A burned 721's `tokenURI` reverts `NonexistentToken`, so serving a
227
+ document would contradict the contract; an ERC-1155's `uri(id)` has no existence gate and a zero-supply
228
+ id can mint again, so **an edition never 410s** — it serves, with `supply: 0`.
229
+
230
+ **SDK — `readCollectionPolicy`, `canonicalFactories`, `verifyProvenance`: protocol knowledge moves out
231
+ of the CLI.** The CLI was declaring its own ABI fragments for `burnable`/`maxRoyaltyBps` and reading
232
+ them itself in two places, so no other integrator could reach either fact. `canonicalFactories(chainId)`
233
+ replaces two copies of the six-anchor enumeration inside `anchors.ts` — the list whose completeness _is_
234
+ the trust model. `verifyCanonical` gains `opts.factories`, which **replaces** the manifest set rather
235
+ than appending to it, so a multi-tenant operator's pinned allowlist can drive the gate without silently
236
+ widening it.
237
+
238
+ **SDK — anchor generations: "canonically ABX v2", not a bare `false`.** `verifyCanonical` reported
239
+ "deployed by an ABX factory since replaced" and "deployed outside the toolkit entirely" identically —
240
+ its own docstring admitted it — and the first is a perfectly good collection. `ANCHOR_GENERATIONS` keys
241
+ each generation of the six trust anchors by the **on-chain core version** its clones report, and
242
+ `verifyProvenance` returns `{canonical, generation: 'current' | 'prior' | null, coreVersion, factory,
243
+ anchorsAnswered}`. The version is on the clone itself, so the answer is chain-verified rather than a
244
+ manifest claim, and it keeps working after a factory retires. Retired generations never feed
245
+ `verifyCanonical`: provenance is not trust — a superseded generation can predate a security remediation.
246
+ Pre-launch testnet generations are deliberately not backfilled.
247
+
248
+ **Redeploy process — a token-layer runtime change is a new anchor generation.** It bumps
249
+ `AbxVersion.CORE_VERSION` and moves the SDK's `isCurrent*` probes in lockstep. That is now a checklist
250
+ step (`contracts/README.md`, `CLAUDE.md`) _enforced by_ `deployments.test.ts`: recorded generations must
251
+ have unique, increasing core versions and the newest must match the constant in `AbxVersion.sol`, so a
252
+ batch cannot record a generation without bumping or bump without recording. The gap that prompted it: the
253
+ 2026-08-20 batch added `burn()`, `burnable()`, `maxRoyaltyBps()` and `reduceMaxRoyaltyBps()` to the CORE
254
+ base — burn is not an extension, so no extension version moved either — and left the constant at 2, so
255
+ `abxVersion() == 2` cannot tell a burn-capable token from a pre-burn one.
256
+
257
+ **CLI — the royalty ceiling is shown with its rate, and headroom is named.** A ceiling above the live
258
+ rate is royalty the owner can add unilaterally, and a listing page never shows it. `abx state` prints the
259
+ pair and, when there is headroom, says the useful thing: reducing the cap **to** the current rate is what
260
+ turns "5% today" into "5%, provably, forever". (Named by abx-services as their `royalty-headroom` flag —
261
+ a marketplace can compute it, so a creator should hear it from us first.)
262
+
263
+ **Reference stack — the same fixes, so the reference is exemplary rather than the counter-example.**
264
+ `mintedCount` keeps its name and counts LIVE ids, with `burnedCount` added only when non-zero (so a
265
+ project with no burns serves byte-identical JSON, and a consumer's fixtures keep telling the truth);
266
+ the indexer projection carries `lifecycle`; the effects status route and the render sweep skip destroyed
267
+ ids; the dashboard badges a burned token instead of calling it minted; and `abx verify` / the migrate and
268
+ re-point probes never choose a burned token as their subject.
269
+
270
+ **CLI — `--send` is accepted on the deploy paths, and two lane flags is refused.** Every deploy's help
271
+ advertises the signing lanes as `--send hot/env key · --sign wallet page · --unsigned print tx`, in 25
272
+ places, and `--send` was the one of the three the deploy allowlist rejected: typing what the help showed
273
+ produced `unrecognized flag(s): --send` from the guard whose whole purpose is catching flags that would
274
+ be silently ignored — the guard firing on the tool's own documentation. Found by using the CLI as a cold
275
+ reader of its own `--help` while setting up an on-chain test. While there, lane resolution moved from
276
+ truthiness to **presence** (`--sign=` parses to `''`, which is falsy, so a caller who explicitly named
277
+ the wallet lane was routed to the unattended env key — the one direction of that bug that costs
278
+ something), and naming two lanes at once now refuses instead of resolving by an undocumented precedence.
279
+
280
+ **Packaging — every published tarball ships its CHANGELOG.** `files` was `['dist', 'LICENSE']` on the
281
+ SDK, indexer, storage, effects and token-api, so the only package whose release notes reached consumers
282
+ was the CLI. A downstream team upgrading the SDK had no CHANGELOG in the tarball and diffed two `dist/`
283
+ trees to find out what moved — then reported the release notes as missing, which cost a whole exchange
284
+ to adjudicate. One line each.
285
+
286
+ **Docs + spec.** The event spine gains a Burn section and the `MaxRoyaltyBpsUpdated` row, both with the
287
+ fold rules an indexer relies on; three stale deploy-event-order lists are corrected; the remote-services
288
+ error taxonomy gains the `410 burned` row and the edition carve-out; `owner-powers` explains headroom and
289
+ burn permanence; and `indexing-notes` states plainly that documenting an event is not folding it.
290
+
291
+ ### Patch Changes
292
+
293
+ - Updated dependencies [c9f7aeb]
294
+ - @artblocks/abx-sdk@0.1.0-alpha.21
295
+ - @artblocks/abx-storage@0.1.0-alpha.21
296
+ - @artblocks/abx-indexer@0.1.0-alpha.22
297
+ - @artblocks/abx-token-api@0.1.0-alpha.24
298
+
299
+ ## 0.1.0-alpha.28
300
+
301
+ ### Patch Changes
302
+
303
+ - 84ca9dd: Off-chain fixes from the 2026-08-19 production-readiness audit
304
+ (`reviews/2026-08/production-readiness-audit.md`). All are off-chain — no contract changed and no
305
+ address moved; the three NatSpec-precision items the audit also raised ride the next redeploy batch
306
+ instead (`docs/10-backlog.md` → _Contracts — the next redeploy batch_, B47).
307
+
308
+ **SDK — `HexColor` decode now masks to 24 bits, matching the chain (L-1).** `decodeScalarParam` for a
309
+ `HexColor` value greater than `0xFFFFFF` returned `#1ffffff` (7+ hex digits); the on-chain
310
+ `TokenDataLib.decodeScalar` masks with `& 0xffffff` and returns `#ffffff`. The governed write validates
311
+ `v <= 0xFFFFFF`, but the raw owner setter does not, so an out-of-domain value can be stored and later
312
+ governed by a `HexColor` schema — and the two serving planes would then decode it differently, splitting
313
+ `inputsHash`. The SDK now masks identically. Pinned on both sides so it cannot drift again:
314
+ `decodeScalarParam('HexColor', 0x1ffffffn) === '#ffffff'` (SDK) and the twin `test_DecodeScalars`
315
+ assertion in `contracts/test/FieldRenderer.t.sol`.
316
+
317
+ **SDK — gateway-prefix projection no longer trims (L-7).** `projectGatewayPrefix` dropped the `.trim()`
318
+ on the on-chain `abx_gateway_*` value: the deployed `_gatewayPrefix` returns the stored bytes verbatim,
319
+ so trimming here made the two planes disagree on a whitespace-padded prefix. The field store rejects an
320
+ empty value, so a set field is always non-empty. Clean prefixes (every real one) are unaffected.
321
+
322
+ **SDK — `permissionlessSalt` docstring hardened (L-3).** Now states explicitly: never use it for a
323
+ pre-published or pre-funded address — a third party can occupy the predicted address first with their own
324
+ `InitParams`. For any reserved address, use `saltFor` (its deployer-bound prefix is front-run-proof). No
325
+ behavior change; the shipped CLI/skill already deploy through `saltFor`.
326
+
327
+ **CLI — the edition schema advisory calls out a holder-writable `seed` by name (L-2).**
328
+ `editionSchemaAdvisory` already warned that a `TokenOwner` param on an edition is shared per-id
329
+ (last-writer-wins); it now adds a sharper note when that param is `seed`, because the normally-immutable
330
+ generative seed becomes re-rollable by _any_ holder of the id — changing the artwork for every
331
+ co-holder. The on-chain behavior is deliberately unchanged (the reassignable-seed feature is
332
+ buyer-verifiable via `paramSchema("seed")`); the guardrail is this warning, not a contract restriction.
333
+ A controller contract on the `Address` leg remains the way to govern it.
334
+
335
+ - 84ca9dd: Finish the burn + royalty-cap surfacing, from the 2026-08-20 w6 agent sandbox sweep. All off-chain —
336
+ no contract changed, no address moved; the on-chain features were verified working end to end (a cold
337
+ agent deployed `--burnable --royalty-cap 42`, minted, burned, and proved the cap enforced on Sepolia).
338
+ The sweep's convergent finding was that the two new **permanent** deploy-time decisions were invisible
339
+ after you set them; this makes them visible everywhere they're decided or read, and adds the owner's
340
+ missing reduce lever.
341
+
342
+ - **New: `abx set-royalty-cap <address> --cap <0-10000>`** — the owner's reduce-only royalty-ceiling
343
+ lever (`RoyaltyExtension.reduceMaxRoyaltyBps`), the "after" the deploy-time "reduce-only after"
344
+ promise never had. Both ways the chain refuses are checked locally before signing: a value that
345
+ wouldn't decrease (`RoyaltyCapNotReduced`) or that would drop below the live royalty rate
346
+ (`RoyaltyCapBelowRoyalty`). SDK: `prepareReduceMaxRoyaltyBps`.
347
+ - **The deploy readout now shows `royalty cap` and `burnable` on every lane** (1/1, series, code, and
348
+ all three edition twins), whenever set. Critically it flags an **auto-raised** cap
349
+ (`royalty cap 25% (auto-raised to fit the royalty)`): omitting `--royalty-cap` while setting a
350
+ royalty above 10% silently raises the permanent ceiling to match, which was previously invisible.
351
+ - **`abx state` now surfaces `royaltyCap` and `burnable`** (human + `--json`), the post-deploy
352
+ verification surface, for both the 721 and edition readouts.
353
+ - **The skill documents the royalty cap** — the identity decision (`decisions.md`), the confirm-
354
+ identity step (`SKILL.md`), and a new `set-royalty-cap` owner-op row (`operating.md`); previously the
355
+ reduce-only ceiling feature had zero skill coverage.
356
+ - **Help/doc corrections:** `set-royalty --help` range `0-1000`→`0-10000` (stale from the hard-cap
357
+ era); `deploy-series --help` now lists `--royalty-cap`/`--burnable`; `deploy --help` states the cap
358
+ auto-raises; `abx inspect`'s trait-feasibility deep-dive points at public docs, not a repo path.
359
+
360
+ - Updated dependencies [84ca9dd]
361
+ - Updated dependencies [84ca9dd]
362
+ - @artblocks/abx-sdk@0.1.0-alpha.20
363
+ - @artblocks/abx-indexer@0.1.0-alpha.21
364
+ - @artblocks/abx-storage@0.1.0-alpha.20
365
+ - @artblocks/abx-token-api@0.1.0-alpha.23
366
+
367
+ ## 0.1.0-alpha.27
368
+
369
+ ### Patch Changes
370
+
371
+ - b1c333d: **Asking for a 15% royalty built a transaction that reverted on chain.** `RoyaltyExtension` caps every
372
+ ABX token at **1000 bps (10%)** and reverts `RoyaltyTooHigh()` above it, and no token type overrides that.
373
+ But client-side validation allowed the full ERC-2981 `0–10000` range — and the CLI's own error text
374
+ offered `10000 = 100%` as a worked example. So a creator asking for an ordinary 15% got a fully built,
375
+ fully signed transaction that failed on chain; on the wallet lane they approved it in their own wallet
376
+ and paid the gas to find out. Both usage strings said `<0-10000>`, and so did two public docs.
377
+
378
+ Now `MAX_ROYALTY_BPS` (SDK) mirrors the contract ceiling and both `prepareSetRoyalty` and the CLI's
379
+ `parseRoyaltyBps` validate against it, so the refusal is instant, local and free, and it names the cap
380
+ and the revert. Regression tests cover it from both sides — including `1500`, the value that used to
381
+ sail through. Two existing tests had to be corrected: they asserted the 0–10000 bound, which is how this
382
+ survived.
383
+
384
+ Three more surfaces that contradicted themselves or the chain:
385
+
386
+ - **`abx ping-uri --help` claimed "Permissionless by design … ANY signer may call it (no owner check)"
387
+ four lines below its own `OWNER-ONLY` header** — and `Uri1155.pingURI` is `onlyOwner`. A non-owner
388
+ following the paragraph built a reverting tx.
389
+ - **`site/content/docs/reference/contracts.mdx`** described the pre-audit library architecture: it omitted
390
+ `AbxMetadataLib` (the fourth delegatecalled library, and the one linked by **all six** token types, not
391
+ three) and still said `SeriesCode` "rides the ceiling", where `deployments.mdx` — written after the same
392
+ redeploy — says both code types now sit under EIP-170 with room to spare.
393
+ - **`deployments.mdx`'s own `specVersion()` example printed `# → 10`** under a table declaring the renderer
394
+ spec v11. And **`operate.mdx`'s self-correction had rotted**: it warned that `abx refresh`'s advisory was
395
+ stale about editions and ERC-4906, but that advisory was fixed — the doc was now the stale one.
396
+
397
+ Found by two read-only audits (29 doc files, 19 spec files) that verified every claim against contracts,
398
+ compiled ABIs, SDK and live `--help` output before reporting. Both independently re-confirmed the
399
+ no-burn property, the v11 gateway design, all ~26 canonical addresses, and the on-chain storage
400
+ thresholds.
401
+
402
+ - b1c333d: **Every deploy lane accepted a royalty the chain would refuse.** `set-royalty` was fixed to validate
403
+ against the contract's 10% cap, but all six deploy paths (`deploy`, `deploy-series`, `deploy-code` and
404
+ their edition twins) still did a bare `Number(flags['royalty-bps'] ?? 500)` with no bound at all. So
405
+ `--royalty-bps 1500` built the whole deploy, printed **`royalty 15%`** in the confirmation readout — a
406
+ promise the chain will not keep — and reverted `RoyaltyTooHigh()` on send. That is the worse half of the
407
+ bug: the deploy is the expensive transaction, and on the wallet lane the creator approves it first.
408
+
409
+ All six now route through the same `parseRoyaltyBps` the owner op uses, so an over-cap value is refused
410
+ locally, for free, with the cap and the revert named.
411
+
412
+ **`abx doctor`'s pruned-history warning is now order-aware.** It fired for any reachable endpoint that
413
+ cannot serve archive-depth logs, even when a healthy archive endpoint sat ahead of it in the list and would
414
+ answer every deep scan. Three eval rooms independently called it noise — one said it was "a poor first
415
+ impression for an already-nervous creator". The hazard it exists for is real but specifically about
416
+ _ordering_: the fallback transport rotates on error only, so a pruning endpoint listed **first** answers a
417
+ deep scan with an empty, successful `[]`. `probeRpcEndpoints` preserves list order, so the warning now
418
+ fires only when the pruning endpoint is ahead of a full-archive one — the case a reader can act on. When
419
+ no archive endpoint is configured at all, it still fires for every pruning endpoint, because then nothing
420
+ shadows them.
421
+
422
+ - b1c333d: An agent using this skill built its own smart-contract system, and neither it nor the creator noticed
423
+ that the collection had stopped being a canonical ABX clone. Canonicity is decided by which contract
424
+ deployed a token and can never be added afterwards, so the fix is a gate before the first send plus a
425
+ readout that makes the loss discoverable.
426
+
427
+ **`abx state` now reports canonicity first.** It read owner, supply, royalty and renderer off any
428
+ ERC-721-shaped address and said nothing about whether it was a factory clone — so a hand-rolled contract
429
+ was described exactly as confidently as a canonical one, and the tool whose whole job is "what IS this
430
+ contract?" left nothing behind for the creator to find. `verifyCanonical` (SDK) probes all six trust
431
+ anchors' `isAbxClone` in one multicall and returns a true tri-state; a `false` prints what was lost, that
432
+ marketplaces and the App Store recognize collections by that signal, and that the only remedy is a fresh
433
+ deploy through the factory plus moving holders. `null` (no anchors on this chain, or an RPC failure) is
434
+ never shown as a "no".
435
+
436
+ **The skill gained the boundary rule it never had.** Its trust material lived on the _last line_ of the
437
+ file, written for someone verifying a clone from outside, and the "don't hand-roll" rules that existed
438
+ were narrow — preview pages, ABI writes, token queries, nothing about contracts. There is now a
439
+ Read-first gate: if the ask seems to need something the deploy commands don't do, stop and put it to the
440
+ creator in words, because building your own contracts is a legitimate choice a creator can make and
441
+ making it _for_ them silently is not. Alongside it, the list of what the toolkit does **not** do — no
442
+ burn (verified: zero `burn` entrypoints in `contracts/src`, previously a parenthetical clause inside a
443
+ sentence about hooks), no secondary listings, no mainnet, fixed-price sales only, no post-deploy script
444
+ replace — and the two extension points that keep a collection canonical (`set-minter`, param hooks), with
445
+ the caveat that a `--transfer` hook is a **veto, not a trigger**: it can refuse a transfer but never cause
446
+ a mint or a burn, so it cannot implement "combine two into one".
447
+
448
+ Verified by two trap rooms — a creator asking for a burn-to-combine mechanic with "you've got my
449
+ go-ahead, I don't need the technical parts". Both Sonnet and Haiku refused to build a contract, cited the
450
+ canonicity loss, and returned options. The Sonnet room found the route that _preserves_ canonicity and
451
+ offered it first.
452
+
453
+ **SKILL.md was restructured** against its own "lean decision-tree router" norm, which it had drifted
454
+ ~40% past: **68,449 → 55,392 characters (−20%)**, longest bullet 2,876 → 1,465, bullets over 600 chars
455
+ 27 → 14, with depth moved into the reference files that already owned it (locks → `decisions.md`;
456
+ install/`.env` → `setup.md`, which was a 44-line stub; data plane, App Store and deploy mechanics →
457
+ `operating.md`). Also repaired: a **markdown table split in two** by a blockquote sitting between its
458
+ rows, and **four dangling anchor links** (three pre-existing) — all 96 internal links now resolve.
459
+ `setup.md` was retitled and reordered after a control room found the required install steps buried under
460
+ a title that promised RPC troubleshooting.
461
+
462
+ **Two contradictions the verification sweep caught**, both the same class as the rest of this week's
463
+ fixes. `deploy-code --dry-run` printed `render/storage ✓ fs + --image-base` a few lines below
464
+ `⚠ render storage home is fs … placeholder forever`, for the identical setup; the ✓ is legitimately
465
+ scoped to whether the `--image-base` target is a valid mutable bucket (two tests pin that), so the row now
466
+ states what it covers and points at the other line rather than appearing to overrule it. And **"not
467
+ backfillable" was overstated** in three places — the truth, which `code-projects.md` had right all along,
468
+ is that fixing a surface after deploy costs an owner-signed re-point plus a re-render on a collection that
469
+ showed a placeholder in between. Expensive and worth avoiding; not impossible.
470
+
471
+ - Updated dependencies [b1c333d]
472
+ - Updated dependencies [b1c333d]
473
+ - @artblocks/abx-sdk@0.1.0-alpha.19
474
+ - @artblocks/abx-indexer@0.1.0-alpha.20
475
+ - @artblocks/abx-storage@0.1.0-alpha.19
476
+ - @artblocks/abx-token-api@0.1.0-alpha.22
477
+
478
+ ## 0.1.0-alpha.26
479
+
480
+ ### Patch Changes
481
+
482
+ - 77a6248: Fixes from the 2026-08-18 eight-room agent sweep of the content-addressed lanes (ipfs · arweave ·
483
+ preferred gateways). The v11 gateway projection worked end to end on a live testnet round trip — bare
484
+ CID on chain, one `set-gateway` tx, byte-identical content id before and after — but the surfaces
485
+ around it lied, hid, or degraded in five ways that cold agents hit immediately.
486
+
487
+ **Both `AbxGenerator` addresses in the manifest had a broken EIP-55 checksum.** The addresses were
488
+ right; the casing was mangled in transcription. viem validates checksums, so
489
+ `readContract`/`writeContract` against the recorded value threw `Address "0x2c1b7Cf6…" is invalid` —
490
+ `abx verify` could not run its on-chain-URI check on **either** testnet. Corrected in
491
+ `deployments.ts` and the docs mirror, with the code at both fixed addresses re-confirmed on chain
492
+ (identical bytecode, as CREATE2 requires). The per-entry equality tests stayed green through all of
493
+ it because they compared against the same mangled string, so the manifest now carries a **property
494
+ test**: every recorded address must be a valid checksum.
495
+
496
+ **A deploy narrated the upload gateway as if it were the served URL.** With
497
+ `--onchain-uri --backend ipfs`, the progress line printed the backend's own locator
498
+ (`https://gateway.pinata.cloud/ipfs/<cid>/0.png`) while the chain got a bare CID served from
499
+ somewhere else entirely — in one run, from `ipfs.io`, because that is the floor and no preference was
500
+ written. The line now shows the URL the token will actually carry, resolved through the same
501
+ precedence that decides what gets written (`--ipfs-gateway`/`--arweave-gateway` → `--gateway` for the
502
+ backend in use → env → floor), and says whether that prefix is the project's choice or the public
503
+ default filling a silence.
504
+
505
+ **`--ipfs-gateway` / `--arweave-gateway` were absent from every deploy command's `--help`.** They
506
+ appeared only in `set-gateway --help` and the skill's reference pages, so an agent reading the CLI
507
+ alone could not find the flags the CLI itself tells you to use. All three deploy commands now name
508
+ them, with the floors (`https://ipfs.io/ipfs/`, `https://arweave.net/`) and the upload-vs-serving
509
+ distinction stated where the decision is made.
510
+
511
+ **`abx storage upload` handed `abx attach` a locator that silently downgraded the attachment.** It
512
+ printed `abx attach <address> <key> https://gateway.pinata.cloud/ipfs/<cid>/file.png` — and `attach`
513
+ picks the on-chain representation from the scheme, so an `https://` locator stores a plain `url` with
514
+ the gateway host welded into the value: no `set-gateway` repoint, exactly the coupling the
515
+ content-addressed representations exist to remove. Following the command's own printed next step was
516
+ the wrong move — and the skill had promised the scheme form all along, so the doc was right and the
517
+ command was wrong. It now hands back `ipfs://<cid>/file.png` / `ar://<txid>/file.png` (both in the prose
518
+ hint and as `attachLocator` in `--json`), keeps the https URL as the browsable one, and says why they
519
+ differ.
520
+
521
+ **`.abx-self-host/` is now self-ignoring.** It holds this node's projection and, for the Arweave
522
+ backend, a signing-capable key that carries prepaid upload credits. This repo gitignores that
523
+ directory and the skill said so — but a _creator's_ repo does not, so a first `--backend arweave` run
524
+ could leave a key staged for commit with nothing having said a word. The CLI writes a `.gitignore`
525
+ containing `*` inside the directory before anything sensitive lands there: it ignores the whole tree
526
+ regardless of the enclosing repo's config, needs no edit to a file we don't own, and never overwrites
527
+ one that already exists.
528
+
529
+ The **local-gateway warning** also stopped over-claiming. It said a `127.0.0.1` gateway means "the
530
+ served image URL resolves only on THIS machine" — true when the gateway host was welded into the
531
+ field, false now that the field holds a bare CID, and it aimed the creator at the wrong repair. It now
532
+ names the damage that is still real: bytes pinned only to a local node cannot be retrieved by anyone,
533
+ and no gateway can serve content that was never pinned publicly.
534
+
535
+ Also: `abx storage status --json` no longer warns `unrecognized flag(s), ignored: --json` about a flag
536
+ its own usage documents and that visibly works (a readout contradicting itself is worse than no
537
+ readout), and the `--unsigned` epilogue names `abx add <address>` rather than `abx index <address>`,
538
+ which fails on a node that never registered the project — the common case for a tx handed to someone
539
+ else's signer.
540
+
541
+ - 77a6248: Fixes from the 2026-08-18 six-room agent sweep of the hosted-services lane (managed provider ·
542
+ self-hosting · conformance). Three surfaces reported a credential problem as something else.
543
+
544
+ **`abx remote --conformance` blamed the service for our key.** With a rejected token it correctly
545
+ reported `the provided token was rejected (401)` — and then ran the authed-tier probes anyway. Each
546
+ one 401s, and each asserts on a 400, so one stale key produced four further failures reading
547
+ `bytes for a REFERENCED output (image) → 401 (expected 400; accepting this is how a resolver becomes
548
+ an object store)`. That is an accusation against the operator, and it is the exact inverse of what
549
+ this command is for: conformance is meant to be checkable from OUTSIDE, before you sign up. A cold
550
+ agent hit it and had to choose between believing five ✗ marks and explaining them away — it chose to
551
+ explain them away and told the creator the service was trustworthy. Now a rejected token skips the
552
+ authed tiers with one note (naming the descriptor's own signup URL), the public tier still runs in
553
+ full, and the run reports the one failure that is real. 401 is also handled like 403 inside the probe
554
+ helper, which already knew a credential problem is not a conformance verdict.
555
+
556
+ **`abx doctor` reported a dead credential as configured.** It printed `remotes: meridian` for a token
557
+ the service rejects, because it only checked that the variable was _present_. Doctor is the command a
558
+ creator is told to run first, so the 401 surfaced much later, from `abx remote <name>`, after that
559
+ line had already been trusted. Same class as an RPC that answers `[]` because it pruned its logs:
560
+ presence is not capability. It now makes one cheap authed call per named remote and reports
561
+ `✓ good · 1 project(s) visible` or `✗ meridian — token rejected (401) — fix or rotate
562
+ ABX_REMOTE_MERIDIAN_TOKEN`. A short timeout with no backoff keeps it quick, a 403 stays a note
563
+ (provider scoping is not a misconfiguration), and an unreachable provider is a soft note rather than
564
+ a ✗ — nothing here can fail doctor for a reason the creator cannot act on.
565
+
566
+ **`abx deploy-effects` told operators to set a variable that is never read.** The Fly scaffold's
567
+ storage-secrets block emitted `fly secrets set ABX_ARWEAVE_KEY=…`; no such variable exists anywhere in
568
+ the toolkit. A hosted runner cannot use the CLI's managed key file either (that path is on the
569
+ operator's machine), so the line now names `ARWEAVE_JWK` with the JWK inline, which is the form that
570
+ actually works remotely.
571
+
572
+ **A remote register on a self-resolving project claimed a win it did not deliver.** `abx add --remote`
573
+ printed its successes and stopped. But a project whose `tokenURIRenderer` is set answers `tokenURI`
574
+ from the chain, so marketplaces and wallets read that document and never touch the service — the
575
+ registration is still worth having (indexing, the live view, managed rendering) and changes nothing a
576
+ collector sees. A cold agent, told "put it on a hosted service so it shows up properly", had to
577
+ reconstruct that from `state` → `tokenuri` → `contracturi` → the docs → a raw curl before it could
578
+ answer honestly. The register now says it, and the skill states the inverse rule the reference pages
579
+ never had: a resolver adds nothing marketplace-facing to a project that already resolves on-chain.
580
+
581
+ `abx verify`'s help also stopped contradicting itself — "no server needed" read as "needs nothing"
582
+ while the command refuses until the project is registered locally with `abx add`. It now says "no
583
+ resolver in the path" and names the prerequisite.
584
+
585
+ Skill: stop asserting third-party prices and free tiers. Two rooms in one sweep quoted plan costs to a
586
+ creator — one lifted "free tier" from our own `hosting.md` (Fly's has since changed), the other
587
+ invented a monthly Pinata figure out of nothing. We cannot keep another company's pricing current, so
588
+ the skill now says to name the provider and point at its pricing page, and to compare _shapes_
589
+ (pay-once vs. monthly; lapses vs. nothing-to-renew) which stay true. Turbo's under-100 KB free tier
590
+ stays, because the CLI enforces and prints it. The never-read-`.env` rule also moved to the top of
591
+ SKILL.md: an agent listed and read files while orienting, before it reached that rule twenty lines
592
+ down, and printed credentials into its own transcript.
593
+
594
+ - Updated dependencies [77a6248]
595
+ - Updated dependencies [77a6248]
596
+ - @artblocks/abx-sdk@0.1.0-alpha.18
597
+ - @artblocks/abx-indexer@0.1.0-alpha.19
598
+ - @artblocks/abx-storage@0.1.0-alpha.18
599
+ - @artblocks/abx-token-api@0.1.0-alpha.21
600
+
601
+ ## 0.1.0-alpha.25
602
+
603
+ ### Minor Changes
604
+
605
+ - c5b8ec3: `ipfs` and `arweave` metadata fields now resolve on both planes, through a gateway the collection
606
+ chooses — renderer **spec v11**.
607
+
608
+ These are the two representations that are content-addressed, the two where the locator IS the
609
+ integrity hash, and the two this protocol tells creators to prefer. They were also the two the
610
+ on-chain renderer could not serve. So `abx deploy --onchain-uri --backend ipfs|arweave` worked around
611
+ it by baking a gateway HOST into a `url` field, which welded a hostname the creator could never
612
+ migrate and made `abx_provenance` report `source: url` for bytes that live on IPFS.
613
+
614
+ The fix separates the two facts that the baked URL had fused. The CID/txid stays in the field, as
615
+ identity, under that field's own lock. The HTTPS prefix becomes a project-wide preference in two
616
+ reserved collection-scope fields, `abx_gateway_ipfs` / `abx_gateway_arweave`, with `https://ipfs.io/ipfs/`
617
+ and `https://arweave.net/` as floors. The renderer, the canonical generator, and the off-chain
618
+ resolver all read those two fields and apply the same wrap, so a token served from the chain and from
619
+ a resolver produces the same URL.
620
+
621
+ A dead or slow gateway is now a **repoint**, not a rewrite:
622
+
623
+ ```bash
624
+ abx set-gateway 0xYourContract --ipfs https://your-dedicated.mypinata.cloud/ipfs/
625
+ ```
626
+
627
+ One transaction, every token, no re-upload — and it works on fields you have already locked, because
628
+ the locked value is the CID and the gateway was never in it.
629
+
630
+ **What changes for you**
631
+
632
+ - `--onchain-uri --backend ipfs|arweave` writes the bare CID (or `cid/{id}.ext` for the O(1) directory)
633
+ as an `ipfs`/`arweave` field instead of a gateway URL as `url`/`url-template`. `--backend cloud` is
634
+ unchanged — an HTTPS CDN locator _is_ the address.
635
+ - New `abx set-gateway <addr> [--ipfs <prefix>] [--arweave <prefix>]` (`none` clears to the public
636
+ default). Two flags, so a project can pay for a dedicated IPFS gateway and leave Arweave public.
637
+ - New `--ipfs-gateway` / `--arweave-gateway` on every deploy command. Plain `--gateway` (the
638
+ storage/upload gateway) seeds the preference for the backend in use, so passing it still does what
639
+ you meant. Nothing is written when no gateway is named — silence keeps the floor live.
640
+ - `abx set-field` refuses the two gateway keys and points at `set-gateway`, which validates the
641
+ prefix, the scope and the representation. Every way to set them by hand fails silently.
642
+ - The `display.gateway` contract param is **superseded and no longer read**. It could name only one
643
+ prefix for both schemes and existed only on code projects.
644
+ - SDK: `projectGatewayPrefix`, `projectGatewayUrl`, `gatewayPrefixFrom`, `contentIdFromLocator`,
645
+ `GATEWAY_FIELD`, `GATEWAY_FLOOR`. For a host running its own resolver, `ABX_IPFS_GATEWAY` /
646
+ `ABX_ARWEAVE_GATEWAY` are now a **floor**: a project that stated a preference on chain gets that
647
+ preference from every conforming resolver, and host config only fills a silence.
648
+
649
+ **New canonical addresses** (both testnets; nothing else moved — no token implementation, factory, or
650
+ `initialize` ABI changed):
651
+
652
+ | Contract | Address |
653
+ | -------------------------------- | -------------------------------------------- |
654
+ | `AbxMetadataRenderer` (spec v11) | `0x85C1aE1F076d808fF7c1729F21B85038Fa16105E` |
655
+ | `AbxGenerator` (Sepolia) | `0xb7104AdFa6Fb5615e46E2a681A2Ff043B08fADB5` |
656
+ | `AbxGenerator` (Base Sepolia) | `0x2c1b7Cf6C54E4acBcB54FCc395f7Af88eB4fC8Ce` |
657
+
658
+ Also fixes a crash on `abx deploy-code --copies`: an undefined `bytes` reference threw a
659
+ `ReferenceError` at the end of the dry-run plan and, worse, at the confirmation prompt of a real
660
+ deploy.
661
+
662
+ ### Patch Changes
663
+
664
+ - Updated dependencies [c5b8ec3]
665
+ - Updated dependencies [5b29f53]
666
+ - @artblocks/abx-sdk@0.1.0-alpha.17
667
+ - @artblocks/abx-token-api@0.1.0-alpha.20
668
+ - @artblocks/abx-indexer@0.1.0-alpha.18
669
+ - @artblocks/abx-storage@0.1.0-alpha.17
670
+
671
+ ## 0.1.0-alpha.24
672
+
673
+ ### Patch Changes
674
+
675
+ - 9c287c0: The CLI no longer double-wraps a data URI, lie about managed rendering, or hand zsh an unquoted schema.
676
+
677
+ - Inline `image` that is already a `data:` URI is refused — the renderer wraps bytes itself, and
678
+ storing one produced a blank token with no warning.
679
+ - Surfaces consult `render.attached` on the public resolver before warning that local `fs` means
680
+ "placeholder forever".
681
+ - Undeclared-param advice no longer tells you to schema-declare keys an augment hook supplies.
682
+ - `--schema` Select/Range examples (help and errors) are quoted so zsh does not glob them.
683
+ - `attach --help` states URI pairs and `--file` are mutually exclusive.
684
+ - The skill refuses unfilled `⟨your idea⟩` placeholders and documents one-EOA nonce serialization
685
+ plus "no replace-script CLI".
686
+
687
+ Reported in the 2026-08-18 tester batch (feedback 111e2489, a07e0449, 4cedba82, 52487cde, d5423af5, 58984086, 735ed464, 7ff05a6b).
688
+
689
+ - b5744a1: `deploy-series` no longer uploads your art before checking it can sign the deploy
690
+
691
+ The signing lanes were checked at _signing_ time, which is the end of a deploy. Off-chain custody
692
+ (`--backend arweave|ipfs|cloud`) uploads the art near the start, before any transaction exists. So
693
+ `abx deploy-series --dir … --onchain-uri --backend arweave` with no key and no `--dry-run` minted a
694
+ Turbo identity and pushed the files, then discovered it could never have deployed. Under Turbo's
695
+ 100 KB free tier that upload _succeeds_ — so a run that was always going to fail published the
696
+ creator's work permanently.
697
+
698
+ `assertLaneCanSign` refuses the keyless hot lane and names all three lanes plus the preview. The rule
699
+ it enforces is the sibling of the `--dry-run` guard on every signing choke point: **a spend or a
700
+ publish never precedes the check that this run can be signed at all.**
701
+
702
+ It sits at the spend, not at the front door. A _validation_ refusal (an ipfs-shaped `--image-base`, a
703
+ missing `--name`, off-chain metadata with no public URL) must still reach a creator who has no key,
704
+ because it costs nothing to check and is the more specific answer — so the four image deploy bodies
705
+ assert just before their first byte leaves. `abx deploy` (1/1) turned out never to have been exposed:
706
+ it needs the deployer address to predict the clone, so it already refused before uploading.
707
+ `deploy-code` has no deploy-time upload and is untouched.
708
+
709
+ Found by a cold agent that forgot `--dry-run` once and watched it try to spend anyway.
710
+
711
+ - 9c287c0: PostParams commands refuse unsupported contract kinds before any signing prompt.
712
+
713
+ `set-schema`, `configure-param`, and `retire-param` used to surface a raw viem revert on a 1/1 or
714
+ plain Series. They now detect the kind first and fail as a capability mismatch: SeriesCode /
715
+ EditionCode only. Help text says the same.
716
+
717
+ Reported in the 2026-08-18 tester batch (feedback e47b8ed5, 018ec58a).
718
+
719
+ - b5744a1: An RPC that has pruned its log history is now detected, named, and routed around
720
+
721
+ A public endpoint that no longer holds old logs does not fail your scan — it answers `eth_getLogs`
722
+ with `[]` and HTTP 200, which is a success. Everything downstream believed it:
723
+
724
+ - **`abx doctor` graded it `best`.** The archive probe was
725
+ `getLogs({address: zeroAddress, fromBlock: old, toBlock: old})` and counted any non-throw as archive
726
+ access — but `zeroAddress` never emits logs, so an empty result is exactly what a _perfect_ archive
727
+ node returns too. The assertion could not fail; it only ever caught endpoints that _error_ on old
728
+ blocks. `ARCHIVE_DEPTH` was also 100k blocks, which on a 2-second chain is inside the retained window
729
+ of the very endpoints that prune.
730
+ - **The client never failed over.** The read transport is a viem `fallback` across every configured
731
+ endpoint, and `fallback` rotates on an _error_. So every retry asked the same endpoint the same
732
+ question, and a project whose logs sit ready on the SECOND configured endpoint reconstructed as
733
+ empty.
734
+ - **`abx add` then registered the project with no state at all**, after grinding half a million blocks,
735
+ and suggested re-running `--full` "in a minute" — advice that can never work for a pruned index.
736
+
737
+ Measured on the two default Base Sepolia endpoints, same address and same window: one returns zero
738
+ logs for the project's entire history, the other returns them instantly. Ethereum Sepolia's keyless
739
+ default endpoint shows the same shape past a few hundred thousand blocks.
740
+
741
+ - **The probe asserts on something that must come back.** Blocks are retained by everyone; receipts
742
+ and the log index are what get pruned. `probeHistoryAt` (new SDK export) reads the probe block, asks
743
+ for one of its transactions' receipts, and — when that receipt carries a log — requires `getLogs` to
744
+ return that same log. No hardcoded address, no fixture block. `ARCHIVE_DEPTH` is now 500k.
745
+ It fails **safe**: a probe block with no transactions, or whose transactions logged nothing, keeps the
746
+ old lenient verdict rather than inventing a failure.
747
+ - **`abx doctor` names a reachable endpoint that can't serve history**, with the fault and the fix
748
+ ("history pruned ~500000 blocks back … list a full-archive endpoint FIRST in `ABX_RPC_URLS_<CHAIN>`").
749
+ Collapsing to the best endpoint hid this, and ordering is what decides who answers the scan.
750
+ - **An empty scan now retries each endpoint on its own** before giving up, and says which one served
751
+ the logs. Cheap by construction: each endpoint is first asked whether it holds history at _this
752
+ project's_ deploy block — three calls — and only one that passes gets a scan.
753
+ - **`SelfHostIndexer.reindex(address, {rpcUrl})`** pins a single endpoint instead of the pool, which is
754
+ what makes that rotation expressible. Clients are pooled per (chain, endpoint), so the default path
755
+ is unchanged.
756
+ - The final failure message now separates the two cases it had merged: a project you _just_ deployed
757
+ (transient, retry) from one that is not new (retention — check `abx doctor`).
758
+
759
+ Found by direct probing during the 2026-08-17 agent sweep, after an `abx add` of a 12-day-old Base
760
+ Sepolia edition reconstructed zero of its 18 events.
761
+
762
+ - 9c287c0: On-chain script chunks no longer insert a newline in the middle of a token.
763
+
764
+ The generator joins chunks with `'\n'`. A fixed 22 kB slice could split `mass` into `ma` + `ss`,
765
+ producing a SyntaxError on chain while `abx verify` still went green. Template-mode deploys now
766
+ split at an existing newline so that join is byte-identical to the source, refuse a 22 kB+ span
767
+ with no newline, and parse the program before any gas.
768
+
769
+ Reported in the 2026-08-18 tester batch (feedback 38455765, 038d7ed2, 8c256d9d, 50e53193).
770
+
771
+ - b5744a1: Four wording fixes from the 2026-08-17 agent sweep
772
+
773
+ - **A broken sentence at a decision point.** An edition's allocation warning read _"To sell 250, raise
774
+ this id's cap is not possible (caps only decrease) — set --allocation 15"_ — pattern-matched off the
775
+ 721 branch, where "redeploy a Series with a higher `--max`" fits the grammar and an edition's
776
+ decrease-only cap does not. Now: _"Selling 250 isn't reachable: this id's cap can only ever
777
+ DECREASE."_ The warning stays a warning: allocation is a ceiling, over-allocating isn't destructive,
778
+ and holding reserves is legitimate.
779
+ - **`abx help`'s `--copies` line promised a guard that doesn't exist**, claiming deploy-code's edition
780
+ lane is "--script only, no --dep/--code-dir/--image-renderer". `--dep`/`--dep-registry` are fully
781
+ wired on EditionCode and `abx help deploy-code` already documented them as working — only the
782
+ top-level summary was stale, which is the line an agent reads first. The flag allowlist's comment
783
+ said the same thing and is corrected too.
784
+ - **`reference/decisions.md` pattern 4** stated `--onchain-uri` for a 1/1 inline SVG without the size
785
+ crossover the same file gives 58 lines later, so the row alone pointed the wrong way for the 2.4 KB
786
+ example art.
787
+ - **The eval harness** now allowlists `ABX_CHAIN=<chain> abx …` in a clean room (`Bash(abx:*)` does not
788
+ match an env-prefixed command, which left three rooms unable to reach a contract on the non-default
789
+ chain), and `docs/agent-eval/README.md` records both that trap and the one where a room reaches
790
+ outside its sandbox via `abx skill install --global`.
791
+
792
+ - Updated dependencies [9c287c0]
793
+ - Updated dependencies [b5744a1]
794
+ - Updated dependencies [9c287c0]
795
+ - @artblocks/abx-sdk@0.1.0-alpha.16
796
+ - @artblocks/abx-indexer@0.1.0-alpha.17
797
+ - @artblocks/abx-storage@0.1.0-alpha.16
798
+ - @artblocks/abx-token-api@0.1.0-alpha.19
799
+
800
+ ## 0.1.0-alpha.23
801
+
802
+ ### Patch Changes
803
+
804
+ - 7fec2d7: An edition's per-id cap now folds from the log, so a capped edition stops reporting itself as open
805
+
806
+ `DefaultMaxSupplySet` — added in the contract-audit release precisely so the log could tell an open
807
+ edition from a capped one — reached the ABI and stopped there. `reconstruct.ts` had no fold case, so
808
+ the collection-wide default never landed in `ProjectState`, and **the common shape was the broken
809
+ one**: `--copies N` sets the cap at `initialize` and never calls `setMaxSupply`, so no id has a
810
+ `MaxSupplyUpdated` of its own and every capped edition ever deployed folded as _uncapped_. The
811
+ head-read lane (`listTokens`, which calls `maxSupply(id)`) said `N` the whole time — one field name,
812
+ two answers, on the value that decides whether a buy button renders. Found by the abx-services team
813
+ while upgrading their resolver/indexer to this release.
814
+
815
+ - **`ProjectState.defaultMaxSupply`** — the collection-wide per-id default (`'0'` = open; `null` ⇒ not
816
+ an edition). The 1155 analogue of `maxInvocations`.
817
+ - **`TokenState.maxSupply` is now the _effective_ cap** — an id's own override, else that default —
818
+ and so equals `maxSupply(id)` on chain and its head-read twin `TokenRow.maxSupply`. Previously it
819
+ was the override alone, and absent otherwise.
820
+ - **`TokenState.maxSupplyOverridden`** — whether this id has ever been explicitly overridden. The
821
+ distinction the on-chain getter cannot express (`maxSupply(id)` returns `0` for both "never capped"
822
+ and "deliberately closed") and the log now can, plus a signal that the monotonic never-increase rule
823
+ is in force for that id.
824
+ - **`editionCapOf(token)`** — new SDK export returning `{kind:'open'} | {kind:'capped', cap} |
825
+ {kind:'closed'}`, so nothing re-derives the rule. Used by the dashboard and `abx tokens`; pass a
826
+ head-read row and a `'0'` cap reads `open`, which is all a state read can honestly say.
827
+ - **The dashboard stops lying twice.** It tested `maxSupply` for truthiness: a `--copies 10` id read
828
+ "(open)", and — because `'0'` is a non-empty string — an id deliberately closed would have read
829
+ "12 / 0". It now reads "12 / 10" and "12 (closed — no more can be minted)".
830
+ - **Projection columns**: `projects.default_max_supply`, `tokens.max_supply_overridden` (migration-added,
831
+ so an existing store keeps working; NULL stays NULL rather than becoming a fabricated `0`).
832
+
833
+ Also in this pass, from the same review:
834
+
835
+ - **`SPINE_EVENT_DOC` had drifted to 41 of 52 events**, so eleven folded events carried an empty
836
+ human description and defaulted to Register 2 — including `TransferValidatorUpdated`, which belongs
837
+ to Register 1, and the factory's `Deployed`. All eleven are described, and a new
838
+ `spine-doc-coverage.test.ts` fails the build if the table and the spine ABI drift apart again in
839
+ either direction.
840
+ - **One provenance body in the resolver's `renderer` branch.** The `text/uri-list` arm hand-built an
841
+ object byte-identical to `onChainProv(field, 'renderer', …)` — same keys, same order, the note string
842
+ typed a second time — so the only thing that branch could do was drift from `sourceNote`.
843
+ - **Dead `abx_params`-era test scaffolding deleted** (a `paramsOf(json) => json.abx_params` reader, an
844
+ RPC stub, a schema factory), including an import of a `ParamMember` type that no longer exists —
845
+ which nothing caught, because `tsconfig` includes only `src`, so test files are never typechecked.
846
+
847
+ - Updated dependencies [7fec2d7]
848
+ - Updated dependencies [7fec2d7]
849
+ - @artblocks/abx-token-api@0.1.0-alpha.18
850
+ - @artblocks/abx-sdk@0.1.0-alpha.15
851
+ - @artblocks/abx-indexer@0.1.0-alpha.16
852
+ - @artblocks/abx-storage@0.1.0-alpha.15
853
+
854
+ ## 0.1.0-alpha.22
855
+
856
+ ### Minor Changes
857
+
858
+ - 1b6b741: Rename "artist" to "creator" throughout, including the protocol vocabulary
859
+
860
+ ABX is a tool for creators generally. Art remains a first-class use case, but it should not be baked
861
+ into the product's framing — and it was, down to the on-chain identifiers.
862
+
863
+ **Breaking, and deliberately a clean break** (pre-launch, folded into the one redeploy that four
864
+ rounds of security remediation already required — deferring would have meant either living with the
865
+ old vocabulary permanently or spending a second deployment on a word):
866
+
867
+ - `AuthOption` is now `Creator`, `TokenOwner`, `Address`, `CreatorOrTokenOwner`, `CreatorOrAddress`,
868
+ `TokenOwnerOrAddress`, `CreatorOrTokenOwnerOrAddress`. Order is unchanged, so the `uint8` values
869
+ are identical — only the names moved. Users type these: `--schema key:Type:Creator`.
870
+ - The on-chain collection metadata field keys `artist` / `artist_links` are now `creator` /
871
+ `creator_links`. These are `bytes32` keys written on-chain and emitted verbatim into every
872
+ collection's `contractURI` JSON.
873
+ - CLI flags `--artist` / `--artist-links` are now `--creator` / `--creator-links`. No aliases.
874
+ - `@artblocks/abx-token-api` renames its `art` module to `content`: `generateArt` →
875
+ `generateContent`, `artContentHash` → `contentHash`.
876
+ - `AbxMetadataRenderer.SPEC_VERSION` is **7**, and `isCurrentRenderer` gates on it. A v6 renderer
877
+ emits a different member key, so it is genuinely behind, not cosmetically so.
878
+
879
+ Package CHANGELOGs are left alone on purpose: they record what past alpha versions actually shipped,
880
+ and rewriting them would make the release history lie about flag names that really were `--artist`.
881
+
882
+ - 1b6b741: A purchase now carries the terms the buyer accepted — closing the one path by which a project owner
883
+ could take more than the buyer agreed to.
884
+
885
+ Both shared fixed-price minters take a mandatory **terms guard** — not a slippage allowance; see the note
886
+ below — and revert a new `SaleTermsChanged()` when the live sale doesn't match:
887
+
888
+ ```solidity
889
+ purchase(address token, address expectedPaymentToken, uint256 maxPrice)
890
+ purchaseTo(address token, address to, address expectedPaymentToken, uint256 maxPrice)
891
+ // 1155 — the bound is the TOTAL, since qty multiplies it
892
+ purchase(address token, uint256 id, uint256 qty, address expectedPaymentToken, uint256 maxTotalPrice)
893
+ purchaseTo(address token, uint256 id, uint256 qty, address to, address expectedPaymentToken, uint256 maxTotalPrice)
894
+ ```
895
+
896
+ `configure` takes effect immediately and has no timelock. On the ETH lane that was largely contained
897
+ (`msg.value` must equal `price`), but an ERC-20 sale settles `safeTransferFrom(buyer, payee, price)`
898
+ against a standing allowance — so an owner who front-ran a pending purchase with a huge price spent the
899
+ buyer's whole approval, and one who switched the sale to a different ERC-20 reached an allowance granted
900
+ somewhere else. `address(0)` as `expectedPaymentToken` means ETH. There is deliberately no "no maximum"
901
+ sentinel: a bound that can be defaulted away is the bug being fixed.
902
+
903
+ SDK (breaking): `preparePurchase` / `preparePurchase1155` take the live terms — `sale`, exactly what
904
+ `readSaleConfig` / `readSaleConfig1155` returns — instead of a hand-computed `value`. They derive the
905
+ ETH to attach (`price`, or `price × quantity`) and the bound from those terms, so the payment and the
906
+ guard cannot desync. Pass `maxPrice` / `maxTotalPrice` to state a wider ceiling (a UI that tolerates a
907
+ small move rather than making the buyer re-sign); it widens the guard only, never the payment. New
908
+ exported type `PurchaseTerms`.
909
+
910
+ **`maxPrice` is not slippage tolerance on the ETH lane, and the docs no longer imply it is.** The minter
911
+ requires `msg.value == price` (an equality) and V1 has no refund path, so an in-flight ETH purchase
912
+ reverts if the price moves in _either_ direction, however wide the ceiling. Real tolerance exists only on
913
+ the ERC-20 lane, where the live `price` is pulled from the buyer's allowance and anything at or below the
914
+ ceiling settles.
915
+
916
+ CLI: `abx minter buy` hands the terms it just read to the SDK (the price × quantity math now lives in
917
+ one place), and the scaffolded `abx mint-page` binds each mint to the terms the page is displaying —
918
+ if the owner re-prices mid-click the mint reverts, nothing is charged, and the page tells the buyer to
919
+ review the new price. Re-pricing a live sale therefore fails the buys already in flight, by design:
920
+ pause first if you want a clean cutover.
921
+
922
+ **Deploy note:** this is a runtime change to two shared singletons, so both need a redeploy on every
923
+ supported chain (CREATE2 + canonical salts, so the new addresses are identical cross-chain) and the new
924
+ addresses recorded in `packages/sdk/src/deployments.ts` +
925
+ `site/content/docs/reference/deployments.mdx`. Until then the CREATE2-prediction-vs-manifest tests fail
926
+ on purpose — that is the drift detector doing its job, not a broken test.
927
+
928
+ - 1b6b741: The configure hook can see a blob's size and contents — so creators can police it instead of the protocol
929
+
930
+ `IAbxConfigureHook.onParamConfigured` gains two arguments:
931
+
932
+ ```solidity
933
+ function onParamConfigured(
934
+ uint256 tokenId,
935
+ bytes32 key,
936
+ bytes32 value, // the literal on the scalar path; keccak256(data) on the blob path
937
+ address updatedBy,
938
+ uint256 dataLength, // 0 on the scalar path; data.length on the blob path (never 0 there)
939
+ address dataBlobAddress // address(0) on the scalar path; the live SSTORE2 pointer otherwise
940
+ ) external;
941
+ ```
942
+
943
+ **Why.** On a multi-copy edition params belong to the id, so a holder-writable `String`/`Bytes` key is
944
+ shared: one holder could store large values and make the shared id's document expensive for every
945
+ co-holder. An independent audit asked for a protocol byte ceiling. A ceiling would cap every project
946
+ to police a configuration almost nobody wants — but the alternative we had documented, "the creator
947
+ constrains it in their own hook", was not actually possible: the hook only ever saw `keccak256(data)`.
948
+ It could not learn the length, could not read the content, and could not read the new value from
949
+ storage either, because nothing had persisted yet. Now it can, and no protocol limit is imposed.
950
+
951
+ **The bytes are not forwarded** — a blob can be nearly a full contract's worth of data, and putting it
952
+ in calldata would make every configure call pay for it whether the hook looks or not. A hook enforcing
953
+ a size ceiling reads `dataLength`; a hook that needs content calls `SSTORE2.read(dataBlobAddress)` and
954
+ pays for exactly what it asked for. Guaranteed: `keccak256(SSTORE2.read(dataBlobAddress)) == value`.
955
+
956
+ **Two things to know when writing one.** `tokenParamData(tokenId, key)` still returns the OLD value
957
+ inside the hook (that is what "before the value persists" means — and it lets you veto a regression).
958
+ And the blob is written _before_ the hook, because an address is meaningless until the contract behind
959
+ it exists; so a veto happens after the writer paid to store the bytes. The accepted path costs the
960
+ same as before, only rejection wastes, and it wastes only the rejecting writer's own gas.
961
+
962
+ `ConfigurableParams` is extension **v3** — the beacon's `extensionVersion` is how an integrator tells
963
+ which calling convention a deployed token uses. A hook written for the 4-argument form will revert
964
+ against a v3 token, and vice versa.
965
+
966
+ Addresses: `AbxParamsLib` moved, `AbxEditionLib` with it (it links it), and the four token types that
967
+ compose `ConfigurableParams` moved with their factories — `SeriesCode`, `EditionCode`,
968
+ `OneOfOneEdition`, `EditionImage`. The two ERC-721 image types and their factory, `AbxMetadataLib`,
969
+ `AbxCodeLib`, the renderer, chunk store, seed source and both minters keep their addresses.
970
+
971
+ - 1b6b741: Renderer spec v10 projects four long-reserved keys; edition trust anchors move
972
+
973
+ **Renderer spec v10.** Four keys the spec reserved from the start were projected on chain by nothing:
974
+ `background_color` and `youtube_url` (token), `banner_image` and `featured_image` (collection). A
975
+ documented reserved key that no surface emits is a hole rather than a saved byte — a creator sets it,
976
+ observes nothing, and cannot tell whether the tool or the marketplace is at fault. All four now project
977
+ when their representation is chain-reachable, and are omitted when unset. `isCurrentRenderer` gates on
978
+ 10; a v9 renderer silently drops them.
979
+
980
+ **`collaborators` is no longer a reserved key.** It was in the registry, projected by neither plane, and
981
+ because reserved keys are excluded from the resolver's `artifacts` listing, setting it on chain did
982
+ nothing observable anywhere. It is now an ordinary creator key — which means it **does** list in
983
+ `artifacts`. Put a collaborator list in a named artifact (`abx attach`) or in `description`.
984
+
985
+ **The resolver's two collection image keys are now symmetric with the renderer.** `featured_image` is a
986
+ top-level `contractURI` key instead of artifacts-only, and `banner_image` projects for every
987
+ chain-reachable representation instead of only `url` (an `inline` or `reader` banner used to vanish).
988
+
989
+ **Docs now carry the three-list split** — which keys both planes project, which are the off-chain
990
+ resolver's alone by design (`abx_provenance.status`, operator overlay, effects/live-view, the
991
+ `artifacts` listing, collection `image` courtesy, `image_data`, off-chain-decode values), and which are
992
+ not reserved at all. That split is the thing to read before adding a key to either surface: drift on a
993
+ key both planes _can_ emit is what produced three earlier remediations.
994
+
995
+ **Addresses.** The three edition factories move (trust anchors) along with their implementations, and
996
+ the renderer moves. `AbxEditionLib`, `AbxMetadataLib`, `AbxCodeLib`, `AbxParamsLib`, all three ERC-721
997
+ factories, the chunk store, the seed source, both minters and both generators keep their addresses.
998
+ Existing clones keep running their frozen implementations; re-point a live collection at the new
999
+ renderer with `abx set-renderer` rather than redeploying it.
1000
+
1001
+ - f64a31f: Expose `lockScript` above the contract layer — the lock that actually freezes a code project's work.
1002
+
1003
+ `SeriesCode`/`EditionCode` have always had `lockScript()` (and `scriptLocked()`), but nothing above
1004
+ the ABI surfaced it: the SDK had no `prepareLockScript`, the CLI had no `lock-script` command, and the
1005
+ skill's immutability guidance told creators that `lock-field` + `lock-uri` made a project "provably
1006
+ immutable". For a generative/code drop that is false — those freeze only the _metadata_; the owner can
1007
+ keep rewriting the on-chain program (`setScriptChunk`/`removeLastScriptChunk`) until the script is
1008
+ locked. Agents building on ABX repeatedly missed that the program could be frozen at all.
1009
+
1010
+ - **SDK:** new `prepareLockScript({contract, chainId})` (mirrors `prepareLockDependencies`).
1011
+ - **CLI:** new `abx lock-script <address>` command (any signing lane), plus `abx verify` now reports
1012
+ the script and dependency lock state for code projects (`script: locked/UNLOCKED`, with a nudge to
1013
+ `lock-script` when the program is still mutable) — read from the already-indexed state, no extra RPC.
1014
+ - **Skill:** the immutability guidance now names the full freeze for a code drop
1015
+ (`lock-script` + `lock-dependencies` + `lock-field`/`lock-uri`, plus `set-schema … lock=now` for a
1016
+ param value), corrects the "provably immutable" claim, and surfaces PostParams as a first-class
1017
+ `deploy-code` capability (not only a generative feature) in the `SKILL.md` description and decision
1018
+ tree so collector-settable on-chain parameters are discoverable.
1019
+
1020
+ - 1b6b741: Independent-audit remediation: `abx_provenance` reshaped, `abx_params` removed, hook ABI widened
1021
+
1022
+ An independent adversarial audit of the contracts found no Critical or High issue, no theft path and
1023
+ no cross-project reach — but four Mediums, eight Lows and five architectural notes. Everything is
1024
+ addressed. Consumer-visible changes:
1025
+
1026
+ **`abx_provenance` entries are now `{field, source, note}`.** They lost `onChain`, which was wrong in
1027
+ both directions — a `url` reported `false` although the URL string is stored on chain, while an
1028
+ `inline` value of `"https://…"` reported `true` for a pure pointer — and `verifiedAgainstChain`,
1029
+ which was hardcoded `null` on every entry. `source` says where the bytes came from; whether a value
1030
+ resolves on chain is visible in the value, and that judgment belongs to the reader. The off-chain
1031
+ resolver drops `onChain` for the same reason (it was exactly `status === 'on-chain'`) and keeps
1032
+ `status`, which it can genuinely compute.
1033
+
1034
+ **`abx_params` no longer appears in `tokenURI`.** It was emitted by the on-chain renderer AND the
1035
+ resolver and parsed back by nobody. Params enumerate directly from the contract — `tokenParamKeys`,
1036
+ `tokenParam`, `paramSchemaKeys` — which is canonical, needs no indexer, and is what a chain-only
1037
+ reader should use; a code project's script still receives them through `tokenData`. Traits for
1038
+ marketplaces belong in `attributes`, unchanged.
1039
+
1040
+ **A computed `image` locator now lands verbatim.** A field renderer returning
1041
+ `("text/uri-list", "ipfs://…")` was being data-wrapped into `data:text/uri-list;base64,…`, which no
1042
+ marketplace dereferences. `image` and `animation_url` now share one implementation of the rule.
1043
+
1044
+ **`IAbxTransferHook.onTokenTransfer` gains `operator` and `amount`.** Without them a hook on a
1045
+ shared-supply ERC-1155 cannot tell a real transfer from a zero-amount no-op — which let any address
1046
+ fire the param lifecycle for an id it held no copy of. The token also refuses to notify on
1047
+ zero-amount and self-transfers.
1048
+
1049
+ **`pingURI` is owner-only**, and `paramSchemaHead` / `selectOption` are new: resolving one selected
1050
+ option no longer copies the whole option table on every render.
1051
+
1052
+ `AbxMetadataRenderer.SPEC_VERSION` is 8. Every canonical address moves — every token type is now
1053
+ library-linked, including the two ERC-721 image factories, because the metadata field store was
1054
+ externalized into the new `AbxMetadataLib` to restore EIP-170 headroom before any fix was stacked on
1055
+ top of 187 bytes of margin.
1056
+
1057
+ The CLI now warns when `--copies` meets a holder-writable `--schema`: on an edition, params belong to
1058
+ the id, so every holder shares one value and the last writer wins.
1059
+
1060
+ - 1b6b741: The custom seed source is now a real choice, not a documented one
1061
+
1062
+ We tell creators — in the docs, in `AbxSeedSource`'s own NatSpec, and in `deploy-code --help` — that the
1063
+ canonical mint seed is pseudorandom and that the answer for anything lottery-like is to point
1064
+ `seedSource` at their own `IAbxSeedSource` over commit-reveal or a VRF oracle. On-chain that was always
1065
+ true. In the toolkit it was not: there was no flag, no owner command, and the only route was an
1066
+ `ABX_SEED_SOURCE` env var validated as nothing more than "has code at this address". A doc/code
1067
+ contradiction of our own making, now closed at both ends.
1068
+
1069
+ **Deploy:** `abx deploy-code --seed-source <0x…|canonical>` (and the `--copies` edition lane). Omitting
1070
+ it is unchanged — the canonical `AbxSeedSource` from the manifest, bootstrapped on a chain that lacks
1071
+ one — and `--no-seed` still means no mint-time seed at all. Passing both is refused rather than resolved
1072
+ in someone's favour. `ABX_SEED_SOURCE` keeps working and is no longer the unchecked lane.
1073
+
1074
+ **After deploy:** `abx set-seed-source <address> <0x…|canonical|none>` — owner-only, same positional
1075
+ grammar as `abx set-transfer-validator`. It surfaces the on-chain `setSeedSource(address)` that nothing
1076
+ reached before. **Future mints only**: a seed settles the instant it is assigned, so nothing already
1077
+ minted changes. The command says so, names the count of tokens already carrying a seed from the old
1078
+ source, and points out that a part-sold drop then spans two sources — public on the spine
1079
+ (`SeedSourceSet`) but not something an early buyer is told, so pause and say so.
1080
+
1081
+ **`abx state` now prints the seed source**, labelled: `none`, the canonical singleton, or `CUSTOM`. It is
1082
+ the one setting an owner can re-point mid-sale that changes what a later buyer receives, and it was
1083
+ readable nowhere.
1084
+
1085
+ **Both writes probe the address first, and `code.length > 0` is not the check.** The SDK gained
1086
+ `probeSeedSource` — one `eth_call` to `seed(uint256,address)`, which must return 32 bytes — plus
1087
+ `readSeedSource`, `prepareSetSeedSource`, `assertSeedSourceUsable`, and a `SeedSourceUnusableError`
1088
+ carrying a structured verdict. Four shapes are refused, each with its own message: **no code**;
1089
+ **empty return** (the permissive-fallback shape — a Safe, an uninitialised proxy, an EIP-7702-delegated
1090
+ EOA; pasting your own wallet is the common way in); **a return under 32 bytes**; and **a revert** (either
1091
+ the wrong address entirely, or a real source not yet armed — `seed()` is called synchronously inside the
1092
+ mint and its revert bubbles, so a source that cannot answer now cannot answer at mint either). The
1093
+ interface is non-`view` on purpose, but an `eth_call` simulates a state-keeping source fine, so
1094
+ commit-reveal and oracle-fed sources probe without sending anything. This matters because a
1095
+ misconfigured seed source is **completely silent**: the write succeeds, `seedSource()` reads back what
1096
+ you set, the event fires, `abx state` shows it — and then every mint of the collection reverts in the
1097
+ token's `bytes32` decode. Same spirit as `CreatorToken._requireHasCode`.
1098
+
1099
+ **Naming fix: a `seed` param schema is not a "re-roll", and no longer described as one.** The governed
1100
+ path is `configureTokenParam(tokenId, "seed", value)` — **the caller supplies the value**. Nothing is
1101
+ re-randomized and the seed source is never consulted again; with an unbounded `Uint256Range` the
1102
+ authorized party may set any 32-byte value, repeatedly, until they like the output. "Re-roll" promises a
1103
+ buyer a fresh random draw they could reasonably expect to be fair, which is not what they get. It is a
1104
+ collector-chosen (or creator-chosen) seed, and the docs, the specs, and the skill now say that. The
1105
+ substance that was correct is unchanged: the schema is a pre-sale commitment (declarable only before the
1106
+ collection's first seed exists), `paramSchema("seed")` is the buyer's read, and the type must be a
1107
+ literal/scalar one.
1108
+
1109
+ **Dropped a stale warning** in the skill about a `seed` schema changing how the seed decodes off-chain
1110
+ while the on-chain generator injects raw hex — `tokendata.ts` returns the raw hex for `seed`
1111
+ unconditionally, ahead of the schema branch, so the wire format is invariant across both surfaces and
1112
+ there is nothing left to warn about.
1113
+
1114
+ **Also corrected: `maxPrice` is a terms assertion, not slippage tolerance.** On the ETH lane the minter
1115
+ requires `msg.value == price` (an equality) and V1 has no refund path, so an in-flight ETH purchase
1116
+ reverts if the price moves in _either_ direction, however wide the ceiling — widening `maxPrice` on an
1117
+ ETH sale buys the buyer nothing. Real tolerance exists only on the ERC-20 lane, where the live price is
1118
+ pulled from the buyer's allowance. `specs/protocol/minter-spine.md` and
1119
+ `site/content/docs/protocol/minting.mdx` said "a price cut still settles" without that distinction.
1120
+
1121
+ - 1b6b741: Renderer spec v9: a computed image is carried once, not twice
1122
+
1123
+ A field-renderer-produced image was emitted as the reserved `image` key **and again** inside the
1124
+ `artifacts` manifest, then the whole document was base64-encoded around both copies. On the
1125
+ on-chain-SVG lane that roughly doubled the inner payload of `tokenURI` — the one read this protocol
1126
+ most wants to stay within ordinary RPC limits.
1127
+
1128
+ The data-plane spec always allowed an on-chain renderer to omit entries duplicating reserved keys it
1129
+ already emits ("an EVM-efficiency reduction, never a semantic one"). The renderer now takes that for
1130
+ every reserved key, so on a fully-on-chain project `artifacts` is absent rather than empty. Nothing is
1131
+ lost, because the entry's only unique contribution was a `mimeType` and a `data:` URI states its own.
1132
+ The off-chain resolver still emits the complete listing, duplicates included — that asymmetry is the
1133
+ spec's, and it is now documented on both surfaces.
1134
+
1135
+ Also removed: three orphaned param getters on the renderer (`paramKeysOf`, `paramSchemaOf`,
1136
+ `paramDataOf`), stranded when v8 took params out of `tokenURI`, whose NatSpec still claimed `tokenURI`
1137
+ called them.
1138
+
1139
+ `AbxMetadataRenderer.SPEC_VERSION` is **9** and `isCurrentRenderer` gates on 9. Only the renderer
1140
+ moves — nothing links it, so no factory or implementation address changes. Existing on-chain-URI
1141
+ projects keep resolving through the v8 renderer until re-pointed with `abx set-renderer`.
1142
+
1143
+ - 1b6b741: Upgrading from alpha.12/alpha.13 — what breaks, in one place
1144
+
1145
+ This release lands the contract-audit branch. It is a **compatibility break with earlier alphas**, which
1146
+ is fine at this stage (greenfield alpha, no backwards-compatibility promise) but is worth having in one
1147
+ list rather than spread across a dozen changesets. Nothing here is a deprecation with a migration
1148
+ window; the old shapes are gone.
1149
+
1150
+ **Every canonical address moved**, and four manifest fields are new (`metadataLib`, `paramsLib`,
1151
+ `codeLib`, `editionLib` — the delegatecalled write-path libraries). Resolve through `getDeployment` and
1152
+ the upgrade is transparent; anything you have _stored_ keyed by a factory address is not. A project
1153
+ indexed from a superseded anchor reads `isCanonical: false` against the new manifest — correct, since it
1154
+ is what a creator sees if they don't redeploy, but it is a data question, not a version bump.
1155
+
1156
+ **The metadata document changed: renderer spec v4 → v9.** If you assemble or assert on it:
1157
+
1158
+ - `abx_provenance` entries lost `onChain` (it was exactly `status === 'on-chain'`, and wrong in both
1159
+ directions) and `verifiedAgainstChain` (hardcoded `null` on every entry). `source` and `status` stay.
1160
+ - The `abx_params` block is gone from **both** lanes. Params enumerate from the contract —
1161
+ `tokenParamKeys` / `tokenParam` / `paramSchemaKeys` — which is canonical and needs no indexer; a code
1162
+ project's script still receives them through `tokenData`.
1163
+ - `artist` / `artist_links` are now `creator` / `creator_links` (reserved on-chain collection field
1164
+ keys), and `AuthOption.Artist*` is `AuthOption.Creator*` (numeric values unchanged).
1165
+ - A computed `image` locator (`text/uri-list`) lands **verbatim** instead of being wrapped into a
1166
+ `data:` URI no marketplace dereferences.
1167
+ - The on-chain renderer no longer duplicates a computed image into `artifacts`. The off-chain resolver
1168
+ still emits the complete listing — that asymmetry is specified, not a bug.
1169
+ - Four long-reserved keys now project on chain: `background_color`, `youtube_url` (token) and
1170
+ `banner_image`, `featured_image` (collection). `featured_image` also becomes a top-level resolver key
1171
+ instead of artifacts-only, and `banner_image` projects for every chain-reachable representation
1172
+ rather than `url` alone.
1173
+ - `collaborators` is **no longer reserved** — projected by neither plane and excluded from `artifacts`
1174
+ by its own reserved-ness, so it did nothing. It is now an ordinary creator key that does list.
1175
+
1176
+ **`tokenData` divergences fixed, so rendered output can change:** a contract-scope `seed` no longer
1177
+ leaks into a token's `tokenData` (the on-chain generator never read one), `seed`'s wire format is always
1178
+ raw 32-byte hex regardless of schema, and `</script` escaping is case-insensitive to match the on-chain
1179
+ generator. Cached renders for affected code projects should be re-derived.
1180
+
1181
+ **Removed:** `paramKeysOf`, `paramSchemaOf`, `paramDataOf` on `AbxMetadataRenderer` — orphaned when
1182
+ params left `tokenURI`. Read the token directly instead.
1183
+
1184
+ **Two hook interfaces widened** (`ConfigurableParams` is extension **v3**; a hook built for the old
1185
+ signature reverts against a v3 token): `IAbxTransferHook.onTokenTransfer` gained `operator` + `amount`;
1186
+ `IAbxConfigureHook.onParamConfigured` gained `dataLength` + `dataBlobAddress`.
1187
+
1188
+ **Additive:** `ParamHooksFrozen` folds into `ParamHooks.locked`; `paramSchemaHead` + `selectOption`
1189
+ replace pulling a whole option table to resolve one index; `readParamHooks`; `abxJs()` / `gunzipScript()`
1190
+ on the generator for piecewise document assembly; and the three ERC-1155 ABIs now carry
1191
+ `MetadataUpdate` / `BatchMetadataUpdate` / `DefaultMaxSupplySet`, which were emitted but not decodable.
1192
+
1193
+ - 1b6b741: Transfer-validator authorization has one home, and the five affected trust anchors move
1194
+
1195
+ `CreatorToken1155.setTransferValidator` performed no authorization at all, and the library it
1196
+ delegates to performed none either. What protected the three edition token types was that each one
1197
+ _overrode_ the setter to run the caller check first — one guard in three copies, sitting in front of
1198
+ an unguarded mixin whose own comment claimed the tokens carried no override. Nothing deployed was
1199
+ vulnerable, but a fourth edition type that simply inherited the mixin would have shipped an
1200
+ unauthenticated `setTransferValidator`, which decides whether collectors' tokens can move at all.
1201
+
1202
+ The guard now runs in the mixin, the overrides are gone, and the function is no longer `virtual` —
1203
+ so the arrangement is enforced by the compiler rather than by a comment. A dead
1204
+ `_requireMinterOrOwner` in `ExternalMinter`, whose NatSpec wrongly advertised it as the mint-time auth
1205
+ check (the real one also enforces `paused()`), is deleted in the same pass.
1206
+
1207
+ **Both changes are source-only** — the compiled runtime bodies are byte-identical before and after,
1208
+ measured across all ten affected artifacts. Only the metadata hash differs, and since that is part of
1209
+ the initcode, the CREATE2 addresses move. Five factories and their implementations are redeployed and
1210
+ re-verified on Sepolia and Base Sepolia: `SeriesImageFactory`, `SeriesCodeFactory`,
1211
+ `OneOfOneEditionFactory`, `EditionImageFactory`, `EditionCodeFactory`. Everything else — the 1/1 image
1212
+ factory, all four libraries, the renderer, chunk store, seed source, both minters, both generators —
1213
+ keeps its address.
1214
+
1215
+ Projects deployed from the superseded factories keep working, but `abx` will report their anchor as
1216
+ an older version. Redeploy from the anchors in the refreshed manifest.
1217
+
1218
+ ### Patch Changes
1219
+
1220
+ - 1b6b741: `ABX_CHAIN` in a `.env` now actually selects the chain
1221
+
1222
+ Found by a cold sandbox agent: the creator asked for Sepolia, put `ABX_CHAIN=sepolia` in `.env`, and
1223
+ got a **Base Sepolia** preview with no error. The agent scored it 3/5 and called it "a serious trust
1224
+ problem for a tool whose entire pitch is 'here's exactly what would be deployed'". It was right.
1225
+
1226
+ `config.ts` derives `CHAIN` as a module-level const, so it evaluated while the import graph loaded —
1227
+ before `main()` called `loadDotEnv()`. Every other setting escaped this by being read lazily inside a
1228
+ function (`storageOptions()`, the signing key at send time), by which point `.env` was loaded.
1229
+ `ABX_CHAIN` was the one eager read, and the worst one to lose: on a funded send it is a wrong-chain
1230
+ deploy with real artifacts at an address nobody meant.
1231
+
1232
+ The same ordering hid a second symptom: `assertKnownChainEnv()` also runs at module scope, so a typo
1233
+ like `ABX_CHAIN=mainnet` in `.env` read as "unset" and the CLI quietly used the default instead of
1234
+ printing its "not a chain this toolkit ships / mainnet is not supported yet" refusal. Both are fixed
1235
+ by loading `.env` before the chain is derived, and both are covered by tests.
1236
+
1237
+ - 1b6b741: Externalize the code-custody READ surfaces into `AbxCodeLib` — B22 step 2, buying back the bytes the ERC-4906 audit fix spent
1238
+
1239
+ The audit remediation that made `OnChainMetadata`'s field writes emit ERC-4906 (closing a real finding:
1240
+ that surface mutated `tokenURI` silently, so a correct indexer served the pre-edit document forever) cost
1241
+ ~96 B per token, and `SeriesCode` and `EditionCode` had no room for it — both fell under the 150 B EIP-170
1242
+ floor `contracts/test/CodeSize.t.sol` guards. That is precisely the trigger condition `docs/10-backlog.md`
1243
+ B22 was written for, and step 2 was the prescribed answer.
1244
+
1245
+ The `IAbxOnChainScript` and `IAbxDependencies` view bodies now live in `AbxCodeLib`, next to the write
1246
+ paths that were already there — `scriptChunkCount`/`scriptChunk`/`scriptLocked` and
1247
+ `dependencyCount`/`dependencyByIndex`/`dependencyRegistry`/`dependenciesLocked`. The mixins keep the
1248
+ functions (same signatures, same ABI, same ERC-165 ids) as **raw-calldata passthroughs** through a new
1249
+ shared `AbxCodeDelegate` base, which forwards the call's exact calldata to the library and returns the
1250
+ return data untouched. Storage still resolves in the token's own ERC-7201 namespaces and events still log
1251
+ from the token — that is what `delegatecall` buys.
1252
+
1253
+ Raw, not typed, on purpose: B22 step 1 measured a _typed_ shell (`return AbxCodeLib.f(...)`) **growing**
1254
+ the token by ~855 B, because decoding the library's return value and re-encoding it at the call site costs
1255
+ more than the extracted body saves. The same mistake was made again during this remediation, on
1256
+ `setTokenField`/`setContractField`, and reverted. The price of the raw form is that `AbxCodeLib`'s read
1257
+ signatures are now part of every composing token's external ABI — same signature ⇒ same selector is the
1258
+ whole mechanism — so they must track the interfaces verbatim; both the library and the mixins now say so.
1259
+
1260
+ EIP-170 margins, before → after:
1261
+
1262
+ | contract | before | after | floor |
1263
+ | ------------- | ------ | ------- | ----- |
1264
+ | `SeriesCode` | 125 | **529** | 150 |
1265
+ | `EditionCode` | 132 | **507** | 150 |
1266
+
1267
+ `AbxCodeLib` grew 3,905 → 4,961 B and still has ~19.6 KB to spare. Nothing else moved: `OnChainScript` and
1268
+ `Dependencies` are composed **only** by `SeriesCode` and `EditionCode`, and both already linked
1269
+ `AbxCodeLib`, so no contract gained a library dependency and the other four tokens are byte-identical.
1270
+
1271
+ No behavior change and no ABI change — the read signatures, return types, mutability, ERC-165 ids and the
1272
+ `ScriptIndexOutOfRange`/`DependencyIndexOutOfRange` error selectors are all preserved (the errors stay
1273
+ declared on the mixins so they remain in each token's ABI, and now revert from the library's
1274
+ identically-named, identically-selectored twin). This does move the implementation bytecode, so it rides
1275
+ the redeploy this remediation already requires: `AbxCodeLib`, both code tokens, and their factories (and
1276
+ therefore the factory trust anchors) all get new addresses.
1277
+
1278
+ - 1b6b741: CREATE2 for library deployments, as the standard process — and delete the false belief that said it was impossible
1279
+
1280
+ An audit found that two ERC-1155 token types were held library-free, and an EIP-170 size floor relaxed, on
1281
+ the recorded belief that linking a delegatecalled library costs a factory its CREATE2-deterministic address.
1282
+ That belief is false, and the committed broadcast artifacts always refuted it: every recorded library deploy
1283
+ went through the keyless CREATE2 proxy, `AbxParamsLib` landed at ONE address on Sepolia and Base Sepolia
1284
+ from deployer nonces **215 apart** (a nonce is not an input to a CREATE2 address), and both library-linked
1285
+ factories have held chain-identical addresses across four deploy generations.
1286
+
1287
+ What was true was narrower and self-inflicted: `deploy.ts` deployed its libraries with `send({to: null})` —
1288
+ a plain EOA `CREATE` — **by its own choice**, so _it_ could not predict them. `create2.ts` and both code
1289
+ factory deploy functions then wrote that local limitation up as a property of libraries in general, and the
1290
+ repo proceeded to contradict itself (`deployments.ts` and `reference/deployments.mdx` describe the correct
1291
+ mechanism a few files away).
1292
+
1293
+ The SDK now does what the docs already claimed:
1294
+
1295
+ - Both bootstraps (`deploySeriesCodeFactory`, `deployEditionCodeFactory`) deploy every write-path library
1296
+ through the keyless proxy at the canonical `AbxSalts` salts — `abx.lib.params.v1`, `abx.lib.code.v1`,
1297
+ `abx.lib.edition.v1`, mirrored in `ABX_SALT` and pinned against `AbxSalts.sol` by a new test — and then
1298
+ CREATE2 the linked factory at its own salt. **An SDK-bootstrapped chain and a forge-bootstrapped chain now
1299
+ produce identical addresses** (verified: the SDK's predictions equal what
1300
+ `DeployLibraries.s.sol --sig 'predict()'` prints).
1301
+ - Idempotent, out of necessity rather than politeness: the proxy _reverts_ on an occupied address, so a
1302
+ library already on-chain is linked against instead of redeployed — which is also what makes a partially
1303
+ bootstrapped chain recoverable by re-running.
1304
+ - New: `predictParamsLib`, `predictCodeLib`, `predictEditionLib`, `predictSeriesCodeFactory`,
1305
+ `predictEditionCodeFactory`, plus exported `libPlaceholder` / `linkLibraries` / `LIB_FQN`. Both code
1306
+ factories therefore gained the CREATE2 self-heal every other canonical anchor has — and need no version
1307
+ probe for it, because code at a CREATE2 address is bytecode-bound to the build that predicted it.
1308
+
1309
+ **Fixes a real crash on the way past.** `deployEditionCodeFactory` could not succeed at all: it deployed
1310
+ `abxEditionLibBytecode` raw, but `AbxEditionLib` itself delegatecalls `AbxParamsLib`, so its shipped
1311
+ bytecode carries an unlinked `__$…$__` placeholder — not hex, so the RPC rejected it with an opaque
1312
+ `Invalid byte sequence`. The old guard only checked the _factory's_ bytecode, never the library's. The
1313
+ library is now linked before it is deployed, and `linkLibraries` throws with the offending placeholder named.
1314
+
1315
+ **The trap that IS real, now written down** (`create2.ts`, `reference/deployments.mdx`): a library's address
1316
+ is a function of its creation bytecode, so build settings move it. Linking _after_ compilation — substituting
1317
+ into solc's placeholder, what forge's automatic linking and the SDK both do — cannot change that bytecode.
1318
+ Handing solc the addresses at build time (`--libraries src/…:Lib:0x…`) writes the map into
1319
+ `settings.libraries` in every artifact's metadata, and the metadata hash is appended to the creation
1320
+ bytecode: measured here, that moves the library's own address and the linked factory's initcode. Optimizer
1321
+ profile does the same (the code tokens compile at 200 runs). Both failures are invisible until two chains
1322
+ disagree, so the docs now say to compare `predict()` against the SDK's predictions rather than assume.
1323
+
1324
+ Docs and specs swept for the old claim: `reference/deployments.mdx` (the salts, and a "libraries go first"
1325
+ bootstrap step naming `DeployLibraries.s.sol` and its `predict()` dry run), `reference/contracts.mdx`
1326
+ (`AbxEditionLib` was missing from the library taxonomy entirely), `reference/sdk.mdx`,
1327
+ `specs/self-host-toolkit/deployment.md`, and the `abx-self-host` skill's code-projects reference. No
1328
+ addresses were invented: nothing is redeployed yet, and the two manifest-drift tests still stand as the
1329
+ detectors waiting on it.
1330
+
1331
+ - 1b6b741: `abx doctor` stops calling a dust balance "funded", and its provenance line stops guessing how you invoked it
1332
+
1333
+ Both found by cold agents in the clean room, one of them twice.
1334
+
1335
+ **Funding had two states where it needed three.** A wallet holding `0.000000000848940602 ETH` — 848
1336
+ gwei, enough for nothing — reported as `funded`, in full wei precision, with no faucet link, because the
1337
+ test was `balance > 0n`. An agent then spent its whole run preparing a deploy it could not send and
1338
+ named the quiet funding signal as its top friction. Now: zero is `empty`, below 0.001 ETH is
1339
+ `too little to deploy` with a faucet link, and anything above reads `funded` at six decimals instead of
1340
+ eighteen. The floor is a readout threshold, **not** a refusal — we don't estimate anyone's gas, and a
1341
+ cheap L2 deploy below it is the caller's call.
1342
+
1343
+ **The `binary` line said `source checkout (pnpm abx)`** even when the caller had typed a bare `abx` that
1344
+ happened to resolve to a checkout. `source` was right; the parenthetical named an invocation that never
1345
+ happened. It now says what is running rather than how you typed it. A provenance line that misstates the
1346
+ invocation undermines every readout sitting next to it.
1347
+
1348
+ Not changed, deliberately: `deploy --dry-run` still refuses to print an address without `--salt`. An
1349
+ agent asked for a non-final example address to skip the two-step dance, but the salt is the only thing
1350
+ that pins the address, and printing a real-looking one that won't be the deployed address is the exact
1351
+ failure that refusal exists to prevent.
1352
+
1353
+ - 1b6b741: Editions: the buyer picks the work, and the skill stops promising a freeze we withdrew
1354
+
1355
+ **Say what the edition mint flow actually is.** The 721 Series lane and the edition lane answer "who
1356
+ picks the work?" in opposite ways, and only the 721 half was written down. `IAbxSequentialMint` takes a
1357
+ recipient and mints `nextTokenId` — nothing is selectable. The edition minter is keyed `(token, id)`, so
1358
+ `purchase(token, id, …)` _names the work_, and on an `EditionCode` project each id carries its own
1359
+ `seed`, drawn at that id's **first** mint because the seed belongs to the work rather than to a copy.
1360
+ Choosing the id therefore chooses the seed. That is the product, not a leak: an edition is copies of a
1361
+ known work, and seeing what you are buying is the normal case.
1362
+
1363
+ Two consequences are now documented rather than left to be discovered:
1364
+
1365
+ - Buying an **already-minted** id is choosing among settled, publicly readable works.
1366
+ - Buying an **unminted** id draws its seed with the buyer's chosen `id` in the preimage — a real
1367
+ selection surface (compute each candidate id's seed in a view loop, buy the best), bounded by which ids
1368
+ have a configured sale and by `maxInvocations`. This is the same grinding surface the recipient `to` was
1369
+ removed from the preimage to avoid, and `id` cannot be removed the same way, because it _is_ the
1370
+ work. So `AbxSeedSource`'s "accept-or-decline, not choose" is now stated as the **721-lane** property
1371
+ it is, everywhere it appeared (`protocol/code-projects`, `specs/protocol/code-projects`,
1372
+ `specs/protocol/event-spine`, the skill).
1373
+
1374
+ **Creator mints the supply, then lists on secondary** is documented as a first-class way to run an
1375
+ edition: no minter, no allocation, no pause to manage, and every seed settles under the creator's own
1376
+ transactions. It needs nothing new — the owner may always mint, paused or not, up to the id-space and
1377
+ per-id caps — and it composes with a sale (reserve to self, price the rest).
1378
+
1379
+ **The shipped skill's frontmatter no longer advertises "freeze/lock a project so it can never change"** —
1380
+ the exact promise `SKILL.md`'s own body walks back. It now names what a lock actually freezes (fields, URI
1381
+ config, script, dependencies) plus the new param-hook freeze, so the sentence that gets the skill _picked_
1382
+ agrees with the sentence that tells the creator the truth. The router stayed a router: the seed paragraph
1383
+ and the Solidity-lane paragraph were compressed to pay for the new material, with the depth in
1384
+ `reference/code-projects.md`.
1385
+
1386
+ - 1b6b741: Stop promising immutability the locks don't deliver — and name the residual owner powers in one place
1387
+
1388
+ **The claim that was wrong.** With the field lock, URI lock, contract-URI lock, script lock and
1389
+ dependency lock _all_ engaged, the rendered output can still change, two ways. **Params have no lock at
1390
+ all** — they aren't fields, so no field lock reaches them, and the renderer projects the whole enumerated
1391
+ set into `tokenURI` as `abx_params` (a program reads the same set as `tokenData`). And a
1392
+ **`Resolution.Registry` dependency is re-fetched from the registry contract on every read** —
1393
+ `lockDependencies` freezes the ref and the registry pointer, not another contract's storage. `abx verify`
1394
+ reported `chain-complete` on both sides of a registry swapping its library bytes, and the CLI was telling
1395
+ people "a fully immutable code drop is lock-script + lock-dependencies + lock-field/lock-uri".
1396
+
1397
+ Every unqualified verdict is now qualified rather than deleted, because locking a pointer _is_ part of the
1398
+ story: `lock-uri`, `lock-script` and `lock-dependencies` narration, their `--help` entries, `abx verify`'s
1399
+ chain-complete pass (which now says the flag describes **where** bytes come from, not that they're frozen),
1400
+ `GeneratorStatus.chainComplete`'s doc comment, the `lockScript` SDK docs, `protocol/metadata`,
1401
+ `protocol/params`, `protocol/code-projects`, `reference/cli`, the operate guide, `specs/protocol/*`, and the
1402
+ skill's SKILL.md · `reference/decisions.md` · `reference/code-projects.md` · `reference/operating.md`. The
1403
+ line the toolkit now gives a creator is **"your metadata is locked"**, with the stronger claim reserved for
1404
+ a project whose graph is on-chain `0x…` deps plus locked fields. Stated once per place the decision is made,
1405
+ not restated everywhere.
1406
+
1407
+ Framed as a capability as well as a caveat: a token that _deliberately_ live-adapts to on-chain conditions
1408
+ is a legitimate and interesting thing to build, and it's the same mechanism that makes it possible.
1409
+
1410
+ **New page: [What a project owner can do](https://abx.docs.artblocks.io/protocol/owner-powers/).** There was
1411
+ nowhere a collector could read what powers the creator retains. It states both halves plainly, with the read
1412
+ for each. What an owner **can** do: re-point or suspend an enrolled 721C/1155C transfer validator (and block
1413
+ transfers entirely with one that reverts — though if they renounce ownership, anyone may suspend it and
1414
+ nobody can re-arm it); change price, payee, allocation and pause on a live sale with no timelock; keep
1415
+ receiving primary-sale proceeds after selling the project, because `primaryPayee` doesn't move on
1416
+ `transferOwnership`; mint reserves outside the minter's allocation, since assigning a minter grants the whole
1417
+ remaining cap rather than a slice; change royalty receiver and bps forever; re-point metadata subject to the
1418
+ locks above; swap the seed source; reassign a token's seed _iff_ a `seed` schema was declared before the
1419
+ collection's first seed existed; and walk away. What they provably **cannot** do: take a buyer's funds beyond
1420
+ the terms that buyer signed for (`purchase`/`purchaseTo` require `expectedPaymentToken` and a maximum, and
1421
+ revert `SaleTermsChanged`); exceed a supply or per-id edition cap; rewrite or clear a settled seed; reach
1422
+ another project through any shared singleton (the renderer and chunk store hold no storage, the generator's
1423
+ wiring is `immutable` with no setters, the seed source is a stateless view namespaced by caller, and the
1424
+ minters key everything per token and hold no funds); or take a token out of a collector's wallet — there is no
1425
+ owner-only transfer, burn, or clawback anywhere in the protocol.
1426
+
1427
+ Framing, deliberately: ABX is self-serve, the creator is a privileged role, the protocol's job is to keep
1428
+ that role away from a collector's funds and tokens, and the residual powers are disclosed so a collector can
1429
+ price them. Not an accusation — a creator who destroys their own collection has destroyed what they were paid
1430
+ for. The point is that "trust me" should be optional.
1431
+
1432
+ - 1b6b741: `minter configure` no longer tells an edition its minter is unassigned when it isn't
1433
+
1434
+ The readiness footer `abx minter configure` prints after configuring an edition sale read
1435
+ `minter()`, `primaryPayee()` and `paused()` through the ERC-721 1/1 ABI, which has none of them. The
1436
+ call threw client-side, the `.catch` swallowed it into a zero address, and a correctly-configured
1437
+ edition was told to go run `set-minter` and `set-primary-payee` — both of which it had already done.
1438
+
1439
+ This is the same bug `minter show` had, fixed on 2026-08-05; only the show path was corrected then.
1440
+ The footer now reads through the edition ABI, and a live regression test covers it, so the two paths
1441
+ can't drift apart again.
1442
+
1443
+ - 1b6b741: Gate on-chain content by what a node will READ, not by what it costs to write
1444
+
1445
+ The documented on-chain envelope — ≲24 KB/file, ≲256 KB/project — was a _storage-cost_ figure sold as a
1446
+ support envelope, and the CLI's only loud warning fired on the project total. Measurement says the
1447
+ binding constraint is somewhere else entirely: **`tokenURI` reassembles the whole document on every
1448
+ call**, and that cost is **superlinear** — EVM memory expansion is quadratic, so the per-KB rate climbs
1449
+ with size. Across the 10–100 KB range that decides most projects it measures **~360,000–405,000 gas per
1450
+ KB**, rising to ~460,000/KB at 187 KB and ~510,000/KB at 256 KB. `inline` and `reader` land within ~1% of
1451
+ each other up to 75 KB (the cost is the renderer's string building, not the storage mechanism) and
1452
+ diverge above it (~5% at 187 KB, ~10% at 256 KB, as the chunk store's quadratic read loop takes over), so
1453
+ `--compress fastlz` makes a field cheaper to write and not one gas cheaper to read.
1454
+
1455
+ Measured with `forge` (`OneOfOneImage` + `AbxMetadataRenderer`, callee execution gas for one `tokenURI`
1456
+ call, `reader` staging at 22,000-byte chunks):
1457
+
1458
+ | on-chain content | `tokenURI` gas | per KB | | on-chain content | `tokenURI` gas | per KB |
1459
+ | ---------------- | -------------- | ------- | --- | ---------------- | -------------- | ------- |
1460
+ | 3 KB | 1,123,327 | 374,000 | | 100 KB | 40,254,159 | 403,000 |
1461
+ | 10 KB | 3,588,993 | 359,000 | | 128 KB | 53,559,735 | 418,000 |
1462
+ | 23 KB | 8,346,220 | 363,000 | | 187 KB | 86,021,071 | 460,000 |
1463
+ | 40 KB | 14,740,366 | 369,000 | | 256 KB | 131,269,134 | 513,000 |
1464
+ | 50 KB | 18,759,333 | 375,000 | | | | |
1465
+ | 75 KB | 29,137,215 | 388,000 | | | | |
1466
+ | 90 KB | 35,868,124 | 399,000 | | | | |
1467
+
1468
+ geth's `--rpc.gascap` defaults to 50M, hosted providers commonly cap lower, and L1 block limits sit in
1469
+ the mid-30-millions — so a project at the _documented_ ceiling could not be read by a normal node, and
1470
+ from ~90 KB (~36M gas) up no contract can read it inside a transaction at all. Note what the 100 KB
1471
+ refusal is: a **margin**, not the wall. 100 KB reads at ~40M, and geth's own 50M default is not
1472
+ exhausted until ~120 KB; the refusal sits early because hosted providers cap well below geth.
1473
+
1474
+ The gate now sits on that axis, per token (each `tokenURI` assembles only its own content, so a
1475
+ 300-piece collection of 5 KB works is fine while one 256 KB work is not):
1476
+
1477
+ - **from ~40 KB — warn.** Reads need a deliberately high-gas RPC.
1478
+ - **past ~100 KB — refuse**, with `--allow-unreadable-onchain` as the override. The refusal names the
1479
+ three ways forward and says plainly what the override accepts: rendering needs a high-gas endpoint and
1480
+ most marketplaces and indexers will show nothing. It fires on the **dry run** too, so a creator meets it
1481
+ before spending gas rather than after the first staging transaction.
1482
+
1483
+ Live on every path that puts bytes on-chain: `deploy --onchain-image`, `deploy-series --onchain-image`,
1484
+ both `--copies` edition twins, and `set-field --file`. New in the SDK: `classifyOnchainReadSize`,
1485
+ `tokenUriGasEstimate` (fitted to the measurements, so it tracks the superlinearity instead of
1486
+ multiplying by a flat rate), `TOKEN_URI_GAS_PER_KB_LOW` / `TOKEN_URI_GAS_PER_KB_HIGH` (the measured
1487
+ 10–100 KB envelope — there is deliberately no single flat `TOKEN_URI_GAS_PER_KB`, because there is no
1488
+ single rate), `ONCHAIN_READ_WARN_BYTES`, `ONCHAIN_READ_REFUSE_BYTES`, `ONCHAIN_READ_GETH_CAP_BYTES`
1489
+ (where geth's 50M default actually runs out, so the refusal can be described as the margin it is)
1490
+ (`exceedsOnchainSoftLimit` stays, now documented as the _write_-cost predicate it always was). The
1491
+ whole-collection 256 KB warning stays as well, relabelled as write cost only, since it never said
1492
+ anything about readability.
1493
+
1494
+ Two things deliberately not done. **No on-chain guard and no gas check** — a read happens off-chain, a
1495
+ read too large for one node is an RPC-capability problem, and bricking a contract is worse than needing a
1496
+ capable endpoint. And the **code lane still only warns**, at the same 40 KB threshold and now quoting the
1497
+ gas figure: `abx inspect`'s document size is an estimate that undercounts unknown dependencies, and a
1498
+ registry-hosted library like p5 is legitimately ~200 KB, so the honest move there is to name the cost and
1499
+ point at the generator's piecewise getters (`document`, `tokenDataJson`, `dependencyTag`, `abxJs`,
1500
+ `gunzipScript`, `registryScriptChunk`) rather than block a shipped lane on a heuristic. Those getters are
1501
+ now in the SDK's generator ABI, which claimed to carry "the piecewise reads" while omitting three of them.
1502
+
1503
+ The docs and the `abx-self-host` skill were swept in the same pass: `protocol/onchain-storage` carries the
1504
+ measured table and the corrected envelope, `protocol/code-projects` gains a piecewise-read section, and
1505
+ the skill's Quick start and `reference/decisions.md` lead with "40 KB is the number, not 256 KB" plus the
1506
+ rule that the override is a creator's deliberate choice and never a way to clear a warning.
1507
+
1508
+ - 1b6b741: Round-3 audit remediation: link the two ERC-1155 image anchors, and stop guarding by name
1509
+
1510
+ `EditionImage` and `OneOfOneEdition` became library-linked in the previous round, but neither the
1511
+ SDK nor the forge scripts were updated. `predictEditionFactory()` and
1512
+ `predictOneOfOneEditionFactory()` hashed **unlinked** bytecode — and viem does not reject a
1513
+ `__$…$__` placeholder, it UTF-8-encodes it, so both returned a confident hash of ASCII garbage for
1514
+ a trust anchor, and `ops.ts` would have broadcast that bytecode as initcode. Both now link
1515
+ `AbxEditionLib` (itself linked against `AbxParamsLib`) and ensure the libraries exist first.
1516
+
1517
+ Two addresses move as a result: `EditionImageFactory` and `OneOfOneEditionFactory`. Both are
1518
+ pre-launch and pending the redeploy gate.
1519
+
1520
+ This was the third instance of one bug class, and the existing guard missed it because it checked
1521
+ two factories **by name**. The replacement is exhaustive by construction: it reverse-looks-up which
1522
+ initcode each `predict*` actually hashed, drives every `prepareDeploy*` and every `deploy*`
1523
+ orchestrator against a stub chain, and asserts no `__$` placeholder survives anywhere — so the next
1524
+ library-linked contract is covered without anyone remembering to add it.
1525
+
1526
+ Also: every SDK deploy now goes through CREATE2 at a canonical salt (the 1/1 and Series anchors were
1527
+ still plain `CREATE`, landing at nonce-dependent addresses that could never match the manifest), and
1528
+ the CLI no longer tells creators an ERC-1155 edition emits no ERC-4906 — both lanes emit it now.
1529
+
1530
+ - 1b6b741: Warn when an explicit `--salt` has an all-zero guard prefix
1531
+
1532
+ The factory reads a salt's leading 20 bytes as an access guard: the caller's own address means only
1533
+ that signer may deploy with it, all-zero means anyone may. Omitting `--salt` gives you the pinned
1534
+ form. But only `abx predict` ever explained this — the deploy commands took an explicit `--salt`
1535
+ verbatim and said nothing.
1536
+
1537
+ So a creator who pinned a vanity salt with a zero prefix and announced the predicted address was
1538
+ handing it to whoever deployed there first, and the front-runner ends up as `owner()`, because
1539
+ ownership is set by `initialize` rather than by the prediction. The 2026-08 security review
1540
+ reproduced that.
1541
+
1542
+ It warns rather than refuses: a zero prefix is the right choice for a deliberately shared,
1543
+ caller-independent deployment. The check lives in the flag parser, which is the one place every
1544
+ command passes through.
1545
+
1546
+ - 1b6b741: Say the honest thing about the mint seed: pseudorandom, not lottery-grade
1547
+
1548
+ The canonical `AbxSeedSource` stopped hashing the recipient (`to` is accepted and ignored) because a
1549
+ buyer names the recipient in `purchaseTo`, which turned a caller-supplied field into a search space —
1550
+ grind candidates in a view loop, buy once at the winner. Dropping it removes cheap _targeting_, and
1551
+ nothing more: the seed is still derived entirely from on-chain values, so it is **deterministic after
1552
+ the fact** (replayable from the block — the property that makes generative output verifiable) and
1553
+ **not secret before it** (a contract minting in the same transaction can compute the seed it would
1554
+ receive and revert unless it likes the result).
1555
+
1556
+ The docs and the toolkit now say that where a creator decides, instead of implying more than the
1557
+ contract delivers:
1558
+
1559
+ - `deploy-code --help` spells out what `--no-seed` opts out of, and the deploy plan prints the same
1560
+ note beside the `seed source` line it already showed — on the 721 and edition lanes both.
1561
+ - The `abx-self-host` skill gained a one-paragraph router entry in **Code projects** and a
1562
+ **Seeds — pseudorandom, not lottery-grade** section in `reference/code-projects.md`: fine where the
1563
+ seed diversifies output and the distribution is the product, not fine for a raffle, a prize draw,
1564
+ or any drop where one rare outcome is worth materially more than mint price. The escape hatch is
1565
+ named rather than hinted at — the creator's own `IAbxSeedSource` over commit-reveal or a VRF oracle,
1566
+ which is a per-project swap, not a fork of ABX (and is now reachable as `--seed-source` /
1567
+ `abx set-seed-source` — see the companion entry).
1568
+ - Both also document the seed's new governance rule: a `seed` param schema can only be declared
1569
+ **before the collection's first seed exists**, so whether a seed's value may be re-set — and by
1570
+ whom — is a pre-sale commitment a buyer reads with `paramSchema("seed")` (or `abx state`), not
1571
+ something added after a sellout. That schema is deliberately **not** described as a "re-roll":
1572
+ the governed write is `configureTokenParam(tokenId, "seed", value)` and the caller supplies the
1573
+ value, so it is a chosen seed, not a fresh random draw.
1574
+
1575
+ The public docs (`site/content/docs`), the protocol specs, and `contracts/README.md` were swept in the
1576
+ same pass; no claim that the seed is "unpredictable" survives anywhere.
1577
+
1578
+ - 1b6b741: Fix `abx skill install` and `abx scaffold-renderer` on a published npm install
1579
+
1580
+ Reported from the field on v0.1.0-alpha.21: `abx skill install` — the canonical way to install the
1581
+ agent skill, and the first thing the quickstart tells you to run — failed on every fresh global npm
1582
+ install with `✗ bundled skill not found`. The reporter's diagnosis was exactly right.
1583
+
1584
+ `resolveBundledSkill()` computed the package root as
1585
+ `resolve(fileURLToPath(import.meta.url), '..', '..')`. That is correct for a module compiled to
1586
+ `dist/main.js` and off by one for `dist/commands/scaffold.js`, which is a level deeper — so it landed
1587
+ on `dist/` and looked for `<pkg>/dist/skill`. The assumption was written when the function lived one
1588
+ level up and quietly broke when it moved into `commands/`.
1589
+
1590
+ Two more instances of the same root cause came out with it:
1591
+
1592
+ - **`abx scaffold-renderer` was broken the same way** and had not been reported — it looked for
1593
+ `<pkg>/dist/assets/renderer-scaffold`.
1594
+ - **The "am I running from source?" guard** matched `/src/<one-segment>$`, so it read false for
1595
+ anything under `src/commands/`. On its own that was harmless; together with the root fix it would
1596
+ have made a dev run prefer `<pkg>/skill` — gitignored prepack output — over the canonical skill,
1597
+ which is how the canonical skill once got overwritten by a copy eight versions behind.
1598
+
1599
+ Nothing caught any of it because a dev run never has the published layout: running from source, both
1600
+ resolvers fall back to the repo copies and work regardless of the arithmetic. So the fix is structural
1601
+ rather than a third `..`: one `packageRootFrom()` that walks up to the CLI's own name-checked
1602
+ `package.json`, depth-independent by construction, plus `packaging.test.ts` — which builds a published
1603
+ layout in a temp dir and walks it from several depths, and fails the build if counted-`..` root math
1604
+ comes back in any spelling.
1605
+
1606
+ Workaround on alpha.21, if you're on it:
1607
+ `cp -r $(npm root -g)/@artblocks/abx-cli/skill ~/.claude/skills/abx-self-host`
1608
+
1609
+ - 133ecbc: Add `abx submit-app` — optional post-deploy listing in the ABX App Store.
1610
+
1611
+ Not folded into deploy. After a collection exists, the agent offers it, confirms catalog copy with the creator (name / summary / description — not the collection's NFT metadata), then mints through the gated minter and writes params in gas-capped batches. Already-claimed collections skip the mint (same as `/update`). Shipped Base Sepolia registry + minter; override with `--registry` / `--minter`.
1612
+
1613
+ - 1b6b741: The param transfer hook is a veto, not best-effort — say so everywhere, and ship the lock that answers it
1614
+
1615
+ The transfer hook used to swallow its own revert, and every surface promised that the parameter
1616
+ lifecycle "must never block a transfer". That promise could not be kept, so it is withdrawn rather than
1617
+ restated: Solady runs the ERC-721/1155 **receiver acceptance check after the hook**, so on the `safe*`
1618
+ variants — which marketplace fills wrap — a hook that is cheap when a wallet estimates gas and expensive
1619
+ when the transfer lands starves the work that comes after it, with or without a gas cap. Swallowing
1620
+ bought a guarantee that was false in exactly the cases people use, while making an honest hook's failure
1621
+ invisible.
1622
+
1623
+ So the contract now calls the hook plainly (no swallow, no gas budget, no assembly), **its revert fails
1624
+ the transfer**, and — because a mint and a burn are transfers from/to `0x0` — a reverting hook also stops
1625
+ minting for that project, including through the shared minter. That is deliberate: a hook is always the
1626
+ creator's own contract, which is why it may block issuance while the transfer _validator_, usually a
1627
+ third party's, never sees mint or burn.
1628
+
1629
+ The mitigation is a lock, and it is now reachable end to end:
1630
+
1631
+ - **SDK** — `prepareLockParamHooks({contract, chainId})`, the sibling of `prepareLockScript` /
1632
+ `prepareLockDependencies`. Plus two reads: `readParamHooks` (the trio) and `readParamHooksLocked`,
1633
+ which establishes the freeze without a getter by simulating `setParamHooks` with the current trio and
1634
+ watching for `ParamHooksLocked` — and returns `undefined`, never a cheerful `false`, when a node won't
1635
+ answer.
1636
+ - **CLI** — `abx lock-param-hooks <address>`. Owner-only, one-way, every signing lane, `--dry-run`
1637
+ guarded. It prints the exact three addresses it will freeze, states what is given up (arming a
1638
+ transfer veto, arming a configure veto, re-pointing or clearing the augment hook) and that there is no
1639
+ way back, and distinguishes the two cases: freezing an **empty** set is how a project _proves_ it can
1640
+ never arm a transfer veto, while freezing a set that already contains a hook pins which contracts can
1641
+ run — it does not disarm them.
1642
+ - **`abx state`** now prints the three hooks and whether they are frozen, next to the transfer validator,
1643
+ because that pair is the read a buyer performs. `abx verify` warns on an armed-but-unfrozen transfer
1644
+ hook. `abx set-param-hooks` states the veto at the moment a transfer hook is armed.
1645
+ - **Reconstruction** — `ParamHooksFrozen` folds into `ProjectState.paramHooks.locked`. The event is
1646
+ declared only by `AbxParamsLib`, so `spineEventAbi` now unions that ABI (its other events dedup away):
1647
+ without it the one-way lock on a hook that can veto a transfer was invisible to every consumer that
1648
+ folds the spine.
1649
+
1650
+ Swept for the withdrawn promise: `protocol/params` (which gained a section on why it died),
1651
+ `protocol/owner-powers` (the hook is now on **both** lists — an unlocked hook set as a live power, a
1652
+ frozen one as a guarantee), `specs/protocol/event-spine`, `specs/protocol/user-stories`, the spine event
1653
+ doc strings, and the `abx-self-host` skill (`SKILL.md`'s lock bullet plus the operating and code-project
1654
+ references). No surface still says "best-effort", "reverts are swallowed", or "never blocks a transfer",
1655
+ and a CLI test now fails if one comes back.
1656
+
1657
+ - 1b6b741: Transfer validator: preflight what the chain actually refuses, and stop calling `setTransferValidator` owner-only
1658
+
1659
+ Two corrections, both in the direction that was costing someone something.
1660
+
1661
+ **The preflight was a bare `getCode`, and the chain's check is not.** `validateTransfer` returns nothing,
1662
+ so there is no ABI decode to fail — which means any address whose fallback succeeds for an unknown
1663
+ selector passes a has-code check and then waves **every** transfer through, while ERC-165,
1664
+ `getTransferValidator()` and the extension beacon all report enforcement as ON. A Safe does exactly this
1665
+ (`FallbackManager.fallback()` returns empty when no handler is set), as do an uninitialised proxy and a
1666
+ 7702-delegated EOA, and a creator pasting their own Safe is the likely real case. The contract's guard was
1667
+ rewritten to probe with a selector no validator implements and require it to **fail**; the toolkit now
1668
+ asks the same question, with the same selector, through the new SDK `probeTransferValidator` (verdicts:
1669
+ `ok` · `no-code` · `permissive-fallback` · `unreachable`). Both call sites use it — `abx
1670
+ set-transfer-validator` and `deploy --721c` — so a creator gets a refusal that names what is actually
1671
+ wrong instead of passing the CLI and reverting on chain against an error whose documented meaning ("no
1672
+ code on this chain") was false for their address.
1673
+
1674
+ **`setTransferValidator` is owner-only only while there is an owner.** Once `owner() == address(0)`
1675
+ **anyone** may suspend enforcement by passing `address(0)`, and nobody may ever arm a validator again —
1676
+ the dead-man release for a validator that reverts every transfer on a collection with nobody left to
1677
+ re-point it, which would otherwise strand every collector's token permanently. Four surfaces still said
1678
+ owner-only, and the SDK's was wrong in the direction that matters: an integrator reading it would refuse
1679
+ to build the suspension a stranded holder needs. Corrected in `creator-token.ts` (module header plus
1680
+ `prepareSetTransferValidator`), `protocol/royalty-enforcement`, `protocol/interfaces`, and
1681
+ `specs/protocol/interfaces`, each stating the asymmetry: an ownerless collection can only ever be moved
1682
+ _toward_ transferability, so this hands a stranger no power over a live project.
1683
+
1684
+ - Updated dependencies [1b6b741]
1685
+ - Updated dependencies [1b6b741]
1686
+ - Updated dependencies [1b6b741]
1687
+ - Updated dependencies [1b6b741]
1688
+ - Updated dependencies [1b6b741]
1689
+ - Updated dependencies [1b6b741]
1690
+ - Updated dependencies [f64a31f]
1691
+ - Updated dependencies [1b6b741]
1692
+ - Updated dependencies [1b6b741]
1693
+ - Updated dependencies [1b6b741]
1694
+ - Updated dependencies [1b6b741]
1695
+ - Updated dependencies [1b6b741]
1696
+ - Updated dependencies [1b6b741]
1697
+ - Updated dependencies [1b6b741]
1698
+ - Updated dependencies [1b6b741]
1699
+ - Updated dependencies [1b6b741]
1700
+ - Updated dependencies [1b6b741]
1701
+ - @artblocks/abx-sdk@0.1.0-alpha.14
1702
+ - @artblocks/abx-token-api@0.1.0-alpha.17
1703
+ - @artblocks/abx-indexer@0.1.0-alpha.15
1704
+ - @artblocks/abx-storage@0.1.0-alpha.14
1705
+
1706
+ ## 0.1.0-alpha.21
1707
+
1708
+ ### Patch Changes
1709
+
1710
+ - 528c6c6: Close most of the ERC-1155 edition CLI parity gaps (B28), give every command one unknown-flag posture
1711
+ (B30), and add the per-holder edition balance read (B31).
1712
+
1713
+ Each B28 item was checked against the tree before any code was written: **none needed a Solidity
1714
+ change.** The contracts and SDK ops were already per-id and standard-neutral, so all of this is CLI
1715
+ plumbing and **no redeploy, address churn, or Etherscan re-verification is involved.**
1716
+
1717
+ **Edition custody is now symmetric with the 721 side** — each lane verified live on testnet, not just
1718
+ by dry run:
1719
+
1720
+ - **`deploy-series --copies` gains pattern 2: off-chain image, on-chain JSON, nothing to run.** The 721
1721
+ Series had the whole branch; `EditionImage` never got it, so a multi-artwork **raster** edition had no
1722
+ no-server option at all. A uniform file extension uploads the folder as ONE directory and bakes a
1723
+ single `{id}`-substituting collection field, so the collection costs one field instead of N; mixed
1724
+ extensions fall back to per-id `url` fields. Verified at
1725
+ `0x4e7e2d1aA951d99046323a620a2a5891b1195452`, where `uri(0|1|2)` resolve to `…/0.png`, `…/1.png`,
1726
+ `…/2.png` off one template and all three fetch at their source byte sizes. This gap had real design
1727
+ consequences: a cold agent asked for "3 artworks × 25 copies each", hit the SVG-only refusal, and
1728
+ split the collection into **three separate single-artwork contracts** to get the permanence it wanted.
1729
+ - **`--onchain-image` works on both edition lanes, on the hot AND wallet lanes.** It was refused
1730
+ outright on `deploy-series --copies` and hot-lane-only on `deploy --copies`; one sign session now
1731
+ covers the chunk writes plus the deploy, and the staging txs are counted in the `approvals` line the
1732
+ session's own total is derived from. Verified at `0x0A71382207a980c23E26a54F2b815072da41761A`:
1733
+ `uri(id)` returns a `data:image/svg+xml;base64` image with zero `http(s)` anywhere in the document.
1734
+ `EditionImage` also now treats `--onchain-image` as implying on-chain resolution — every sibling lane
1735
+ already did, and without it the flag would have demanded a resolver URL for a drop whose bytes are
1736
+ already on-chain.
1737
+ - **`deploy-code --copies` accepts on-chain `--dep`/`--dep-registry`.** `EditionCode` already inherited
1738
+ the `Dependencies` extension and called `_initDependencies()`; the legs come from the SDK's shared
1739
+ `dependencySetupCalls`, so the two lanes cannot encode `setDependency` differently. So "an edition of
1740
+ my p5 sketch, with p5 coming from the chain" is a real lane now — verified on Sepolia at
1741
+ `0xC403CB9B956Ca814F1934d8d2A44fc1D2023EFB3`, where `abx verify` reports **chain-complete — every
1742
+ dependency resolves to proven on-chain bytes; no server, gateway, or CDN in the graph**, with a 233 KB
1743
+ inline `animation_url`.
1744
+ - **The cold lane stays refused for `--onchain-image`**, deliberately and identically on all four paths:
1745
+ staging is a sequence where each chunk tx's receipt feeds the next, so it cannot be signed offline.
1746
+ This replaces an edition-specific "tracked as a follow-up" note with the real, shared reason.
1747
+
1748
+ Still open on the edition lanes, and recorded in B28: `deploy-code --copies` has no `--code-dir` or
1749
+ field renderers, and `deploy-code --resume` has no edition path (that one is genuinely new per-id diff
1750
+ logic, not a port).
1751
+
1752
+ **Every command now has one unknown-flag posture.** Roughly 35 commands — `state`, `add`, `index`,
1753
+ `migrate`, `configure-param`, `set-field`, `set-royalty`, `set-minter`, `pause`/`unpause`, `verify`, … —
1754
+ silently ignored an unrecognized flag, so `abx set-royalty --bsp 500` did something quietly different
1755
+ from what was asked. Allowlists now live in one file and are applied once in the dispatcher; it warns
1756
+ rather than refuses (a false refusal would break a working script, and `deploy*` still refuses via its
1757
+ own exhaustive sets).
1758
+
1759
+ The obvious implementation — deriving each allowlist from the command's own `usage` string — was tried
1760
+ and **rejected on evidence**: shared helpers read flags that appear in no usage string anywhere
1761
+ (`storageOverrides()` reads twelve, pulled in by six commands; `--remote-token` by five), so deriving
1762
+ would have warned on valid flags. That is worse than the silence it replaces, because a notice people
1763
+ learn to distrust stops working for the real cases too. The sets are explicit instead, composed from
1764
+ named groups, and a test reads each command's `--help` to assert every flag it **documents** is accepted
1765
+ — the direction that would produce false warnings.
1766
+
1767
+ **`abx tokens <addr> --holder 0x..`** adds a `held` column — `balanceOf(holder, id)` per id, a live head
1768
+ read. It answers the one question supply/cap cannot, and the one a funded agent had to leave blank after
1769
+ transferring a copy (it correctly declined to fabricate the recipient's balance rather than guess).
1770
+ Refused on a 721, where the owner column already answers it. Also: `deploy-series`' `[2] On-chain
1771
+ renderer` step now prints the renderer address instead of an empty header, and `abx verify` no longer
1772
+ ends in two ⚠ on a healthy fully-on-chain **image** drop (the code-project checks are scoped to the code
1773
+ twins; a static drop has no program and no `animation_url` by design).
1774
+
1775
+ - 528c6c6: ERC-1155 editions: the trust-anchor and on-chain-URI checks told the truth about 721s only, and four
1776
+ membrane gaps around them (2026-08-05 wave-4 agent sweep — 12 cold agents, one funded end-to-end run
1777
+ on Base Sepolia).
1778
+
1779
+ The 1155 contracts themselves were fine: a funded run took an edition from deploy through
1780
+ `tokenuri` → mint more copies → transfer one copy → lower the per-id cap, verifying every step
1781
+ against the chain. What shipped wrong was everything that _describes_ an edition.
1782
+
1783
+ - **`abx verify` reported EVERY canonical edition as `canonical: NO`.** `detectCanonicalFactory`
1784
+ probed only the three 721 anchors and, on no match, fell back to the 721 1/1 factory — whose
1785
+ `isAbxClone` answers **false**, not "unknown". So the one signal platforms allowlist against was
1786
+ confidently inverted for the entire edition line (the function's own docstring promised
1787
+ "canonicity just shows unverified, never wrong"). All six anchors are now probed. **Editions
1788
+ registered before this fix keep the wrong factory in the local projection** — `abx forget <addr>`
1789
+ then `abx add <addr>` re-detects it.
1790
+ - **`abx verify`'s on-chain-URI probe called the ERC-721 `tokenURI` selector on editions**, which
1791
+ exposes `uri(id)`. It reverted for every edition, so verify could never confirm that a
1792
+ fully-on-chain edition resolves — and it printed the raw multi-line viem dump (Contract Call /
1793
+ args / Docs / Version) into a creator-facing readout. The probe now switches on `contractType`
1794
+ (matching `reconstruct.ts`, which already did), reports which accessor it read so an edition is
1795
+ never described in 721 terms, and readout errors are trimmed to their first line.
1796
+ - **An address with no contract was reported as a specific type: `OneOfOneImage`.**
1797
+ `detectTokenKind`'s three probes are each `try/catch → false`, so nothing-deployed and
1798
+ no-extensions-composed were indistinguishable and the ladder fell through to its `1of1` default.
1799
+ `abx set-max-supply` and `abx minter buy` then told edition owners _"…is a OneOfOneImage (721) —
1800
+ drop your edition flags"_ for a mistyped address or, far more often, the wrong `ABX_CHAIN` (the
1801
+ default is base-sepolia, so any Sepolia contract hit this immediately) — advice that removes the
1802
+ _correct_ flags. The existence check now lives inside `detectTokenKind`, so all 13 call sites
1803
+ inherit it; it fails **open** on an unreadable `getCode`, so an RPC blip never becomes a
1804
+ "no contract" claim.
1805
+ - **`abx transfer --token-id <n>` silently transferred id 0.** `transfer` spells the id `--token`
1806
+ while every sibling command (`mint`, `set-max-supply`, `minter …`) spells it `--token-id`, and an
1807
+ unrecognized flag was simply ignored — so an agent that learned the name from `mint` moved the
1808
+ **wrong artwork** with no warning. `--token-id` is now an accepted alias; disagreeing values are
1809
+ refused rather than silently preferring one.
1810
+ - **The edition deploy previews dropped lines their 721 twins print.** All three edition lanes
1811
+ omitted `approvals N wallet approval(s)` from the dry-run readout — which the skill promises "every
1812
+ preview" prints and tells the agent to state up front, so on an edition the agent had nothing to
1813
+ tell the creator about how many wallet prompts were coming (`deploy-code --copies` had it only in
1814
+ the `--confirm` sentence, which is off by default). `deploy --copies` and `deploy-series --copies`
1815
+ also omitted the "resolves ON-CHAIN via the renderer — no resolver, no server" line, which is
1816
+ precisely the guarantee an edition creator is asking about, and `deploy-series --copies` never
1817
+ showed `paused`. All six lanes now print the approval count; the 1155 paths say `uri()`.
1818
+ - **Owner-op writes now surface a stray flag instead of swallowing it.** `mint`, `transfer`,
1819
+ `set-max-supply`, and `minter configure|show|buy` warn on an unrecognized flag (warn, not refuse —
1820
+ per `unknownFlags`' contract, a false warning must never break a script). These are the commands
1821
+ where the 1155 semantics live in _optional_ flags that default rather than fail: a typo'd
1822
+ `--amount 50` minted 1 copy and a typo'd `--quantity 5` bought 1 and paid 1×, both in total
1823
+ silence. The broader gap — ~35 commands with no unknown-flag notice at all — is filed as B30.
1824
+
1825
+ A second verification sweep (six more cold agents, one funded) confirmed each fix above from a fresh
1826
+ start and turned up four more, all fixed here:
1827
+
1828
+ - **A supply cap could be raised in `--dry-run` and only revert on send.** Both twins —
1829
+ `set-max-invocations` (721) and `set-max-supply` (1155) — printed the new cap as fact for a value
1830
+ the chain forbids, then reverted for real. A clean dry run is read as permission to send. Both now
1831
+ read the current cap first and refuse up front; the 1155 side also refuses a cap **below** live
1832
+ supply (the second way it reverted). Both guards fail **open** on an unreadable getter, since the
1833
+ chain enforces the invariant anyway. (The 721 guard needed the Series ABI — reading `maxInvocations`
1834
+ through the 1/1 ABI that `read()` uses throws, which would have made the guard silently never fire.)
1835
+ - **`abx refresh` told edition owners ERC-4906 had already pinged marketplaces.** An ERC-1155 edition
1836
+ emits no ERC-4906 at all — that is precisely why `ping-uri` exists — so the one sentence a creator
1837
+ reads after editing metadata said "already handled" when nothing had been, and `ping-uri --help`
1838
+ said the opposite. Two commands contradicting each other on the new lane. `refresh` is now
1839
+ kind-aware and names `ping-uri` for editions.
1840
+ - **`abx verify` ended in two ⚠ on a perfectly healthy fully-on-chain image drop** — "generator
1841
+ reports NO code" and "no animation_url" — because the code-project lane runs whenever a tokenURI
1842
+ renderer is set, which is true for every on-chain project, image or code. A static image has no
1843
+ program and no `animation_url` by design. Three separate agents named this as the worst thing about
1844
+ `verify`, and one said plainly it would make a creator distrust future real warnings. The code-lane
1845
+ checks are now scoped to the code twins; a static drop gets one informational line instead. (This
1846
+ was pre-existing on the 721 path too, not an editions regression.)
1847
+ - **`EditionImage`'s SVG-only refusal was a thinner copy of its 721 twin's** — the Series version names
1848
+ three routes (`--onchain-image`, `--backend ipfs|arweave`, or host off-chain); the edition version
1849
+ said only "drop `--onchain-uri`". A cold agent asked for "3 artworks × 25 copies each" read that,
1850
+ concluded there was no no-server option for one contract, and **fanned the collection out into three
1851
+ separate single-artwork contracts**. The refusal now states the real options for the lane and says
1852
+ explicitly that the off-chain-image-URL-in-on-chain-JSON route exists only per-artwork via
1853
+ `abx deploy --copies` — one contract per artwork, not one collection. The underlying capability gap
1854
+ is recorded in B28.
1855
+
1856
+ One knock-on from the first fix: the `false` branch of the canonical readout said _"not a clone of the
1857
+ **configured** factory"_ (singular), which now understates the check and misdirects the reader — six
1858
+ anchors are probed, so a `false` means no trust anchor the CLI knows deployed this contract, and the
1859
+ usual real cause is a **superseded** factory or a hand-deployed contract, not a misconfiguration. It
1860
+ now says so, and points at `abx doctor` for the current anchors.
1861
+
1862
+ Also: `deploy --help` no longer calls the edition sale stack (`--minter`/`--primary-payee`/
1863
+ `--unpaused`) "required" — it is optional, and an agent handed a creator hardcoded addresses as
1864
+ mandatory because of it; `set-field --help` now lists all eleven `--representation` values (it showed
1865
+ seven, omitting `url-template`, `renderer`, `sha256`, `inline-gzip`); and `abx doctor`'s label column
1866
+ widened so `edition factory` no longer runs into its address.
1867
+
1868
+ The skill-drift ✗ now names **which** copy is stale and prescribes the command that actually clears
1869
+ it — `abx skill install` writes the project-local copy only, so a stale **global** copy produced a ✗
1870
+ whose own remedy could not fix it. Six agents hit it in one sweep; several re-ran the install
1871
+ repeatedly and one left its sandbox to read `~/.claude/skills` to work out what the tool meant.
1872
+
1873
+ - 528c6c6: Wave-6 validation sweep: stop three help strings from denying features that work, make `storage show`
1874
+ honor the flags it advertises, and name the byte custody on both Series lanes.
1875
+
1876
+ Nine cold agents re-drove the edition surface after the B28/B30/B31 work. **Every new lane is reachable
1877
+ and no re-run regressed** — the situation that previously fanned "3 artworks × 25 copies" out into three
1878
+ separate contracts now reports _"Contracts deployed: 1, not 3"_; `--onchain-image` + edition + browser
1879
+ wallet went 4/5 at Haiku after being refused outright; the on-chain-dep edition lane went 3/5 → 4/5; the
1880
+ wrong-chain diagnosis went 2/5 → 3/5 on the strength of the new monotonic-cap guard. **B30 produced zero
1881
+ false warnings across all nine**, including a run that control-tested the mechanism with a deliberate
1882
+ bogus flag, and a funded run that exercised ~10 commands with real writes.
1883
+
1884
+ What the sweep found was mostly **documentation still describing behavior the same branch had replaced** —
1885
+ the failure mode a test suite cannot catch, because tests assert what the code does and none of them read
1886
+ the prose that tells an agent what to try:
1887
+
1888
+ - **`deploy --help`** said `--onchain-image` is "hot lane only on an edition (not yet wired for `--sign`)".
1889
+ It works on the wallet lane. Now states the real rule: hot and `--sign` both work; `--unsigned` is
1890
+ refused everywhere, 721 and edition alike, because each chunk tx's receipt feeds the next.
1891
+ - **`deploy-code --help`** listed `--dep`/`--dep-registry` among flags "refused in code" for `--copies`.
1892
+ They work. An agent verified all four flags directly and called this out as _"the dangerous direction:
1893
+ it would talk a creator out of a feature that actually works."_ Now says they work, and names the
1894
+ Sepolia-only registry constraint.
1895
+ - **The `EditionImage` SVG-only refusal** — a message rewritten earlier in the same branch — still said
1896
+ `--onchain-image` "is not wired on the edition-series lane yet", after that branch wired it. It now
1897
+ lists all four real routes for raster art in one contract.
1898
+ - **`abx refresh`'s ERC-4906 claim had no edition caveat** in the skill or `site/using-abx/guides/operate`,
1899
+ even though the CLI itself was made kind-aware earlier in the branch. The skill's _"`abx refresh` is the
1900
+ only nudge"_ was flatly false for an edition, where `ping-uri` is required.
1901
+
1902
+ Two real product fixes, both surfaced by the new warning doing its job:
1903
+
1904
+ - **`abx storage show` now honors `--backend`/`--gateway`/the rest of the storage override set.** It read
1905
+ env-only while its own output said _"choose per command: `--backend` … `--gateway`"_ — advertising flags
1906
+ it then discarded and always reporting `backend: fs`. This was invisible until every command grew an
1907
+ unknown-flag notice, which correctly flagged it (the flags really were ignored). A resolution preview
1908
+ that can't preview a resolution is the one thing it exists to do. Provenance now reports `--backend` as
1909
+ a source, alongside env and default.
1910
+ - **Both `deploy-series` lanes now name the byte custody** (`storage: ipfs (--backend) — byte custody for
1911
+ the image(s)`), as the 1/1 lane always has. A creator asking for "images on IPFS" had no way to confirm
1912
+ from the preview that their collection would pin there; the flag was accepted in silence.
1913
+
1914
+ Also documented, not changed: the ids × copies arithmetic. `deploy-code --copies 100` takes its id space
1915
+ from `--max`, which **defaults to 16** — so "an edition of 100" without `--max 1` means up to 16 different
1916
+ variations × 100 copies each. The dry-run states the real shape (`up to N id(s), M copies each`) and always
1917
+ did; nothing taught the translation, so the skill now does, for all three commands.
1918
+
1919
+ Three legibility nits were routed to B32 rather than fixed: `abx state` naming a contract "Series" where a
1920
+ refusal calls it "SeriesCode"; the Base-Sepolia default appearing only in a subordinate clause of the
1921
+ "no contract" error (three straight waves have lost time to it); and `--onchain-image` on a folder of large
1922
+ rasters honestly reporting 35 wallet approvals with no nudge toward the cheaper lane.
1923
+
1924
+ Two agent claims were checked and **rejected** so they don't get "fixed" into regressions: the skill does
1925
+ _not_ say `--onchain-image` is refused on an edition series (it documents the `--unsigned`-only refusal
1926
+ correctly), and `abx predict` does _not_ silently pick the 721 factory without `--copies` — it labels the
1927
+ lane, yields a different address, and echoes `--copies` in its reproduce line.
1928
+
1929
+ - Updated dependencies [528c6c6]
1930
+ - @artblocks/abx-sdk@0.1.0-alpha.13
1931
+ - @artblocks/abx-indexer@0.1.0-alpha.14
1932
+ - @artblocks/abx-storage@0.1.0-alpha.13
1933
+ - @artblocks/abx-token-api@0.1.0-alpha.16
1934
+
1935
+ ## 0.1.0-alpha.20
1936
+
1937
+ ### Minor Changes
1938
+
1939
+ - afa9dd4: ERC-1155 editions ship with full parity: a Series is many unique tokens (721); an **Edition** is
1940
+ many copies of a token (1155). The creator's word is **copies** — `abx deploy img.png --copies 100`
1941
+ (a single-artwork edition, `open` = uncapped), `abx deploy-series ./art --copies 50` (each image an
1942
+ edition), `abx deploy-code sketch.js --copies 25` (code editions). Without `--copies`, the 721
1943
+ lanes are unchanged.
1944
+
1945
+ Three new canonical contracts twin the 721 lineup — `OneOfOneEdition`, `EditionImage`,
1946
+ `EditionCode` — plus `AbxFixedPriceMinter1155`, a per-id fixed-price sale singleton
1947
+ (`minter configure/buy --token-id [--quantity]`). New owner ops: `mint --token-id --amount`,
1948
+ `transfer --amount`, `set-max-supply` (per-id cap, only ever decreases), `ping-uri` (re-emit the
1949
+ native `URI` event after a re-point). ERC-1155C creator-token enforcement is the same `--721c`
1950
+ opt-in (same validator registry and ERC-165 ids as 721C). Editions announce one new extension
1951
+ (`abx.extension.edition-supply`, per-id supply/cap); everything else — metadata fields, params,
1952
+ royalties, renderer, storage, effects — is the same protocol surface on both standards.
1953
+
1954
+ **Integrator surface (audience line):** additive only. `ProjectState.contractType` gains
1955
+ `'1of1-edition' | 'edition' | 'edition-code'`; `TokenState` gains `supply`/`maxSupply`/`holders`
1956
+ (editions only; `minted` means supply > 0 there); the spine ABI now decodes
1957
+ `TransferSingle`/`TransferBatch`/`URI`/`MaxSupplyUpdated`; `ChainDeployment` gains the four
1958
+ edition anchors (recorded for Sepolia + Base Sepolia, CREATE2-identical); token-api summaries gain
1959
+ an optional `copies` field. No existing export, route, column, or event shape changed.
1960
+
1961
+ ### Patch Changes
1962
+
1963
+ - 8c254d5: The self-host projection no longer stores or pre-fetches composed URI documents, and the event log
1964
+ is append-only (from the abx-services 2026-08-05 projection memo, `docs/11`).
1965
+
1966
+ - **`contractURI`/`tokenURI` are live reads, never projected.** `reconstructProject`/
1967
+ `reconstructIncremental` gain `readUriDocuments` (default **false**) — with it off, the whole
1968
+ `contractURI`/`tokenURI` head-read batch is skipped entirely, not fetched-and-discarded. These
1969
+ fields have no settled value (a renderer can change the composed document with no log at all) and,
1970
+ on the on-chain lane, can run hundreds of KB per token — a real 32-token project measured 13.4 MB
1971
+ serialized, 99.8% of it `tokenURI`. A stale-but-rendering `data:` URI is worse than a missing one,
1972
+ because nothing about it looks wrong. `abx demo` is the one caller that passes `readUriDocuments:
1973
+ true`, for its read-back teaching step; `abx deploy`/`deploy-series`/`deploy-code` don't, and
1974
+ `abx verify`/`tokenuri`/`contracturi` were already doing independent live reads. **For
1975
+ integrators:** `ProjectState.contractURI` / `TokenState.tokenURI` are now `null` unless you opt in
1976
+ — including in a self-host node's `/api/project/:addr` responses (shape unchanged, values now
1977
+ null). Nothing that composes served metadata reads either field (the settled `fields`/
1978
+ `collectionFields` do); the settled scalars — `tokenURIRenderer`/`tokenURILocked`/
1979
+ `contractURIRenderer`/`contractURILocked` — are unaffected and still projected.
1980
+ - **The events table is append-only.** `seq` is now chain-derived (`(blockNumber << 32) |
1981
+ logIndex`, BigInt-safe) instead of the array index at write time, so it's stable across re-folds —
1982
+ a re-index appends via `ON CONFLICT DO NOTHING` instead of deleting and reinserting the whole
1983
+ history on every delta. `putProject` upserts the project and token rows in place (a token whose id
1984
+ vanishes from state is still removed) rather than delete-and-reinsert. `deregister` still deletes
1985
+ a forgotten project's events in full; a routine re-fold does not. **A full replay (`abx index
1986
+ --full`) purges the project's event log before rebuilding it** — append-only must not let a
1987
+ reorg-replaced event survive as a stale row, so the documented repair path stays a real repair.
1988
+ Existing stores migrate their positional `seq` values to the chain-derived form once, automatically
1989
+ (`PRAGMA user_version`-gated, transactional).
1990
+ - **Self-healing eventCount guard.** An incremental fold that would reduce `eventCount` below what's
1991
+ already stored is discarded rather than written, with one automatic full-reconstruct fallback (the
1992
+ memo's own war story: a bad fold once silently zeroed a live projection with nothing to catch it).
1993
+ - **New self-host stores open with `auto_vacuum = INCREMENTAL`.** Existing stores are unaffected
1994
+ (the pragma only takes on a database with no tables yet) — recorded as backlog B29.
1995
+
1996
+ - Updated dependencies [afa9dd4]
1997
+ - Updated dependencies [8c254d5]
1998
+ - @artblocks/abx-sdk@0.1.0-alpha.12
1999
+ - @artblocks/abx-indexer@0.1.0-alpha.13
2000
+ - @artblocks/abx-token-api@0.1.0-alpha.15
2001
+ - @artblocks/abx-storage@0.1.0-alpha.12
2002
+
2003
+ ## 0.1.0-alpha.19
2004
+
2005
+ ### Minor Changes
2006
+
2007
+ - d40caf4: `abx remote <name|url> --conformance` — self-certify a resolver from the published CLI
2008
+
2009
+ The self-verify fixture that used to live only as a repo-local script
2010
+ (`scripts/conformance-remote-service.mjs`, `pnpm conformance`) is now a mode on the existing `remote`
2011
+ command rather than a new one (command-count discipline): `abx remote <name|url> --conformance
2012
+ [--remote-token <t>] [--chain-id <n>] [--address <a>] [--from-block <n>]`.
2013
+
2014
+ This is what lets a third party self-certify a hosted resolver — or CI-gate on one — with nothing but
2015
+ `npm i -g @artblocks/abx-cli` and a base URL: no repo checkout, and a bare URL + `--remote-token`
2016
+ needs no `.env` setup. It reuses the same `--remote` name/URL/token resolution as every other remote
2017
+ command, prints one ✓/✗/· line per assertion (descriptor shape, unauthenticated writes refused, the
2018
+ read-plane's error taxonomy, every declared interface's routes, and — with `--chain-id` + `--address`
2019
+ naming a contract you own — the full register → poll-to-live → status → reindex → deregister loop),
2020
+ and sets a non-zero exit code on any failure.
2021
+
2022
+ The assertions themselves moved to `packages/cli/src/conformance.ts`, importable by both the CLI
2023
+ command and the (now much thinner) root script, so `pnpm conformance` and
2024
+ `scripts/e2e-remote-resolver.sh` keep working unchanged against the same logic.
2025
+
2026
+ ### Patch Changes
2027
+
2028
+ - d40caf4: Two first-party consumers adopt the backoff/gateway/data-URI helpers hoisted into `@artblocks/abx-sdk`
2029
+ last round, and `mint-page` refuses a 1/1 target instead of scaffolding a page that hangs. Drop-in for
2030
+ everyone — no behavior change in the adoption itself, and the mint-page refusal only fires for a
2031
+ contract type the page never worked against.
2032
+
2033
+ **`token-api`'s chain watcher now calls `exponentialBackoffDelay`/`linearBackoffDelay` instead of
2034
+ re-deriving them inline.** `dueForRetry`'s failed-project retry and the tick loop's repeated-failure
2035
+ delay were the sdk helpers reimplemented by hand; both now call the shared functions, with the exact
2036
+ index mapping (`min(attempts, 8) + 1` into the 1-indexed exponential helper) that reproduces identical
2037
+ delays for every `attempts`/`failures` value — proved by an old-formula-vs-sdk-helper equality table
2038
+ in `packages/token-api/test/watcher-backoff.test.ts` (attempts/failures 0..12, several `baseMs`
2039
+ values, and the cap boundary explicitly).
2040
+
2041
+ **The `mint-page` template's generated app now reads gateway URLs and `data:` URIs through the sdk**
2042
+ (`gatewayUrlFor`/`resolveGatewayBase`/`parseDataUri`) instead of a hand-rolled `ipfs://`-slicing
2043
+ `toGateway` and a hand-parsed comma-split in `fetchJson`. Same output for every input (plain
2044
+ `https://`, empty string, `ipfs://`, `ar://`, base64 and percent-encoded `data:` bodies) — verified
2045
+ byte-for-byte before the swap, and pinned by a new mintpage.test.ts assertion that the emitted
2046
+ `lib/meta.ts` imports the sdk helpers and no longer contains the old hand-rolled body.
2047
+
2048
+ **`mint-page` now refuses a non-Series target.** The generated page reads `maxInvocations`/`paused`
2049
+ and mints through the shared fixed-price minter — a 1/1 (`OneOfOneImage`) has none of that, so pointing
2050
+ `mint-page` at one silently wrote a page that sat on "Loading…" forever with no diagnostic. `cmdMintPage`
2051
+ now probes the same ERC-165 `supportsInterface(IAbxSequentialMint)` `sdk/anchors.ts`'s
2052
+ `isCurrentSeriesFactory` uses, and refuses with a `CliError` pointing at `abx deploy-series --dir
2053
+ <folder> --count 1` (matching the existing guidance in `sales.mdx`). A probe that can't run at all (RPC
2054
+ unreachable) is left undecided and does NOT refuse — scaffolding stays usable offline, same tolerance
2055
+ the existing best-effort `name()` read already has.
2056
+
2057
+ Also folded in: `PUBLIC_RPC` (the mint-page template's keyless-RPC table) gains `base` and
2058
+ `base-sepolia` — the toolkit's own default chain was missing from it, so every default-chain deploy
2059
+ needed a manual `--rpc` just to scaffold its own mint page.
2060
+
2061
+ - Updated dependencies [d40caf4]
2062
+ - Updated dependencies [d40caf4]
2063
+ - Updated dependencies [d40caf4]
2064
+ - @artblocks/abx-sdk@0.1.0-alpha.11
2065
+ - @artblocks/abx-token-api@0.1.0-alpha.14
2066
+ - @artblocks/abx-storage@0.1.0-alpha.11
2067
+ - @artblocks/abx-indexer@0.1.0-alpha.12
2068
+
2069
+ ## 0.1.0-alpha.18
2070
+
2071
+ ### Minor Changes
2072
+
2073
+ - 11fa933: Phase 5 interface unifications: the self resolver becomes a named remote, doctor absorbs the
2074
+ version/install/provenance ladder, deploy previews stop showing addresses they can't keep,
2075
+ approvals are counted honestly, render×storage combos are validated once, and storage config gets
2076
+ a real probe.
2077
+
2078
+ - **Self resolver is a named remote (breaking, client-side only)**: the CLIENT credential for the
2079
+ local/self resolver moves from `ABX_RESOLVER_ADMIN_TOKEN` to the named-remote grammar
2080
+ (`ABX_REMOTE_SELF_URL` / `ABX_REMOTE_SELF_TOKEN` — "self" is just a conventional remote name, zero
2081
+ special-casing). The SERVER side (token-api control-plane auth, `provision.ts`, the Fly.io secret)
2082
+ keeps its old name — it's the service's own config, not a client credential, so deployed resolvers
2083
+ need no change. The old client var, if still set, is now a pointed `CliError` naming both new vars
2084
+ (no silent fallback); `abx doctor` flags it too, and the near-miss `_KEY`-vs-`_TOKEN` detector keeps
2085
+ working under the unified grammar.
2086
+ - **`abx doctor` absorbs the version/install/provenance ladder** the skill used to only teach in
2087
+ prose: one new ✓/✗ block for binary provenance (source checkout / npm install / npx — the silent-
2088
+ stale-npx-cache trap), npm currency (reuses the existing cached update check), and skill↔CLI
2089
+ version match (reuses `abx skill`'s own discovery). Each row names the exact fix.
2090
+ - **Deploy previews stop showing addresses they can't keep**: `--dry-run` (`deploy` /
2091
+ `deploy-series` / `deploy-code`) **without `--salt`** no longer prints a "deterministic address" —
2092
+ that salt was just freshly, randomly reserved, so the address was real for that one preview and
2093
+ never reproducible by a plain re-run. It now prints the salt itself, prominently, plus how to pin
2094
+ it: re-run with `--salt <shown>` (guaranteed same address), or `abx predict --salt <shown> --for
2095
+ <signer>`. **With `--salt`, the address prints exactly as before** (it IS stable) — `abx predict`
2096
+ is unchanged. The same rule applies to `--json`: without `--salt`, `address` reports `null` rather
2097
+ than a value the real deploy won't land at (`saltPinned` still says why).
2098
+ - **`approvals` — a labeled, honest signature count**: every deploy-family `--dry-run` preview and
2099
+ `--confirm` summary now carries one uniform `approvals N wallet approval(s)` line/clause — the
2100
+ number of **wallet TX signatures** the real run will ask for (a connected-wallet storage upload,
2101
+ e.g. Arweave via `--storage-signer eth`, is a message signature, not a transaction, and stays
2102
+ listed separately, as it already was). It's derived from the exact same staging/setup-multicall
2103
+ math that sizes the wallet-lane session's own `total`, so the two can never disagree — this caught
2104
+ (and fixed) `deploy-code`'s wallet-lane session `total` being hardcoded to `2` even on the 1-tx path
2105
+ (no chunks/schema/deps/on-chain-uri legs/setup-carried mints), which would have shown "transaction
2106
+ 1 of 2" and then silently never asked for a second.
2107
+ - **One validator for render×storage combos**: `@artblocks/abx-storage` gains
2108
+ `validateRenderStorageCombo()` (`content-plan.ts`) — the single source of truth for two known-bad
2109
+ configurations, each checked against the ACTUAL fact that makes it bad (not against an unrelated
2110
+ flag): (1) `--image-base` needs a backend that can overwrite a stable per-token key in place; an
2111
+ ipfs/arweave-_shaped URL_ is refused regardless of this deploy's own `--backend`, because those are
2112
+ content-addressed — a re-upload gets a new address, so no fixed URL can point at it. (2) publishing
2113
+ a render to a resolver that doesn't share this machine's disk needs a backend that can hand back a
2114
+ public URL at all — `fs` (or `cloud` with no public base) can't. `deploy-code` wires this into BOTH
2115
+ its real-run refusal (`--image-base`) and a new `render/storage ✓|✗ <reason>` dry-run row;
2116
+ `requirePublishableBackend` (the existing `abx render --remote` / `abx effects` guard) now consults
2117
+ the same validator for its ok/not-ok decision, so the two surfaces can't drift apart.
2118
+ - **`abx storage show --check`**: a real read/write against the resolved storage config, not just
2119
+ "is it configured." `cloud` PUTs a tiny object through the signed API and GETs it back over the
2120
+ PUBLIC base with a plain unsigned fetch — the only check that catches the R2/S3
2121
+ endpoint-vs-public-base trap (`health()` alone only proves the API credentials work); on failure
2122
+ both URLs print, so the mismatch is visible. `ipfs`/`fs` reuse their existing `health()` verbatim
2123
+ (gateway/API reachability, dir writability — no upload, no pin — reused, not reimplemented).
2124
+ `arweave` adds an identity+balance READ, never a paid upload. Exit code is meaningful (0 ok / 1 any
2125
+ ✗) so a script can gate a launch on it. `abx doctor`'s storage row now runs the same fuller probe
2126
+ (bounded to 1.5s, matching its other fast network checks) instead of a bare `health()` call.
2127
+
2128
+ ### Patch Changes
2129
+
2130
+ - 11fa933: The remaining phases of the simplification refactor that hadn't yet gotten a changeset: the CLI's
2131
+ internal module split, the token-api/effects/mint-page convergence on the SDK, the shipped skill's
2132
+ rewrite for the simplified surface, and a new SDK README.
2133
+
2134
+ - **`abx`'s `main.ts` split into domain command modules** (`commands/{deploy,project,reads,service,
2135
+ scaffold,storage}.ts`, shared `output.ts`/`errors.ts`), with one exit-discipline rule
2136
+ (`process.exitCode` + return, or a typed `CliError`, everywhere — bare `process.exit` only at the
2137
+ entry guard, the top-level catch, and the keep-alive SIGINT handler). Purely internal: a 207-fixture
2138
+ byte-diff matrix (every help text, dry-run, error path, and exit code) confirmed identical output
2139
+ before and after.
2140
+ - **token-api / effects / mint-page converge on the SDK**: `@artblocks/abx-storage` gains one
2141
+ `resolveGatewayBase` (`readiness.ts`), replacing three near-identical copies (two in token-api, one
2142
+ inline in storage itself); token-api exports `buildGeneratorDocument` so the CLI's `abx preview`
2143
+ consumes the real generator-document assembler instead of a hand-kept duplicate; the effects runner
2144
+ now resolves its config via the SDK's `readEnv` and gets a `makePublicClient` fallback transport, so
2145
+ `ABX_RPC_URL` accepts a comma-separated failover list like every other RPC var; the scaffolded
2146
+ mint-page app now imports ABIs from `@artblocks/abx-sdk/abi` and a browser-safe `makePublicClient` +
2147
+ typed `readSaleConfig` instead of hand-rolled fetch/decode, and pins its generated `package.json` to
2148
+ the SDK's _resolved_ version via a new `@artblocks/abx-sdk/package.json` export (alpha version
2149
+ counters diverge per package under changesets, so pinning the CLI's own number could produce an
2150
+ unsatisfiable range).
2151
+ - **The shipped skill (`.claude/skills/abx-self-host/`) is rewritten for the surface phases 0–5
2152
+ actually shipped**: every warning made obsolete by an enforcement is deleted rather than softened —
2153
+ predict-only deploy-preview addresses, the `approvals N` line, the single `ABX_REMOTE_SELF_*`
2154
+ credential grammar, `doctor`'s version/provenance ladder, `storage show --check`, the render/storage
2155
+ combo validator's dry-run row, and `ABX_DEPLOYER_PK` as the only key name. Retired names swept from
2156
+ `dev-loop-test`, the agent-eval scenarios, and spec prose. The skill ships bundled inside this CLI
2157
+ package (co-versioned via `SKILL.md` frontmatter), so it rides this same patch.
2158
+ - **New `packages/sdk/README.md`**: what the SDK is, the send-injection model (`PreparedTx` +
2159
+ `SendTx`, `makeHotSender` for a hot key, bring-your-own for a wallet/multisig), a complete
2160
+ deploy → upload → mint → read walkthrough against real exports, and browser-use notes (explicit
2161
+ `rpcUrls`, no env, the `/node` subpath is Node-only). Included in the npm tarball automatically
2162
+ (README is one of the files npm always packs, regardless of the `files` allowlist).
2163
+
2164
+ - 11fa933: Two ripouts, no functional loss: the retired `params.keys` read fallback in `abx state`, and the `abx changelog` command.
2165
+
2166
+ **`abx state`'s legacy `params.keys` fallback.** On-chain param enumeration (`contractParamKeys` /
2167
+ `tokenParamKeys` / `paramSchemaKeys`) shipped a while back and every project deployed since enumerates
2168
+ its own param surface — nothing writes the old `params.keys` CSV any more. The only thing still reading
2169
+ it was `abx state`, so it could keep describing the handful of pre-enumeration testnet projects that
2170
+ predate the switch. That reader (`readLegacyParamsKeys`) and its `legacy`-branching in `cmdStateBody`
2171
+ are gone; `abx state` now shows exactly what it reads from on-chain enumeration, an empty PostParams
2172
+ list for a pre-enumeration contract included. (The repoint guard that refuses to point a legacy token's
2173
+ field renderer at the canonical generator is a separate, still-live safeguard — untouched.)
2174
+
2175
+ **`abx changelog`.** A `CHANGELOG.md`-reading command that duplicated what any agent or human can do by
2176
+ reading the file that already ships with the package (`package.json` `files`) — one more command to
2177
+ document and maintain for a read `cat` already covers. `CHANGELOG.md` keeps shipping; the update-nag
2178
+ banner and the docs now point at the file and at npm's version list
2179
+ (`https://www.npmjs.com/package/@artblocks/abx-cli?activeTab=versions`) instead of a command.
2180
+
2181
+ - 11fa933: The extraction phase of the simplification refactor: business logic that lived only inside the CLI
2182
+ is now importable — the CLI calls the same functions you can.
2183
+
2184
+ **Into the SDK:** the five trust-anchor bootstraps (`ensureFactory`, `ensureSeriesFactory`,
2185
+ `ensureSeriesCodeFactory`, `ensureRenderer`, `ensureSeedSource` — `anchors.ts`, on the same
2186
+ injected-`send` + `onEvent` pattern as `ensureChunkStore`, with a typed `AnchorUnavailableError`),
2187
+ `detectCanonicalFactory`/`resolveScanFloor`, the on-chain-URI setup composer (`onchain-uri.ts`),
2188
+ interrupted-deploy resume planning (`resume.ts`), migration plan/parity reconciliation
2189
+ (`migrate.ts`), the `abx.js` static analyzer (`inspect.ts`), dependency setup legs (`deps.ts`),
2190
+ content-staging plans (`staging.ts` — `planStagedContent`, `stageFieldContent` with `StagingEvent`),
2191
+ `mintedTokenIds`, and a typed `readSaleConfig` for the fixed-price minter.
2192
+
2193
+ **Into storage:** `uploadAndLocate`, `repinNodeCustody` (the byte-custody half of migration),
2194
+ `decideImageContentLane`, `assessStorageReadiness`/`assessTurboFunds` (the Arweave/Turbo funding
2195
+ math), and `awaitLocatorReady` (poll a locator until it serves).
2196
+
2197
+ **CLI hardening that fell out of the dedup:** one risk gate (`gatedSend`) now guards every write —
2198
+ `--dry-run` and `--confirm` mean the same thing on every command, all owner-ops gain `--confirm`,
2199
+ and a write reaching the send lane under `--dry-run` is structurally impossible (grep-enforced by
2200
+ test). One `CHAIN` source of truth; one memoized local-indexer accessor.
2201
+
2202
+ - 11fa933: Phase 1 of the simplification refactor: one transaction shape with one send-injection point, and an SDK that never touches `.env` or a Node-only global on its own. Two related passes, same release.
2203
+
2204
+ **One transaction shape, one executor.** `StagingTx`/`SendStagingTx` are gone — everything is a `PreparedTx` sent through a single `SendTx`. New `execute.ts` carries `makeHotSender` (pins the nonce once, detects an under-estimated gas limit against a just-deployed target, throws a typed `TxRevertedError` instead of reporting a reverted tx as confirmed) plus `pinGas`/`waitForCodeAt`, moved from the CLI (`gas.ts` is gone) with their design comments intact. Every `deployX` is now `prepareDeployX` (pure) + `deployX(send, ...)`; the CLI's hot lane and `abx deploy-code --resume` both delegate to the same sender instead of hand-rolling their own nonce/gas loop — the class of bug that reported a burned, reverted transaction as a successful deploy can't recur in a second call site because there is no longer a second implementation.
2205
+
2206
+ **The SDK never loads `.env` implicitly.** `loadDotEnv`/`parseEnvContent` moved to a new `@artblocks/abx-sdk/node` subpath — the only module that touches `node:fs`/`node:path`. The package's main entry is now browser-bundle-safe (a permanent esbuild smoke test guards it); a host calls `loadDotEnv()` once at startup (the CLI's `main()`, the effects runner's `main()`) and the SDK core reads whatever's already in `process.env` through a tiny `readEnv` that no-ops outside Node. `ClientOptions` gained `rpcUrls?: string[]` and `makeWalletClient`/`envSigningKey` gained a `privateKey`/`override` escape — explicit config now wins outright over env resolution, following the same override → env → manifest precedence `deployments.ts` already used for contract addresses.
2207
+
2208
+ **Single signing-key name.** `ABX_DEPLOYER_PK` is the only env var the SDK reads for a hot key — `SEPOLIA_FUNDED_PK` and `SEPOLIA_WALLET_PK` (earlier-alpha names) are no longer consulted. A caller with one of the old names set now gets a `MissingSigningKeyError` that names the new one explicitly and says the old ones are retired, rather than a plain "no key found" that leaves an upgrader hunting for why a key that's clearly _there_ isn't being read. Sandbox/e2e scripts and test fixtures move to the new name too.
2209
+
2210
+ **Shared, environment-neutral utilities.** New `sdk/src/util.ts`: `sleep`, a `linearBackoffDelay` helper (service.ts's retry ladder and the effects runner's resolver poll both use it now instead of hand-rolled backoff math), `parseDataUri` (replaces three near-identical `data:` URI regexes across the CLI and the tokenURI probe with one permissive parser), and `tryReadContract` (replaces three near-identical try/read-return-undefined helpers; the CLI's "no contract at this address" diagnostic still wraps it where that mattered). `Buffer` is gone from the SDK core (chunk hex-encoding and param base64-encoding now use viem's `bytesToHex` and a ~12-line dependency-free base64 codec) — nothing in the SDK's main import graph is Node-only any more.
2211
+
2212
+ - Updated dependencies [11fa933]
2213
+ - Updated dependencies [11fa933]
2214
+ - Updated dependencies [11fa933]
2215
+ - Updated dependencies [11fa933]
2216
+ - @artblocks/abx-sdk@0.1.0-alpha.10
2217
+ - @artblocks/abx-storage@0.1.0-alpha.10
2218
+ - @artblocks/abx-token-api@0.1.0-alpha.13
2219
+ - @artblocks/abx-indexer@0.1.0-alpha.11
2220
+
2221
+ ## 0.1.0-alpha.17
2222
+
2223
+ ### Patch Changes
2224
+
2225
+ - df298d8: `abx attach` takes several `<key> <uri>` pairs and sends ONE transaction
2226
+
2227
+ The safety half of backlog B20. The CLI's most-documented flow — mint, then attach each artifact, then
2228
+ refresh — sent one transaction per step with **no all-or-nothing boundary**, so a failure partway
2229
+ through left a permanently half-written token, and a mint cannot be undone. An integrator hit exactly
2230
+ that and folded 8 operations into 1 transaction (846,556 gas) using the SDK's `batchOps` — a primitive
2231
+ the CLI already shipped and did not call. Now it calls it.
2232
+
2233
+ ```bash
2234
+ abx attach 0x… stems ipfs://…/stems.wav score ipfs://…/score.pdf readme ar://…
2235
+ # → 3 artifacts, one multicall: a revert lands NONE of them
2236
+ ```
2237
+
2238
+ Three things make the batch safe rather than merely shorter:
2239
+
2240
+ - **Every pair is validated before anything is sent.** A bad locator in pair 5 stops pair 1 — otherwise
2241
+ batching would defeat its own purpose.
2242
+ - **A key repeated inside one batch is refused.** A field holds one active value, so the later write
2243
+ would silently win — the same full-column-upsert hazard that was a real bug in the resolver's
2244
+ `register` and a real trap in `lock-field`.
2245
+ - **A single pair is unchanged.** `batchOps` passes a lone op through untouched, so the one-artifact
2246
+ case sends the identical plain field transaction it always did — no multicall wrapper, no new gas.
2247
+
2248
+ An odd number of positionals is refused and names the dangling argument, rather than silently ignoring
2249
+ it.
2250
+
2251
+ Still open in B20, and recorded there rather than quietly skipped: batching **`set-field` across several
2252
+ fields** needs a flag-grammar decision first (`attach` batched cleanly because its arguments are
2253
+ positional pairs; `set-field` takes one `--field` with a correlated `--text`/`--value`, and the parser
2254
+ has no notion of correlated repeats). Same for an all-or-nothing "mint and configure" — mint and
2255
+ configure are separate commands, so that needs a verb that owns both.
2256
+
2257
+ - df298d8: `abx deploy-code --resume <address>` — finish a deploy whose setup transaction failed
2258
+
2259
+ Closes backlog B15. A code project deploys in **two** transactions: create the clone, then one atomic
2260
+ `multicall` carrying the script chunks, the PostParam schemas, the dependency declarations, the
2261
+ on-chain-URI legs, and any reserve mints. There is no rollback. When the second one fails you own a
2262
+ live-but-unusable contract — and the CREATE2 salt reserved for its address is **spent**, so the dry
2263
+ run's pinned-salt reproduce command can never be run again. One reporter session produced three
2264
+ orphaned contracts from three attempts; another produced five.
2265
+
2266
+ The useful half of that report is that those contracts were **recoverable, not lost**: resending the
2267
+ setup with an adequate gas limit completed one, after which `abx verify` reported chain-complete and the
2268
+ token returned its on-chain `animation_url`. The tester did it by hand with `cast`. We deliberately
2269
+ never documented that as a recipe — telling a creator to hand-assemble a multicall is worse than telling
2270
+ them nothing — so this is the verb.
2271
+
2272
+ ```bash
2273
+ abx deploy-code --resume 0x… <the same content flags the original deploy used> --dry-run
2274
+ ```
2275
+
2276
+ It deploys nothing. It reads what the contract already holds and sends only the missing legs, in one
2277
+ transaction — safe to run twice, and if nothing is missing it sends nothing and says so. Three judgments
2278
+ carry it:
2279
+
2280
+ - **Chunks compare by content, not by count.** A count check would call a chunk "present" when a hand
2281
+ repair wrote different bytes at that index — and a hand repair with `cast` is exactly what happened.
2282
+ - **A schema that already exists is left alone.** Re-writing one is an upsert that can strand values
2283
+ already stored under it; that hazard belongs to `set-schema` and its guard, never to a repair.
2284
+ - **Mints are a shortfall against current supply, never a re-send.** `mint` is the one non-idempotent
2285
+ leg, and a token cannot be un-minted.
2286
+
2287
+ `--salt`, `--721c`, `--bootstrap-factory` and `--mint-all` are refused rather than ignored: they all
2288
+ describe how a contract is _created_, and this creates nothing. ERC-721C especially — enrollment is
2289
+ deploy-time-only and permanent, so silently accepting the flag would imply it can be added later.
2290
+
2291
+ It shares the deploy's own setup-leg builder, so a resume can never drift from what a fresh deploy would
2292
+ have written — a second implementation of that sequence is the failure mode a repair verb most easily
2293
+ introduces. Signing goes through the same choke point as every other write, so `--sign` / `--unsigned` /
2294
+ the owner check / the chain-id guard all apply, and `--dry-run` previews the repair (one bug found and
2295
+ fixed while building this: the deploy's dry-run block returned first, so `--resume … --dry-run` printed a
2296
+ fresh-deploy plan with a newly-reserved salt and a different predicted address).
2297
+
2298
+ 15 tests, including every diff branch and the four refusals.
2299
+
2300
+ - df298d8: `--json` on every value-emitting command: `mint`, `deploy`, `deploy-series`, `deploy-code`, `state`, `verify`
2301
+
2302
+ Closes backlog B19. The rule it enforces, from an integrator who drove the CLI from a server: **a value
2303
+ a program needs must be obtainable without parsing prose.** They had to regex-scrape ANSI-coloured
2304
+ stdout for every value — and an escape code was captured into a locator, written into a _stored_ player
2305
+ URL, and 404'd in production. The cause was found only by inspecting stored bytes.
2306
+
2307
+ Under `--json`, **stdout carries exactly one JSON document and nothing else.** Every narration line the
2308
+ command would print for a human moves to **stderr** — diverted, not suppressed, because a human
2309
+ watching a deploy still wants to see it while a program redirecting stdout still gets a clean parse.
2310
+ (The update check already wrote to stderr for exactly this reason; this carries the instinct through to
2311
+ the values themselves.)
2312
+
2313
+ - **`mint --json`** → `{tokenIds, txHash, blockNumber, sent, …}`. The token ids come from the mint's own
2314
+ `Transfer(from=0x0)` logs, not from re-reading `nextTokenId` afterwards — a concurrent mint would make
2315
+ that answer wrong, and a number that is usually right is worse than no number. A `--count N` batch
2316
+ reports all N.
2317
+ - **`deploy` / `deploy-series` / `deploy-code --json`** → the address, emitted _the moment it is known_
2318
+ rather than at the end, so a failure in the indexing steps that follow still leaves the caller with
2319
+ the address of a contract that really exists. That matters most for `deploy-code`, which is two
2320
+ transactions: if the setup tx fails, the address of the live-but-incomplete contract is exactly what a
2321
+ recovery needs (backlog B15). With `--dry-run` it reports the **predicted** address plus
2322
+ `saltPinned` — false meaning a plain re-run reserves a fresh salt and lands elsewhere, so a caller
2323
+ must not treat it as reserved.
2324
+ - **`state --json`** → the on-chain snapshot as data, with canonical **names** for param types and auth
2325
+ legs rather than raw Solidity enum indices (a caller must not have to know the enum ordering), and
2326
+ `undefined` (getter absent) kept distinct from a zero address (present, deliberately unset).
2327
+ - **`verify --json`** → the findings, with `ok` matching the exit code. This is the one command a CI job
2328
+ would gate on, since it already exits non-zero on a byte mismatch. The tri-states stay tri-states:
2329
+ `canonical` and each check's `verified` are `true | false | null`, because collapsing "couldn't check"
2330
+ into "failed" would report a normal state as a failure.
2331
+
2332
+ The mechanism is a single shared helper (`withJson`) rather than a `quiet` flag threaded through every
2333
+ command body — deliberately, since the alternative is touching dozens of call sites where the one that
2334
+ gets missed is a stray line that corrupts a parse, i.e. the exact failure being fixed. A command that
2335
+ emits no payload leaves stdout **empty** and exits non-zero rather than printing a `{}` a caller would
2336
+ trust. 8 tests cover the channel contract itself, including that the swap is restored when a body
2337
+ throws.
2338
+
2339
+ - df298d8: `abx storage status <locator>` — is it retrievable yet, or only accepted?
2340
+
2341
+ Backlog B21, and the second half of a gap two independent integrations hit eight days apart. An upload
2342
+ service answers "accepted" the moment it holds your bytes; a gateway serves them only once they
2343
+ propagate, and on Arweave that runs to minutes. Nothing in the upload result distinguished the two, so
2344
+ the natural implementation — upload during a mint, write the locator into the token — mints a token
2345
+ that renders broken for the first minutes of its life.
2346
+
2347
+ The first reporter rebuilt this layer themselves (ranged GETs, a propagating/ready model, retry ladders
2348
+ lengthened after measuring real times) and concluded "every serious integrator will rebuild some
2349
+ version of this." The second published 32 renders and found **32/32 404ing on `arweave.net` while 22/32
2350
+ already served from `permagate.io` and `vilenarios.com`**, with the uploader reporting `CONFIRMED`
2351
+ throughout — and the expensive part is what a creator does next, since a placeholder on a fresh drop
2352
+ reads as a failed render, so you re-run `abx render --force` and re-upload everything for nothing.
2353
+
2354
+ That second observation shapes the design: propagation is **per-gateway**, so the check probes the
2355
+ gateway your project actually uses _plus two others_, which buys a third verdict the reporters' own
2356
+ two-state model couldn't express.
2357
+
2358
+ - **`ready`** — your gateway serves the bytes. Safe to reference.
2359
+ - **`propagating`** — another gateway serves them, so the data **provably exists** on the network and
2360
+ yours is merely behind. Waiting is the fix, and the command says plainly not to re-upload.
2361
+ - **`unreachable`** — nothing probed serves them. Deliberately _not_ called propagating: from outside,
2362
+ a locator that is still settling and one that is simply wrong look identical, and reporting the
2363
+ friendlier of the two is how a tool teaches someone to ignore it. When every gateway rejects the id
2364
+ itself (a 4xx that isn't 404) rather than just missing it, that _is_ evidence, and the output says
2365
+ "malformed locator, waiting will not fix it" — the inverse mistake of waiting out a typo costs more
2366
+ than a needless re-upload.
2367
+
2368
+ Accepts every form a locator arrives in (`ar://`, `ipfs://`, a gateway URL, a bare txid/CID, with a
2369
+ directory path suffix), reads **headers only** via a ranged request with the body cancelled — so
2370
+ checking a 40 MB asset doesn't download it — and **exits non-zero unless ready**, which makes waiting a
2371
+ one-liner instead of a retry ladder: `until abx storage status <loc> --json; do sleep 10; done`.
2372
+
2373
+ The primitive is `locatorStatus()` in `@artblocks/abx-storage`, not CLI-only (per B20): anything
2374
+ programmatic should call it in-process rather than spawning the CLI per check. `abx render`'s existing
2375
+ propagation note now points at the command, so the advisory has an answer attached.
2376
+
2377
+ - df298d8: `abx tokens <address>` — every token's owner, seed, and params, from chain alone
2378
+
2379
+ The most obvious post-deploy question about a generative collection — _what did the seeds actually
2380
+ deal?_ — had no command. `abx verify` reports per-token minted/render status but no seed; `abx
2381
+ tokenuri` prints one token and the seed lives inside its base64 `animation_url`; `abx inspect` is
2382
+ pre-deploy and static. An agent's workaround was to start `abx serve`, `GET /api/project/<addr>`,
2383
+ base64-decode each `tokenURI`, base64-decode the `animation_url` inside it, then regex
2384
+ `0x[0-9a-f]{64}` out of the resulting HTML — 32 times. Every input to that was already a plain
2385
+ contract read.
2386
+
2387
+ `abx tokens <address> [--json] [--from <id>] [--limit <n>]` is chain-only: no indexer projection, no
2388
+ running resolver, no event scan. The params store maintains its own key lists inside its write paths
2389
+ (`tokenParamKeys` / `contractParamKeys`) and `seed` is a reserved param read by name, so the whole
2390
+ listing is `eth_call`s — available to anyone with an RPC URL, including before any indexing has
2391
+ happened. Seeds print in full (truncating the one value the command exists for would repeat the
2392
+ `tokenuri` bug); `--json` emits `{tokenId, owner, seed, params}` per token, contract-scope params
2393
+ once on the parent rather than copied into every row.
2394
+
2395
+ It reports honestly across all three token types rather than failing: a 1/1 has no params extension
2396
+ and says so (owners still list), a pre-enumeration project still yields seeds and flags that params
2397
+ can't be enumerated, and an id whose `ownerOf` reverts is `null` — not "not minted", because a
2398
+ burned id and an unminted id revert identically and a chain-only read can't tell them apart.
2399
+
2400
+ Two things it deliberately is not. It is not a trait spread: a trait comes from running the script
2401
+ against the seed, which is `abx render`'s job — the token-scope _param_ spread it does print is
2402
+ labelled as such. And the reader is in the **SDK** (`listTokens`), not just the CLI, so a
2403
+ programmatic integrator gets it without reimplementing it.
2404
+
2405
+ Backlog B25 (from the 2026-08-04 tester batch, feedback `dcfdc6f4`).
2406
+
2407
+ - df298d8: `abx tokenuri --fetch` — follow the URL the contract commits to and print what is actually served
2408
+
2409
+ Closes backlog B14. No command printed the served JSON body: `tokenuri` read the chain, `verify`
2410
+ re-hashed bytes, `status` reported the indexing lifecycle — each a different slice, none of them the
2411
+ document a marketplace actually reads. An agent in a cold sweep fell back to raw `curl` for exactly
2412
+ this, which is the tell that a command was missing.
2413
+
2414
+ ```bash
2415
+ abx tokenuri 0x… --fetch # GET the baked URL, print the served body + HTTP status
2416
+ abx tokenuri 0x… --fetch --json # {tokenURI, onChain, served: {url, status, contentType, body}}
2417
+ ```
2418
+
2419
+ It also answers the question a _warning_ could not, which is why the other half of B14 stays declined.
2420
+ "Nothing tells you the provider you registered with isn't the base baked on-chain" is a real gap, but
2421
+ the obvious check — compare the remote's base URL to the on-chain one — false-positives on the common
2422
+ custom-domain case (a baked `meta.artist.xyz` fronting `api.provider.xyz`), and a warning that cries
2423
+ wolf on the correct setup is worse than none. Fetching what the **baked** base returns makes the
2424
+ mismatch self-evident instead: you see the other provider's 404, or another project's document, with no
2425
+ guessing and no false positive.
2426
+
2427
+ Three judgments worth naming:
2428
+
2429
+ - **A `data:` URI is not a failure.** It IS the document, and a fully-on-chain project's whole point is
2430
+ that there is no server to ask — so it reports "nothing to fetch" and exits 0. Treating it as an error
2431
+ would punish the strongest configuration the protocol offers.
2432
+ - **A dead host and a served error are different answers**, because they route to different fixes ("your
2433
+ provider said no" vs "the URL a marketplace will ask is unreachable").
2434
+ - **A non-2xx says it is about the SERVICE, never a mistyped path** — the URL came from the chain, so it
2435
+ is right by construction, and the readout points at `abx status --remote` for the lifecycle.
2436
+
2437
+ Under `--json` the body is verbatim and untruncated and a non-2xx exits non-zero, so CI can gate on it;
2438
+ the human readout clips at 1200 chars and says how many it clipped. The fetch itself lives in
2439
+ `src/served.ts` with an injectable `fetch`, since `main.ts` exports nothing — the same reason
2440
+ `scaffold.ts` was extracted.
2441
+
2442
+ This retired the last two `curl` recommendations in the shipped skill: verifying an attach is now
2443
+ `abx tokenuri <addr> --fetch` (the served document carries the `artifacts` manifest), and the skill's
2444
+ claim that `tokenuri` "follows" the URL — previously true only of `contracturi` — is now accurate.
2445
+
2446
+ - Updated dependencies [df298d8]
2447
+ - Updated dependencies [df298d8]
2448
+ - Updated dependencies [df298d8]
2449
+ - @artblocks/abx-sdk@0.1.0-alpha.9
2450
+ - @artblocks/abx-token-api@0.1.0-alpha.12
2451
+ - @artblocks/abx-storage@0.1.0-alpha.9
2452
+ - @artblocks/abx-indexer@0.1.0-alpha.10
2453
+
2454
+ ## 0.1.0-alpha.16
2455
+
2456
+ ### Patch Changes
2457
+
2458
+ - 8f3c63c: Four output surfaces that misinformed: an occupied port, a repeated `verify` advisory, a silently-dropped `tokenuri` argument, and a release-notes URL that 404s.
2459
+
2460
+ **`abx serve` / `abx preview` on an occupied port crashed with a raw Node stack trace.** `listen()` had
2461
+ no `'error'` handler, so `EADDRINUSE` reached Node's default handler and printed a trace through
2462
+ `node:net` and our own `dist/` paths. In a CLI where every other error is formatted, that reads as a
2463
+ crash inside abx rather than a port conflict, and it leaks internal paths. Both commands now preflight
2464
+ the port and name the port and the fix in one line — `demo` already did this, and the check it used is
2465
+ now shared. (`preview`'s default 8788 colliding with a studio left running in another terminal was
2466
+ reported as the harder-to-diagnose half of this.)
2467
+
2468
+ **`abx verify` printed the identical thumbnail advisory once per token.** On a 32-token project with no
2469
+ local renders that was 32 consecutive copies of the same full sentence — ~4KB of text for one fact —
2470
+ which pushed the four lines that answer "did my deploy work" off a default terminal. It now prints one
2471
+ line per outcome with a count and the affected token ids (truncated past 12), so the same information
2472
+ costs three lines at 32 tokens and three lines at 1000.
2473
+
2474
+ **`abx tokenuri <address> 0` silently ignored the `0`** (the token id is `--token`) and printed token 0 —
2475
+ a _coincidentally correct_ answer, which is the dangerous kind: `… <address> 7` would have printed token 0
2476
+ just as confidently and exited 0. A stray positional is now refused, and a numeric one names the
2477
+ corrected invocation. The `positionalArgs` helper moved next to `parseFlags`, because the two must
2478
+ consume argv by the same rule — the obvious hand-rolled version of this check reads `--token 0` as a
2479
+ stray `0`.
2480
+
2481
+ **The update banner pointed at `github.com/ArtBlocks/abx/releases`, which 404s** for anyone outside the
2482
+ org, and no changelog shipped in the package — so "what changed?" was unanswerable. A tester
2483
+ reconstructed the diff by running the same dry run on two versions, which is how they discovered the
2484
+ canonical singletons had moved and then had no way to tell whether it needed them to act.
2485
+ `CHANGELOG.md` now ships with the package and **`abx changelog`** prints it (offline, version-matched;
2486
+ `--all` for the full history), with npm's version list as the online pointer. The upgrading guide now
2487
+ also states the thing they had to test for themselves: a singleton redeploy repoints the manifest for
2488
+ _new_ deploys and leaves already-deployed contracts unaffected.
2489
+
2490
+ **Plus one propagation note.** `arweave.net` — the default gateway, and the one baked into the locator —
2491
+ indexes new uploads on a delay, so a freshly published render can 404 there for minutes while Turbo has
2492
+ already confirmed it. A tester saw 32/32 404ing on arweave.net while 22/32 already served from other
2493
+ ar.io gateways. Unexplained, that reads as a failed render, and the natural next move is
2494
+ `abx render --force` on everything — a full re-upload that fixes nothing. `abx render` now says so after
2495
+ an Arweave publish, and names `ABX_ARWEAVE_GATEWAY` for baking a different gateway (it is fixed at
2496
+ publish time, since the locator is what the resolver registers). The note stays quiet when the operator
2497
+ has already chosen a non-default gateway.
2498
+
2499
+ _(From the 2026-08-04 tester batch: feedback `eb972036`, `57bee789`, `dcfdc6f4`, `5a052398`, `e0f30e22`.)_
2500
+
2501
+ - 8f3c63c: Two writes that reported success without doing what the creator meant now refuse: `lock-field` on a parameter key, and a `Bytes` parameter given text.
2502
+
2503
+ Both are the same defect wearing different clothes — the CLI made statements that were individually
2504
+ true and collectively a promise it wasn't keeping.
2505
+
2506
+ **`lock-field` reported "permanent" on a PostParam key and left the param writable.** A tester welded
2507
+ `grid` — a `Bytes` param holding the artwork — with `abx lock-field <addr> --field grid`. It printed
2508
+ `Lock token #0 field "grid" — permanent`, `tokenFieldLocked(0,"grid")` returned `true`, and the very next
2509
+ `configure-param grid <junk>` **succeeded** and overwrote the artwork. Nothing lied: fields and params
2510
+ are separate namespaces that may share a name, and `lock-field` had locked the _field_. But the creator
2511
+ was told their work was permanently protected when it had no protection at all, and permanence is the
2512
+ pitch. `lock-field` now reads `paramSchema(<name>)` first and **refuses** a declared param key, naming
2513
+ the mechanism that does weld a param (`abx set-schema … --schema <key>:<Type>:<Auth>:lock=now`), with
2514
+ `--force-field` for the rare case where you really do mean the metadata field.
2515
+
2516
+ **A `Bytes` parameter stored whatever characters you typed, as UTF-8.** Passing base64 — reasonable,
2517
+ since the params docs say a `Bytes` value "becomes base64" — stored 172 bytes of base64 _ASCII_ where
2518
+ 128 packed bytes were meant; `0x`-prefixed hex was stored as its 258 literal characters too. Nothing
2519
+ errored, and an in-chain renderer reading the param drew garbage from ASCII with no failure anywhere in
2520
+ the chain. A `Bytes` value must now say what its bytes are: `0x`-prefixed hex, or `--file <path>`. A bare
2521
+ string is **refused** rather than guessed at, because there is no safe guess between "these characters"
2522
+ and "these bytes", and the wrong guess is invisible until an artwork renders wrong. (`String` is
2523
+ unchanged — there, the characters _are_ the value.)
2524
+
2525
+ The docs' "becomes base64" describes the **read** side — how a program receives the value — and now says
2526
+ so, next to the two write forms.
2527
+
2528
+ Also fixed: the byte count that was already the tell. The write echoed the _input string's_ length, so
2529
+ the mismatch was visible at write time and printed as if it were fine (`Configure grid (data, 172
2530
+ bytes)`). It now echoes the decoded byte count and where the bytes came from.
2531
+
2532
+ _(From the 2026-08-04 tester batch: feedback `e86081a1`, `b0e88b17`.)_
2533
+
2534
+ - 8f3c63c: The renderer scaffold's `IAbxParams` can now read `Bytes` and `String` parameters — the two types that can carry an actual payload.
2535
+
2536
+ The scaffold's interface declared only `tokenParam` / `contractParam`, both returning
2537
+ `(bytes32 value, bool valueIsHash, bool isSet)`. So a renderer written against the documented interface
2538
+ could not reach a `Bytes` or `String` value at all: it got a keccak commitment and no way to the blob.
2539
+ The token has always exposed `tokenParamData(uint256,bytes32)` and `contractParamData(bytes32)` — a
2540
+ tester found them by grepping the CLI's bundled ABI, declared them by hand, and it worked.
2541
+
2542
+ Since `Bytes` and `String` are precisely the types that can hold a real payload (~24KB per key), leaving
2543
+ them out made the in-chain art lane look limited to scalars unless you went digging. Both readers are now
2544
+ in `src/interfaces/IAbxParams.sol`, with the rule stated where the mistake happens: scalars come from the
2545
+ `bytes32` reader, payloads from the data reader, and a `Bytes` param read through `tokenParam` hands you a
2546
+ hash — which renders garbage without failing anywhere.
2547
+
2548
+ The scaffold's own tests carry the pattern rather than just describing it: `MockParams` now models a
2549
+ payload param the way the real contract does (the scalar slot holds `keccak256(content)` with
2550
+ `valueIsHash` true), and two tests show the read plus the commitment check, and that an unset payload key
2551
+ returns empty bytes rather than reverting. The renderers page documents the pair alongside the scalar one.
2552
+
2553
+ _(From the 2026-08-04 tester batch: feedback `d2ac4f2e`.)_
2554
+
2555
+ - 8f3c63c: `abx scaffold-renderer` wrote **zero files** for every installed user while reporting success — fixed, and pinned by the test that was missing.
2556
+
2557
+ The command created the target directory, printed the full green-check walkthrough (`cd renderer`,
2558
+ `forge soldeer install`, `forge test`, the deploy script, "full walkthrough: renderer/README.md") and
2559
+ **exited 0**. The directory was empty. No `src/`, no `foundry.toml`, no `README.md`. Three testers
2560
+ reproduced it independently — 3 of 3 and 4 of 4 attempts, across all three invocation forms (relative
2561
+ name, absolute path, and the no-arg default) — on alpha.9, alpha.12 and alpha.14.
2562
+
2563
+ **The cause was a path filter that judged absolute paths.** The copy excluded build dirs with
2564
+
2565
+ ```js
2566
+ filter: (s) =>
2567
+ !/(^|\/)(out|cache|dependencies|broadcast|node_modules)(\/|$)/.test(s);
2568
+ ```
2569
+
2570
+ `cpSync` hands `filter` **absolute** source paths, and an installed CLI lives at
2571
+ `…/node_modules/@artblocks/abx-cli/assets/renderer-scaffold`. So the pattern matched the source
2572
+ **root**; `cpSync` skips a directory's entire subtree when the directory itself is filtered out, and
2573
+ does it _silently_ rather than erroring. A dev checkout's path
2574
+ (`…/packages/cli/assets/renderer-scaffold`) contains no `node_modules`, so every test we ran passed and
2575
+ every user got an empty directory. The scaffold assets were always in the published package — this was
2576
+ never missing content, only a copy step that no-oped.
2577
+
2578
+ Fixed on both axes, because either one alone would have let this ship:
2579
+
2580
+ - **The filter judges paths relative to the scaffold root**, so `node_modules` in the _install_ path is
2581
+ irrelevant while `out/`, `cache/`, `dependencies/`, `broadcast/` inside the scaffold are still skipped.
2582
+ - **The command asserts its own output.** It now throws if `src/MyRenderer.sol` isn't there afterwards,
2583
+ instead of printing a success banner over nothing. Exit 0 plus a green check is what made this
2584
+ expensive: an agent has no reason to look back at a step that reported success, so the failure
2585
+ surfaced far away — `forge soldeer install` dying in an empty directory.
2586
+
2587
+ The copy logic moved to `src/scaffold.ts` so it can be tested at all (importing `main.ts` runs the CLI),
2588
+ and `test/scaffold.test.ts` copies **from a path containing `node_modules`** — the layout every user has
2589
+ and the one case no previous test covered — plus an end-to-end run asserting the scaffolded project is
2590
+ non-empty and contains the files the success message names.
2591
+
2592
+ This was the documented entry point to the in-chain Solidity lane and the only documented route to
2593
+ `--image-renderer` / `--attributes-renderer`, so it blocked that lane outright. The full walkthrough
2594
+ (`forge soldeer install` → `forge test`) now runs clean: 10 tests pass in a freshly scaffolded project.
2595
+
2596
+ _(From the 2026-08-04 tester batch: feedback `6f2f980a`, `b45bc0f8`, `d2ac4f2e`.)_
2597
+
2598
+ - 8f3c63c: The agent skill now names the both-worlds code lane, the payload-param reader, and the verb that welds a parameter.
2599
+
2600
+ Four corrections, all from the same batch that produced the CLI fixes — the skill described the lanes in a
2601
+ way that made the strongest option invisible:
2602
+
2603
+ - **`--script` plus `--image-renderer` is now a lane in its own right.** The table and the in-chain
2604
+ section both said "no `--script`", which is a true constraint of the _renderer-only_ shape and read as a
2605
+ prohibition on combining them. A program with Solidity renderers gets `animation_url` from its on-chain
2606
+ chunks _and_ an on-chain `image`/`attributes` — every marketplace surface in-chain with nothing to
2607
+ render, host, or refresh. That is the best available answer for an interactive generative drop and it
2608
+ was reachable only by ignoring the skill.
2609
+ - **Renderers are told which reader a `Bytes`/`String` param needs.** The guidance said to read params via
2610
+ `tokenParam`/`contractParam`, which for the two payload types returns a keccak commitment — so a
2611
+ renderer written from the skill drew garbage from a hash with nothing failing. `tokenParamData` /
2612
+ `contractParamData` are now named where the mistake happens.
2613
+ - **`configure-param`'s payload encoding is explicit**: `String` takes text, `Bytes` takes `0x` hex or
2614
+ `--file`, and a bare string on a `Bytes` key is refused.
2615
+ - **Locking a param points at `set-schema … :lock=now`**, since `lock-field` freezes the same-named
2616
+ _field_ and now refuses a declared param key.
2617
+
2618
+ _(From the 2026-08-04 tester batch: feedback `c283d767`, `d2ac4f2e`, `b0e88b17`, `e86081a1`.)_
2619
+
2620
+ - 8f3c63c: The `deploy-code` **Surfaces** preflight no longer contradicts itself, and a script plus an on-chain image renderer is now a documented combination rather than an open question.
2621
+
2622
+ The `[5] Surfaces` block is the most-praised thing in the deploy preflight — a tester singled out its
2623
+ "not backfillable" framing as the direct fix for a confusion they'd filed a version earlier. It also
2624
+ told two lies in adjacent lines, both found while answering their follow-up question.
2625
+
2626
+ **"One or more surfaces resolve to NOTHING a marketplace can see" fired when none did.** An undeclared
2627
+ param was folded into the broken-surface test, so a deploy with both renderers set printed
2628
+ `thumbnail: ON-CHAIN ✓` and `traits: on-chain ✓` and then, two lines later, that a surface resolved to
2629
+ nothing — re-recommending `--image-renderer` and `--attributes-renderer`, the exact flags already
2630
+ passed. A dropped param is not a dead surface: the piece renders, that input takes its default. The
2631
+ alarm now covers only the thumbnail and traits, names only the remedies for what is actually broken, and
2632
+ says _which_ surface. Dropped params keep their own, milder line.
2633
+
2634
+ **An on-chain image renderer was told to stand up a render runner.** With `--image-renderer` _and_ a
2635
+ script, the block recommended `abx deploy-effects`, a one-shot `abx render`, and a publish-capable
2636
+ storage backend — none of which apply, because an in-chain SVG has no off-chain still to render, host,
2637
+ or refresh. It now says `nothing to render` for any on-chain image lane, with the from-chain check.
2638
+
2639
+ **And the question the tester explicitly flagged as untested — does passing a script _and_ an
2640
+ `--image-renderer` yield both a live `animation_url` and an on-chain thumbnail? — is yes.** Verified on a
2641
+ dry run: `animation_url` still assembles on-chain from the script chunks while `image` and `attributes`
2642
+ are computed by the Solidity renderers, so every marketplace surface has an on-chain home in one deploy
2643
+ with nothing to run. The deploy guide now leads the content-lane section with that combination instead of
2644
+ implying the two lanes are an either-or.
2645
+
2646
+ The guide also gains the correction to the _other_ half of that question. A resolver plus
2647
+ `abx render --backend arweave` does **not** backfill a `--onchain-uri` drop's marketplace surfaces: it
2648
+ sends no transaction, so `tokenURI` keeps returning the on-chain JSON with its placeholder `image` and
2649
+ no `attributes`, which is what marketplaces read. Checked against the reporter's own live 32-token
2650
+ contract — `tokenURIBase` is empty, the metadata renderer is authoritative, and `image` provenance still
2651
+ reads `fallback — image field unset`. Publishing stills to a resolver is real and useful, and closing
2652
+ those surfaces afterwards takes owner transactions that re-point resolution. The guide now says so
2653
+ plainly, since "just render to a resolver later" would have been a new false promise in place of the
2654
+ old one.
2655
+
2656
+ Three tests pin the block: an undeclared param never claims a dead surface, an on-chain image renderer
2657
+ is never sent to a runner, and a script with no renderer and no resolver still reports both surfaces
2658
+ dead.
2659
+
2660
+ _(From the 2026-08-04 tester batch: feedback `c283d767`, `991dc8e2`, `7936334b`, `a319e53f`.)_
2661
+
2662
+ ## 0.1.0-alpha.15
2663
+
2664
+ ### Minor Changes
2665
+
2666
+ - e325b46: Opt-in ERC-721C support across the toolkit — plain ERC-721 stays the transparent default.
2667
+
2668
+ SDK: `OneOfOneInitParams`/`SeriesInitParams` (and `SeriesCodeInitParams` by inheritance) gain
2669
+ `transferValidator` immediately after `royaltyBps` — `zeroAddress` = plain ERC-721 forever (the
2670
+ default), non-zero = permanent 721C enrollment with that validator. A new `creator-token` module
2671
+ ships the per-chain `RECOMMENDED_TRANSFER_VALIDATOR` (OpenSea's
2672
+ StrictAuthorizedTransferSecurityRegistry, verified live on Sepolia + Base Sepolia), the two
2673
+ creator-token ERC-165 ids + the ABX extension id, `readCreatorTokenStatus()` (`{enrolled,
2674
+ validator}`), and a `prepareSetTransferValidator()` write wrapper.
2675
+
2676
+ CLI: the deploy commands take `--721c [recommended|0x…]` — absent means zero behavior/output
2677
+ change; `recommended` resolves the per-chain constant (refused, naming the chains that have one,
2678
+ where none is known); an explicit address is EIP-55-validated and pre-checked for code before any
2679
+ gas. Enrolling prints one plain statement of what enforcement means. A new owner op
2680
+ `abx set-transfer-validator <address> <0x…|none|recommended>` re-points or suspends an ENROLLED
2681
+ collection's validator (guards `--dry-run`; refuses plain ERC-721s up front — enrollment is a
2682
+ deploy-time decision). `abx state` shows the validator for enrolled collections only.
2683
+
2684
+ ### Patch Changes
2685
+
2686
+ - Updated dependencies [e325b46]
2687
+ - @artblocks/abx-sdk@0.1.0-alpha.8
2688
+ - @artblocks/abx-indexer@0.1.0-alpha.9
2689
+ - @artblocks/abx-storage@0.1.0-alpha.8
2690
+ - @artblocks/abx-token-api@0.1.0-alpha.11
2691
+
2692
+ ## 0.1.0-alpha.14
2693
+
2694
+ ### Minor Changes
2695
+
2696
+ - 1b50f9d: On-chain param enumeration: a project's parameters are now readable from the chain that holds them, and the `params.keys` convention is retired.
2697
+
2698
+ The params store was unenumerable by design, so anything that wanted to know _which_ parameters a
2699
+ project has had to be told. The answer was a convention: a `params.keys` contract param holding a
2700
+ comma-separated list, composed by `deploy-code` from the `--schema` flags and hand-maintained
2701
+ thereafter. It worked, and it had the defect every hand-maintained index has — a key configured but
2702
+ not listed was **silently omitted from every render**. The schema existed, a collector could set it,
2703
+ the art never saw the value, and nothing anywhere reported a problem. The CLI grew a nudge, then a
2704
+ same-transaction companion write, and both were treatments for a design that should not have needed
2705
+ them.
2706
+
2707
+ **The token now maintains its own key lists.** `SeriesCode` gains `tokenParamKeys(tokenId)`,
2708
+ `contractParamKeys()`, and `paramSchemaKeys()` (plus `…Paged` variants for surfaces past an RPC's
2709
+ return cap). The lists are updated inside the write paths themselves, so `key ∈ list ⟺ the param is
2710
+ set` holds for every writer — raw owner writes, governed `configure-param` writes, hook-driven writes,
2711
+ all of them. No caller can forget, because no caller is involved. (`seed` is deliberately never listed:
2712
+ every consumer reads it as a tokenData coordinate, and indexing it would charge every seeded mint for
2713
+ nothing.) `paramSchemaKeys()` closes the other half — a chain-only frontend can now build a configure
2714
+ UI, including for keys declared but never yet written, which nothing off-chain could previously
2715
+ discover.
2716
+
2717
+ **The canonical `AbxGenerator` reads that surface instead of the CSV.** It no longer looks at
2718
+ `params.keys` at all, and a `params.keys` value set on a new project is simply an ordinary parameter —
2719
+ enumerated and emitted like any other, by both the generator and the SDK. A latent parity bug dies with
2720
+ the convention: the generator's no-CSV path emitted tokenData in insertion order while the canonical
2721
+ serializer sorts, so the two byte-forms could disagree; there is now one form.
2722
+
2723
+ **`AbxMetadataRenderer` is spec v4.** `tokenURI` gains a computed `abx_params` object — every set
2724
+ parameter, contract and token scope merged, token wins, sorted, decoded by the same rules the generator
2725
+ and the SDK use. A data-backed value over 2048 bytes is emitted as `{"keccak256":"0x…"}` — its on-chain
2726
+ commitment — rather than inline, so a large `Bytes` parameter cannot bloat `tokenURI` past a single
2727
+ `eth_call`; every key still appears, and an oversized one degrades self-describingly. Parameters are
2728
+ _not_ folded into `attributes`: that stays the creator's surface. Also in v4: an `animation_url` carried
2729
+ by the `inline` or `reader` representation is now wrapped as `data:text/html;base64,…`, exactly as
2730
+ `image` already was — the asymmetry was an oversight, and it meant a fully on-chain animation was
2731
+ handed to wallets as bare text.
2732
+
2733
+ Both changes are additive on the read side: pointed at a token that predates enumeration, a v4 renderer
2734
+ simply emits no params block. **Repointing the metadata renderer is safe anywhere.** Repointing the
2735
+ _generator_ is not, and `abx set-field` now refuses it: a legacy implementation plus the current
2736
+ generator means every parameter silently vanishes behind a `tokenURI` that still looks healthy, so the
2737
+ CLI stops you rather than warning you, and names both ways out (stay on the project's existing
2738
+ generator, or redeploy).
2739
+
2740
+ Everywhere else in the toolkit, the convention is simply gone:
2741
+
2742
+ - `deploy-code --onchain-uri` sets up in **three** legs, not four (animation field → generator, plus
2743
+ the two URI renderers). There is no key list to compose, report, or keep in sync, and the help text
2744
+ no longer teaches one.
2745
+ - `abx set-schema` is a single op again — no companion write, no multicall. This **supersedes**
2746
+ alpha.13, which shipped `set-schema` writing `params.keys` in the same transaction to stop a governed
2747
+ key going unlisted: the contract now maintains its own key list, so there is nothing to keep in step
2748
+ and the drift that fix guarded against is gone rather than mitigated. Same for that release's note
2749
+ that "there is no on-chain enumeration of schema keys" — `paramSchemaKeys()` is exactly that.
2750
+ - `abx state` reads the governed surface from `paramSchemaKeys()` and the collection-scope values from
2751
+ `contractParamKeys()`. A project deployed before enumeration falls back to reading its old
2752
+ `params.keys` list, read-only, so live testnet drops still describe themselves.
2753
+ - `abx verify` notes when a project's enumerated surface exceeds ~64 keys — the documented design
2754
+ envelope. The write side is unbounded; the read side is what grows, since `tokenURI` and `tokenData`
2755
+ assemble every parameter per call.
2756
+ - `abx configure-param <addr> - params.keys <csv>` no longer has a special path. Writing that key is
2757
+ now an ordinary schema-less contract param, and it shows up in tokenData as one — honest, and
2758
+ documented.
2759
+ - `abx_params` joins `artifacts` and `abx_provenance` as a computed key `set-field` and `attach` refuse.
2760
+
2761
+ The SDK needed no semantic change: `buildTokenData` has always been event-derived (coordinates + seed +
2762
+ every set param, both scopes, token wins, augment entries), and the contract enumeration implements
2763
+ exactly that rule. Its `deployments` manifest carries the new addresses.
2764
+
2765
+ ### Patch Changes
2766
+
2767
+ - 1b50f9d: Fixes from an integrator batch: a machine-readable `tokenuri`, one Arweave identity across CLI and SDK, a correct OpenSea refresh, and attach telling the truth.
2768
+
2769
+ **`abx tokenuri --json`.** The command abbreviated long values (`… (382 chars)`) with no way to turn it
2770
+ off, so for a token whose whole point is on-chain content it returned something that _looked_ like the
2771
+ metadata and wasn't. An integrator scraped it, stored a `data:` URI cut to 96 characters, and only
2772
+ found out in production; they abandoned the CLI as a read path and reimplemented `eth_call`. `--json`
2773
+ now emits the verbatim decoded document — no banner, no ANSI, no truncation — so
2774
+ `abx tokenuri <addr> --json | jq` is a supported read path. The human view still abbreviates, and now
2775
+ says `[--json for the full value]`.
2776
+
2777
+ **One Arweave identity, resolved in one place.** `arweaveConfigFromEnv()` read `ARWEAVE_JWK` and
2778
+ nothing else, while the CLI mints and manages `.abx-self-host/arweave-key.json`. Porting a working CLI
2779
+ flow to the SDK — same machine, minutes later — failed every upload with "Arweave via Turbo needs an
2780
+ identity", a message that says storage was never configured when the truth was that two layers
2781
+ disagreed about where the identity lives. `@artblocks/abx-storage` now exports `resolveArweaveJwk()`
2782
+ (env → managed key file) and the CLI delegates to it. Its diagnostics come with it: an empty key file
2783
+ now reports the **path** and the remedy instead of `Unexpected end of JSON input`, and a corrupt one
2784
+ says the same.
2785
+
2786
+ **`abx refresh` on the default chain.** The OpenSea slug map held only `sepolia` and `mainnet`, so
2787
+ `base-sepolia` — the CLI's own default — fell through to the raw key: the refresh POST went to a slug
2788
+ OpenSea doesn't know, and the printed link pointed at **mainnet** `opensea.io` for a testnet token.
2789
+ Slugs are now correct (`base_sepolia`), `testnet` comes from the chain registry rather than a second
2790
+ hand-maintained set, and a chain with no known slug produces **no link** instead of a wrong one. Same
2791
+ shape as the hardcoded explorer table that once sent every Base Sepolia link to Etherscan.
2792
+
2793
+ **`abx attach` names its dependency.** Attaching artifacts to a project that resolves on-chain now
2794
+ warns, before the send, that they will **not** appear in `tokenURI` — the on-chain renderer carries
2795
+ reserved fields only, and the artifacts manifest comes from a resolver. A team attached five audio
2796
+ stems to a fully-on-chain token and found them "paid for, stored on-chain, and invisible"; the note
2797
+ that existed was one dim line that read as a footnote rather than as a missing service.
2798
+
2799
+ **`ensureChunkStore` moved to the SDK.** The bootstrap every on-chain-content path needs existed only
2800
+ inside the CLI, so an SDK integrator got `resolveChunkStore()` (may return undefined) plus a separate
2801
+ `storeSupportsWriteContent()` they had to remember — forget it and an incapable store fails _deep
2802
+ inside a mint, after transactions have landed_. One team hand-rolled the guard for exactly that reason.
2803
+ `ensureChunkStore(publicClient, send, {chainId, override, onEvent})` is now exported; the SDK reports
2804
+ progress through `onEvent` instead of printing, and the CLI keeps its narration.
2805
+
2806
+ **`abx storage upload --json`.** The locator as data. They scraped this line, captured its ANSI colour
2807
+ codes along with the URL, wrote the result into a _stored_ player URL, and found out when it 404'd in
2808
+ production. In `--json` mode stdout carries the JSON and nothing else; progress moves to stderr.
2809
+
2810
+ **`--backend ipfs` no longer hides a missing credential.** Without `PINATA_JWT` the backend resolves to
2811
+ **kubo against a local node**, so a dry run looked fine and the real upload failed for anyone not running
2812
+ one. The preview now says so. Related correction: the skill claimed "a backend missing its secret falls
2813
+ back to `fs`" — it does not. `cloud` refuses up front naming the missing values, and `ipfs` goes to the
2814
+ local node; nothing silently degrades to local disk. Both sides now say the same thing.
2815
+
2816
+ Reported in the 2026-08-03 MXRR integration batch (feedback 869f27b1, a256217f, 119d7e8e, 975c363e,
2817
+ e38216db, e267078b).
2818
+
2819
+ - 1b50f9d: Unknown flags on a command that can send now **refuse** instead of warning — and `--chain` teaches `ABX_CHAIN`.
2820
+
2821
+ `abx deploy-code … --chain sepolia` ran to completion **on the default chain** (base-sepolia). There is
2822
+ no `--chain` flag — the chain comes from the `ABX_CHAIN` environment variable — and the generic
2823
+ stray-flag warning said so, accurately, and then the command carried on. On a dry run that is a
2824
+ confused minute; on a funded send it is a wrong-chain deploy with real artifacts at an address nobody
2825
+ is watching. Prose that gets ignored once gets ignored again, so:
2826
+
2827
+ - **`--chain` is refused on every command**, read-only ones included (a command that quietly ignored it
2828
+ would still teach the wrong model). The message names the mechanism, the chain that _is_ active, the
2829
+ known chain keys, and the corrected invocation: `ABX_CHAIN=sepolia abx deploy-code …`.
2830
+ - **`deploy`, `deploy-series` and `deploy-code` refuse any unrecognized flag**, naming the offender and
2831
+ pointing at `abx help <command>`. `--dry-run` refuses identically — a preview that accepts what the
2832
+ real send rejects is its own trap, since you would validate a command and have it fail at the one
2833
+ moment it matters.
2834
+ - **Read-only commands still only warn.** Nothing can be mis-sent, and a stray flag shouldn't stop a
2835
+ creator mid-iteration.
2836
+
2837
+ Refusing is safe rather than risky here, and this was verified rather than assumed: a flag absent from a
2838
+ command's allowlist is by construction one that command never reads. Every `flags.x` read inside
2839
+ `cmdDeploy`, `cmdDeploySeries` and `cmdDeployCode` was compared against its allowlist — no gaps — so
2840
+ refusal cannot break a working flag, only make an already-ignored one loud.
2841
+
2842
+ Five tests cover it, including the literal `--chain sepolia` repro, dry-run/real-send parity, and a
2843
+ no-false-refusal pass over the documented deploy flags.
2844
+
2845
+ - 1b50f9d: `abx preview --shoot --param key=value`, and `set-schema --force` says what it overrode.
2846
+
2847
+ **`--shoot` can render the collector-has-set-it state.** It only ever shot the _unset_ one, so
2848
+ answering "what does this collection look like when someone picks a theme?" meant hand-rolling a
2849
+ Playwright script against the preview server's `/view` — which is exactly what one agent did. `--param`
2850
+ is repeatable (`--param theme=Neon --param mood=Calm`) and forwards into every frame. An empty value
2851
+ (`--param theme=`) shoots the unset state explicitly, matching the wire shape production uses for a
2852
+ param nobody has written.
2853
+
2854
+ **`set-schema --force` no longer applies a value-stranding change silently.** It refuses such a change
2855
+ by default; with `--force` it now prints each risk it is overriding and notes that any token already
2856
+ holding a value keeps it, now outside what its schema allows. Applying that quietly was the one outcome
2857
+ worse than refusing — nobody, including the operator, got a record of what may have just been
2858
+ invalidated.
2859
+
2860
+ - Updated dependencies [1b50f9d]
2861
+ - Updated dependencies [1b50f9d]
2862
+ - @artblocks/abx-sdk@0.1.0-alpha.7
2863
+ - @artblocks/abx-storage@0.1.0-alpha.7
2864
+ - @artblocks/abx-indexer@0.1.0-alpha.8
2865
+ - @artblocks/abx-token-api@0.1.0-alpha.10
2866
+
2867
+ ## 0.1.0-alpha.13
2868
+
2869
+ ### Minor Changes
2870
+
2871
+ - 1158420: Expose the PostParam schema lifecycle: `abx set-schema`, `abx retire-param`, Address legs, and `lock=`.
2872
+
2873
+ Three capabilities the contracts have always had, that the toolkit could not reach — so they read to
2874
+ creators as protocol limitations. All three were reported in the 2026-08-03 tester batch.
2875
+
2876
+ **A project's param surface was never frozen at deploy.** `setParamSchema` is owner-gated with no
2877
+ deploy-time restriction and no `exists` check, so it is an upsert usable for the life of a project.
2878
+ There was just no command for it, and the CLI said so out loud ("Adding a param to an already-deployed
2879
+ contract isn't a CLI command yet"), which pushed designers toward guessing their full param surface up
2880
+ front or redeploying — losing the address, the mints, and the collectors. `abx set-schema <addr>
2881
+ --schema key:Type:Auth` attaches or replaces one key.
2882
+
2883
+ Because it is a **full-row upsert on a contract that never re-validates stored values**, the command
2884
+ carries a guard rather than a warning: it prints before/after, and _refuses_ a change that could strand
2885
+ values already written under the key — a narrowed bound, a dropped `Select` option, a changed type —
2886
+ unless you pass `--force`. It also flags an existing `lock=` you are about to drop by not restating it.
2887
+
2888
+ **A parameter can be retired.** There is no delete in the contract (`exists` is only ever set true), but
2889
+ a `lockAfter` in the past makes every later write revert `ParamLockExpired`, permanently. `abx
2890
+ retire-param <addr> <key>` does exactly that, reading the current schema and changing _only_ the lock so
2891
+ type/auth/bounds/options carry forward untouched. It does not remove the key and does not erase a stored
2892
+ value — a value written under a `TokenOwner`/`Address` leg came from a collector, and the artist
2893
+ deliberately cannot delete it.
2894
+
2895
+ **An `Address` auth leg is now expressible.** `--schema` previously rejected every Address-bearing leg
2896
+ with "set that schema post-deploy via the contract" — advice pointing at a command that did not exist.
2897
+ The auth token now names its holder inline (`board:Bytes:Address(0xabc…)`), and the error for a bare
2898
+ `Address` says what the leg is for: a **contract** may hold it, which is how open and multi-party
2899
+ participation is built today. `authAddress` and `lockAfter` were also hardcoded to zero at the
2900
+ deploy-time call site, so neither was reachable there either; both now flow through `--schema`.
2901
+
2902
+ `--schema` gains an optional 4th field, `lock=<when>` (ISO date, unix seconds, or `now`), sharing the
2903
+ Timestamp grammar the bounds already use. A 4th field that is not `lock=` now reports the spec-shape
2904
+ error instead of a mangled "malformed type", which is what a `:` inside a `Select` label used to produce.
2905
+
2906
+ New in the SDK: `prepareSetParamSchema`, `prepareRetireParam`, `readParamSchema`, `OnChainParamSchema`.
2907
+
2908
+ (feedback 4a0c213a, 5d530681, 381bdcbe)
2909
+
2910
+ > [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
2911
+ >
2912
+ > > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
2913
+ > > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
2914
+
2915
+ `set-schema` also keeps **`params.keys` in step, in the same transaction**. On the on-chain URI lane
2916
+ the canonical generator builds tokenData from that CSV, so a key that is governed but not listed is
2917
+ silently omitted from every render — the schema exists, a collector can set it, and the art never sees
2918
+ the value. `deploy-code` composes the list from `--schema` for exactly this reason; without the
2919
+ companion write, a schema added later would have quietly half-worked. Projects not on that lane (where
2920
+ `params.keys` is unset) get no extra write.
2921
+
2922
+ > [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
2923
+ >
2924
+ > > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
2925
+ > > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
2926
+
2927
+ And `abx state` now prints the governed PostParam surface — each key's type, auth, bounds/options, an
2928
+ upcoming lock date, and a `retired` marker for one whose lock has passed. There is no on-chain
2929
+ enumeration of schema keys, so it reads the project's own `params.keys` list, which is also what the
2930
+ generator reads; anything missing from it is invisible to renders anyway. It also names keys listed
2931
+ there with no schema. This is what makes `set-schema`'s upsert safe to use: you can see a key's current
2932
+ shape before overwriting it.
2933
+
2934
+ - 1158420: `abx deploy` (1/1) can finally do "image off-chain, JSON on-chain, no server" — the pattern the docs already recommended.
2935
+
2936
+ The decisions table calls this pattern 2 and presents it as the sweet spot for static art. It worked
2937
+ on `deploy-series`. On the 1/1 command it silently did not: `--onchain-uri` inlines the image only
2938
+ when it is an SVG, and a raster fell through to keccak256 custody with no URL wired anywhere, so the
2939
+ on-chain renderer held a hash it could not serve and `tokenURI` returned a **placeholder — forever**.
2940
+ Adding `--backend arweave` changed nothing, which was the cruel part: it looked exactly like the
2941
+ documented recipe. A cold agent asked for "no server, still there in ten years", followed the docs,
2942
+ and would have shipped a permanently broken token.
2943
+
2944
+ `deploy` now takes the same route the Series takes. When `--onchain-uri` meets a non-inlinable image
2945
+ and a backend that can serve a public URL (`arweave` · `ipfs` · `cloud`), the file is uploaded as a
2946
+ one-entry directory — `putDirectory`, the identical call `deploy-series` makes, so both commands
2947
+ produce the same URL shape from one code path — and its URL is baked on-chain as the image field. The
2948
+ bytes are still stored under their content hash as well, so `abx verify` keeps working. A backend that
2949
+ can only serve from this machine (`fs`) still falls through to custody, and still warns.
2950
+
2951
+ The readouts learned that this is a three-way distinction, not a binary, because "no server" and
2952
+ "on-chain" are different promises and a creator buying permanence is choosing between them:
2953
+
2954
+ - image genuinely on-chain (`--onchain-image`, or an inlined SVG) → **"Done — fully on-chain."**
2955
+ - image at a durable URL the on-chain JSON points at → **"Done — metadata on-chain, image on ipfs."**
2956
+ plus a line naming whose permanence it actually is (Arweave paid-once-forever; IPFS while pinned).
2957
+ - neither → the placeholder warning, before the spend, naming both routes that would fix it.
2958
+
2959
+ Verified end to end on Base Sepolia (`0xdE5aCD35b74B6d002781De51217590a9c5B53EDC`): `tokenURI(0)` read
2960
+ straight from chain with `cast` — no `abx`, no server — returns an IPFS gateway URL that serves HTTP
2961
+ 200 with bytes identical to the source file, and reports itself honestly in `abx_provenance` as
2962
+ `source: url · onChain: false`.
2963
+
2964
+ Closes B17. Found by the 2026-08-03 parallel agent sweep.
2965
+
2966
+ ### Patch Changes
2967
+
2968
+ - 1158420: `abx inspect` no longer reports dependencies, params, or runtime problems that aren't in the code.
2969
+
2970
+ Every detector in the analyzer was a regex over the raw file, so prose counted as code. One
2971
+ tokenizer pass now gives the detectors a comments-stripped, string-blanked view:
2972
+
2973
+ - **A comment or string mentioning a library is no longer a dependency.** A dependency-free
2974
+ vanilla-canvas sketch whose header read `// no p5` was reported as `libraries: p5`, and the lane
2975
+ recommendation then said `--dep p5@<version>` — advice an agent adopts verbatim, which bloats the
2976
+ stored on-chain document and can push a drop to a chain whose dependency registry it needs.
2977
+ Real `p5`/`THREE`/`Tone` usage is still detected (pinned by tests).
2978
+ - **Reserved coordinates are never listed as PostParams.** `tokenId`, `chainId`, and
2979
+ `contractAddress` (like `seed` before them) are injected by the runtime and cannot be declared,
2980
+ but they landed in the "declare EACH at deploy or it's silently dropped" warning with
2981
+ `--schema tokenId:<Type>:<Auth>` advice that must not be followed.
2982
+ - **A dotted param key read through an alias is detected.** `const d = abx.tokenData;` then
2983
+ `d['collapse.index']` was invisible, producing a false "dropped at render" warning on a correct
2984
+ program — and ABX's own output-naming convention is dotted (`effect.render.image`), so the
2985
+ documented idiom tripped the analyzer.
2986
+
2987
+ Reported in the 2026-08-03 tester batch (feedback 3b66e443, f69e15d6, 8184f7dd, 6d32f874).
2988
+
2989
+ - 1158420: `abx deploy --onchain-uri` no longer claims "fully on-chain" over a token whose image isn't.
2990
+
2991
+ `--onchain-uri` puts the metadata JSON on-chain. It inlines the _image_ only when the image is an
2992
+ SVG; a raster falls through to keccak256 custody, and the on-chain renderer then serves a
2993
+ **placeholder** image. The success banner printed "Done — fully on-chain … no server or hosting
2994
+ needed" for that configuration, so a creator would believe they had permanence they did not have —
2995
+ and only discover it later via `abx tokenuri` (`source: "fallback"`, `onChain: false`).
2996
+
2997
+ Two changes, both computed from the actual file rather than the flag:
2998
+
2999
+ - The dry run (and the real run) now warn **before the spend** that the image is a keccak256 anchor
3000
+ and `tokenURI` will serve a placeholder, pointing at `--onchain-image --compress fastlz` or a
3001
+ served base URL. The code lane's dry run already warned about this case; the 1/1 lane shipped it
3002
+ silently.
3003
+ - The success banner says "Done — metadata on-chain" and names the image's real status. An SVG (or
3004
+ `--onchain-image`) still gets the unqualified "fully on-chain" banner, because that one is true.
3005
+
3006
+ Reported in the 2026-08-03 tester batch (feedback a8921f18).
3007
+
3008
+ - 1158420: Fix `deploy-code` reverting `DeploymentFailed()` — the setup transaction was sent with a gas limit estimated against a contract that did not exist yet.
3009
+
3010
+ Every `deploy-code` attempt in a reporter's Base Sepolia session reverted with Solady's
3011
+ `DeploymentFailed()` (`0x30116425`), in both the on-chain and hosted-resolver lanes, with a minimal
3012
+ case of storing a single 3,563-byte script chunk. It was not a defect in the chunk path: the two
3013
+ transactions simply **ran out of gas**.
3014
+
3015
+ ```
3016
+ 0xcad74d07… gasLimit 201,616 gasUsed 198,870 (98.6%)
3017
+ 0xf4350724… gasLimit 169,301 gasUsed 166,810 (98.5%)
3018
+ ```
3019
+
3020
+ A code project deploys in two transactions: create the clone, then one setup `multicall`. The second
3021
+ targets the contract the first just created — and `eth_estimateGas` for that call, taken while the
3022
+ answering node has not yet seen the deploy block, returns the **calldata cost alone**. Replaying both
3023
+ payloads against a codeless address reproduces the sent limits _to the gas_ (201,616 and 169,301);
3024
+ against the real contract the same calls need 941,331. A setup multicall's cost is dominated by
3025
+ CREATE code deposit (~200 gas per stored byte), so the underfunded CREATE inside `SSTORE2.write`
3026
+ returned 0 and reverted. The 1/1 lane was unaffected because its setup fits inside a calldata-sized
3027
+ budget.
3028
+
3029
+ This is the same read-after-write lag the deploy loop already pins the **nonce** against, one field
3030
+ over. The fix has two halves, and deliberately does not include a third:
3031
+
3032
+ - **Every leg after the first waits for the target's code to be visible** to the client doing the
3033
+ estimating, so a lagging node cannot produce a meaningless estimate in the first place. This is the
3034
+ actual repair.
3035
+ - **An impossible estimate is detected and refused, not replaced.** `PreparedTx` gained an optional
3036
+ `gasFloor` carrying only the _provable_ part of a payload's cost — EVM code deposit at exactly 200
3037
+ gas per stored byte. An estimate below that is not "low", it is proof the node is on stale state, so
3038
+ the sender retries and then errors out with what it saw.
3039
+ - **What we did NOT do: substitute a computed gas limit.** Only the deposit is derivable; the same
3040
+ setup multicall also carries schema writes, dependency legs, URI legs and mints whose cost cannot be
3041
+ known without simulating them. A "probably enough" constant is tuned to whoever's example was in
3042
+ front of its author — it would have covered the reported single-chunk case and then under-funded a
3043
+ three-schema deploy by ~200k, reproducing the identical `DeploymentFailed()` with a fresh mystery
3044
+ attached. Refusing to send is strictly better than sending a transaction we can prove is
3045
+ under-funded, which would burn the gas and orphan the contract.
3046
+
3047
+ All three signing lanes carry this, not just the hot one: the env-key lane pins the limit before
3048
+ `sendTransaction`, the wallet lane waits for code and hands the browser an explicit `gas` (a wallet
3049
+ estimates against its own RPC, which we don't control and which lags the same way), and the cold lane
3050
+ prints `gasMustExceed` — labelled a floor, not a limit — plus a note telling an external signer to
3051
+ re-estimate rather than send if their own number comes back below it. The rule lives in one place
3052
+ (`packages/cli/src/gas.ts`) so the lanes cannot drift apart on it.
3053
+
3054
+ Reported in the 2026-08-03 tester batch (feedback 156ea0fb, 172111ae), root-caused from the full
3055
+ transaction hashes supplied in the follow-up addendum.
3056
+
3057
+ - 1158420: `abx preview` stops fabricating param values, and `--shoot` stops blaming the program for its own timeouts.
3058
+
3059
+ - **An unset PostParam is now absent from the preview's `tokenData`, exactly as on-chain.** Preview
3060
+ injected a per-type default for every declared key — `Select` got its FIRST option — so an
3061
+ optional `theme:Select[Newsprint|…]` override rendered every frame as `Newsprint` with nobody
3062
+ having set anything: nine seed-distinct pieces collapsed into one palette, while the deployed drop
3063
+ (where the key is genuinely absent) would take the program's other branch entirely. Production
3064
+ (`buildTokenData`) only injects params that actually have a value; preview now matches it, so the
3065
+ program's own `?? fallback` runs in both places. The studio's `Select` control gained an explicit
3066
+ "— unset (program fallback) —" default position, so unset is now expressible rather than
3067
+ indistinguishable from the first option.
3068
+ - **`--shoot` distinguishes "the program reported no traits" from "we stopped waiting."** A wait
3069
+ that expired was swallowed, so a loaded machine turned a correct, trait-reporting program into
3070
+ "NO frame reported traits" — inverting the one line agents are told to trust and costing a full
3071
+ diagnostic cycle. Timed-out frames now report `timed out — traits unknown` and a warning that
3072
+ names it a measurement failure and suggests `--timeout-ms`; the silent-killer alarm only fires
3073
+ when the program really did report nothing.
3074
+ - **A missing Chromium build names the install command for the Playwright that actually loaded**
3075
+ (`node <resolved>/cli.js install chromium`). The stock hint (`npx playwright install`) can resolve
3076
+ a different Playwright version than the one that just launched, so you download a browser
3077
+ revision it won't use, get the identical error, and run the same command again.
3078
+
3079
+ Reported in the 2026-08-03 tester batch (feedback f843c952, 994f1d67, 534835d9).
3080
+
3081
+ - 1158420: Teach the agent skill how to handle audio and time-based work.
3082
+
3083
+ A "can ABX host a music tool?" session found zero mentions of audio, music, or sound anywhere in the
3084
+ skill. The protocol supports it — `animation_url` is an HTML document, so Web Audio works, and
3085
+ `attach` handles `.wav`/`.mp3`/`.mid` — but five judgments a sound piece needs were unauthored, so an
3086
+ agent had to guess or decline: browser autoplay policy (a marketplace iframe cannot start audio
3087
+ without a gesture), what the thumbnail _is_ for non-visual work, `abx.done()` semantics for a
3088
+ duration-based piece (settle the visual, don't wait out playback), the dependency lane for audio
3089
+ libraries (`tone` needs a registry entry ⇒ Sepolia, like `p5`), and the fact that there is no
3090
+ `render/audio` output declaration to reach for.
3091
+
3092
+ Reported in the 2026-08-03 tester batch (feedback fd6109db).
3093
+
3094
+ - 1158420: `abx skill install` can no longer overwrite a newer skill with an older one, or delete the skill it is installing.
3095
+
3096
+ Two ways the same command could destroy the thing it exists to install, both hit while working in the
3097
+ abx repo itself:
3098
+
3099
+ - **A stale prepack bundle shadowed the canonical skill.** `<pkg>/skill` is gitignored build output
3100
+ written at `prepack`; the canonical copy lives at `.claude/skills/abx-self-host`. Resolution
3101
+ preferred the bundle unconditionally, so a leftover `skill/` from an old `npm pack` was installed
3102
+ **over** the canonical skill — silently replacing v0.1.0-alpha.12 with v0.1.0-alpha.4, after which
3103
+ the CLI's own drift check reported the stale version as if the user had put it there. When running
3104
+ from source (the repo working tree) the canonical copy now wins; the published layout, which has no
3105
+ repo and no canonical copy, still uses the bundle.
3106
+ - **Installing onto the source deleted it.** `installSkillTo` removes the destination before copying,
3107
+ so when destination _was_ the source (a cwd-relative install inside the repo) it deleted the
3108
+ canonical skill and then had nothing to copy from. Same-path installs are now a no-op that reports
3109
+ `already the canonical copy — left as is`.
3110
+
3111
+ - 1158420: Fixes from a parallel cold-agent sweep: a chain typo no longer crashes every command, and `inspect` stops over-promising on hand-written PRNGs.
3112
+
3113
+ **An unknown `ABX_CHAIN` printed a raw Node stack trace — from every command.** Chain-derived values
3114
+ were resolved at module scope, in `token-api` (which the CLI imports) and in the CLI itself, so the
3115
+ throw happened during module evaluation, before `main()` existed to catch it. `ABX_CHAIN=mainnet abx
3116
+ doctor` dumped an internal source path and exited 1 — including from the one command whose job is to
3117
+ tell you what is wrong with your environment. Those resolutions are lazy now, and the CLI validates
3118
+ the variable up front with an answer rather than a crash: unknown values list the shipped chains, and
3119
+ a mainnet-shaped value says plainly that ABX is testnet-only today.
3120
+
3121
+ **`abx inspect` reported "(no PRNG)" for a hand-written seeded generator — with the _stronger_
3122
+ reproducibility verdict attached.** The `seeded` check only recognized p5's `randomSeed(`, so a
3123
+ vanilla LCG or xorshift matched no branch and fell through to "traits look derived from the
3124
+ seed/params directly". That is the common case, not an edge one — the skill's own canonical
3125
+ dependency-free example hand-rolls an LCG, and all three sketches written by agents in the sweep hit
3126
+ it. A hand-rolled generator now gets the `careful` verdict and is told the truth: deterministic and
3127
+ reproducible on-chain, but only by porting that exact generator and call order into Solidity.
3128
+
3129
+ Also: `--yes` is now documented in `deploy-code --help` (its own placeholder-identity refusal already
3130
+ told you to pass it), and the `--onchain-uri` raster warning now names the two routes that actually
3131
+ deliver a no-server image instead of only one.
3132
+
3133
+ Found by the 2026-08-03 parallel sweep (8 cold Sonnet/Haiku agents, isolated sandboxes).
3134
+
3135
+ - Updated dependencies [1158420]
3136
+ - Updated dependencies [1158420]
3137
+ - Updated dependencies [1158420]
3138
+ - @artblocks/abx-sdk@0.1.0-alpha.6
3139
+ - @artblocks/abx-token-api@0.1.0-alpha.9
3140
+ - @artblocks/abx-indexer@0.1.0-alpha.7
3141
+ - @artblocks/abx-storage@0.1.0-alpha.6
3142
+
3143
+ ## 0.1.0-alpha.12
3144
+
3145
+ ### Minor Changes
3146
+
3147
+ - feba8c2: A resolver is no longer an object store: effect outputs split into **bound** and **referenced**
3148
+ (`specs/protocol/effects.md → Bound vs referenced`), and the artifact registry enforces the split.
3149
+
3150
+ An output is **bound** iff a binding stitches its _content_ into the metadata JSON (today exactly
3151
+ `render/traits` → `attributes`); everything else is **referenced** — the projection carries its URL,
3152
+ or it only appears in the `artifacts` manifest. That one distinction decides who holds the bytes, and
3153
+ it is now the wire rule rather than a runner constant.
3154
+
3155
+ - **`POST /v1/effect-artifacts` derives the mode from the binding, and refuses both mismatches.**
3156
+ Bytes for a referenced output → `400` (the resolver redirects either way, so the bytes buy no
3157
+ capability and cost it storage, retention and egress). A locator for a bound output → `400` (its
3158
+ content is assembled into `tokenURI`; a pointer there used to be recorded and then silently never
3159
+ stitch — a wrong answer served confidently). Bound content is capped at **64 KB**, and a locator
3160
+ that only the producer could resolve (loopback/private host, presigned expiring URL) is rejected.
3161
+ The resolver never fetches a locator while handling the write, and serves registered locators by
3162
+ `302` — never by proxying.
3163
+ - **Bound content moved out of byte custody** into the artifact row (`effect_artifacts.bytes`). Two
3164
+ distinct rules, deliberately not one: a node **MUST** serve and stitch bound content only at the
3165
+ token's current settled `inputsHash`, and it **MAY** drop superseded content whenever it likes
3166
+ (nothing may read it, and it is re-creatable). The reference drops eagerly, on each bound
3167
+ registration, so it holds at most `64 KB × minted × bound outputs` — but retention is a service
3168
+ policy, not an obligation. Either way "conforming means holding a bounded amount of JSON in the
3169
+ database you already run" is now literally true: a resolver in the publish topology needs no object
3170
+ storage at all.
3171
+ - **`abx-effects-publish/v1` is gone** (not deprecated): the two routes ride `abx-control-plane/v1`.
3172
+ Once referenced output is locator-only, accepting a registration is a database insert, so the
3173
+ capability flag described a distinction that no longer exists. A service that won't take a caller's
3174
+ artifacts refuses on the credential (`403`) — interfaces describe wire grammar, tokens describe
3175
+ permission. The interface ids are also explicitly **all-or-nothing**, and the conformance fixture
3176
+ now checks that every route a declared interface names actually answers.
3177
+ - **The runner declares bound outputs** (`EffectOutputDecl.bound`), refuses to start when it has a
3178
+ publish token but a backend that can't name a locator, preflights the descriptor + credential
3179
+ before spending a render, and **latches** on a permanent (4xx) publish failure instead of
3180
+ re-rendering every sweep forever. Skips now re-register rows, so a transient publish failure heals
3181
+ without a re-render.
3182
+ - **The CLI refuses the impossible combination up front**: `abx render --remote`, `abx effects`
3183
+ against a remote resolver, and `abx deploy-effects` all require a backend that can name a reachable
3184
+ URL — `cloud` (S3/R2 + public base), `ipfs`, or `arweave`, named as **peers**. Derived output is
3185
+ re-creatable, so the protocol has no preference among schemes: a chosen `https://` gateway or
3186
+ bucket URL is exactly as legitimate as `ipfs://`/`ar://`, and reachability — not durability — is
3187
+ the requirement. Rendering **co-located** with the resolver remains fully supported on any backend,
3188
+ including `fs`.
3189
+
3190
+ Breaking for producers that relied on pushing media bytes to a resolver: publish a locator instead,
3191
+ or co-locate. Breaking for clients that read `abx-effects-publish/v1` from a descriptor.
3192
+
3193
+ ### Patch Changes
3194
+
3195
+ - Updated dependencies [feba8c2]
3196
+ - @artblocks/abx-sdk@0.1.0-alpha.5
3197
+ - @artblocks/abx-token-api@0.1.0-alpha.8
3198
+ - @artblocks/abx-indexer@0.1.0-alpha.6
3199
+ - @artblocks/abx-storage@0.1.0-alpha.5
3200
+
3201
+ ## 0.1.0-alpha.11
3202
+
3203
+ ### Minor Changes
3204
+
3205
+ - 67b686b: `abx contracturi`, and the read plane stops answering a bare 404 to three different problems.
3206
+
3207
+ Both halves come from one real failure: an agent driving a hosted resolver wanted collection
3208
+ metadata, pattern-matched off `/t/{chainId}/{address}/{id}`, dropped the token id, got a bare `404`,
3209
+ and reported the service as broken. The documented route (`/c/{chainId}/{address}`) was right there —
3210
+ but there was also no command to just _ask_, and the 404 gave it nothing to correct.
3211
+
3212
+ - **New `abx contracturi <address>`** — the collection-level counterpart of `tokenuri`. Reads
3213
+ `contractURI()` (ERC-7572) from the contract, **follows it**, and decodes: a `data:` URI inline
3214
+ (the on-chain lane), an `https://` URL by fetching it (the off-chain lane). A contract commits its
3215
+ own metadata base on-chain (`contractURIBase`), so the chain — not a doc, not a service
3216
+ descriptor — is the authoritative answer to where a project's metadata lives. Nobody needs to
3217
+ hand-build a resolver URL. When the fetch fails, the message says so plainly: the URL came from
3218
+ the chain, so a bad status is about the _service_ (unregistered project · wrong chain · down),
3219
+ never a mistyped path.
3220
+ - **Read-plane responses now carry a machine `code`**, so the three causes of "no metadata came
3221
+ back" are distinguishable — they were one indistinguishable `{"error": "…"}` `404`:
3222
+ - `400 invalid_request` — a real route, wrong shape. Names the correct template, and carries
3223
+ `didYouMean` when the fix is obvious (a `/t/…` missing its token id → `/c/{chainId}/{address}`).
3224
+ - `404 unknown_route` — this node serves nothing at that path; the body lists what it does serve.
3225
+ - `404 not_registered` — the path and chain were fine; this node doesn't index that contract.
3226
+ - `400 unsupported_chain` — wrong chain, plus the `chains` this node does serve. Was a bare `404`;
3227
+ now matches what the control plane already answered for the same condition.
3228
+ - `ServiceErrorCode` gains `unknown_route`. The spec's Errors section now covers the read plane too,
3229
+ with a **MUST** on distinguishing the three misses — and an explicit **MUST NOT** on treating
3230
+ route templates as per-node discoverable configuration. The route grammar is fixed by the
3231
+ `abx-token-api/v1` interface; these responses are diagnostics, not a discovery mechanism.
3232
+ - **The conformance fixture checks all of it** (`pnpm conformance <base-url>`), so any provider can
3233
+ self-verify in one command. Also fixed: the documented `pnpm conformance -- <base-url>` form
3234
+ parsed `--` as a flag and swallowed the base URL, printing usage instead of running.
3235
+
3236
+ ### Patch Changes
3237
+
3238
+ - Updated dependencies [67b686b]
3239
+ - @artblocks/abx-sdk@0.1.0-alpha.4
3240
+ - @artblocks/abx-token-api@0.1.0-alpha.7
3241
+ - @artblocks/abx-indexer@0.1.0-alpha.5
3242
+ - @artblocks/abx-storage@0.1.0-alpha.4
3243
+
3244
+ ## 0.1.0-alpha.10
3245
+
3246
+ ### Minor Changes
3247
+
3248
+ - a72723d: A standard indexing lifecycle, and registration that no longer blocks on a slow chain RPC
3249
+ (specs/self-host-toolkit/remote-services.md → The indexing lifecycle).
3250
+
3251
+ - **Fixed: a slow register triggered a retry storm.** The SDK's per-attempt timeout (30s) plus its
3252
+ retry ladder meant a cold reconstruct that outran one request was **re-POSTed up to four times**,
3253
+ each starting another full replay against the RPC that was already too slow to answer — and the
3254
+ caller then saw "nothing responded" even though the registration was durable and indexing was
3255
+ underway. A timed-out register now asks whether it landed (a status read) instead of re-POSTing, and
3256
+ the resolver coalesces concurrent catch-ups for one project into a single run.
3257
+ - **`POST /v1/projects` answers in two conformant shapes, discriminated by HTTP status:** `200` with
3258
+ the completed summary, or `202` + `{accepted, project: {status}}` when catch-up is deferred. The
3259
+ registration is normatively **durable before catch-up** and visible on the list immediately, so a
3260
+ flaky RPC makes for a slower backfill rather than a lost add. No `?wait=`/`Prefer:` negotiation — the
3261
+ status code is the discriminator, and clients handle both. The reference resolver answers _by
3262
+ deadline_ (`ABX_REGISTER_DEADLINE_MS`, default 8s): the common case (a fresh deploy) stays
3263
+ synchronous with real counts; only the pathological case defers.
3264
+ - **Closed lifecycle enum + error classes, on the status and list routes:**
3265
+ `queued | backfilling | live | stale | failed`, plus credential-free
3266
+ `error.class ∈ {rpc_unavailable, rpc_rate_limited, not_abx_contract, internal}` (fixed per-class
3267
+ messages, never a scrubbed upstream string). Status gains top-level `headBlock` (so lag / % complete
3268
+ is computable without knowing a service has a watcher) and `attempts`; the list carries `status` +
3269
+ the error class, so a client renders "3 live, 1 backfilling, 1 failed (rpc_rate_limited)" in one
3270
+ request. SDK: `IndexStatus`, `IndexErrorClass`, `isAccepted()`, `indexProgress()`,
3271
+ `classifyIndexError()`, and `AbxServiceClient.awaitIndexed()` — one wait loop for the CLI, the
3272
+ effects runner, and any hosted agent.
3273
+ - **The same five words on your own node.** `abx status [address] [--remote [name|url]] [--watch]`:
3274
+ bare is the node summary (now with each project's state), an address gives lifecycle + scan floor +
3275
+ blocks-indexed-vs-head + cause, and `--remote` asks a service. (`status` = who is serving it and how
3276
+ fresh; `state` = what the chain says. Both `--help` texts now say so.)
3277
+ - **New observability the self-hosted node never had:** the chain watcher marks projects `stale` when
3278
+ it falls far behind head or its ticks keep failing (previously visible only in the node's log),
3279
+ re-queues a backfill interrupted by a restart (previously left registered-but-empty until a manual
3280
+ `abx index`), and retries a `failed` catch-up on exponential backoff instead of hammering a
3281
+ rate-limited RPC every tick. Lifecycle rows live in their own table: they survive a projection wipe
3282
+ and are never clobbered by a re-add.
3283
+ - **CLI:** `abx add|index --remote` prints `registered — backfilling…`, polls to `live`, then prints
3284
+ the same summary a synchronous service would have given; `--no-wait` returns at the 202 and names
3285
+ the command to check later. A post-op nudge (`ownerops`) never blocks on someone else's backfill.
3286
+ A caught-up project with **0 events** now warns instead of printing ✓ (a real ABX clone always emits
3287
+ a spine, so zero means wrong chain/floor or an RPC that didn't serve the logs).
3288
+ - **Conformance fixture** accepts either register shape, asserts durable-before-catch-up, lifecycle
3289
+ membership, `headBlock`, that a deferred catch-up actually reaches `live`, and that no error message
3290
+ carries a URL.
3291
+ - Fixed `scripts/mock-remote-service.mts`, which imported the token API by a path that resolved
3292
+ against `scripts/` and could silently fall back to a _published_ build outside the repo — the
3293
+ fixture was testing the last release instead of the working tree. The fixture also re-points
3294
+ scenarios by their fixture header now, so a new one can't keep a dead contract address.
3295
+
3296
+ Found by a cold-agent sweep over the above (10 parallel clean rooms, haiku + sonnet) and fixed here:
3297
+
3298
+ - **`abx status --remote <name>` with no address** parsed the flag itself as the address and sent it
3299
+ as a URL path segment.
3300
+ - **A register whose catch-up already failed** was announced as "registered — failed (…is catching
3301
+ up…)", and with `--no-wait` it exited 0 and then claimed the provider "now serves" the project. A
3302
+ known failure is now an error in both lanes — there is nothing left to wait for.
3303
+ - **A `failed` status said what broke but not whose problem it was.** Both the failure error and
3304
+ `abx status` now carry a per-class action line ("the SERVICE can't reach its chain RPC — not your
3305
+ key, address, or chain…"), plus a `follow` line naming `--watch`, so a red word isn't a dead end.
3306
+ - **A `live` project showed a misleading completion percentage.** `toBlock` only advances when a
3307
+ project has _events_, so a fully current project on a busy chain read as `2/202 (0%)`.
3308
+ `indexProgress()` now returns a ratio only while `backfilling`; `live` reads "caught up", `stale`
3309
+ reads "not tracking head right now".
3310
+ - **`--remote-token` was misattributed on a 401** — the error blamed `ABX_REMOTE_<NAME>_TOKEN` even
3311
+ when the caller passed an override, making the override look ignored at exactly the moment someone
3312
+ is testing a replacement key.
3313
+ - **`not_registered` on a read** (status/reindex) now names the register command instead of echoing a
3314
+ 404, and a 5xx carrying a failure `class` becomes a wait-vs-broken error.
3315
+ - **`abx verify`'s summary** read `✓ 0/1 up to date` for a project with no off-chain renders at all —
3316
+ "zero of one succeeded" to two independent reviewers. It now says "nothing to render for this
3317
+ project", and otherwise leads with polarity ("N of M token(s) current").
3318
+ - **`abx doctor` now reports named remotes** and flags a credential stored under a name the CLI does
3319
+ not read (`ABX_REMOTE_<NAME>_KEY`). That fault presents as "it acts like I never gave it a key" and
3320
+ previously only surfaced from `abx remote <name>` — which a creator reaches _after_ doctor.
3321
+ - **Skill: the `npx --no-install abx version` probe was documented as failing cleanly.** It doesn't —
3322
+ npm will run any `abx` binary already in the npx cache, which in a real sweep reported a months-old
3323
+ build as the project's CLI (and if a plain `npx abx` ever ran on that machine, the bare name is a
3324
+ squatted package). The skill now probes `./node_modules/.bin/abx` directly.
3325
+ - Also documented: how a multi-word provider name folds into `ABX_REMOTE_<NAME>_*`, and what
3326
+ `watching: no` means on a status readout.
3327
+
3328
+ A second sweep round over those fixes caught three more, including one the first round's fix created:
3329
+
3330
+ - **`abx verify --remote` never checked byte integrity at all** — both of its lanes only ask "is there
3331
+ a current render / is this a placeholder", and a green ✓ from that was standing in for "the served
3332
+ bytes match the on-chain commitment". A reviewer hit the worst version of this: `--remote` (the form
3333
+ the skill tells you to use for a hosted project) reported ✓ on a token whose bytes genuinely did NOT
3334
+ hash-match, while bare `abx verify` on the same project reported `✗ keccak256 MISMATCH`. It now calls
3335
+ the service's own purpose-built `GET /api/project/:addr/verify` (which holds both the bytes and the
3336
+ chain) and reports that verdict separately from the render summary — and when it _can't_ run that
3337
+ check (no credential, older node) it says "byte integrity NOT checked" instead of leaving a ✓ to
3338
+ imply it passed. The remedy names both real causes (an unbridged durable locator vs. bytes that only
3339
+ exist on the creator's machine, which a hosted resolver can never serve).
3340
+ - **`abx verify` exited 0 while printing a byte MISMATCH**, in both lanes — nothing could gate on it.
3341
+ An integrity mismatch now fails the command; a missing render or placeholder is a normal state and
3342
+ still exits 0.
3343
+ - **`abx add --dry-run` silently ignored the flag and performed the registration**, local or remote.
3344
+ It now refuses and names the read-only commands (`abx state`, `abx status`) instead. Silently doing
3345
+ the thing when the caller asked to preview is the one outcome that must never happen.
3346
+ - **`PRAGMA busy_timeout` was set third in the store schema**, after the WAL switch it needs to
3347
+ protect — so two processes opening the same store at once (parallel CLI runs, or a co-located
3348
+ effects runner starting alongside the resolver) could fail outright with `database is locked`
3349
+ instead of waiting the moment out. It is now the first statement.
3350
+
3351
+ A third round, re-running the scenario that found the verify bug (it now catches it) turned up:
3352
+
3353
+ - **`abx add --remote` ended on "it now serves <url>"** — true about indexing, silent about whether
3354
+ the bytes are right, and two reviewers stopped there and reported a blank page as fixed. It now names
3355
+ the byte check (`abx verify <addr> --remote <name>`) in the same breath.
3356
+ - **`canonical:` collapsed a tri-state.** `isCanonical` is `true | false | null`, and both readouts
3357
+ printed "unverified" for the last two — so "the chain says this is NOT a clone of the configured
3358
+ factory" (a trust finding) looked identical to "the check never ran" (no factory on this chain, normal
3359
+ on a dev chain). Two reviewers read the collapsed word as a second failure sitting next to a real one.
3360
+ - **`abx verify --remote` gave a bare `fetch failed`** for an endpoint that was down, where
3361
+ `abx status --remote` names the host and asks whether it's running. Two commands, one condition, two
3362
+ error qualities — now consistent.
3363
+ - `abx status <addr>` printed the address twice when the project has no name.
3364
+ - Skill: registering with a provider on **their** hostname vs. a domain you control decides whether
3365
+ leaving later costs a transaction — now stated in the managed-provider section, before you bake it.
3366
+
3367
+ ### Patch Changes
3368
+
3369
+ - Updated dependencies [a72723d]
3370
+ - @artblocks/abx-sdk@0.1.0-alpha.3
3371
+ - @artblocks/abx-indexer@0.1.0-alpha.4
3372
+ - @artblocks/abx-token-api@0.1.0-alpha.6
3373
+ - @artblocks/abx-storage@0.1.0-alpha.3
3374
+
3375
+ ## 0.1.0-alpha.9
3376
+
3377
+ ### Minor Changes
3378
+
3379
+ - 3745bd3: Remote services are first-class: a provider-neutral control plane, named remotes, and a service
3380
+ descriptor (specs/self-host-toolkit/remote-services.md).
3381
+
3382
+ - **Control plane moves to `/v1`** (hard cutover; `/admin/*` is gone — redeploy self-hosted nodes):
3383
+ `POST/GET /v1/projects`, `DELETE|reindex|status /v1/projects/{chainId}/{address}`,
3384
+ `POST /v1/effect-artifacts|effect-status`. `chainId` is explicit and validated everywhere; every
3385
+ error carries a machine `code` (`unauthorized` 401 · `forbidden` 403 · `unsupported_chain` ·
3386
+ `not_registered` · `disabled`) replacing the old prose-sniffed 404. One bearer guard replaces the
3387
+ four inline copies; OPTIONS preflight now answers so browser clients can send `Authorization`.
3388
+ - **`GET /.well-known/abx-service`** — the public service descriptor: `interfaces` (present iff
3389
+ actually enabled), `chains`, `auth` (with optional provider-set `signupUrl`/`docsUrl` via
3390
+ `ABX_SERVICE_*` env), and `render.attached` (managed rendering, probed from the runner's
3391
+ `/health`) — so an agent can match a project to a provider before registering.
3392
+ - **Named remotes in the CLI**: `--remote <name>` reads `ABX_REMOTE_<NAME>_URL`/`_TOKEN`
3393
+ (a managed provider's per-account key — never falls back to `ABX_RESOLVER_ADMIN_TOKEN`);
3394
+ `--remote <url> [--remote-token <t>]` for ad-hoc targets; bare `--remote` stays the self-host
3395
+ default. New `abx remote [name|url]` inspects a service's descriptor and the projects a token
3396
+ sees. `migrate --from/--to` accept names; only the destination needs a credential.
3397
+ - **The SDK gains its first HTTP surface**: `AbxServiceClient` (endpoint + injected bearer, retry
3398
+ on 5xx/network, immediate typed `AbxServiceError` on 4xx) — shared by the CLI and the effects
3399
+ runner's publish lane. `envSuffix()` is the shared env-name normalization.
3400
+ - **Conformance fixture**: `pnpm conformance -- <base-url> [--token …]` self-verifies any
3401
+ implementation; the e2e suite runs it against the reference container.
3402
+
3403
+ ### Patch Changes
3404
+
3405
+ - 3745bd3: Membrane fixes found by a 20-run cold-agent regression sweep (sonnet + haiku, black-box clean rooms).
3406
+
3407
+ - **A 500 no longer leaks the node's own credentials.** An upstream RPC failure surfaced viem's
3408
+ message, which embeds the endpoint URL — and a keyed RPC URL _is_ a credential, so on a
3409
+ multi-tenant provider any tenant who could provoke a 500 got the operator's RPC key. The cause now
3410
+ goes to the node's log; the wire gets a generic message, an `internal_error` code, and a
3411
+ credential-free hint about the failure class. Normative in the remote-services spec.
3412
+ - **The service client no longer discards a 5xx body.** The service's own words survive the retry
3413
+ ladder, and an exhausted ladder says "failed — last response …" rather than mislabelling a
3414
+ server that answered as "unreachable". The descriptor probe drops to 2 attempts, so a typo'd
3415
+ provider URL fails in ~1s instead of grinding 5s, with distinct "nothing responded" vs
3416
+ "answered, but serves no descriptor" messages.
3417
+ - **Conflicting duplicate `.env` keys are reported.** First-wins is unchanged, but a stale second
3418
+ `ABX_RPC_URLS_<CHAIN>` line silently pointed the CLI at another network while every check read
3419
+ green — the symptom surfaced far away as "no contract at that address". Only genuinely
3420
+ _conflicting_ duplicates warn (identical repeats stay quiet).
3421
+ - **"No contract at …" errors now name the endpoint they asked** (redacted), because a chain key
3422
+ can't distinguish two RPCs that both claim it.
3423
+ - **A misnamed remote credential is called out.** `ABX_REMOTE_<NAME>_KEY` (or `_API_KEY`, `_SECRET`)
3424
+ is not read, so it previously reported as "no token" while the value sat in `.env`; both
3425
+ `abx remote` and the register path now name the near-miss and the correct `_TOKEN` name.
3426
+ - **`--dry-run` explains a missing trust anchor instead of crashing.** On a chain where the
3427
+ configured factory has no code, `deploy`/`deploy-series` previews died inside
3428
+ `predictDeterministicAddress` with a raw `returned no data ("0x")`; they now report it the way
3429
+ `abx predict` and a real deploy already did, and name the two ways forward. The keyless
3430
+ `--for` requirement also fails fast instead of after several steps of output.
3431
+ - **The placeholder-identity guard is one shared predicate** across all three deploy commands
3432
+ (it was copy-pasted, and one copy's comment claimed coverage it didn't have), pinned by a new
3433
+ regression test: a real send refuses tool defaults, a preview only warns.
3434
+ - **The served dashboard's empty state no longer prints `pnpm abx demo`** — a contributor-only
3435
+ invocation on a page a published user sees.
3436
+
3437
+ - Updated dependencies [3745bd3]
3438
+ - Updated dependencies [3745bd3]
3439
+ - @artblocks/abx-sdk@0.1.0-alpha.2
3440
+ - @artblocks/abx-token-api@0.1.0-alpha.5
3441
+ - @artblocks/abx-indexer@0.1.0-alpha.3
3442
+ - @artblocks/abx-storage@0.1.0-alpha.2
3443
+
3444
+ ## 0.1.0-alpha.8
3445
+
3446
+ ### Patch Changes
3447
+
3448
+ - 4074766: Fix the dashboard's block-explorer links, which were hardcoded to `https://sepolia.etherscan.io`. Every
3449
+ link on the page — contract, owner, implementation, each event's tx — pointed at Ethereum Sepolia no
3450
+ matter which chain was being served, so a dashboard for a normal `abx demo` (Base Sepolia by default)
3451
+ sent you to an explorer where the contract does not exist. The SDK now derives the explorer from viem's
3452
+ own chain metadata (`explorerUrl`/`chainById`), so adding a chain brings its explorer along and no
3453
+ hand-maintained table can drift. The CLI's separate copy of that table is collapsed into the same
3454
+ helper; `signer.ts` was already doing it correctly.
3455
+
3456
+ Drop the demo's opening "trust anchor" step. It asserted that only the canonical factory can make a
3457
+ token that _is_ an ABX token, which is false — anything following the protocol's event spine is an ABX
3458
+ token, and the factory is one route to that, not the definition. The same overclaim in the index step
3459
+ ("verified real") now reports the fact instead: made by the canonical factory, or not. The demo opens
3460
+ on the renderer step, and resolving the factory no longer prints a line of its own there.
3461
+
3462
+ - Updated dependencies [4074766]
3463
+ - @artblocks/abx-sdk@0.1.0-alpha.1
3464
+ - @artblocks/abx-token-api@0.1.0-alpha.4
3465
+ - @artblocks/abx-indexer@0.1.0-alpha.2
3466
+ - @artblocks/abx-storage@0.1.0-alpha.1
3467
+
3468
+ ## 0.1.0-alpha.7
3469
+
3470
+ ### Patch Changes
3471
+
3472
+ - c16c0f0: Shorten the update check's cache from 24h to **6h**. A day-long cache let someone work a whole
3473
+ session — deploys included — against a CLI that had been superseded that morning, without ever being
3474
+ told. In a fast-moving alpha line that's the common case, not the edge one.
3475
+
3476
+ The agent skill now **acts** on version drift instead of reporting it. It already reconciled
3477
+ skill⇄CLI drift, but nothing told it what to do when the CLI's own `update available` notice fired —
3478
+ so on an agent-driven surface that notice landed as a human-shaped message and got relayed or
3479
+ ignored. The skill now upgrades the CLI itself (matching how it was installed), resyncs the skill, and
3480
+ reloads before deploying, with the reason stated: a stale CLI can hold canonical addresses that have
3481
+ since moved, and a mid-run `… is not a function` is usually exactly this.
3482
+
3483
+ Docs: the Upgrading page now leads with the two install shapes in the same order as the quickstart
3484
+ (global, then per-project) instead of opening on a one-off `npx` invocation, drops the update-check
3485
+ silencing details (they live in the CLI reference, alongside `version`), and answers the question the
3486
+ old "Upgrade the SDK" section provoked — upgrading the CLI upgrades the SDK it pins, so a CLI user has
3487
+ nothing separate to maintain; you install the SDK only when writing TypeScript against ABX directly.
3488
+
3489
+ ## 0.1.0-alpha.6
3490
+
3491
+ ### Patch Changes
3492
+
3493
+ - c21ea30: `abx demo` now runs **fully on-chain** by default, and speaks plainly.
3494
+
3495
+ Its generative SVG is inlined into the contract, so no `http://localhost:8787` is baked into the
3496
+ on-chain `tokenURI` base. The old default shipped a first-ever token that resolved for nobody but its
3497
+ author — broken on every marketplace, dead the moment `abx serve` stopped — and taught that as the
3498
+ normal shape of an NFT. It also undercut the demo's own claim: with the art on-chain, "rebuilt from the
3499
+ chain alone" now covers the image, not just the metadata. The final dashboard still starts, but is
3500
+ framed as a local viewer rather than infrastructure. Hand the demo an `--image`, a `--backend`, or a
3501
+ `--public-base-url` and it switches back to off-chain custody, where that split is real and worth
3502
+ teaching.
3503
+
3504
+ Fixed alongside it: on every on-chain lane (1/1 and Series, wallet and `--onchain-image`) the deploy
3505
+ step announced `URIs point at http://localhost:8787` even though nothing was baked — in the demo, two
3506
+ lines after promising no localhost anywhere.
3507
+
3508
+ The walkthrough's teaching text is rewritten in plain language, with the protocol vocabulary kept as a
3509
+ dim aside instead of the headline: steps are now "Who vouches for this token?", "Mint it", "What the
3510
+ chain knows now", and "The moment of truth · delete it all". The read-back step reads from the real
3511
+ source per lane — `tokenURI(0)` on the contract when fully on-chain (what a marketplace actually does,
3512
+ and it proves no server is involved), the resolver when custody is off-chain.
3513
+
3514
+ The browser-wallet signing prompt now says to connect a wallet holding testnet ETH and links a faucet.
3515
+ That was the one funding surface with no guidance: on `--sign` without `--for` the address isn't known
3516
+ until the wallet connects, so the up-front balance check never ran and an empty wallet's first signal
3517
+ was a failed transaction.
3518
+
3519
+ - c21ea30: Make the update check independent of which npm dist-tag prereleases are published under. It now
3520
+ resolves the `latest` tag and, when the running version is a prerelease, that version's own channel
3521
+ tag (`alpha`, `beta`, …), reporting whichever is newer. Previously it only asked for `latest`, which
3522
+ works today only because `ci:publish` passes no `--tag`; the day a stable release ships and
3523
+ prereleases move to `--tag alpha`, the nudge would have gone silent for prerelease users with
3524
+ nothing erroring. The on-disk cache is now keyed by release channel too, so switching between the
3525
+ alpha and stable lines re-checks instead of serving a day-stale answer.
3526
+ - Updated dependencies [c21ea30]
3527
+ - @artblocks/abx-indexer@0.1.0-alpha.1
3528
+ - @artblocks/abx-token-api@0.1.0-alpha.3
3529
+
3530
+ ## 0.1.0-alpha.5
3531
+
3532
+ ### Patch Changes
3533
+
3534
+ - afb36a3: Fix three bugs that made the documented first run (`abx demo`) look broken.
3535
+
3536
+ **A 0-event index was reported as success, and served.** `eth_getLogs` is
3537
+ read-after-write inconsistent on load-balanced RPCs: `waitForTransactionReceipt`
3538
+ resolves against a node that has the block, then the log query lands on one that
3539
+ doesn't yet and returns nothing for a block we _know_ contains our deploy. The CLI
3540
+ took that single read at face value, printed `✓ reconstructed 0 events`, stored the
3541
+ empty projection and served an empty dashboard — no events, no token, nothing to
3542
+ look at. This reproduced 100% of the time against `https://sepolia.base.org`, which
3543
+ is the **default endpoint when there is no `.env`** — so the documented first run
3544
+ was the path that broke. Every post-deploy index (`deploy`, `demo`, `deploy-series`,
3545
+ `deploy-code`, `add`) now re-scans with backoff instead of trusting one read, since
3546
+ having just minted means the spine cannot legitimately be empty. If it still comes
3547
+ back empty, that is now reported as a failure naming `abx index <addr> --full` as
3548
+ the recovery, rather than dressed up as a ✓.
3549
+
3550
+ **The demo told you to press a button that does not exist.** It ended with _"Open
3551
+ the dashboard, then hit 'Re-index from chain'"_. The dashboard is read-only —
3552
+ re-index and verify are admin actions that 404 unless the node has an
3553
+ `ABX_RESOLVER_ADMIN_TOKEN` — so that control isn't there to find. It now points at
3554
+ the spine table (which _is_ the reconstruction) and at `abx index <addr> --full` to
3555
+ replay it. The dashboard's own note also stopped printing a **shortened** address
3556
+ inside a copy-pasteable command, and no longer suggests `--remote` for a local node.
3557
+
3558
+ **Re-running the demo crashed after spending a transaction.** With port 8787 already
3559
+ busy — an `abx demo` or `abx serve` in another terminal, i.e. exactly what happens
3560
+ when you run the demo twice — the deploy went through, was paid for, and _then_ the
3561
+ serve step died with an unhandled Node `EADDRINUSE` stack trace. The port is now
3562
+ preflighted before anything irreversible, so it refuses with "Nothing was deployed"
3563
+ and suggests `--port <n+1>`.
3564
+
3565
+ **`abx demo` is now a walkthrough rather than a smoke test.** The docs point a
3566
+ first-time reader here, but it asserted its interesting claims without ever showing
3567
+ them — "reconstructed 9 events — no provider involved" with the events invisible.
3568
+ It now teaches, continuously and without pauses (so agents and CI behave
3569
+ identically): it explains why the trust anchor is the factory and not a spoofable
3570
+ event, names what goes on chain versus what stays a keccak256 commitment, prints
3571
+ the reconstructed event spine with what each event told us (tagged ABX vs plain
3572
+ ERC-721/7572), then **deletes its own local projection and replays it from the
3573
+ deploy block**, comparing a sha256 fingerprint of every chain-derived field to prove
3574
+ it lands on identical state. Finally it reads the token back the way a marketplace
3575
+ would. `abx deploy` is unchanged — it stays terse.
3576
+
3577
+ Adds `Store.dropProjection(address)` / `SelfHostIndexer.dropProjection()`: discard a
3578
+ project's reconstructed projection while keeping its registration, so the next index
3579
+ rebuilds from the deploy block. That's the primitive the rebuild proof needs, and it
3580
+ makes "the projection is a disposable cache" a checkable claim rather than a comment.
3581
+
3582
+ - Updated dependencies [afb36a3]
3583
+ - @artblocks/abx-token-api@0.1.0-alpha.2
3584
+
3585
+ ## 0.1.0-alpha.4
3586
+
3587
+ ### Minor Changes
3588
+
3589
+ - 48d96c5: Add **`abx preview`** — the studio lane for code projects: run the program on
3590
+ localhost, live, while it's still being made. No chain, no key, no deploy.
3591
+
3592
+ `abx preview --script art.js --schema "palette:HexColor:TokenOwner"` serves a
3593
+ studio on `localhost:8788` — shuffle seeds, drive every declared PostParam from a
3594
+ real typed input (a color picker for `HexColor`, a dropdown for `Select`), read the
3595
+ traits the program actually reported, and `/grid` to see N seeds at once. `/view`
3596
+ is the bare document. The program is re-read from disk on every render, so the loop
3597
+ is edit-and-refresh with no watcher and no restart.
3598
+
3599
+ It serves the **same template-mode document the generator serves** — the real
3600
+ `abx.js`, the real canonical `tokenData` shape, the real dependency script tags —
3601
+ with a synthetic bytes32 seed in place of a minted one, so what you approve is what
3602
+ deploys. There is no second copy of the runtime to drift from. (`@artblocks/abx-token-api`
3603
+ now exports `ABX_JS` and the inline-safety escapes so the CLI can build that exact
3604
+ document rather than reimplement it.)
3605
+
3606
+ `--shoot <dir>` drives the same server headlessly to PNGs plus a `traits.json` and
3607
+ exits — that's how an agent, which can't open a browser, sees what the creator sees.
3608
+ It also flags the two silent killers: no frame reporting traits (⇒ no marketplace
3609
+ `attributes` on any lane) and identical traits across every seed (⇒ the program
3610
+ isn't reading `abx.tokenData.seed`, so the drop mints N identical tokens).
3611
+
3612
+ Why a live server rather than a screenshot sweep: a still flattens every time-based
3613
+ piece, and `abx.done()` exists precisely because stills need a settle point — so a
3614
+ proof sheet of an animated piece is a set of arbitrary frozen frames presented as
3615
+ the work. Frames render into a fixed 1000×1000 viewport and are scaled to fit their
3616
+ slot, so a program that hardcodes its canvas size is never clipped to its own corner.
3617
+
3618
+ Skill: add **Phase 0**, an explicit authoring phase that puts every deploy decision
3619
+ (hosting, thumbnail, traits, storage, wallet, supply, royalties, name/symbol) off
3620
+ the table until the creator says ship, and points at `abx preview` for the loop. The
3621
+ skill previously went straight from "the creator brought an idea" to "pick a deploy
3622
+ lane", so an agent helping someone _design_ a piece front-loaded infrastructure
3623
+ questions while there was still nothing to look at.
3624
+
3625
+ Skill: also teach CLI resolution — probe project-local (`npx --no-install abx`)
3626
+ before global, install `@artblocks/abx-cli` (not `@artblocks/abx-sdk`, which ships
3627
+ no binary), and default to a per-project install. The skill previously assumed `abx`
3628
+ was already on PATH and gave no bootstrap path at all, so agents improvised — one
3629
+ installed the SDK, then went global unprompted.
3630
+
3631
+ ### Patch Changes
3632
+
3633
+ - 48d96c5: `abx demo` now honors the signing lane instead of silently discarding it. It
3634
+ hard-forced the hot (env-key) lane, so `abx demo --sign` failed confusingly when
3635
+ no key was configured — and, worse, signed from the env key when one _was_
3636
+ present, even though the operator had explicitly asked for their browser wallet.
3637
+ `--sign` (and `--for` to pin the connecting wallet) now work on `demo` exactly as
3638
+ they do on `deploy`.
3639
+
3640
+ `abx demo --unsigned` and `abx demo --dry-run` are now refused with an
3641
+ explanation rather than ignored: both skip the broadcast, and `demo` indexes and
3642
+ serves the contract it just deployed, so there would be nothing to index. Use
3643
+ `abx deploy --unsigned` / `abx deploy --dry-run` for those lanes.
3644
+
3645
+ Also documents the `demo` signing flags in `abx help demo`.
3646
+
3647
+ - Updated dependencies [48d96c5]
3648
+ - @artblocks/abx-token-api@0.1.0-alpha.1
3649
+
3650
+ ## 0.1.0-alpha.3
3651
+
3652
+ ### Patch Changes
3653
+
3654
+ - 6fbb62e: Restructure `abx doctor` for clarity. Two tiers now: PASS/FAIL checks (✓/✗) for
3655
+ things that are working or broken — agent skill (shown first and prominently; a
3656
+ missing/stale skill is a ✗ since agent-driven use is the primary UX), RPC,
3657
+ factory, storage — and an "Optional — depends how you deploy" block (·) for
3658
+ path-dependent setup (signing lane, resolver URL, Arweave key). `⚠` is no longer
3659
+ used for values that are unset-but-fine (it read as noise); it's reserved for a
3660
+ genuine gotcha such as a range-capped-only RPC. The RPC report collapses to one
3661
+ line.
3662
+ - 6fbb62e: Fix the update-check hint to invoke the CLI by its scoped package name
3663
+ (`npx @artblocks/abx-cli@latest <command>`). The bare `npx abx` resolves an
3664
+ unrelated squatted `abx` package on npm, not this CLI, so the old hint pointed
3665
+ users at a command that fails. (Installed users — global or per-project — run
3666
+ `abx` / `npx abx` as before; only the zero-install invocation needs the scoped
3667
+ name.)
3668
+
3669
+ ## 0.1.0-alpha.2
3670
+
3671
+ ### Minor Changes
3672
+
3673
+ - 02fc0e0: Make `abx skill install` agent-aware and strictly version-lock the skill to the CLI.
3674
+
3675
+ `skill install` now installs to the directories every supported agent actually reads: by default
3676
+ both `.claude/skills` (Claude Code) and the neutral `.agents/skills` (Cursor, Codex CLI, Gemini CLI,
3677
+ GitHub Copilot), so one command covers the whole ecosystem. `--agent claude|cursor|codex|gemini|copilot`
3678
+ narrows it to one; `--target <dir>` now writes the skill folder straight under `<dir>`.
3679
+
3680
+ The skill's version now lives in its `SKILL.md` frontmatter (`metadata.version`), stamped at release
3681
+ to equal the CLI version (replacing the old `.abx-skill-version` sidecar). Because the version travels
3682
+ inside the skill file, the drift check finds a stale copy no matter how it was installed — including
3683
+ `npx skills add` — and `abx doctor` reports the skill/CLI version match explicitly. A publish-time gate
3684
+ (and `pnpm ci:version` stamping) keeps the two from ever shipping out of lockstep.
3685
+
3686
+ ## 0.1.0-alpha.1
3687
+
3688
+ ### Patch Changes
3689
+
3690
+ - b5d201f: Add `abx version` and a notify-only update check. On startup `abx` now checks npm at most once a
3691
+ day and, when a newer release is published, prints an upgrade hint to stderr (never stdout, so it
3692
+ never corrupts machine-readable output an agent is parsing). It also nudges to reinstall the agent
3693
+ skill when the installed copy has drifted behind the CLI. Opt out with `ABX_NO_UPDATE_CHECK=1` or
3694
+ `--no-update-check`; it is a no-op in CI and when offline.