broker: subdomain-issuance — ClaimSubdomain / PointSubdomain go real on Matou's zone (terms ruling first) #221
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Founding spec #11 (ADRs 0047/0048/0049 — the Matou-side service). Contract-gap sweep 2026-07-30, filed on Ben's request.
What's true today
broker/internal/broker/broker.go,Version = "0.0.0-skeleton").ClaimSubdomain/PointSubdomainhave no real implementation, and the production helper wiring fails loud by design:app/helper/cmd/helper/wiring_prod.goleaves the broker port nil — "deferred business decision — the rental broker's terms (ADR 0047/0048)".<slug>.matou.nzpath (P1-S5 claim + reserve, P1-S10 point-at-gateway) does not work today; only the own-domain and private paths are real. The matou.nz zone-with-API is Matou's standing obligation (ADR 0013 — DNS hosting only, never ingress), and rented-gateway provisioning (ADR 0047) sits behind the same terms decision.What to build
The ruling first — this is the deferred business decision, Ben's to make: the broker's terms. Pricing (if any) for subdomain issuance and for rented gateways, what Matou commits to operationally (zone availability, record turnaround), and the eject-route guarantees (ADR 0049 — the own-VPS path stays the exit).
Then the implementation (splittable to
ready-for-agentonce ruled): the v1 broker capabilities per ADR 0049 — slug claim-check + reservation, record CRUD on the matou.nz zone,PointSubdomainonce the gateway IP is known — running on Matou infrastructure, never inside a community's fleet; the helper's production wiring goes real and the fail-loud stub retires.Acceptance criteria
ready-for-agent<slug>.matou.nzreserves, points at the gateway once reachability passes (ADR 0049's gate), and the helper wiring no longer fails loudTask manifest
Blocks
Nothing in-repo — founding's own-domain and private paths are unaffected.
Ruled by Ben, 2026-07-30 — free while alpha. Subdomain issuance is free during alpha, Matou's commitment is best-effort (no SLA), terms revisited before any paid/GA offering; rented-gateway pricing stays deferred; the eject route stays first-class. Recorded as ADR 0114 (
docs/adr/0114-broker-terms-free-while-alpha.md). The build is now fully specified (ADR 0049 v1 capabilities against the matou.nz zone) — flipping this ticketready-for-human→ready-for-agent.Implemented in
201a7d9(on origin/main). The terms gate was already ruled (ADR 0114 — subdomain issuance free while alpha, best-effort, rentals deferred), so this landed the build.Broker module (
broker/internal/broker/): grew from the 12-line skeleton to real v1 capabilities (ADR 0049) —Registry(concurrency-safe reservation ledger: slug claim-check + reserve, DNS-label validation, reserved-infra names never issued), aZoneport for record CRUD on the matou.nz zone with the real key-systems binding (KeySystemsZone, the only working matou.nz DNS API per the lab-dns facts) plus an honestUnconfiguredZonethat fails loud (ADR 0100), and anIssuerwhosePointrefuses any never-claimed/foreign host and surfaces every zone-write failure. HTTP APIPOST /v1/subdomains/{claim,point}; rented gateways stay off it (ADR 0114).main.goserves it; the live matou.nz record write is a matou-ops boot injection (the zone-with-API is ADR 0013s standing obligation).App side (
internal/brokerclient.Client): the realfounding.BrokerClientover HTTP —ClaimSubdomain/PointSubdomainreal;Offer/Renthonestly unavailable-in-alpha (a typedBrokerError, never a fabricated rental — the eject/own-domain path stays first-class).Wiring: the helpers production broker fail-loud stub retired —
foundingPortsnow wiresWithBroker(brokerclient.New(...))and the boot seam test port map flips broker → real.Seams:
broker/internal/broker/{broker,http,zone}_test.go,internal/brokerclient/client_test.go, and the helper boot seam test (wiring_test.go). No Go toolchain in the Sandcastle sandbox (#198) — verified by careful review. STATUS.md updated in the same commit.