Repository navigation
Description
Context — how origin authorization works today
Note (updated after #1396 / #1399): the speculative DHT-prefetch mechanism that originally consumed origin authorization was removed. Origin authorization now gates only the reactive authorized-origin cache-warming path — the
pull_through_require_authorized_origingate (ADR 022 § FIND_VALUE Flow / ADR 037 § Seed-leech caps). The design problem below is unchanged; only the consuming surface was renamed from "prefetch" to "cache-warming gate."
Authorizing an operator as an origin (which gates the authorized-origin cache-warming gate / the origin directory per ADR 022 — not basic paid delivery) is governance-gated on both paths:
- Registered namespace (
OriginAssignment.sol):proposeAssignment(namespaceId, operators)(namespace owner,:163) → waitassignmentTimelock(default 3 days,DEFAULT_ASSIGNMENT_TIMELOCK:47) →activateAssignment(namespaceId)(onlyRole(GOVERNANCE_ROLE),:195), which re-validates each operator is active + not blacklisted. - Global default-open allow-list (namespace 0):
setDefaultOpenAllowlist/addDefaultOpenOperator(GOVERNANCE_ROLE,:274/:286) — instant, network-wide.
So a publisher can only propose an origin for their own namespace; the DAO/Timelock ratifies, and only after the timelock.
Problem
The propose → 3-day → governance-ratify flow was designed for the first, cold assignment of a not-yet-trusted operator. Applying it to routine origin management is too heavy:
- A publisher adding a second/redundant origin for failover shouldn't wait 3 days + a governance vote to add a known-good backup.
- Every authorization needs a
GOVERNANCE_ROLEaction, so it's bootstrap-blocked at genesis (served-bytes voting weight is zero until deliveries settle — same wall assetMinBondand buyback activation).
Root cause: the flow conflates two decisions — (1) is operator B trustworthy as a network origin? (a network/governance question) and (2) does publisher P want B serving their namespace? (the publisher's own call). Both currently go through the same governance ratify.
Proposal A — fast path for vetted / redundant origins
Separate the two decisions. Options (not prescriptive):
- Vetted-pool self-assign (preferred). Vet an operator once into the global default-open allow-list (governance). A publisher can then add any already-vetted operator to their own namespace instantly — no per-namespace timelock, no per-add governance vote — because the network already trusts it. Redundancy = pick another vetted operator. The slow 3-day + governance path remains only for a bespoke, not-globally-vetted operator. Reuses the existing
defaultOpenAllowlistmachinery and sidesteps the genesis bootstrap lock for the common case. - Governance-veto instead of governance-ratify. Flip
activateAssignmentfrom opt-in (DAO must ratify) to opt-out: a pending proposal auto-activates after the timelock, and governance can cancel it during the window. Keeps the reaction window + the auto active/not-blacklisted checks, drops the governance bottleneck and the bootstrap block. - Probationary trust (if redundancy must be instant): a fast-added origin can serve directly right away but its namespace isn't eligible for the authorized-origin cache-warming gate (other nodes won't pull-through-fill from it) until the timelock ripens — graduated trust.
The one guarantee to preserve either way: only governance decides who is network-trusted as an origin; publishers only choose among the trusted.
Proposal B — lower the timelock floor to 1h (needs redeploy)
ASSIGNMENT_TIMELOCK_FLOOR = 24 hours (OriginAssignment.sol:40) is a compile-time constant; setAssignmentTimelock (:326) only accepts [24h, 14d]. Governance can already drop the live timelock to the 24h floor, but faster origin onboarding may want it lower (e.g. 1h). That requires changing the constant → contract change + redeploy (the current Arbitrum Sepolia deployment can't reach 1h via governance alone). Flagging it as a likely follow-up; decide alongside Proposal A whether a low floor is even needed once a vetted-pool fast path exists.
Notes
- Not urgent. Basic paid delivery (client → any node holding the blob) does not require origin authorization, so demos/tests are unaffected; this is about the authorized-origin cache-warming / origin-directory trust surface only.
- Touches ADR 011 (content takedown / origin assignment) and ADR 022 (origin directory / authorized-origin gate); a design decision here should update whichever ADR owns the assignment flow.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
altanoruc commentedon Jul 20, 2026
Automated triage note for a later run: please choose the authorization model among vetted-pool self-assign, governance veto, or probationary trust, and separately decide whether the timelock floor changes. The selected outcome should be recorded in ADR 011/022 before contract work.
alpergundogdu commentedon Jul 28, 2026
Superseded by #1491. Resolved via the vetted-publisher fast path (a variant of Proposal A, keyed on the publisher wallet rather than an operator pool): governance vets a wallet once, after which it self-serves origins instantly with no per-add timelock or vote — also sidestepping the genesis bootstrap block. Proposal B (1h floor) and the operator-pool/probationary variants are recorded as deferred in #1491.
feat(contracts): vetted-publisher instant origins (#1491)