Repository navigation
Description
Pre-launch rule (CLAUDE.md): no backward-compatibility shims, migration paths, or dual-format readers for wire, postcard, ABI, config, or storage changes. A scan of crates/ found several that slipped in. The ALPNs, EIP-712 domains, contracts and the admin_v1 namespace are already at their starting versions and need nothing.
Code to remove or reset
-
crates/node/src/channel_store.rs:203-217, 549, 901-960:drop_superseded_capability_tablesdeletes the oldcapability_v1/capability_v2tables every time the store opens. This is a migration hook. Delete the constants, both drop fns, the call at :549, and the test that injects legacy rows (pool_signer_key_bytes). -
crates/incentive/src/buyer_pool_table.rs:69, 82, 90: tables arebuyer_pool_state_v6/buyer_pool_owner_index_v6andBUYER_SUPPORTED_SCHEMA_VERSION = 4. Reset to_v1/1. Trim the doc text about orphaning rows written under older suffixes. -
crates/common/src/config/mod.rs:521-580:RETIRED_ENV_VARSwarns whenDECDN_DELIVERY_CEILINGis still set, for operators upgrading from an older build. Delete the table and the code that reads it. -
crates/cli/src/commands/node.rs:354-379: the--waitguard against an "older binary" that does not honorwait_admin. Its error message talks about the "legacy SIGTERM-equivalent path" and tells the operator to upgrade the node. MakeDrainResponse.wait_admin_honoreda required field. Keep the refusal only for the case where another caller's drain won the race, and reword the message for that case. -
crates/common/src/admin.rs:drain(req: Option<DrainRequest>)is optional so "older clients that omit params" keep working (:241, :722-735).EvictRequest.dry_runusesserde(default)"for older clients" (:133).EvictResponsedocs say older clients are "unaffected" (:145).origin_kindshas a back-compat note about a "pre-Add support for a[origins]multi-origin table in config allowing ordered fallback across multiple HTTP or filesystem origin backends #284 schema" (:202-213).
Make the fields required, or keep the defaults and drop the compat rationale.
-
crates/node/src/runtime/reload.rs:1269: the "config reload applied" log line is "retained for backwards compatibility with log scrapers". Keep it as a completion marker with a present-tense reason, or delete it. -
crates/node/src/blacklist_watcher.rs:1046: a back-fill for takedowns "discharged by an older build". Check whether the "prior boot's eviction" case still needs it. If it does, reword the comment; if not, delete it. -
crates/incentive/src/store.rs:188-197:CheckpointKeyliterals are "frozen for backward compatibility". Reword: a key only has to stay stable within one build's on-disk format. -
crates/cli/src/commands/origin.rs:56,crates/common/src/cli/origin.rs:70: the "legacyfs:prefix" rejection with a hint is a shim for an old spelling. Delete it.
Wording only (present-tense canon)
- 55
pre-#NNN behaviourcomments across 30 files (rg -n 'pre-#[0-9]' crates contracts/src). This is changelog voice. Describe the current behavior instead. - Other upgrade wording:
crates/common/src/config/types.rs:335: "operators upgrading from the pre-Implement an S3-compatible origin backend (S3/R2/B2/MinIO) as a first-class Origin impl #437 schema". State thedeny_unknown_fieldsreason on its own.crates/config-types/src/hash.rs:7,22: "wire-compatible after the CLI binary-split regression: publisher links cache crate (iroh-blobs/AWS SDK) #578 extraction".crates/node/src/buyer_channel.rs:1593: "an older build's stranded deposit".
Out of scope
ADR 013 in-version forward compatibility: decoders accept trailing bytes, and StreamRequestExt is sent as separate trailing bytes after StreamRequest. This is compatibility designed for after launch, not left over. Collapsing it is an ADR change and needs its own issue if wanted.
Notes
- Do not bump
channel_store'sSUPPORTED_SCHEMA_VERSION. It is already1. - Changing the redb table names orphans existing dev stores. That is expected pre-launch: testnet nodes re-adopt from chain (see the buyer-schema reseed note).
admin.rsis indecdn-common, not the public-api snapshot crates, so no.snapregen should be needed.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity