@artblocks/abx-cli 0.1.0-alpha.2 → 0.1.0-alpha.20

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 (133) hide show
  1. package/CHANGELOG.md +1762 -0
  2. package/assets/renderer-scaffold/src/interfaces/IAbxParams.sol +17 -0
  3. package/assets/renderer-scaffold/test/MyRenderer.t.sol +51 -2
  4. package/dist/commands/deploy.d.ts +206 -0
  5. package/dist/commands/deploy.d.ts.map +1 -0
  6. package/dist/commands/deploy.js +4004 -0
  7. package/dist/commands/deploy.js.map +1 -0
  8. package/dist/commands/project.d.ts +241 -0
  9. package/dist/commands/project.d.ts.map +1 -0
  10. package/dist/commands/project.js +1044 -0
  11. package/dist/commands/project.js.map +1 -0
  12. package/dist/commands/reads.d.ts +64 -0
  13. package/dist/commands/reads.d.ts.map +1 -0
  14. package/dist/commands/reads.js +667 -0
  15. package/dist/commands/reads.js.map +1 -0
  16. package/dist/commands/scaffold.d.ts +71 -0
  17. package/dist/commands/scaffold.d.ts.map +1 -0
  18. package/dist/commands/scaffold.js +544 -0
  19. package/dist/commands/scaffold.js.map +1 -0
  20. package/dist/commands/service.d.ts +41 -0
  21. package/dist/commands/service.d.ts.map +1 -0
  22. package/dist/commands/service.js +618 -0
  23. package/dist/commands/service.js.map +1 -0
  24. package/dist/commands/storage.d.ts +37 -0
  25. package/dist/commands/storage.d.ts.map +1 -0
  26. package/dist/commands/storage.js +335 -0
  27. package/dist/commands/storage.js.map +1 -0
  28. package/dist/config.d.ts +91 -2
  29. package/dist/config.d.ts.map +1 -1
  30. package/dist/config.js +244 -11
  31. package/dist/config.js.map +1 -1
  32. package/dist/conformance.d.ts +31 -0
  33. package/dist/conformance.d.ts.map +1 -0
  34. package/dist/conformance.js +371 -0
  35. package/dist/conformance.js.map +1 -0
  36. package/dist/deps.d.ts +6 -39
  37. package/dist/deps.d.ts.map +1 -1
  38. package/dist/deps.js +4 -68
  39. package/dist/deps.js.map +1 -1
  40. package/dist/errors.d.ts +20 -0
  41. package/dist/errors.d.ts.map +1 -0
  42. package/dist/errors.js +25 -0
  43. package/dist/errors.js.map +1 -0
  44. package/dist/flags.d.ts +41 -0
  45. package/dist/flags.d.ts.map +1 -1
  46. package/dist/flags.js +94 -1
  47. package/dist/flags.js.map +1 -1
  48. package/dist/jsonout.d.ts +37 -0
  49. package/dist/jsonout.d.ts.map +1 -0
  50. package/dist/jsonout.js +68 -0
  51. package/dist/jsonout.js.map +1 -0
  52. package/dist/kind.d.ts +48 -0
  53. package/dist/kind.d.ts.map +1 -0
  54. package/dist/kind.js +69 -0
  55. package/dist/kind.js.map +1 -0
  56. package/dist/main.js +509 -4708
  57. package/dist/main.js.map +1 -1
  58. package/dist/mintpage.d.ts +17 -2
  59. package/dist/mintpage.d.ts.map +1 -1
  60. package/dist/mintpage.js +214 -52
  61. package/dist/mintpage.js.map +1 -1
  62. package/dist/output.d.ts +148 -0
  63. package/dist/output.d.ts.map +1 -0
  64. package/dist/output.js +634 -0
  65. package/dist/output.js.map +1 -0
  66. package/dist/ownerops.d.ts +132 -44
  67. package/dist/ownerops.d.ts.map +1 -1
  68. package/dist/ownerops.js +1067 -327
  69. package/dist/ownerops.js.map +1 -1
  70. package/dist/preview.d.ts +81 -0
  71. package/dist/preview.d.ts.map +1 -0
  72. package/dist/preview.js +535 -0
  73. package/dist/preview.js.map +1 -0
  74. package/dist/prompt.d.ts +17 -0
  75. package/dist/prompt.d.ts.map +1 -0
  76. package/dist/prompt.js +19 -0
  77. package/dist/prompt.js.map +1 -0
  78. package/dist/provision.d.ts.map +1 -1
  79. package/dist/provision.js +10 -7
  80. package/dist/provision.js.map +1 -1
  81. package/dist/remote.d.ts +134 -53
  82. package/dist/remote.d.ts.map +1 -1
  83. package/dist/remote.js +352 -46
  84. package/dist/remote.js.map +1 -1
  85. package/dist/riskgate.d.ts +29 -0
  86. package/dist/riskgate.d.ts.map +1 -0
  87. package/dist/riskgate.js +91 -0
  88. package/dist/riskgate.js.map +1 -0
  89. package/dist/scaffold.d.ts +10 -0
  90. package/dist/scaffold.d.ts.map +1 -0
  91. package/dist/scaffold.js +52 -0
  92. package/dist/scaffold.js.map +1 -0
  93. package/dist/schema.d.ts +18 -1
  94. package/dist/schema.d.ts.map +1 -1
  95. package/dist/schema.js +74 -23
  96. package/dist/schema.js.map +1 -1
  97. package/dist/served.d.ts +30 -0
  98. package/dist/served.d.ts.map +1 -0
  99. package/dist/served.js +112 -0
  100. package/dist/served.js.map +1 -0
  101. package/dist/signer.d.ts +13 -0
  102. package/dist/signer.d.ts.map +1 -1
  103. package/dist/signer.js +80 -14
  104. package/dist/signer.js.map +1 -1
  105. package/dist/update-check.d.ts +58 -4
  106. package/dist/update-check.d.ts.map +1 -1
  107. package/dist/update-check.js +92 -11
  108. package/dist/update-check.js.map +1 -1
  109. package/package.json +10 -6
  110. package/skill/SKILL.md +104 -60
  111. package/skill/reference/code-projects.md +87 -13
  112. package/skill/reference/creator-token.md +86 -0
  113. package/skill/reference/decisions.md +61 -0
  114. package/skill/reference/hosting.md +48 -15
  115. package/skill/reference/operating.md +29 -8
  116. package/skill/reference/setup.md +10 -3
  117. package/skill/reference/troubleshooting.md +31 -4
  118. package/dist/inspect.d.ts +0 -48
  119. package/dist/inspect.d.ts.map +0 -1
  120. package/dist/inspect.js +0 -184
  121. package/dist/inspect.js.map +0 -1
  122. package/dist/migrate.d.ts +0 -65
  123. package/dist/migrate.d.ts.map +0 -1
  124. package/dist/migrate.js +0 -180
  125. package/dist/migrate.js.map +0 -1
  126. package/dist/onchain-uri.d.ts +0 -97
  127. package/dist/onchain-uri.d.ts.map +0 -1
  128. package/dist/onchain-uri.js +0 -243
  129. package/dist/onchain-uri.js.map +0 -1
  130. package/dist/upload.d.ts +0 -28
  131. package/dist/upload.d.ts.map +0 -1
  132. package/dist/upload.js +0 -41
  133. package/dist/upload.js.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,1762 @@
