Skip to content

Remove is_origin from ProbeResponse and unwind phantom-origin slashing #399

Closed as not planned

Description

@alpergundogdu

Context

Surfaced during PR #390 review (see comment thread and follow-up discussion on multi-claim). PR #390 introduces DAO-governed origin authority and the is_origin field on ProbeResponse (ADR 005) to enable phantom-origin slashing. After working through what the field actually buys at the protocol layer, none of the original justifications survive close inspection.

PR #390 itself is internally consistent and should land as-is. This issue captures the cleanup that should happen in a separate PR once #390 merges.

Analysis: is_origin does not earn its weight

Thing origin-status might affect Does it actually?
Routing / discovery No — clients query OriginAssignment.getOrigins(ns) for cold-start; once probing they score peers by RTT / rate / reputation. The wire flag is redundant with the on-chain view.
Payment economics No — rate_per_mb is the same for origins and caches; no origin-only flow.
Takedown compliance No — ContentBlacklist is hash-keyed; serving a blacklisted hash is slashable for any node, origin or cache.
Min-redundancy No — enforced contract-side at activation in OriginAssignment. Probe-time signaling is unrelated.
Availability accountability No — watchtowers / reputation services query getOrigins(ns) directly and ping the authorized set; they do not need probe self-attestations.
BLAKE3 verification No — bytes are bytes; clients verify the hash regardless of who served them.
Phantom-origin slashing Self-justifying. The category exists because is_origin exists. Remove the field, no one can lie about being an origin, the attack vector disappears, and the slashing category disappears with it.

The earlier "lightweight client" argument turned out to conflate BLAKE3 verification with origin authorization: a non-EVM client downloading via deCDN does not actually need to know whether a peer is an authorized origin. Their trust primitive is BLAKE3 + payment-channel mechanics; origin/cache status is at most a routing preference, and getOrigins(ns) answers it without a wire field.

Scope of unwind

Documentation (ADRs)

  • adr/005-protocol.md — drop is_origin from the ProbeResponse schema; drop the is_origin rules paragraph; remove the phantom-origin slashing clause from the slash-evidence enumeration; remove is_origin from the v1 baseline signed-field set listed in the ADR 013 reference.
  • adr/011-content-takedown.md —
    • Drop the §"Historical state and slashing evidence" section in its entirety. The OR-search predicate, checkpoint storage, pruning invariants, and re-authorization handling were all in service of phantom-origin SlashJudge; none has another consumer.
    • Drop isAuthorizedOriginAt(uint256, address, uint64) from IOriginAssignment. Keep isAuthorizedOrigin(uint256, address) (still used at runtime by clients/watchtowers).
    • Drop the phantom-origin entry from §"Slashing" (other slashing categories — phantom-announcement, rate-manipulation, blacklisted-content — untouched).
    • Trim §"Permissionless property" to remove the SlashJudge cross-reference.
  • adr/002-content-addressing.md — drop namespaceOfAt(bytes32, uint64) from IPublisherRegistry. Storage simplifies from a per-hash append-only (namespaceId, claimedAt) array to a per-hash uint256[] set (claims still happen, ordering / timestamp no longer load-bearing). Reword §"Multi-claim semantics" to drop the SlashJudge OR-search reference.
  • adr/016-contract-interactions.md —
    • Drop isAuthorizedOriginAt and namespaceOfAt from the off-chain read API table.
    • Drop the historical-view rows from the reentrancy table.
    • Simplify OriginAssignment storage notes (no checkpoint history; no GC pruning function).
    • Update the deployment ordering note if SlashJudge referenced phantom-origin paths.
  • adr/architecture.md — verify no role-split prose still references probe-time origin signaling.

Code

  • crates/protocol — remove is_origin from the ProbeResponse postcard schema. Per ADR 013 § Signed Field Freezing, removing a signed field is also a Tier 3 change. PR docs(adr): add DAO-governed origin assignment authority #390 has not shipped; the freeze hasn't taken effect on a deployed network. The simplest path is to land this unwind before any deCDN node is deployed against a chain that depends on the field. Otherwise we need a v2 ALPN.
  • crates/node probe handler — drop the on-probe OriginAssignment.isAuthorizedOrigin lookup. Cache nodes already serve permissionlessly; no other behavior change at probe time.
  • Any test fixtures referencing is_origin: true/false.

Cross-checks

  • Confirm OriginAssignment (the contract) is still load-bearing post-unwind: yes — publishers still register min-redundancy operator commitments, watchtowers and clients still use getOrigins(ns) for discovery and accountability. The contract stays; only its historical views and SlashJudge integration go.
  • Confirm PublisherRegistry is still load-bearing: yes — namespaces still scope takedown compliance and origin commitments; only namespaceOfAt historical view goes.
  • Confirm no other ADR depends on phantom-origin slashing as a deterrent (grep for "phantom-origin", "phantom origin", "is_origin" across adr/).

Definition of done

  • A single PR that removes is_origin end-to-end (ADRs + Rust code + tests).
  • cargo nextest run passes; pre-commit run --all-files clean.
  • ADR 011 § Slashing still enumerates the remaining categories (phantom-announcement, rate-manipulation, blacklisted-content) without leaving phantom-origin as a forward-reference orphan.
  • Diff is net-negative on lines (this is a simplification, not an addition).

Sequencing

  1. Land #390 (multi-claim + DAO-governed origin authority) as-is.
  2. Land this unwind in a separate PR scoped to is_origin removal.
  3. Optionally amend docs(adr): add DAO-governed origin assignment authority #390 retroactively only if any leftover prose in docs(adr): add DAO-governed origin assignment authority #390 reads strangely once the unwind lands; expect this not to be necessary because phantom-origin is the only thing being removed and docs(adr): add DAO-governed origin assignment authority #390's structural contributions (publisher identity, namespaces, OriginAssignment contract, multi-claim) all stand on their own.

Activity

  1. added
    kind:docs
    on May 5, 2026
  2. alpergundogdu commented on May 5, 2026

    @alpergundogdu
    ContributorAuthor

    Superseded — folding the unwind directly into PR #390 instead of doing it as a follow-up. After verifying the Rust code, the Code section of this issue was moot: the actual ProbeResponse struct at crates/protocol/src/message.rs:44 only has {nonce, measured_at_unix_ms, node_id, rate_per_mb} — is_origin was never implemented. The Solidity contracts crate is empty, so OriginAssignment / PublisherRegistry historical views were never written either. Result: PR #390 is amended in place to never introduce the parts that were destined for removal.

  3. alpergundogdu commented on May 5, 2026

    @alpergundogdu
    ContributorAuthor

    Reopening — sticking with the original sequencing: PR #390 lands as-is with the multi-claim + DAO-governed origin authority machinery, this issue tracks the is_origin unwind as a separate follow-up PR.

    Confirmed during the would-have-been amendment that there is no Rust code to change (crates/protocol/src/message.rs:44 only has {nonce, measured_at_unix_ms, node_id, rate_per_mb}) and no Solidity contracts written yet, so when this lands it will be ADR-only — same scope as PR #390.

  4. alpergundogdu commented on May 5, 2026

    @alpergundogdu
    ContributorAuthor

    Closed (final): team confirmed cleanup happens directly in PR #390 rather than as a follow-up. The unwind is ADR-only (no code or contracts to touch); folding it into the PR that introduced the machinery avoids landing-then-removing.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:docs

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions