Skip to content

OriginAssignment: fast path for vetted/redundant origins + lower the 24h timelock floor #1113

Closed as not planned

Description

@alpergundogdu

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_origin gate (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) → wait assignmentTimelock (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_ROLE action, so it's bootstrap-blocked at genesis (served-bytes voting weight is zero until deliveries settle — same wall as setMinBond and 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):

  1. 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 defaultOpenAllowlist machinery and sidesteps the genesis bootstrap lock for the common case.
  2. Governance-veto instead of governance-ratify. Flip activateAssignment from 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.
  3. 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.

Activity

  1. altanoruc commented on Jul 20, 2026

    @altanoruc
    Contributor

    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.

  2. added this to the v0.1 milestone on Jul 28, 2026
  3. alpergundogdu commented on Jul 28, 2026

    @alpergundogdu
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions