Spaces it out!!
It’s been so fun to see the excitement, the conversation, the new apps popping up, and the optimism for this network of ours. I have a lot more to say about spaces, and I'm sure I'll get to wax poetic for months to come. For now, I mainly wanted to say thank you.
This is something we've wanted to build for years. We had discussions going back over 3 years about how this might all look. We started work "officially" at a small team retreat this last January. I've sprinkled in some photos of that early brainstorming throughout this post. But first, this is a photo from a team retreat two and a half years ago about the possible URI structure (oh sweet summer child, there are so few URI segments):
This protocol is very important to the success of the network. And I’m grateful for & honored by the trust that was placed in me to lead this project. I didn’t take it lightly. I had a lot of sleepless nights fretting over things. And I had a lot more days banging my head wondering “why the hell did they put the biggest idiot on the team in charge of this” than I had days feeling that I knew what I was doing.
Fortunately, I have some incredible folks that I work with at Bluesky who did most of the hard work for me. It wouldn’t be wrong to accuse me of abusing Cunningham’s Law with the number of times I made an internal proposal only to elicit a counter proposal so I could go “oh nice we’ll do that”.
We also tried to conduct the design and development of the protocol as publicly as possible and with as much input as we could get from the developer ecosystem. This was one of the best parts of the last year, and it shaped the protocol in core ways. A lot of the design of the protocol ended up on the community forum.
If you look at the final protocol design, very little of it was actually me. one time described me as “the meat grinder” for the protocol. We have a lot of smart people and strong opinions on both the team and in the ecosystem. If I did something well, I think it was listening to those voices, digesting them, and munging them all together into something coherent, in a manner that speaks to our ethos and the goals I laid out in the second diary.
And I think in the end, we got to something good. I’m really truly proud of spaces. I’m sure I’ll have some regrets and that some mechanisms and details could have been done better (which I’m also sure the IETF will be gracious enough to help us correct). But at its core spaces is right. I’m remarkably confident in that. We stumbled on the idea of a space (well bucket at the time) early, and most of the protocol design process was stripping things back or reframing things to make that kernel of an idea shine more. I think we ended up with something strikingly simple, conceptually elegant, flexible, and powerful.
I want to look at some of the big ideas/decisions/mechanisms and give some kudos:
(and please forgive me if I misattribute any of these or leave something out, also ping me about it & I’ll fix it)
The idea of a bucket: I’m pretty sure this was , though it’s hard to remember as it came out of brainstorming. I do remember his early confidence in the idea when he winked to me at that January team retreat and saying as an aside “don’t worry, we’re going to have buckets”
Space authority DIDs: This one was actually my idea! Though at the time, I’d thrown out making each bucket it’s own DID.
Space type NSIDs: The core of this idea was originally who proposed Realms (teased in diary 2).
The space triple (authority/type/skey): This one was also mine. This was very clarifying for getting our hands around the overall data model.
The
at:space/uri scheme: This was 's idea. He and I had disagreed on priorities here for months (I cared most about a unifiedat:URI scheme, he cared most about keeping the “space” signifier to the left of the authority). He woke in the middle of the night one night with an idea that we all ended up liking. I had all but given up on it, and will admit to being pretty frustrated that Bryan refused to let up on it. But now I’m very glad that he kept pushing on it.The basic space credential flow: This was , and was the moment that the basics of the protocol really confidently took shape for me. Like, "oh yeah this is actually gonna work".
Ditching the member list: This was the good folks at - & . I consider this one of the fundamental moments in the design of the protocol. Exactly what a space was really clicked for me with this change.
Client attestations in the OAuth flow: This was , our resident OAuth expert
The robust space sync: This was . It was originally much more loosy-goosy, and really relied on notification delivery.
The webhook write notification flow: This was a late night special between me & , desperately trying to fix it up before an alpha release.
LtHash: This was . We were originally using ECMH, but Filippo told us it was irresponsible to use something here that was not post-quantum (good foresight!)
HMACing the LtHash: This was . We briefly flirted with the idea of location-based authority, but Devin advocated strongly that it was too at odds with atproto ethos. And he pushed for an HMAC over an rebroadcastable signature.
KEM key: This was , who pointed out that my weird little HMAC signing scheme totally didn’t do what I thought it did (much to my chagrin)
STAR files as the repo export format: This was , who had specced out a v0 previously and then worked with us to quickly spec a spaces-compatible v1.Â
I could go on. And this isn’t even getting into the Atmosphere Groups stuff. There are a bunch of little mechanisms and details in there that I’m not giving proper credit for. And even with the ones I listed, it’s hard to really boil it down to one or two people. Every decision was influenced by dozens of conversations that came before it. Every conversation on Bluesky, in the developer forum, and in the halls of AtmosphereConf influenced this design.
Even the arguments that I disagreed with and pushed back against, strengthened our understanding of what we were designing and at times shifted seemingly unrelated design decisions. An example was spotting a fuzzy boundary around our use of DPoP and putting together a proposal for tightening that up by using OAuth-style token exchange for space credentials. We ended up not going forward with that particular proposal, but instead resolved that fuzzy boundary by moving from DPoP to HTTP Signatures which then, in turn, found their way into the HMAC flow (a development that Nick, a fan of HTTP Signatures, was happy about & in agreement with).
I guess the point that I’m trying to get at is: this was truly an ecosystem project. It’s inconceivable that this protocol would have turned out how it did without all of you. And I’m just beyond grateful for the protocol crew at Bluesky and this amazing ecosystem. Everyone engaged with so much thought and care, and I think the final result reflects that.
Now let’s get out there and build the future of the internet!