@artblocks/abx-sdk 0.1.0-alpha.2 → 0.1.0-alpha.21

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 (144) hide show
  1. package/CHANGELOG.md +2203 -0
  2. package/README.md +131 -0
  3. package/dist/abi/generated.d.ts +8502 -129
  4. package/dist/abi/generated.d.ts.map +1 -1
  5. package/dist/abi/generated.js +40 -22
  6. package/dist/abi/generated.js.map +1 -1
  7. package/dist/abi/index.d.ts +2645 -168
  8. package/dist/abi/index.d.ts.map +1 -1
  9. package/dist/abi/index.js +34 -7
  10. package/dist/abi/index.js.map +1 -1
  11. package/dist/anchors.d.ts +319 -0
  12. package/dist/anchors.d.ts.map +1 -0
  13. package/dist/anchors.js +703 -0
  14. package/dist/anchors.js.map +1 -0
  15. package/dist/chains.d.ts +15 -9
  16. package/dist/chains.d.ts.map +1 -1
  17. package/dist/chains.js +19 -15
  18. package/dist/chains.js.map +1 -1
  19. package/dist/chunks.d.ts +53 -23
  20. package/dist/chunks.d.ts.map +1 -1
  21. package/dist/chunks.js +68 -6
  22. package/dist/chunks.js.map +1 -1
  23. package/dist/clients.d.ts +23 -11
  24. package/dist/clients.d.ts.map +1 -1
  25. package/dist/clients.js +17 -18
  26. package/dist/clients.js.map +1 -1
  27. package/dist/create2.d.ts +85 -1
  28. package/dist/create2.d.ts.map +1 -1
  29. package/dist/create2.js +159 -2
  30. package/dist/create2.js.map +1 -1
  31. package/dist/creator-token.d.ts +132 -0
  32. package/dist/creator-token.d.ts.map +1 -0
  33. package/dist/creator-token.js +183 -0
  34. package/dist/creator-token.js.map +1 -0
  35. package/dist/deploy.d.ts +234 -14
  36. package/dist/deploy.d.ts.map +1 -1
  37. package/dist/deploy.js +289 -111
  38. package/dist/deploy.js.map +1 -1
  39. package/dist/deployments.d.ts +63 -0
  40. package/dist/deployments.d.ts.map +1 -1
  41. package/dist/deployments.js +202 -28
  42. package/dist/deployments.js.map +1 -1
  43. package/dist/deps.d.ts +122 -5
  44. package/dist/deps.d.ts.map +1 -1
  45. package/dist/deps.js +248 -6
  46. package/dist/deps.js.map +1 -1
  47. package/dist/env.d.ts.map +1 -1
  48. package/dist/env.js +8 -0
  49. package/dist/env.js.map +1 -1
  50. package/dist/errors.d.ts +94 -0
  51. package/dist/errors.d.ts.map +1 -0
  52. package/dist/errors.js +126 -0
  53. package/dist/errors.js.map +1 -0
  54. package/dist/execute.d.ts +115 -0
  55. package/dist/execute.d.ts.map +1 -0
  56. package/dist/execute.js +142 -0
  57. package/dist/execute.js.map +1 -0
  58. package/dist/gateways.d.ts +79 -0
  59. package/dist/gateways.d.ts.map +1 -0
  60. package/dist/gateways.js +156 -0
  61. package/dist/gateways.js.map +1 -0
  62. package/dist/generator-document.d.ts +58 -0
  63. package/dist/generator-document.d.ts.map +1 -0
  64. package/dist/generator-document.js +124 -0
  65. package/dist/generator-document.js.map +1 -0
  66. package/dist/generator.d.ts +43 -1
  67. package/dist/generator.d.ts.map +1 -1
  68. package/dist/generator.js +29 -0
  69. package/dist/generator.js.map +1 -1
  70. package/dist/index.d.ts +18 -3
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +18 -3
  73. package/dist/index.js.map +1 -1
  74. package/dist/inspect.d.ts +48 -0
  75. package/dist/inspect.d.ts.map +1 -0
  76. package/dist/inspect.js +295 -0
  77. package/dist/inspect.js.map +1 -0
  78. package/dist/migrate.d.ts +41 -0
  79. package/dist/migrate.d.ts.map +1 -0
  80. package/dist/migrate.js +142 -0
  81. package/dist/migrate.js.map +1 -0
  82. package/dist/mime.d.ts +11 -0
  83. package/dist/mime.d.ts.map +1 -0
  84. package/dist/mime.js +40 -0
  85. package/dist/mime.js.map +1 -0
  86. package/dist/node.d.ts +10 -0
  87. package/dist/node.d.ts.map +1 -0
  88. package/dist/node.js +24 -0
  89. package/dist/node.js.map +1 -0
  90. package/dist/onchain-uri.d.ts +110 -0
  91. package/dist/onchain-uri.d.ts.map +1 -0
  92. package/dist/onchain-uri.js +277 -0
  93. package/dist/onchain-uri.js.map +1 -0
  94. package/dist/ops.d.ts +507 -14
  95. package/dist/ops.d.ts.map +1 -1
  96. package/dist/ops.js +848 -32
  97. package/dist/ops.js.map +1 -1
  98. package/dist/policy.d.ts +58 -0
  99. package/dist/policy.d.ts.map +1 -0
  100. package/dist/policy.js +36 -0
  101. package/dist/policy.js.map +1 -0
  102. package/dist/probe.d.ts +29 -0
  103. package/dist/probe.d.ts.map +1 -1
  104. package/dist/probe.js +104 -9
  105. package/dist/probe.js.map +1 -1
  106. package/dist/reconstruct.d.ts +94 -2
  107. package/dist/reconstruct.d.ts.map +1 -1
  108. package/dist/reconstruct.js +432 -97
  109. package/dist/reconstruct.js.map +1 -1
  110. package/dist/resume.d.ts +96 -0
  111. package/dist/resume.d.ts.map +1 -0
  112. package/dist/resume.js +95 -0
  113. package/dist/resume.js.map +1 -0
  114. package/dist/script-chunks.d.ts +24 -0
  115. package/dist/script-chunks.d.ts.map +1 -0
  116. package/dist/script-chunks.js +63 -0
  117. package/dist/script-chunks.js.map +1 -0
  118. package/dist/service.d.ts +206 -9
  119. package/dist/service.d.ts.map +1 -1
  120. package/dist/service.js +228 -18
  121. package/dist/service.js.map +1 -1
  122. package/dist/spine.d.ts +47 -4
  123. package/dist/spine.d.ts.map +1 -1
  124. package/dist/spine.js +0 -0
  125. package/dist/spine.js.map +1 -1
  126. package/dist/staging.d.ts +124 -0
  127. package/dist/staging.d.ts.map +1 -0
  128. package/dist/staging.js +134 -0
  129. package/dist/staging.js.map +1 -0
  130. package/dist/tokendata.d.ts +62 -2
  131. package/dist/tokendata.d.ts.map +1 -1
  132. package/dist/tokendata.js +79 -17
  133. package/dist/tokendata.js.map +1 -1
  134. package/dist/tokens.d.ts +120 -0
  135. package/dist/tokens.d.ts.map +1 -0
  136. package/dist/tokens.js +317 -0
  137. package/dist/tokens.js.map +1 -0
  138. package/dist/types.d.ts +108 -4
  139. package/dist/types.d.ts.map +1 -1
  140. package/dist/util.d.ts +74 -0
  141. package/dist/util.d.ts.map +1 -0
  142. package/dist/util.js +106 -0
  143. package/dist/util.js.map +1 -0
  144. package/package.json +11 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,2203 @@
