GeezerVison is showing github.com — id(phase-14): Discovery, registry & federation — v3 — outline: federation · Issue #6289 · developing-today/code
id(phase-14): Discovery, registry & federation — v3 — outline: federation #6289DescriptionDiscovery, registry & federation — v3 — outline: federation
Part of the Phase 14 core topic #6277 (Discovery, registry & federation), filed from the next-horizons discussion #1240 per Drew's 2026-11-05 decision. The Phase 14 epic links the whole map.
Scope (rough outline — the core topic's research refines it)
Registries federate: cross-registry mirroring, worlds listed once and found everywhere, cross-server joins via portals (F12.14), relay/proxy joining so member IPs stay private.
Entry condition
The previous step (v2 — outline: the public registry) has its design written, with open questions answered or explicitly deferred to this step.
Deliverable
An updated, refined outline on this issue — tightened scope, open questions, dependencies — and the next-step issue breakdown when this step's turn approaches. If the step has dissolved into the previous one, close this issue with that note (drop rule).
Drew's Phase 14 principles (#1240) govern this step: local-first always; hostable by anyone at any scale; p2p behavior identical to hosted behavior; our hosted instance is the public backstop, never a requirement.
Acceptance criteria
- Entry condition verified on this issue: the previous step's design is written, with its open questions answered or explicitly deferred to this step.
- A refined outline is posted on this issue: tightened scope, open questions enumerated, and dependencies named (native blocked-by relations where a dependency is known).
- The step is checked against Drew's Phase 14 principles from id: next horizons — what comes after Phase 13 (discussion with Drew) #1240 (local-first always; hostable by anyone at any scale; p2p behavior identical to hosted behavior; the hosted instance is a public backstop, never a requirement) and any tension is named in the outline.
- Next-step issue breakdown is filed when this step's turn approaches, or the issue is closed with the drop-rule note if the step has dissolved into the previous one.
Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 6, 2026 Intake review
Fleet monitor intake (§5 pass), 2026-11-05 run.
developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · handed off
- Agent: fleet monitor
- Session / ID: task 15212 · repo-fleet-monitor run 2026-11-26 05:14 CST
- Found via: monitor reconciliation
- Task: Claim evaporated — the holding run ended without complete/park/block and the lease expired; task 15212 is queued unclaimed. Checkpoint stage named in task progress: blocked. Labels reset to the truth: queue/queued + status/needs-triage.
- Expectation: next claiming lane resumes from the named checkpoint stage
- Links: task 15212
developing-today-fleet commented on Nov 26, 2026 agent-note:v1
agent: repo-worker-code
lane: code-j
task: 15212
state: blocked
stage: verified
reason_class: dependency
Triage verdict (lane code-j, 2026-11-26): still valid and verified-blocked. Gate #10712 (v2 public registry endpoint) is OPEN and waits on #10709 (v1 client discovery settings, OPEN). #6288 is CLOSED. Parking on resume condition: #10712 closed. Not a person-owned gate. Refs #14863 developing-today-fleet commented on Nov 27, 2026 Federation outline — refined (2026-11-27; task 15212, lane any-o)
Entry condition — met
The preceding v2 public-registry design is written in doc/2026-11-27_design_id10712_public_registry_endpoint_v2.md, merged by PR #15943 (merge commit 8830078fa235d96bee27b95791f39297cfc8551b). Its §12 resolves all five questions carried from #6288; §13 separates implementation follow-ups from the design. The v1 registry publisher (#10707), client discovery settings and join wiring (#10709; PRs #14671 and #15694), and resolver (#10708) are closed/landed. #10712 remains open for its separately scoped implementation breakdown; that does not leave its design questions unanswered.
Refined scope
Keep this step focused on federation boundaries and private cross-server joining, not on rebuilding registry primitives already delivered:
- Registry-to-registry reach and mirroring: define how an operator discovers/subscribes to other signed registries and how mirror imports, re-signing, tombstones, attribution, and freshness compose across multiple hops. The v2 query layer already unions selected local list copies and preserves per-registry attribution; it does not specify a network federation or automatic propagation protocol. The existing mirror tooling is the starting point, not a reason to assume automatic sync.
- Cross-server join authorization: document how a discovery result leads to a join across independently operated servers. Portal messaging requires mutual admin grants and is already implemented (id: F12.14 portals — cross-world messaging by mutual grant #1068); registry listing must not grant a portal or bypass either server's access controls. Do not reopen portal implementation here.
- Relay/proxy privacy: define the join path when direct connectivity would expose a member's IP, including what the relay learns, who operates it, and behavior when no relay is available. The v1 client setting and resolver path support relay-required behavior; this step should specify federation/inter-server semantics rather than duplicate that client setting.
Open questions for the design step
- Is federation operator-directed (explicit registry subscriptions and mirror imports) only, or is any bounded automatic discovery/refresh required? What prevents loops and unbounded fan-out?
- Which signed objects and sequence/tombstone rules cross a mirror boundary, and how are origin, re-signer, policy, and stale copies shown without implying a global authority?
- What is the minimum join handshake across servers, and how are portal grants, world visibility, and authorization checked at both ends?
- What metadata can a relay observe, who can provide one, and what is the local-first fallback if no suitable relay exists?
- Which pieces are protocol requirements shared by self-hosts and hosted instances, versus optional hosted-service operations?
Dependencies and sequence
- Uses the landed v1 signed-list publisher/mirror and client/resolver foundations (id(phase-14): registry list format + reference publisher and mirroring (#6287 breakdown 3/5) #10707, id(phase-14): discovery resolver — invite link, pkarr, registries in order (#6287 breakdown 4/5) #10708, id(phase-14): client discovery settings — registry subscription, visibility scopes, relay-required (#6287 breakdown 5/5) #10709) and v2 query/display decisions (id(phase-14): Discovery, registry & federation — v2 — design: the public registry endpoint #10712 / PR docs(id): v2 design — public registry endpoint (#10712) #15943).
- Portal behavior is already implemented (id: F12.14 portals — cross-world messaging by mutual grant #1068); compose with its mutual-grant contract, do not block on new portal work.
- id: F12.10 fair scheduling and per-account quotas #1067 remains relevant only to hosted endpoint scheduling/operations; it is not a protocol prerequisite for federation.
- id(phase-14): Discovery, registry & federation — v4 — outline: open discovery at scale #6290 (v4 open discovery at scale) depends on this federation design being written and should consume its explicit trust, attribution, relay, and distribution decisions.
Next-step issue breakdown
The next design packet should split independent questions into these work units, with one synthesis/decision record after them:
- Registry federation and mirror propagation (subscription, import/re-signing, tombstones, freshness, loop/fan-out bounds).
- Cross-server join and portal composition (mutual grants, visibility, authorization at both servers; reuse id: F12.14 portals — cross-world messaging by mutual grant #1068 behavior).
- Relay/proxy threat model and protocol (privacy guarantees, operator trust, failure/fallback behavior; reuse relay-required client behavior).
- Synthesis: choose the smallest interoperable protocol, record local/self-host parity and hosted-backstop boundaries, and identify implementation slices. Keep runtime implementation out of the design issue.
Phase 14 principles check
- Local-first: subscriptions, lists, and joining must work without our public endpoint; any hosted view is convenience only.
- Hostable at any scale: federation and relay choices must be implementable by independent small and large operators, with no privileged key or central index.
- P2P/hosted parity: use the same signed objects, authorization, and join semantics; hosting changes scale and defaults, not protocol behavior.
- Hosted instance as backstop: our services may provide public discovery or relay capacity, but must be replaceable and never mandatory. Tension to resolve in design: optional hosted reachability improves connection success but concentrates operator trust and metadata unless the relay protocol makes those limits explicit.
developing-today-fleet commented on Nov 27, 2026
Triage verification — entry condition MET; prior outline confirmed accurate (lane oc-code-01, task 26123, 2026-11-27)
Fresh re-triage from current state. #6289 is OPEN with no hold labels.
Entry condition — met (acceptance checkbox 1)
The v2 public-registry design is written: doc/2026-11-27_design_id10712_public_registry_endpoint_v2.md, merged via PR #15943 (merge commit 8830078fa235d96bee27b95791f39297cfc8551b, merged 2026-11-27T05:10Z — verified on origin/main). Its §12 decides all five questions carried from #6288 (plus mirror presentation and first-instance scope); §13 holds the implementation breakdown. Foundations landed: #10707 (registry publisher/mirror), #10708 (resolver), #10709 (client discovery settings) are all CLOSED. #10712 stays OPEN only for its separately scoped implementation breakdown — its design questions are answered, so this gate is satisfied.
Prior outline — verified accurate, no rewrite needed
The refined federation outline posted 2026-11-27 (task 15212, lane any-o) checks out against fresh reads: scope (registry-to-registry mirroring, cross-server join authorization, relay/proxy privacy), the five open questions, dependencies (#1068 CLOSED mutual-grant portals — compose, do not reopen; #1067 OPEN but ops-only, not a protocol prerequisite; #6290 v4 consumes this step), the four-unit next-step breakdown proposal, and the #1240 Phase 14 principles check are all coherent and factually correct. Acceptance checkboxes 2–3 are satisfied by that comment.
Remaining
Acceptance checkbox 4 (next-step breakdown filed): the outline proposes four work units + synthesis but no breakdown issues are filed yet. This step's turn has arrived — filing those design issues is the next action, owned by whoever picks up the design packet, not by this triage.
Labels
Removing status/blocked — the #10712 design gate that justified it is cleared. No packet defect, no drop rule (federation is a distinct surface from v1/v2), no Drew decision needed.
Refs task 15212 (prior triage), PR #15943. developing-today-fleet commented on Nov 27, 2026
Next-step breakdown filed (acceptance checkbox 4).
The v3 design step is filed as #16051 (id(phase-14): Discovery, registry & federation — v3 — design: federation protocol), scoped from the verified #6289 outline: mirror propagation, cross-server join/portal composition, relay threat model + protocol, and synthesis. Entry condition recorded met (v2 record PR #15943; #10707/#10708/#10709 landed). All four #6289 acceptance criteria are now satisfied or handed off; remaining work lives in #16051, which #6290 (v4) will consume. developing-today-fleet commented on Nov 28, 2026 Closing as completed — all four acceptance criteria evidenced (lane oc-code-02, 2026-11-28)
Fresh verification against origin/main (eae8a27) this run; no code change — this outline-series step completes via its issue record (the #6288 precedent), so there is no PR and no test oracle. Oracle for each criterion is the cited merged record or closed issue.
- Entry condition. v2 public-registry design written and merged: doc/2026-11-27_design_id10712_public_registry_endpoint_v2.md via PR docs(id): v2 design — public registry endpoint (#10712) #15943 (merged 2026-11-27T05:10Z, commit 8830078); its section 12 decides all five id(phase-14): Discovery, registry & federation — v2 — outline: the public registry #6288 questions, section 13 holds implementation follow-ups. Foundations landed: id(phase-14): registry list format + reference publisher and mirroring (#6287 breakdown 3/5) #10707, id(phase-14): discovery resolver — invite link, pkarr, registries in order (#6287 breakdown 4/5) #10708, id(phase-14): client discovery settings — registry subscription, visibility scopes, relay-required (#6287 breakdown 5/5) #10709 CLOSED; id: F12.14 portals — cross-world messaging by mutual grant #1068 (portals) CLOSED.
- Refined outline posted (2026-11-27, task 15212): tightened federation scope (mirror propagation, cross-server join authorization, relay/proxy privacy), five open questions enumerated, dependencies named. Verified accurate against fresh state 2026-11-27 (task 26123); still accurate today — no rewrite.
- Phase 14 principles check in the outline, tension named (hosted reachability vs. operator-trust/metadata concentration); upheld point-by-point in v3 record sections 1 and 6.
- Breakdown filed: id(phase-14): Discovery, registry & federation — v3 — design: federation protocol #16051 (v3 — design: federation protocol), scoped from this outline — now CLOSED as COMPLETED 2026-11-27 with merged record doc/2026-11-27_design_id16051_federation_protocol_v3.md (PR docs(id): v3 design record — federation protocol (#16051) #16144, merged 2026-11-27T17:11Z; sections 8-9 decide the outline bullets and break out implementation). id(phase-14): Discovery, registry & federation — v3 — design: federation protocol #16051 section 2 records disposition of this outline accept/decide. Drop rule does not apply — federation is a distinct surface, not dissolved into v2.
Follow-ons live in the v3 record section 9 (implementation slices, e.g. open PR #16219 mirror-conformance vectors) and #6290 (v4), which consumes this step. Nothing further is owed by this issue. developing-today-fleet commented on Nov 28, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|