Repository navigation
Conversation
…cons Pins @atproto/space, oauth-scopes and dev-env to the 2026-11-05 alpha, cut from permissioned-data-alpha@704b9e2. Re-vendors the space, memberspace, personalspace and managedspace lexicons (simplespace is gone upstream) with a new scripts/vendor-lexicons.mjs, so the weekly sync's vendor step is one command. @atproto/space now depends on the alpha lex-cbor/lex-data/star builds, each of which has an outranking broken release (bare 0.0.0, or star's corrupt 0.0.0-stage). Sibling pins no longer rescue npm installs, so the published spaces and conformance packages keep every alpha @atproto package in devDependencies for tsdown to bundle, and @getcirrus/pds drops its direct @atproto/space dependency and the common pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
Rewrites the spaces engine and its PDS integration for the upstream
alpha cut from permissioned-data-alpha@704b9e2:
- Space credentials bind to a P-256 did:key and are presented with the
Atproto-Space-Credential scheme, an Atproto-Space-Audience header and
an HTTP message signature over both. DPoP is gone. Credentials are
checked against the audience, their space and revocations received
through notifyCredentialRevoked.
- getSpaceCredential takes credentialKid, delegationToken and
clientAttestation in the body, issues public-read credentials without
a delegation token, and answers a refused user as SpaceNotFound.
- Commits carry no signature: {ver, repo, space, rev, data}. Reads that
return a commit or record are authenticated with a MAC derived by ECDH
against the account's new #atproto_kem key (BadSpaceMac when a
credential doesn't ask for one).
- getRepo streams a STAR archive in record-path byte order, fencing
against concurrent writes instead of buffering the whole repo.
- simplespace is replaced by personalspace, memberspace (per-member
read/write, public read/write, allowed apps) and managedspace policies
under com.atproto.space.{create,update,delete,get}Space and
com.atproto.memberspace.*, with optional published policy and member
records in the authority's repo.
- Writers are sequenced by space revision (listRepos cursor, spaceRev
and prevSpaceRev in forwarded notifyWrites, FutureRev), and a repo
host retries its notifyWrite to a foreign authority for 24 hours,
coalesced to the newest revision.
- New: clearRecords, removeWriter, importRepo, exportSpaceMeta and
importSpaceMeta. Imported records' blobs are promoted when uploaded.
- The DID document drops #atproto_space_host and publishes
#atproto_kem; getRecommendedDidCredentials carries it through a
migration. 'pds spaces kem' creates the key and, for did:plc, can
publish it via the PDS's own PLC signing.
The space DO schema version is bumped: existing space data refuses
until 'pds spaces reset', per the alpha policy. @atproto/space and its
alpha dependencies are bundled into @getcirrus/spaces, whose public
types no longer reference any @atproto package.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
… process Updates the spaces concepts and enable guides for credentials signed with HTTP message signatures, MAC-authenticated space data and the #atproto_kem key, the baseline policies and migration, with upgrade steps from the August alpha. Records the alpha sync process in the spaces plan, where it can be found next time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
…tion Verifying a delegation token records its replay key in the space DO, so a well-formed request naming any foreign space would otherwise create an empty DO for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
…ogress) Snapshot of the conformance suite rewrite while it is still under way: HTTP-signature credentials, MAC verification, STAR archives, the baseline policies and the new methods. Not yet green; the finished version, in-process runners and matrix recalibration follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
…n progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
…ecalibrate Rewrites the check catalogue (24 → 92 checks) for HTTP-signature credentials, MAC-authenticated commits and records, STAR archives, the baseline policies, writer sequencing, migration and revocation. Coverage now requires zero gaps against the vendored lexicons, with explicit, stale-checked exemptions. The reference matrix runs every capability against the 1105 reference PDS (89 pass, 3 pinned divergences) and pins the alpha build it was calibrated on. apps/check follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
…x what it found Rewires both in-process runners to the 2026-11-05 suite. The space-routes run now offers every capability except the PDS-level ones: harness did:key identities, real service-auth verification, and an in-process syncer inbox that also receives the space DO alarm's deliveries. The PDS run adds the #atproto_kem discovery check and the MAC'd self-flow. Fixes the suite turned up: - getBlob answered 503 without blob storage before checking the space and the reference, instead of SpaceNotFound / BlobNotFound. - Managing another authority's space answered SpaceNotFound rather than the declared NotSpaceOwner. - listSpaces moves into the engine, which owns the space index. - The PDS resolved its own DID's #atproto_pds by fetching its DID document, which a Worker can't do for its own hostname, so a syncer registering the operator's own service failed on a deployed PDS. Also drops knip ignores and devDependencies left over from the 0818 pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
pdscheck | 9452fe4 | Nov 13 2026, 06:38 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
cirrusdocs | 9452fe4 | Commit Preview URL Branch Preview URL |
Nov 13 2026, 06:39 AM |
…cons Pins the 2026-11-12 alpha, cut from permissioned-data-alpha@b27a037 (the 20261112203312 build has identical code). Re-vendors the space lexicons: getSpaceCredential becomes authorizeSpaceSync, listRepos listWriters, notifyWrite notifyRepoUpdate, putMember/removeMember the batched putMembers/removeMembers and checkUserAccess checkAccess; registerNotify, unregisterNotify and notifySpaceDeleted give way to confirmRegistration and notifySpaceUpdate. @atproto/lex-rpc and @atproto/oauth-resolver now publish a corrupt 0.0.0-stage, and bsync and lex-password-session a broken bare 0.0.0, all outranking the alpha range; they join the workspace overrides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
Renamed and batched methods (authorizeSpaceSync, listWriters, notifyRepoUpdate, putMembers/removeMembers, checkAccess), token-based notification registration confirmed by the syncer, sequenced writer removals, HTTP message signature MACs, STAR media type and the renamed error codes. oauth-scopes: spaceType parameter and title declarations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
…for 1112 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
106 checks; syncer inbox serves confirmRegistration and notifySpaceUpdate via createSyncerInbox. Matrix recalibrated: 103 pass, 2 pinned divergences, registration-expired slow and run by hand. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
node-version: latest now resolves to a Node 27 alpha, which better-sqlite3 can't compile against, so the PR preview publish fails at install. Match claude.yml's lts/*. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves atproto spaces from the August alpha to
0.0.0-spaces-alpha-20261112204144(cut frompermissioned-data-alpha@b27a037c7), by way of the 2026-11-05 build. Both are breaking alpha changes: space data needspds spaces resetafter deploying (schema version 3), and apps built on earlier alphas need updating.The sync process used for both steps is now written down in
plans/in-progress/spaces.md, and the plan has a section per alpha with the details.2026-11-05 alpha
Atproto-Space-Credentialplus an HTTP message signature, replacing DPoP.#atproto_kemkey (pds spaces kem).simplespaceis replaced by the personalspace / memberspace / managedspace policies.getRepostreams STAR. Writes are sequenced by space revision.clearRecords,removeWriter,importRepo,exportSpaceMeta,importSpaceMeta.@getcirrus/spacesand@getcirrus/space-conformancenow bundle the alpha@atprotopackages, because several have broken releases that outrank the alpha range.2026-11-12 alpha
getSpaceCredential→authorizeSpaceSynclistRepos→listWritersnotifyWrite→notifyRepoUpdatenotifyCredentialRevoked→notifyCredentialsRevokedcheckUserAccess→checkAccessputMember/removeMember→ batchedputMembers/removeMembers(up to 100, in one commit)notify: {endpoint, token}toauthorizeSpaceSync, and the space host confirms it with the syncer'sconfirmRegistrationbefore issuing the credential.notifySpaceUpdate.registrationExpirednotice.spaceDeletednotices go to every registration and are retried for 72h.registerNotify,unregisterNotifyandnotifySpaceDeletedare gone.listWriterslists them.Accept-Signature, covering anAtproto-Space-CommitorAtproto-Space-Recordheader. STAR archives useapplication/vnd.dasl.star.managingAppmust bedid#service.UpstreamFailure(502) rather than being treated as a refusal.publicWrite, a member denied write stays excluded.NotSpaceOwner→NotAuthorized,UserNotAuthorized→AccountNotAuthorized,BadSpaceMac→InvalidSpaceMacandMalformedCursor→InvalidCursor. New:InvalidRepoFile,RepoMismatch,InvalidSpaceMeta,RegistrationNotConfirmedandUpstreamFailure.spaceType, and space declarations usetitle. oauth-provider exports anallowsSpace(permissions, check)helper.lex-rpc,oauth-resolver,lex-password-session,bsync), now overridden inpnpm-workspace.yaml.Conformance (106 checks)
deleteRecordanswers 200 for a missing space;notify.registration-expiredwaits out a real 10-minute credential, so CI skips it. Run by hand, it passes against both the reference and Cirrus.listMembersaccepted a garbage cursor.Verification
pnpm build,pnpm checkandpnpm knipare clean.Tests pass:
The engine bundle imports only hono, jose, @ATCUTE and
cloudflare:workers.Not exercised: the browser checker against a live PDS, the CLI's
--oauthpath, and cross-PDS flows against a real foreign PDS.After merging
pds spaces reset. The KEM key carries over.earth.cirrus.check.spaceprobe declaration, which now usestitle(seepackages/space-conformance/probe-lexicons/README.md).🤖 Generated with Claude Code
https://claude.ai/code/session_01LZ7qcQNQoiA6a23woGC7tB