Skip to content

e2e G-ORIGIN-02: origin-assignment + recognition (uses decdn publish assign) #1039

Closed as not planned

Description

@alpergundogdu

Depends on: decdn publish assign CLI + e2e harness.

  • Steps: propose assignment → DAO ratify (advance timelock) → assert getOrigins returns the set and a node in the set is recognized as origin (ties to G-NODE-08).
  • Negative: only namespace owner proposes; pre-ratification the assignment is inert; omitted operator loses recognition.

Spec anchor: internal/Product/gaps-and-e2e-test-specs.md#g-origin-02.

Activity

  1. added
    prio:medium
    kind:test
    on Jun 30, 2026
  2. yigitdot commented on Jul 18, 2026

    @yigitdot
    Contributor

    Triage note for a later run: automated dispatch skipped this because chain-backed origin recognition does not exist yet.

    crates/node/src/dht/origin.rs ships only the OriginDirectory trait plus ConfigOriginDirectory (TOML-driven), with the docstring: "The chain-backed ChainOriginDirectory lands with the on-chain origin-directory follow-up." No daemon path turns on-chain getOrigins/isAuthorizedOrigin into origin recognition — the pull_through_require_authorized_origin gate resolves through the TOML directory.

    Consequence: the assertion that a node is recognized as origin because of its on-chain authorization (and the negative — the same node without it) cannot be distinguished today. Needs ChainOriginDirectory first; that should be its own issue if one does not exist.

    (#1039 additionally needs a GOVERNANCE_ROLE activation fixture that crates/e2e/src/bindings.rs:106 flags as "not yet implemented".)

  3. self-assigned this
    on Jul 20, 2026
  4. thiras commented on Aug 1, 2026

    @thiras
    Contributor

    Closing after a repo audit (2026-08-01, HEAD b2a9651): the journey this describes — propose assignment → DAO ratify, with the assignment inert pre-ratification — no longer exists. #1491 replaced per-assignment ratification with one-time publisher vetting + instant addOrigin.

    The new-model journey is covered end-to-end by crates/e2e/tests/cli_publish.rs (anvil-e2e): unvetted assign fails closed → request-vetting + timelock warp + governance grant → instant assign reflected in getOrigins → node-side recognition via the origin-directory watcher consuming OriginAdded → revoke unseats → partial multi-operator assign. Both blockers named in the triage comment are also gone (ChainOriginDirectory exists at crates/node/src/dht/origin.rs; the governance-grant fixture is what cli_publish.rs uses).

    If the literal "node recognized as origin on the serve path" negative (beyond watcher state) is still wanted, that residue deserves a fresh, narrower issue.

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

Metadata

Metadata

Assignees

Labels

kind:testprio:medium

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions