Repository navigation
Closed
Description
Parent: Deliver Galactic Worker with Local and Fabric delivery for tenant services
Deliverable
A provider-facing connector adapter that uses admitted Worker attachments while keeping the Edge provider contract. It satisfies the connector part of the "Deliver service consumers" phase exit and the parent's revocation criterion.
#1431 decides whether the adapter is a new "galactic-connector" component or the existing galactic-edge. This Task implements whichever it chose.
References:
- Edge agent seam:
cmd/galactic-edgeandinternal/edge/agent/agent.go(Datapath:Register,Unregister,Forget,SyncRoutes). - Claims:
internal/edge/provider/provider.goand the Edge CRDsapi/v1alpha1/edge{provider,attachment,instance,route,service}_types.go. - Contract:
docs/edge/provider-contract.md. - Existing provider and tests:
internal/edge/masque,tests/edgeconformance,examples/edge-providerandtask test:edge-provider.
#970 (MASQUE connector) is related and does not block this Task. MASQUE negotiation and session lifecycle stay with the MASQUE provider.
Work items
- Map admitted provider attachment identity, VPC scope, generation and route gates to Worker claims. Reuse the existing approval, revocation and provider session authority.
- Document branch compatibility for existing galactic-edge entry points and configuration.
- Exercise the adapter through the existing provider interface and an independent fixture. Document where MASQUE, cloud and private-interconnect adapters plug in.
- Expose the adapter's Worker capability state and failure reasons through
internal/edge/diagreasons and metrics.
Dependencies
Blocked by #1431, #1433, #1434, #1435 and #1436. Runs in parallel with #1437, #1438 and #1439.
Acceptance
- With authorized and with denied claims, the fixture proves attach, delivery, withdrawal and replacement.
- Revoking authority while data flows stops delivery at the tenant endpoint, as the existing provider contract requires.
- Replaying a previous owner's claim is rejected.
- The
tests/edgeconformanceMASQUE suite andtask test:edge-providerstill pass. - The evidence separates fixture results from qualification of any individual provider.
- The delivering PR targets
integration/galactic-worker, carries this evidence and saysFixes datum-cloud/galactic#1440. GitHub does not auto-close from a non-default base, so close this issue explicitly when the PR merges and record the PR and merged SHA.
Activity
[-]Adapt galactic-connector to admitted Worker attachments[/-][+]Adapt the provider connector to admitted Worker attachments[/+]privateip commentedon Nov 19, 2026
Triage
This is still open work at the head of
integration/galactic-worker(6e0de371317b0facbcfdf375e37b815e762b9961).cmd/galactic-edgestill wiresagent.PinnedDatapath, which writes host-link rows directly. The Worker side is ready for it: the trusted sources read EdgeAttachment admission, a claim is withdrawn withAuthorizationRevokedwhen admission is lost, and a scope another writer owns reportsScopeOwnedElsewhere.Plan
Datapath. A Worker-backed
agent.Datapathreplaces the direct writes when galactic-edge runs with--worker-socket.Registeropens the link's gate row, then requests arouted_linkclaim on the EdgeAttachment that carries the link galactic-edge created, and brings the link up only after the claim reportsProgrammed.SyncRoutesupdates each claim's prefixes.Unregistercloses the gates and releases the claim.Forgetdrops the gate link row. Generations continue from whatObservereports, so galactic-edge keeps no state of its own.Ownership transfer. A new
ownership.Relinquishclears a scope's owner under its lock and advances the generation. galactic-edge first requests claims for every live link, then gives up each VPC scope. Worker then claims the scope and rewrites the same rows in its first snapshot. Link creation stays with galactic-edge, which writes the VRF enslavement withExclusiveIf. Forwarding gates stay with galactic-edge under their own edge gate scope, with the same fence rules between galactic-edge processes.Authority. Approval, gate decisions and provider leases are unchanged. Worker admits a connector claim only while its EdgeAttachment is
Admittedon this node.Revocation. Two independent cuts. The existing gate close, which carries the provider contract's bound, and Worker's
AuthorizationRevokedwithdrawal of the link's rows.Replay. These are refused: a stale generation from a fenced galactic-edge process; a claim naming a replaced, deleted or unadmitted attachment; a claim pointing at a link stamped with another attachment's ID (new reason
HandoffInterfaceNotOwned); another caller naming the attachment; and a gate write after the gate scope was taken over.Compatibility and rollback. Without
--worker-socket, galactic-edge behaves as today. Rollback: stop Worker, rungalactic-worker handback, then restart galactic-edge without--worker-socket. galactic-edge takes the handed-back scopes over.Contract (D30, proposed).
edge_linkclaim spec, with destinations optional when it is set.routed_linkregisters galactic-edge's link and never creates or deletes it.HandoffInterfaceNotOwned.Diagnostics. New agent reasons for Worker refusals and unavailability, and a capability-state gauge and refusal counter.
Evidence
tests/edgeconformanceMASQUE suite, reported separately from the fixture results.privateip commentedon Nov 19, 2026
Changes from the approved plan
Three implementation details differ from the plan above. None changes the acceptance criteria.
ExclusiveIfon the VPC scope.Registerwaits for Worker to program the link, and Worker's commit needs that same lock, so holding it would deadlock. Instead, galactic-edge claims each attachment before it creates the link. Worker keeps a VPC's host state for as long as a claim holds it, so the VRF cannot be reclaimed while the link is made. Link creation stays galactic-edge's own, like CNI's attachment interfaces.edge-gates-<vpc>with or without--worker-socket. A gate opens, or is confirmed closed, only once no older galactic-edge process holds the VPC's own scope. That covers the switch from gates under the VPC scope.Two additions:
HandoffInterfaceMissing), which keeps "gated before any forwarding program attaches" across the two processes.EdgeAttachment.status.address(trusted sources, D10), soedge_linkcarries only the link name and prefixes.privateip commentedon Nov 21, 2026
Delivered by #1470, merged into
integration/galactic-workeras c1ee280.galactic-edge, run with
--worker-socket, now claims each edge link from Galactic Worker. The PR's evidence comment maps each acceptance item to fixture tests and lab results. Two lab results are tolerated under the epic's merge rule:verify:fabric-api, tracked in #1477, andTestMASQUE/maintenance-during-usein Worker mode, tracked in #1476. #1442 coversTestMASQUEService/node-restartwith the packaged Worker.