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

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