Repository navigation
feat: namespace-as-origin-addressing — drop per-hash claims + default-open allow-list (#1394) - #1401
Conversation
…s + default-open allow-list (#1394) Solidity half of the ADR 002/011/016 redesign (PR #1395): - PublisherRegistry: remove claimContent / namespaceOf / hasClaimed / ContentClaimed / AlreadyClaimed + the per-hash claim storage. The registry now records only namespace ownership + lifecycle; hash->namespace is off-chain. - OriginAssignment: remove the entire default-open allow-list surface (setDefaultOpenAllowlist / add / remove, defaultOpenMaxOrigins + bounds, the 3 DefaultOpen* events, DEFAULT_OPEN_NAMESPACE). Namespace 0 is unassignable by construction (ownerOf(0) == 0), so getOrigins(0) is always empty with no special-casing. - ContentBlacklist: appeal path-1 standing drops the hasClaimed check — owning the declared namespace is the only on-chain gate (hash->namespace is off-chain). - IPublisherRegistryStanding: drop hasClaimed (ownerOf only). - Tests re-blessed: remove claim / default-open suites, re-bless InterfaceFreeze (setDefaultOpenAllowlist selector gone), regenerate .gas-snapshot. All 808 contract tests pass; forge build --deny warnings clean. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Rust half of the ADR 002/011/016 redesign, matching the merged contracts (ba18f57). namespace_id is a client→node routing hint consumed exactly once — at the receiving node's origin-directory fallback (the DHT-miss branch). It does not propagate node-to-node (a probed holder already has the blob) and is never needed node-to-origin (backends are opaque, hash-keyed). - protocol: StreamRequest gains `namespace_id: [u8; 32]` (big-endian uint256) + NO_NAMESPACE / has_namespace helpers. Kept `[u8; 32]` (like hash/channel_id) so protocol stays alloy-free; the node layer converts to U256. - node/dht: OriginDirectory re-keyed hash→namespace_id (U256). chain_origin_directory rewritten — cache is namespace→operators; bootstrap replays AssignmentActivated (not ContentClaimed); watcher filter is OriginAssignment-only (3 events); default-open / hash→namespace machinery gone. - node/node_origin: the origin-directory fallback in `discover` takes the namespace; the client-serve path (open_progressive_pull ← window handler) threads req.namespace_id; the generic Origin::fetch (buffered/prefetch, hash- only) passes NO_NAMESPACE. The generic Origin trait + S3/HTTP/FS backends are untouched. - node/handlers: pull_through_require_authorized_origin gate re-keyed to the request namespace. Prefetch's require_authorized_origin gate DROPPED (the FIND_VALUE demand signal is hash-only); prefetch no longer depends on OriginDirectory. Metrics consolidated to decdn_prefetch_acquisitions_total. - incentive: PublisherRegistry / OriginAssignment bindings stripped of the removed surface (claimContent/namespaceOf/DefaultOpen*). - common/config: origin directory keys solely on origin_assignment_address (publisher_registry independent, publish-CLI only) — dropped the both-or- neither pairing; removed prefetch.require_authorized_origin. - cli: `publish claim` subcommand removed (create-namespace + assign remain); client-pull node-to-node pulls send NO_NAMESPACE. Green: cargo build/clippy --all-targets, fmt; nextest across protocol/common/ incentive/client-pull + node lib + node integration. e2e (anvil-gated) test logic reworked in a follow-up commit. Co-Authored-By: Claude Opus 4.8 <[email protected]>
) e2e half of the redesign. The e2e crate carries its own contract ABI copy plus fixtures/tests that referenced the removed surface (claimContent / namespaceOf / hasClaimed / AlreadyClaimed / DefaultOpen*); they compiled against the stale bindings but would revert against the redesigned contracts. - bindings.rs: drop claimContent / namespaceOf / hasClaimed / AlreadyClaimed / addDefaultOpenOperator from the sol! blocks. - chain.rs: drop the claim_content / content_namespaces / add_default_open_operator helpers; getOrigins(0) documented as always-empty. - g_origin_04_default_open.rs: deleted (default-open concept is gone). - g_origin_01_publish.rs: run_publish rewritten from claim/multi-claim/hasClaimed to the surviving `namespace create` flow (mints owned ids; namespace 0 unowned). The namespace-transfer journey is unchanged. - cli_publish.rs: drop the `publish claim` step + namespaceOf assertion; keep namespace-create + assign. - g_node_08_authorized_origin.rs: ratification keys on the namespace directly (getOrigins(namespace)) instead of a hash→namespace lookup; the claim loop is gone. Compiles clean with `--features anvil-e2e` (no warnings). NOTE: g_node_08's positive serving journey (a client fetch succeeds once the namespace's origin is ratified) requires the client to *send* that namespace on its StreamRequest. Client-pull currently sends NO_NAMESPACE (node-to-node needs none), so wiring a client-supplied namespace through client-pull/the fetch CLI is a follow-up before that journey can pass at runtime. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Follow-up doc-comment cleanup: the origin directory replays AssignmentActivated (not ContentClaimed) and resolves a request's namespace via getOrigins, with no hash→namespace lookup. Updates the resumable_watcher checkpoint doc and the G-NODE-08 module/ordering comments accordingly. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…1394) Completes the client send-side of namespace-as-origin-addressing. Clients can now route a cache-miss origin pull to a namespace's DAO-authorized origins; previously every client sent NO_NAMESPACE, so the pull-through gate and origin- directory fallback only ever saw namespace 0. - client-pull: thread `namespace_id: [u8; 32]` through stream_fetch_tracked / stream_fetch_tracked_with_progress / fetch_inner. `stream_fetch` and stream_fetch_shared keep their signatures and pass NO_NAMESPACE (node-to-node loopback helpers), so the ~40 node-to-node test callers are untouched. - cli: `decdn fetch --namespace <id>` (rejects 0; absent => NO_NAMESPACE = best-effort cache/DHT). Threaded through fetch_blob + ChunkFetcher so a DECDNMAN manifest's chunk pulls inherit it. `bundle pull` sends NO_NAMESPACE. - e2e: ClientFixture `fetch`/`fetch_once` take a `namespace_id: U256`; g_node_08 now drives the real end-to-end journey — the client sends namespace 0 pre- ratification (gate refuses) and the ratified namespace post-ratification (gate resolves the authorized origin and serves). Other e2e fetch callers pass U256::ZERO. Green: cargo clippy --all-targets, fmt; nextest common (496) + client-pull + node client_loopback (45); e2e compiles --features anvil-e2e. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Warning Review limit reached
Next review available in: 26 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (7)
WalkthroughThe change removes on-chain content-claim and default-open origin mechanisms, introduces namespace identifiers into fetch routing and pull-through authorization, and updates origin-directory resolution, configuration, bindings, CLI commands, tests, and gas snapshots accordingly. ChangesNamespace-based contract and ABI surface
Protocol, CLI, and client propagation
Origin directory and pull-through resolution
Validation and measurements
Estimated code review effort: 4 (Complex) | ~60 minutes Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
There was a problem hiding this comment.
Pull request overview
Implements the namespace-as-origin-addressing redesign (issue #1394): client requests now carry a (namespace_id, hash) pair, nodes route cache-miss origin pulls by namespace via OriginAssignment, and the per-hash on-chain claim + default-open allow-list surfaces are removed across Rust, contracts, CLI, and e2e fixtures.
Changes:
- Added
StreamRequest.namespace_id(withNO_NAMESPACE+ helper) and threaded it through client fetch, node client handler, and test fixtures. - Reworked the node origin-directory and gating model to be namespace-keyed; removed prefetch’s authorized-origin gate and consolidated prefetch acquisition metrics.
- Simplified Solidity surfaces by removing per-hash claim and default-open allow-list mechanisms; updated bindings, interface-freeze tests, and gas snapshots accordingly.
Reviewed changes
Copilot reviewed 55 out of 55 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| crates/protocol/src/client.rs | Adds namespace_id to StreamRequest, plus NO_NAMESPACE and helper API. |
| crates/node/tests/origin_range_pull.rs | Updates test StreamRequest construction to include NO_NAMESPACE. |
| crates/node/tests/node_to_node_pull_through.rs | Updates test StreamRequest construction to include NO_NAMESPACE. |
| crates/node/tests/node_origin_pull.rs | Updates origin-directory test wiring and progressive pull calls for namespace-keyed directory. |
| crates/node/tests/dht_loopback.rs | Adjusts prefetch tests/metrics expectations after gate and metric changes. |
| crates/node/tests/client_loopback.rs | Threads NO_NAMESPACE through loopback client requests and tracked fetch helpers. |
| crates/node/src/runtime/reload.rs | Updates reload-warning text to reflect removed prefetch config knob. |
| crates/node/src/runtime/mod.rs | Removes publisher-registry requirement for origin directory; updates gate-armed warning logic; updates prefetch engine wiring. |
| crates/node/src/prefetch/mod.rs | Removes origin-directory dependency from prefetch engine; simplifies decision call chain. |
| crates/node/src/prefetch/decision.rs | Removes authorized-origin gate from prefetch policy and updates skip reasons/tests accordingly. |
| crates/node/src/node_origin.rs | Threads namespace into discover fallback; ensures hash-only pulls use NO_NAMESPACE behavior. |
| crates/node/src/metrics.rs | Consolidates prefetch acquisition metrics into a single counter and removes origin-gate rejection metric. |
| crates/node/src/handlers/dht.rs | Updates metrics call site for simplified prefetch acquisition recording. |
| crates/node/src/handlers/client/window.rs | Converts request namespace_id bytes to U256 for namespace-keyed fallback in progressive pulls. |
| crates/node/src/handlers/client/mod.rs | Updates pull-through authorized-origin gate to be namespace-based and adjusts tests. |
| crates/node/src/handlers/client/dispatch.rs | Routes pull-through authorized-origin gate check on request namespace (not hash). |
| crates/node/src/dht/origin.rs | Re-keys OriginDirectory trait to namespace_id: U256; updates docs and implementations. |
| crates/node/src/chain_events/resumable_watcher.rs | Updates watcher cursor docs to reference AssignmentActivated projection. |
| crates/node/src/chain_events/backfill.rs | Updates backfill docs to reference AssignmentActivated replay. |
| crates/incentive/src/store.rs | Renames origin-directory watcher cursor doc to AssignmentActivated. |
| crates/incentive/src/publisher_registry.rs | Updates bindings/docs: registry is namespace lifecycle only (no hash claims). |
| crates/incentive/src/origin_assignment.rs | Updates bindings/docs: removes default-open allow-list events/surface. |
| crates/e2e/tests/smoke.rs | Updates client fetch call to pass namespace id parameter. |
| crates/e2e/tests/slash_appeal.rs | Updates client fetch call to pass namespace id parameter. |
| crates/e2e/tests/g_origin_04_default_open.rs | Removes obsolete default-open migration journey. |
| crates/e2e/tests/g_origin_01_publish.rs | Updates journey to namespace create/transfer only; removes claim/multi-claim assertions. |
| crates/e2e/tests/g_node_08_authorized_origin.rs | Updates authorized-origin journey to namespace-based routing (no per-hash claim). |
| crates/e2e/tests/g_node_04_blacklist_compliance.rs | Updates client fetch calls to pass namespace id parameter. |
| crates/e2e/tests/g_gov_02_rate_bounds.rs | Updates client fetch calls to pass namespace id parameter. |
| crates/e2e/tests/cli_publish.rs | Updates publish e2e to namespace create + assign only (no claim). |
| crates/e2e/src/client.rs | Threads namespace id into tracked fetch helpers and wire-tap StreamRequest. |
| crates/e2e/src/chain.rs | Removes default-open and claim helpers; updates origins docs. |
| crates/e2e/src/bindings.rs | Removes claim-related functions/errors from PublisherRegistry bindings; removes default-open function from OriginAssignment. |
| crates/common/src/config/types.rs | Updates config docs: origin directory depends only on origin_assignment_address; prefetch config removes require_authorized_origin. |
| crates/common/src/config/resolved.rs | Removes resolved prefetch require_authorized_origin; updates blockchain docs. |
| crates/common/src/config/mod.rs | Updates config resolution logic: no longer enforces both-or-neither origin/publisher addresses; removes prefetch knob defaults/tests. |
| crates/common/src/cli/publish.rs | Removes publish claim subcommand and related parsing/tests; updates namespace parsing docs. |
| crates/common/src/cli/mod.rs | Removes ClaimArgs re-export from CLI module. |
| crates/common/src/cli/fetch.rs | Adds --namespace to decdn fetch with validation rejecting 0. |
| crates/client-pull/src/lib.rs | Threads namespace_id through tracked fetch path; keeps node-to-node helpers defaulting to NO_NAMESPACE. |
| crates/cli/src/commands/publish.rs | Removes publish claim implementation/output/tests; updates docs for namespace-only lifecycle + assign. |
| crates/cli/src/commands/fetch.rs | Threads namespace through fetch plumbing and chunk fetching. |
| crates/cli/src/commands/config.rs | Updates default config comments: origin directory from OriginAssignment; removes prefetch origin-gate doc. |
| crates/cli/src/commands/bundle_pull.rs | Uses NO_NAMESPACE for bundle chunk pulls (namespace support deferred). |
| contracts/test/PublisherRegistry.t.sol | Removes claim-related tests; updates namespace-0 comment wording. |
| contracts/test/OriginAssignment.t.sol | Removes default-open allow-list tests and gas guards; removes unused console import. |
| contracts/test/InterfaceFreeze.t.sol | Removes interface-freeze assertion for deleted default-open selector. |
| contracts/test/ContentBlacklist.t.sol | Updates publisher standing tests: ownership only, no hasClaimed check. |
| contracts/src/PublisherRegistry.sol | Removes claim storage/functions/events/errors; registry becomes namespace lifecycle only. |
| contracts/src/OriginAssignment.sol | Removes default-open allow-list surface/state/events; clarifies namespace 0 semantics. |
| contracts/src/interfaces/IPublisherRegistryStanding.sol | Removes hasClaimed from standing interface; updates docs for ownership-only standing. |
| contracts/src/interfaces/IPublisherRegistryOwnership.sol | Updates docs for namespace 0 meaning. |
| contracts/src/ContentBlacklist.sol | Updates publisher standing logic/docs to ownership-only gate. |
| contracts/.gas-snapshot | Regenerates gas snapshot after contract surface changes. |
Comments suppressed due to low confidence (2)
crates/node/tests/node_origin_pull.rs:1504
- This
HashMap::from([ ... ])uses the sameU256::ZEROkey twice; the first entry is overwritten immediately. It also forces an unnecessaryproviders.clone(). Since the directory is namespace-keyed now, this should be a single entry.
crates/node/tests/node_origin_pull.rs:9434 - This origin-directory map has duplicate
U256::ZEROkeys; the first entry is overwritten by the second, soproviders.clone()is wasted. Use a single entry for the namespace.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| let mut dir = HashMap::new(); | ||
| for h in hashes { | ||
| dir.insert(DhtHash::from_bytes(*h.as_bytes()), providers.to_vec()); | ||
| for _h in hashes { | ||
| dir.insert(U256::ZERO, providers.to_vec()); | ||
| } |
| fn sample_request() -> StreamRequest { | ||
| StreamRequest { | ||
| hash: [1u8; 32], | ||
| namespace_id: [3u8; 32], |
…origin-impl-7f198d # Conflicts: # crates/cli/src/commands/config.rs # crates/common/src/config/mod.rs # crates/common/src/config/resolved.rs # crates/common/src/config/types.rs # crates/node/src/dht/chain_origin_directory.rs # crates/node/src/dht/origin.rs # crates/node/src/handlers/client/dispatch.rs # crates/node/src/handlers/dht.rs # crates/node/src/metrics.rs # crates/node/src/prefetch/decision.rs # crates/node/src/prefetch/mod.rs # crates/node/src/runtime/mod.rs # crates/node/src/runtime/reload.rs # crates/node/tests/dht_loopback.rs # crates/node/tests/node_origin_pull.rs
Contracts coverageLine coverage: 89.58% (2631/2937 lines) |
Gas snapshotNo gas changes vs base. |
…ace_id (#1394) Adds namespace_id / NO_NAMESPACE / has_namespace to the frozen public API snapshot, matching the redesign. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Coverage reportTotal: 81.24% (was 81.13%, ▲ +0.11%) — 54100/66593 lines
History
|
…defenses, comment/test cleanup Behavioral: thread the served request's namespace onto the progressive client-serve node-to-node leg (client-pull open_progressive_pull + node_origin open_from_candidate[s]) so a directory-discovered cold origin's pull-through gate resolves and it fills from its own backend. Previously the leg was hardcoded to NO_NAMESPACE, so an armed origin refused content it was the authorized origin for. Buffered/warm/prefetch paths correctly stay NO_NAMESPACE. New test node_origin_pull::a_progressive_pull_routes_the_ fallback_on_the_request_namespace proves the namespace is load-bearing (resolves under a non-zero namespace, resolves nothing under NO_NAMESPACE), closing the prior symmetric-ZERO test blindness. Invariant defense: guard U256::ZERO at both ChainOriginDirectory cache insert sites (bootstrap_cache, resync_namespace) so "ns 0 authorizes nothing" is type-local, not merely trusted from the ABI-decoded event field; add the on-chain OriginAssignment.t.sol test_namespaceZero_isUnassignableAndHasNoOrigins. Observability: meter undecodable-log decode-skip arms so an ABI-drift storm is visible, not warn-log-only. Cleanup: rewrite the stale default-open pull_origin_gate comment (ns 0 now hard-denies); fix the "only consumer"/"does not propagate" namespace comments; remove dead StreamRequest::has_namespace() (re-bless public_api snapshot); drop the vestigial origin::Hash re-export; correct metrics/config/protocol/e2e doc staleness; add parse_fetch_namespace_id test; delete the orphan root .gas-snapshot; regenerate contracts/.gas-snapshot for the new test. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
`capture_delivery_wire` hardcoded `NO_NAMESPACE`, so the g_node_08 wire-tap
fetched a backend-only blob under namespace 0. Under namespace-as-origin-
addressing the authorized-origin gate keys on the request namespace, so that
request is refused (`NotFound`) — the tap captured a refusal and
`assert_backend_never_on_the_wire` panicked ("tapped delivery was refused").
Add a `namespace_id` parameter and pass the DAO-ratified namespace at the call
site, matching the `fetch`/`fetch_once` paths the PR already threaded. The
origin backend stays hash-keyed and opaque (never sees the namespace).
Fixes the `anvil e2e` CI failure on this branch.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Follow-up from the PR review. No behavior change beyond docs/tests. - metrics.rs: the review commit's scrub left "default-open set" / "claimed hashes" / "newly-claimed namespace" / "activate/add … remove" language on the later lines of doc blocks whose first lines it did update; reconcile them with the namespace-as-origin model (matching chain_origin_directory's wording). - metrics.rs: clarify serve_stream_rejected_unauthorized_origin — the gate scopes on the namespace the requester names, not proven hash membership. - cli/run.rs: --origin-assignment-address / --publisher-registry-address help text no longer claims the removed both-or-neither pairing. - PublisherRegistry.sol: "default-open id 0" -> "no-namespace id 0". - client-pull: scope the "node-to-node pulls pass NO_NAMESPACE" comment to the callers that reach fetch_inner (the cold-origin leg carries a real namespace). - chain_origin_directory: add namespace_zero_event_never_seats_operators, covering the resync_namespace ns-0 guard that keeps the pull-through gate closed for NO_NAMESPACE even under decode drift. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Implements #1394 — the code half of the namespace-as-origin-addressing redesign ratified in #1395 (ADRs 002/005/011/016/022). The namespace is now the unit of origin addressing: a
cdn/client/v1request carries(namespace_id, hash), and the node routes on the namespace to that namespace's DAO-authorized origins. There is no per-hash on-chain claim and no default-open allow-list.Design: namespace_id is a client→node hint, consumed once
namespace_idis a routing hint the client supplies, consumed exactly once — at the receiving node's origin-directory fallback (the DHT-miss branch ofdiscover). It does not propagate:has_blob: trueto a probe already holds the bytes; the requester pulls by hash. No namespace on that leg.Consequences: the generic cache
Origintrait and the S3/HTTP/FS backends are untouched; only the node-to-node discovery entry and the client-facing fetch path carry the namespace.What changed
Contracts (
ba18f57)PublisherRegistry: removedclaimContent/namespaceOf/hasClaimed/ContentClaimed/AlreadyClaimed+ the per-hash claim storage. It records only namespace ownership + lifecycle.OriginAssignment: removed the entire default-open allow-list surface (setDefaultOpenAllowlist/add/remove,defaultOpenMaxOrigins+ bounds, 3DefaultOpen*events,DEFAULT_OPEN_NAMESPACE). Namespace 0 is unassignable by construction (ownerOf(0) == 0), sogetOrigins(0)is always empty — no special-casing.ContentBlacklist: appeal path-1 standing drops thehasClaimedcheck (owning the declared namespace is the only on-chain gate; hash→namespace is off-chain). Path numbering unchanged.InterfaceFreezere-blessed (setDefaultOpenAllowlistselector gone),.gas-snapshotregenerated.Rust core (
7988698)protocol:StreamRequest.namespace_id: [u8; 32](big-endian uint256) +NO_NAMESPACE/has_namespace. Kept[u8; 32](likehash/channel_id) soprotocolstays alloy-free; the node layer converts toU256.node/dht:OriginDirectoryre-keyed hash→namespace.chain_origin_directoryrewritten — cache isnamespace → operators, bootstrap replaysAssignmentActivated(notContentClaimed), watcher filter isOriginAssignment-only (3 events).node/handlers+node_origin: the pull-through authorized-origin gate + the origin-directory fallback key on the request namespace. Prefetch'srequire_authorized_origingate is dropped — theFIND_VALUEdemand signal is hash-only and carries no namespace; prefetch no longer depends onOriginDirectory. Metrics consolidated todecdn_prefetch_acquisitions_total.incentive: ABI bindings stripped of the removed surface.common/config: the origin directory keys solely onorigin_assignment_address(dropped the both-or-neither pairing withpublisher_registry_address, which is now publish-CLI-only); removedprefetch.require_authorized_origin.cli:publish claimsubcommand removed (create-namespace + assign remain).Client-namespace (
7c42796)decdn fetch --namespace <id>(rejects 0; absent ⇒NO_NAMESPACE= best-effort cache/DHT). Threaded throughclient-pullstream_fetch_tracked/_with_progress/fetch_inner+fetch_blob+ChunkFetcher(aDECDNMANmanifest's chunk pulls inherit it).stream_fetch/stream_fetch_sharedkeep their signatures and passNO_NAMESPACE, so the ~40 node-to-node test callers are untouched.e2e (
356b616,dfbe80b)g_origin_04_default_open; rewroteg_origin_01/cli_publish/g_node_08to the create+assign flow.g_node_08now drives the real journey end-to-end: the client sends namespace 0 pre-ratification (gate refuses) and the ratified namespace post-ratification (gate resolves the authorized origin and serves).Verification
cargo build/clippy --workspace --all-targets,cargo fmt --check— cleancargo nextest: common (496), client-pull, node lib (693), node integration (client_loopback 45, node_origin_pull + node_to_node_pull_through 65, dht_loopback)FOUNDRY_PROFILE=ci forge build --deny warnings, gas snapshot regenerated--features anvil-e2eclaimContent/namespaceOf/hasClaimed/default-open/ContentClaimed/require_authorized_origin)Notes
namespace_id: U256; the impl uses[u8; 32]big-endian to keep theprotocolleaf crate alloy-free (defensible illustrative difference; documented in code).bundle pullsendsNO_NAMESPACE(a--namespacefor bundles is a small future follow-up).Closes #1394.
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Changes
publish claimworkflow; content-to-namespace associations are handled off-chain.Bug Fixes