199 lines
No EOL
20 KiB
HTML
199 lines
No EOL
20 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>fedi vs web</title>
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://www.w3.org/ns/activitystreams",
|
|
"type": "Article",
|
|
"name": "fedi vs web",
|
|
"summary": "on the distinction between social network and social web, where activitypub straddles both",
|
|
"url": "https://trwnh.com/unstable/fedi-vs-web"
|
|
}
|
|
</script>
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"type": "Article",
|
|
"headline": "fedi vs web",
|
|
"description": "on the distinction between social network and social web, where activitypub straddles both",
|
|
"url": "https://trwnh.com/unstable/fedi-vs-web",
|
|
"author": {
|
|
"type": "Person",
|
|
"name": "a",
|
|
"url": "https://trwnh.com"
|
|
}
|
|
}
|
|
</script>
|
|
<style>
|
|
article {
|
|
max-width: 80ch;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<article class="h-entry">
|
|
<header>
|
|
<h1>fedi vs web</h1>
|
|
<p>on the distinction between social network and social web, where activitypub straddles both</p>
|
|
<p>published around <time datetime="2024-09-25">2024-09-25</time></p>
|
|
<aside><p>this is part 1 of a series of threads that will eventually be turned into a blogpost or essay or somesuch. read on with the understanding that this is unpolished and may disappear at any time. <a href="what-is-web">part 2 is here</a></p></aside>
|
|
</header>
|
|
<section>
|
|
<h2>the disconnect between activitypub and the fediverse</h2>
|
|
<p>so this is what you might call a "hot take", certainly a heterodox one to some parts of the broader fediverse community. this is in response to recent discussion on "what do you want to see from AP/AS2 specs" (in context of wg rechartering) mostly devolving into people complaining about JSON-LD and extensibility, some even about namespacing in general (there was a suggestion to use UUID vocab terms. i'm not joking)</p>
|
|
<p>the main contention is a disconnect between ActivityPub as a spec and fediverse as a protocol/network. a lot of problems cited were with the fediverse as implemented, wishful thinking about what could be changed in spec, many backwards-incompatible, mostly in service of making fediverse impl less painful.</p>
|
|
<p>there is a recurring refrain about implementers deciding they don't care to implement AP as specified, and that this indicates a problem with the spec, not a problem with implementers.</p>
|
|
<p>i think this disconnect between ActivityPub and fediverse honestly goes a lot deeper than people might realize. and that is because the problem AP tries to solve is actually completely different from what fedi is trying to do.</p>
|
|
<p>the concept of a nebulous but mostly singular "network" or "protocol" (made up of partially overlapping parts) is core to what i'll call "fedi mindset". the assumption is that you can join the fedi "network" by implementing the fedi "protocol". and that AP is this.</p>
|
|
<p>but this assumption starts to break down when you look a little closer.</p>
|
|
|
|
<section>
|
|
<h3>why does fedi use (or not use) activitypub?</h3>
|
|
<p>first, consider ActivityPub C2S. why is there close to zero usage of this in fediverse software? simple: it doesn't solve any needs for building a "network" "protocol".</p>
|
|
<p>now consider S2S. why are there zero compliant impls in fedi? because AP as specified doesn't address the needs of fedi. what does fedi need? well, i find it telling that the "real" reason AP was adopted was... to implement followers-only posts.</p>
|
|
<p>which is to say: the primary reason that ActivityPub is used (to the extent you can say it is being used at all) in the fediverse is mostly historical.</p>
|
|
<p>fedi grew out of a long line of open protocols, and before AP was adopted, it was at the point where people primarily used "activity streams" as their vocabulary and data model, stuffed into atom feeds. atom feeds don't do private posts unless you make an entirely new access-controlled feed, possibly with a token of some sort. hence, AS2 and AP.</p>
|
|
<p>when ActivityPub was being standardized alongside AS2 it basically had two compelling reasons for what would become the fediverse to adopt it:</p>
|
|
<ul>
|
|
<li>it was built on AS2, which was an evolution of AS1, which was already being used. so it wasn't hard to make the jump.</li>
|
|
<li>it made followers-only posts possible, because while atom feeds <em>could</em> do this, it was wildly inconvenient to actually do it that way. posting something private to an inbox is a lot simpler, no juggling access control tokens.</li>
|
|
</ul>
|
|
<p>but beyond that, what does ActivityPub actually do for fediverse as a "network" "protocol"? basically nothing. you have a basic mechanism for delivering activities directly to subscribers, but no specified shape or structure for that payload. and you still need a lot of other specs to end up with something that talks to the "network". even with AS2 vocab, you need more vocab extensions to express things you want to.</p>
|
|
<p>simply put, AP is not enough for a "protocol" to build a "network".</p>
|
|
</section>
|
|
<section>
|
|
<h3>fedi as a "network"</h3>
|
|
<p>but before you build a "protocol" for a "network", consider: what even is a "network", in this context? and, here's the hot take: do you even <em>want</em> that kind of "network"? do you want a separate reified fediverse network?</p>
|
|
<p>because the answer that ActivityPub gives is actually a different one. There is no "AP network", because AP as a protocol is not enough to build a concrete network. it is intended to provide, and exists in context of, the larger Web.</p>
|
|
<p>this is the fundamental divide between fediverse thinking and Web thinking, where ActivityPub straddles the line between both.</p>
|
|
</section>
|
|
|
|
</section>
|
|
<section>
|
|
<h2>why (and how) fedi "network" doesn't follow the open-world assumption</h2>
|
|
<p>i've seen it said that the "open-world assumption" at the foundation of the Web is actually an undesirable thing for a "social networking protocol", and as a consequence, specs built on that open-world assumption are "completely unsuitable" for that "protocol".</p>
|
|
<p>but do we need a "social networking protocol"? do we even need "social networks" in the first place?</p>
|
|
<p>to build the fediverse as its own "social networking protocol" then seemingly requires that we instead go with the closed-world assumption, contrary to the Web</p>
|
|
<p>it requires ahead-of-time communication and coordination, where implementers need to be willing and available to talk to any other implementer, and this load grows with every new implementer.</p>
|
|
<p>it requires you to be aware of other extensions, present and future, because your extension might conflict with someone else's extension.</p>
|
|
<p>the way extensibility works in a closed-world fediverse is that "every implementer talks to every other implementer". or maybe there is a central registry of extensions that everyone submits to their authority, as stewards of the "protocol" that is used to build the "network". this trades out the n:n relation between implementers and other implementers, for an n:1 relation between implementers and the central registry.</p>
|
|
<p>the way extensibility works in an open-world Web is you just do it.</p>
|
|
<p>the challenge in closed-world systems is how to scale communication and coordination as the number of implementers grows. without a central authority, it almost inevitably leads to power coalescing in the hands of the few most popular or largest implementations, who become the "de facto" standard and get to mostly do what they want, and everyone else mostly has to follow if they want to be compatible.</p>
|
|
<p>sound familiar? it should, because this is the model that the fediverse follows today.</p>
|
|
<p>indeed, the fediverse is more closed-world than open-world. you see this in the so-called "rejection" of json-ld among presumably the majority of fedi implementations. because for the most part, AS2 lets you ignore json-ld. it only matters for extensibility, and (specific criticisms of json-ld aside) json-ld also mostly allows you to ignore it.</p>
|
|
<p>so why do people still complain about it?</p>
|
|
<section>
|
|
<h3>what even is context</h3>
|
|
<p>well, there is the concept of "context" in json-ld, which represents shared understanding.</p>
|
|
<p>when i say <code>john knows sally</code>, there are several ambiguities. we can solve ambiguities by disambiguating. one way to disambiguate is to be explicit about what any term or symbol means. one way to be explicit is to use uniform identifiers.</p>
|
|
<p>in particular, http/https uris have some convenient properties</p>
|
|
<ul>
|
|
<li>they have authority, so you can qualify an id based on who's assigning it.</li>
|
|
<li>you can use the authority component as a namespace</li>
|
|
<li>you can fetch the uri and it might return something useful</li>
|
|
</ul>
|
|
<p>so let's say <code>john</code> is <code>https://example.com/john</code> and <code>sally</code> is <code>example.com/sally</code>. what do we use for <code>knows</code>? well, there are multiple senses of the word "knows":</p>
|
|
<ol>
|
|
<li>is aware of the existence of</li>
|
|
<li>is familiar with</li>
|
|
<li>is having sexual intercourse with</li>
|
|
</ol>
|
|
<p>we mean definition 1. so we might use <code>https://example.com/vocab/knows/1</code>. now we have the statement:</p>
|
|
<code>
|
|
<pre>
|
|
<https://example.com/john> <https://example.com/vocab/knows/1> <https://example.com/sally>
|
|
</pre>
|
|
</code>
|
|
<p>this is unambiguous, but we can go one step further: we can provide definitions at the uri.</p>
|
|
<p>say some random person sees the statement above. they don't know who john or sally are, and they don't know what "knows" means in this context. well, if we do a little work upfront, they actually <em>can</em> know what all of these terms mean, <strong>without ever asking us directly</strong></p>
|
|
<p>we put a resource on example.com for each of these terms, and each resource describes the subject of that identifier -- it is a "resource descriptor". the resource for knows/1 can define itself explicitly with a schema. so at minimum we have the following schema for knows/1</p>
|
|
<dl>
|
|
<dt>how to represent it in plain text</dt>
|
|
<dd>"knows"</dd>
|
|
<dt>how to define it</dt>
|
|
<dd>"is aware of the existence of"</dd>
|
|
</dl>
|
|
<p>the RDF Schema gives us <code>label</code> and <code>comment</code>, as defined by the RDF Schema.</p>
|
|
<dl>
|
|
<dt>label</dt>
|
|
<dd>"knows"</dd>
|
|
<dt>comment</dt>
|
|
<dd>"is aware of the existence of"</dd>
|
|
</dl>
|
|
<p>but we need to know what "label" and "comment" mean as well! not to worry, we qualify those terms with the rdfs namespace:</p>
|
|
<dl>
|
|
<dt>rdfs:label</dt>
|
|
<dd>"knows"</dd>
|
|
<dt>rdfs:comment</dt>
|
|
<dd>"is aware of the existence of"</dd>
|
|
</dl>
|
|
<p>conventionally, we need a way to unambiguously map <code>rdfs:</code> to its actual prefix, <code>https://www.w3.org/2000/01/rdf-schema#</code>. in Turtle, it would be done like so:</p>
|
|
<code>
|
|
<pre>
|
|
@prefix rdfs: <https://www.w3.org/2000/01/rdf-schema#> .
|
|
</pre>
|
|
</code>
|
|
<p>but in json-ld, we would use <code>@context</code>.</p>
|
|
</section>
|
|
<section>
|
|
<h3>ok so how/why do we deal with context</h3>
|
|
<p>now at this point you're probably wondering what this has to do with social networking. and on a practical level, if you're just interested in building a "social networking protocol", this is mostly all extraneous.</p>
|
|
<p>the part that implementers have to deal with is the notion of "context" and, more specifically, how json-ld handles it, and even more specifically, what to do when two shorthand terms conflict.</p>
|
|
<p>remember, the open-world solution is namespacing. what does closed-world do?</p>
|
|
<p>well, let's look at <code>actor</code>. in AS2 terms it refers to the entity that performed an activity. but in schema.org terms it refers to someone playing a role in a movie or other performance. in an open-world case, you would namespace these as <code>https://www.w3.org/ns/activitystreams#actor</code> and <code>http://schema.org/actor</code>. but in a closed-world sense, you don't want to be aware of context. you don't want to have to deal with it. but even so, you still have an "implicit context" that you are using, based on how you define each term in your own understanding, what you hardcode into your software. in this example, your "implicit context" is that <code>actor</code> always means <code>https://www.w3.org/ns/activitystreams#actor</code>.</p>
|
|
<p>what json-ld does, or what it allows you to do, is explicitly declare a <code>@context</code> that is equivalent to your "implicit context".</p>
|
|
<p>this works fine if there is only one declaration that is shared exactly between two parties, but it gets complicated when the "implicit context" differs or isn't an exact match.</p>
|
|
<p>this means that there cannot ever be a singular fediverse network, because the "implicit context" differs between each software project. the only guaranteed overlap is the AS2 one.</p>
|
|
<p>but it's not like AS2 didn't think of this. they wrote in this requirement:</p>
|
|
<blockquote>
|
|
<p>Activity Streams 2.0 implementations that wish to fully support extensions <strong><code>MUST</code></strong> support Compact URI expansion as defined by the JSON-LD specification.</p>
|
|
<cite><a href="https://www.w3.org/TR/activitystreams-core/#extensibility">Activity Streams 2.0, §5 "Extensibility"</a></cite>
|
|
</blockquote>
|
|
<p>note, you aren't required to implement all of json-ld. you just need to handle the bit where you can identify the equivalence between a uri and some arbitrary string.</p>
|
|
<p>but fediverse mostly decided this is too hard, and so they ignore context.</p>
|
|
</section>
|
|
<section>
|
|
<h3>what happens when you choose to Not</h3>
|
|
<p>now there's a few thoughts i have here.</p>
|
|
<p>first: fediverse culturally seems to ignore a lot of other things as well. they ignore http caching for example. they ignore http status codes like 301 Permanent Redirect. these requirements are arguably more important than context, and they <em>still</em> get ignored.</p>
|
|
<p>in fact, most fedi software is mostly just reimplementing Web browsers, but with what they consider to be the "bare minimum" of compliance. and the web they let you browse is smaller than the Web</p>
|
|
<p>are these things part of the "protocol"? how far does the "protocol" extend to cover? because, as we established, ActivityPub is not enough to build a fully functional fediverse -- and a lot of extensions and additional specs are things that ought to be included in this "protocol", insofar as this "protocol" is desirable.</p>
|
|
<p>second: if you ignore things, that means there are cases you're not handling, losing out on robustness. ignoring context is to ignore shared understanding.</p>
|
|
<p>so what do you actually lose out on when you ignore json-ld context? you have to fall back to the "implicit context", where AS2 terms are generally agreed upon, but nothing else is guaranteed.</p>
|
|
<p>take something like <code>discoverable</code> from mastodon. what does it mean? well, it means whatever is defined in the mastodon codebase and documentation. so we could represent that as <code>http://joinmastodon.org/ns#discoverable</code> or shorten that with a prefix. but if we do, then most fediverse will choke on that. this is because #fediverse is ignoring context. the implicit context is that <code>discoverable</code> means <code>http://joinmastodon.org/ns#discoverable</code> but they don't know that. so they can't actually handle the extension in its fullest form.</p>
|
|
<p>what AS2 calls out as "full support for extensions" requires being able to identify this equivalence and handle it. again, fedi does... let's call it "partial support".</p>
|
|
<p>the "implicit context" is now a hardcoded but unstated requirement of this "protocol".</p>
|
|
<p>which is to say: fediverse software generally expects LD-aware producers to compact against their own "implicit context", but they don't always define that context. it's left undeclared and undefined. or it actually <em>is</em> declared, but if you give them their own expanded form then they'll not understand it.</p>
|
|
<p>if we go back to the "john knows sally" example, then fedi behavior is like this exchange:</p>
|
|
<ol>
|
|
<li>someone tells you: when i say <code>knows</code>, i mean <code>is familiar with</code></li>
|
|
<li>you say: ok. <code>john</code> <code>is familiar with</code> <code>sally</code>.</li>
|
|
<li>they respond: WTF? what does <code>is familiar with</code> mean? i only understand <code>knows</code>.</li>
|
|
</ol>
|
|
<p>it's like... you literally just told me "knows" = "is familiar with", but because of your own ignoring of your own context, you can't handle me saying "is familiar with"?</p>
|
|
<p>in this way, as long as the fediverse remains ignorant of context, they will remain fragile and without any sort of robustness in their "protocol".</p>
|
|
<p>the alternative they have is to extend the only context they share, which is the AS2 one. but this doesn't solve the problem. it just officially blesses a single term.</p>
|
|
</section>
|
|
</section>
|
|
<section>
|
|
<h2>closing thoughts: fedi vs web</h2>
|
|
<p>so if you want to turn "activitystreams" into a "protocol" then sure i guess you can do that. but why? what are the needs we're trying to address here? of what purpose is your "protocol"? social networking? you want a "social networking protocol"? before you convince people that a "social networking protocol" is necessary, you have to convince people that a "social network" is necessary. but more importantly, you are contrasting that "social networking protocol" against the "social Web".</p>
|
|
<p>it is my personal belief that this whole "closed-world social network" vs "open-world social Web" thing is leading to a big disconnect that makes addressing people's needs harder.</p>
|
|
<p>because, to be on the "network", you neglect being on the "Web".</p>
|
|
<p>sure, your software might still publish your "posts" as Web resources, but that's it. you're not actually granted control or ability to manage Web resources for yourself. ActivityPub C2S is being neglected, among many other things.</p>
|
|
<p>i am personally more in favor of a "social Web" than a "social network". what i want to do is make it easier for anyone to make a website, and to manage that website. i want those websites to be able to link to each other in well-defined and clearly-understood ways. i want to make friends and express myself to the fullest, in varying contexts on various websites, without context collapse.</p>
|
|
<p>but it feels like fediverse is more interested in replicating the "social network" paradigm.</p>
|
|
</section>
|
|
<hr>
|
|
<footer>
|
|
<p>addendum 1: there's a whole lot of things i could say about "how we get there" but the thread was getting long enough and i want to cut it off here and clean it up into a blog post or something, without drifting too far off the original topic which was to voice my thoughts about the divide itself</p>
|
|
<p>addendum 2: there's a separate thought experiment you could do about what it really takes for a "social networking protocol" because honestly you don't even need http. you can do "social networking" over xmpp or email or whatever. or invent your own way to send bytes over tcp/udp/whatever (inb4 xkcd). seriously tho, newsletters and deltachat and movim and a bunch of other things show that you can do it</p>
|
|
</footer>
|
|
</article>
|
|
</main>
|
|
</body>
|
|
</html> |