carlos / platform Public

console: home side of a link (state, publish, unpublish)

Linked deployments slice 1, Task 7 (spec §5.1-§5.3, §6.2 home shapes,
§6.3).

- Registry: home_link (one row: the link, its credential, the claiming
  box, the agent's state, conn_gen) and home_link_apps (the published
  set). ClaimHomeLink is one conditional update; DeleteHomeLinkApp and a
  retargeting PutHomeLinkApp bump conn_gen in the same transaction.
  Reads are over fresh connections (HomeLinkAppByName per request).
  Fingerprint hashes both tables (the token only as its sha256), not
  state. PutHomeLink refuses a world-readable registry file. Remote
  dispatch for every method.
- Console: /api/cli/link doors behind apiSystemRoller: start (refuses a
  serving console that does not echo purpose link, and an approval
  lacking the link ID, account or an https tunnel URL), status, publish
  (instance apps only; no password gate or import hold; primary ready
  route), unpublish (home set first), rotate, remove (202 pending keeps
  the link; ?local=1 forgets it without calling the serving console).
- linkClient: no redirects, 30 s timeout. No answer carries the token.
- Copy: deck LD-C37 to LD-C49; new drafts in the pending block.
- Closed doors, claim fixtures and probes, census overlay and 9B8 re-pin.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e3743cb9bbbdf154c735a47853abed287c71e02d parent aaf1e53
20 files changed, +2,765 −22
  • docs/superpowers/notes/census-proposal-linked-deployments-slice1.md +20 −5
  • internal/console/claim_invariant_fixtures_test.go +6 −0
  • internal/console/claim_invariant_probes_nonapp_test.go +1 −1
  • internal/console/homelink.go +743 −0
  • internal/console/homelink_test.go +756 −0
  • internal/console/linkclient.go +256 −0
  • internal/console/links_copy.go +66 −0
  • internal/console/routedecls.go +9 −0
  • internal/console/server.go +4 −0
  • internal/console/svcroutes_test.go +11 −2
  • internal/console/testdata/claim-routes.txt +6 −0
  • internal/console/view.go +9 −0
  • internal/provision/linked_deployments_slice1_census_test.go +9 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-linked-deployments-slice1.tsv +38 −8
  • internal/registry/homelink.go +442 −0
  • internal/registry/homelink_test.go +341 −0
  • internal/registry/registry.go +15 −3
  • internal/registry/remote.go +1 −1
  • internal/registry/remote_dispatch.go +31 −0
docs/superpowers/notes/census-proposal-linked-deployments-slice1.md

Loading diff…

internal/console/claim_invariant_fixtures_test.go

Loading diff…

internal/console/claim_invariant_probes_nonapp_test.go

Loading diff…

internal/console/homelink.go

Loading diff…

internal/console/homelink_test.go

Loading diff…

internal/console/linkclient.go

Loading diff…

internal/console/links_copy.go

Loading diff…

internal/console/routedecls.go

Loading diff…

internal/console/server.go

Loading diff…

internal/console/svcroutes_test.go

Loading diff…

internal/console/testdata/claim-routes.txt

Loading diff…

internal/console/view.go

Loading diff…

internal/provision/linked_deployments_slice1_census_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-linked-deployments-slice1.tsv

Loading diff…

internal/registry/homelink.go

Loading diff…

internal/registry/homelink_test.go

Loading diff…

internal/registry/registry.go

Loading diff…

internal/registry/remote.go

Loading diff…

internal/registry/remote_dispatch.go

Loading diff…