1
+ # @artblocks/abx-sdk
2
+
3
+ ## 0.1.0-alpha.21
4
+
5
+ ### Minor Changes
6
+
7
+ - c9f7aeb: Fold the burn, and make "canonically ABX v2" sayable — from abx-services' 2026-08-20 reply
8
+ (`reviews/2026-08/services-reply-docs-23.md`). All off-chain: no contract changed, no address moved.
9
+
10
+ **SDK — `foldSpine` now folds an ERC-721 burn, and `TokenState.minted` is replaced by `lifecycle`
11
+ (BREAKING).** A burn wrote the zero address into `TokenState.owner` — where nothing downstream could
12
+ tell it from a holder — and `minted` latched `true` at mint and was never recomputed, so a burned
13
+ token reconstructed as live. `lifecycle: 'unminted' | 'live' | 'burned' | 'no-live-copies'` replaces it,
14
+ and `owner` is `null` for a burned id rather than a sentinel. An enum rather than the `minted` +
15
+ `burned` pair the report asked for: a boolean whose `false` has two meanings leaves the burn case one
16
+ forgotten field away from rendering as "not yet minted", which is exactly what our own CLI did.
17
+
18
+ **`'burned'` is terminal and ERC-721-only; an edition at zero live copies is `'no-live-copies'`.** The
19
+ first cut of this enum shared `'burned'` across both standards, on the grounds that "one vocabulary on
20
+ both lanes" was the honest shape. It wasn't: the correct _response_ to destruction differs by standard
21
+ (a 721 id is gone forever and must `410`; an edition id can mint again and must not), so a shared word
22
+ put every consumer one forgotten `contractType` branch away from serving `410 Gone` for a token the
23
+ contract still resolves — and our own migration note told the first consumer to map the shared word
24
+ straight onto their `410` sites. abx-services caught it in review before it published. Splitting the
25
+ word moves the rule out of prose and into the type: **`lifecycle === 'burned'` is safe to treat as
26
+ permanent on either standard, with no carve-out**, which let the reference resolver's `isEditionState`
27
+ guard go away entirely. Pinned from both ends — no edition history can fold to `'burned'`, and the
28
+ route asserts its own standard-blindness.
29
+
30
+ **The two lanes now agree id-for-id.** The same review found `TokenRow.lifecycle` (head reads) reporting
31
+ `'unknown'` for a fully-burned edition id while the fold reported `'burned'` for that same id — under a
32
+ docstring claiming the two lanes used the same words. That is the sibling-drift class this repo treats
33
+ as a bug (see `TokenState.maxSupply`'s note, the last time one field name carried two meanings). Both
34
+ lanes now answer `'no-live-copies'` there: the fold _could_ distinguish never-minted from fully-burned
35
+ and deliberately does not, because the distinction has no consumer. `'unknown'` survives for the one
36
+ case where a head read genuinely cannot say — a 1/1 has no mint frontier, so a reverting `ownerOf`
37
+ there is evidence of nothing.
38
+
39
+ What the latched boolean was costing, all in our own tree: the effects harness re-rendered destroyed
40
+ tokens on every sweep, forever; `onchain-uri`'s probe reads the LOWEST live id, so burning token 0 made
41
+ a healthy collection's on-chain-URI lane report as **broken**; the resolver served metadata — and the
42
+ pre-mint _warming placeholder_, i.e. "still loading" forever — for ids the contract disowns; `mintedCount`
43
+ never went down; and `abx state` printed "not yet minted" for a token that had been destroyed.
44
+
45
+ **SDK — `BurnConfigured` and `MaxRoyaltyBpsUpdated` fold into `ProjectState.burnable` /
46
+ `.maxRoyaltyBps`.** Both events shipped in the ABI and in `SPINE_EVENT_DOC` and reached no field of
47
+ state; the upgrade memo then told consumers the doc entry _was_ the fold, which it has never been (it
48
+ supplies `register`/`what` on the event record, full stop). Both are tri-state: `null` means the spine
49
+ never stated it — an implementation with no `burn` entrypoint and an unpublished ceiling — which is not
50
+ `false`, and not 10%. The ceiling is deliberately not nested inside `royalty`, since clearing a royalty
51
+ nulls that field while the ceiling stays binding on chain.
52
+
53
+ **SDK — a fold-coverage guard, because this was the second instance in four days.** `DefaultMaxSupplySet`
54
+ did the same thing on 2026-08-17. `SPINE_EVENT_NO_FOLD` now lists the events that deliberately reach no
55
+ state _and why_ (a ping whose value is a head read, a factory's own log, a minter sibling, an allowance),
56
+ and `spine-fold-coverage.test.ts` asserts every decodable event is either folded or excused. A new event
57
+ is unfolded and unexcused until someone decides which.
58
+
59
+ **SDK — a burned 1/1 no longer vanishes from `listTokens`.** The id range fell back to `totalSupply`
60
+ (live: mints − burns) when a token type exposes no `nextTokenId`, so burning a 1/1's only token made the
61
+ listing enumerate ZERO ids — `abx tokens` printed nothing at all, indistinguishable from a collection
62
+ with no tokens. A 1/1's id space is `{0}` forever regardless of what is live. Found by burning a real
63
+ token on Sepolia rather than by any fixture, which is the only way this one surfaces.
64
+
65
+ **SDK — head reads can now say `burned`.** `nextTokenId` is a mint frontier that only rises, so an id
66
+ below it whose `ownerOf` reverts was minted and destroyed. `TokenRow.lifecycle` (`'live'` / `'burned'` /
67
+ `'unminted'` / `'unknown'`) and `TokenListing.burnedCount` (`nextTokenId − totalSupply`) drop out of that,
68
+ with no event log. `'unknown'` stays a real member where the chain declines to say: a 1/1 has no frontier,
69
+ and an edition's `supply == 0` cannot distinguish never-minted from fully-burned.
70
+
71
+ **SDK — `burned` joins `ServiceErrorCode`, paired with `410 Gone`.** A remote token API had nothing
72
+ honest to say about a destroyed id and was sending `410` with `code: 'not_registered'` — a statement
73
+ about the _contract_. The rule behind the pairing is the general one: **a resolver answers what the
74
+ contract's own URI getter answers.** A burned 721's `tokenURI` reverts `NonexistentToken`, so serving a
75
+ document would contradict the contract; an ERC-1155's `uri(id)` has no existence gate and a zero-supply
76
+ id can mint again, so **an edition never 410s** — it serves, with `supply: 0`.
77
+
78
+ **SDK — `readCollectionPolicy`, `canonicalFactories`, `verifyProvenance`: protocol knowledge moves out
79
+ of the CLI.** The CLI was declaring its own ABI fragments for `burnable`/`maxRoyaltyBps` and reading
80
+ them itself in two places, so no other integrator could reach either fact. `canonicalFactories(chainId)`
81
+ replaces two copies of the six-anchor enumeration inside `anchors.ts` — the list whose completeness _is_
82
+ the trust model. `verifyCanonical` gains `opts.factories`, which **replaces** the manifest set rather
83
+ than appending to it, so a multi-tenant operator's pinned allowlist can drive the gate without silently
84
+ widening it.
85
+
86
+ **SDK — anchor generations: "canonically ABX v2", not a bare `false`.** `verifyCanonical` reported
87
+ "deployed by an ABX factory since replaced" and "deployed outside the toolkit entirely" identically —
88
+ its own docstring admitted it — and the first is a perfectly good collection. `ANCHOR_GENERATIONS` keys
89
+ each generation of the six trust anchors by the **on-chain core version** its clones report, and
90
+ `verifyProvenance` returns `{canonical, generation: 'current' | 'prior' | null, coreVersion, factory,
91
+ anchorsAnswered}`. The version is on the clone itself, so the answer is chain-verified rather than a
92
+ manifest claim, and it keeps working after a factory retires. Retired generations never feed
93
+ `verifyCanonical`: provenance is not trust — a superseded generation can predate a security remediation.
94
+ Pre-launch testnet generations are deliberately not backfilled.
95
+
96
+ **Redeploy process — a token-layer runtime change is a new anchor generation.** It bumps
97
+ `AbxVersion.CORE_VERSION` and moves the SDK's `isCurrent*` probes in lockstep. That is now a checklist
98
+ step (`contracts/README.md`, `CLAUDE.md`) _enforced by_ `deployments.test.ts`: recorded generations must
99
+ have unique, increasing core versions and the newest must match the constant in `AbxVersion.sol`, so a
100
+ batch cannot record a generation without bumping or bump without recording. The gap that prompted it: the
101
+ 2026-08-20 batch added `burn()`, `burnable()`, `maxRoyaltyBps()` and `reduceMaxRoyaltyBps()` to the CORE
102
+ base — burn is not an extension, so no extension version moved either — and left the constant at 2, so
103
+ `abxVersion() == 2` cannot tell a burn-capable token from a pre-burn one.
104
+
105
+ **CLI — the royalty ceiling is shown with its rate, and headroom is named.** A ceiling above the live
106
+ rate is royalty the owner can add unilaterally, and a listing page never shows it. `abx state` prints the
107
+ pair and, when there is headroom, says the useful thing: reducing the cap **to** the current rate is what
108
+ turns "5% today" into "5%, provably, forever". (Named by abx-services as their `royalty-headroom` flag —
109
+ a marketplace can compute it, so a creator should hear it from us first.)
110
+
111
+ **Reference stack — the same fixes, so the reference is exemplary rather than the counter-example.**
112
+ `mintedCount` keeps its name and counts LIVE ids, with `burnedCount` added only when non-zero (so a
113
+ project with no burns serves byte-identical JSON, and a consumer's fixtures keep telling the truth);
114
+ the indexer projection carries `lifecycle`; the effects status route and the render sweep skip destroyed
115
+ ids; the dashboard badges a burned token instead of calling it minted; and `abx verify` / the migrate and
116
+ re-point probes never choose a burned token as their subject.
117
+
118
+ **CLI — `--send` is accepted on the deploy paths, and two lane flags is refused.** Every deploy's help
119
+ advertises the signing lanes as `--send hot/env key · --sign wallet page · --unsigned print tx`, in 25
120
+ places, and `--send` was the one of the three the deploy allowlist rejected: typing what the help showed
121
+ produced `unrecognized flag(s): --send` from the guard whose whole purpose is catching flags that would
122
+ be silently ignored — the guard firing on the tool's own documentation. Found by using the CLI as a cold
123
+ reader of its own `--help` while setting up an on-chain test. While there, lane resolution moved from
124
+ truthiness to **presence** (`--sign=` parses to `''`, which is falsy, so a caller who explicitly named
125
+ the wallet lane was routed to the unattended env key — the one direction of that bug that costs
126
+ something), and naming two lanes at once now refuses instead of resolving by an undocumented precedence.
127
+
128
+ **Packaging — every published tarball ships its CHANGELOG.** `files` was `['dist', 'LICENSE']` on the
129
+ SDK, indexer, storage, effects and token-api, so the only package whose release notes reached consumers
130
+ was the CLI. A downstream team upgrading the SDK had no CHANGELOG in the tarball and diffed two `dist/`
131
+ trees to find out what moved — then reported the release notes as missing, which cost a whole exchange
132
+ to adjudicate. One line each.
133
+
134
+ **Docs + spec.** The event spine gains a Burn section and the `MaxRoyaltyBpsUpdated` row, both with the
135
+ fold rules an indexer relies on; three stale deploy-event-order lists are corrected; the remote-services
136
+ error taxonomy gains the `410 burned` row and the edition carve-out; `owner-powers` explains headroom and
137
+ burn permanence; and `indexing-notes` states plainly that documenting an event is not folding it.
138
+
139
+ ## 0.1.0-alpha.20
140
+
141
+ ### Patch Changes
142
+
143
+ - 84ca9dd: Off-chain fixes from the 2026-08-19 production-readiness audit
144
+ (`reviews/2026-08/production-readiness-audit.md`). All are off-chain — no contract changed and no
145
+ address moved; the three NatSpec-precision items the audit also raised ride the next redeploy batch
146
+ instead (`docs/10-backlog.md` → _Contracts — the next redeploy batch_, B47).
147
+
148
+ **SDK — `HexColor` decode now masks to 24 bits, matching the chain (L-1).** `decodeScalarParam` for a
149
+ `HexColor` value greater than `0xFFFFFF` returned `#1ffffff` (7+ hex digits); the on-chain
150
+ `TokenDataLib.decodeScalar` masks with `& 0xffffff` and returns `#ffffff`. The governed write validates
151
+ `v <= 0xFFFFFF`, but the raw owner setter does not, so an out-of-domain value can be stored and later
152
+ governed by a `HexColor` schema — and the two serving planes would then decode it differently, splitting
153
+ `inputsHash`. The SDK now masks identically. Pinned on both sides so it cannot drift again:
154
+ `decodeScalarParam('HexColor', 0x1ffffffn) === '#ffffff'` (SDK) and the twin `test_DecodeScalars`
155
+ assertion in `contracts/test/FieldRenderer.t.sol`.
156
+
157
+ **SDK — gateway-prefix projection no longer trims (L-7).** `projectGatewayPrefix` dropped the `.trim()`
158
+ on the on-chain `abx_gateway_*` value: the deployed `_gatewayPrefix` returns the stored bytes verbatim,
159
+ so trimming here made the two planes disagree on a whitespace-padded prefix. The field store rejects an
160
+ empty value, so a set field is always non-empty. Clean prefixes (every real one) are unaffected.
161
+
162
+ **SDK — `permissionlessSalt` docstring hardened (L-3).** Now states explicitly: never use it for a
163
+ pre-published or pre-funded address — a third party can occupy the predicted address first with their own
164
+ `InitParams`. For any reserved address, use `saltFor` (its deployer-bound prefix is front-run-proof). No
165
+ behavior change; the shipped CLI/skill already deploy through `saltFor`.
166
+
167
+ **CLI — the edition schema advisory calls out a holder-writable `seed` by name (L-2).**
168
+ `editionSchemaAdvisory` already warned that a `TokenOwner` param on an edition is shared per-id
169
+ (last-writer-wins); it now adds a sharper note when that param is `seed`, because the normally-immutable
170
+ generative seed becomes re-rollable by _any_ holder of the id — changing the artwork for every
171
+ co-holder. The on-chain behavior is deliberately unchanged (the reassignable-seed feature is
172
+ buyer-verifiable via `paramSchema("seed")`); the guardrail is this warning, not a contract restriction.
173
+ A controller contract on the `Address` leg remains the way to govern it.
174
+
175
+ - 84ca9dd: Finish the burn + royalty-cap surfacing, from the 2026-08-20 w6 agent sandbox sweep. All off-chain —
176
+ no contract changed, no address moved; the on-chain features were verified working end to end (a cold
177
+ agent deployed `--burnable --royalty-cap 42`, minted, burned, and proved the cap enforced on Sepolia).
178
+ The sweep's convergent finding was that the two new **permanent** deploy-time decisions were invisible
179
+ after you set them; this makes them visible everywhere they're decided or read, and adds the owner's
180
+ missing reduce lever.
181
+
182
+ - **New: `abx set-royalty-cap <address> --cap <0-10000>`** — the owner's reduce-only royalty-ceiling
183
+ lever (`RoyaltyExtension.reduceMaxRoyaltyBps`), the "after" the deploy-time "reduce-only after"
184
+ promise never had. Both ways the chain refuses are checked locally before signing: a value that
185
+ wouldn't decrease (`RoyaltyCapNotReduced`) or that would drop below the live royalty rate
186
+ (`RoyaltyCapBelowRoyalty`). SDK: `prepareReduceMaxRoyaltyBps`.
187
+ - **The deploy readout now shows `royalty cap` and `burnable` on every lane** (1/1, series, code, and
188
+ all three edition twins), whenever set. Critically it flags an **auto-raised** cap
189
+ (`royalty cap 25% (auto-raised to fit the royalty)`): omitting `--royalty-cap` while setting a
190
+ royalty above 10% silently raises the permanent ceiling to match, which was previously invisible.
191
+ - **`abx state` now surfaces `royaltyCap` and `burnable`** (human + `--json`), the post-deploy
192
+ verification surface, for both the 721 and edition readouts.
193
+ - **The skill documents the royalty cap** — the identity decision (`decisions.md`), the confirm-
194
+ identity step (`SKILL.md`), and a new `set-royalty-cap` owner-op row (`operating.md`); previously the
195
+ reduce-only ceiling feature had zero skill coverage.
196
+ - **Help/doc corrections:** `set-royalty --help` range `0-1000`→`0-10000` (stale from the hard-cap
197
+ era); `deploy-series --help` now lists `--royalty-cap`/`--burnable`; `deploy --help` states the cap
198
+ auto-raises; `abx inspect`'s trait-feasibility deep-dive points at public docs, not a repo path.
199
+
200
+ ## 0.1.0-alpha.19
201
+
202
+ ### Patch Changes
203
+
204
+ - b1c333d: **Asking for a 15% royalty built a transaction that reverted on chain.** `RoyaltyExtension` caps every
205
+ ABX token at **1000 bps (10%)** and reverts `RoyaltyTooHigh()` above it, and no token type overrides that.
206
+ But client-side validation allowed the full ERC-2981 `0–10000` range — and the CLI's own error text
207
+ offered `10000 = 100%` as a worked example. So a creator asking for an ordinary 15% got a fully built,
208
+ fully signed transaction that failed on chain; on the wallet lane they approved it in their own wallet
209
+ and paid the gas to find out. Both usage strings said `<0-10000>`, and so did two public docs.
210
+
211
+ Now `MAX_ROYALTY_BPS` (SDK) mirrors the contract ceiling and both `prepareSetRoyalty` and the CLI's
212
+ `parseRoyaltyBps` validate against it, so the refusal is instant, local and free, and it names the cap
213
+ and the revert. Regression tests cover it from both sides — including `1500`, the value that used to
214
+ sail through. Two existing tests had to be corrected: they asserted the 0–10000 bound, which is how this
215
+ survived.
216
+
217
+ Three more surfaces that contradicted themselves or the chain:
218
+
219
+ - **`abx ping-uri --help` claimed "Permissionless by design … ANY signer may call it (no owner check)"
220
+ four lines below its own `OWNER-ONLY` header** — and `Uri1155.pingURI` is `onlyOwner`. A non-owner
221
+ following the paragraph built a reverting tx.
222
+ - **`site/content/docs/reference/contracts.mdx`** described the pre-audit library architecture: it omitted
223
+ `AbxMetadataLib` (the fourth delegatecalled library, and the one linked by **all six** token types, not
224
+ three) and still said `SeriesCode` "rides the ceiling", where `deployments.mdx` — written after the same
225
+ redeploy — says both code types now sit under EIP-170 with room to spare.
226
+ - **`deployments.mdx`'s own `specVersion()` example printed `# → 10`** under a table declaring the renderer
227
+ spec v11. And **`operate.mdx`'s self-correction had rotted**: it warned that `abx refresh`'s advisory was
228
+ stale about editions and ERC-4906, but that advisory was fixed — the doc was now the stale one.
229
+
230
+ Found by two read-only audits (29 doc files, 19 spec files) that verified every claim against contracts,
231
+ compiled ABIs, SDK and live `--help` output before reporting. Both independently re-confirmed the
232
+ no-burn property, the v11 gateway design, all ~26 canonical addresses, and the on-chain storage
233
+ thresholds.
234
+
235
+ - b1c333d: An agent using this skill built its own smart-contract system, and neither it nor the creator noticed
236
+ that the collection had stopped being a canonical ABX clone. Canonicity is decided by which contract
237
+ deployed a token and can never be added afterwards, so the fix is a gate before the first send plus a
238
+ readout that makes the loss discoverable.
239
+
240
+ **`abx state` now reports canonicity first.** It read owner, supply, royalty and renderer off any
241
+ ERC-721-shaped address and said nothing about whether it was a factory clone — so a hand-rolled contract
242
+ was described exactly as confidently as a canonical one, and the tool whose whole job is "what IS this
243
+ contract?" left nothing behind for the creator to find. `verifyCanonical` (SDK) probes all six trust
244
+ anchors' `isAbxClone` in one multicall and returns a true tri-state; a `false` prints what was lost, that
245
+ marketplaces and the App Store recognize collections by that signal, and that the only remedy is a fresh
246
+ deploy through the factory plus moving holders. `null` (no anchors on this chain, or an RPC failure) is
247
+ never shown as a "no".
248
+
249
+ **The skill gained the boundary rule it never had.** Its trust material lived on the _last line_ of the
250
+ file, written for someone verifying a clone from outside, and the "don't hand-roll" rules that existed
251
+ were narrow — preview pages, ABI writes, token queries, nothing about contracts. There is now a
252
+ Read-first gate: if the ask seems to need something the deploy commands don't do, stop and put it to the
253
+ creator in words, because building your own contracts is a legitimate choice a creator can make and
254
+ making it _for_ them silently is not. Alongside it, the list of what the toolkit does **not** do — no
255
+ burn (verified: zero `burn` entrypoints in `contracts/src`, previously a parenthetical clause inside a
256
+ sentence about hooks), no secondary listings, no mainnet, fixed-price sales only, no post-deploy script
257
+ replace — and the two extension points that keep a collection canonical (`set-minter`, param hooks), with
258
+ the caveat that a `--transfer` hook is a **veto, not a trigger**: it can refuse a transfer but never cause
259
+ a mint or a burn, so it cannot implement "combine two into one".
260
+
261
+ Verified by two trap rooms — a creator asking for a burn-to-combine mechanic with "you've got my
262
+ go-ahead, I don't need the technical parts". Both Sonnet and Haiku refused to build a contract, cited the
263
+ canonicity loss, and returned options. The Sonnet room found the route that _preserves_ canonicity and
264
+ offered it first.
265
+
266
+ **SKILL.md was restructured** against its own "lean decision-tree router" norm, which it had drifted
267
+ ~40% past: **68,449 → 55,392 characters (−20%)**, longest bullet 2,876 → 1,465, bullets over 600 chars
268
+ 27 → 14, with depth moved into the reference files that already owned it (locks → `decisions.md`;
269
+ install/`.env` → `setup.md`, which was a 44-line stub; data plane, App Store and deploy mechanics →
270
+ `operating.md`). Also repaired: a **markdown table split in two** by a blockquote sitting between its
271
+ rows, and **four dangling anchor links** (three pre-existing) — all 96 internal links now resolve.
272
+ `setup.md` was retitled and reordered after a control room found the required install steps buried under
273
+ a title that promised RPC troubleshooting.
274
+
275
+ **Two contradictions the verification sweep caught**, both the same class as the rest of this week's
276
+ fixes. `deploy-code --dry-run` printed `render/storage ✓ fs + --image-base` a few lines below
277
+ `⚠ render storage home is fs … placeholder forever`, for the identical setup; the ✓ is legitimately
278
+ scoped to whether the `--image-base` target is a valid mutable bucket (two tests pin that), so the row now
279
+ states what it covers and points at the other line rather than appearing to overrule it. And **"not
280
+ backfillable" was overstated** in three places — the truth, which `code-projects.md` had right all along,
281
+ is that fixing a surface after deploy costs an owner-signed re-point plus a re-render on a collection that
282
+ showed a placeholder in between. Expensive and worth avoiding; not impossible.
283
+
284
+ ## 0.1.0-alpha.18
285
+
286
+ ### Patch Changes
287
+
288
+ - 77a6248: `abx deploy --bootstrap-factory` failed on the first run against any chain that did not already have
289
+ a factory — and succeeded on the second.
290
+
291
+ Every ABX singleton is deployed by CREATE2 through the keyless proxy, so the transaction is a **call
292
+ to that proxy**, not a contract creation, and `receipt.contractAddress` is null by protocol. Two of
293
+ the six factory bootstraps — the two oldest, the ERC-721 image ones — still read the address off the
294
+ receipt, so they threw `Factory deploy produced no contract address` _after_ the factory had actually
295
+ landed. Re-running then found the factory on chain and skipped the bootstrap entirely, which is why
296
+ this read as flakiness rather than a bug. `deployRenderer`, the library legs, and every newer factory
297
+ already computed the address; these two now do the same (`predictFactory()` / `predictSeriesFactory()`).
298
+
299
+ The blast radius was every fresh chain: a private chain, a local anvil, a sandbox — and the mock
300
+ provider fixture the hosted-services eval rooms are built on, which is how this surfaced. On a real
301
+ testnet the factories already exist, so nothing that ships today was affected.
302
+
303
+ Pinned by a regression test that fails on the old code two ways: behaviourally (a `send` that returns
304
+ a receipt with no `contractAddress`, exactly like the proxy does, must still yield the deterministic
305
+ address) and statically (no bootstrap in `deploy.ts` may derive an address from
306
+ `receipt.contractAddress`, so a seventh factory cannot reintroduce it).
307
+
308
+ - 77a6248: Fixes from the 2026-08-18 eight-room agent sweep of the content-addressed lanes (ipfs · arweave ·
309
+ preferred gateways). The v11 gateway projection worked end to end on a live testnet round trip — bare
310
+ CID on chain, one `set-gateway` tx, byte-identical content id before and after — but the surfaces
311
+ around it lied, hid, or degraded in five ways that cold agents hit immediately.
312
+
313
+ **Both `AbxGenerator` addresses in the manifest had a broken EIP-55 checksum.** The addresses were
314
+ right; the casing was mangled in transcription. viem validates checksums, so
315
+ `readContract`/`writeContract` against the recorded value threw `Address "0x2c1b7Cf6…" is invalid` —
316
+ `abx verify` could not run its on-chain-URI check on **either** testnet. Corrected in
317
+ `deployments.ts` and the docs mirror, with the code at both fixed addresses re-confirmed on chain
318
+ (identical bytecode, as CREATE2 requires). The per-entry equality tests stayed green through all of
319
+ it because they compared against the same mangled string, so the manifest now carries a **property
320
+ test**: every recorded address must be a valid checksum.
321
+
322
+ **A deploy narrated the upload gateway as if it were the served URL.** With
323
+ `--onchain-uri --backend ipfs`, the progress line printed the backend's own locator
324
+ (`https://gateway.pinata.cloud/ipfs/<cid>/0.png`) while the chain got a bare CID served from
325
+ somewhere else entirely — in one run, from `ipfs.io`, because that is the floor and no preference was
326
+ written. The line now shows the URL the token will actually carry, resolved through the same
327
+ precedence that decides what gets written (`--ipfs-gateway`/`--arweave-gateway` → `--gateway` for the
328
+ backend in use → env → floor), and says whether that prefix is the project's choice or the public
329
+ default filling a silence.
330
+
331
+ **`--ipfs-gateway` / `--arweave-gateway` were absent from every deploy command's `--help`.** They
332
+ appeared only in `set-gateway --help` and the skill's reference pages, so an agent reading the CLI
333
+ alone could not find the flags the CLI itself tells you to use. All three deploy commands now name
334
+ them, with the floors (`https://ipfs.io/ipfs/`, `https://arweave.net/`) and the upload-vs-serving
335
+ distinction stated where the decision is made.
336
+
337
+ **`abx storage upload` handed `abx attach` a locator that silently downgraded the attachment.** It
338
+ printed `abx attach <address> <key> https://gateway.pinata.cloud/ipfs/<cid>/file.png` — and `attach`
339
+ picks the on-chain representation from the scheme, so an `https://` locator stores a plain `url` with
340
+ the gateway host welded into the value: no `set-gateway` repoint, exactly the coupling the
341
+ content-addressed representations exist to remove. Following the command's own printed next step was
342
+ the wrong move — and the skill had promised the scheme form all along, so the doc was right and the
343
+ command was wrong. It now hands back `ipfs://<cid>/file.png` / `ar://<txid>/file.png` (both in the prose
344
+ hint and as `attachLocator` in `--json`), keeps the https URL as the browsable one, and says why they
345
+ differ.
346
+
347
+ **`.abx-self-host/` is now self-ignoring.** It holds this node's projection and, for the Arweave
348
+ backend, a signing-capable key that carries prepaid upload credits. This repo gitignores that
349
+ directory and the skill said so — but a _creator's_ repo does not, so a first `--backend arweave` run
350
+ could leave a key staged for commit with nothing having said a word. The CLI writes a `.gitignore`
351
+ containing `*` inside the directory before anything sensitive lands there: it ignores the whole tree
352
+ regardless of the enclosing repo's config, needs no edit to a file we don't own, and never overwrites
353
+ one that already exists.
354
+
355
+ The **local-gateway warning** also stopped over-claiming. It said a `127.0.0.1` gateway means "the
356
+ served image URL resolves only on THIS machine" — true when the gateway host was welded into the
357
+ field, false now that the field holds a bare CID, and it aimed the creator at the wrong repair. It now
358
+ names the damage that is still real: bytes pinned only to a local node cannot be retrieved by anyone,
359
+ and no gateway can serve content that was never pinned publicly.
360
+
361
+ Also: `abx storage status --json` no longer warns `unrecognized flag(s), ignored: --json` about a flag
362
+ its own usage documents and that visibly works (a readout contradicting itself is worse than no
363
+ readout), and the `--unsigned` epilogue names `abx add <address>` rather than `abx index <address>`,
364
+ which fails on a node that never registered the project — the common case for a tx handed to someone
365
+ else's signer.
366
+
367
+ ## 0.1.0-alpha.17
368
+
369
+ ### Minor Changes
370
+
371
+ - c5b8ec3: `ipfs` and `arweave` metadata fields now resolve on both planes, through a gateway the collection
372
+ chooses — renderer **spec v11**.
373
+
374
+ These are the two representations that are content-addressed, the two where the locator IS the
375
+ integrity hash, and the two this protocol tells creators to prefer. They were also the two the
376
+ on-chain renderer could not serve. So `abx deploy --onchain-uri --backend ipfs|arweave` worked around
377
+ it by baking a gateway HOST into a `url` field, which welded a hostname the creator could never
378
+ migrate and made `abx_provenance` report `source: url` for bytes that live on IPFS.
379
+
380
+ The fix separates the two facts that the baked URL had fused. The CID/txid stays in the field, as
381
+ identity, under that field's own lock. The HTTPS prefix becomes a project-wide preference in two
382
+ reserved collection-scope fields, `abx_gateway_ipfs` / `abx_gateway_arweave`, with `https://ipfs.io/ipfs/`
383
+ and `https://arweave.net/` as floors. The renderer, the canonical generator, and the off-chain
384
+ resolver all read those two fields and apply the same wrap, so a token served from the chain and from
385
+ a resolver produces the same URL.
386
+
387
+ A dead or slow gateway is now a **repoint**, not a rewrite:
388
+
389
+ ```bash
390
+ abx set-gateway 0xYourContract --ipfs https://your-dedicated.mypinata.cloud/ipfs/
391
+ ```
392
+
393
+ One transaction, every token, no re-upload — and it works on fields you have already locked, because
394
+ the locked value is the CID and the gateway was never in it.
395
+
396
+ **What changes for you**
397
+
398
+ - `--onchain-uri --backend ipfs|arweave` writes the bare CID (or `cid/{id}.ext` for the O(1) directory)
399
+ as an `ipfs`/`arweave` field instead of a gateway URL as `url`/`url-template`. `--backend cloud` is
400
+ unchanged — an HTTPS CDN locator _is_ the address.
401
+ - New `abx set-gateway <addr> [--ipfs <prefix>] [--arweave <prefix>]` (`none` clears to the public
402
+ default). Two flags, so a project can pay for a dedicated IPFS gateway and leave Arweave public.
403
+ - New `--ipfs-gateway` / `--arweave-gateway` on every deploy command. Plain `--gateway` (the
404
+ storage/upload gateway) seeds the preference for the backend in use, so passing it still does what
405
+ you meant. Nothing is written when no gateway is named — silence keeps the floor live.
406
+ - `abx set-field` refuses the two gateway keys and points at `set-gateway`, which validates the
407
+ prefix, the scope and the representation. Every way to set them by hand fails silently.
408
+ - The `display.gateway` contract param is **superseded and no longer read**. It could name only one
409
+ prefix for both schemes and existed only on code projects.
410
+ - SDK: `projectGatewayPrefix`, `projectGatewayUrl`, `gatewayPrefixFrom`, `contentIdFromLocator`,
411
+ `GATEWAY_FIELD`, `GATEWAY_FLOOR`. For a host running its own resolver, `ABX_IPFS_GATEWAY` /
412
+ `ABX_ARWEAVE_GATEWAY` are now a **floor**: a project that stated a preference on chain gets that
413
+ preference from every conforming resolver, and host config only fills a silence.
414
+
415
+ **New canonical addresses** (both testnets; nothing else moved — no token implementation, factory, or
416
+ `initialize` ABI changed):
417
+
418
+ | Contract | Address |
419
+ | -------------------------------- | -------------------------------------------- |
420
+ | `AbxMetadataRenderer` (spec v11) | `0x85C1aE1F076d808fF7c1729F21B85038Fa16105E` |
421
+ | `AbxGenerator` (Sepolia) | `0xb7104AdFa6Fb5615e46E2a681A2Ff043B08fADB5` |
422
+ | `AbxGenerator` (Base Sepolia) | `0x2c1b7Cf6C54E4acBcB54FCc395f7Af88eB4fC8Ce` |
423
+
424
+ Also fixes a crash on `abx deploy-code --copies`: an undefined `bytes` reference threw a
425
+ `ReferenceError` at the end of the dry-run plan and, worse, at the confirmation prompt of a real
426
+ deploy.
427
+
428
+ - 5b29f53: Drop-in for every reconstruct caller; new exports for hosted/self-host watch loops so they stop
429
+ reimplementing `eth_getLogs` chunking and a second per-project fetch.
430
+
431
+ **`getLogsAdaptive` is public and accepts `Address | Address[]`.** Address-list chunking defaults to
432
+ 1000 (ordinary RPC tier cap) via `addressBatch` — an RPC opinion, not a protocol constant; `0`
433
+ disables splitting. Per-tick block windows stay with the watcher (the reference one still uses 5000).
434
+
435
+ **`reconstructFromLogs(client, prior, logs, {toBlock})`** is the fold / head-read half of
436
+ `reconstructIncremental` given logs the caller already holds. `toBlock` is the inclusive scan head
437
+ those logs cover, so a capped window cannot stamp past the last block actually scanned.
438
+ `reconstructIncremental` is now a getLogs + that function.
439
+
440
+ **A Transfer no longer re-downloads every on-chain script chunk.** Chunk content has no log;
441
+ `ScriptUpdated` is the ping. `applyHeadReads` keeps the prior digest unless that ping is in `fresh`
442
+ (or the prior digest is missing). Same change helps the single-address path.
443
+
444
+ The reference token-api watcher now calls `getLogsAdaptive` for the registered set and hands each
445
+ touched project's logs to `reindex({logs, toBlock})`, so the watch tick is the only getLogs.
446
+
447
+ ## 0.1.0-alpha.16
448
+
449
+ ### Minor Changes
450
+
451
+ - b5744a1: An RPC that has pruned its log history is now detected, named, and routed around
452
+
453
+ A public endpoint that no longer holds old logs does not fail your scan — it answers `eth_getLogs`
454
+ with `[]` and HTTP 200, which is a success. Everything downstream believed it:
455
+
456
+ - **`abx doctor` graded it `best`.** The archive probe was
457
+ `getLogs({address: zeroAddress, fromBlock: old, toBlock: old})` and counted any non-throw as archive
458
+ access — but `zeroAddress` never emits logs, so an empty result is exactly what a _perfect_ archive
459
+ node returns too. The assertion could not fail; it only ever caught endpoints that _error_ on old
460
+ blocks. `ARCHIVE_DEPTH` was also 100k blocks, which on a 2-second chain is inside the retained window
461
+ of the very endpoints that prune.
462
+ - **The client never failed over.** The read transport is a viem `fallback` across every configured
463
+ endpoint, and `fallback` rotates on an _error_. So every retry asked the same endpoint the same
464
+ question, and a project whose logs sit ready on the SECOND configured endpoint reconstructed as
465
+ empty.
466
+ - **`abx add` then registered the project with no state at all**, after grinding half a million blocks,
467
+ and suggested re-running `--full` "in a minute" — advice that can never work for a pruned index.
468
+
469
+ Measured on the two default Base Sepolia endpoints, same address and same window: one returns zero
470
+ logs for the project's entire history, the other returns them instantly. Ethereum Sepolia's keyless
471
+ default endpoint shows the same shape past a few hundred thousand blocks.
472
+
473
+ - **The probe asserts on something that must come back.** Blocks are retained by everyone; receipts
474
+ and the log index are what get pruned. `probeHistoryAt` (new SDK export) reads the probe block, asks
475
+ for one of its transactions' receipts, and — when that receipt carries a log — requires `getLogs` to
476
+ return that same log. No hardcoded address, no fixture block. `ARCHIVE_DEPTH` is now 500k.
477
+ It fails **safe**: a probe block with no transactions, or whose transactions logged nothing, keeps the
478
+ old lenient verdict rather than inventing a failure.
479
+ - **`abx doctor` names a reachable endpoint that can't serve history**, with the fault and the fix
480
+ ("history pruned ~500000 blocks back … list a full-archive endpoint FIRST in `ABX_RPC_URLS_<CHAIN>`").
481
+ Collapsing to the best endpoint hid this, and ordering is what decides who answers the scan.
482
+ - **An empty scan now retries each endpoint on its own** before giving up, and says which one served
483
+ the logs. Cheap by construction: each endpoint is first asked whether it holds history at _this
484
+ project's_ deploy block — three calls — and only one that passes gets a scan.
485
+ - **`SelfHostIndexer.reindex(address, {rpcUrl})`** pins a single endpoint instead of the pool, which is
486
+ what makes that rotation expressible. Clients are pooled per (chain, endpoint), so the default path
487
+ is unchanged.
488
+ - The final failure message now separates the two cases it had merged: a project you _just_ deployed
489
+ (transient, retry) from one that is not new (retention — check `abx doctor`).
490
+
491
+ Found by direct probing during the 2026-08-17 agent sweep, after an `abx add` of a 12-day-old Base
492
+ Sepolia edition reconstructed zero of its 18 events.
493
+
494
+ ### Patch Changes
495
+
496
+ - 9c287c0: `abx inspect` no longer lists trait keys when there is no real `abx.traits(` call.
497
+
498
+ A string that _mentioned_ `abx.traits({foo: 1})` used to fill the Traits section while Runtime said
499
+ "no abx.traits call". The key extractor now runs only when the call survives in the code view
500
+ (comments stripped, strings blanked). Quoted keys inside a real call (`'Plant Count':`) still
501
+ work. Terser `window.abx&&(abx.traits({…}),abx.done())` and an accessor at the end of a large file
502
+ are pinned by tests.
503
+
504
+ Reported in the 2026-08-18 tester batch (feedback 0a0f8f9c, 1253c563).
505
+
506
+ - 9c287c0: On-chain script chunks no longer insert a newline in the middle of a token.
507
+
508
+ The generator joins chunks with `'\n'`. A fixed 22 kB slice could split `mass` into `ma` + `ss`,
509
+ producing a SyntaxError on chain while `abx verify` still went green. Template-mode deploys now
510
+ split at an existing newline so that join is byte-identical to the source, refuse a 22 kB+ span
511
+ with no newline, and parse the program before any gas.
512
+
513
+ Reported in the 2026-08-18 tester batch (feedback 38455765, 038d7ed2, 8c256d9d, 50e53193).
514
+
515
+ ## 0.1.0-alpha.15
516
+
517
+ ### Minor Changes
518
+
519
+ - 7fec2d7: An edition's per-id cap now folds from the log, so a capped edition stops reporting itself as open
520
+
521
+ `DefaultMaxSupplySet` — added in the contract-audit release precisely so the log could tell an open
522
+ edition from a capped one — reached the ABI and stopped there. `reconstruct.ts` had no fold case, so
523
+ the collection-wide default never landed in `ProjectState`, and **the common shape was the broken
524
+ one**: `--copies N` sets the cap at `initialize` and never calls `setMaxSupply`, so no id has a
525
+ `MaxSupplyUpdated` of its own and every capped edition ever deployed folded as _uncapped_. The
526
+ head-read lane (`listTokens`, which calls `maxSupply(id)`) said `N` the whole time — one field name,
527
+ two answers, on the value that decides whether a buy button renders. Found by the abx-services team
528
+ while upgrading their resolver/indexer to this release.
529
+
530
+ - **`ProjectState.defaultMaxSupply`** — the collection-wide per-id default (`'0'` = open; `null` ⇒ not
531
+ an edition). The 1155 analogue of `maxInvocations`.
532
+ - **`TokenState.maxSupply` is now the _effective_ cap** — an id's own override, else that default —
533
+ and so equals `maxSupply(id)` on chain and its head-read twin `TokenRow.maxSupply`. Previously it
534
+ was the override alone, and absent otherwise.
535
+ - **`TokenState.maxSupplyOverridden`** — whether this id has ever been explicitly overridden. The
536
+ distinction the on-chain getter cannot express (`maxSupply(id)` returns `0` for both "never capped"
537
+ and "deliberately closed") and the log now can, plus a signal that the monotonic never-increase rule
538
+ is in force for that id.
539
+ - **`editionCapOf(token)`** — new SDK export returning `{kind:'open'} | {kind:'capped', cap} |
540
+ {kind:'closed'}`, so nothing re-derives the rule. Used by the dashboard and `abx tokens`; pass a
541
+ head-read row and a `'0'` cap reads `open`, which is all a state read can honestly say.
542
+ - **The dashboard stops lying twice.** It tested `maxSupply` for truthiness: a `--copies 10` id read
543
+ "(open)", and — because `'0'` is a non-empty string — an id deliberately closed would have read
544
+ "12 / 0". It now reads "12 / 10" and "12 (closed — no more can be minted)".
545
+ - **Projection columns**: `projects.default_max_supply`, `tokens.max_supply_overridden` (migration-added,
546
+ so an existing store keeps working; NULL stays NULL rather than becoming a fabricated `0`).
547
+
548
+ Also in this pass, from the same review:
549
+
550
+ - **`SPINE_EVENT_DOC` had drifted to 41 of 52 events**, so eleven folded events carried an empty
551
+ human description and defaulted to Register 2 — including `TransferValidatorUpdated`, which belongs
552
+ to Register 1, and the factory's `Deployed`. All eleven are described, and a new
553
+ `spine-doc-coverage.test.ts` fails the build if the table and the spine ABI drift apart again in
554
+ either direction.
555
+ - **One provenance body in the resolver's `renderer` branch.** The `text/uri-list` arm hand-built an
556
+ object byte-identical to `onChainProv(field, 'renderer', …)` — same keys, same order, the note string
557
+ typed a second time — so the only thing that branch could do was drift from `sourceNote`.
558
+ - **Dead `abx_params`-era test scaffolding deleted** (a `paramsOf(json) => json.abx_params` reader, an
559
+ RPC stub, a schema factory), including an import of a `ParamMember` type that no longer exists —
560
+ which nothing caught, because `tsconfig` includes only `src`, so test files are never typechecked.
561
+
562
+ ## 0.1.0-alpha.14
563
+
564
+ ### Minor Changes
565
+
566
+ - 1b6b741: Rename "artist" to "creator" throughout, including the protocol vocabulary
567
+
568
+ ABX is a tool for creators generally. Art remains a first-class use case, but it should not be baked
569
+ into the product's framing — and it was, down to the on-chain identifiers.
570
+
571
+ **Breaking, and deliberately a clean break** (pre-launch, folded into the one redeploy that four
572
+ rounds of security remediation already required — deferring would have meant either living with the
573
+ old vocabulary permanently or spending a second deployment on a word):
574
+
575
+ - `AuthOption` is now `Creator`, `TokenOwner`, `Address`, `CreatorOrTokenOwner`, `CreatorOrAddress`,
576
+ `TokenOwnerOrAddress`, `CreatorOrTokenOwnerOrAddress`. Order is unchanged, so the `uint8` values
577
+ are identical — only the names moved. Users type these: `--schema key:Type:Creator`.
578
+ - The on-chain collection metadata field keys `artist` / `artist_links` are now `creator` /
579
+ `creator_links`. These are `bytes32` keys written on-chain and emitted verbatim into every
580
+ collection's `contractURI` JSON.
581
+ - CLI flags `--artist` / `--artist-links` are now `--creator` / `--creator-links`. No aliases.
582
+ - `@artblocks/abx-token-api` renames its `art` module to `content`: `generateArt` →
583
+ `generateContent`, `artContentHash` → `contentHash`.
584
+ - `AbxMetadataRenderer.SPEC_VERSION` is **7**, and `isCurrentRenderer` gates on it. A v6 renderer
585
+ emits a different member key, so it is genuinely behind, not cosmetically so.
586
+
587
+ Package CHANGELOGs are left alone on purpose: they record what past alpha versions actually shipped,
588
+ and rewriting them would make the release history lie about flag names that really were `--artist`.
589
+
590
+ - 1b6b741: A purchase now carries the terms the buyer accepted — closing the one path by which a project owner
591
+ could take more than the buyer agreed to.
592
+
593
+ Both shared fixed-price minters take a mandatory **terms guard** — not a slippage allowance; see the note
594
+ below — and revert a new `SaleTermsChanged()` when the live sale doesn't match:
595
+
596
+ ```solidity
597
+ purchase(address token, address expectedPaymentToken, uint256 maxPrice)
598
+ purchaseTo(address token, address to, address expectedPaymentToken, uint256 maxPrice)
599
+ // 1155 — the bound is the TOTAL, since qty multiplies it
600
+ purchase(address token, uint256 id, uint256 qty, address expectedPaymentToken, uint256 maxTotalPrice)
601
+ purchaseTo(address token, uint256 id, uint256 qty, address to, address expectedPaymentToken, uint256 maxTotalPrice)
602
+ ```
603
+
604
+ `configure` takes effect immediately and has no timelock. On the ETH lane that was largely contained
605
+ (`msg.value` must equal `price`), but an ERC-20 sale settles `safeTransferFrom(buyer, payee, price)`
606
+ against a standing allowance — so an owner who front-ran a pending purchase with a huge price spent the
607
+ buyer's whole approval, and one who switched the sale to a different ERC-20 reached an allowance granted
608
+ somewhere else. `address(0)` as `expectedPaymentToken` means ETH. There is deliberately no "no maximum"
609
+ sentinel: a bound that can be defaulted away is the bug being fixed.
610
+
611
+ SDK (breaking): `preparePurchase` / `preparePurchase1155` take the live terms — `sale`, exactly what
612
+ `readSaleConfig` / `readSaleConfig1155` returns — instead of a hand-computed `value`. They derive the
613
+ ETH to attach (`price`, or `price × quantity`) and the bound from those terms, so the payment and the
614
+ guard cannot desync. Pass `maxPrice` / `maxTotalPrice` to state a wider ceiling (a UI that tolerates a
615
+ small move rather than making the buyer re-sign); it widens the guard only, never the payment. New
616
+ exported type `PurchaseTerms`.
617
+
618
+ **`maxPrice` is not slippage tolerance on the ETH lane, and the docs no longer imply it is.** The minter
619
+ requires `msg.value == price` (an equality) and V1 has no refund path, so an in-flight ETH purchase
620
+ reverts if the price moves in _either_ direction, however wide the ceiling. Real tolerance exists only on
621
+ the ERC-20 lane, where the live `price` is pulled from the buyer's allowance and anything at or below the
622
+ ceiling settles.
623
+
624
+ CLI: `abx minter buy` hands the terms it just read to the SDK (the price × quantity math now lives in
625
+ one place), and the scaffolded `abx mint-page` binds each mint to the terms the page is displaying —
626
+ if the owner re-prices mid-click the mint reverts, nothing is charged, and the page tells the buyer to
627
+ review the new price. Re-pricing a live sale therefore fails the buys already in flight, by design:
628
+ pause first if you want a clean cutover.
629
+
630
+ **Deploy note:** this is a runtime change to two shared singletons, so both need a redeploy on every
631
+ supported chain (CREATE2 + canonical salts, so the new addresses are identical cross-chain) and the new
632
+ addresses recorded in `packages/sdk/src/deployments.ts` +
633
+ `site/content/docs/reference/deployments.mdx`. Until then the CREATE2-prediction-vs-manifest tests fail
634
+ on purpose — that is the drift detector doing its job, not a broken test.
635
+
636
+ - 1b6b741: The configure hook can see a blob's size and contents — so creators can police it instead of the protocol
637
+
638
+ `IAbxConfigureHook.onParamConfigured` gains two arguments:
639
+
640
+ ```solidity
641
+ function onParamConfigured(
642
+ uint256 tokenId,
643
+ bytes32 key,
644
+ bytes32 value, // the literal on the scalar path; keccak256(data) on the blob path
645
+ address updatedBy,
646
+ uint256 dataLength, // 0 on the scalar path; data.length on the blob path (never 0 there)
647
+ address dataBlobAddress // address(0) on the scalar path; the live SSTORE2 pointer otherwise
648
+ ) external;
649
+ ```
650
+
651
+ **Why.** On a multi-copy edition params belong to the id, so a holder-writable `String`/`Bytes` key is
652
+ shared: one holder could store large values and make the shared id's document expensive for every
653
+ co-holder. An independent audit asked for a protocol byte ceiling. A ceiling would cap every project
654
+ to police a configuration almost nobody wants — but the alternative we had documented, "the creator
655
+ constrains it in their own hook", was not actually possible: the hook only ever saw `keccak256(data)`.
656
+ It could not learn the length, could not read the content, and could not read the new value from
657
+ storage either, because nothing had persisted yet. Now it can, and no protocol limit is imposed.
658
+
659
+ **The bytes are not forwarded** — a blob can be nearly a full contract's worth of data, and putting it
660
+ in calldata would make every configure call pay for it whether the hook looks or not. A hook enforcing
661
+ a size ceiling reads `dataLength`; a hook that needs content calls `SSTORE2.read(dataBlobAddress)` and
662
+ pays for exactly what it asked for. Guaranteed: `keccak256(SSTORE2.read(dataBlobAddress)) == value`.
663
+
664
+ **Two things to know when writing one.** `tokenParamData(tokenId, key)` still returns the OLD value
665
+ inside the hook (that is what "before the value persists" means — and it lets you veto a regression).
666
+ And the blob is written _before_ the hook, because an address is meaningless until the contract behind
667
+ it exists; so a veto happens after the writer paid to store the bytes. The accepted path costs the
668
+ same as before, only rejection wastes, and it wastes only the rejecting writer's own gas.
669
+
670
+ `ConfigurableParams` is extension **v3** — the beacon's `extensionVersion` is how an integrator tells
671
+ which calling convention a deployed token uses. A hook written for the 4-argument form will revert
672
+ against a v3 token, and vice versa.
673
+
674
+ Addresses: `AbxParamsLib` moved, `AbxEditionLib` with it (it links it), and the four token types that
675
+ compose `ConfigurableParams` moved with their factories — `SeriesCode`, `EditionCode`,
676
+ `OneOfOneEdition`, `EditionImage`. The two ERC-721 image types and their factory, `AbxMetadataLib`,
677
+ `AbxCodeLib`, the renderer, chunk store, seed source and both minters keep their addresses.
678
+
679
+ - 1b6b741: Renderer spec v10 projects four long-reserved keys; edition trust anchors move
680
+
681
+ **Renderer spec v10.** Four keys the spec reserved from the start were projected on chain by nothing:
682
+ `background_color` and `youtube_url` (token), `banner_image` and `featured_image` (collection). A
683
+ documented reserved key that no surface emits is a hole rather than a saved byte — a creator sets it,
684
+ observes nothing, and cannot tell whether the tool or the marketplace is at fault. All four now project
685
+ when their representation is chain-reachable, and are omitted when unset. `isCurrentRenderer` gates on
686
+ 10; a v9 renderer silently drops them.
687
+
688
+ **`collaborators` is no longer a reserved key.** It was in the registry, projected by neither plane, and
689
+ because reserved keys are excluded from the resolver's `artifacts` listing, setting it on chain did
690
+ nothing observable anywhere. It is now an ordinary creator key — which means it **does** list in
691
+ `artifacts`. Put a collaborator list in a named artifact (`abx attach`) or in `description`.
692
+
693
+ **The resolver's two collection image keys are now symmetric with the renderer.** `featured_image` is a
694
+ top-level `contractURI` key instead of artifacts-only, and `banner_image` projects for every
695
+ chain-reachable representation instead of only `url` (an `inline` or `reader` banner used to vanish).
696
+
697
+ **Docs now carry the three-list split** — which keys both planes project, which are the off-chain
698
+ resolver's alone by design (`abx_provenance.status`, operator overlay, effects/live-view, the
699
+ `artifacts` listing, collection `image` courtesy, `image_data`, off-chain-decode values), and which are
700
+ not reserved at all. That split is the thing to read before adding a key to either surface: drift on a
701
+ key both planes _can_ emit is what produced three earlier remediations.
702
+
703
+ **Addresses.** The three edition factories move (trust anchors) along with their implementations, and
704
+ the renderer moves. `AbxEditionLib`, `AbxMetadataLib`, `AbxCodeLib`, `AbxParamsLib`, all three ERC-721
705
+ factories, the chunk store, the seed source, both minters and both generators keep their addresses.
706
+ Existing clones keep running their frozen implementations; re-point a live collection at the new
707
+ renderer with `abx set-renderer` rather than redeploying it.
708
+
709
+ - f64a31f: Expose `lockScript` above the contract layer — the lock that actually freezes a code project's work.
710
+
711
+ `SeriesCode`/`EditionCode` have always had `lockScript()` (and `scriptLocked()`), but nothing above
712
+ the ABI surfaced it: the SDK had no `prepareLockScript`, the CLI had no `lock-script` command, and the
713
+ skill's immutability guidance told creators that `lock-field` + `lock-uri` made a project "provably
714
+ immutable". For a generative/code drop that is false — those freeze only the _metadata_; the owner can
715
+ keep rewriting the on-chain program (`setScriptChunk`/`removeLastScriptChunk`) until the script is
716
+ locked. Agents building on ABX repeatedly missed that the program could be frozen at all.
717
+
718
+ - **SDK:** new `prepareLockScript({contract, chainId})` (mirrors `prepareLockDependencies`).
719
+ - **CLI:** new `abx lock-script <address>` command (any signing lane), plus `abx verify` now reports
720
+ the script and dependency lock state for code projects (`script: locked/UNLOCKED`, with a nudge to
721
+ `lock-script` when the program is still mutable) — read from the already-indexed state, no extra RPC.
722
+ - **Skill:** the immutability guidance now names the full freeze for a code drop
723
+ (`lock-script` + `lock-dependencies` + `lock-field`/`lock-uri`, plus `set-schema … lock=now` for a
724
+ param value), corrects the "provably immutable" claim, and surfaces PostParams as a first-class
725
+ `deploy-code` capability (not only a generative feature) in the `SKILL.md` description and decision
726
+ tree so collector-settable on-chain parameters are discoverable.
727
+
728
+ - 1b6b741: Independent-audit remediation: `abx_provenance` reshaped, `abx_params` removed, hook ABI widened
729
+
730
+ An independent adversarial audit of the contracts found no Critical or High issue, no theft path and
731
+ no cross-project reach — but four Mediums, eight Lows and five architectural notes. Everything is
732
+ addressed. Consumer-visible changes:
733
+
734
+ **`abx_provenance` entries are now `{field, source, note}`.** They lost `onChain`, which was wrong in
735
+ both directions — a `url` reported `false` although the URL string is stored on chain, while an
736
+ `inline` value of `"https://…"` reported `true` for a pure pointer — and `verifiedAgainstChain`,
737
+ which was hardcoded `null` on every entry. `source` says where the bytes came from; whether a value
738
+ resolves on chain is visible in the value, and that judgment belongs to the reader. The off-chain
739
+ resolver drops `onChain` for the same reason (it was exactly `status === 'on-chain'`) and keeps
740
+ `status`, which it can genuinely compute.
741
+
742
+ **`abx_params` no longer appears in `tokenURI`.** It was emitted by the on-chain renderer AND the
743
+ resolver and parsed back by nobody. Params enumerate directly from the contract — `tokenParamKeys`,
744
+ `tokenParam`, `paramSchemaKeys` — which is canonical, needs no indexer, and is what a chain-only
745
+ reader should use; a code project's script still receives them through `tokenData`. Traits for
746
+ marketplaces belong in `attributes`, unchanged.
747
+
748
+ **A computed `image` locator now lands verbatim.** A field renderer returning
749
+ `("text/uri-list", "ipfs://…")` was being data-wrapped into `data:text/uri-list;base64,…`, which no
750
+ marketplace dereferences. `image` and `animation_url` now share one implementation of the rule.
751
+
752
+ **`IAbxTransferHook.onTokenTransfer` gains `operator` and `amount`.** Without them a hook on a
753
+ shared-supply ERC-1155 cannot tell a real transfer from a zero-amount no-op — which let any address
754
+ fire the param lifecycle for an id it held no copy of. The token also refuses to notify on
755
+ zero-amount and self-transfers.
756
+
757
+ **`pingURI` is owner-only**, and `paramSchemaHead` / `selectOption` are new: resolving one selected
758
+ option no longer copies the whole option table on every render.
759
+
760
+ `AbxMetadataRenderer.SPEC_VERSION` is 8. Every canonical address moves — every token type is now
761
+ library-linked, including the two ERC-721 image factories, because the metadata field store was
762
+ externalized into the new `AbxMetadataLib` to restore EIP-170 headroom before any fix was stacked on
763
+ top of 187 bytes of margin.
764
+
765
+ The CLI now warns when `--copies` meets a holder-writable `--schema`: on an edition, params belong to
766
+ the id, so every holder shares one value and the last writer wins.
767
+
768
+ - 1b6b741: The custom seed source is now a real choice, not a documented one
769
+
770
+ We tell creators — in the docs, in `AbxSeedSource`'s own NatSpec, and in `deploy-code --help` — that the
771
+ canonical mint seed is pseudorandom and that the answer for anything lottery-like is to point
772
+ `seedSource` at their own `IAbxSeedSource` over commit-reveal or a VRF oracle. On-chain that was always
773
+ true. In the toolkit it was not: there was no flag, no owner command, and the only route was an
774
+ `ABX_SEED_SOURCE` env var validated as nothing more than "has code at this address". A doc/code
775
+ contradiction of our own making, now closed at both ends.
776
+
777
+ **Deploy:** `abx deploy-code --seed-source <0x…|canonical>` (and the `--copies` edition lane). Omitting
778
+ it is unchanged — the canonical `AbxSeedSource` from the manifest, bootstrapped on a chain that lacks
779
+ one — and `--no-seed` still means no mint-time seed at all. Passing both is refused rather than resolved
780
+ in someone's favour. `ABX_SEED_SOURCE` keeps working and is no longer the unchecked lane.
781
+
782
+ **After deploy:** `abx set-seed-source <address> <0x…|canonical|none>` — owner-only, same positional
783
+ grammar as `abx set-transfer-validator`. It surfaces the on-chain `setSeedSource(address)` that nothing
784
+ reached before. **Future mints only**: a seed settles the instant it is assigned, so nothing already
785
+ minted changes. The command says so, names the count of tokens already carrying a seed from the old
786
+ source, and points out that a part-sold drop then spans two sources — public on the spine
787
+ (`SeedSourceSet`) but not something an early buyer is told, so pause and say so.
788
+
789
+ **`abx state` now prints the seed source**, labelled: `none`, the canonical singleton, or `CUSTOM`. It is
790
+ the one setting an owner can re-point mid-sale that changes what a later buyer receives, and it was
791
+ readable nowhere.
792
+
793
+ **Both writes probe the address first, and `code.length > 0` is not the check.** The SDK gained
794
+ `probeSeedSource` — one `eth_call` to `seed(uint256,address)`, which must return 32 bytes — plus
795
+ `readSeedSource`, `prepareSetSeedSource`, `assertSeedSourceUsable`, and a `SeedSourceUnusableError`
796
+ carrying a structured verdict. Four shapes are refused, each with its own message: **no code**;
797
+ **empty return** (the permissive-fallback shape — a Safe, an uninitialised proxy, an EIP-7702-delegated
798
+ EOA; pasting your own wallet is the common way in); **a return under 32 bytes**; and **a revert** (either
799
+ the wrong address entirely, or a real source not yet armed — `seed()` is called synchronously inside the
800
+ mint and its revert bubbles, so a source that cannot answer now cannot answer at mint either). The
801
+ interface is non-`view` on purpose, but an `eth_call` simulates a state-keeping source fine, so
802
+ commit-reveal and oracle-fed sources probe without sending anything. This matters because a
803
+ misconfigured seed source is **completely silent**: the write succeeds, `seedSource()` reads back what
804
+ you set, the event fires, `abx state` shows it — and then every mint of the collection reverts in the
805
+ token's `bytes32` decode. Same spirit as `CreatorToken._requireHasCode`.
806
+
807
+ **Naming fix: a `seed` param schema is not a "re-roll", and no longer described as one.** The governed
808
+ path is `configureTokenParam(tokenId, "seed", value)` — **the caller supplies the value**. Nothing is
809
+ re-randomized and the seed source is never consulted again; with an unbounded `Uint256Range` the
810
+ authorized party may set any 32-byte value, repeatedly, until they like the output. "Re-roll" promises a
811
+ buyer a fresh random draw they could reasonably expect to be fair, which is not what they get. It is a
812
+ collector-chosen (or creator-chosen) seed, and the docs, the specs, and the skill now say that. The
813
+ substance that was correct is unchanged: the schema is a pre-sale commitment (declarable only before the
814
+ collection's first seed exists), `paramSchema("seed")` is the buyer's read, and the type must be a
815
+ literal/scalar one.
816
+
817
+ **Dropped a stale warning** in the skill about a `seed` schema changing how the seed decodes off-chain
818
+ while the on-chain generator injects raw hex — `tokendata.ts` returns the raw hex for `seed`
819
+ unconditionally, ahead of the schema branch, so the wire format is invariant across both surfaces and
820
+ there is nothing left to warn about.
821
+
822
+ **Also corrected: `maxPrice` is a terms assertion, not slippage tolerance.** On the ETH lane the minter
823
+ requires `msg.value == price` (an equality) and V1 has no refund path, so an in-flight ETH purchase
824
+ reverts if the price moves in _either_ direction, however wide the ceiling — widening `maxPrice` on an
825
+ ETH sale buys the buyer nothing. Real tolerance exists only on the ERC-20 lane, where the live price is
826
+ pulled from the buyer's allowance. `specs/protocol/minter-spine.md` and
827
+ `site/content/docs/protocol/minting.mdx` said "a price cut still settles" without that distinction.
828
+
829
+ - 1b6b741: Renderer spec v9: a computed image is carried once, not twice
830
+
831
+ A field-renderer-produced image was emitted as the reserved `image` key **and again** inside the
832
+ `artifacts` manifest, then the whole document was base64-encoded around both copies. On the
833
+ on-chain-SVG lane that roughly doubled the inner payload of `tokenURI` — the one read this protocol
834
+ most wants to stay within ordinary RPC limits.
835
+
836
+ The data-plane spec always allowed an on-chain renderer to omit entries duplicating reserved keys it
837
+ already emits ("an EVM-efficiency reduction, never a semantic one"). The renderer now takes that for
838
+ every reserved key, so on a fully-on-chain project `artifacts` is absent rather than empty. Nothing is
839
+ lost, because the entry's only unique contribution was a `mimeType` and a `data:` URI states its own.
840
+ The off-chain resolver still emits the complete listing, duplicates included — that asymmetry is the
841
+ spec's, and it is now documented on both surfaces.
842
+
843
+ Also removed: three orphaned param getters on the renderer (`paramKeysOf`, `paramSchemaOf`,
844
+ `paramDataOf`), stranded when v8 took params out of `tokenURI`, whose NatSpec still claimed `tokenURI`
845
+ called them.
846
+
847
+ `AbxMetadataRenderer.SPEC_VERSION` is **9** and `isCurrentRenderer` gates on 9. Only the renderer
848
+ moves — nothing links it, so no factory or implementation address changes. Existing on-chain-URI
849
+ projects keep resolving through the v8 renderer until re-pointed with `abx set-renderer`.
850
+
851
+ - 1b6b741: Upgrading from alpha.12/alpha.13 — what breaks, in one place
852
+
853
+ This release lands the contract-audit branch. It is a **compatibility break with earlier alphas**, which
854
+ is fine at this stage (greenfield alpha, no backwards-compatibility promise) but is worth having in one
855
+ list rather than spread across a dozen changesets. Nothing here is a deprecation with a migration
856
+ window; the old shapes are gone.
857
+
858
+ **Every canonical address moved**, and four manifest fields are new (`metadataLib`, `paramsLib`,
859
+ `codeLib`, `editionLib` — the delegatecalled write-path libraries). Resolve through `getDeployment` and
860
+ the upgrade is transparent; anything you have _stored_ keyed by a factory address is not. A project
861
+ indexed from a superseded anchor reads `isCanonical: false` against the new manifest — correct, since it
862
+ is what a creator sees if they don't redeploy, but it is a data question, not a version bump.
863
+
864
+ **The metadata document changed: renderer spec v4 → v9.** If you assemble or assert on it:
865
+
866
+ - `abx_provenance` entries lost `onChain` (it was exactly `status === 'on-chain'`, and wrong in both
867
+ directions) and `verifiedAgainstChain` (hardcoded `null` on every entry). `source` and `status` stay.
868
+ - The `abx_params` block is gone from **both** lanes. Params enumerate from the contract —
869
+ `tokenParamKeys` / `tokenParam` / `paramSchemaKeys` — which is canonical and needs no indexer; a code
870
+ project's script still receives them through `tokenData`.
871
+ - `artist` / `artist_links` are now `creator` / `creator_links` (reserved on-chain collection field
872
+ keys), and `AuthOption.Artist*` is `AuthOption.Creator*` (numeric values unchanged).
873
+ - A computed `image` locator (`text/uri-list`) lands **verbatim** instead of being wrapped into a
874
+ `data:` URI no marketplace dereferences.
875
+ - The on-chain renderer no longer duplicates a computed image into `artifacts`. The off-chain resolver
876
+ still emits the complete listing — that asymmetry is specified, not a bug.
877
+ - Four long-reserved keys now project on chain: `background_color`, `youtube_url` (token) and
878
+ `banner_image`, `featured_image` (collection). `featured_image` also becomes a top-level resolver key
879
+ instead of artifacts-only, and `banner_image` projects for every chain-reachable representation
880
+ rather than `url` alone.
881
+ - `collaborators` is **no longer reserved** — projected by neither plane and excluded from `artifacts`
882
+ by its own reserved-ness, so it did nothing. It is now an ordinary creator key that does list.
883
+
884
+ **`tokenData` divergences fixed, so rendered output can change:** a contract-scope `seed` no longer
885
+ leaks into a token's `tokenData` (the on-chain generator never read one), `seed`'s wire format is always
886
+ raw 32-byte hex regardless of schema, and `</script` escaping is case-insensitive to match the on-chain
887
+ generator. Cached renders for affected code projects should be re-derived.
888
+
889
+ **Removed:** `paramKeysOf`, `paramSchemaOf`, `paramDataOf` on `AbxMetadataRenderer` — orphaned when
890
+ params left `tokenURI`. Read the token directly instead.
891
+
892
+ **Two hook interfaces widened** (`ConfigurableParams` is extension **v3**; a hook built for the old
893
+ signature reverts against a v3 token): `IAbxTransferHook.onTokenTransfer` gained `operator` + `amount`;
894
+ `IAbxConfigureHook.onParamConfigured` gained `dataLength` + `dataBlobAddress`.
895
+
896
+ **Additive:** `ParamHooksFrozen` folds into `ParamHooks.locked`; `paramSchemaHead` + `selectOption`
897
+ replace pulling a whole option table to resolve one index; `readParamHooks`; `abxJs()` / `gunzipScript()`
898
+ on the generator for piecewise document assembly; and the three ERC-1155 ABIs now carry
899
+ `MetadataUpdate` / `BatchMetadataUpdate` / `DefaultMaxSupplySet`, which were emitted but not decodable.
900
+
901
+ - 1b6b741: Transfer-validator authorization has one home, and the five affected trust anchors move
902
+
903
+ `CreatorToken1155.setTransferValidator` performed no authorization at all, and the library it
904
+ delegates to performed none either. What protected the three edition token types was that each one
905
+ _overrode_ the setter to run the caller check first — one guard in three copies, sitting in front of
906
+ an unguarded mixin whose own comment claimed the tokens carried no override. Nothing deployed was
907
+ vulnerable, but a fourth edition type that simply inherited the mixin would have shipped an
908
+ unauthenticated `setTransferValidator`, which decides whether collectors' tokens can move at all.
909
+
910
+ The guard now runs in the mixin, the overrides are gone, and the function is no longer `virtual` —
911
+ so the arrangement is enforced by the compiler rather than by a comment. A dead
912
+ `_requireMinterOrOwner` in `ExternalMinter`, whose NatSpec wrongly advertised it as the mint-time auth
913
+ check (the real one also enforces `paused()`), is deleted in the same pass.
914
+
915
+ **Both changes are source-only** — the compiled runtime bodies are byte-identical before and after,
916
+ measured across all ten affected artifacts. Only the metadata hash differs, and since that is part of
917
+ the initcode, the CREATE2 addresses move. Five factories and their implementations are redeployed and
918
+ re-verified on Sepolia and Base Sepolia: `SeriesImageFactory`, `SeriesCodeFactory`,
919
+ `OneOfOneEditionFactory`, `EditionImageFactory`, `EditionCodeFactory`. Everything else — the 1/1 image
920
+ factory, all four libraries, the renderer, chunk store, seed source, both minters, both generators —
921
+ keeps its address.
922
+
923
+ Projects deployed from the superseded factories keep working, but `abx` will report their anchor as
924
+ an older version. Redeploy from the anchors in the refreshed manifest.
925
+
926
+ ### Patch Changes
927
+
928
+ - 1b6b741: Externalize the code-custody READ surfaces into `AbxCodeLib` — B22 step 2, buying back the bytes the ERC-4906 audit fix spent
929
+
930
+ The audit remediation that made `OnChainMetadata`'s field writes emit ERC-4906 (closing a real finding:
931
+ that surface mutated `tokenURI` silently, so a correct indexer served the pre-edit document forever) cost
932
+ ~96 B per token, and `SeriesCode` and `EditionCode` had no room for it — both fell under the 150 B EIP-170
933
+ floor `contracts/test/CodeSize.t.sol` guards. That is precisely the trigger condition `docs/10-backlog.md`
934
+ B22 was written for, and step 2 was the prescribed answer.
935
+
936
+ The `IAbxOnChainScript` and `IAbxDependencies` view bodies now live in `AbxCodeLib`, next to the write
937
+ paths that were already there — `scriptChunkCount`/`scriptChunk`/`scriptLocked` and
938
+ `dependencyCount`/`dependencyByIndex`/`dependencyRegistry`/`dependenciesLocked`. The mixins keep the
939
+ functions (same signatures, same ABI, same ERC-165 ids) as **raw-calldata passthroughs** through a new
940
+ shared `AbxCodeDelegate` base, which forwards the call's exact calldata to the library and returns the
941
+ return data untouched. Storage still resolves in the token's own ERC-7201 namespaces and events still log
942
+ from the token — that is what `delegatecall` buys.
943
+
944
+ Raw, not typed, on purpose: B22 step 1 measured a _typed_ shell (`return AbxCodeLib.f(...)`) **growing**
945
+ the token by ~855 B, because decoding the library's return value and re-encoding it at the call site costs
946
+ more than the extracted body saves. The same mistake was made again during this remediation, on
947
+ `setTokenField`/`setContractField`, and reverted. The price of the raw form is that `AbxCodeLib`'s read
948
+ signatures are now part of every composing token's external ABI — same signature ⇒ same selector is the
949
+ whole mechanism — so they must track the interfaces verbatim; both the library and the mixins now say so.
950
+
951
+ EIP-170 margins, before → after:
952
+
953
+ | contract | before | after | floor |
954
+ | ------------- | ------ | ------- | ----- |
955
+ | `SeriesCode` | 125 | **529** | 150 |
956
+ | `EditionCode` | 132 | **507** | 150 |
957
+
958
+ `AbxCodeLib` grew 3,905 → 4,961 B and still has ~19.6 KB to spare. Nothing else moved: `OnChainScript` and
959
+ `Dependencies` are composed **only** by `SeriesCode` and `EditionCode`, and both already linked
960
+ `AbxCodeLib`, so no contract gained a library dependency and the other four tokens are byte-identical.
961
+
962
+ No behavior change and no ABI change — the read signatures, return types, mutability, ERC-165 ids and the
963
+ `ScriptIndexOutOfRange`/`DependencyIndexOutOfRange` error selectors are all preserved (the errors stay
964
+ declared on the mixins so they remain in each token's ABI, and now revert from the library's
965
+ identically-named, identically-selectored twin). This does move the implementation bytecode, so it rides
966
+ the redeploy this remediation already requires: `AbxCodeLib`, both code tokens, and their factories (and
967
+ therefore the factory trust anchors) all get new addresses.
968
+
969
+ - 1b6b741: CREATE2 for library deployments, as the standard process — and delete the false belief that said it was impossible
970
+
971
+ An audit found that two ERC-1155 token types were held library-free, and an EIP-170 size floor relaxed, on
972
+ the recorded belief that linking a delegatecalled library costs a factory its CREATE2-deterministic address.
973
+ That belief is false, and the committed broadcast artifacts always refuted it: every recorded library deploy
974
+ went through the keyless CREATE2 proxy, `AbxParamsLib` landed at ONE address on Sepolia and Base Sepolia
975
+ from deployer nonces **215 apart** (a nonce is not an input to a CREATE2 address), and both library-linked
976
+ factories have held chain-identical addresses across four deploy generations.
977
+
978
+ What was true was narrower and self-inflicted: `deploy.ts` deployed its libraries with `send({to: null})` —
979
+ a plain EOA `CREATE` — **by its own choice**, so _it_ could not predict them. `create2.ts` and both code
980
+ factory deploy functions then wrote that local limitation up as a property of libraries in general, and the
981
+ repo proceeded to contradict itself (`deployments.ts` and `reference/deployments.mdx` describe the correct
982
+ mechanism a few files away).
983
+
984
+ The SDK now does what the docs already claimed:
985
+
986
+ - Both bootstraps (`deploySeriesCodeFactory`, `deployEditionCodeFactory`) deploy every write-path library
987
+ through the keyless proxy at the canonical `AbxSalts` salts — `abx.lib.params.v1`, `abx.lib.code.v1`,
988
+ `abx.lib.edition.v1`, mirrored in `ABX_SALT` and pinned against `AbxSalts.sol` by a new test — and then
989
+ CREATE2 the linked factory at its own salt. **An SDK-bootstrapped chain and a forge-bootstrapped chain now
990
+ produce identical addresses** (verified: the SDK's predictions equal what
991
+ `DeployLibraries.s.sol --sig 'predict()'` prints).
992
+ - Idempotent, out of necessity rather than politeness: the proxy _reverts_ on an occupied address, so a
993
+ library already on-chain is linked against instead of redeployed — which is also what makes a partially
994
+ bootstrapped chain recoverable by re-running.
995
+ - New: `predictParamsLib`, `predictCodeLib`, `predictEditionLib`, `predictSeriesCodeFactory`,
996
+ `predictEditionCodeFactory`, plus exported `libPlaceholder` / `linkLibraries` / `LIB_FQN`. Both code
997
+ factories therefore gained the CREATE2 self-heal every other canonical anchor has — and need no version
998
+ probe for it, because code at a CREATE2 address is bytecode-bound to the build that predicted it.
999
+
1000
+ **Fixes a real crash on the way past.** `deployEditionCodeFactory` could not succeed at all: it deployed
1001
+ `abxEditionLibBytecode` raw, but `AbxEditionLib` itself delegatecalls `AbxParamsLib`, so its shipped
1002
+ bytecode carries an unlinked `__$…$__` placeholder — not hex, so the RPC rejected it with an opaque
1003
+ `Invalid byte sequence`. The old guard only checked the _factory's_ bytecode, never the library's. The
1004
+ library is now linked before it is deployed, and `linkLibraries` throws with the offending placeholder named.
1005
+
1006
+ **The trap that IS real, now written down** (`create2.ts`, `reference/deployments.mdx`): a library's address
1007
+ is a function of its creation bytecode, so build settings move it. Linking _after_ compilation — substituting
1008
+ into solc's placeholder, what forge's automatic linking and the SDK both do — cannot change that bytecode.
1009
+ Handing solc the addresses at build time (`--libraries src/…:Lib:0x…`) writes the map into
1010
+ `settings.libraries` in every artifact's metadata, and the metadata hash is appended to the creation
1011
+ bytecode: measured here, that moves the library's own address and the linked factory's initcode. Optimizer
1012
+ profile does the same (the code tokens compile at 200 runs). Both failures are invisible until two chains
1013
+ disagree, so the docs now say to compare `predict()` against the SDK's predictions rather than assume.
1014
+
1015
+ Docs and specs swept for the old claim: `reference/deployments.mdx` (the salts, and a "libraries go first"
1016
+ bootstrap step naming `DeployLibraries.s.sol` and its `predict()` dry run), `reference/contracts.mdx`
1017
+ (`AbxEditionLib` was missing from the library taxonomy entirely), `reference/sdk.mdx`,
1018
+ `specs/self-host-toolkit/deployment.md`, and the `abx-self-host` skill's code-projects reference. No
1019
+ addresses were invented: nothing is redeployed yet, and the two manifest-drift tests still stand as the
1020
+ detectors waiting on it.
1021
+
1022
+ - 1b6b741: Stop promising immutability the locks don't deliver — and name the residual owner powers in one place
1023
+
1024
+ **The claim that was wrong.** With the field lock, URI lock, contract-URI lock, script lock and
1025
+ dependency lock _all_ engaged, the rendered output can still change, two ways. **Params have no lock at
1026
+ all** — they aren't fields, so no field lock reaches them, and the renderer projects the whole enumerated
1027
+ set into `tokenURI` as `abx_params` (a program reads the same set as `tokenData`). And a
1028
+ **`Resolution.Registry` dependency is re-fetched from the registry contract on every read** —
1029
+ `lockDependencies` freezes the ref and the registry pointer, not another contract's storage. `abx verify`
1030
+ reported `chain-complete` on both sides of a registry swapping its library bytes, and the CLI was telling
1031
+ people "a fully immutable code drop is lock-script + lock-dependencies + lock-field/lock-uri".
1032
+
1033
+ Every unqualified verdict is now qualified rather than deleted, because locking a pointer _is_ part of the
1034
+ story: `lock-uri`, `lock-script` and `lock-dependencies` narration, their `--help` entries, `abx verify`'s
1035
+ chain-complete pass (which now says the flag describes **where** bytes come from, not that they're frozen),
1036
+ `GeneratorStatus.chainComplete`'s doc comment, the `lockScript` SDK docs, `protocol/metadata`,
1037
+ `protocol/params`, `protocol/code-projects`, `reference/cli`, the operate guide, `specs/protocol/*`, and the
1038
+ skill's SKILL.md · `reference/decisions.md` · `reference/code-projects.md` · `reference/operating.md`. The
1039
+ line the toolkit now gives a creator is **"your metadata is locked"**, with the stronger claim reserved for
1040
+ a project whose graph is on-chain `0x…` deps plus locked fields. Stated once per place the decision is made,
1041
+ not restated everywhere.
1042
+
1043
+ Framed as a capability as well as a caveat: a token that _deliberately_ live-adapts to on-chain conditions
1044
+ is a legitimate and interesting thing to build, and it's the same mechanism that makes it possible.
1045
+
1046
+ **New page: [What a project owner can do](https://abx.docs.artblocks.io/protocol/owner-powers/).** There was
1047
+ nowhere a collector could read what powers the creator retains. It states both halves plainly, with the read
1048
+ for each. What an owner **can** do: re-point or suspend an enrolled 721C/1155C transfer validator (and block
1049
+ transfers entirely with one that reverts — though if they renounce ownership, anyone may suspend it and
1050
+ nobody can re-arm it); change price, payee, allocation and pause on a live sale with no timelock; keep
1051
+ receiving primary-sale proceeds after selling the project, because `primaryPayee` doesn't move on
1052
+ `transferOwnership`; mint reserves outside the minter's allocation, since assigning a minter grants the whole
1053
+ remaining cap rather than a slice; change royalty receiver and bps forever; re-point metadata subject to the
1054
+ locks above; swap the seed source; reassign a token's seed _iff_ a `seed` schema was declared before the
1055
+ collection's first seed existed; and walk away. What they provably **cannot** do: take a buyer's funds beyond
1056
+ the terms that buyer signed for (`purchase`/`purchaseTo` require `expectedPaymentToken` and a maximum, and
1057
+ revert `SaleTermsChanged`); exceed a supply or per-id edition cap; rewrite or clear a settled seed; reach
1058
+ another project through any shared singleton (the renderer and chunk store hold no storage, the generator's
1059
+ wiring is `immutable` with no setters, the seed source is a stateless view namespaced by caller, and the
1060
+ minters key everything per token and hold no funds); or take a token out of a collector's wallet — there is no
1061
+ owner-only transfer, burn, or clawback anywhere in the protocol.
1062
+
1063
+ Framing, deliberately: ABX is self-serve, the creator is a privileged role, the protocol's job is to keep
1064
+ that role away from a collector's funds and tokens, and the residual powers are disclosed so a collector can
1065
+ price them. Not an accusation — a creator who destroys their own collection has destroyed what they were paid
1066
+ for. The point is that "trust me" should be optional.
1067
+
1068
+ - 1b6b741: Gate on-chain content by what a node will READ, not by what it costs to write
1069
+
1070
+ The documented on-chain envelope — ≲24 KB/file, ≲256 KB/project — was a _storage-cost_ figure sold as a
1071
+ support envelope, and the CLI's only loud warning fired on the project total. Measurement says the
1072
+ binding constraint is somewhere else entirely: **`tokenURI` reassembles the whole document on every
1073
+ call**, and that cost is **superlinear** — EVM memory expansion is quadratic, so the per-KB rate climbs
1074
+ with size. Across the 10–100 KB range that decides most projects it measures **~360,000–405,000 gas per
1075
+ KB**, rising to ~460,000/KB at 187 KB and ~510,000/KB at 256 KB. `inline` and `reader` land within ~1% of
1076
+ each other up to 75 KB (the cost is the renderer's string building, not the storage mechanism) and
1077
+ diverge above it (~5% at 187 KB, ~10% at 256 KB, as the chunk store's quadratic read loop takes over), so
1078
+ `--compress fastlz` makes a field cheaper to write and not one gas cheaper to read.
1079
+
1080
+ Measured with `forge` (`OneOfOneImage` + `AbxMetadataRenderer`, callee execution gas for one `tokenURI`
1081
+ call, `reader` staging at 22,000-byte chunks):
1082
+
1083
+ | on-chain content | `tokenURI` gas | per KB | | on-chain content | `tokenURI` gas | per KB |
1084
+ | ---------------- | -------------- | ------- | --- | ---------------- | -------------- | ------- |
1085
+ | 3 KB | 1,123,327 | 374,000 | | 100 KB | 40,254,159 | 403,000 |
1086
+ | 10 KB | 3,588,993 | 359,000 | | 128 KB | 53,559,735 | 418,000 |
1087
+ | 23 KB | 8,346,220 | 363,000 | | 187 KB | 86,021,071 | 460,000 |
1088
+ | 40 KB | 14,740,366 | 369,000 | | 256 KB | 131,269,134 | 513,000 |
1089
+ | 50 KB | 18,759,333 | 375,000 | | | | |
1090
+ | 75 KB | 29,137,215 | 388,000 | | | | |
1091
+ | 90 KB | 35,868,124 | 399,000 | | | | |
1092
+
1093
+ geth's `--rpc.gascap` defaults to 50M, hosted providers commonly cap lower, and L1 block limits sit in
1094
+ the mid-30-millions — so a project at the _documented_ ceiling could not be read by a normal node, and
1095
+ from ~90 KB (~36M gas) up no contract can read it inside a transaction at all. Note what the 100 KB
1096
+ refusal is: a **margin**, not the wall. 100 KB reads at ~40M, and geth's own 50M default is not
1097
+ exhausted until ~120 KB; the refusal sits early because hosted providers cap well below geth.
1098
+
1099
+ The gate now sits on that axis, per token (each `tokenURI` assembles only its own content, so a
1100
+ 300-piece collection of 5 KB works is fine while one 256 KB work is not):
1101
+
1102
+ - **from ~40 KB — warn.** Reads need a deliberately high-gas RPC.
1103
+ - **past ~100 KB — refuse**, with `--allow-unreadable-onchain` as the override. The refusal names the
1104
+ three ways forward and says plainly what the override accepts: rendering needs a high-gas endpoint and
1105
+ most marketplaces and indexers will show nothing. It fires on the **dry run** too, so a creator meets it
1106
+ before spending gas rather than after the first staging transaction.
1107
+
1108
+ Live on every path that puts bytes on-chain: `deploy --onchain-image`, `deploy-series --onchain-image`,
1109
+ both `--copies` edition twins, and `set-field --file`. New in the SDK: `classifyOnchainReadSize`,
1110
+ `tokenUriGasEstimate` (fitted to the measurements, so it tracks the superlinearity instead of
1111
+ multiplying by a flat rate), `TOKEN_URI_GAS_PER_KB_LOW` / `TOKEN_URI_GAS_PER_KB_HIGH` (the measured
1112
+ 10–100 KB envelope — there is deliberately no single flat `TOKEN_URI_GAS_PER_KB`, because there is no
1113
+ single rate), `ONCHAIN_READ_WARN_BYTES`, `ONCHAIN_READ_REFUSE_BYTES`, `ONCHAIN_READ_GETH_CAP_BYTES`
1114
+ (where geth's 50M default actually runs out, so the refusal can be described as the margin it is)
1115
+ (`exceedsOnchainSoftLimit` stays, now documented as the _write_-cost predicate it always was). The
1116
+ whole-collection 256 KB warning stays as well, relabelled as write cost only, since it never said
1117
+ anything about readability.
1118
+
1119
+ Two things deliberately not done. **No on-chain guard and no gas check** — a read happens off-chain, a
1120
+ read too large for one node is an RPC-capability problem, and bricking a contract is worse than needing a
1121
+ capable endpoint. And the **code lane still only warns**, at the same 40 KB threshold and now quoting the
1122
+ gas figure: `abx inspect`'s document size is an estimate that undercounts unknown dependencies, and a
1123
+ registry-hosted library like p5 is legitimately ~200 KB, so the honest move there is to name the cost and
1124
+ point at the generator's piecewise getters (`document`, `tokenDataJson`, `dependencyTag`, `abxJs`,
1125
+ `gunzipScript`, `registryScriptChunk`) rather than block a shipped lane on a heuristic. Those getters are
1126
+ now in the SDK's generator ABI, which claimed to carry "the piecewise reads" while omitting three of them.
1127
+
1128
+ The docs and the `abx-self-host` skill were swept in the same pass: `protocol/onchain-storage` carries the
1129
+ measured table and the corrected envelope, `protocol/code-projects` gains a piecewise-read section, and
1130
+ the skill's Quick start and `reference/decisions.md` lead with "40 KB is the number, not 256 KB" plus the
1131
+ rule that the override is a creator's deliberate choice and never a way to clear a warning.
1132
+
1133
+ - 1b6b741: Round-3 audit remediation: link the two ERC-1155 image anchors, and stop guarding by name
1134
+
1135
+ `EditionImage` and `OneOfOneEdition` became library-linked in the previous round, but neither the
1136
+ SDK nor the forge scripts were updated. `predictEditionFactory()` and
1137
+ `predictOneOfOneEditionFactory()` hashed **unlinked** bytecode — and viem does not reject a
1138
+ `__$…$__` placeholder, it UTF-8-encodes it, so both returned a confident hash of ASCII garbage for
1139
+ a trust anchor, and `ops.ts` would have broadcast that bytecode as initcode. Both now link
1140
+ `AbxEditionLib` (itself linked against `AbxParamsLib`) and ensure the libraries exist first.
1141
+
1142
+ Two addresses move as a result: `EditionImageFactory` and `OneOfOneEditionFactory`. Both are
1143
+ pre-launch and pending the redeploy gate.
1144
+
1145
+ This was the third instance of one bug class, and the existing guard missed it because it checked
1146
+ two factories **by name**. The replacement is exhaustive by construction: it reverse-looks-up which
1147
+ initcode each `predict*` actually hashed, drives every `prepareDeploy*` and every `deploy*`
1148
+ orchestrator against a stub chain, and asserts no `__$` placeholder survives anywhere — so the next
1149
+ library-linked contract is covered without anyone remembering to add it.
1150
+
1151
+ Also: every SDK deploy now goes through CREATE2 at a canonical salt (the 1/1 and Series anchors were
1152
+ still plain `CREATE`, landing at nonce-dependent addresses that could never match the manifest), and
1153
+ the CLI no longer tells creators an ERC-1155 edition emits no ERC-4906 — both lanes emit it now.
1154
+
1155
+ - 1b6b741: The param transfer hook is a veto, not best-effort — say so everywhere, and ship the lock that answers it
1156
+
1157
+ The transfer hook used to swallow its own revert, and every surface promised that the parameter
1158
+ lifecycle "must never block a transfer". That promise could not be kept, so it is withdrawn rather than
1159
+ restated: Solady runs the ERC-721/1155 **receiver acceptance check after the hook**, so on the `safe*`
1160
+ variants — which marketplace fills wrap — a hook that is cheap when a wallet estimates gas and expensive
1161
+ when the transfer lands starves the work that comes after it, with or without a gas cap. Swallowing
1162
+ bought a guarantee that was false in exactly the cases people use, while making an honest hook's failure
1163
+ invisible.
1164
+
1165
+ So the contract now calls the hook plainly (no swallow, no gas budget, no assembly), **its revert fails
1166
+ the transfer**, and — because a mint and a burn are transfers from/to `0x0` — a reverting hook also stops
1167
+ minting for that project, including through the shared minter. That is deliberate: a hook is always the
1168
+ creator's own contract, which is why it may block issuance while the transfer _validator_, usually a
1169
+ third party's, never sees mint or burn.
1170
+
1171
+ The mitigation is a lock, and it is now reachable end to end:
1172
+
1173
+ - **SDK** — `prepareLockParamHooks({contract, chainId})`, the sibling of `prepareLockScript` /
1174
+ `prepareLockDependencies`. Plus two reads: `readParamHooks` (the trio) and `readParamHooksLocked`,
1175
+ which establishes the freeze without a getter by simulating `setParamHooks` with the current trio and
1176
+ watching for `ParamHooksLocked` — and returns `undefined`, never a cheerful `false`, when a node won't
1177
+ answer.
1178
+ - **CLI** — `abx lock-param-hooks <address>`. Owner-only, one-way, every signing lane, `--dry-run`
1179
+ guarded. It prints the exact three addresses it will freeze, states what is given up (arming a
1180
+ transfer veto, arming a configure veto, re-pointing or clearing the augment hook) and that there is no
1181
+ way back, and distinguishes the two cases: freezing an **empty** set is how a project _proves_ it can
1182
+ never arm a transfer veto, while freezing a set that already contains a hook pins which contracts can
1183
+ run — it does not disarm them.
1184
+ - **`abx state`** now prints the three hooks and whether they are frozen, next to the transfer validator,
1185
+ because that pair is the read a buyer performs. `abx verify` warns on an armed-but-unfrozen transfer
1186
+ hook. `abx set-param-hooks` states the veto at the moment a transfer hook is armed.
1187
+ - **Reconstruction** — `ParamHooksFrozen` folds into `ProjectState.paramHooks.locked`. The event is
1188
+ declared only by `AbxParamsLib`, so `spineEventAbi` now unions that ABI (its other events dedup away):
1189
+ without it the one-way lock on a hook that can veto a transfer was invisible to every consumer that
1190
+ folds the spine.
1191
+
1192
+ Swept for the withdrawn promise: `protocol/params` (which gained a section on why it died),
1193
+ `protocol/owner-powers` (the hook is now on **both** lists — an unlocked hook set as a live power, a
1194
+ frozen one as a guarantee), `specs/protocol/event-spine`, `specs/protocol/user-stories`, the spine event
1195
+ doc strings, and the `abx-self-host` skill (`SKILL.md`'s lock bullet plus the operating and code-project
1196
+ references). No surface still says "best-effort", "reverts are swallowed", or "never blocks a transfer",
1197
+ and a CLI test now fails if one comes back.
1198
+
1199
+ - 1b6b741: Transfer validator: preflight what the chain actually refuses, and stop calling `setTransferValidator` owner-only
1200
+
1201
+ Two corrections, both in the direction that was costing someone something.
1202
+
1203
+ **The preflight was a bare `getCode`, and the chain's check is not.** `validateTransfer` returns nothing,
1204
+ so there is no ABI decode to fail — which means any address whose fallback succeeds for an unknown
1205
+ selector passes a has-code check and then waves **every** transfer through, while ERC-165,
1206
+ `getTransferValidator()` and the extension beacon all report enforcement as ON. A Safe does exactly this
1207
+ (`FallbackManager.fallback()` returns empty when no handler is set), as do an uninitialised proxy and a
1208
+ 7702-delegated EOA, and a creator pasting their own Safe is the likely real case. The contract's guard was
1209
+ rewritten to probe with a selector no validator implements and require it to **fail**; the toolkit now
1210
+ asks the same question, with the same selector, through the new SDK `probeTransferValidator` (verdicts:
1211
+ `ok` · `no-code` · `permissive-fallback` · `unreachable`). Both call sites use it — `abx
1212
+ set-transfer-validator` and `deploy --721c` — so a creator gets a refusal that names what is actually
1213
+ wrong instead of passing the CLI and reverting on chain against an error whose documented meaning ("no
1214
+ code on this chain") was false for their address.
1215
+
1216
+ **`setTransferValidator` is owner-only only while there is an owner.** Once `owner() == address(0)`
1217
+ **anyone** may suspend enforcement by passing `address(0)`, and nobody may ever arm a validator again —
1218
+ the dead-man release for a validator that reverts every transfer on a collection with nobody left to
1219
+ re-point it, which would otherwise strand every collector's token permanently. Four surfaces still said
1220
+ owner-only, and the SDK's was wrong in the direction that matters: an integrator reading it would refuse
1221
+ to build the suspension a stranded holder needs. Corrected in `creator-token.ts` (module header plus
1222
+ `prepareSetTransferValidator`), `protocol/royalty-enforcement`, `protocol/interfaces`, and
1223
+ `specs/protocol/interfaces`, each stating the asymmetry: an ownerless collection can only ever be moved
1224
+ _toward_ transferability, so this hands a stranger no power over a live project.
1225
+
1226
+ ## 0.1.0-alpha.13
1227
+
1228
+ ### Patch Changes
1229
+
1230
+ - 528c6c6: ERC-1155 editions: the trust-anchor and on-chain-URI checks told the truth about 721s only, and four
1231
+ membrane gaps around them (2026-08-05 wave-4 agent sweep — 12 cold agents, one funded end-to-end run
1232
+ on Base Sepolia).
1233
+
1234
+ The 1155 contracts themselves were fine: a funded run took an edition from deploy through
1235
+ `tokenuri` → mint more copies → transfer one copy → lower the per-id cap, verifying every step
1236
+ against the chain. What shipped wrong was everything that _describes_ an edition.
1237
+
1238
+ - **`abx verify` reported EVERY canonical edition as `canonical: NO`.** `detectCanonicalFactory`
1239
+ probed only the three 721 anchors and, on no match, fell back to the 721 1/1 factory — whose
1240
+ `isAbxClone` answers **false**, not "unknown". So the one signal platforms allowlist against was
1241
+ confidently inverted for the entire edition line (the function's own docstring promised
1242
+ "canonicity just shows unverified, never wrong"). All six anchors are now probed. **Editions
1243
+ registered before this fix keep the wrong factory in the local projection** — `abx forget <addr>`
1244
+ then `abx add <addr>` re-detects it.
1245
+ - **`abx verify`'s on-chain-URI probe called the ERC-721 `tokenURI` selector on editions**, which
1246
+ exposes `uri(id)`. It reverted for every edition, so verify could never confirm that a
1247
+ fully-on-chain edition resolves — and it printed the raw multi-line viem dump (Contract Call /
1248
+ args / Docs / Version) into a creator-facing readout. The probe now switches on `contractType`
1249
+ (matching `reconstruct.ts`, which already did), reports which accessor it read so an edition is
1250
+ never described in 721 terms, and readout errors are trimmed to their first line.
1251
+ - **An address with no contract was reported as a specific type: `OneOfOneImage`.**
1252
+ `detectTokenKind`'s three probes are each `try/catch → false`, so nothing-deployed and
1253
+ no-extensions-composed were indistinguishable and the ladder fell through to its `1of1` default.
1254
+ `abx set-max-supply` and `abx minter buy` then told edition owners _"…is a OneOfOneImage (721) —
1255
+ drop your edition flags"_ for a mistyped address or, far more often, the wrong `ABX_CHAIN` (the
1256
+ default is base-sepolia, so any Sepolia contract hit this immediately) — advice that removes the
1257
+ _correct_ flags. The existence check now lives inside `detectTokenKind`, so all 13 call sites
1258
+ inherit it; it fails **open** on an unreadable `getCode`, so an RPC blip never becomes a
1259
+ "no contract" claim.
1260
+ - **`abx transfer --token-id <n>` silently transferred id 0.** `transfer` spells the id `--token`
1261
+ while every sibling command (`mint`, `set-max-supply`, `minter …`) spells it `--token-id`, and an
1262
+ unrecognized flag was simply ignored — so an agent that learned the name from `mint` moved the
1263
+ **wrong artwork** with no warning. `--token-id` is now an accepted alias; disagreeing values are
1264
+ refused rather than silently preferring one.
1265
+ - **The edition deploy previews dropped lines their 721 twins print.** All three edition lanes
1266
+ omitted `approvals N wallet approval(s)` from the dry-run readout — which the skill promises "every
1267
+ preview" prints and tells the agent to state up front, so on an edition the agent had nothing to
1268
+ tell the creator about how many wallet prompts were coming (`deploy-code --copies` had it only in
1269
+ the `--confirm` sentence, which is off by default). `deploy --copies` and `deploy-series --copies`
1270
+ also omitted the "resolves ON-CHAIN via the renderer — no resolver, no server" line, which is
1271
+ precisely the guarantee an edition creator is asking about, and `deploy-series --copies` never
1272
+ showed `paused`. All six lanes now print the approval count; the 1155 paths say `uri()`.
1273
+ - **Owner-op writes now surface a stray flag instead of swallowing it.** `mint`, `transfer`,
1274
+ `set-max-supply`, and `minter configure|show|buy` warn on an unrecognized flag (warn, not refuse —
1275
+ per `unknownFlags`' contract, a false warning must never break a script). These are the commands
1276
+ where the 1155 semantics live in _optional_ flags that default rather than fail: a typo'd
1277
+ `--amount 50` minted 1 copy and a typo'd `--quantity 5` bought 1 and paid 1×, both in total
1278
+ silence. The broader gap — ~35 commands with no unknown-flag notice at all — is filed as B30.
1279
+
1280
+ A second verification sweep (six more cold agents, one funded) confirmed each fix above from a fresh
1281
+ start and turned up four more, all fixed here:
1282
+
1283
+ - **A supply cap could be raised in `--dry-run` and only revert on send.** Both twins —
1284
+ `set-max-invocations` (721) and `set-max-supply` (1155) — printed the new cap as fact for a value
1285
+ the chain forbids, then reverted for real. A clean dry run is read as permission to send. Both now
1286
+ read the current cap first and refuse up front; the 1155 side also refuses a cap **below** live
1287
+ supply (the second way it reverted). Both guards fail **open** on an unreadable getter, since the
1288
+ chain enforces the invariant anyway. (The 721 guard needed the Series ABI — reading `maxInvocations`
1289
+ through the 1/1 ABI that `read()` uses throws, which would have made the guard silently never fire.)
1290
+ - **`abx refresh` told edition owners ERC-4906 had already pinged marketplaces.** An ERC-1155 edition
1291
+ emits no ERC-4906 at all — that is precisely why `ping-uri` exists — so the one sentence a creator
1292
+ reads after editing metadata said "already handled" when nothing had been, and `ping-uri --help`
1293
+ said the opposite. Two commands contradicting each other on the new lane. `refresh` is now
1294
+ kind-aware and names `ping-uri` for editions.
1295
+ - **`abx verify` ended in two ⚠ on a perfectly healthy fully-on-chain image drop** — "generator
1296
+ reports NO code" and "no animation_url" — because the code-project lane runs whenever a tokenURI
1297
+ renderer is set, which is true for every on-chain project, image or code. A static image has no
1298
+ program and no `animation_url` by design. Three separate agents named this as the worst thing about
1299
+ `verify`, and one said plainly it would make a creator distrust future real warnings. The code-lane
1300
+ checks are now scoped to the code twins; a static drop gets one informational line instead. (This
1301
+ was pre-existing on the 721 path too, not an editions regression.)
1302
+ - **`EditionImage`'s SVG-only refusal was a thinner copy of its 721 twin's** — the Series version names
1303
+ three routes (`--onchain-image`, `--backend ipfs|arweave`, or host off-chain); the edition version
1304
+ said only "drop `--onchain-uri`". A cold agent asked for "3 artworks × 25 copies each" read that,
1305
+ concluded there was no no-server option for one contract, and **fanned the collection out into three
1306
+ separate single-artwork contracts**. The refusal now states the real options for the lane and says
1307
+ explicitly that the off-chain-image-URL-in-on-chain-JSON route exists only per-artwork via
1308
+ `abx deploy --copies` — one contract per artwork, not one collection. The underlying capability gap
1309
+ is recorded in B28.
1310
+
1311
+ One knock-on from the first fix: the `false` branch of the canonical readout said _"not a clone of the
1312
+ **configured** factory"_ (singular), which now understates the check and misdirects the reader — six
1313
+ anchors are probed, so a `false` means no trust anchor the CLI knows deployed this contract, and the
1314
+ usual real cause is a **superseded** factory or a hand-deployed contract, not a misconfiguration. It
1315
+ now says so, and points at `abx doctor` for the current anchors.
1316
+
1317
+ Also: `deploy --help` no longer calls the edition sale stack (`--minter`/`--primary-payee`/
1318
+ `--unpaused`) "required" — it is optional, and an agent handed a creator hardcoded addresses as
1319
+ mandatory because of it; `set-field --help` now lists all eleven `--representation` values (it showed
1320
+ seven, omitting `url-template`, `renderer`, `sha256`, `inline-gzip`); and `abx doctor`'s label column
1321
+ widened so `edition factory` no longer runs into its address.
1322
+
1323
+ The skill-drift ✗ now names **which** copy is stale and prescribes the command that actually clears
1324
+ it — `abx skill install` writes the project-local copy only, so a stale **global** copy produced a ✗
1325
+ whose own remedy could not fix it. Six agents hit it in one sweep; several re-ran the install
1326
+ repeatedly and one left its sandbox to read `~/.claude/skills` to work out what the tool meant.
1327
+
1328
+ ## 0.1.0-alpha.12
1329
+
1330
+ ### Minor Changes
1331
+
1332
+ - afa9dd4: ERC-1155 editions ship with full parity: a Series is many unique tokens (721); an **Edition** is
1333
+ many copies of a token (1155). The creator's word is **copies** — `abx deploy img.png --copies 100`
1334
+ (a single-artwork edition, `open` = uncapped), `abx deploy-series ./art --copies 50` (each image an
1335
+ edition), `abx deploy-code sketch.js --copies 25` (code editions). Without `--copies`, the 721
1336
+ lanes are unchanged.
1337
+
1338
+ Three new canonical contracts twin the 721 lineup — `OneOfOneEdition`, `EditionImage`,
1339
+ `EditionCode` — plus `AbxFixedPriceMinter1155`, a per-id fixed-price sale singleton
1340
+ (`minter configure/buy --token-id [--quantity]`). New owner ops: `mint --token-id --amount`,
1341
+ `transfer --amount`, `set-max-supply` (per-id cap, only ever decreases), `ping-uri` (re-emit the
1342
+ native `URI` event after a re-point). ERC-1155C creator-token enforcement is the same `--721c`
1343
+ opt-in (same validator registry and ERC-165 ids as 721C). Editions announce one new extension
1344
+ (`abx.extension.edition-supply`, per-id supply/cap); everything else — metadata fields, params,
1345
+ royalties, renderer, storage, effects — is the same protocol surface on both standards.
1346
+
1347
+ **Integrator surface (audience line):** additive only. `ProjectState.contractType` gains
1348
+ `'1of1-edition' | 'edition' | 'edition-code'`; `TokenState` gains `supply`/`maxSupply`/`holders`
1349
+ (editions only; `minted` means supply > 0 there); the spine ABI now decodes
1350
+ `TransferSingle`/`TransferBatch`/`URI`/`MaxSupplyUpdated`; `ChainDeployment` gains the four
1351
+ edition anchors (recorded for Sepolia + Base Sepolia, CREATE2-identical); token-api summaries gain
1352
+ an optional `copies` field. No existing export, route, column, or event shape changed.
1353
+
1354
+ - 8c254d5: The self-host projection no longer stores or pre-fetches composed URI documents, and the event log
1355
+ is append-only (from the abx-services 2026-08-05 projection memo, `docs/11`).
1356
+
1357
+ - **`contractURI`/`tokenURI` are live reads, never projected.** `reconstructProject`/
1358
+ `reconstructIncremental` gain `readUriDocuments` (default **false**) — with it off, the whole
1359
+ `contractURI`/`tokenURI` head-read batch is skipped entirely, not fetched-and-discarded. These
1360
+ fields have no settled value (a renderer can change the composed document with no log at all) and,
1361
+ on the on-chain lane, can run hundreds of KB per token — a real 32-token project measured 13.4 MB
1362
+ serialized, 99.8% of it `tokenURI`. A stale-but-rendering `data:` URI is worse than a missing one,
1363
+ because nothing about it looks wrong. `abx demo` is the one caller that passes `readUriDocuments:
1364
+ true`, for its read-back teaching step; `abx deploy`/`deploy-series`/`deploy-code` don't, and
1365
+ `abx verify`/`tokenuri`/`contracturi` were already doing independent live reads. **For
1366
+ integrators:** `ProjectState.contractURI` / `TokenState.tokenURI` are now `null` unless you opt in
1367
+ — including in a self-host node's `/api/project/:addr` responses (shape unchanged, values now
1368
+ null). Nothing that composes served metadata reads either field (the settled `fields`/
1369
+ `collectionFields` do); the settled scalars — `tokenURIRenderer`/`tokenURILocked`/
1370
+ `contractURIRenderer`/`contractURILocked` — are unaffected and still projected.
1371
+ - **The events table is append-only.** `seq` is now chain-derived (`(blockNumber << 32) |
1372
+ logIndex`, BigInt-safe) instead of the array index at write time, so it's stable across re-folds —
1373
+ a re-index appends via `ON CONFLICT DO NOTHING` instead of deleting and reinserting the whole
1374
+ history on every delta. `putProject` upserts the project and token rows in place (a token whose id
1375
+ vanishes from state is still removed) rather than delete-and-reinsert. `deregister` still deletes
1376
+ a forgotten project's events in full; a routine re-fold does not. **A full replay (`abx index
1377
+ --full`) purges the project's event log before rebuilding it** — append-only must not let a
1378
+ reorg-replaced event survive as a stale row, so the documented repair path stays a real repair.
1379
+ Existing stores migrate their positional `seq` values to the chain-derived form once, automatically
1380
+ (`PRAGMA user_version`-gated, transactional).
1381
+ - **Self-healing eventCount guard.** An incremental fold that would reduce `eventCount` below what's
1382
+ already stored is discarded rather than written, with one automatic full-reconstruct fallback (the
1383
+ memo's own war story: a bad fold once silently zeroed a live projection with nothing to catch it).
1384
+ - **New self-host stores open with `auto_vacuum = INCREMENTAL`.** Existing stores are unaffected
1385
+ (the pragma only takes on a database with no tables yet) — recorded as backlog B29.
1386
+
1387
+ ## 0.1.0-alpha.11
1388
+
1389
+ ### Minor Changes
1390
+
1391
+ - d40caf4: Requested by an integrator (abx-services) — the conformance surface now lives in the neutral
1392
+ layer. Five pieces that only token-api or storage exposed before, and that any third-party
1393
+ resolver needs to reproduce the reference behavior byte-for-byte, move into `@artblocks/abx-sdk`:
1394
+
1395
+ - **The generator-document family** (`ABX_JS`, `escapeInlineScript`/`escapeInlineJson`,
1396
+ `buildGeneratorDocument`, `injectTokenDataIntoHtml` — new `src/generator-document.ts`): pure
1397
+ string operations with no resolver-specific behavior, so the SDK, `abx preview`, and any
1398
+ third-party provider now share one definition instead of the CLI importing token-api just for
1399
+ this.
1400
+ - **The registry-dependency family** (`DEPENDENCY_REGISTRY_ABI`, `activeRegistry`,
1401
+ `resolveRegistryDep`, `registryDepUrl`, `dependencyScriptTags`, `URL_BUDGET_BYTES`), merged into
1402
+ the SDK's existing `deps.ts` alongside its registry-pointer logic. `node:zlib` can't come along
1403
+ — SDK core has to stay reachable from a browser bundle — so decompression is now an INJECTED
1404
+ `inflate?: (bytes: Uint8Array) => Uint8Array` threaded through `resolveRegistryDep`/
1405
+ `dependencyScriptTags`; omitting it when a resolved dep actually needs decompressing throws a
1406
+ new typed `InflateRequiredError` naming the fix, rather than crashing opaquely or silently
1407
+ degrading. `@artblocks/abx-sdk/node` gains `nodeInflate` (a one-line `gunzipSync` wrapper) so a
1408
+ Node host wires it in one line; a browser host passes a `DecompressionStream`-based
1409
+ implementation instead. (Merge note: the prior `dependencyRegistryReadAbi` and token-api's
1410
+ `DEPENDENCY_REGISTRY_ABI` declared the identical `getDependencyDetails` entry twice — deduped
1411
+ into one array that also carries `getDependencyScript`.)
1412
+ - **`contentTypeFromPath`** (new `src/mime.ts`): the MIME extension-map lookup, verbatim.
1413
+ - **Gateway resolution, split pure/env** (new `src/gateways.ts`): `resolveGatewayBase` is now PURE
1414
+ (no env read — takes resolved `{ipfs?, arweave?}` overrides) and `gatewayUrlFor` moves alongside
1415
+ it; `gatewayConfigFromEnv()` is the one place that reads `ABX_IPFS_GATEWAY`/
1416
+ `ABX_ARWEAVE_GATEWAY`, kept separate so a host with its own gateway config never has to touch
1417
+ `process.env` through this module at all.
1418
+ - **`exponentialBackoffDelay(attempt, baseMs, capMs)`** (`util.ts`): `min(baseMs * 2^(attempt-1),
1419
+ capMs)`, 1-indexed like the existing `linearBackoffDelay`. Prefer it for a sustained rate limit
1420
+ or an overloaded upstream; `linearBackoffDelay` stays right for a one-off transient failure.
1421
+ `service.ts`'s own retry ladder is unchanged (still linear — its rationale comment stands).
1422
+
1423
+ Token-api and storage keep every existing export working, re-exported from the SDK where the
1424
+ implementation moved — no removals, and token-api's own `nodeInflate`-pre-wired wrappers mean its
1425
+ internal call sites (`code.ts`'s document assembly, `deps.ts`'s `depStatusReport`) needed no
1426
+ signature changes at all. The browser-bundle test (`packages/sdk/test/browser-bundle.test.ts`)
1427
+ stays green with all of this now exported from the core index — proof that the injected-`inflate`
1428
+ design actually keeps `node:zlib` out of the bundle.
1429
+
1430
+ ### Patch Changes
1431
+
1432
+ - d40caf4: Drop-in for every consumer of `reconstructProject` / `applyHeadReads`; no signature changed.
1433
+
1434
+ **Fix `multicallChunked`'s per-leg retry so it actually recovers on a chain with no multicall3
1435
+ deployment, not just on an over-budget aggregate.** When the aggregate `client.multicall` throws,
1436
+ the retry re-asked each leg one at a time — but through the _same_ `client.multicall` call. That
1437
+ recovers a batch that failed for being too big (retrying smaller aggregates works fine), but not one
1438
+ that failed because this chain has no multicall3 contract at all: every multicall, at any width,
1439
+ fails identically, so the retry reproduced the exact same failure and the caller got all-null,
1440
+ indistinguishable from "the contract answered nothing." `reconstructProject`'s head-read
1441
+ (`applyHeadReads`) runs every identity field — `name`, `symbol`, `owner`, the URI-lane renderer/lock
1442
+ flags, `contractURI`, every `tokenURI` — through this helper, so on any chain lacking multicall3 a
1443
+ reconstruct silently blanked those fields instead of reading them.
1444
+
1445
+ The per-leg fallback now goes through `client.readContract` instead, which has no multicall3
1446
+ dependency, and is also used for a chunk that lands at width 1 on its own (e.g. the last chunk of an
1447
+ odd-length list) — previously that lone leg never retried at all. `readContract` throws on revert
1448
+ where multicall's `allowFailure` returns a `status: 'failure'` result instead; the fallback catches
1449
+ that per leg and maps it back to `null`, so a genuine revert still reads as "no answer," matching the
1450
+ aggregate's own contract. The over-budget recovery path is unchanged in outcome, only in which call
1451
+ answers the retry.
1452
+
1453
+ ## 0.1.0-alpha.10
1454
+
1455
+ ### Minor Changes
1456
+
1457
+ - 11fa933: The extraction phase of the simplification refactor: business logic that lived only inside the CLI
1458
+ is now importable — the CLI calls the same functions you can.
1459
+
1460
+ **Into the SDK:** the five trust-anchor bootstraps (`ensureFactory`, `ensureSeriesFactory`,
1461
+ `ensureSeriesCodeFactory`, `ensureRenderer`, `ensureSeedSource` — `anchors.ts`, on the same
1462
+ injected-`send` + `onEvent` pattern as `ensureChunkStore`, with a typed `AnchorUnavailableError`),
1463
+ `detectCanonicalFactory`/`resolveScanFloor`, the on-chain-URI setup composer (`onchain-uri.ts`),
1464
+ interrupted-deploy resume planning (`resume.ts`), migration plan/parity reconciliation
1465
+ (`migrate.ts`), the `abx.js` static analyzer (`inspect.ts`), dependency setup legs (`deps.ts`),
1466
+ content-staging plans (`staging.ts` — `planStagedContent`, `stageFieldContent` with `StagingEvent`),
1467
+ `mintedTokenIds`, and a typed `readSaleConfig` for the fixed-price minter.
1468
+
1469
+ **Into storage:** `uploadAndLocate`, `repinNodeCustody` (the byte-custody half of migration),
1470
+ `decideImageContentLane`, `assessStorageReadiness`/`assessTurboFunds` (the Arweave/Turbo funding
1471
+ math), and `awaitLocatorReady` (poll a locator until it serves).
1472
+
1473
+ **CLI hardening that fell out of the dedup:** one risk gate (`gatedSend`) now guards every write —
1474
+ `--dry-run` and `--confirm` mean the same thing on every command, all owner-ops gain `--confirm`,
1475
+ and a write reaching the send lane under `--dry-run` is structurally impossible (grep-enforced by
1476
+ test). One `CHAIN` source of truth; one memoized local-indexer accessor.
1477
+
1478
+ - 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.
1479
+
1480
+ **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.
1481
+
1482
+ **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.
1483
+
1484
+ **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.
1485
+
1486
+ **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.
1487
+
1488
+ ### Patch Changes
1489
+
1490
+ - 11fa933: The remaining phases of the simplification refactor that hadn't yet gotten a changeset: the CLI's
1491
+ internal module split, the token-api/effects/mint-page convergence on the SDK, the shipped skill's
1492
+ rewrite for the simplified surface, and a new SDK README.
1493
+
1494
+ - **`abx`'s `main.ts` split into domain command modules** (`commands/{deploy,project,reads,service,
1495
+ scaffold,storage}.ts`, shared `output.ts`/`errors.ts`), with one exit-discipline rule
1496
+ (`process.exitCode` + return, or a typed `CliError`, everywhere — bare `process.exit` only at the
1497
+ entry guard, the top-level catch, and the keep-alive SIGINT handler). Purely internal: a 207-fixture
1498
+ byte-diff matrix (every help text, dry-run, error path, and exit code) confirmed identical output
1499
+ before and after.
1500
+ - **token-api / effects / mint-page converge on the SDK**: `@artblocks/abx-storage` gains one
1501
+ `resolveGatewayBase` (`readiness.ts`), replacing three near-identical copies (two in token-api, one
1502
+ inline in storage itself); token-api exports `buildGeneratorDocument` so the CLI's `abx preview`
1503
+ consumes the real generator-document assembler instead of a hand-kept duplicate; the effects runner
1504
+ now resolves its config via the SDK's `readEnv` and gets a `makePublicClient` fallback transport, so
1505
+ `ABX_RPC_URL` accepts a comma-separated failover list like every other RPC var; the scaffolded
1506
+ mint-page app now imports ABIs from `@artblocks/abx-sdk/abi` and a browser-safe `makePublicClient` +
1507
+ typed `readSaleConfig` instead of hand-rolled fetch/decode, and pins its generated `package.json` to
1508
+ the SDK's _resolved_ version via a new `@artblocks/abx-sdk/package.json` export (alpha version
1509
+ counters diverge per package under changesets, so pinning the CLI's own number could produce an
1510
+ unsatisfiable range).
1511
+ - **The shipped skill (`.claude/skills/abx-self-host/`) is rewritten for the surface phases 0–5
1512
+ actually shipped**: every warning made obsolete by an enforcement is deleted rather than softened —
1513
+ predict-only deploy-preview addresses, the `approvals N` line, the single `ABX_REMOTE_SELF_*`
1514
+ credential grammar, `doctor`'s version/provenance ladder, `storage show --check`, the render/storage
1515
+ combo validator's dry-run row, and `ABX_DEPLOYER_PK` as the only key name. Retired names swept from
1516
+ `dev-loop-test`, the agent-eval scenarios, and spec prose. The skill ships bundled inside this CLI
1517
+ package (co-versioned via `SKILL.md` frontmatter), so it rides this same patch.
1518
+ - **New `packages/sdk/README.md`**: what the SDK is, the send-injection model (`PreparedTx` +
1519
+ `SendTx`, `makeHotSender` for a hot key, bring-your-own for a wallet/multisig), a complete
1520
+ deploy → upload → mint → read walkthrough against real exports, and browser-use notes (explicit
1521
+ `rpcUrls`, no env, the `/node` subpath is Node-only). Included in the npm tarball automatically
1522
+ (README is one of the files npm always packs, regardless of the `files` allowlist).
1523
+
1524
+ ## 0.1.0-alpha.9
1525
+
1526
+ ### Patch Changes
1527
+
1528
+ - df298d8: Fix three ways the reference resolver misreported on-chain state — and the head-read bug underneath one of them
1529
+
1530
+ From an engineering audit by the abx-services team (2026-08-04), who run the same protocol on a
1531
+ hosted node against real testers and so reach long-tail states a single-node run rarely does. All
1532
+ three findings reproduced. Verifying the second one turned up a fourth defect that was its actual
1533
+ cause, and that one is the most consequential of the set.
1534
+
1535
+ **1 · A renderer-computed TEXT field was dropped entirely.** `resolveImage` had an `R.renderer`
1536
+ branch; `resolveText` did not. So a `renderer`-represented `description`, `external_url`,
1537
+ `animation_url`, `background_color`, `youtube_url`, or `name` matched no branch and resolved **as if
1538
+ unset** — silently replaced by the operator's off-chain value with provenance reporting `off-chain`,
1539
+ or omitted from the metadata altogether. A creator who committed a computed field on-chain got the
1540
+ operator's version served instead, and nothing errored anywhere.
1541
+
1542
+ `resolveText` now mirrors `AbxMetadataRenderer._appendText`'s `R_RENDERER` arm exactly, because the
1543
+ two must agree: with `tokenURIRenderer` set the chain assembles this JSON and the resolver merely
1544
+ re-serves it, so any difference is a resolver contradicting the token's own `tokenURI`. That means
1545
+ the **declared** contentType is used verbatim (`renderer` is the one representation that types itself
1546
+ on-chain) rather than an assumed `text/html`, and a `text/uri-list` result (RFC 2483 — the canonical
1547
+ generator's directory branch) lands as the locator it is, never data-wrapped. This is a deliberate
1548
+ divergence from the shape the audit recommended (pointing at the node's own `/data/{field}` route):
1549
+ parity with the on-chain renderer is the stronger constraint here. A field renderer that reverts now
1550
+ degrades that one field — with provenance saying the on-chain attempt failed, not a clean
1551
+ `off-chain` — instead of being indistinguishable from an unset field.
1552
+
1553
+ **2 · The `name` fallback asserted an ERC-721 `name()` read it had not performed.** When
1554
+ `state.name` is null the served value is the raw contract address, and the note still said
1555
+ `on-chain (ERC-721 name() + #id)`. A hosted node served `"name": "0xb844…c35e56 #0"` beside that note
1556
+ while the contract's `name()` was `"ABXdoku"`. The wrong name is cosmetic; provenance is the surface
1557
+ you would point an artist at to audit their own metadata, so a false positive there costs more. The
1558
+ note is now conditional, and deliberately does not adjudicate _why_ the value was empty — the
1559
+ projection cannot tell an unnamed contract from a failed read, and guessing is how the original note
1560
+ came to lie.
1561
+
1562
+ **3 · The live view answered "not a code project" for a code project that was merely mid-index.**
1563
+ `/a/` collapsed every `resolveLiveView` null into one confident verdict about the **contract**, when
1564
+ at least one is a statement about the **index**: `chunkCount` is a head read, so a template-mode
1565
+ project whose chunks have not been folded in yet reads as zero. A tester got
1566
+ `live · caught up · 127 events · 32 tokens` from the node and this 404, concluded the resolver did
1567
+ not recognise the SeriesCode factory, and a `--full` re-index did not clear it — the confident
1568
+ wording sent them looking in the wrong place. The route now consults `contractType` (folded from the
1569
+ deployed extensions, so it knows before any code lands) and answers **503 + Retry-After** for "not
1570
+ yet" versus 404 for "not ever". Both verdicts are answered before the chain client is touched, since
1571
+ neither needs an RPC. The three-way decision is extracted as `liveViewAvailability(state)` so it has
1572
+ a test seam at all.
1573
+
1574
+ **4 · The head-read multicall failed _whole_ on the flagship lane, and took identity, trust, and the
1575
+ URI lane with it.** This was not in the audit — it is why finding 2 fires, found by reproducing it
1576
+ instead of accepting "an RPC hiccup". `applyHeadReads` batched `name`, `symbol`, `owner`,
1577
+ `contractURI`, `isAbxClone`, `implementation`, the four URI-config getters, and **one `tokenURI` per
1578
+ token** into a single multicall. A multicall is one `eth_call`: on a fully-on-chain project
1579
+ `tokenURI(id)` assembles the entire metadata document on-chain, so a handful of those legs exceeds a
1580
+ public node's budget and _every_ leg in the aggregate reports failure — including legs that answer
1581
+ fine alone.
1582
+
1583
+ Measured on Base Sepolia `0xB844F4D2137a8Ce785Cbc80D281A36DBD1c35E56` (32 tokens, chain-complete):
1584
+ 1 tokenURI leg → 5/5 succeeded; **4 legs → 0/8 succeeded**, while `name()` on its own returned
1585
+ `"ABXdoku"`. Every resolver indexing that collection therefore believed it had no name, no symbol,
1586
+ no `contractURI`, no canonical proof — and **no `tokenURIRenderer`, i.e. that it was not in the
1587
+ on-chain-URI lane at all.** Deterministic for any sizable on-chain collection, not a hiccup.
1588
+
1589
+ Reads are now split by cost class: the cheap fixed-size ones that decide a project's identity and
1590
+ lane go in a batch of their own and can never be collateral damage, while the unbounded ones
1591
+ (`contractURI`, per-token `tokenURI`, script chunks) read in small chunks through a helper that
1592
+ re-asks a failed chunk one leg at a time before believing it. After the fix, that same contract
1593
+ reconstructs with its name, symbol, both URI renderers, and all 32 token URIs intact.
1594
+
1595
+ 12 regression tests across the four, including the null-name case both surfaces missed because every
1596
+ parity fixture on both sides hardcoded a non-null name.
1597
+
1598
+ - df298d8: `abx tokens <address>` — every token's owner, seed, and params, from chain alone
1599
+
1600
+ The most obvious post-deploy question about a generative collection — _what did the seeds actually
1601
+ deal?_ — had no command. `abx verify` reports per-token minted/render status but no seed; `abx
1602
+ tokenuri` prints one token and the seed lives inside its base64 `animation_url`; `abx inspect` is
1603
+ pre-deploy and static. An agent's workaround was to start `abx serve`, `GET /api/project/<addr>`,
1604
+ base64-decode each `tokenURI`, base64-decode the `animation_url` inside it, then regex
1605
+ `0x[0-9a-f]{64}` out of the resulting HTML — 32 times. Every input to that was already a plain
1606
+ contract read.
1607
+
1608
+ `abx tokens <address> [--json] [--from <id>] [--limit <n>]` is chain-only: no indexer projection, no
1609
+ running resolver, no event scan. The params store maintains its own key lists inside its write paths
1610
+ (`tokenParamKeys` / `contractParamKeys`) and `seed` is a reserved param read by name, so the whole
1611
+ listing is `eth_call`s — available to anyone with an RPC URL, including before any indexing has
1612
+ happened. Seeds print in full (truncating the one value the command exists for would repeat the
1613
+ `tokenuri` bug); `--json` emits `{tokenId, owner, seed, params}` per token, contract-scope params
1614
+ once on the parent rather than copied into every row.
1615
+
1616
+ It reports honestly across all three token types rather than failing: a 1/1 has no params extension
1617
+ and says so (owners still list), a pre-enumeration project still yields seeds and flags that params
1618
+ can't be enumerated, and an id whose `ownerOf` reverts is `null` — not "not minted", because a
1619
+ burned id and an unminted id revert identically and a chain-only read can't tell them apart.
1620
+
1621
+ Two things it deliberately is not. It is not a trait spread: a trait comes from running the script
1622
+ against the seed, which is `abx render`'s job — the token-scope _param_ spread it does print is
1623
+ labelled as such. And the reader is in the **SDK** (`listTokens`), not just the CLI, so a
1624
+ programmatic integrator gets it without reimplementing it.
1625
+
1626
+ Backlog B25 (from the 2026-08-04 tester batch, feedback `dcfdc6f4`).
1627
+
1628
+ ## 0.1.0-alpha.8
1629
+
1630
+ ### Minor Changes
1631
+
1632
+ - e325b46: Opt-in ERC-721C support across the toolkit — plain ERC-721 stays the transparent default.
1633
+
1634
+ SDK: `OneOfOneInitParams`/`SeriesInitParams` (and `SeriesCodeInitParams` by inheritance) gain
1635
+ `transferValidator` immediately after `royaltyBps` — `zeroAddress` = plain ERC-721 forever (the
1636
+ default), non-zero = permanent 721C enrollment with that validator. A new `creator-token` module
1637
+ ships the per-chain `RECOMMENDED_TRANSFER_VALIDATOR` (OpenSea's
1638
+ StrictAuthorizedTransferSecurityRegistry, verified live on Sepolia + Base Sepolia), the two
1639
+ creator-token ERC-165 ids + the ABX extension id, `readCreatorTokenStatus()` (`{enrolled,
1640
+ validator}`), and a `prepareSetTransferValidator()` write wrapper.
1641
+
1642
+ CLI: the deploy commands take `--721c [recommended|0x…]` — absent means zero behavior/output
1643
+ change; `recommended` resolves the per-chain constant (refused, naming the chains that have one,
1644
+ where none is known); an explicit address is EIP-55-validated and pre-checked for code before any
1645
+ gas. Enrolling prints one plain statement of what enforcement means. A new owner op
1646
+ `abx set-transfer-validator <address> <0x…|none|recommended>` re-points or suspends an ENROLLED
1647
+ collection's validator (guards `--dry-run`; refuses plain ERC-721s up front — enrollment is a
1648
+ deploy-time decision). `abx state` shows the validator for enrolled collections only.
1649
+
1650
+ ## 0.1.0-alpha.7
1651
+
1652
+ ### Minor Changes
1653
+
1654
+ - 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.
1655
+
1656
+ **`abx tokenuri --json`.** The command abbreviated long values (`… (382 chars)`) with no way to turn it
1657
+ off, so for a token whose whole point is on-chain content it returned something that _looked_ like the
1658
+ metadata and wasn't. An integrator scraped it, stored a `data:` URI cut to 96 characters, and only
1659
+ found out in production; they abandoned the CLI as a read path and reimplemented `eth_call`. `--json`
1660
+ now emits the verbatim decoded document — no banner, no ANSI, no truncation — so
1661
+ `abx tokenuri <addr> --json | jq` is a supported read path. The human view still abbreviates, and now
1662
+ says `[--json for the full value]`.
1663
+
1664
+ **One Arweave identity, resolved in one place.** `arweaveConfigFromEnv()` read `ARWEAVE_JWK` and
1665
+ nothing else, while the CLI mints and manages `.abx-self-host/arweave-key.json`. Porting a working CLI
1666
+ flow to the SDK — same machine, minutes later — failed every upload with "Arweave via Turbo needs an
1667
+ identity", a message that says storage was never configured when the truth was that two layers
1668
+ disagreed about where the identity lives. `@artblocks/abx-storage` now exports `resolveArweaveJwk()`
1669
+ (env → managed key file) and the CLI delegates to it. Its diagnostics come with it: an empty key file
1670
+ now reports the **path** and the remedy instead of `Unexpected end of JSON input`, and a corrupt one
1671
+ says the same.
1672
+
1673
+ **`abx refresh` on the default chain.** The OpenSea slug map held only `sepolia` and `mainnet`, so
1674
+ `base-sepolia` — the CLI's own default — fell through to the raw key: the refresh POST went to a slug
1675
+ OpenSea doesn't know, and the printed link pointed at **mainnet** `opensea.io` for a testnet token.
1676
+ Slugs are now correct (`base_sepolia`), `testnet` comes from the chain registry rather than a second
1677
+ hand-maintained set, and a chain with no known slug produces **no link** instead of a wrong one. Same
1678
+ shape as the hardcoded explorer table that once sent every Base Sepolia link to Etherscan.
1679
+
1680
+ **`abx attach` names its dependency.** Attaching artifacts to a project that resolves on-chain now
1681
+ warns, before the send, that they will **not** appear in `tokenURI` — the on-chain renderer carries
1682
+ reserved fields only, and the artifacts manifest comes from a resolver. A team attached five audio
1683
+ stems to a fully-on-chain token and found them "paid for, stored on-chain, and invisible"; the note
1684
+ that existed was one dim line that read as a footnote rather than as a missing service.
1685
+
1686
+ **`ensureChunkStore` moved to the SDK.** The bootstrap every on-chain-content path needs existed only
1687
+ inside the CLI, so an SDK integrator got `resolveChunkStore()` (may return undefined) plus a separate
1688
+ `storeSupportsWriteContent()` they had to remember — forget it and an incapable store fails _deep
1689
+ inside a mint, after transactions have landed_. One team hand-rolled the guard for exactly that reason.
1690
+ `ensureChunkStore(publicClient, send, {chainId, override, onEvent})` is now exported; the SDK reports
1691
+ progress through `onEvent` instead of printing, and the CLI keeps its narration.
1692
+
1693
+ **`abx storage upload --json`.** The locator as data. They scraped this line, captured its ANSI colour
1694
+ codes along with the URL, wrote the result into a _stored_ player URL, and found out when it 404'd in
1695
+ production. In `--json` mode stdout carries the JSON and nothing else; progress moves to stderr.
1696
+
1697
+ **`--backend ipfs` no longer hides a missing credential.** Without `PINATA_JWT` the backend resolves to
1698
+ **kubo against a local node**, so a dry run looked fine and the real upload failed for anyone not running
1699
+ one. The preview now says so. Related correction: the skill claimed "a backend missing its secret falls
1700
+ back to `fs`" — it does not. `cloud` refuses up front naming the missing values, and `ipfs` goes to the
1701
+ local node; nothing silently degrades to local disk. Both sides now say the same thing.
1702
+
1703
+ Reported in the 2026-08-03 MXRR integration batch (feedback 869f27b1, a256217f, 119d7e8e, 975c363e,
1704
+ e38216db, e267078b).
1705
+
1706
+ - 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.
1707
+
1708
+ The params store was unenumerable by design, so anything that wanted to know _which_ parameters a
1709
+ project has had to be told. The answer was a convention: a `params.keys` contract param holding a
1710
+ comma-separated list, composed by `deploy-code` from the `--schema` flags and hand-maintained
1711
+ thereafter. It worked, and it had the defect every hand-maintained index has — a key configured but
1712
+ not listed was **silently omitted from every render**. The schema existed, a collector could set it,
1713
+ the art never saw the value, and nothing anywhere reported a problem. The CLI grew a nudge, then a
1714
+ same-transaction companion write, and both were treatments for a design that should not have needed
1715
+ them.
1716
+
1717
+ **The token now maintains its own key lists.** `SeriesCode` gains `tokenParamKeys(tokenId)`,
1718
+ `contractParamKeys()`, and `paramSchemaKeys()` (plus `…Paged` variants for surfaces past an RPC's
1719
+ return cap). The lists are updated inside the write paths themselves, so `key ∈ list ⟺ the param is
1720
+ set` holds for every writer — raw owner writes, governed `configure-param` writes, hook-driven writes,
1721
+ all of them. No caller can forget, because no caller is involved. (`seed` is deliberately never listed:
1722
+ every consumer reads it as a tokenData coordinate, and indexing it would charge every seeded mint for
1723
+ nothing.) `paramSchemaKeys()` closes the other half — a chain-only frontend can now build a configure
1724
+ UI, including for keys declared but never yet written, which nothing off-chain could previously
1725
+ discover.
1726
+
1727
+ **The canonical `AbxGenerator` reads that surface instead of the CSV.** It no longer looks at
1728
+ `params.keys` at all, and a `params.keys` value set on a new project is simply an ordinary parameter —
1729
+ enumerated and emitted like any other, by both the generator and the SDK. A latent parity bug dies with
1730
+ the convention: the generator's no-CSV path emitted tokenData in insertion order while the canonical
1731
+ serializer sorts, so the two byte-forms could disagree; there is now one form.
1732
+
1733
+ **`AbxMetadataRenderer` is spec v4.** `tokenURI` gains a computed `abx_params` object — every set
1734
+ parameter, contract and token scope merged, token wins, sorted, decoded by the same rules the generator
1735
+ and the SDK use. A data-backed value over 2048 bytes is emitted as `{"keccak256":"0x…"}` — its on-chain
1736
+ commitment — rather than inline, so a large `Bytes` parameter cannot bloat `tokenURI` past a single
1737
+ `eth_call`; every key still appears, and an oversized one degrades self-describingly. Parameters are
1738
+ _not_ folded into `attributes`: that stays the creator's surface. Also in v4: an `animation_url` carried
1739
+ by the `inline` or `reader` representation is now wrapped as `data:text/html;base64,…`, exactly as
1740
+ `image` already was — the asymmetry was an oversight, and it meant a fully on-chain animation was
1741
+ handed to wallets as bare text.
1742
+
1743
+ Both changes are additive on the read side: pointed at a token that predates enumeration, a v4 renderer
1744
+ simply emits no params block. **Repointing the metadata renderer is safe anywhere.** Repointing the
1745
+ _generator_ is not, and `abx set-field` now refuses it: a legacy implementation plus the current
1746
+ generator means every parameter silently vanishes behind a `tokenURI` that still looks healthy, so the
1747
+ CLI stops you rather than warning you, and names both ways out (stay on the project's existing
1748
+ generator, or redeploy).
1749
+
1750
+ Everywhere else in the toolkit, the convention is simply gone:
1751
+
1752
+ - `deploy-code --onchain-uri` sets up in **three** legs, not four (animation field → generator, plus
1753
+ the two URI renderers). There is no key list to compose, report, or keep in sync, and the help text
1754
+ no longer teaches one.
1755
+ - `abx set-schema` is a single op again — no companion write, no multicall. This **supersedes**
1756
+ alpha.13, which shipped `set-schema` writing `params.keys` in the same transaction to stop a governed
1757
+ key going unlisted: the contract now maintains its own key list, so there is nothing to keep in step
1758
+ and the drift that fix guarded against is gone rather than mitigated. Same for that release's note
1759
+ that "there is no on-chain enumeration of schema keys" — `paramSchemaKeys()` is exactly that.
1760
+ - `abx state` reads the governed surface from `paramSchemaKeys()` and the collection-scope values from
1761
+ `contractParamKeys()`. A project deployed before enumeration falls back to reading its old
1762
+ `params.keys` list, read-only, so live testnet drops still describe themselves.
1763
+ - `abx verify` notes when a project's enumerated surface exceeds ~64 keys — the documented design
1764
+ envelope. The write side is unbounded; the read side is what grows, since `tokenURI` and `tokenData`
1765
+ assemble every parameter per call.
1766
+ - `abx configure-param <addr> - params.keys <csv>` no longer has a special path. Writing that key is
1767
+ now an ordinary schema-less contract param, and it shows up in tokenData as one — honest, and
1768
+ documented.
1769
+ - `abx_params` joins `artifacts` and `abx_provenance` as a computed key `set-field` and `attach` refuse.
1770
+
1771
+ The SDK needed no semantic change: `buildTokenData` has always been event-derived (coordinates + seed +
1772
+ every set param, both scopes, token wins, augment entries), and the contract enumeration implements
1773
+ exactly that rule. Its `deployments` manifest carries the new addresses.
1774
+
1775
+ ## 0.1.0-alpha.6
1776
+
1777
+ ### Minor Changes
1778
+
1779
+ - 1158420: Expose the PostParam schema lifecycle: `abx set-schema`, `abx retire-param`, Address legs, and `lock=`.
1780
+
1781
+ Three capabilities the contracts have always had, that the toolkit could not reach — so they read to
1782
+ creators as protocol limitations. All three were reported in the 2026-08-03 tester batch.
1783
+
1784
+ **A project's param surface was never frozen at deploy.** `setParamSchema` is owner-gated with no
1785
+ deploy-time restriction and no `exists` check, so it is an upsert usable for the life of a project.
1786
+ There was just no command for it, and the CLI said so out loud ("Adding a param to an already-deployed
1787
+ contract isn't a CLI command yet"), which pushed designers toward guessing their full param surface up
1788
+ front or redeploying — losing the address, the mints, and the collectors. `abx set-schema <addr>
1789
+ --schema key:Type:Auth` attaches or replaces one key.
1790
+
1791
+ Because it is a **full-row upsert on a contract that never re-validates stored values**, the command
1792
+ carries a guard rather than a warning: it prints before/after, and _refuses_ a change that could strand
1793
+ values already written under the key — a narrowed bound, a dropped `Select` option, a changed type —
1794
+ unless you pass `--force`. It also flags an existing `lock=` you are about to drop by not restating it.
1795
+
1796
+ **A parameter can be retired.** There is no delete in the contract (`exists` is only ever set true), but
1797
+ a `lockAfter` in the past makes every later write revert `ParamLockExpired`, permanently. `abx
1798
+ retire-param <addr> <key>` does exactly that, reading the current schema and changing _only_ the lock so
1799
+ type/auth/bounds/options carry forward untouched. It does not remove the key and does not erase a stored
1800
+ value — a value written under a `TokenOwner`/`Address` leg came from a collector, and the artist
1801
+ deliberately cannot delete it.
1802
+
1803
+ **An `Address` auth leg is now expressible.** `--schema` previously rejected every Address-bearing leg
1804
+ with "set that schema post-deploy via the contract" — advice pointing at a command that did not exist.
1805
+ The auth token now names its holder inline (`board:Bytes:Address(0xabc…)`), and the error for a bare
1806
+ `Address` says what the leg is for: a **contract** may hold it, which is how open and multi-party
1807
+ participation is built today. `authAddress` and `lockAfter` were also hardcoded to zero at the
1808
+ deploy-time call site, so neither was reachable there either; both now flow through `--schema`.
1809
+
1810
+ `--schema` gains an optional 4th field, `lock=<when>` (ISO date, unix seconds, or `now`), sharing the
1811
+ Timestamp grammar the bounds already use. A 4th field that is not `lock=` now reports the spec-shape
1812
+ error instead of a mangled "malformed type", which is what a `:` inside a `Select` label used to produce.
1813
+
1814
+ New in the SDK: `prepareSetParamSchema`, `prepareRetireParam`, `readParamSchema`, `OnChainParamSchema`.
1815
+
1816
+ (feedback 4a0c213a, 5d530681, 381bdcbe)
1817
+
1818
+ > [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
1819
+ >
1820
+ > > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
1821
+ > > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
1822
+
1823
+ `set-schema` also keeps **`params.keys` in step, in the same transaction**. On the on-chain URI lane
1824
+ the canonical generator builds tokenData from that CSV, so a key that is governed but not listed is
1825
+ silently omitted from every render — the schema exists, a collector can set it, and the art never sees
1826
+ the value. `deploy-code` composes the list from `--schema` for exactly this reason; without the
1827
+ companion write, a schema added later would have quietly half-worked. Projects not on that lane (where
1828
+ `params.keys` is unset) get no extra write.
1829
+
1830
+ > [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
1831
+ >
1832
+ > > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
1833
+ > > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
1834
+
1835
+ And `abx state` now prints the governed PostParam surface — each key's type, auth, bounds/options, an
1836
+ upcoming lock date, and a `retired` marker for one whose lock has passed. There is no on-chain
1837
+ enumeration of schema keys, so it reads the project's own `params.keys` list, which is also what the
1838
+ generator reads; anything missing from it is invisible to renders anyway. It also names keys listed
1839
+ there with no schema. This is what makes `set-schema`'s upsert safe to use: you can see a key's current
1840
+ shape before overwriting it.
1841
+
1842
+ ### Patch Changes
1843
+
1844
+ - 1158420: Fix `deploy-code` reverting `DeploymentFailed()` — the setup transaction was sent with a gas limit estimated against a contract that did not exist yet.
1845
+
1846
+ Every `deploy-code` attempt in a reporter's Base Sepolia session reverted with Solady's
1847
+ `DeploymentFailed()` (`0x30116425`), in both the on-chain and hosted-resolver lanes, with a minimal
1848
+ case of storing a single 3,563-byte script chunk. It was not a defect in the chunk path: the two
1849
+ transactions simply **ran out of gas**.
1850
+
1851
+ ```
1852
+ 0xcad74d07… gasLimit 201,616 gasUsed 198,870 (98.6%)
1853
+ 0xf4350724… gasLimit 169,301 gasUsed 166,810 (98.5%)
1854
+ ```
1855
+
1856
+ A code project deploys in two transactions: create the clone, then one setup `multicall`. The second
1857
+ targets the contract the first just created — and `eth_estimateGas` for that call, taken while the
1858
+ answering node has not yet seen the deploy block, returns the **calldata cost alone**. Replaying both
1859
+ payloads against a codeless address reproduces the sent limits _to the gas_ (201,616 and 169,301);
1860
+ against the real contract the same calls need 941,331. A setup multicall's cost is dominated by
1861
+ CREATE code deposit (~200 gas per stored byte), so the underfunded CREATE inside `SSTORE2.write`
1862
+ returned 0 and reverted. The 1/1 lane was unaffected because its setup fits inside a calldata-sized
1863
+ budget.
1864
+
1865
+ This is the same read-after-write lag the deploy loop already pins the **nonce** against, one field
1866
+ over. The fix has two halves, and deliberately does not include a third:
1867
+
1868
+ - **Every leg after the first waits for the target's code to be visible** to the client doing the
1869
+ estimating, so a lagging node cannot produce a meaningless estimate in the first place. This is the
1870
+ actual repair.
1871
+ - **An impossible estimate is detected and refused, not replaced.** `PreparedTx` gained an optional
1872
+ `gasFloor` carrying only the _provable_ part of a payload's cost — EVM code deposit at exactly 200
1873
+ gas per stored byte. An estimate below that is not "low", it is proof the node is on stale state, so
1874
+ the sender retries and then errors out with what it saw.
1875
+ - **What we did NOT do: substitute a computed gas limit.** Only the deposit is derivable; the same
1876
+ setup multicall also carries schema writes, dependency legs, URI legs and mints whose cost cannot be
1877
+ known without simulating them. A "probably enough" constant is tuned to whoever's example was in
1878
+ front of its author — it would have covered the reported single-chunk case and then under-funded a
1879
+ three-schema deploy by ~200k, reproducing the identical `DeploymentFailed()` with a fresh mystery
1880
+ attached. Refusing to send is strictly better than sending a transaction we can prove is
1881
+ under-funded, which would burn the gas and orphan the contract.
1882
+
1883
+ All three signing lanes carry this, not just the hot one: the env-key lane pins the limit before
1884
+ `sendTransaction`, the wallet lane waits for code and hands the browser an explicit `gas` (a wallet
1885
+ estimates against its own RPC, which we don't control and which lags the same way), and the cold lane
1886
+ prints `gasMustExceed` — labelled a floor, not a limit — plus a note telling an external signer to
1887
+ re-estimate rather than send if their own number comes back below it. The rule lives in one place
1888
+ (`packages/cli/src/gas.ts`) so the lanes cannot drift apart on it.
1889
+
1890
+ Reported in the 2026-08-03 tester batch (feedback 156ea0fb, 172111ae), root-caused from the full
1891
+ transaction hashes supplied in the follow-up addendum.
1892
+
1893
+ - 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.
1894
+
1895
+ **An unknown `ABX_CHAIN` printed a raw Node stack trace — from every command.** Chain-derived values
1896
+ were resolved at module scope, in `token-api` (which the CLI imports) and in the CLI itself, so the
1897
+ throw happened during module evaluation, before `main()` existed to catch it. `ABX_CHAIN=mainnet abx
1898
+ doctor` dumped an internal source path and exited 1 — including from the one command whose job is to
1899
+ tell you what is wrong with your environment. Those resolutions are lazy now, and the CLI validates
1900
+ the variable up front with an answer rather than a crash: unknown values list the shipped chains, and
1901
+ a mainnet-shaped value says plainly that ABX is testnet-only today.
1902
+
1903
+ **`abx inspect` reported "(no PRNG)" for a hand-written seeded generator — with the _stronger_
1904
+ reproducibility verdict attached.** The `seeded` check only recognized p5's `randomSeed(`, so a
1905
+ vanilla LCG or xorshift matched no branch and fell through to "traits look derived from the
1906
+ seed/params directly". That is the common case, not an edge one — the skill's own canonical
1907
+ dependency-free example hand-rolls an LCG, and all three sketches written by agents in the sweep hit
1908
+ it. A hand-rolled generator now gets the `careful` verdict and is told the truth: deterministic and
1909
+ reproducible on-chain, but only by porting that exact generator and call order into Solidity.
1910
+
1911
+ Also: `--yes` is now documented in `deploy-code --help` (its own placeholder-identity refusal already
1912
+ told you to pass it), and the `--onchain-uri` raster warning now names the two routes that actually
1913
+ deliver a no-server image instead of only one.
1914
+
1915
+ Found by the 2026-08-03 parallel sweep (8 cold Sonnet/Haiku agents, isolated sandboxes).
1916
+
1917
+ ## 0.1.0-alpha.5
1918
+
1919
+ ### Minor Changes
1920
+
1921
+ - feba8c2: A resolver is no longer an object store: effect outputs split into **bound** and **referenced**
1922
+ (`specs/protocol/effects.md → Bound vs referenced`), and the artifact registry enforces the split.
1923
+
1924
+ An output is **bound** iff a binding stitches its _content_ into the metadata JSON (today exactly
1925
+ `render/traits` → `attributes`); everything else is **referenced** — the projection carries its URL,
1926
+ or it only appears in the `artifacts` manifest. That one distinction decides who holds the bytes, and
1927
+ it is now the wire rule rather than a runner constant.
1928
+
1929
+ - **`POST /v1/effect-artifacts` derives the mode from the binding, and refuses both mismatches.**
1930
+ Bytes for a referenced output → `400` (the resolver redirects either way, so the bytes buy no
1931
+ capability and cost it storage, retention and egress). A locator for a bound output → `400` (its
1932
+ content is assembled into `tokenURI`; a pointer there used to be recorded and then silently never
1933
+ stitch — a wrong answer served confidently). Bound content is capped at **64 KB**, and a locator
1934
+ that only the producer could resolve (loopback/private host, presigned expiring URL) is rejected.
1935
+ The resolver never fetches a locator while handling the write, and serves registered locators by
1936
+ `302` — never by proxying.
1937
+ - **Bound content moved out of byte custody** into the artifact row (`effect_artifacts.bytes`). Two
1938
+ distinct rules, deliberately not one: a node **MUST** serve and stitch bound content only at the
1939
+ token's current settled `inputsHash`, and it **MAY** drop superseded content whenever it likes
1940
+ (nothing may read it, and it is re-creatable). The reference drops eagerly, on each bound
1941
+ registration, so it holds at most `64 KB × minted × bound outputs` — but retention is a service
1942
+ policy, not an obligation. Either way "conforming means holding a bounded amount of JSON in the
1943
+ database you already run" is now literally true: a resolver in the publish topology needs no object
1944
+ storage at all.
1945
+ - **`abx-effects-publish/v1` is gone** (not deprecated): the two routes ride `abx-control-plane/v1`.
1946
+ Once referenced output is locator-only, accepting a registration is a database insert, so the
1947
+ capability flag described a distinction that no longer exists. A service that won't take a caller's
1948
+ artifacts refuses on the credential (`403`) — interfaces describe wire grammar, tokens describe
1949
+ permission. The interface ids are also explicitly **all-or-nothing**, and the conformance fixture
1950
+ now checks that every route a declared interface names actually answers.
1951
+ - **The runner declares bound outputs** (`EffectOutputDecl.bound`), refuses to start when it has a
1952
+ publish token but a backend that can't name a locator, preflights the descriptor + credential
1953
+ before spending a render, and **latches** on a permanent (4xx) publish failure instead of
1954
+ re-rendering every sweep forever. Skips now re-register rows, so a transient publish failure heals
1955
+ without a re-render.
1956
+ - **The CLI refuses the impossible combination up front**: `abx render --remote`, `abx effects`
1957
+ against a remote resolver, and `abx deploy-effects` all require a backend that can name a reachable
1958
+ URL — `cloud` (S3/R2 + public base), `ipfs`, or `arweave`, named as **peers**. Derived output is
1959
+ re-creatable, so the protocol has no preference among schemes: a chosen `https://` gateway or
1960
+ bucket URL is exactly as legitimate as `ipfs://`/`ar://`, and reachability — not durability — is
1961
+ the requirement. Rendering **co-located** with the resolver remains fully supported on any backend,
1962
+ including `fs`.
1963
+
1964
+ Breaking for producers that relied on pushing media bytes to a resolver: publish a locator instead,
1965
+ or co-locate. Breaking for clients that read `abx-effects-publish/v1` from a descriptor.
1966
+
1967
+ ## 0.1.0-alpha.4
1968
+
1969
+ ### Minor Changes
1970
+
1971
+ - 67b686b: `abx contracturi`, and the read plane stops answering a bare 404 to three different problems.
1972
+
1973
+ Both halves come from one real failure: an agent driving a hosted resolver wanted collection
1974
+ metadata, pattern-matched off `/t/{chainId}/{address}/{id}`, dropped the token id, got a bare `404`,
1975
+ and reported the service as broken. The documented route (`/c/{chainId}/{address}`) was right there —
1976
+ but there was also no command to just _ask_, and the 404 gave it nothing to correct.
1977
+
1978
+ - **New `abx contracturi <address>`** — the collection-level counterpart of `tokenuri`. Reads
1979
+ `contractURI()` (ERC-7572) from the contract, **follows it**, and decodes: a `data:` URI inline
1980
+ (the on-chain lane), an `https://` URL by fetching it (the off-chain lane). A contract commits its
1981
+ own metadata base on-chain (`contractURIBase`), so the chain — not a doc, not a service
1982
+ descriptor — is the authoritative answer to where a project's metadata lives. Nobody needs to
1983
+ hand-build a resolver URL. When the fetch fails, the message says so plainly: the URL came from
1984
+ the chain, so a bad status is about the _service_ (unregistered project · wrong chain · down),
1985
+ never a mistyped path.
1986
+ - **Read-plane responses now carry a machine `code`**, so the three causes of "no metadata came
1987
+ back" are distinguishable — they were one indistinguishable `{"error": "…"}` `404`:
1988
+ - `400 invalid_request` — a real route, wrong shape. Names the correct template, and carries
1989
+ `didYouMean` when the fix is obvious (a `/t/…` missing its token id → `/c/{chainId}/{address}`).
1990
+ - `404 unknown_route` — this node serves nothing at that path; the body lists what it does serve.
1991
+ - `404 not_registered` — the path and chain were fine; this node doesn't index that contract.
1992
+ - `400 unsupported_chain` — wrong chain, plus the `chains` this node does serve. Was a bare `404`;
1993
+ now matches what the control plane already answered for the same condition.
1994
+ - `ServiceErrorCode` gains `unknown_route`. The spec's Errors section now covers the read plane too,
1995
+ with a **MUST** on distinguishing the three misses — and an explicit **MUST NOT** on treating
1996
+ route templates as per-node discoverable configuration. The route grammar is fixed by the
1997
+ `abx-token-api/v1` interface; these responses are diagnostics, not a discovery mechanism.
1998
+ - **The conformance fixture checks all of it** (`pnpm conformance <base-url>`), so any provider can
1999
+ self-verify in one command. Also fixed: the documented `pnpm conformance -- <base-url>` form
2000
+ parsed `--` as a flag and swallowed the base URL, printing usage instead of running.
2001
+
2002
+ ## 0.1.0-alpha.3
2003
+
2004
+ ### Minor Changes
2005
+
2006
+ - a72723d: A standard indexing lifecycle, and registration that no longer blocks on a slow chain RPC
2007
+ (specs/self-host-toolkit/remote-services.md → The indexing lifecycle).
2008
+
2009
+ - **Fixed: a slow register triggered a retry storm.** The SDK's per-attempt timeout (30s) plus its
2010
+ retry ladder meant a cold reconstruct that outran one request was **re-POSTed up to four times**,
2011
+ each starting another full replay against the RPC that was already too slow to answer — and the
2012
+ caller then saw "nothing responded" even though the registration was durable and indexing was
2013
+ underway. A timed-out register now asks whether it landed (a status read) instead of re-POSTing, and
2014
+ the resolver coalesces concurrent catch-ups for one project into a single run.
2015
+ - **`POST /v1/projects` answers in two conformant shapes, discriminated by HTTP status:** `200` with
2016
+ the completed summary, or `202` + `{accepted, project: {status}}` when catch-up is deferred. The
2017
+ registration is normatively **durable before catch-up** and visible on the list immediately, so a
2018
+ flaky RPC makes for a slower backfill rather than a lost add. No `?wait=`/`Prefer:` negotiation — the
2019
+ status code is the discriminator, and clients handle both. The reference resolver answers _by
2020
+ deadline_ (`ABX_REGISTER_DEADLINE_MS`, default 8s): the common case (a fresh deploy) stays
2021
+ synchronous with real counts; only the pathological case defers.
2022
+ - **Closed lifecycle enum + error classes, on the status and list routes:**
2023
+ `queued | backfilling | live | stale | failed`, plus credential-free
2024
+ `error.class ∈ {rpc_unavailable, rpc_rate_limited, not_abx_contract, internal}` (fixed per-class
2025
+ messages, never a scrubbed upstream string). Status gains top-level `headBlock` (so lag / % complete
2026
+ is computable without knowing a service has a watcher) and `attempts`; the list carries `status` +
2027
+ the error class, so a client renders "3 live, 1 backfilling, 1 failed (rpc_rate_limited)" in one
2028
+ request. SDK: `IndexStatus`, `IndexErrorClass`, `isAccepted()`, `indexProgress()`,
2029
+ `classifyIndexError()`, and `AbxServiceClient.awaitIndexed()` — one wait loop for the CLI, the
2030
+ effects runner, and any hosted agent.
2031
+ - **The same five words on your own node.** `abx status [address] [--remote [name|url]] [--watch]`:
2032
+ bare is the node summary (now with each project's state), an address gives lifecycle + scan floor +
2033
+ blocks-indexed-vs-head + cause, and `--remote` asks a service. (`status` = who is serving it and how
2034
+ fresh; `state` = what the chain says. Both `--help` texts now say so.)
2035
+ - **New observability the self-hosted node never had:** the chain watcher marks projects `stale` when
2036
+ it falls far behind head or its ticks keep failing (previously visible only in the node's log),
2037
+ re-queues a backfill interrupted by a restart (previously left registered-but-empty until a manual
2038
+ `abx index`), and retries a `failed` catch-up on exponential backoff instead of hammering a
2039
+ rate-limited RPC every tick. Lifecycle rows live in their own table: they survive a projection wipe
2040
+ and are never clobbered by a re-add.
2041
+ - **CLI:** `abx add|index --remote` prints `registered — backfilling…`, polls to `live`, then prints
2042
+ the same summary a synchronous service would have given; `--no-wait` returns at the 202 and names
2043
+ the command to check later. A post-op nudge (`ownerops`) never blocks on someone else's backfill.
2044
+ A caught-up project with **0 events** now warns instead of printing ✓ (a real ABX clone always emits
2045
+ a spine, so zero means wrong chain/floor or an RPC that didn't serve the logs).
2046
+ - **Conformance fixture** accepts either register shape, asserts durable-before-catch-up, lifecycle
2047
+ membership, `headBlock`, that a deferred catch-up actually reaches `live`, and that no error message
2048
+ carries a URL.
2049
+ - Fixed `scripts/mock-remote-service.mts`, which imported the token API by a path that resolved
2050
+ against `scripts/` and could silently fall back to a _published_ build outside the repo — the
2051
+ fixture was testing the last release instead of the working tree. The fixture also re-points
2052
+ scenarios by their fixture header now, so a new one can't keep a dead contract address.
2053
+
2054
+ Found by a cold-agent sweep over the above (10 parallel clean rooms, haiku + sonnet) and fixed here:
2055
+
2056
+ - **`abx status --remote <name>` with no address** parsed the flag itself as the address and sent it
2057
+ as a URL path segment.
2058
+ - **A register whose catch-up already failed** was announced as "registered — failed (…is catching
2059
+ up…)", and with `--no-wait` it exited 0 and then claimed the provider "now serves" the project. A
2060
+ known failure is now an error in both lanes — there is nothing left to wait for.
2061
+ - **A `failed` status said what broke but not whose problem it was.** Both the failure error and
2062
+ `abx status` now carry a per-class action line ("the SERVICE can't reach its chain RPC — not your
2063
+ key, address, or chain…"), plus a `follow` line naming `--watch`, so a red word isn't a dead end.
2064
+ - **A `live` project showed a misleading completion percentage.** `toBlock` only advances when a
2065
+ project has _events_, so a fully current project on a busy chain read as `2/202 (0%)`.
2066
+ `indexProgress()` now returns a ratio only while `backfilling`; `live` reads "caught up", `stale`
2067
+ reads "not tracking head right now".
2068
+ - **`--remote-token` was misattributed on a 401** — the error blamed `ABX_REMOTE_<NAME>_TOKEN` even
2069
+ when the caller passed an override, making the override look ignored at exactly the moment someone
2070
+ is testing a replacement key.
2071
+ - **`not_registered` on a read** (status/reindex) now names the register command instead of echoing a
2072
+ 404, and a 5xx carrying a failure `class` becomes a wait-vs-broken error.
2073
+ - **`abx verify`'s summary** read `✓ 0/1 up to date` for a project with no off-chain renders at all —
2074
+ "zero of one succeeded" to two independent reviewers. It now says "nothing to render for this
2075
+ project", and otherwise leads with polarity ("N of M token(s) current").
2076
+ - **`abx doctor` now reports named remotes** and flags a credential stored under a name the CLI does
2077
+ not read (`ABX_REMOTE_<NAME>_KEY`). That fault presents as "it acts like I never gave it a key" and
2078
+ previously only surfaced from `abx remote <name>` — which a creator reaches _after_ doctor.
2079
+ - **Skill: the `npx --no-install abx version` probe was documented as failing cleanly.** It doesn't —
2080
+ npm will run any `abx` binary already in the npx cache, which in a real sweep reported a months-old
2081
+ build as the project's CLI (and if a plain `npx abx` ever ran on that machine, the bare name is a
2082
+ squatted package). The skill now probes `./node_modules/.bin/abx` directly.
2083
+ - Also documented: how a multi-word provider name folds into `ABX_REMOTE_<NAME>_*`, and what
2084
+ `watching: no` means on a status readout.
2085
+
2086
+ A second sweep round over those fixes caught three more, including one the first round's fix created:
2087
+
2088
+ - **`abx verify --remote` never checked byte integrity at all** — both of its lanes only ask "is there
2089
+ a current render / is this a placeholder", and a green ✓ from that was standing in for "the served
2090
+ bytes match the on-chain commitment". A reviewer hit the worst version of this: `--remote` (the form
2091
+ the skill tells you to use for a hosted project) reported ✓ on a token whose bytes genuinely did NOT
2092
+ hash-match, while bare `abx verify` on the same project reported `✗ keccak256 MISMATCH`. It now calls
2093
+ the service's own purpose-built `GET /api/project/:addr/verify` (which holds both the bytes and the
2094
+ chain) and reports that verdict separately from the render summary — and when it _can't_ run that
2095
+ check (no credential, older node) it says "byte integrity NOT checked" instead of leaving a ✓ to
2096
+ imply it passed. The remedy names both real causes (an unbridged durable locator vs. bytes that only
2097
+ exist on the creator's machine, which a hosted resolver can never serve).
2098
+ - **`abx verify` exited 0 while printing a byte MISMATCH**, in both lanes — nothing could gate on it.
2099
+ An integrity mismatch now fails the command; a missing render or placeholder is a normal state and
2100
+ still exits 0.
2101
+ - **`abx add --dry-run` silently ignored the flag and performed the registration**, local or remote.
2102
+ It now refuses and names the read-only commands (`abx state`, `abx status`) instead. Silently doing
2103
+ the thing when the caller asked to preview is the one outcome that must never happen.
2104
+ - **`PRAGMA busy_timeout` was set third in the store schema**, after the WAL switch it needs to
2105
+ protect — so two processes opening the same store at once (parallel CLI runs, or a co-located
2106
+ effects runner starting alongside the resolver) could fail outright with `database is locked`
2107
+ instead of waiting the moment out. It is now the first statement.
2108
+
2109
+ A third round, re-running the scenario that found the verify bug (it now catches it) turned up:
2110
+
2111
+ - **`abx add --remote` ended on "it now serves <url>"** — true about indexing, silent about whether
2112
+ the bytes are right, and two reviewers stopped there and reported a blank page as fixed. It now names
2113
+ the byte check (`abx verify <addr> --remote <name>`) in the same breath.
2114
+ - **`canonical:` collapsed a tri-state.** `isCanonical` is `true | false | null`, and both readouts
2115
+ printed "unverified" for the last two — so "the chain says this is NOT a clone of the configured
2116
+ factory" (a trust finding) looked identical to "the check never ran" (no factory on this chain, normal
2117
+ on a dev chain). Two reviewers read the collapsed word as a second failure sitting next to a real one.
2118
+ - **`abx verify --remote` gave a bare `fetch failed`** for an endpoint that was down, where
2119
+ `abx status --remote` names the host and asks whether it's running. Two commands, one condition, two
2120
+ error qualities — now consistent.
2121
+ - `abx status <addr>` printed the address twice when the project has no name.
2122
+ - Skill: registering with a provider on **their** hostname vs. a domain you control decides whether
2123
+ leaving later costs a transaction — now stated in the managed-provider section, before you bake it.
2124
+
2125
+ ## 0.1.0-alpha.2
2126
+
2127
+ ### Minor Changes
2128
+
2129
+ - 3745bd3: Remote services are first-class: a provider-neutral control plane, named remotes, and a service
2130
+ descriptor (specs/self-host-toolkit/remote-services.md).
2131
+
2132
+ - **Control plane moves to `/v1`** (hard cutover; `/admin/*` is gone — redeploy self-hosted nodes):
2133
+ `POST/GET /v1/projects`, `DELETE|reindex|status /v1/projects/{chainId}/{address}`,
2134
+ `POST /v1/effect-artifacts|effect-status`. `chainId` is explicit and validated everywhere; every
2135
+ error carries a machine `code` (`unauthorized` 401 · `forbidden` 403 · `unsupported_chain` ·
2136
+ `not_registered` · `disabled`) replacing the old prose-sniffed 404. One bearer guard replaces the
2137
+ four inline copies; OPTIONS preflight now answers so browser clients can send `Authorization`.
2138
+ - **`GET /.well-known/abx-service`** — the public service descriptor: `interfaces` (present iff
2139
+ actually enabled), `chains`, `auth` (with optional provider-set `signupUrl`/`docsUrl` via
2140
+ `ABX_SERVICE_*` env), and `render.attached` (managed rendering, probed from the runner's
2141
+ `/health`) — so an agent can match a project to a provider before registering.
2142
+ - **Named remotes in the CLI**: `--remote <name>` reads `ABX_REMOTE_<NAME>_URL`/`_TOKEN`
2143
+ (a managed provider's per-account key — never falls back to `ABX_RESOLVER_ADMIN_TOKEN`);
2144
+ `--remote <url> [--remote-token <t>]` for ad-hoc targets; bare `--remote` stays the self-host
2145
+ default. New `abx remote [name|url]` inspects a service's descriptor and the projects a token
2146
+ sees. `migrate --from/--to` accept names; only the destination needs a credential.
2147
+ - **The SDK gains its first HTTP surface**: `AbxServiceClient` (endpoint + injected bearer, retry
2148
+ on 5xx/network, immediate typed `AbxServiceError` on 4xx) — shared by the CLI and the effects
2149
+ runner's publish lane. `envSuffix()` is the shared env-name normalization.
2150
+ - **Conformance fixture**: `pnpm conformance -- <base-url> [--token …]` self-verifies any
2151
+ implementation; the e2e suite runs it against the reference container.
2152
+
2153
+ ### Patch Changes
2154
+
2155
+ - 3745bd3: Membrane fixes found by a 20-run cold-agent regression sweep (sonnet + haiku, black-box clean rooms).
2156
+
2157
+ - **A 500 no longer leaks the node's own credentials.** An upstream RPC failure surfaced viem's
2158
+ message, which embeds the endpoint URL — and a keyed RPC URL _is_ a credential, so on a
2159
+ multi-tenant provider any tenant who could provoke a 500 got the operator's RPC key. The cause now
2160
+ goes to the node's log; the wire gets a generic message, an `internal_error` code, and a
2161
+ credential-free hint about the failure class. Normative in the remote-services spec.
2162
+ - **The service client no longer discards a 5xx body.** The service's own words survive the retry
2163
+ ladder, and an exhausted ladder says "failed — last response …" rather than mislabelling a
2164
+ server that answered as "unreachable". The descriptor probe drops to 2 attempts, so a typo'd
2165
+ provider URL fails in ~1s instead of grinding 5s, with distinct "nothing responded" vs
2166
+ "answered, but serves no descriptor" messages.
2167
+ - **Conflicting duplicate `.env` keys are reported.** First-wins is unchanged, but a stale second
2168
+ `ABX_RPC_URLS_<CHAIN>` line silently pointed the CLI at another network while every check read
2169
+ green — the symptom surfaced far away as "no contract at that address". Only genuinely
2170
+ _conflicting_ duplicates warn (identical repeats stay quiet).
2171
+ - **"No contract at …" errors now name the endpoint they asked** (redacted), because a chain key
2172
+ can't distinguish two RPCs that both claim it.
2173
+ - **A misnamed remote credential is called out.** `ABX_REMOTE_<NAME>_KEY` (or `_API_KEY`, `_SECRET`)
2174
+ is not read, so it previously reported as "no token" while the value sat in `.env`; both
2175
+ `abx remote` and the register path now name the near-miss and the correct `_TOKEN` name.
2176
+ - **`--dry-run` explains a missing trust anchor instead of crashing.** On a chain where the
2177
+ configured factory has no code, `deploy`/`deploy-series` previews died inside
2178
+ `predictDeterministicAddress` with a raw `returned no data ("0x")`; they now report it the way
2179
+ `abx predict` and a real deploy already did, and name the two ways forward. The keyless
2180
+ `--for` requirement also fails fast instead of after several steps of output.
2181
+ - **The placeholder-identity guard is one shared predicate** across all three deploy commands
2182
+ (it was copy-pasted, and one copy's comment claimed coverage it didn't have), pinned by a new
2183
+ regression test: a real send refuses tool defaults, a preview only warns.
2184
+ - **The served dashboard's empty state no longer prints `pnpm abx demo`** — a contributor-only
2185
+ invocation on a page a published user sees.
2186
+
2187
+ ## 0.1.0-alpha.1
2188
+
2189
+ ### Patch Changes
2190
+
2191
+ - 4074766: Fix the dashboard's block-explorer links, which were hardcoded to `https://sepolia.etherscan.io`. Every
2192
+ link on the page — contract, owner, implementation, each event's tx — pointed at Ethereum Sepolia no
2193
+ matter which chain was being served, so a dashboard for a normal `abx demo` (Base Sepolia by default)
2194
+ sent you to an explorer where the contract does not exist. The SDK now derives the explorer from viem's
2195
+ own chain metadata (`explorerUrl`/`chainById`), so adding a chain brings its explorer along and no
2196
+ hand-maintained table can drift. The CLI's separate copy of that table is collapsed into the same
2197
+ helper; `signer.ts` was already doing it correctly.
2198
+
2199
+ Drop the demo's opening "trust anchor" step. It asserted that only the canonical factory can make a
2200
+ token that _is_ an ABX token, which is false — anything following the protocol's event spine is an ABX
2201
+ token, and the factory is one route to that, not the definition. The same overclaim in the index step
2202
+ ("verified real") now reports the fact instead: made by the canonical factory, or not. The demo opens
2203
+ on the renderer step, and resolving the factory no longer prints a line of its own there.