Replies to a persona's posts reach its followers; personas join remote events

Two owner decisions of 2026-10-05, recorded in the roadmap.

Replies passed on ("the fediverse is broken without"): a public or unlisted
reply from another server to a persona's public, unlisted or followers-only
post goes on to the persona's followers as its author's server sent it, as
Mastodon forwards it, never to the replier's own server, never for a
local-only or group post; its edit and deletion follow. Only an activity its
own actor delivered is passed on (Arrival.Raw), so nothing forwarded is
forwarded again. The town checks it as relay.reply cells (specs/relay-five:
882 checks pass); Mastodon takes a passed-on activity only with an LD
signature, which GoToSocial and Akkoma don't add, and the checker knows it.

Events: a persona joins another server's event with a Join and leaves it with
a Leave, both to the organiser only, through
POST /api/privapub/v1/statuses/:id/join|leave; the organiser's Accept or
Reject is routed by our join id and shows as privapub.event.participation.
Events by invitation or taken on another site are refused before anything
is sent. Mobilizon's scenario joins and leaves an event (28 checks) and keeps
one for decePubClient's e2e.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-05 14:55:20 +02:00
1 parent 2b42377b3f
commit 0646de22bd
24 files changed
+676 -26

No files matched your search

+23 -2
View File
@@ -1,6 +1,6 @@
# Mobilizon 5.2.4: a group and its events. alice_mobilizon follows the group, which announces the events its members
# organise; an event arrives as an Event with its dates and place; comments both ways; an edit and comments closed;
# deletes; a group post; the unfollow. An event made through its API without options has its comments closed
# organise; an event arrives as an Event with its dates and place; she joins it and leaves; comments both ways; an edit
# and comments closed; deletes; a group post; an event kept for decePubClient's e2e; the unfollow. An event made through its API without options has its comments closed
# (`commentsEnabled: false`), which PrivaPub honours, so this one opens them. Mobilizon's API is GraphQL (/api), signed in by its login mutation; what it holds is read from
# its PostGIS (database mobilizon).
MZ=https://mobilizon.test:6443
@@ -51,6 +51,17 @@ event_json=$(curl -s -H "$PH" "$P/api/v1/statuses/$e_on_p")
echo "$event_json" | j "e = (d.get('privapub') or {}).get('event') or {}; print(any('Borghese' in ((p.get('name') or '') + (p.get('address') or '')) and p.get('latitude') for p in e.get('places', [])))" | grep -q True \
&& ok "and with its place, located" || ko "the event's place is missing"
echo " participation"
# alice joins the event (owner decision 2026-10-05): a Join Mobilizon takes at once for a free event, then a Leave
participation() { curl -s -H "$PH" "$P/api/v1/statuses/$e_on_p" | j "print(((d.get('privapub') or {}).get('event') or {}).get('participation'))"; }
mz_participant() { mz_sql "select p.role from participants p join actors a on a.id = p.actor_id join events e on e.id = p.event_id where a.url like '%alice_mobilizon%' and e.id = $event_id"; }
curl -s -o /dev/null -X POST -H "$PH" "$P/api/privapub/v1/statuses/$e_on_p/join"
until_true 45 '[ "$(mz_participant)" = "participant" ]' && ok "alice_mobilizon's Join makes her a participant on Mobilizon" || ko "the Join never made a participant ($(mz_participant))"
until_true 45 '[ "$(participation)" = "accepted" ]' && ok "Mobilizon's Accept reaches PrivaPub" || ko "the participation stays $(participation)"
curl -s -o /dev/null -X POST -H "$PH" "$P/api/privapub/v1/statuses/$e_on_p/leave"
until_true 45 '[ -z "$(mz_participant)" ]' && ok "her Leave takes her off the event on Mobilizon" || ko "she is still a participant after leaving"
[ "$(participation)" = "None" ] && ok "and PrivaPub forgets it" || ko "PrivaPub still shows a participation"
echo " comments"
curl -s -o /dev/null -X POST -H "$PH" "$P/api/v1/statuses" -d "status=a PrivaPub comment on the picnic&in_reply_to_id=$e_on_p&visibility=public"
until_true 45 '[ "$(mz_sql "select count(*) from comments where text like '"'%a PrivaPub comment on the picnic%'"' and deleted_at is null")" -ge 1 ]' \
@@ -80,6 +91,16 @@ mz 'mutation($g:ID!,$t:String!){createPost(attributedToId:$g,title:$t,body:"<p>t
"{\"g\":\"$group\",\"t\":\"$post_title\"}" >/dev/null
until_true 60 '[ -n "$(p_home_has "$post_title")" ]' && ok "the group's post reaches alice_mobilizon's home, with its title" || ko "the group's post never arrived"
echo " an event kept for decePub's tests"
# decePubClient's e2e joins it from its card (tests/e2e/Actions/EventTests.cs); the one a run before this one kept goes
kept="$here/.state/mobilizon-kept-event.json"
[ -s "$kept" ] && mz 'mutation($e:ID!){deleteEvent(eventId:$e){id}}' "{\"e\":\"$(j "print(d['id'])" < "$kept")\"}" >/dev/null
kept_title="A concert kept for decePub $(date +%s)"
kept_begins=$(date -u -d '+10 days' +%Y-%m-%dT19:00:00Z); kept_ends=$(date -u -d '+10 days' +%Y-%m-%dT22:00:00Z)
mz 'mutation($t:String!,$b:DateTime!,$e:DateTime!,$o:ID!,$g:ID){createEvent(title:$t,description:"<p>come and listen</p>",beginsOn:$b,endsOn:$e,organizerActorId:$o,attributedToId:$g,visibility:PUBLIC,joinOptions:FREE,options:{commentModeration:ALLOW_ALL},physicalAddress:{description:"Piazza del Popolo",locality:"Roma",country:"Italia",geom:"12.4763;41.9109"}){id url}}' \
"{\"t\":\"$kept_title\",\"b\":\"$kept_begins\",\"e\":\"$kept_ends\",\"o\":\"$me\",\"g\":\"$group\"}" | j "print(json.dumps(d['data']['createEvent']))" > "$kept"
until_true 60 '[ -n "$(p_home_has "$kept_title")" ]' && ok "an event kept for decePub's tests reaches PrivaPub" || ko "the kept event never arrived"
echo " unfollow"
curl -s -o /dev/null -X POST -H "$PH" "$P/api/v1/accounts/$group_on_p/unfollow"
until_true 45 '[ "$(mz_sql "select count(*) from followers f join actors a on a.id = f.actor_id where a.url like '"'%alice_mobilizon%'"'")" = "0" ]' \
+30 -2
View File
@@ -3,7 +3,7 @@ one does hold (its database) and show (its API, as one account). Writes out/<run
Each check is a cell `feature|origin|observer|direction`:
in a peer's object as PrivaPub holds it out PrivaPub's object as a peer holds it
via a peer's object on another peer, through PrivaPub (a community it hosts)
via a peer's object on another peer, through PrivaPub (a community it hosts, or a reply to a persona it relays)
control a peer's object on another peer, PrivaPub not involved (tells a PrivaPub bug from a peer quirk)
local an object on its own server
Known gaps (gaps.json) turn a failure into xfail, and a pass of a known gap into XPASS."""
@@ -36,6 +36,11 @@ NEEDS_PICTURE = {"pixelfed"}
# posts above it, and a Friendica account's non-public reply in a thread another server owns reaches none of the
# others there (nobody relays a followers-only reply), nor anything under it
THREAD_BOUND = {"friendica"}
# Mastodon takes an activity another server passes on only with its author's LD signature (or a FEP-8b32 proof) and
# drops it otherwise (ActivityPub::ProcessActivityService); of the platforms here only Mastodon and Misskey and its forks
# sign their Creates that way, so another's reply PrivaPub passes on never lands there
NEEDS_LD_SIGNATURE = {"mastodon"}
LD_SIGNS = {"mastodon", "misskey", "sharkey"}
class World:
@@ -179,10 +184,11 @@ class Sweep:
stored = self.stored_all()
self.checks = []
self.delivery(stored)
self.relayed(stored)
self.counts(stored)
self.threads(stored)
self.lifecycle(stored)
failing = [c for c in self.checks if not c["ok"] and c["feature"].startswith(("deliver", "count", "edit", "delete", "thread"))]
failing = [c for c in self.checks if not c["ok"] and c["feature"].startswith(("deliver", "relay", "count", "edit", "delete", "thread"))]
if not failing or time.time() - started > deadline:
break
print(f" {len(failing)} checks still failing; sweeping again in 20s", flush=True)
@@ -225,6 +231,28 @@ class Sweep:
elif kind in ("followers", "direct", "circle", "located") and p not in want:
self.add(f"confine.{kind}", o["origin"], p, not held, ref, "absent", "held" if held else "absent", through)
# -- a peer's public or unlisted reply to a persona's post, which PrivaPub passes on to the persona's followers (owner
# decision 2026-10-05): held on every server where a follower of the persona lives and that the reply was not
# addressed to already
def relayed(self, stored):
for ref, o in self.w.objects.items():
parent = self.w.objects.get(o.get("parent") or "")
if ref in self.w.deleted or parent is None or parent["ref"] in self.w.deleted or o["origin"] == "privapub" \
or parent["origin"] != "privapub" or parent.get("group") or o["visibility"] not in ("public", "unlisted") \
or parent["visibility"] not in ("public", "unlisted", "followers"):
continue
addressed = {self.w.platform(k) for k in self.w.recipients(o)} | {o["origin"], "privapub"}
for p in sorted({self.w.platform(k) for k in self.w.follows.get(parent["author"], ())} - addressed):
# (a reply the seeder had p fetch proves nothing about passing it on)
if p not in self.platforms or RECEIVES.get(p) is not None or p in o.get("fetched_on", ()) \
or (p in NEEDS_LD_SIGNATURE and o["origin"] not in LD_SIGNS):
continue
if p in NEEDS_PICTURE and not (stored.get(p, {}).get(parent["uri"]) and stored[p][parent["uri"]].exists):
continue
row = stored.get(p, {}).get(o["uri"])
held = bool(row and row.exists and not row.deleted)
self.add("relay.reply", o["origin"], p, held, ref, "held", "held" if held else "missing", True)
# -- counts on the object's own server, and PrivaPub's exact counts
def counts(self, stored):
likes, reacts, boosts, votes = defaultdict(int), defaultdict(lambda: defaultdict(int)), defaultdict(int), defaultdict(lambda: defaultdict(int))
+100
View File
@@ -0,0 +1,100 @@
{
"schema": "pasture-town/1",
"name": "relay-five",
"seed": 20261051,
"peers": {
"privapub": {
"roots": 1,
"personas": [
4,
4
],
"circles": 0,
"communities": 0
},
"gts": {
"accounts": 2
},
"mastodon": {
"accounts": 2
},
"akkoma": {
"accounts": 2
},
"misskey": {
"accounts": 2
}
},
"profiles": {
"locked": 0.2,
"bot": 0.0,
"fields": [
0,
2
],
"avatar": 0.9,
"header": 0.3,
"bioWords": [
5,
12
],
"langs": {
"en": 80,
"it": 20
}
},
"graph": {
"follows": [
3,
5
],
"mutual": 0.5,
"pending": 0.0,
"rejected": 0.0
},
"circleMembers": 0,
"content": {
"posts": 36,
"mix": {
"text": 60,
"cw": 10,
"tags": 10,
"mention": 10,
"image": 10
},
"visibility": {
"public": 70,
"unlisted": 15,
"followers": 15
},
"replyRounds": 2,
"replies": 0.6,
"deeperReplies": 0.4
},
"interactions": {
"likes": [
0,
2
],
"boosts": [
0,
1
],
"react": 0.2,
"vote": 0.0,
"bookmark": 0.0
},
"mutations": {
"edit": 0.1,
"delete": 0.05,
"blocks": 0,
"mutes": 0,
"reports": 0
},
"time": {
"roundSettleSeconds": 15,
"graphSettleSeconds": 20,
"settleSeconds": 30,
"deadlineSeconds": 120
}
}