Skip to content

OriginAssignment: no incremental timelocked path to add a second origin — must re-propose (and re-timelock) the whole live set #1107

Closed as not planned

Description

@thiras

Concern

OriginAssignment has no incremental, timelock-scoped path to register a second origin for a registered namespace. Adding an operator to a namespace that already has a live authorized set forces the publisher to re-propose the entire set, which re-runs the timelock and re-validation over the already-approved, already-serving origins. This couples the new origin's addition to the liveness/state of the existing ones and has awkward timing/availability consequences.

Where

  • contracts/src/OriginAssignment.sol:163 — proposeAssignment(namespaceId, operators) takes the full candidate set, not a delta. There is no addOrigin(namespaceId, operator).
  • contracts/src/OriginAssignment.sol:182 — readyAt = block.timestamp + assignmentTimelock is stamped on the whole proposal; re-proposing to add one operator resets the timelock for the entire set (documented as the "auto-clear overwrite" in ADR 011 § Edge cases, lines ~456–457).
  • contracts/src/OriginAssignment.sol:195 — activateAssignment re-checks every operator in the pending set against capacityBond.isActive and the blacklist (OriginAssignment.sol:203-210), including operators that are already live.
  • contracts/src/OriginAssignment.sol:375 — _replaceSet clears the current set and re-adds the full proposed set atomically; there is no path that touches only the delta.

Why it matters

To add origin B to a namespace whose active set is [A]:

  1. Publisher must proposeAssignment(ns, [A, B]) — the already-approved A is dragged back into a fresh assignmentTimelock window (floor 24h, OriginAssignment.sol:40) and re-validated at activation.
  2. If A goes transiently non-isActive or gets blacklisted during that window (e.g., a bond top-up in flight), activateAssignment reverts for the whole proposal (OriginAssignment.sol:205-209) and the pending set auto-clears — so an unrelated hiccup on the existing live origin blocks seating the new one, and the publisher restarts the full timelock cycle.
  3. There is no way to add B on its own timelock without re-subjecting A to review, nor to let A keep serving on its original (already-elapsed) authorization while only B waits out the delay.

Net: the per-namespace authorization is all-or-nothing on a single timelock clock. "Registering a second origin" is not an independently-timelocked incremental operation — it re-timelocks and re-validates the first.

Note on scope

This is about the registered-namespace (namespaceId != 0) propose/ratify flow. The default-open list (namespaceId == 0) is a separate governance-only allow-list with its own addDefaultOpenOperator delta (OriginAssignment.sol:286) and is out of scope here.

Possible directions (not yet decided)

  • Add an incremental addOrigin(namespaceId, operator) that stamps a per-operator readyAt and an activateAddedOrigin that seats only the new operator after its own timelock, leaving existing members untouched.
  • Or: keep the full-set model but at activation skip re-validation for operators already present in the live set (only newly-added operators must pass isActive/blacklist), so an existing origin's transient state can't block adding a second.
  • Either way, confirm against ADR 011 § Origin Assignment Authority whether the all-or-nothing re-timelock is intended; if it is, document the rationale, otherwise update the ADR alongside the contract.

Filed from a code read of OriginAssignment.sol; needs an owner to confirm the intended semantics against ADR 011 before implementation.

Activity

  1. altanoruc commented on Jul 20, 2026

    @altanoruc
    Contributor

    Automated triage note for a later run: please choose between a per-operator incremental add/activate state machine and retaining full-set proposals while skipping revalidation of existing members. Also confirm whether ADR 011 intends the current all-or-nothing re-timelock semantics.

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

    @alpergundogdu
    Contributor

    Superseded by #1491. The vetted-publisher redesign makes origin seating an instant addOrigin delta, so adding a second origin never re-timelocks or re-validates the already-live set — this is exactly the incremental path this issue asked for, delivered by collapsing the assignment flow into publisher vetting.

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