About these results

Spaces are brand new to atproto, and a handful of servers already implement them. The only way to know whether two of them will actually work together is to point the same tests at all of them and publish what happens. So that’s what this is.

What a run looks like

Every check here talks to an implementation over HTTP, the same way any app would, and every check points at the sentence of the spec it comes from. If a row says something failed, you can click through to the exact words it failed against.

For each run I start a fresh private network with the implementation and whatever it needs to run (a database, a partner server), plus a PLC directory, a TLS proxy and the test runner. None of it can reach the internet. The runner creates its own accounts and spaces, then works through every check that applies. Setup isn’t graded, so a server that creates spaces the older way still gets tested on everything after that.

Each implementation runs from an image pinned by digest: HappyView’s own published image, and for the others, an image built from the project’s source. When a new build lands, it gets tested as a candidate. If nothing unexpected turns up, a pull request goes up to move the pin. If something does, it gets an issue in this repo and the pin stays put. Every night, anything whose inputs changed (its image, the tests or the pinned spec text) runs again, and anything that didn’t change is left alone. Every result lands in the results branch exactly as it was recorded, along with the list of known gaps it was judged against. I never edit a result. A wrong one gets replaced by a new run.

Yes, I make one of these

I’m Trezy, and I run HappyProto and build HappyView, which is one of the implementations on this page. That’s exactly why HappyView gets no special treatment: it runs from its published image, through the same tests, with its whole list of known gaps out in the open. The test runner does its own crypto and wire formats straight from the spec, and doesn’t borrow any implementation’s code to do it.

Which spec, exactly

The spec has been moving fast, so the suite pins each revision it grades: the proposal text by commit (checked by hash) and the lexicons that go with it. Every check is graded against the revision it’s run at, and a sentence that changed between revisions gets checked against each version of itself. Each implementation says which revisions it targets. The grid on the front page shows the first one it lists, and its own page shows the rest.

How scores work

Every check has a level. Required checks come from a MUST in the spec, or from a sentence that defines a format, a field or a method. Recommended checks come from a SHOULD and get their own score. Info checks just record what an implementation does where the spec doesn’t say, and never count.

A score is the share of required checks an implementation passes, for each job it does. Known gaps still count as failures. Listing a gap explains a failure; it never makes one go away.

ResultCounts asMeans
passPassesIt does what the spec says.
known deviationFailsIt fails in exactly the way the project’s list of known gaps says it will.
failFailsIt fails, and nobody has listed it.
deviation changedFailsIt’s on the list, but it failed differently than the list says, so it’s treated as new.
fixed, still listedPassesIt passes now, so it can come off the list.
fail (provisional)Not scoredThe check hasn’t passed on two independent implementations yet, so the bug could be mine.
errorNot scoredThe run broke on my side, and a fresh retry broke too.
pendingNot scoredIt couldn’t be graded this run. The row says why.
no test yetNot scoredIt applies, but I haven’t written the test yet.
not applicableNot scoredThe implementation doesn’t do the job this check is about.

Known gaps

Every implementation can keep a list of the checks it knows it fails. Each entry names the issue tracking the fix and spells out the failure it expects, so a known gap can’t quietly hide a different bug on the same check. If the failure changes, it shows up as a new one. If the check starts passing, the entry gets pruned. Lists can live in this repo or in the project’s own, and HappyView’s lives in HappyView’s.

Who tests the tests?

My tests can have bugs too, and the crypto ones are where that would hurt most. So a check that leans on the runner’s crypto stays provisional until the runner’s own test vectors for that crypto have been cross-checked, and the check has passed on two implementations that don’t share code for that piece. Until then, a failure shows up but doesn’t count against anybody. Two servers built on the same library count as one, because a bug in that library would pass on both, and a server that doesn’t say which library it uses doesn’t count at all.

Jobs and kinds of host

The spec splits the work into jobs. A repo host stores and serves people’s space repos, a space host handles credentials, writers and notifications, and a PDS does both and serves a baseline set of methods on top. Each implementation says which jobs it does, and only those checks apply to it.

Some rules assume a space belongs to an account that someone signs in to. A standalone space host keeps its spaces on DIDs it creates itself, so those rules don’t fit it. I decide which checks each kind of host gets, not the implementation, so nobody can opt out of a check they’d rather skip. Each implementation’s page lists what doesn’t apply to it.

Getting your server on here

If you’re building a PDS or a space host, I’d love to test it. The easy way is to open an “Add a PDS” issue and I’ll take it from there. If you’d rather do it yourself, send a pull request to happyproto/spaces-conformance. It adds a folder under implementations/ with a manifest describing the jobs your server does and which library handles each piece of crypto, a compose file that starts it on the test network, and a small adapter if createAccount and createSpace aren’t enough to set it up. It also adds your image, pinned by digest, to pins/images.env.

Think I got it wrong?

You might be right. Open an issue with the run id from the implementation’s page and the name of the check. I assume the test is wrong until it’s shown to be right, and if it is wrong, I fix it and the next run replaces the result. Nothing here ever posts on another project’s tracker on its own.

Things only get tested again when something changes, so if a result looks like a fluke, fill in a re-run request with the implementation, the run id and why, and I’ll kick off a fresh run.