Repository navigation
Description
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 noaddOrigin(namespaceId, operator).contracts/src/OriginAssignment.sol:182—readyAt = block.timestamp + assignmentTimelockis 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—activateAssignmentre-checks every operator in the pending set againstcapacityBond.isActiveand the blacklist (OriginAssignment.sol:203-210), including operators that are already live.contracts/src/OriginAssignment.sol:375—_replaceSetclears 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]:
- Publisher must
proposeAssignment(ns, [A, B])— the already-approved A is dragged back into a freshassignmentTimelockwindow (floor 24h,OriginAssignment.sol:40) and re-validated at activation. - If A goes transiently non-
isActiveor gets blacklisted during that window (e.g., a bond top-up in flight),activateAssignmentreverts 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. - 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-operatorreadyAtand anactivateAddedOriginthat 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
altanoruc commentedon Jul 20, 2026
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.
alpergundogdu commentedon Jul 28, 2026
Superseded by #1491. The vetted-publisher redesign makes origin seating an instant
addOrigindelta, 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.feat(contracts): vetted-publisher instant origins (#1491)