Repository navigation
Description
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— dropis_originfrom theProbeResponseschema; drop theis_originrules paragraph; remove the phantom-origin slashing clause from the slash-evidence enumeration; removeis_originfrom 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)fromIOriginAssignment. KeepisAuthorizedOrigin(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— dropnamespaceOfAt(bytes32, uint64)fromIPublisherRegistry. Storage simplifies from a per-hash append-only(namespaceId, claimedAt)array to a per-hashuint256[]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
isAuthorizedOriginAtandnamespaceOfAtfrom the off-chain read API table. - Drop the historical-view rows from the reentrancy table.
- Simplify
OriginAssignmentstorage notes (no checkpoint history; no GC pruning function). - Update the deployment ordering note if
SlashJudgereferenced phantom-origin paths.
- Drop
-
adr/architecture.md— verify no role-split prose still references probe-time origin signaling.
Code
-
crates/protocol— removeis_originfrom theProbeResponsepostcard 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/nodeprobe handler — drop the on-probeOriginAssignment.isAuthorizedOriginlookup. 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 usegetOrigins(ns)for discovery and accountability. The contract stays; only its historical views and SlashJudge integration go. - Confirm
PublisherRegistryis still load-bearing: yes — namespaces still scope takedown compliance and origin commitments; onlynamespaceOfAthistorical 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_originend-to-end (ADRs + Rust code + tests). cargo nextest runpasses;pre-commit run --all-filesclean.- 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
- Land #390 (multi-claim + DAO-governed origin authority) as-is.
- Land this unwind in a separate PR scoped to
is_originremoval. - 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
alpergundogdu commentedon May 5, 2026
Superseded — folding the unwind directly into PR #390 instead of doing it as a follow-up. After verifying the Rust code, the
Codesection of this issue was moot: the actualProbeResponsestruct at crates/protocol/src/message.rs:44 only has{nonce, measured_at_unix_ms, node_id, rate_per_mb}—is_originwas never implemented. The Solidity contracts crate is empty, soOriginAssignment/PublisherRegistryhistorical views were never written either. Result: PR #390 is amended in place to never introduce the parts that were destined for removal.alpergundogdu commentedon May 5, 2026
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_originunwind 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.alpergundogdu commentedon May 5, 2026
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.
docs(adr): drop is_origin and phantom-origin slashing
docs(adr): drop is_origin and phantom-origin slashing
docs(adr): add DAO-governed origin assignment authority (#390)