1
+ # @artblocks/abx-cli
2
+
3
+ ## 0.1.0-alpha.20
4
+
5
+ ### Minor Changes
6
+
7
+ - afa9dd4: ERC-1155 editions ship with full parity: a Series is many unique tokens (721); an **Edition** is
8
+ many copies of a token (1155). The creator's word is **copies** — `abx deploy img.png --copies 100`
9
+ (a single-artwork edition, `open` = uncapped), `abx deploy-series ./art --copies 50` (each image an
10
+ edition), `abx deploy-code sketch.js --copies 25` (code editions). Without `--copies`, the 721
11
+ lanes are unchanged.
12
+
13
+ Three new canonical contracts twin the 721 lineup — `OneOfOneEdition`, `EditionImage`,
14
+ `EditionCode` — plus `AbxFixedPriceMinter1155`, a per-id fixed-price sale singleton
15
+ (`minter configure/buy --token-id [--quantity]`). New owner ops: `mint --token-id --amount`,
16
+ `transfer --amount`, `set-max-supply` (per-id cap, only ever decreases), `ping-uri` (re-emit the
17
+ native `URI` event after a re-point). ERC-1155C creator-token enforcement is the same `--721c`
18
+ opt-in (same validator registry and ERC-165 ids as 721C). Editions announce one new extension
19
+ (`abx.extension.edition-supply`, per-id supply/cap); everything else — metadata fields, params,
20
+ royalties, renderer, storage, effects — is the same protocol surface on both standards.
21
+
22
+ **Integrator surface (audience line):** additive only. `ProjectState.contractType` gains
23
+ `'1of1-edition' | 'edition' | 'edition-code'`; `TokenState` gains `supply`/`maxSupply`/`holders`
24
+ (editions only; `minted` means supply > 0 there); the spine ABI now decodes
25
+ `TransferSingle`/`TransferBatch`/`URI`/`MaxSupplyUpdated`; `ChainDeployment` gains the four
26
+ edition anchors (recorded for Sepolia + Base Sepolia, CREATE2-identical); token-api summaries gain
27
+ an optional `copies` field. No existing export, route, column, or event shape changed.
28
+
29
+ ### Patch Changes
30
+
31
+ - 8c254d5: The self-host projection no longer stores or pre-fetches composed URI documents, and the event log
32
+ is append-only (from the abx-services 2026-08-05 projection memo, `docs/11`).
33
+
34
+ - **`contractURI`/`tokenURI` are live reads, never projected.** `reconstructProject`/
35
+ `reconstructIncremental` gain `readUriDocuments` (default **false**) — with it off, the whole
36
+ `contractURI`/`tokenURI` head-read batch is skipped entirely, not fetched-and-discarded. These
37
+ fields have no settled value (a renderer can change the composed document with no log at all) and,
38
+ on the on-chain lane, can run hundreds of KB per token — a real 32-token project measured 13.4 MB
39
+ serialized, 99.8% of it `tokenURI`. A stale-but-rendering `data:` URI is worse than a missing one,
40
+ because nothing about it looks wrong. `abx demo` is the one caller that passes `readUriDocuments:
41
+ true`, for its read-back teaching step; `abx deploy`/`deploy-series`/`deploy-code` don't, and
42
+ `abx verify`/`tokenuri`/`contracturi` were already doing independent live reads. **For
43
+ integrators:** `ProjectState.contractURI` / `TokenState.tokenURI` are now `null` unless you opt in
44
+ — including in a self-host node's `/api/project/:addr` responses (shape unchanged, values now
45
+ null). Nothing that composes served metadata reads either field (the settled `fields`/
46
+ `collectionFields` do); the settled scalars — `tokenURIRenderer`/`tokenURILocked`/
47
+ `contractURIRenderer`/`contractURILocked` — are unaffected and still projected.
48
+ - **The events table is append-only.** `seq` is now chain-derived (`(blockNumber << 32) |
49
+ logIndex`, BigInt-safe) instead of the array index at write time, so it's stable across re-folds —
50
+ a re-index appends via `ON CONFLICT DO NOTHING` instead of deleting and reinserting the whole
51
+ history on every delta. `putProject` upserts the project and token rows in place (a token whose id
52
+ vanishes from state is still removed) rather than delete-and-reinsert. `deregister` still deletes
53
+ a forgotten project's events in full; a routine re-fold does not. **A full replay (`abx index
54
+ --full`) purges the project's event log before rebuilding it** — append-only must not let a
55
+ reorg-replaced event survive as a stale row, so the documented repair path stays a real repair.
56
+ Existing stores migrate their positional `seq` values to the chain-derived form once, automatically
57
+ (`PRAGMA user_version`-gated, transactional).
58
+ - **Self-healing eventCount guard.** An incremental fold that would reduce `eventCount` below what's
59
+ already stored is discarded rather than written, with one automatic full-reconstruct fallback (the
60
+ memo's own war story: a bad fold once silently zeroed a live projection with nothing to catch it).
61
+ - **New self-host stores open with `auto_vacuum = INCREMENTAL`.** Existing stores are unaffected
62
+ (the pragma only takes on a database with no tables yet) — recorded as backlog B29.
63
+
64
+ - Updated dependencies [afa9dd4]
65
+ - Updated dependencies [8c254d5]
66
+ - @artblocks/abx-sdk@0.1.0-alpha.12
67
+ - @artblocks/abx-indexer@0.1.0-alpha.13
68
+ - @artblocks/abx-token-api@0.1.0-alpha.15
69
+ - @artblocks/abx-storage@0.1.0-alpha.12
70
+
71
+ ## 0.1.0-alpha.19
72
+
73
+ ### Minor Changes
74
+
75
+ - d40caf4: `abx remote <name|url> --conformance` — self-certify a resolver from the published CLI
76
+
77
+ The self-verify fixture that used to live only as a repo-local script
78
+ (`scripts/conformance-remote-service.mjs`, `pnpm conformance`) is now a mode on the existing `remote`
79
+ command rather than a new one (command-count discipline): `abx remote <name|url> --conformance
80
+ [--remote-token <t>] [--chain-id <n>] [--address <a>] [--from-block <n>]`.
81
+
82
+ This is what lets a third party self-certify a hosted resolver — or CI-gate on one — with nothing but
83
+ `npm i -g @artblocks/abx-cli` and a base URL: no repo checkout, and a bare URL + `--remote-token`
84
+ needs no `.env` setup. It reuses the same `--remote` name/URL/token resolution as every other remote
85
+ command, prints one ✓/✗/· line per assertion (descriptor shape, unauthenticated writes refused, the
86
+ read-plane's error taxonomy, every declared interface's routes, and — with `--chain-id` + `--address`
87
+ naming a contract you own — the full register → poll-to-live → status → reindex → deregister loop),
88
+ and sets a non-zero exit code on any failure.
89
+
90
+ The assertions themselves moved to `packages/cli/src/conformance.ts`, importable by both the CLI
91
+ command and the (now much thinner) root script, so `pnpm conformance` and
92
+ `scripts/e2e-remote-resolver.sh` keep working unchanged against the same logic.
93
+
94
+ ### Patch Changes
95
+
96
+ - d40caf4: Two first-party consumers adopt the backoff/gateway/data-URI helpers hoisted into `@artblocks/abx-sdk`
97
+ last round, and `mint-page` refuses a 1/1 target instead of scaffolding a page that hangs. Drop-in for
98
+ everyone — no behavior change in the adoption itself, and the mint-page refusal only fires for a
99
+ contract type the page never worked against.
100
+
101
+ **`token-api`'s chain watcher now calls `exponentialBackoffDelay`/`linearBackoffDelay` instead of
102
+ re-deriving them inline.** `dueForRetry`'s failed-project retry and the tick loop's repeated-failure
103
+ delay were the sdk helpers reimplemented by hand; both now call the shared functions, with the exact
104
+ index mapping (`min(attempts, 8) + 1` into the 1-indexed exponential helper) that reproduces identical
105
+ delays for every `attempts`/`failures` value — proved by an old-formula-vs-sdk-helper equality table
106
+ in `packages/token-api/test/watcher-backoff.test.ts` (attempts/failures 0..12, several `baseMs`
107
+ values, and the cap boundary explicitly).
108
+
109
+ **The `mint-page` template's generated app now reads gateway URLs and `data:` URIs through the sdk**
110
+ (`gatewayUrlFor`/`resolveGatewayBase`/`parseDataUri`) instead of a hand-rolled `ipfs://`-slicing
111
+ `toGateway` and a hand-parsed comma-split in `fetchJson`. Same output for every input (plain
112
+ `https://`, empty string, `ipfs://`, `ar://`, base64 and percent-encoded `data:` bodies) — verified
113
+ byte-for-byte before the swap, and pinned by a new mintpage.test.ts assertion that the emitted
114
+ `lib/meta.ts` imports the sdk helpers and no longer contains the old hand-rolled body.
115
+
116
+ **`mint-page` now refuses a non-Series target.** The generated page reads `maxInvocations`/`paused`
117
+ and mints through the shared fixed-price minter — a 1/1 (`OneOfOneImage`) has none of that, so pointing
118
+ `mint-page` at one silently wrote a page that sat on "Loading…" forever with no diagnostic. `cmdMintPage`
119
+ now probes the same ERC-165 `supportsInterface(IAbxSequentialMint)` `sdk/anchors.ts`'s
120
+ `isCurrentSeriesFactory` uses, and refuses with a `CliError` pointing at `abx deploy-series --dir
121
+ <folder> --count 1` (matching the existing guidance in `sales.mdx`). A probe that can't run at all (RPC
122
+ unreachable) is left undecided and does NOT refuse — scaffolding stays usable offline, same tolerance
123
+ the existing best-effort `name()` read already has.
124
+
125
+ Also folded in: `PUBLIC_RPC` (the mint-page template's keyless-RPC table) gains `base` and
126
+ `base-sepolia` — the toolkit's own default chain was missing from it, so every default-chain deploy
127
+ needed a manual `--rpc` just to scaffold its own mint page.
128
+
129
+ - Updated dependencies [d40caf4]
130
+ - Updated dependencies [d40caf4]
131
+ - Updated dependencies [d40caf4]
132
+ - @artblocks/abx-sdk@0.1.0-alpha.11
133
+ - @artblocks/abx-token-api@0.1.0-alpha.14
134
+ - @artblocks/abx-storage@0.1.0-alpha.11
135
+ - @artblocks/abx-indexer@0.1.0-alpha.12
136
+
137
+ ## 0.1.0-alpha.18
138
+
139
+ ### Minor Changes
140
+
141
+ - 11fa933: Phase 5 interface unifications: the self resolver becomes a named remote, doctor absorbs the
142
+ version/install/provenance ladder, deploy previews stop showing addresses they can't keep,
143
+ approvals are counted honestly, render×storage combos are validated once, and storage config gets
144
+ a real probe.
145
+
146
+ - **Self resolver is a named remote (breaking, client-side only)**: the CLIENT credential for the
147
+ local/self resolver moves from `ABX_RESOLVER_ADMIN_TOKEN` to the named-remote grammar
148
+ (`ABX_REMOTE_SELF_URL` / `ABX_REMOTE_SELF_TOKEN` — "self" is just a conventional remote name, zero
149
+ special-casing). The SERVER side (token-api control-plane auth, `provision.ts`, the Fly.io secret)
150
+ keeps its old name — it's the service's own config, not a client credential, so deployed resolvers
151
+ need no change. The old client var, if still set, is now a pointed `CliError` naming both new vars
152
+ (no silent fallback); `abx doctor` flags it too, and the near-miss `_KEY`-vs-`_TOKEN` detector keeps
153
+ working under the unified grammar.
154
+ - **`abx doctor` absorbs the version/install/provenance ladder** the skill used to only teach in
155
+ prose: one new ✓/✗ block for binary provenance (source checkout / npm install / npx — the silent-
156
+ stale-npx-cache trap), npm currency (reuses the existing cached update check), and skill↔CLI
157
+ version match (reuses `abx skill`'s own discovery). Each row names the exact fix.
158
+ - **Deploy previews stop showing addresses they can't keep**: `--dry-run` (`deploy` /
159
+ `deploy-series` / `deploy-code`) **without `--salt`** no longer prints a "deterministic address" —
160
+ that salt was just freshly, randomly reserved, so the address was real for that one preview and
161
+ never reproducible by a plain re-run. It now prints the salt itself, prominently, plus how to pin
162
+ it: re-run with `--salt <shown>` (guaranteed same address), or `abx predict --salt <shown> --for
163
+ <signer>`. **With `--salt`, the address prints exactly as before** (it IS stable) — `abx predict`
164
+ is unchanged. The same rule applies to `--json`: without `--salt`, `address` reports `null` rather
165
+ than a value the real deploy won't land at (`saltPinned` still says why).
166
+ - **`approvals` — a labeled, honest signature count**: every deploy-family `--dry-run` preview and
167
+ `--confirm` summary now carries one uniform `approvals N wallet approval(s)` line/clause — the
168
+ number of **wallet TX signatures** the real run will ask for (a connected-wallet storage upload,
169
+ e.g. Arweave via `--storage-signer eth`, is a message signature, not a transaction, and stays
170
+ listed separately, as it already was). It's derived from the exact same staging/setup-multicall
171
+ math that sizes the wallet-lane session's own `total`, so the two can never disagree — this caught
172
+ (and fixed) `deploy-code`'s wallet-lane session `total` being hardcoded to `2` even on the 1-tx path
173
+ (no chunks/schema/deps/on-chain-uri legs/setup-carried mints), which would have shown "transaction
174
+ 1 of 2" and then silently never asked for a second.
175
+ - **One validator for render×storage combos**: `@artblocks/abx-storage` gains
176
+ `validateRenderStorageCombo()` (`content-plan.ts`) — the single source of truth for two known-bad
177
+ configurations, each checked against the ACTUAL fact that makes it bad (not against an unrelated
178
+ flag): (1) `--image-base` needs a backend that can overwrite a stable per-token key in place; an
179
+ ipfs/arweave-_shaped URL_ is refused regardless of this deploy's own `--backend`, because those are
180
+ content-addressed — a re-upload gets a new address, so no fixed URL can point at it. (2) publishing
181
+ a render to a resolver that doesn't share this machine's disk needs a backend that can hand back a
182
+ public URL at all — `fs` (or `cloud` with no public base) can't. `deploy-code` wires this into BOTH
183
+ its real-run refusal (`--image-base`) and a new `render/storage ✓|✗ <reason>` dry-run row;
184
+ `requirePublishableBackend` (the existing `abx render --remote` / `abx effects` guard) now consults
185
+ the same validator for its ok/not-ok decision, so the two surfaces can't drift apart.
186
+ - **`abx storage show --check`**: a real read/write against the resolved storage config, not just
187
+ "is it configured." `cloud` PUTs a tiny object through the signed API and GETs it back over the
188
+ PUBLIC base with a plain unsigned fetch — the only check that catches the R2/S3
189
+ endpoint-vs-public-base trap (`health()` alone only proves the API credentials work); on failure
190
+ both URLs print, so the mismatch is visible. `ipfs`/`fs` reuse their existing `health()` verbatim
191
+ (gateway/API reachability, dir writability — no upload, no pin — reused, not reimplemented).
192
+ `arweave` adds an identity+balance READ, never a paid upload. Exit code is meaningful (0 ok / 1 any
193
+ ✗) so a script can gate a launch on it. `abx doctor`'s storage row now runs the same fuller probe
194
+ (bounded to 1.5s, matching its other fast network checks) instead of a bare `health()` call.
195
+
196
+ ### Patch Changes
197
+
198
+ - 11fa933: The remaining phases of the simplification refactor that hadn't yet gotten a changeset: the CLI's
199
+ internal module split, the token-api/effects/mint-page convergence on the SDK, the shipped skill's
200
+ rewrite for the simplified surface, and a new SDK README.
201
+
202
+ - **`abx`'s `main.ts` split into domain command modules** (`commands/{deploy,project,reads,service,
203
+ scaffold,storage}.ts`, shared `output.ts`/`errors.ts`), with one exit-discipline rule
204
+ (`process.exitCode` + return, or a typed `CliError`, everywhere — bare `process.exit` only at the
205
+ entry guard, the top-level catch, and the keep-alive SIGINT handler). Purely internal: a 207-fixture
206
+ byte-diff matrix (every help text, dry-run, error path, and exit code) confirmed identical output
207
+ before and after.
208
+ - **token-api / effects / mint-page converge on the SDK**: `@artblocks/abx-storage` gains one
209
+ `resolveGatewayBase` (`readiness.ts`), replacing three near-identical copies (two in token-api, one
210
+ inline in storage itself); token-api exports `buildGeneratorDocument` so the CLI's `abx preview`
211
+ consumes the real generator-document assembler instead of a hand-kept duplicate; the effects runner
212
+ now resolves its config via the SDK's `readEnv` and gets a `makePublicClient` fallback transport, so
213
+ `ABX_RPC_URL` accepts a comma-separated failover list like every other RPC var; the scaffolded
214
+ mint-page app now imports ABIs from `@artblocks/abx-sdk/abi` and a browser-safe `makePublicClient` +
215
+ typed `readSaleConfig` instead of hand-rolled fetch/decode, and pins its generated `package.json` to
216
+ the SDK's _resolved_ version via a new `@artblocks/abx-sdk/package.json` export (alpha version
217
+ counters diverge per package under changesets, so pinning the CLI's own number could produce an
218
+ unsatisfiable range).
219
+ - **The shipped skill (`.claude/skills/abx-self-host/`) is rewritten for the surface phases 0–5
220
+ actually shipped**: every warning made obsolete by an enforcement is deleted rather than softened —
221
+ predict-only deploy-preview addresses, the `approvals N` line, the single `ABX_REMOTE_SELF_*`
222
+ credential grammar, `doctor`'s version/provenance ladder, `storage show --check`, the render/storage
223
+ combo validator's dry-run row, and `ABX_DEPLOYER_PK` as the only key name. Retired names swept from
224
+ `dev-loop-test`, the agent-eval scenarios, and spec prose. The skill ships bundled inside this CLI
225
+ package (co-versioned via `SKILL.md` frontmatter), so it rides this same patch.
226
+ - **New `packages/sdk/README.md`**: what the SDK is, the send-injection model (`PreparedTx` +
227
+ `SendTx`, `makeHotSender` for a hot key, bring-your-own for a wallet/multisig), a complete
228
+ deploy → upload → mint → read walkthrough against real exports, and browser-use notes (explicit
229
+ `rpcUrls`, no env, the `/node` subpath is Node-only). Included in the npm tarball automatically
230
+ (README is one of the files npm always packs, regardless of the `files` allowlist).
231
+
232
+ - 11fa933: Two ripouts, no functional loss: the retired `params.keys` read fallback in `abx state`, and the `abx changelog` command.
233
+
234
+ **`abx state`'s legacy `params.keys` fallback.** On-chain param enumeration (`contractParamKeys` /
235
+ `tokenParamKeys` / `paramSchemaKeys`) shipped a while back and every project deployed since enumerates
236
+ its own param surface — nothing writes the old `params.keys` CSV any more. The only thing still reading
237
+ it was `abx state`, so it could keep describing the handful of pre-enumeration testnet projects that
238
+ predate the switch. That reader (`readLegacyParamsKeys`) and its `legacy`-branching in `cmdStateBody`
239
+ are gone; `abx state` now shows exactly what it reads from on-chain enumeration, an empty PostParams
240
+ list for a pre-enumeration contract included. (The repoint guard that refuses to point a legacy token's
241
+ field renderer at the canonical generator is a separate, still-live safeguard — untouched.)
242
+
243
+ **`abx changelog`.** A `CHANGELOG.md`-reading command that duplicated what any agent or human can do by
244
+ reading the file that already ships with the package (`package.json` `files`) — one more command to
245
+ document and maintain for a read `cat` already covers. `CHANGELOG.md` keeps shipping; the update-nag
246
+ banner and the docs now point at the file and at npm's version list
247
+ (`https://www.npmjs.com/package/@artblocks/abx-cli?activeTab=versions`) instead of a command.
248
+
249
+ - 11fa933: The extraction phase of the simplification refactor: business logic that lived only inside the CLI
250
+ is now importable — the CLI calls the same functions you can.
251
+
252
+ **Into the SDK:** the five trust-anchor bootstraps (`ensureFactory`, `ensureSeriesFactory`,
253
+ `ensureSeriesCodeFactory`, `ensureRenderer`, `ensureSeedSource` — `anchors.ts`, on the same
254
+ injected-`send` + `onEvent` pattern as `ensureChunkStore`, with a typed `AnchorUnavailableError`),
255
+ `detectCanonicalFactory`/`resolveScanFloor`, the on-chain-URI setup composer (`onchain-uri.ts`),
256
+ interrupted-deploy resume planning (`resume.ts`), migration plan/parity reconciliation
257
+ (`migrate.ts`), the `abx.js` static analyzer (`inspect.ts`), dependency setup legs (`deps.ts`),
258
+ content-staging plans (`staging.ts` — `planStagedContent`, `stageFieldContent` with `StagingEvent`),
259
+ `mintedTokenIds`, and a typed `readSaleConfig` for the fixed-price minter.
260
+
261
+ **Into storage:** `uploadAndLocate`, `repinNodeCustody` (the byte-custody half of migration),
262
+ `decideImageContentLane`, `assessStorageReadiness`/`assessTurboFunds` (the Arweave/Turbo funding
263
+ math), and `awaitLocatorReady` (poll a locator until it serves).
264
+
265
+ **CLI hardening that fell out of the dedup:** one risk gate (`gatedSend`) now guards every write —
266
+ `--dry-run` and `--confirm` mean the same thing on every command, all owner-ops gain `--confirm`,
267
+ and a write reaching the send lane under `--dry-run` is structurally impossible (grep-enforced by
268
+ test). One `CHAIN` source of truth; one memoized local-indexer accessor.
269
+
270
+ - 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.
271
+
272
+ **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.
273
+
274
+ **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.
275
+
276
+ **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.
277
+
278
+ **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.
279
+
280
+ - Updated dependencies [11fa933]
281
+ - Updated dependencies [11fa933]
282
+ - Updated dependencies [11fa933]
283
+ - Updated dependencies [11fa933]
284
+ - @artblocks/abx-sdk@0.1.0-alpha.10
285
+ - @artblocks/abx-storage@0.1.0-alpha.10
286
+ - @artblocks/abx-token-api@0.1.0-alpha.13
287
+ - @artblocks/abx-indexer@0.1.0-alpha.11
288
+
289
+ ## 0.1.0-alpha.17
290
+
291
+ ### Patch Changes
292
+
293
+ - df298d8: `abx attach` takes several `<key> <uri>` pairs and sends ONE transaction
294
+
295
+ The safety half of backlog B20. The CLI's most-documented flow — mint, then attach each artifact, then
296
+ refresh — sent one transaction per step with **no all-or-nothing boundary**, so a failure partway
297
+ through left a permanently half-written token, and a mint cannot be undone. An integrator hit exactly
298
+ that and folded 8 operations into 1 transaction (846,556 gas) using the SDK's `batchOps` — a primitive
299
+ the CLI already shipped and did not call. Now it calls it.
300
+
301
+ ```bash
302
+ abx attach 0x… stems ipfs://…/stems.wav score ipfs://…/score.pdf readme ar://…
303
+ # → 3 artifacts, one multicall: a revert lands NONE of them
304
+ ```
305
+
306
+ Three things make the batch safe rather than merely shorter:
307
+
308
+ - **Every pair is validated before anything is sent.** A bad locator in pair 5 stops pair 1 — otherwise
309
+ batching would defeat its own purpose.
310
+ - **A key repeated inside one batch is refused.** A field holds one active value, so the later write
311
+ would silently win — the same full-column-upsert hazard that was a real bug in the resolver's
312
+ `register` and a real trap in `lock-field`.
313
+ - **A single pair is unchanged.** `batchOps` passes a lone op through untouched, so the one-artifact
314
+ case sends the identical plain field transaction it always did — no multicall wrapper, no new gas.
315
+
316
+ An odd number of positionals is refused and names the dangling argument, rather than silently ignoring
317
+ it.
318
+
319
+ Still open in B20, and recorded there rather than quietly skipped: batching **`set-field` across several
320
+ fields** needs a flag-grammar decision first (`attach` batched cleanly because its arguments are
321
+ positional pairs; `set-field` takes one `--field` with a correlated `--text`/`--value`, and the parser
322
+ has no notion of correlated repeats). Same for an all-or-nothing "mint and configure" — mint and
323
+ configure are separate commands, so that needs a verb that owns both.
324
+
325
+ - df298d8: `abx deploy-code --resume <address>` — finish a deploy whose setup transaction failed
326
+
327
+ Closes backlog B15. A code project deploys in **two** transactions: create the clone, then one atomic
328
+ `multicall` carrying the script chunks, the PostParam schemas, the dependency declarations, the
329
+ on-chain-URI legs, and any reserve mints. There is no rollback. When the second one fails you own a
330
+ live-but-unusable contract — and the CREATE2 salt reserved for its address is **spent**, so the dry
331
+ run's pinned-salt reproduce command can never be run again. One reporter session produced three
332
+ orphaned contracts from three attempts; another produced five.
333
+
334
+ The useful half of that report is that those contracts were **recoverable, not lost**: resending the
335
+ setup with an adequate gas limit completed one, after which `abx verify` reported chain-complete and the
336
+ token returned its on-chain `animation_url`. The tester did it by hand with `cast`. We deliberately
337
+ never documented that as a recipe — telling a creator to hand-assemble a multicall is worse than telling
338
+ them nothing — so this is the verb.
339
+
340
+ ```bash
341
+ abx deploy-code --resume 0x… <the same content flags the original deploy used> --dry-run
342
+ ```
343
+
344
+ It deploys nothing. It reads what the contract already holds and sends only the missing legs, in one
345
+ transaction — safe to run twice, and if nothing is missing it sends nothing and says so. Three judgments
346
+ carry it:
347
+
348
+ - **Chunks compare by content, not by count.** A count check would call a chunk "present" when a hand
349
+ repair wrote different bytes at that index — and a hand repair with `cast` is exactly what happened.
350
+ - **A schema that already exists is left alone.** Re-writing one is an upsert that can strand values
351
+ already stored under it; that hazard belongs to `set-schema` and its guard, never to a repair.
352
+ - **Mints are a shortfall against current supply, never a re-send.** `mint` is the one non-idempotent
353
+ leg, and a token cannot be un-minted.
354
+
355
+ `--salt`, `--721c`, `--bootstrap-factory` and `--mint-all` are refused rather than ignored: they all
356
+ describe how a contract is _created_, and this creates nothing. ERC-721C especially — enrollment is
357
+ deploy-time-only and permanent, so silently accepting the flag would imply it can be added later.
358
+
359
+ It shares the deploy's own setup-leg builder, so a resume can never drift from what a fresh deploy would
360
+ have written — a second implementation of that sequence is the failure mode a repair verb most easily
361
+ introduces. Signing goes through the same choke point as every other write, so `--sign` / `--unsigned` /
362
+ the owner check / the chain-id guard all apply, and `--dry-run` previews the repair (one bug found and
363
+ fixed while building this: the deploy's dry-run block returned first, so `--resume … --dry-run` printed a
364
+ fresh-deploy plan with a newly-reserved salt and a different predicted address).
365
+
366
+ 15 tests, including every diff branch and the four refusals.
367
+
368
+ - df298d8: `--json` on every value-emitting command: `mint`, `deploy`, `deploy-series`, `deploy-code`, `state`, `verify`
369
+
370
+ Closes backlog B19. The rule it enforces, from an integrator who drove the CLI from a server: **a value
371
+ a program needs must be obtainable without parsing prose.** They had to regex-scrape ANSI-coloured
372
+ stdout for every value — and an escape code was captured into a locator, written into a _stored_ player
373
+ URL, and 404'd in production. The cause was found only by inspecting stored bytes.
374
+
375
+ Under `--json`, **stdout carries exactly one JSON document and nothing else.** Every narration line the
376
+ command would print for a human moves to **stderr** — diverted, not suppressed, because a human
377
+ watching a deploy still wants to see it while a program redirecting stdout still gets a clean parse.
378
+ (The update check already wrote to stderr for exactly this reason; this carries the instinct through to
379
+ the values themselves.)
380
+
381
+ - **`mint --json`** → `{tokenIds, txHash, blockNumber, sent, …}`. The token ids come from the mint's own
382
+ `Transfer(from=0x0)` logs, not from re-reading `nextTokenId` afterwards — a concurrent mint would make
383
+ that answer wrong, and a number that is usually right is worse than no number. A `--count N` batch
384
+ reports all N.
385
+ - **`deploy` / `deploy-series` / `deploy-code --json`** → the address, emitted _the moment it is known_
386
+ rather than at the end, so a failure in the indexing steps that follow still leaves the caller with
387
+ the address of a contract that really exists. That matters most for `deploy-code`, which is two
388
+ transactions: if the setup tx fails, the address of the live-but-incomplete contract is exactly what a
389
+ recovery needs (backlog B15). With `--dry-run` it reports the **predicted** address plus
390
+ `saltPinned` — false meaning a plain re-run reserves a fresh salt and lands elsewhere, so a caller
391
+ must not treat it as reserved.
392
+ - **`state --json`** → the on-chain snapshot as data, with canonical **names** for param types and auth
393
+ legs rather than raw Solidity enum indices (a caller must not have to know the enum ordering), and
394
+ `undefined` (getter absent) kept distinct from a zero address (present, deliberately unset).
395
+ - **`verify --json`** → the findings, with `ok` matching the exit code. This is the one command a CI job
396
+ would gate on, since it already exits non-zero on a byte mismatch. The tri-states stay tri-states:
397
+ `canonical` and each check's `verified` are `true | false | null`, because collapsing "couldn't check"
398
+ into "failed" would report a normal state as a failure.
399
+
400
+ The mechanism is a single shared helper (`withJson`) rather than a `quiet` flag threaded through every
401
+ command body — deliberately, since the alternative is touching dozens of call sites where the one that
402
+ gets missed is a stray line that corrupts a parse, i.e. the exact failure being fixed. A command that
403
+ emits no payload leaves stdout **empty** and exits non-zero rather than printing a `{}` a caller would
404
+ trust. 8 tests cover the channel contract itself, including that the swap is restored when a body
405
+ throws.
406
+
407
+ - df298d8: `abx storage status <locator>` — is it retrievable yet, or only accepted?
408
+
409
+ Backlog B21, and the second half of a gap two independent integrations hit eight days apart. An upload
410
+ service answers "accepted" the moment it holds your bytes; a gateway serves them only once they
411
+ propagate, and on Arweave that runs to minutes. Nothing in the upload result distinguished the two, so
412
+ the natural implementation — upload during a mint, write the locator into the token — mints a token
413
+ that renders broken for the first minutes of its life.
414
+
415
+ The first reporter rebuilt this layer themselves (ranged GETs, a propagating/ready model, retry ladders
416
+ lengthened after measuring real times) and concluded "every serious integrator will rebuild some
417
+ version of this." The second published 32 renders and found **32/32 404ing on `arweave.net` while 22/32
418
+ already served from `permagate.io` and `vilenarios.com`**, with the uploader reporting `CONFIRMED`
419
+ throughout — and the expensive part is what a creator does next, since a placeholder on a fresh drop
420
+ reads as a failed render, so you re-run `abx render --force` and re-upload everything for nothing.
421
+
422
+ That second observation shapes the design: propagation is **per-gateway**, so the check probes the
423
+ gateway your project actually uses _plus two others_, which buys a third verdict the reporters' own
424
+ two-state model couldn't express.
425
+
426
+ - **`ready`** — your gateway serves the bytes. Safe to reference.
427
+ - **`propagating`** — another gateway serves them, so the data **provably exists** on the network and
428
+ yours is merely behind. Waiting is the fix, and the command says plainly not to re-upload.
429
+ - **`unreachable`** — nothing probed serves them. Deliberately _not_ called propagating: from outside,
430
+ a locator that is still settling and one that is simply wrong look identical, and reporting the
431
+ friendlier of the two is how a tool teaches someone to ignore it. When every gateway rejects the id
432
+ itself (a 4xx that isn't 404) rather than just missing it, that _is_ evidence, and the output says
433
+ "malformed locator, waiting will not fix it" — the inverse mistake of waiting out a typo costs more
434
+ than a needless re-upload.
435
+
436
+ Accepts every form a locator arrives in (`ar://`, `ipfs://`, a gateway URL, a bare txid/CID, with a
437
+ directory path suffix), reads **headers only** via a ranged request with the body cancelled — so
438
+ checking a 40 MB asset doesn't download it — and **exits non-zero unless ready**, which makes waiting a
439
+ one-liner instead of a retry ladder: `until abx storage status <loc> --json; do sleep 10; done`.
440
+
441
+ The primitive is `locatorStatus()` in `@artblocks/abx-storage`, not CLI-only (per B20): anything
442
+ programmatic should call it in-process rather than spawning the CLI per check. `abx render`'s existing
443
+ propagation note now points at the command, so the advisory has an answer attached.
444
+
445
+ - df298d8: `abx tokens <address>` — every token's owner, seed, and params, from chain alone
446
+
447
+ The most obvious post-deploy question about a generative collection — _what did the seeds actually
448
+ deal?_ — had no command. `abx verify` reports per-token minted/render status but no seed; `abx
449
+ tokenuri` prints one token and the seed lives inside its base64 `animation_url`; `abx inspect` is
450
+ pre-deploy and static. An agent's workaround was to start `abx serve`, `GET /api/project/<addr>`,
451
+ base64-decode each `tokenURI`, base64-decode the `animation_url` inside it, then regex
452
+ `0x[0-9a-f]{64}` out of the resulting HTML — 32 times. Every input to that was already a plain
453
+ contract read.
454
+
455
+ `abx tokens <address> [--json] [--from <id>] [--limit <n>]` is chain-only: no indexer projection, no
456
+ running resolver, no event scan. The params store maintains its own key lists inside its write paths
457
+ (`tokenParamKeys` / `contractParamKeys`) and `seed` is a reserved param read by name, so the whole
458
+ listing is `eth_call`s — available to anyone with an RPC URL, including before any indexing has
459
+ happened. Seeds print in full (truncating the one value the command exists for would repeat the
460
+ `tokenuri` bug); `--json` emits `{tokenId, owner, seed, params}` per token, contract-scope params
461
+ once on the parent rather than copied into every row.
462
+
463
+ It reports honestly across all three token types rather than failing: a 1/1 has no params extension
464
+ and says so (owners still list), a pre-enumeration project still yields seeds and flags that params
465
+ can't be enumerated, and an id whose `ownerOf` reverts is `null` — not "not minted", because a
466
+ burned id and an unminted id revert identically and a chain-only read can't tell them apart.
467
+
468
+ Two things it deliberately is not. It is not a trait spread: a trait comes from running the script
469
+ against the seed, which is `abx render`'s job — the token-scope _param_ spread it does print is
470
+ labelled as such. And the reader is in the **SDK** (`listTokens`), not just the CLI, so a
471
+ programmatic integrator gets it without reimplementing it.
472
+
473
+ Backlog B25 (from the 2026-08-04 tester batch, feedback `dcfdc6f4`).
474
+
475
+ - df298d8: `abx tokenuri --fetch` — follow the URL the contract commits to and print what is actually served
476
+
477
+ Closes backlog B14. No command printed the served JSON body: `tokenuri` read the chain, `verify`
478
+ re-hashed bytes, `status` reported the indexing lifecycle — each a different slice, none of them the
479
+ document a marketplace actually reads. An agent in a cold sweep fell back to raw `curl` for exactly
480
+ this, which is the tell that a command was missing.
481
+
482
+ ```bash
483
+ abx tokenuri 0x… --fetch # GET the baked URL, print the served body + HTTP status
484
+ abx tokenuri 0x… --fetch --json # {tokenURI, onChain, served: {url, status, contentType, body}}
485
+ ```
486
+
487
+ It also answers the question a _warning_ could not, which is why the other half of B14 stays declined.
488
+ "Nothing tells you the provider you registered with isn't the base baked on-chain" is a real gap, but
489
+ the obvious check — compare the remote's base URL to the on-chain one — false-positives on the common
490
+ custom-domain case (a baked `meta.artist.xyz` fronting `api.provider.xyz`), and a warning that cries
491
+ wolf on the correct setup is worse than none. Fetching what the **baked** base returns makes the
492
+ mismatch self-evident instead: you see the other provider's 404, or another project's document, with no
493
+ guessing and no false positive.
494
+
495
+ Three judgments worth naming:
496
+
497
+ - **A `data:` URI is not a failure.** It IS the document, and a fully-on-chain project's whole point is
498
+ that there is no server to ask — so it reports "nothing to fetch" and exits 0. Treating it as an error
499
+ would punish the strongest configuration the protocol offers.
500
+ - **A dead host and a served error are different answers**, because they route to different fixes ("your
501
+ provider said no" vs "the URL a marketplace will ask is unreachable").
502
+ - **A non-2xx says it is about the SERVICE, never a mistyped path** — the URL came from the chain, so it
503
+ is right by construction, and the readout points at `abx status --remote` for the lifecycle.
504
+
505
+ Under `--json` the body is verbatim and untruncated and a non-2xx exits non-zero, so CI can gate on it;
506
+ the human readout clips at 1200 chars and says how many it clipped. The fetch itself lives in
507
+ `src/served.ts` with an injectable `fetch`, since `main.ts` exports nothing — the same reason
508
+ `scaffold.ts` was extracted.
509
+
510
+ This retired the last two `curl` recommendations in the shipped skill: verifying an attach is now
511
+ `abx tokenuri <addr> --fetch` (the served document carries the `artifacts` manifest), and the skill's
512
+ claim that `tokenuri` "follows" the URL — previously true only of `contracturi` — is now accurate.
513
+
514
+ - Updated dependencies [df298d8]
515
+ - Updated dependencies [df298d8]
516
+ - Updated dependencies [df298d8]
517
+ - @artblocks/abx-sdk@0.1.0-alpha.9
518
+ - @artblocks/abx-token-api@0.1.0-alpha.12
519
+ - @artblocks/abx-storage@0.1.0-alpha.9
520
+ - @artblocks/abx-indexer@0.1.0-alpha.10
521
+
522
+ ## 0.1.0-alpha.16
523
+
524
+ ### Patch Changes
525
+
526
+ - 8f3c63c: Four output surfaces that misinformed: an occupied port, a repeated `verify` advisory, a silently-dropped `tokenuri` argument, and a release-notes URL that 404s.
527
+
528
+ **`abx serve` / `abx preview` on an occupied port crashed with a raw Node stack trace.** `listen()` had
529
+ no `'error'` handler, so `EADDRINUSE` reached Node's default handler and printed a trace through
530
+ `node:net` and our own `dist/` paths. In a CLI where every other error is formatted, that reads as a
531
+ crash inside abx rather than a port conflict, and it leaks internal paths. Both commands now preflight
532
+ the port and name the port and the fix in one line — `demo` already did this, and the check it used is
533
+ now shared. (`preview`'s default 8788 colliding with a studio left running in another terminal was
534
+ reported as the harder-to-diagnose half of this.)
535
+
536
+ **`abx verify` printed the identical thumbnail advisory once per token.** On a 32-token project with no
537
+ local renders that was 32 consecutive copies of the same full sentence — ~4KB of text for one fact —
538
+ which pushed the four lines that answer "did my deploy work" off a default terminal. It now prints one
539
+ line per outcome with a count and the affected token ids (truncated past 12), so the same information
540
+ costs three lines at 32 tokens and three lines at 1000.
541
+
542
+ **`abx tokenuri <address> 0` silently ignored the `0`** (the token id is `--token`) and printed token 0 —
543
+ a _coincidentally correct_ answer, which is the dangerous kind: `… <address> 7` would have printed token 0
544
+ just as confidently and exited 0. A stray positional is now refused, and a numeric one names the
545
+ corrected invocation. The `positionalArgs` helper moved next to `parseFlags`, because the two must
546
+ consume argv by the same rule — the obvious hand-rolled version of this check reads `--token 0` as a
547
+ stray `0`.
548
+
549
+ **The update banner pointed at `github.com/ArtBlocks/abx/releases`, which 404s** for anyone outside the
550
+ org, and no changelog shipped in the package — so "what changed?" was unanswerable. A tester
551
+ reconstructed the diff by running the same dry run on two versions, which is how they discovered the
552
+ canonical singletons had moved and then had no way to tell whether it needed them to act.
553
+ `CHANGELOG.md` now ships with the package and **`abx changelog`** prints it (offline, version-matched;
554
+ `--all` for the full history), with npm's version list as the online pointer. The upgrading guide now
555
+ also states the thing they had to test for themselves: a singleton redeploy repoints the manifest for
556
+ _new_ deploys and leaves already-deployed contracts unaffected.
557
+
558
+ **Plus one propagation note.** `arweave.net` — the default gateway, and the one baked into the locator —
559
+ indexes new uploads on a delay, so a freshly published render can 404 there for minutes while Turbo has
560
+ already confirmed it. A tester saw 32/32 404ing on arweave.net while 22/32 already served from other
561
+ ar.io gateways. Unexplained, that reads as a failed render, and the natural next move is
562
+ `abx render --force` on everything — a full re-upload that fixes nothing. `abx render` now says so after
563
+ an Arweave publish, and names `ABX_ARWEAVE_GATEWAY` for baking a different gateway (it is fixed at
564
+ publish time, since the locator is what the resolver registers). The note stays quiet when the operator
565
+ has already chosen a non-default gateway.
566
+
567
+ _(From the 2026-08-04 tester batch: feedback `eb972036`, `57bee789`, `dcfdc6f4`, `5a052398`, `e0f30e22`.)_
568
+
569
+ - 8f3c63c: Two writes that reported success without doing what the creator meant now refuse: `lock-field` on a parameter key, and a `Bytes` parameter given text.
570
+
571
+ Both are the same defect wearing different clothes — the CLI made statements that were individually
572
+ true and collectively a promise it wasn't keeping.
573
+
574
+ **`lock-field` reported "permanent" on a PostParam key and left the param writable.** A tester welded
575
+ `grid` — a `Bytes` param holding the artwork — with `abx lock-field <addr> --field grid`. It printed
576
+ `Lock token #0 field "grid" — permanent`, `tokenFieldLocked(0,"grid")` returned `true`, and the very next
577
+ `configure-param grid <junk>` **succeeded** and overwrote the artwork. Nothing lied: fields and params
578
+ are separate namespaces that may share a name, and `lock-field` had locked the _field_. But the creator
579
+ was told their work was permanently protected when it had no protection at all, and permanence is the
580
+ pitch. `lock-field` now reads `paramSchema(<name>)` first and **refuses** a declared param key, naming
581
+ the mechanism that does weld a param (`abx set-schema … --schema <key>:<Type>:<Auth>:lock=now`), with
582
+ `--force-field` for the rare case where you really do mean the metadata field.
583
+
584
+ **A `Bytes` parameter stored whatever characters you typed, as UTF-8.** Passing base64 — reasonable,
585
+ since the params docs say a `Bytes` value "becomes base64" — stored 172 bytes of base64 _ASCII_ where
586
+ 128 packed bytes were meant; `0x`-prefixed hex was stored as its 258 literal characters too. Nothing
587
+ errored, and an in-chain renderer reading the param drew garbage from ASCII with no failure anywhere in
588
+ the chain. A `Bytes` value must now say what its bytes are: `0x`-prefixed hex, or `--file <path>`. A bare
589
+ string is **refused** rather than guessed at, because there is no safe guess between "these characters"
590
+ and "these bytes", and the wrong guess is invisible until an artwork renders wrong. (`String` is
591
+ unchanged — there, the characters _are_ the value.)
592
+
593
+ The docs' "becomes base64" describes the **read** side — how a program receives the value — and now says
594
+ so, next to the two write forms.
595
+
596
+ Also fixed: the byte count that was already the tell. The write echoed the _input string's_ length, so
597
+ the mismatch was visible at write time and printed as if it were fine (`Configure grid (data, 172
598
+ bytes)`). It now echoes the decoded byte count and where the bytes came from.
599
+
600
+ _(From the 2026-08-04 tester batch: feedback `e86081a1`, `b0e88b17`.)_
601
+
602
+ - 8f3c63c: The renderer scaffold's `IAbxParams` can now read `Bytes` and `String` parameters — the two types that can carry an actual payload.
603
+
604
+ The scaffold's interface declared only `tokenParam` / `contractParam`, both returning
605
+ `(bytes32 value, bool valueIsHash, bool isSet)`. So a renderer written against the documented interface
606
+ could not reach a `Bytes` or `String` value at all: it got a keccak commitment and no way to the blob.
607
+ The token has always exposed `tokenParamData(uint256,bytes32)` and `contractParamData(bytes32)` — a
608
+ tester found them by grepping the CLI's bundled ABI, declared them by hand, and it worked.
609
+
610
+ Since `Bytes` and `String` are precisely the types that can hold a real payload (~24KB per key), leaving
611
+ them out made the in-chain art lane look limited to scalars unless you went digging. Both readers are now
612
+ in `src/interfaces/IAbxParams.sol`, with the rule stated where the mistake happens: scalars come from the
613
+ `bytes32` reader, payloads from the data reader, and a `Bytes` param read through `tokenParam` hands you a
614
+ hash — which renders garbage without failing anywhere.
615
+
616
+ The scaffold's own tests carry the pattern rather than just describing it: `MockParams` now models a
617
+ payload param the way the real contract does (the scalar slot holds `keccak256(content)` with
618
+ `valueIsHash` true), and two tests show the read plus the commitment check, and that an unset payload key
619
+ returns empty bytes rather than reverting. The renderers page documents the pair alongside the scalar one.
620
+
621
+ _(From the 2026-08-04 tester batch: feedback `d2ac4f2e`.)_
622
+
623
+ - 8f3c63c: `abx scaffold-renderer` wrote **zero files** for every installed user while reporting success — fixed, and pinned by the test that was missing.
624
+
625
+ The command created the target directory, printed the full green-check walkthrough (`cd renderer`,
626
+ `forge soldeer install`, `forge test`, the deploy script, "full walkthrough: renderer/README.md") and
627
+ **exited 0**. The directory was empty. No `src/`, no `foundry.toml`, no `README.md`. Three testers
628
+ reproduced it independently — 3 of 3 and 4 of 4 attempts, across all three invocation forms (relative
629
+ name, absolute path, and the no-arg default) — on alpha.9, alpha.12 and alpha.14.
630
+
631
+ **The cause was a path filter that judged absolute paths.** The copy excluded build dirs with
632
+
633
+ ```js
634
+ filter: (s) =>
635
+ !/(^|\/)(out|cache|dependencies|broadcast|node_modules)(\/|$)/.test(s);
636
+ ```
637
+
638
+ `cpSync` hands `filter` **absolute** source paths, and an installed CLI lives at
639
+ `…/node_modules/@artblocks/abx-cli/assets/renderer-scaffold`. So the pattern matched the source
640
+ **root**; `cpSync` skips a directory's entire subtree when the directory itself is filtered out, and
641
+ does it _silently_ rather than erroring. A dev checkout's path
642
+ (`…/packages/cli/assets/renderer-scaffold`) contains no `node_modules`, so every test we ran passed and
643
+ every user got an empty directory. The scaffold assets were always in the published package — this was
644
+ never missing content, only a copy step that no-oped.
645
+
646
+ Fixed on both axes, because either one alone would have let this ship:
647
+
648
+ - **The filter judges paths relative to the scaffold root**, so `node_modules` in the _install_ path is
649
+ irrelevant while `out/`, `cache/`, `dependencies/`, `broadcast/` inside the scaffold are still skipped.
650
+ - **The command asserts its own output.** It now throws if `src/MyRenderer.sol` isn't there afterwards,
651
+ instead of printing a success banner over nothing. Exit 0 plus a green check is what made this
652
+ expensive: an agent has no reason to look back at a step that reported success, so the failure
653
+ surfaced far away — `forge soldeer install` dying in an empty directory.
654
+
655
+ The copy logic moved to `src/scaffold.ts` so it can be tested at all (importing `main.ts` runs the CLI),
656
+ and `test/scaffold.test.ts` copies **from a path containing `node_modules`** — the layout every user has
657
+ and the one case no previous test covered — plus an end-to-end run asserting the scaffolded project is
658
+ non-empty and contains the files the success message names.
659
+
660
+ This was the documented entry point to the in-chain Solidity lane and the only documented route to
661
+ `--image-renderer` / `--attributes-renderer`, so it blocked that lane outright. The full walkthrough
662
+ (`forge soldeer install` → `forge test`) now runs clean: 10 tests pass in a freshly scaffolded project.
663
+
664
+ _(From the 2026-08-04 tester batch: feedback `6f2f980a`, `b45bc0f8`, `d2ac4f2e`.)_
665
+
666
+ - 8f3c63c: The agent skill now names the both-worlds code lane, the payload-param reader, and the verb that welds a parameter.
667
+
668
+ Four corrections, all from the same batch that produced the CLI fixes — the skill described the lanes in a
669
+ way that made the strongest option invisible:
670
+
671
+ - **`--script` plus `--image-renderer` is now a lane in its own right.** The table and the in-chain
672
+ section both said "no `--script`", which is a true constraint of the _renderer-only_ shape and read as a
673
+ prohibition on combining them. A program with Solidity renderers gets `animation_url` from its on-chain
674
+ chunks _and_ an on-chain `image`/`attributes` — every marketplace surface in-chain with nothing to
675
+ render, host, or refresh. That is the best available answer for an interactive generative drop and it
676
+ was reachable only by ignoring the skill.
677
+ - **Renderers are told which reader a `Bytes`/`String` param needs.** The guidance said to read params via
678
+ `tokenParam`/`contractParam`, which for the two payload types returns a keccak commitment — so a
679
+ renderer written from the skill drew garbage from a hash with nothing failing. `tokenParamData` /
680
+ `contractParamData` are now named where the mistake happens.
681
+ - **`configure-param`'s payload encoding is explicit**: `String` takes text, `Bytes` takes `0x` hex or
682
+ `--file`, and a bare string on a `Bytes` key is refused.
683
+ - **Locking a param points at `set-schema … :lock=now`**, since `lock-field` freezes the same-named
684
+ _field_ and now refuses a declared param key.
685
+
686
+ _(From the 2026-08-04 tester batch: feedback `c283d767`, `d2ac4f2e`, `b0e88b17`, `e86081a1`.)_
687
+
688
+ - 8f3c63c: The `deploy-code` **Surfaces** preflight no longer contradicts itself, and a script plus an on-chain image renderer is now a documented combination rather than an open question.
689
+
690
+ The `[5] Surfaces` block is the most-praised thing in the deploy preflight — a tester singled out its
691
+ "not backfillable" framing as the direct fix for a confusion they'd filed a version earlier. It also
692
+ told two lies in adjacent lines, both found while answering their follow-up question.
693
+
694
+ **"One or more surfaces resolve to NOTHING a marketplace can see" fired when none did.** An undeclared
695
+ param was folded into the broken-surface test, so a deploy with both renderers set printed
696
+ `thumbnail: ON-CHAIN ✓` and `traits: on-chain ✓` and then, two lines later, that a surface resolved to
697
+ nothing — re-recommending `--image-renderer` and `--attributes-renderer`, the exact flags already
698
+ passed. A dropped param is not a dead surface: the piece renders, that input takes its default. The
699
+ alarm now covers only the thumbnail and traits, names only the remedies for what is actually broken, and
700
+ says _which_ surface. Dropped params keep their own, milder line.
701
+
702
+ **An on-chain image renderer was told to stand up a render runner.** With `--image-renderer` _and_ a
703
+ script, the block recommended `abx deploy-effects`, a one-shot `abx render`, and a publish-capable
704
+ storage backend — none of which apply, because an in-chain SVG has no off-chain still to render, host,
705
+ or refresh. It now says `nothing to render` for any on-chain image lane, with the from-chain check.
706
+
707
+ **And the question the tester explicitly flagged as untested — does passing a script _and_ an
708
+ `--image-renderer` yield both a live `animation_url` and an on-chain thumbnail? — is yes.** Verified on a
709
+ dry run: `animation_url` still assembles on-chain from the script chunks while `image` and `attributes`
710
+ are computed by the Solidity renderers, so every marketplace surface has an on-chain home in one deploy
711
+ with nothing to run. The deploy guide now leads the content-lane section with that combination instead of
712
+ implying the two lanes are an either-or.
713
+
714
+ The guide also gains the correction to the _other_ half of that question. A resolver plus
715
+ `abx render --backend arweave` does **not** backfill a `--onchain-uri` drop's marketplace surfaces: it
716
+ sends no transaction, so `tokenURI` keeps returning the on-chain JSON with its placeholder `image` and
717
+ no `attributes`, which is what marketplaces read. Checked against the reporter's own live 32-token
718
+ contract — `tokenURIBase` is empty, the metadata renderer is authoritative, and `image` provenance still
719
+ reads `fallback — image field unset`. Publishing stills to a resolver is real and useful, and closing
720
+ those surfaces afterwards takes owner transactions that re-point resolution. The guide now says so
721
+ plainly, since "just render to a resolver later" would have been a new false promise in place of the
722
+ old one.
723
+
724
+ Three tests pin the block: an undeclared param never claims a dead surface, an on-chain image renderer
725
+ is never sent to a runner, and a script with no renderer and no resolver still reports both surfaces
726
+ dead.
727
+
728
+ _(From the 2026-08-04 tester batch: feedback `c283d767`, `991dc8e2`, `7936334b`, `a319e53f`.)_
729
+
730
+ ## 0.1.0-alpha.15
731
+
732
+ ### Minor Changes
733
+
734
+ - e325b46: Opt-in ERC-721C support across the toolkit — plain ERC-721 stays the transparent default.
735
+
736
+ SDK: `OneOfOneInitParams`/`SeriesInitParams` (and `SeriesCodeInitParams` by inheritance) gain
737
+ `transferValidator` immediately after `royaltyBps` — `zeroAddress` = plain ERC-721 forever (the
738
+ default), non-zero = permanent 721C enrollment with that validator. A new `creator-token` module
739
+ ships the per-chain `RECOMMENDED_TRANSFER_VALIDATOR` (OpenSea's
740
+ StrictAuthorizedTransferSecurityRegistry, verified live on Sepolia + Base Sepolia), the two
741
+ creator-token ERC-165 ids + the ABX extension id, `readCreatorTokenStatus()` (`{enrolled,
742
+ validator}`), and a `prepareSetTransferValidator()` write wrapper.
743
+
744
+ CLI: the deploy commands take `--721c [recommended|0x…]` — absent means zero behavior/output
745
+ change; `recommended` resolves the per-chain constant (refused, naming the chains that have one,
746
+ where none is known); an explicit address is EIP-55-validated and pre-checked for code before any
747
+ gas. Enrolling prints one plain statement of what enforcement means. A new owner op
748
+ `abx set-transfer-validator <address> <0x…|none|recommended>` re-points or suspends an ENROLLED
749
+ collection's validator (guards `--dry-run`; refuses plain ERC-721s up front — enrollment is a
750
+ deploy-time decision). `abx state` shows the validator for enrolled collections only.
751
+
752
+ ### Patch Changes
753
+
754
+ - Updated dependencies [e325b46]
755
+ - @artblocks/abx-sdk@0.1.0-alpha.8
756
+ - @artblocks/abx-indexer@0.1.0-alpha.9
757
+ - @artblocks/abx-storage@0.1.0-alpha.8
758
+ - @artblocks/abx-token-api@0.1.0-alpha.11
759
+
760
+ ## 0.1.0-alpha.14
761
+
762
+ ### Minor Changes
763
+
764
+ - 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.
765
+
766
+ The params store was unenumerable by design, so anything that wanted to know _which_ parameters a
767
+ project has had to be told. The answer was a convention: a `params.keys` contract param holding a
768
+ comma-separated list, composed by `deploy-code` from the `--schema` flags and hand-maintained
769
+ thereafter. It worked, and it had the defect every hand-maintained index has — a key configured but
770
+ not listed was **silently omitted from every render**. The schema existed, a collector could set it,
771
+ the art never saw the value, and nothing anywhere reported a problem. The CLI grew a nudge, then a
772
+ same-transaction companion write, and both were treatments for a design that should not have needed
773
+ them.
774
+
775
+ **The token now maintains its own key lists.** `SeriesCode` gains `tokenParamKeys(tokenId)`,
776
+ `contractParamKeys()`, and `paramSchemaKeys()` (plus `…Paged` variants for surfaces past an RPC's
777
+ return cap). The lists are updated inside the write paths themselves, so `key ∈ list ⟺ the param is
778
+ set` holds for every writer — raw owner writes, governed `configure-param` writes, hook-driven writes,
779
+ all of them. No caller can forget, because no caller is involved. (`seed` is deliberately never listed:
780
+ every consumer reads it as a tokenData coordinate, and indexing it would charge every seeded mint for
781
+ nothing.) `paramSchemaKeys()` closes the other half — a chain-only frontend can now build a configure
782
+ UI, including for keys declared but never yet written, which nothing off-chain could previously
783
+ discover.
784
+
785
+ **The canonical `AbxGenerator` reads that surface instead of the CSV.** It no longer looks at
786
+ `params.keys` at all, and a `params.keys` value set on a new project is simply an ordinary parameter —
787
+ enumerated and emitted like any other, by both the generator and the SDK. A latent parity bug dies with
788
+ the convention: the generator's no-CSV path emitted tokenData in insertion order while the canonical
789
+ serializer sorts, so the two byte-forms could disagree; there is now one form.
790
+
791
+ **`AbxMetadataRenderer` is spec v4.** `tokenURI` gains a computed `abx_params` object — every set
792
+ parameter, contract and token scope merged, token wins, sorted, decoded by the same rules the generator
793
+ and the SDK use. A data-backed value over 2048 bytes is emitted as `{"keccak256":"0x…"}` — its on-chain
794
+ commitment — rather than inline, so a large `Bytes` parameter cannot bloat `tokenURI` past a single
795
+ `eth_call`; every key still appears, and an oversized one degrades self-describingly. Parameters are
796
+ _not_ folded into `attributes`: that stays the creator's surface. Also in v4: an `animation_url` carried
797
+ by the `inline` or `reader` representation is now wrapped as `data:text/html;base64,…`, exactly as
798
+ `image` already was — the asymmetry was an oversight, and it meant a fully on-chain animation was
799
+ handed to wallets as bare text.
800
+
801
+ Both changes are additive on the read side: pointed at a token that predates enumeration, a v4 renderer
802
+ simply emits no params block. **Repointing the metadata renderer is safe anywhere.** Repointing the
803
+ _generator_ is not, and `abx set-field` now refuses it: a legacy implementation plus the current
804
+ generator means every parameter silently vanishes behind a `tokenURI` that still looks healthy, so the
805
+ CLI stops you rather than warning you, and names both ways out (stay on the project's existing
806
+ generator, or redeploy).
807
+
808
+ Everywhere else in the toolkit, the convention is simply gone:
809
+
810
+ - `deploy-code --onchain-uri` sets up in **three** legs, not four (animation field → generator, plus
811
+ the two URI renderers). There is no key list to compose, report, or keep in sync, and the help text
812
+ no longer teaches one.
813
+ - `abx set-schema` is a single op again — no companion write, no multicall. This **supersedes**
814
+ alpha.13, which shipped `set-schema` writing `params.keys` in the same transaction to stop a governed
815
+ key going unlisted: the contract now maintains its own key list, so there is nothing to keep in step
816
+ and the drift that fix guarded against is gone rather than mitigated. Same for that release's note
817
+ that "there is no on-chain enumeration of schema keys" — `paramSchemaKeys()` is exactly that.
818
+ - `abx state` reads the governed surface from `paramSchemaKeys()` and the collection-scope values from
819
+ `contractParamKeys()`. A project deployed before enumeration falls back to reading its old
820
+ `params.keys` list, read-only, so live testnet drops still describe themselves.
821
+ - `abx verify` notes when a project's enumerated surface exceeds ~64 keys — the documented design
822
+ envelope. The write side is unbounded; the read side is what grows, since `tokenURI` and `tokenData`
823
+ assemble every parameter per call.
824
+ - `abx configure-param <addr> - params.keys <csv>` no longer has a special path. Writing that key is
825
+ now an ordinary schema-less contract param, and it shows up in tokenData as one — honest, and
826
+ documented.
827
+ - `abx_params` joins `artifacts` and `abx_provenance` as a computed key `set-field` and `attach` refuse.
828
+
829
+ The SDK needed no semantic change: `buildTokenData` has always been event-derived (coordinates + seed +
830
+ every set param, both scopes, token wins, augment entries), and the contract enumeration implements
831
+ exactly that rule. Its `deployments` manifest carries the new addresses.
832
+
833
+ ### Patch Changes
834
+
835
+ - 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.
836
+
837
+ **`abx tokenuri --json`.** The command abbreviated long values (`… (382 chars)`) with no way to turn it
838
+ off, so for a token whose whole point is on-chain content it returned something that _looked_ like the
839
+ metadata and wasn't. An integrator scraped it, stored a `data:` URI cut to 96 characters, and only
840
+ found out in production; they abandoned the CLI as a read path and reimplemented `eth_call`. `--json`
841
+ now emits the verbatim decoded document — no banner, no ANSI, no truncation — so
842
+ `abx tokenuri <addr> --json | jq` is a supported read path. The human view still abbreviates, and now
843
+ says `[--json for the full value]`.
844
+
845
+ **One Arweave identity, resolved in one place.** `arweaveConfigFromEnv()` read `ARWEAVE_JWK` and
846
+ nothing else, while the CLI mints and manages `.abx-self-host/arweave-key.json`. Porting a working CLI
847
+ flow to the SDK — same machine, minutes later — failed every upload with "Arweave via Turbo needs an
848
+ identity", a message that says storage was never configured when the truth was that two layers
849
+ disagreed about where the identity lives. `@artblocks/abx-storage` now exports `resolveArweaveJwk()`
850
+ (env → managed key file) and the CLI delegates to it. Its diagnostics come with it: an empty key file
851
+ now reports the **path** and the remedy instead of `Unexpected end of JSON input`, and a corrupt one
852
+ says the same.
853
+
854
+ **`abx refresh` on the default chain.** The OpenSea slug map held only `sepolia` and `mainnet`, so
855
+ `base-sepolia` — the CLI's own default — fell through to the raw key: the refresh POST went to a slug
856
+ OpenSea doesn't know, and the printed link pointed at **mainnet** `opensea.io` for a testnet token.
857
+ Slugs are now correct (`base_sepolia`), `testnet` comes from the chain registry rather than a second
858
+ hand-maintained set, and a chain with no known slug produces **no link** instead of a wrong one. Same
859
+ shape as the hardcoded explorer table that once sent every Base Sepolia link to Etherscan.
860
+
861
+ **`abx attach` names its dependency.** Attaching artifacts to a project that resolves on-chain now
862
+ warns, before the send, that they will **not** appear in `tokenURI` — the on-chain renderer carries
863
+ reserved fields only, and the artifacts manifest comes from a resolver. A team attached five audio
864
+ stems to a fully-on-chain token and found them "paid for, stored on-chain, and invisible"; the note
865
+ that existed was one dim line that read as a footnote rather than as a missing service.
866
+
867
+ **`ensureChunkStore` moved to the SDK.** The bootstrap every on-chain-content path needs existed only
868
+ inside the CLI, so an SDK integrator got `resolveChunkStore()` (may return undefined) plus a separate
869
+ `storeSupportsWriteContent()` they had to remember — forget it and an incapable store fails _deep
870
+ inside a mint, after transactions have landed_. One team hand-rolled the guard for exactly that reason.
871
+ `ensureChunkStore(publicClient, send, {chainId, override, onEvent})` is now exported; the SDK reports
872
+ progress through `onEvent` instead of printing, and the CLI keeps its narration.
873
+
874
+ **`abx storage upload --json`.** The locator as data. They scraped this line, captured its ANSI colour
875
+ codes along with the URL, wrote the result into a _stored_ player URL, and found out when it 404'd in
876
+ production. In `--json` mode stdout carries the JSON and nothing else; progress moves to stderr.
877
+
878
+ **`--backend ipfs` no longer hides a missing credential.** Without `PINATA_JWT` the backend resolves to
879
+ **kubo against a local node**, so a dry run looked fine and the real upload failed for anyone not running
880
+ one. The preview now says so. Related correction: the skill claimed "a backend missing its secret falls
881
+ back to `fs`" — it does not. `cloud` refuses up front naming the missing values, and `ipfs` goes to the
882
+ local node; nothing silently degrades to local disk. Both sides now say the same thing.
883
+
884
+ Reported in the 2026-08-03 MXRR integration batch (feedback 869f27b1, a256217f, 119d7e8e, 975c363e,
885
+ e38216db, e267078b).
886
+
887
+ - 1b50f9d: Unknown flags on a command that can send now **refuse** instead of warning — and `--chain` teaches `ABX_CHAIN`.
888
+
889
+ `abx deploy-code … --chain sepolia` ran to completion **on the default chain** (base-sepolia). There is
890
+ no `--chain` flag — the chain comes from the `ABX_CHAIN` environment variable — and the generic
891
+ stray-flag warning said so, accurately, and then the command carried on. On a dry run that is a
892
+ confused minute; on a funded send it is a wrong-chain deploy with real artifacts at an address nobody
893
+ is watching. Prose that gets ignored once gets ignored again, so:
894
+
895
+ - **`--chain` is refused on every command**, read-only ones included (a command that quietly ignored it
896
+ would still teach the wrong model). The message names the mechanism, the chain that _is_ active, the
897
+ known chain keys, and the corrected invocation: `ABX_CHAIN=sepolia abx deploy-code …`.
898
+ - **`deploy`, `deploy-series` and `deploy-code` refuse any unrecognized flag**, naming the offender and
899
+ pointing at `abx help <command>`. `--dry-run` refuses identically — a preview that accepts what the
900
+ real send rejects is its own trap, since you would validate a command and have it fail at the one
901
+ moment it matters.
902
+ - **Read-only commands still only warn.** Nothing can be mis-sent, and a stray flag shouldn't stop a
903
+ creator mid-iteration.
904
+
905
+ Refusing is safe rather than risky here, and this was verified rather than assumed: a flag absent from a
906
+ command's allowlist is by construction one that command never reads. Every `flags.x` read inside
907
+ `cmdDeploy`, `cmdDeploySeries` and `cmdDeployCode` was compared against its allowlist — no gaps — so
908
+ refusal cannot break a working flag, only make an already-ignored one loud.
909
+
910
+ Five tests cover it, including the literal `--chain sepolia` repro, dry-run/real-send parity, and a
911
+ no-false-refusal pass over the documented deploy flags.
912
+
913
+ - 1b50f9d: `abx preview --shoot --param key=value`, and `set-schema --force` says what it overrode.
914
+
915
+ **`--shoot` can render the collector-has-set-it state.** It only ever shot the _unset_ one, so
916
+ answering "what does this collection look like when someone picks a theme?" meant hand-rolling a
917
+ Playwright script against the preview server's `/view` — which is exactly what one agent did. `--param`
918
+ is repeatable (`--param theme=Neon --param mood=Calm`) and forwards into every frame. An empty value
919
+ (`--param theme=`) shoots the unset state explicitly, matching the wire shape production uses for a
920
+ param nobody has written.
921
+
922
+ **`set-schema --force` no longer applies a value-stranding change silently.** It refuses such a change
923
+ by default; with `--force` it now prints each risk it is overriding and notes that any token already
924
+ holding a value keeps it, now outside what its schema allows. Applying that quietly was the one outcome
925
+ worse than refusing — nobody, including the operator, got a record of what may have just been
926
+ invalidated.
927
+
928
+ - Updated dependencies [1b50f9d]
929
+ - Updated dependencies [1b50f9d]
930
+ - @artblocks/abx-sdk@0.1.0-alpha.7
931
+ - @artblocks/abx-storage@0.1.0-alpha.7
932
+ - @artblocks/abx-indexer@0.1.0-alpha.8
933
+ - @artblocks/abx-token-api@0.1.0-alpha.10
934
+
935
+ ## 0.1.0-alpha.13
936
+
937
+ ### Minor Changes
938
+
939
+ - 1158420: Expose the PostParam schema lifecycle: `abx set-schema`, `abx retire-param`, Address legs, and `lock=`.
940
+
941
+ Three capabilities the contracts have always had, that the toolkit could not reach — so they read to
942
+ creators as protocol limitations. All three were reported in the 2026-08-03 tester batch.
943
+
944
+ **A project's param surface was never frozen at deploy.** `setParamSchema` is owner-gated with no
945
+ deploy-time restriction and no `exists` check, so it is an upsert usable for the life of a project.
946
+ There was just no command for it, and the CLI said so out loud ("Adding a param to an already-deployed
947
+ contract isn't a CLI command yet"), which pushed designers toward guessing their full param surface up
948
+ front or redeploying — losing the address, the mints, and the collectors. `abx set-schema <addr>
949
+ --schema key:Type:Auth` attaches or replaces one key.
950
+
951
+ Because it is a **full-row upsert on a contract that never re-validates stored values**, the command
952
+ carries a guard rather than a warning: it prints before/after, and _refuses_ a change that could strand
953
+ values already written under the key — a narrowed bound, a dropped `Select` option, a changed type —
954
+ unless you pass `--force`. It also flags an existing `lock=` you are about to drop by not restating it.
955
+
956
+ **A parameter can be retired.** There is no delete in the contract (`exists` is only ever set true), but
957
+ a `lockAfter` in the past makes every later write revert `ParamLockExpired`, permanently. `abx
958
+ retire-param <addr> <key>` does exactly that, reading the current schema and changing _only_ the lock so
959
+ type/auth/bounds/options carry forward untouched. It does not remove the key and does not erase a stored
960
+ value — a value written under a `TokenOwner`/`Address` leg came from a collector, and the artist
961
+ deliberately cannot delete it.
962
+
963
+ **An `Address` auth leg is now expressible.** `--schema` previously rejected every Address-bearing leg
964
+ with "set that schema post-deploy via the contract" — advice pointing at a command that did not exist.
965
+ The auth token now names its holder inline (`board:Bytes:Address(0xabc…)`), and the error for a bare
966
+ `Address` says what the leg is for: a **contract** may hold it, which is how open and multi-party
967
+ participation is built today. `authAddress` and `lockAfter` were also hardcoded to zero at the
968
+ deploy-time call site, so neither was reachable there either; both now flow through `--schema`.
969
+
970
+ `--schema` gains an optional 4th field, `lock=<when>` (ISO date, unix seconds, or `now`), sharing the
971
+ Timestamp grammar the bounds already use. A 4th field that is not `lock=` now reports the spec-shape
972
+ error instead of a mangled "malformed type", which is what a `:` inside a `Select` label used to produce.
973
+
974
+ New in the SDK: `prepareSetParamSchema`, `prepareRetireParam`, `readParamSchema`, `OnChainParamSchema`.
975
+
976
+ (feedback 4a0c213a, 5d530681, 381bdcbe)
977
+
978
+ > [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
979
+ >
980
+ > > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
981
+ > > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
982
+
983
+ `set-schema` also keeps **`params.keys` in step, in the same transaction**. On the on-chain URI lane
984
+ the canonical generator builds tokenData from that CSV, so a key that is governed but not listed is
985
+ silently omitted from every render — the schema exists, a collector can set it, and the art never sees
986
+ the value. `deploy-code` composes the list from `--schema` for exactly this reason; without the
987
+ companion write, a schema added later would have quietly half-worked. Projects not on that lane (where
988
+ `params.keys` is unset) get no extra write.
989
+
990
+ > [Superseded 2026-08-03: params now enumerate **on-chain** (renderer spec v4, `abx_params`) and
991
+ >
992
+ > > `params.keys` is retired — the contract maintains its own key list, so nothing off-chain has to keep
993
+ > > it in step and `abx state` reads the chain directly. See the on-chain param enumeration entry.]
994
+
995
+ And `abx state` now prints the governed PostParam surface — each key's type, auth, bounds/options, an
996
+ upcoming lock date, and a `retired` marker for one whose lock has passed. There is no on-chain
997
+ enumeration of schema keys, so it reads the project's own `params.keys` list, which is also what the
998
+ generator reads; anything missing from it is invisible to renders anyway. It also names keys listed
999
+ there with no schema. This is what makes `set-schema`'s upsert safe to use: you can see a key's current
1000
+ shape before overwriting it.
1001
+
1002
+ - 1158420: `abx deploy` (1/1) can finally do "image off-chain, JSON on-chain, no server" — the pattern the docs already recommended.
1003
+
1004
+ The decisions table calls this pattern 2 and presents it as the sweet spot for static art. It worked
1005
+ on `deploy-series`. On the 1/1 command it silently did not: `--onchain-uri` inlines the image only
1006
+ when it is an SVG, and a raster fell through to keccak256 custody with no URL wired anywhere, so the
1007
+ on-chain renderer held a hash it could not serve and `tokenURI` returned a **placeholder — forever**.
1008
+ Adding `--backend arweave` changed nothing, which was the cruel part: it looked exactly like the
1009
+ documented recipe. A cold agent asked for "no server, still there in ten years", followed the docs,
1010
+ and would have shipped a permanently broken token.
1011
+
1012
+ `deploy` now takes the same route the Series takes. When `--onchain-uri` meets a non-inlinable image
1013
+ and a backend that can serve a public URL (`arweave` · `ipfs` · `cloud`), the file is uploaded as a
1014
+ one-entry directory — `putDirectory`, the identical call `deploy-series` makes, so both commands
1015
+ produce the same URL shape from one code path — and its URL is baked on-chain as the image field. The
1016
+ bytes are still stored under their content hash as well, so `abx verify` keeps working. A backend that
1017
+ can only serve from this machine (`fs`) still falls through to custody, and still warns.
1018
+
1019
+ The readouts learned that this is a three-way distinction, not a binary, because "no server" and
1020
+ "on-chain" are different promises and a creator buying permanence is choosing between them:
1021
+
1022
+ - image genuinely on-chain (`--onchain-image`, or an inlined SVG) → **"Done — fully on-chain."**
1023
+ - image at a durable URL the on-chain JSON points at → **"Done — metadata on-chain, image on ipfs."**
1024
+ plus a line naming whose permanence it actually is (Arweave paid-once-forever; IPFS while pinned).
1025
+ - neither → the placeholder warning, before the spend, naming both routes that would fix it.
1026
+
1027
+ Verified end to end on Base Sepolia (`0xdE5aCD35b74B6d002781De51217590a9c5B53EDC`): `tokenURI(0)` read
1028
+ straight from chain with `cast` — no `abx`, no server — returns an IPFS gateway URL that serves HTTP
1029
+ 200 with bytes identical to the source file, and reports itself honestly in `abx_provenance` as
1030
+ `source: url · onChain: false`.
1031
+
1032
+ Closes B17. Found by the 2026-08-03 parallel agent sweep.
1033
+
1034
+ ### Patch Changes
1035
+
1036
+ - 1158420: `abx inspect` no longer reports dependencies, params, or runtime problems that aren't in the code.
1037
+
1038
+ Every detector in the analyzer was a regex over the raw file, so prose counted as code. One
1039
+ tokenizer pass now gives the detectors a comments-stripped, string-blanked view:
1040
+
1041
+ - **A comment or string mentioning a library is no longer a dependency.** A dependency-free
1042
+ vanilla-canvas sketch whose header read `// no p5` was reported as `libraries: p5`, and the lane
1043
+ recommendation then said `--dep p5@<version>` — advice an agent adopts verbatim, which bloats the
1044
+ stored on-chain document and can push a drop to a chain whose dependency registry it needs.
1045
+ Real `p5`/`THREE`/`Tone` usage is still detected (pinned by tests).
1046
+ - **Reserved coordinates are never listed as PostParams.** `tokenId`, `chainId`, and
1047
+ `contractAddress` (like `seed` before them) are injected by the runtime and cannot be declared,
1048
+ but they landed in the "declare EACH at deploy or it's silently dropped" warning with
1049
+ `--schema tokenId:<Type>:<Auth>` advice that must not be followed.
1050
+ - **A dotted param key read through an alias is detected.** `const d = abx.tokenData;` then
1051
+ `d['collapse.index']` was invisible, producing a false "dropped at render" warning on a correct
1052
+ program — and ABX's own output-naming convention is dotted (`effect.render.image`), so the
1053
+ documented idiom tripped the analyzer.
1054
+
1055
+ Reported in the 2026-08-03 tester batch (feedback 3b66e443, f69e15d6, 8184f7dd, 6d32f874).
1056
+
1057
+ - 1158420: `abx deploy --onchain-uri` no longer claims "fully on-chain" over a token whose image isn't.
1058
+
1059
+ `--onchain-uri` puts the metadata JSON on-chain. It inlines the _image_ only when the image is an
1060
+ SVG; a raster falls through to keccak256 custody, and the on-chain renderer then serves a
1061
+ **placeholder** image. The success banner printed "Done — fully on-chain … no server or hosting
1062
+ needed" for that configuration, so a creator would believe they had permanence they did not have —
1063
+ and only discover it later via `abx tokenuri` (`source: "fallback"`, `onChain: false`).
1064
+
1065
+ Two changes, both computed from the actual file rather than the flag:
1066
+
1067
+ - The dry run (and the real run) now warn **before the spend** that the image is a keccak256 anchor
1068
+ and `tokenURI` will serve a placeholder, pointing at `--onchain-image --compress fastlz` or a
1069
+ served base URL. The code lane's dry run already warned about this case; the 1/1 lane shipped it
1070
+ silently.
1071
+ - The success banner says "Done — metadata on-chain" and names the image's real status. An SVG (or
1072
+ `--onchain-image`) still gets the unqualified "fully on-chain" banner, because that one is true.
1073
+
1074
+ Reported in the 2026-08-03 tester batch (feedback a8921f18).
1075
+
1076
+ - 1158420: Fix `deploy-code` reverting `DeploymentFailed()` — the setup transaction was sent with a gas limit estimated against a contract that did not exist yet.
1077
+
1078
+ Every `deploy-code` attempt in a reporter's Base Sepolia session reverted with Solady's
1079
+ `DeploymentFailed()` (`0x30116425`), in both the on-chain and hosted-resolver lanes, with a minimal
1080
+ case of storing a single 3,563-byte script chunk. It was not a defect in the chunk path: the two
1081
+ transactions simply **ran out of gas**.
1082
+
1083
+ ```
1084
+ 0xcad74d07… gasLimit 201,616 gasUsed 198,870 (98.6%)
1085
+ 0xf4350724… gasLimit 169,301 gasUsed 166,810 (98.5%)
1086
+ ```
1087
+
1088
+ A code project deploys in two transactions: create the clone, then one setup `multicall`. The second
1089
+ targets the contract the first just created — and `eth_estimateGas` for that call, taken while the
1090
+ answering node has not yet seen the deploy block, returns the **calldata cost alone**. Replaying both
1091
+ payloads against a codeless address reproduces the sent limits _to the gas_ (201,616 and 169,301);
1092
+ against the real contract the same calls need 941,331. A setup multicall's cost is dominated by
1093
+ CREATE code deposit (~200 gas per stored byte), so the underfunded CREATE inside `SSTORE2.write`
1094
+ returned 0 and reverted. The 1/1 lane was unaffected because its setup fits inside a calldata-sized
1095
+ budget.
1096
+
1097
+ This is the same read-after-write lag the deploy loop already pins the **nonce** against, one field
1098
+ over. The fix has two halves, and deliberately does not include a third:
1099
+
1100
+ - **Every leg after the first waits for the target's code to be visible** to the client doing the
1101
+ estimating, so a lagging node cannot produce a meaningless estimate in the first place. This is the
1102
+ actual repair.
1103
+ - **An impossible estimate is detected and refused, not replaced.** `PreparedTx` gained an optional
1104
+ `gasFloor` carrying only the _provable_ part of a payload's cost — EVM code deposit at exactly 200
1105
+ gas per stored byte. An estimate below that is not "low", it is proof the node is on stale state, so
1106
+ the sender retries and then errors out with what it saw.
1107
+ - **What we did NOT do: substitute a computed gas limit.** Only the deposit is derivable; the same
1108
+ setup multicall also carries schema writes, dependency legs, URI legs and mints whose cost cannot be
1109
+ known without simulating them. A "probably enough" constant is tuned to whoever's example was in
1110
+ front of its author — it would have covered the reported single-chunk case and then under-funded a
1111
+ three-schema deploy by ~200k, reproducing the identical `DeploymentFailed()` with a fresh mystery
1112
+ attached. Refusing to send is strictly better than sending a transaction we can prove is
1113
+ under-funded, which would burn the gas and orphan the contract.
1114
+
1115
+ All three signing lanes carry this, not just the hot one: the env-key lane pins the limit before
1116
+ `sendTransaction`, the wallet lane waits for code and hands the browser an explicit `gas` (a wallet
1117
+ estimates against its own RPC, which we don't control and which lags the same way), and the cold lane
1118
+ prints `gasMustExceed` — labelled a floor, not a limit — plus a note telling an external signer to
1119
+ re-estimate rather than send if their own number comes back below it. The rule lives in one place
1120
+ (`packages/cli/src/gas.ts`) so the lanes cannot drift apart on it.
1121
+
1122
+ Reported in the 2026-08-03 tester batch (feedback 156ea0fb, 172111ae), root-caused from the full
1123
+ transaction hashes supplied in the follow-up addendum.
1124
+
1125
+ - 1158420: `abx preview` stops fabricating param values, and `--shoot` stops blaming the program for its own timeouts.
1126
+
1127
+ - **An unset PostParam is now absent from the preview's `tokenData`, exactly as on-chain.** Preview
1128
+ injected a per-type default for every declared key — `Select` got its FIRST option — so an
1129
+ optional `theme:Select[Newsprint|…]` override rendered every frame as `Newsprint` with nobody
1130
+ having set anything: nine seed-distinct pieces collapsed into one palette, while the deployed drop
1131
+ (where the key is genuinely absent) would take the program's other branch entirely. Production
1132
+ (`buildTokenData`) only injects params that actually have a value; preview now matches it, so the
1133
+ program's own `?? fallback` runs in both places. The studio's `Select` control gained an explicit
1134
+ "— unset (program fallback) —" default position, so unset is now expressible rather than
1135
+ indistinguishable from the first option.
1136
+ - **`--shoot` distinguishes "the program reported no traits" from "we stopped waiting."** A wait
1137
+ that expired was swallowed, so a loaded machine turned a correct, trait-reporting program into
1138
+ "NO frame reported traits" — inverting the one line agents are told to trust and costing a full
1139
+ diagnostic cycle. Timed-out frames now report `timed out — traits unknown` and a warning that
1140
+ names it a measurement failure and suggests `--timeout-ms`; the silent-killer alarm only fires
1141
+ when the program really did report nothing.
1142
+ - **A missing Chromium build names the install command for the Playwright that actually loaded**
1143
+ (`node <resolved>/cli.js install chromium`). The stock hint (`npx playwright install`) can resolve
1144
+ a different Playwright version than the one that just launched, so you download a browser
1145
+ revision it won't use, get the identical error, and run the same command again.
1146
+
1147
+ Reported in the 2026-08-03 tester batch (feedback f843c952, 994f1d67, 534835d9).
1148
+
1149
+ - 1158420: Teach the agent skill how to handle audio and time-based work.
1150
+
1151
+ A "can ABX host a music tool?" session found zero mentions of audio, music, or sound anywhere in the
1152
+ skill. The protocol supports it — `animation_url` is an HTML document, so Web Audio works, and
1153
+ `attach` handles `.wav`/`.mp3`/`.mid` — but five judgments a sound piece needs were unauthored, so an
1154
+ agent had to guess or decline: browser autoplay policy (a marketplace iframe cannot start audio
1155
+ without a gesture), what the thumbnail _is_ for non-visual work, `abx.done()` semantics for a
1156
+ duration-based piece (settle the visual, don't wait out playback), the dependency lane for audio
1157
+ libraries (`tone` needs a registry entry ⇒ Sepolia, like `p5`), and the fact that there is no
1158
+ `render/audio` output declaration to reach for.
1159
+
1160
+ Reported in the 2026-08-03 tester batch (feedback fd6109db).
1161
+
1162
+ - 1158420: `abx skill install` can no longer overwrite a newer skill with an older one, or delete the skill it is installing.
1163
+
1164
+ Two ways the same command could destroy the thing it exists to install, both hit while working in the
1165
+ abx repo itself:
1166
+
1167
+ - **A stale prepack bundle shadowed the canonical skill.** `<pkg>/skill` is gitignored build output
1168
+ written at `prepack`; the canonical copy lives at `.claude/skills/abx-self-host`. Resolution
1169
+ preferred the bundle unconditionally, so a leftover `skill/` from an old `npm pack` was installed
1170
+ **over** the canonical skill — silently replacing v0.1.0-alpha.12 with v0.1.0-alpha.4, after which
1171
+ the CLI's own drift check reported the stale version as if the user had put it there. When running
1172
+ from source (the repo working tree) the canonical copy now wins; the published layout, which has no
1173
+ repo and no canonical copy, still uses the bundle.
1174
+ - **Installing onto the source deleted it.** `installSkillTo` removes the destination before copying,
1175
+ so when destination _was_ the source (a cwd-relative install inside the repo) it deleted the
1176
+ canonical skill and then had nothing to copy from. Same-path installs are now a no-op that reports
1177
+ `already the canonical copy — left as is`.
1178
+
1179
+ - 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.
1180
+
1181
+ **An unknown `ABX_CHAIN` printed a raw Node stack trace — from every command.** Chain-derived values
1182
+ were resolved at module scope, in `token-api` (which the CLI imports) and in the CLI itself, so the
1183
+ throw happened during module evaluation, before `main()` existed to catch it. `ABX_CHAIN=mainnet abx
1184
+ doctor` dumped an internal source path and exited 1 — including from the one command whose job is to
1185
+ tell you what is wrong with your environment. Those resolutions are lazy now, and the CLI validates
1186
+ the variable up front with an answer rather than a crash: unknown values list the shipped chains, and
1187
+ a mainnet-shaped value says plainly that ABX is testnet-only today.
1188
+
1189
+ **`abx inspect` reported "(no PRNG)" for a hand-written seeded generator — with the _stronger_
1190
+ reproducibility verdict attached.** The `seeded` check only recognized p5's `randomSeed(`, so a
1191
+ vanilla LCG or xorshift matched no branch and fell through to "traits look derived from the
1192
+ seed/params directly". That is the common case, not an edge one — the skill's own canonical
1193
+ dependency-free example hand-rolls an LCG, and all three sketches written by agents in the sweep hit
1194
+ it. A hand-rolled generator now gets the `careful` verdict and is told the truth: deterministic and
1195
+ reproducible on-chain, but only by porting that exact generator and call order into Solidity.
1196
+
1197
+ Also: `--yes` is now documented in `deploy-code --help` (its own placeholder-identity refusal already
1198
+ told you to pass it), and the `--onchain-uri` raster warning now names the two routes that actually
1199
+ deliver a no-server image instead of only one.
1200
+
1201
+ Found by the 2026-08-03 parallel sweep (8 cold Sonnet/Haiku agents, isolated sandboxes).
1202
+
1203
+ - Updated dependencies [1158420]
1204
+ - Updated dependencies [1158420]
1205
+ - Updated dependencies [1158420]
1206
+ - @artblocks/abx-sdk@0.1.0-alpha.6
1207
+ - @artblocks/abx-token-api@0.1.0-alpha.9
1208
+ - @artblocks/abx-indexer@0.1.0-alpha.7
1209
+ - @artblocks/abx-storage@0.1.0-alpha.6
1210
+
1211
+ ## 0.1.0-alpha.12
1212
+
1213
+ ### Minor Changes
1214
+
1215
+ - feba8c2: A resolver is no longer an object store: effect outputs split into **bound** and **referenced**
1216
+ (`specs/protocol/effects.md → Bound vs referenced`), and the artifact registry enforces the split.
1217
+
1218
+ An output is **bound** iff a binding stitches its _content_ into the metadata JSON (today exactly
1219
+ `render/traits` → `attributes`); everything else is **referenced** — the projection carries its URL,
1220
+ or it only appears in the `artifacts` manifest. That one distinction decides who holds the bytes, and
1221
+ it is now the wire rule rather than a runner constant.
1222
+
1223
+ - **`POST /v1/effect-artifacts` derives the mode from the binding, and refuses both mismatches.**
1224
+ Bytes for a referenced output → `400` (the resolver redirects either way, so the bytes buy no
1225
+ capability and cost it storage, retention and egress). A locator for a bound output → `400` (its
1226
+ content is assembled into `tokenURI`; a pointer there used to be recorded and then silently never
1227
+ stitch — a wrong answer served confidently). Bound content is capped at **64 KB**, and a locator
1228
+ that only the producer could resolve (loopback/private host, presigned expiring URL) is rejected.
1229
+ The resolver never fetches a locator while handling the write, and serves registered locators by
1230
+ `302` — never by proxying.
1231
+ - **Bound content moved out of byte custody** into the artifact row (`effect_artifacts.bytes`). Two
1232
+ distinct rules, deliberately not one: a node **MUST** serve and stitch bound content only at the
1233
+ token's current settled `inputsHash`, and it **MAY** drop superseded content whenever it likes
1234
+ (nothing may read it, and it is re-creatable). The reference drops eagerly, on each bound
1235
+ registration, so it holds at most `64 KB × minted × bound outputs` — but retention is a service
1236
+ policy, not an obligation. Either way "conforming means holding a bounded amount of JSON in the
1237
+ database you already run" is now literally true: a resolver in the publish topology needs no object
1238
+ storage at all.
1239
+ - **`abx-effects-publish/v1` is gone** (not deprecated): the two routes ride `abx-control-plane/v1`.
1240
+ Once referenced output is locator-only, accepting a registration is a database insert, so the
1241
+ capability flag described a distinction that no longer exists. A service that won't take a caller's
1242
+ artifacts refuses on the credential (`403`) — interfaces describe wire grammar, tokens describe
1243
+ permission. The interface ids are also explicitly **all-or-nothing**, and the conformance fixture
1244
+ now checks that every route a declared interface names actually answers.
1245
+ - **The runner declares bound outputs** (`EffectOutputDecl.bound`), refuses to start when it has a
1246
+ publish token but a backend that can't name a locator, preflights the descriptor + credential
1247
+ before spending a render, and **latches** on a permanent (4xx) publish failure instead of
1248
+ re-rendering every sweep forever. Skips now re-register rows, so a transient publish failure heals
1249
+ without a re-render.
1250
+ - **The CLI refuses the impossible combination up front**: `abx render --remote`, `abx effects`
1251
+ against a remote resolver, and `abx deploy-effects` all require a backend that can name a reachable
1252
+ URL — `cloud` (S3/R2 + public base), `ipfs`, or `arweave`, named as **peers**. Derived output is
1253
+ re-creatable, so the protocol has no preference among schemes: a chosen `https://` gateway or
1254
+ bucket URL is exactly as legitimate as `ipfs://`/`ar://`, and reachability — not durability — is
1255
+ the requirement. Rendering **co-located** with the resolver remains fully supported on any backend,
1256
+ including `fs`.
1257
+
1258
+ Breaking for producers that relied on pushing media bytes to a resolver: publish a locator instead,
1259
+ or co-locate. Breaking for clients that read `abx-effects-publish/v1` from a descriptor.
1260
+
1261
+ ### Patch Changes
1262
+
1263
+ - Updated dependencies [feba8c2]
1264
+ - @artblocks/abx-sdk@0.1.0-alpha.5
1265
+ - @artblocks/abx-token-api@0.1.0-alpha.8
1266
+ - @artblocks/abx-indexer@0.1.0-alpha.6
1267
+ - @artblocks/abx-storage@0.1.0-alpha.5
1268
+
1269
+ ## 0.1.0-alpha.11
1270
+
1271
+ ### Minor Changes
1272
+
1273
+ - 67b686b: `abx contracturi`, and the read plane stops answering a bare 404 to three different problems.
1274
+
1275
+ Both halves come from one real failure: an agent driving a hosted resolver wanted collection
1276
+ metadata, pattern-matched off `/t/{chainId}/{address}/{id}`, dropped the token id, got a bare `404`,
1277
+ and reported the service as broken. The documented route (`/c/{chainId}/{address}`) was right there —
1278
+ but there was also no command to just _ask_, and the 404 gave it nothing to correct.
1279
+
1280
+ - **New `abx contracturi <address>`** — the collection-level counterpart of `tokenuri`. Reads
1281
+ `contractURI()` (ERC-7572) from the contract, **follows it**, and decodes: a `data:` URI inline
1282
+ (the on-chain lane), an `https://` URL by fetching it (the off-chain lane). A contract commits its
1283
+ own metadata base on-chain (`contractURIBase`), so the chain — not a doc, not a service
1284
+ descriptor — is the authoritative answer to where a project's metadata lives. Nobody needs to
1285
+ hand-build a resolver URL. When the fetch fails, the message says so plainly: the URL came from
1286
+ the chain, so a bad status is about the _service_ (unregistered project · wrong chain · down),
1287
+ never a mistyped path.
1288
+ - **Read-plane responses now carry a machine `code`**, so the three causes of "no metadata came
1289
+ back" are distinguishable — they were one indistinguishable `{"error": "…"}` `404`:
1290
+ - `400 invalid_request` — a real route, wrong shape. Names the correct template, and carries
1291
+ `didYouMean` when the fix is obvious (a `/t/…` missing its token id → `/c/{chainId}/{address}`).
1292
+ - `404 unknown_route` — this node serves nothing at that path; the body lists what it does serve.
1293
+ - `404 not_registered` — the path and chain were fine; this node doesn't index that contract.
1294
+ - `400 unsupported_chain` — wrong chain, plus the `chains` this node does serve. Was a bare `404`;
1295
+ now matches what the control plane already answered for the same condition.
1296
+ - `ServiceErrorCode` gains `unknown_route`. The spec's Errors section now covers the read plane too,
1297
+ with a **MUST** on distinguishing the three misses — and an explicit **MUST NOT** on treating
1298
+ route templates as per-node discoverable configuration. The route grammar is fixed by the
1299
+ `abx-token-api/v1` interface; these responses are diagnostics, not a discovery mechanism.
1300
+ - **The conformance fixture checks all of it** (`pnpm conformance <base-url>`), so any provider can
1301
+ self-verify in one command. Also fixed: the documented `pnpm conformance -- <base-url>` form
1302
+ parsed `--` as a flag and swallowed the base URL, printing usage instead of running.
1303
+
1304
+ ### Patch Changes
1305
+
1306
+ - Updated dependencies [67b686b]
1307
+ - @artblocks/abx-sdk@0.1.0-alpha.4
1308
+ - @artblocks/abx-token-api@0.1.0-alpha.7
1309
+ - @artblocks/abx-indexer@0.1.0-alpha.5
1310
+ - @artblocks/abx-storage@0.1.0-alpha.4
1311
+
1312
+ ## 0.1.0-alpha.10
1313
+
1314
+ ### Minor Changes
1315
+
1316
+ - a72723d: A standard indexing lifecycle, and registration that no longer blocks on a slow chain RPC
1317
+ (specs/self-host-toolkit/remote-services.md → The indexing lifecycle).
1318
+
1319
+ - **Fixed: a slow register triggered a retry storm.** The SDK's per-attempt timeout (30s) plus its
1320
+ retry ladder meant a cold reconstruct that outran one request was **re-POSTed up to four times**,
1321
+ each starting another full replay against the RPC that was already too slow to answer — and the
1322
+ caller then saw "nothing responded" even though the registration was durable and indexing was
1323
+ underway. A timed-out register now asks whether it landed (a status read) instead of re-POSTing, and
1324
+ the resolver coalesces concurrent catch-ups for one project into a single run.
1325
+ - **`POST /v1/projects` answers in two conformant shapes, discriminated by HTTP status:** `200` with
1326
+ the completed summary, or `202` + `{accepted, project: {status}}` when catch-up is deferred. The
1327
+ registration is normatively **durable before catch-up** and visible on the list immediately, so a
1328
+ flaky RPC makes for a slower backfill rather than a lost add. No `?wait=`/`Prefer:` negotiation — the
1329
+ status code is the discriminator, and clients handle both. The reference resolver answers _by
1330
+ deadline_ (`ABX_REGISTER_DEADLINE_MS`, default 8s): the common case (a fresh deploy) stays
1331
+ synchronous with real counts; only the pathological case defers.
1332
+ - **Closed lifecycle enum + error classes, on the status and list routes:**
1333
+ `queued | backfilling | live | stale | failed`, plus credential-free
1334
+ `error.class ∈ {rpc_unavailable, rpc_rate_limited, not_abx_contract, internal}` (fixed per-class
1335
+ messages, never a scrubbed upstream string). Status gains top-level `headBlock` (so lag / % complete
1336
+ is computable without knowing a service has a watcher) and `attempts`; the list carries `status` +
1337
+ the error class, so a client renders "3 live, 1 backfilling, 1 failed (rpc_rate_limited)" in one
1338
+ request. SDK: `IndexStatus`, `IndexErrorClass`, `isAccepted()`, `indexProgress()`,
1339
+ `classifyIndexError()`, and `AbxServiceClient.awaitIndexed()` — one wait loop for the CLI, the
1340
+ effects runner, and any hosted agent.
1341
+ - **The same five words on your own node.** `abx status [address] [--remote [name|url]] [--watch]`:
1342
+ bare is the node summary (now with each project's state), an address gives lifecycle + scan floor +
1343
+ blocks-indexed-vs-head + cause, and `--remote` asks a service. (`status` = who is serving it and how
1344
+ fresh; `state` = what the chain says. Both `--help` texts now say so.)
1345
+ - **New observability the self-hosted node never had:** the chain watcher marks projects `stale` when
1346
+ it falls far behind head or its ticks keep failing (previously visible only in the node's log),
1347
+ re-queues a backfill interrupted by a restart (previously left registered-but-empty until a manual
1348
+ `abx index`), and retries a `failed` catch-up on exponential backoff instead of hammering a
1349
+ rate-limited RPC every tick. Lifecycle rows live in their own table: they survive a projection wipe
1350
+ and are never clobbered by a re-add.
1351
+ - **CLI:** `abx add|index --remote` prints `registered — backfilling…`, polls to `live`, then prints
1352
+ the same summary a synchronous service would have given; `--no-wait` returns at the 202 and names
1353
+ the command to check later. A post-op nudge (`ownerops`) never blocks on someone else's backfill.
1354
+ A caught-up project with **0 events** now warns instead of printing ✓ (a real ABX clone always emits
1355
+ a spine, so zero means wrong chain/floor or an RPC that didn't serve the logs).
1356
+ - **Conformance fixture** accepts either register shape, asserts durable-before-catch-up, lifecycle
1357
+ membership, `headBlock`, that a deferred catch-up actually reaches `live`, and that no error message
1358
+ carries a URL.
1359
+ - Fixed `scripts/mock-remote-service.mts`, which imported the token API by a path that resolved
1360
+ against `scripts/` and could silently fall back to a _published_ build outside the repo — the
1361
+ fixture was testing the last release instead of the working tree. The fixture also re-points
1362
+ scenarios by their fixture header now, so a new one can't keep a dead contract address.
1363
+
1364
+ Found by a cold-agent sweep over the above (10 parallel clean rooms, haiku + sonnet) and fixed here:
1365
+
1366
+ - **`abx status --remote <name>` with no address** parsed the flag itself as the address and sent it
1367
+ as a URL path segment.
1368
+ - **A register whose catch-up already failed** was announced as "registered — failed (…is catching
1369
+ up…)", and with `--no-wait` it exited 0 and then claimed the provider "now serves" the project. A
1370
+ known failure is now an error in both lanes — there is nothing left to wait for.
1371
+ - **A `failed` status said what broke but not whose problem it was.** Both the failure error and
1372
+ `abx status` now carry a per-class action line ("the SERVICE can't reach its chain RPC — not your
1373
+ key, address, or chain…"), plus a `follow` line naming `--watch`, so a red word isn't a dead end.
1374
+ - **A `live` project showed a misleading completion percentage.** `toBlock` only advances when a
1375
+ project has _events_, so a fully current project on a busy chain read as `2/202 (0%)`.
1376
+ `indexProgress()` now returns a ratio only while `backfilling`; `live` reads "caught up", `stale`
1377
+ reads "not tracking head right now".
1378
+ - **`--remote-token` was misattributed on a 401** — the error blamed `ABX_REMOTE_<NAME>_TOKEN` even
1379
+ when the caller passed an override, making the override look ignored at exactly the moment someone
1380
+ is testing a replacement key.
1381
+ - **`not_registered` on a read** (status/reindex) now names the register command instead of echoing a
1382
+ 404, and a 5xx carrying a failure `class` becomes a wait-vs-broken error.
1383
+ - **`abx verify`'s summary** read `✓ 0/1 up to date` for a project with no off-chain renders at all —
1384
+ "zero of one succeeded" to two independent reviewers. It now says "nothing to render for this
1385
+ project", and otherwise leads with polarity ("N of M token(s) current").
1386
+ - **`abx doctor` now reports named remotes** and flags a credential stored under a name the CLI does
1387
+ not read (`ABX_REMOTE_<NAME>_KEY`). That fault presents as "it acts like I never gave it a key" and
1388
+ previously only surfaced from `abx remote <name>` — which a creator reaches _after_ doctor.
1389
+ - **Skill: the `npx --no-install abx version` probe was documented as failing cleanly.** It doesn't —
1390
+ npm will run any `abx` binary already in the npx cache, which in a real sweep reported a months-old
1391
+ build as the project's CLI (and if a plain `npx abx` ever ran on that machine, the bare name is a
1392
+ squatted package). The skill now probes `./node_modules/.bin/abx` directly.
1393
+ - Also documented: how a multi-word provider name folds into `ABX_REMOTE_<NAME>_*`, and what
1394
+ `watching: no` means on a status readout.
1395
+
1396
+ A second sweep round over those fixes caught three more, including one the first round's fix created:
1397
+
1398
+ - **`abx verify --remote` never checked byte integrity at all** — both of its lanes only ask "is there
1399
+ a current render / is this a placeholder", and a green ✓ from that was standing in for "the served
1400
+ bytes match the on-chain commitment". A reviewer hit the worst version of this: `--remote` (the form
1401
+ the skill tells you to use for a hosted project) reported ✓ on a token whose bytes genuinely did NOT
1402
+ hash-match, while bare `abx verify` on the same project reported `✗ keccak256 MISMATCH`. It now calls
1403
+ the service's own purpose-built `GET /api/project/:addr/verify` (which holds both the bytes and the
1404
+ chain) and reports that verdict separately from the render summary — and when it _can't_ run that
1405
+ check (no credential, older node) it says "byte integrity NOT checked" instead of leaving a ✓ to
1406
+ imply it passed. The remedy names both real causes (an unbridged durable locator vs. bytes that only
1407
+ exist on the creator's machine, which a hosted resolver can never serve).
1408
+ - **`abx verify` exited 0 while printing a byte MISMATCH**, in both lanes — nothing could gate on it.
1409
+ An integrity mismatch now fails the command; a missing render or placeholder is a normal state and
1410
+ still exits 0.
1411
+ - **`abx add --dry-run` silently ignored the flag and performed the registration**, local or remote.
1412
+ It now refuses and names the read-only commands (`abx state`, `abx status`) instead. Silently doing
1413
+ the thing when the caller asked to preview is the one outcome that must never happen.
1414
+ - **`PRAGMA busy_timeout` was set third in the store schema**, after the WAL switch it needs to
1415
+ protect — so two processes opening the same store at once (parallel CLI runs, or a co-located
1416
+ effects runner starting alongside the resolver) could fail outright with `database is locked`
1417
+ instead of waiting the moment out. It is now the first statement.
1418
+
1419
+ A third round, re-running the scenario that found the verify bug (it now catches it) turned up:
1420
+
1421
+ - **`abx add --remote` ended on "it now serves <url>"** — true about indexing, silent about whether
1422
+ the bytes are right, and two reviewers stopped there and reported a blank page as fixed. It now names
1423
+ the byte check (`abx verify <addr> --remote <name>`) in the same breath.
1424
+ - **`canonical:` collapsed a tri-state.** `isCanonical` is `true | false | null`, and both readouts
1425
+ printed "unverified" for the last two — so "the chain says this is NOT a clone of the configured
1426
+ factory" (a trust finding) looked identical to "the check never ran" (no factory on this chain, normal
1427
+ on a dev chain). Two reviewers read the collapsed word as a second failure sitting next to a real one.
1428
+ - **`abx verify --remote` gave a bare `fetch failed`** for an endpoint that was down, where
1429
+ `abx status --remote` names the host and asks whether it's running. Two commands, one condition, two
1430
+ error qualities — now consistent.
1431
+ - `abx status <addr>` printed the address twice when the project has no name.
1432
+ - Skill: registering with a provider on **their** hostname vs. a domain you control decides whether
1433
+ leaving later costs a transaction — now stated in the managed-provider section, before you bake it.
1434
+
1435
+ ### Patch Changes
1436
+
1437
+ - Updated dependencies [a72723d]
1438
+ - @artblocks/abx-sdk@0.1.0-alpha.3
1439
+ - @artblocks/abx-indexer@0.1.0-alpha.4
1440
+ - @artblocks/abx-token-api@0.1.0-alpha.6
1441
+ - @artblocks/abx-storage@0.1.0-alpha.3
1442
+
1443
+ ## 0.1.0-alpha.9
1444
+
1445
+ ### Minor Changes
1446
+
1447
+ - 3745bd3: Remote services are first-class: a provider-neutral control plane, named remotes, and a service
1448
+ descriptor (specs/self-host-toolkit/remote-services.md).
1449
+
1450
+ - **Control plane moves to `/v1`** (hard cutover; `/admin/*` is gone — redeploy self-hosted nodes):
1451
+ `POST/GET /v1/projects`, `DELETE|reindex|status /v1/projects/{chainId}/{address}`,
1452
+ `POST /v1/effect-artifacts|effect-status`. `chainId` is explicit and validated everywhere; every
1453
+ error carries a machine `code` (`unauthorized` 401 · `forbidden` 403 · `unsupported_chain` ·
1454
+ `not_registered` · `disabled`) replacing the old prose-sniffed 404. One bearer guard replaces the
1455
+ four inline copies; OPTIONS preflight now answers so browser clients can send `Authorization`.
1456
+ - **`GET /.well-known/abx-service`** — the public service descriptor: `interfaces` (present iff
1457
+ actually enabled), `chains`, `auth` (with optional provider-set `signupUrl`/`docsUrl` via
1458
+ `ABX_SERVICE_*` env), and `render.attached` (managed rendering, probed from the runner's
1459
+ `/health`) — so an agent can match a project to a provider before registering.
1460
+ - **Named remotes in the CLI**: `--remote <name>` reads `ABX_REMOTE_<NAME>_URL`/`_TOKEN`
1461
+ (a managed provider's per-account key — never falls back to `ABX_RESOLVER_ADMIN_TOKEN`);
1462
+ `--remote <url> [--remote-token <t>]` for ad-hoc targets; bare `--remote` stays the self-host
1463
+ default. New `abx remote [name|url]` inspects a service's descriptor and the projects a token
1464
+ sees. `migrate --from/--to` accept names; only the destination needs a credential.
1465
+ - **The SDK gains its first HTTP surface**: `AbxServiceClient` (endpoint + injected bearer, retry
1466
+ on 5xx/network, immediate typed `AbxServiceError` on 4xx) — shared by the CLI and the effects
1467
+ runner's publish lane. `envSuffix()` is the shared env-name normalization.
1468
+ - **Conformance fixture**: `pnpm conformance -- <base-url> [--token …]` self-verifies any
1469
+ implementation; the e2e suite runs it against the reference container.
1470
+
1471
+ ### Patch Changes
1472
+
1473
+ - 3745bd3: Membrane fixes found by a 20-run cold-agent regression sweep (sonnet + haiku, black-box clean rooms).
1474
+
1475
+ - **A 500 no longer leaks the node's own credentials.** An upstream RPC failure surfaced viem's
1476
+ message, which embeds the endpoint URL — and a keyed RPC URL _is_ a credential, so on a
1477
+ multi-tenant provider any tenant who could provoke a 500 got the operator's RPC key. The cause now
1478
+ goes to the node's log; the wire gets a generic message, an `internal_error` code, and a
1479
+ credential-free hint about the failure class. Normative in the remote-services spec.
1480
+ - **The service client no longer discards a 5xx body.** The service's own words survive the retry
1481
+ ladder, and an exhausted ladder says "failed — last response …" rather than mislabelling a
1482
+ server that answered as "unreachable". The descriptor probe drops to 2 attempts, so a typo'd
1483
+ provider URL fails in ~1s instead of grinding 5s, with distinct "nothing responded" vs
1484
+ "answered, but serves no descriptor" messages.
1485
+ - **Conflicting duplicate `.env` keys are reported.** First-wins is unchanged, but a stale second
1486
+ `ABX_RPC_URLS_<CHAIN>` line silently pointed the CLI at another network while every check read
1487
+ green — the symptom surfaced far away as "no contract at that address". Only genuinely
1488
+ _conflicting_ duplicates warn (identical repeats stay quiet).
1489
+ - **"No contract at …" errors now name the endpoint they asked** (redacted), because a chain key
1490
+ can't distinguish two RPCs that both claim it.
1491
+ - **A misnamed remote credential is called out.** `ABX_REMOTE_<NAME>_KEY` (or `_API_KEY`, `_SECRET`)
1492
+ is not read, so it previously reported as "no token" while the value sat in `.env`; both
1493
+ `abx remote` and the register path now name the near-miss and the correct `_TOKEN` name.
1494
+ - **`--dry-run` explains a missing trust anchor instead of crashing.** On a chain where the
1495
+ configured factory has no code, `deploy`/`deploy-series` previews died inside
1496
+ `predictDeterministicAddress` with a raw `returned no data ("0x")`; they now report it the way
1497
+ `abx predict` and a real deploy already did, and name the two ways forward. The keyless
1498
+ `--for` requirement also fails fast instead of after several steps of output.
1499
+ - **The placeholder-identity guard is one shared predicate** across all three deploy commands
1500
+ (it was copy-pasted, and one copy's comment claimed coverage it didn't have), pinned by a new
1501
+ regression test: a real send refuses tool defaults, a preview only warns.
1502
+ - **The served dashboard's empty state no longer prints `pnpm abx demo`** — a contributor-only
1503
+ invocation on a page a published user sees.
1504
+
1505
+ - Updated dependencies [3745bd3]
1506
+ - Updated dependencies [3745bd3]
1507
+ - @artblocks/abx-sdk@0.1.0-alpha.2
1508
+ - @artblocks/abx-token-api@0.1.0-alpha.5
1509
+ - @artblocks/abx-indexer@0.1.0-alpha.3
1510
+ - @artblocks/abx-storage@0.1.0-alpha.2
1511
+
1512
+ ## 0.1.0-alpha.8
1513
+
1514
+ ### Patch Changes
1515
+
1516
+ - 4074766: Fix the dashboard's block-explorer links, which were hardcoded to `https://sepolia.etherscan.io`. Every
1517
+ link on the page — contract, owner, implementation, each event's tx — pointed at Ethereum Sepolia no
1518
+ matter which chain was being served, so a dashboard for a normal `abx demo` (Base Sepolia by default)
1519
+ sent you to an explorer where the contract does not exist. The SDK now derives the explorer from viem's
1520
+ own chain metadata (`explorerUrl`/`chainById`), so adding a chain brings its explorer along and no
1521
+ hand-maintained table can drift. The CLI's separate copy of that table is collapsed into the same
1522
+ helper; `signer.ts` was already doing it correctly.
1523
+
1524
+ Drop the demo's opening "trust anchor" step. It asserted that only the canonical factory can make a
1525
+ token that _is_ an ABX token, which is false — anything following the protocol's event spine is an ABX
1526
+ token, and the factory is one route to that, not the definition. The same overclaim in the index step
1527
+ ("verified real") now reports the fact instead: made by the canonical factory, or not. The demo opens
1528
+ on the renderer step, and resolving the factory no longer prints a line of its own there.
1529
+
1530
+ - Updated dependencies [4074766]
1531
+ - @artblocks/abx-sdk@0.1.0-alpha.1
1532
+ - @artblocks/abx-token-api@0.1.0-alpha.4
1533
+ - @artblocks/abx-indexer@0.1.0-alpha.2
1534
+ - @artblocks/abx-storage@0.1.0-alpha.1
1535
+
1536
+ ## 0.1.0-alpha.7
1537
+
1538
+ ### Patch Changes
1539
+
1540
+ - c16c0f0: Shorten the update check's cache from 24h to **6h**. A day-long cache let someone work a whole
1541
+ session — deploys included — against a CLI that had been superseded that morning, without ever being
1542
+ told. In a fast-moving alpha line that's the common case, not the edge one.
1543
+
1544
+ The agent skill now **acts** on version drift instead of reporting it. It already reconciled
1545
+ skill⇄CLI drift, but nothing told it what to do when the CLI's own `update available` notice fired —
1546
+ so on an agent-driven surface that notice landed as a human-shaped message and got relayed or
1547
+ ignored. The skill now upgrades the CLI itself (matching how it was installed), resyncs the skill, and
1548
+ reloads before deploying, with the reason stated: a stale CLI can hold canonical addresses that have
1549
+ since moved, and a mid-run `… is not a function` is usually exactly this.
1550
+
1551
+ Docs: the Upgrading page now leads with the two install shapes in the same order as the quickstart
1552
+ (global, then per-project) instead of opening on a one-off `npx` invocation, drops the update-check
1553
+ silencing details (they live in the CLI reference, alongside `version`), and answers the question the
1554
+ old "Upgrade the SDK" section provoked — upgrading the CLI upgrades the SDK it pins, so a CLI user has
1555
+ nothing separate to maintain; you install the SDK only when writing TypeScript against ABX directly.
1556
+
1557
+ ## 0.1.0-alpha.6
1558
+
1559
+ ### Patch Changes
1560
+
1561
+ - c21ea30: `abx demo` now runs **fully on-chain** by default, and speaks plainly.
1562
+
1563
+ Its generative SVG is inlined into the contract, so no `http://localhost:8787` is baked into the
1564
+ on-chain `tokenURI` base. The old default shipped a first-ever token that resolved for nobody but its
1565
+ author — broken on every marketplace, dead the moment `abx serve` stopped — and taught that as the
1566
+ normal shape of an NFT. It also undercut the demo's own claim: with the art on-chain, "rebuilt from the
1567
+ chain alone" now covers the image, not just the metadata. The final dashboard still starts, but is
1568
+ framed as a local viewer rather than infrastructure. Hand the demo an `--image`, a `--backend`, or a
1569
+ `--public-base-url` and it switches back to off-chain custody, where that split is real and worth
1570
+ teaching.
1571
+
1572
+ Fixed alongside it: on every on-chain lane (1/1 and Series, wallet and `--onchain-image`) the deploy
1573
+ step announced `URIs point at http://localhost:8787` even though nothing was baked — in the demo, two
1574
+ lines after promising no localhost anywhere.
1575
+
1576
+ The walkthrough's teaching text is rewritten in plain language, with the protocol vocabulary kept as a
1577
+ dim aside instead of the headline: steps are now "Who vouches for this token?", "Mint it", "What the
1578
+ chain knows now", and "The moment of truth · delete it all". The read-back step reads from the real
1579
+ source per lane — `tokenURI(0)` on the contract when fully on-chain (what a marketplace actually does,
1580
+ and it proves no server is involved), the resolver when custody is off-chain.
1581
+
1582
+ The browser-wallet signing prompt now says to connect a wallet holding testnet ETH and links a faucet.
1583
+ That was the one funding surface with no guidance: on `--sign` without `--for` the address isn't known
1584
+ until the wallet connects, so the up-front balance check never ran and an empty wallet's first signal
1585
+ was a failed transaction.
1586
+
1587
+ - c21ea30: Make the update check independent of which npm dist-tag prereleases are published under. It now
1588
+ resolves the `latest` tag and, when the running version is a prerelease, that version's own channel
1589
+ tag (`alpha`, `beta`, …), reporting whichever is newer. Previously it only asked for `latest`, which
1590
+ works today only because `ci:publish` passes no `--tag`; the day a stable release ships and
1591
+ prereleases move to `--tag alpha`, the nudge would have gone silent for prerelease users with
1592
+ nothing erroring. The on-disk cache is now keyed by release channel too, so switching between the
1593
+ alpha and stable lines re-checks instead of serving a day-stale answer.
1594
+ - Updated dependencies [c21ea30]
1595
+ - @artblocks/abx-indexer@0.1.0-alpha.1
1596
+ - @artblocks/abx-token-api@0.1.0-alpha.3
1597
+
1598
+ ## 0.1.0-alpha.5
1599
+
1600
+ ### Patch Changes
1601
+
1602
+ - afb36a3: Fix three bugs that made the documented first run (`abx demo`) look broken.
1603
+
1604
+ **A 0-event index was reported as success, and served.** `eth_getLogs` is
1605
+ read-after-write inconsistent on load-balanced RPCs: `waitForTransactionReceipt`
1606
+ resolves against a node that has the block, then the log query lands on one that
1607
+ doesn't yet and returns nothing for a block we _know_ contains our deploy. The CLI
1608
+ took that single read at face value, printed `✓ reconstructed 0 events`, stored the
1609
+ empty projection and served an empty dashboard — no events, no token, nothing to
1610
+ look at. This reproduced 100% of the time against `https://sepolia.base.org`, which
1611
+ is the **default endpoint when there is no `.env`** — so the documented first run
1612
+ was the path that broke. Every post-deploy index (`deploy`, `demo`, `deploy-series`,
1613
+ `deploy-code`, `add`) now re-scans with backoff instead of trusting one read, since
1614
+ having just minted means the spine cannot legitimately be empty. If it still comes
1615
+ back empty, that is now reported as a failure naming `abx index <addr> --full` as
1616
+ the recovery, rather than dressed up as a ✓.
1617
+
1618
+ **The demo told you to press a button that does not exist.** It ended with _"Open
1619
+ the dashboard, then hit 'Re-index from chain'"_. The dashboard is read-only —
1620
+ re-index and verify are admin actions that 404 unless the node has an
1621
+ `ABX_RESOLVER_ADMIN_TOKEN` — so that control isn't there to find. It now points at
1622
+ the spine table (which _is_ the reconstruction) and at `abx index <addr> --full` to
1623
+ replay it. The dashboard's own note also stopped printing a **shortened** address
1624
+ inside a copy-pasteable command, and no longer suggests `--remote` for a local node.
1625
+
1626
+ **Re-running the demo crashed after spending a transaction.** With port 8787 already
1627
+ busy — an `abx demo` or `abx serve` in another terminal, i.e. exactly what happens
1628
+ when you run the demo twice — the deploy went through, was paid for, and _then_ the
1629
+ serve step died with an unhandled Node `EADDRINUSE` stack trace. The port is now
1630
+ preflighted before anything irreversible, so it refuses with "Nothing was deployed"
1631
+ and suggests `--port <n+1>`.
1632
+
1633
+ **`abx demo` is now a walkthrough rather than a smoke test.** The docs point a
1634
+ first-time reader here, but it asserted its interesting claims without ever showing
1635
+ them — "reconstructed 9 events — no provider involved" with the events invisible.
1636
+ It now teaches, continuously and without pauses (so agents and CI behave
1637
+ identically): it explains why the trust anchor is the factory and not a spoofable
1638
+ event, names what goes on chain versus what stays a keccak256 commitment, prints
1639
+ the reconstructed event spine with what each event told us (tagged ABX vs plain
1640
+ ERC-721/7572), then **deletes its own local projection and replays it from the
1641
+ deploy block**, comparing a sha256 fingerprint of every chain-derived field to prove
1642
+ it lands on identical state. Finally it reads the token back the way a marketplace
1643
+ would. `abx deploy` is unchanged — it stays terse.
1644
+
1645
+ Adds `Store.dropProjection(address)` / `SelfHostIndexer.dropProjection()`: discard a
1646
+ project's reconstructed projection while keeping its registration, so the next index
1647
+ rebuilds from the deploy block. That's the primitive the rebuild proof needs, and it
1648
+ makes "the projection is a disposable cache" a checkable claim rather than a comment.
1649
+
1650
+ - Updated dependencies [afb36a3]
1651
+ - @artblocks/abx-token-api@0.1.0-alpha.2
1652
+
1653
+ ## 0.1.0-alpha.4
1654
+
1655
+ ### Minor Changes
1656
+
1657
+ - 48d96c5: Add **`abx preview`** — the studio lane for code projects: run the program on
1658
+ localhost, live, while it's still being made. No chain, no key, no deploy.
1659
+
1660
+ `abx preview --script art.js --schema "palette:HexColor:TokenOwner"` serves a
1661
+ studio on `localhost:8788` — shuffle seeds, drive every declared PostParam from a
1662
+ real typed input (a color picker for `HexColor`, a dropdown for `Select`), read the
1663
+ traits the program actually reported, and `/grid` to see N seeds at once. `/view`
1664
+ is the bare document. The program is re-read from disk on every render, so the loop
1665
+ is edit-and-refresh with no watcher and no restart.
1666
+
1667
+ It serves the **same template-mode document the generator serves** — the real
1668
+ `abx.js`, the real canonical `tokenData` shape, the real dependency script tags —
1669
+ with a synthetic bytes32 seed in place of a minted one, so what you approve is what
1670
+ deploys. There is no second copy of the runtime to drift from. (`@artblocks/abx-token-api`
1671
+ now exports `ABX_JS` and the inline-safety escapes so the CLI can build that exact
1672
+ document rather than reimplement it.)
1673
+
1674
+ `--shoot <dir>` drives the same server headlessly to PNGs plus a `traits.json` and
1675
+ exits — that's how an agent, which can't open a browser, sees what the creator sees.
1676
+ It also flags the two silent killers: no frame reporting traits (⇒ no marketplace
1677
+ `attributes` on any lane) and identical traits across every seed (⇒ the program
1678
+ isn't reading `abx.tokenData.seed`, so the drop mints N identical tokens).
1679
+
1680
+ Why a live server rather than a screenshot sweep: a still flattens every time-based
1681
+ piece, and `abx.done()` exists precisely because stills need a settle point — so a
1682
+ proof sheet of an animated piece is a set of arbitrary frozen frames presented as
1683
+ the work. Frames render into a fixed 1000×1000 viewport and are scaled to fit their
1684
+ slot, so a program that hardcodes its canvas size is never clipped to its own corner.
1685
+
1686
+ Skill: add **Phase 0**, an explicit authoring phase that puts every deploy decision
1687
+ (hosting, thumbnail, traits, storage, wallet, supply, royalties, name/symbol) off
1688
+ the table until the creator says ship, and points at `abx preview` for the loop. The
1689
+ skill previously went straight from "the creator brought an idea" to "pick a deploy
1690
+ lane", so an agent helping someone _design_ a piece front-loaded infrastructure
1691
+ questions while there was still nothing to look at.
1692
+
1693
+ Skill: also teach CLI resolution — probe project-local (`npx --no-install abx`)
1694
+ before global, install `@artblocks/abx-cli` (not `@artblocks/abx-sdk`, which ships
1695
+ no binary), and default to a per-project install. The skill previously assumed `abx`
1696
+ was already on PATH and gave no bootstrap path at all, so agents improvised — one
1697
+ installed the SDK, then went global unprompted.
1698
+
1699
+ ### Patch Changes
1700
+
1701
+ - 48d96c5: `abx demo` now honors the signing lane instead of silently discarding it. It
1702
+ hard-forced the hot (env-key) lane, so `abx demo --sign` failed confusingly when
1703
+ no key was configured — and, worse, signed from the env key when one _was_
1704
+ present, even though the operator had explicitly asked for their browser wallet.
1705
+ `--sign` (and `--for` to pin the connecting wallet) now work on `demo` exactly as
1706
+ they do on `deploy`.
1707
+
1708
+ `abx demo --unsigned` and `abx demo --dry-run` are now refused with an
1709
+ explanation rather than ignored: both skip the broadcast, and `demo` indexes and
1710
+ serves the contract it just deployed, so there would be nothing to index. Use
1711
+ `abx deploy --unsigned` / `abx deploy --dry-run` for those lanes.
1712
+
1713
+ Also documents the `demo` signing flags in `abx help demo`.
1714
+
1715
+ - Updated dependencies [48d96c5]
1716
+ - @artblocks/abx-token-api@0.1.0-alpha.1
1717
+
1718
+ ## 0.1.0-alpha.3
1719
+
1720
+ ### Patch Changes
1721
+
1722
+ - 6fbb62e: Restructure `abx doctor` for clarity. Two tiers now: PASS/FAIL checks (✓/✗) for
1723
+ things that are working or broken — agent skill (shown first and prominently; a
1724
+ missing/stale skill is a ✗ since agent-driven use is the primary UX), RPC,
1725
+ factory, storage — and an "Optional — depends how you deploy" block (·) for
1726
+ path-dependent setup (signing lane, resolver URL, Arweave key). `⚠` is no longer
1727
+ used for values that are unset-but-fine (it read as noise); it's reserved for a
1728
+ genuine gotcha such as a range-capped-only RPC. The RPC report collapses to one
1729
+ line.
1730
+ - 6fbb62e: Fix the update-check hint to invoke the CLI by its scoped package name
1731
+ (`npx @artblocks/abx-cli@latest <command>`). The bare `npx abx` resolves an
1732
+ unrelated squatted `abx` package on npm, not this CLI, so the old hint pointed
1733
+ users at a command that fails. (Installed users — global or per-project — run
1734
+ `abx` / `npx abx` as before; only the zero-install invocation needs the scoped
1735
+ name.)
1736
+
1737
+ ## 0.1.0-alpha.2
1738
+
1739
+ ### Minor Changes
1740
+
1741
+ - 02fc0e0: Make `abx skill install` agent-aware and strictly version-lock the skill to the CLI.
1742
+
1743
+ `skill install` now installs to the directories every supported agent actually reads: by default
1744
+ both `.claude/skills` (Claude Code) and the neutral `.agents/skills` (Cursor, Codex CLI, Gemini CLI,
1745
+ GitHub Copilot), so one command covers the whole ecosystem. `--agent claude|cursor|codex|gemini|copilot`
1746
+ narrows it to one; `--target <dir>` now writes the skill folder straight under `<dir>`.
1747
+
1748
+ The skill's version now lives in its `SKILL.md` frontmatter (`metadata.version`), stamped at release
1749
+ to equal the CLI version (replacing the old `.abx-skill-version` sidecar). Because the version travels
1750
+ inside the skill file, the drift check finds a stale copy no matter how it was installed — including
1751
+ `npx skills add` — and `abx doctor` reports the skill/CLI version match explicitly. A publish-time gate
1752
+ (and `pnpm ci:version` stamping) keeps the two from ever shipping out of lockstep.
1753
+
1754
+ ## 0.1.0-alpha.1
1755
+
1756
+ ### Patch Changes
1757
+
1758
+ - b5d201f: Add `abx version` and a notify-only update check. On startup `abx` now checks npm at most once a
1759
+ day and, when a newer release is published, prints an upgrade hint to stderr (never stdout, so it
1760
+ never corrupts machine-readable output an agent is parsing). It also nudges to reinstall the agent
1761
+ skill when the installed copy has drifted behind the CLI. Opt out with `ABX_NO_UPDATE_CHECK=1` or
1762
+ `--no-update-check`; it is a no-op in CI and when offline.