Ran the manual pass with a real Mastodon account through a cloudflared
tunnel - the one gap every phase doc had flagged as outstanding before
merging. WebFinger, actor resolution, follow/unfollow/approve/block,
a forced weekly summary posting and deleting, and the now-playing
profile field appearing/clearing all worked correctly against
mastodon.social and activitypub.academy.
Two real bugs found along the way, both fixed here:
- docker-compose.yml hardcoded the api/worker services' CORS_ORIGINS
to UI_BASE_URL. Pointing UI_BASE_URL at the tunnel host (needed for
federation's own identity) silently changed which browser origins
the API accepted, blocking the operator's own localhost:8080 UI -
.env's own CORS_ORIGINS setting had no effect, since the compose
file never referenced it. Now its own variable, same default.
- TestConfig wasn't isolating UI_BASE_URL/CORS_ORIGINS from a
developer's .env, so the same local change broke six tests that
assert on http://localhost:8080 URLs - the same class of gap an
earlier session found and fixed for FEDERATION_ENABLED/
LASTFM_API_KEY. Pinned alongside them.
Marked the manual pass done in each phase doc (1-4) and the overview.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
README: the Sharing page's Now playing section, its three modes and
their throttles.
federation/README.md: now_playing.py added to the publishing
plug-ins list (with a note on why it's not quite the same shape as
weekly.py/milestones.py - a periodic scan covering both the profile
push and the opt-in post, rather than an event receiver), actors.py
added to the layout table, and the worker tasks / interop sections
updated for federation.now_playing and the new profile-field check.
docs/design/activitypub-phase4.md marked done, with the two points
where implementation diverged from the written plan (the key-hashing
fix and the now_playing_mode privacy gate).
docs/openapi.json unchanged - still current from step 4.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
Resolves the overview doc's last open decision: now playing builds
both options it described, not one or the other - the profile field
(recommended default, live on every GET, throttled Update(Person) push
every 5 minutes) plus a separate opt-in for actual posts (min 30s
played, throttled to one every 30 minutes, previous post deleted when
the next goes out).
No event receiver or pending-checks queue like milestones needed: a
plain periodic scan (federation.now_playing, every 30s) is simplest
here, since the throttle windows are minutes-long and there's no
history to react to retroactively - unlike milestones, now playing
only ever reflects what's playing right now.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
README: the fediverse section now describes what's actually posted
(weekly summaries, milestones) and their settings, instead of pointing
at "still being built"; notes now playing is the one piece left.
federation/README.md: a new Publishing section explains the plug-in
shape (base.py owns idempotent publish/delete/fan-out; each kind -
weekly.py, milestones.py - only decides when to post and what to say),
so adding a third kind later means adding a module, not touching
base.py. Worker tasks and layout tables updated for federation.weekly,
federation.milestones and cli.py. Interop section covers the new post
check.
docs/design/activitypub-phase3.md marked done, following the precedent
from phases 1-2's own docs, with the three points where implementation
diverged from the written plan (the top-10-needs-a-real-top-10 fix,
post_now() as a separate window computation, and post_page_url()
needing the username).
docs/openapi.json unchanged - still current from step 8.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
Weekly summaries (Monday 09:00 in each user's time zone) and
milestones, followers-only by default: a core stats-window addition,
idempotent posts keyed per week/threshold, Note/Create/Delete with
visibility addressing, fan-out to followers' shared inboxes, no
retroactive posts (baselines on enabling sharing and after imports),
deletable posts and deletion when sharing is switched off, a paged
outbox, API/UI, metrics and an alert, and interop checks with
GoToSocial.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
README: following works, the Followers page, optional federation
settings and the worker requirement. Federation README: settings,
module layout, worker tasks and the interop test. Design doc: what
interop testing changed. Phase 2 plan marked done with its deviations
(httpcore, no in-process two-instance test, Undo of Block), leaving
only the manual Mastodon check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
Step-by-step plan: both HTTP signature schemes with test vectors, an
SSRF-safe outbound client and remote-actor cache, follower/inbox/
delivery tables, network-free inbox intake with worker processing,
signed Accept/Reject/Block delivery with retries, follower management
API and UI, metrics/alerts, in-process two-instance tests and a
GoToSocial interop job in CI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
README: what sharing does today, how an operator enables it (settings,
UI forwarding, HTTPS), and the permanence of handles and the key
secret. Federation README: key secret, forwarded paths and module
layout. The phase 1 plan is marked done, with the real-Mastodon check
still outstanding.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
- Handles and actor URLs live on the web UI's domain; the UI's nginx
forwards the ActivityPub paths to the API
- Posts default to followers only, settable per user, with the privacy
caveat about automatic follow approval spelled out
- docs/design/activitypub-phase1.md: the discoverable-profile phase,
step by step
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
Step-by-step plan: domain events, a generic worker with imports moved
onto it, the empty federation module and config, separate Alembic
branches, and boundary tests enforcing the module rules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
- Settles build vs buy: write it ourselves (Scrobbler is BSD-3-Clause;
the Python library option is AGPL)
- New "Module structure" section: everything in scrobbler.federation,
a pure protocol/ subpackage for spec-dependent code, pluggable
signature schemes/inbox handlers/post kinds, core → federation only
via blinker domain events, own federation_* tables in a separate
Alembic branch, generic task worker, and boundary tests enforcing it
- Adds a groundwork phase 0 and updates the open decisions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
Research write-up for making Scrobbler users followable from the
fediverse: protocol pieces (WebFinger, actor, inbox, signatures in both
draft-cavage and RFC 9421, delivery), what gets posted (weekly summary,
milestones, now playing), build-vs-library, data model, security,
testing against GoToSocial, phased plan and open decisions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW