feat(spaces): receive write notices so a space write shows up at once
The sweep already kept the index level with a space, but only as fast as its interval. A space authority will tell a registered service the moment a repo in one of its spaces moves, so this registers and listens. The notice makes sync prompt, never correct. Delivery is best-effort by design — the reference host forwards each once from an in-memory queue and logs the failure — so a missed one is still recovered by the sweep, and nothing here is load-bearing. Registration happens inside reconcile, where a credential is already in hand: registerNotify is authenticated with one, so only somebody the authority already admits can subscribe at all. It renews an hour before the 24-hour expiry, because a lapsed registration stops notices silently and the sweep would carry on working with nobody noticing the latency had gone back up. A notice carries no records. It names a repo and a revision, and the revision is deliberately not trusted as the new position — that is read from the repo's own host, which is the source of truth. The endpoint answers before syncing and debounces per repo, because one member writing a gallery sends a notice per record and each is an invitation to read the same repo again. A notice about a space this instance does not already follow is ignored: that decision belongs to config or to the app, never to whoever can reach the endpoint. The forwarded notice needed a verifier of its own. At origin a writer's host signs with iss = the writer and aud = the bare authority DID; forwarded onward the authority re-signs with iss = itself and aud = the registered service identifier including its fragment. The reference PDS's own inbound handler rejects exactly that shape, so there was nothing to borrow. Verifying it meant handling secp256k1, which most did:plc accounts sign with and which WebCrypto does not implement at all. @noble/curves is the one dependency this adds — a primitive rather than a framework, in a codebase that hand-rolls CAR, CBOR, CID, MST and DPoP but should not hand-roll a curve. The lockfile change was checked for dropped platform binaries; nothing was removed. spaces/verify.ts is base58btc and multicodec prefix parsing on top of it, both of which fail closed. hatk publishes a did:web document at /.well-known/did.json so an authority can resolve where to deliver. It carries a service entry and no verification method: a syncer signs nothing — it verifies inbound notices and presents credentials bound to an ephemeral key — so there is no key to publish. The two routes sit ahead of the XRPC catch-all, which would otherwise answer for both NSIDs as an unknown method before either handler was reached. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>