15 Commits
Author SHA1 Message Date
matt 30141b13ac Add initial plan in
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 16s
CI / federation-interop (push) Successful in 1m41s
CI / test (push) Successful in 4m14s
CI / python-package (push) Skipped
CI / assets (push) Successful in 8s
CI / images (push) Successful in 32s
CI / trigger-deploy (push) Skipped
CI / notify (push) Successful in 6s
2026-10-14 12:06:44 +01:00
mattandClaude Sonnet 5.5 65ee13fa65 Rename the product Scrobbled
Display name only: UI, docs, API title, dashboards, hashtag and User-Agent.
Identifiers (package, metrics, env vars, SCROBBLER_CONFIG) are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 21:21:55 +01:00
mattandClaude Sonnet 5 9ca2ace854 Manual tunnel test: two real bugs found and fixed, docs marked done
CI / lint (push) Successful in 11s
CI / federation-interop (push) Successful in 1m38s
CI / validate-monitoring (push) Successful in 8s
CI / test (push) Successful in 4m10s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
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
2026-09-26 23:42:58 +01:00
mattandClaude Sonnet 5 9f7ada682c Docs for phase 4: now playing (step 8)
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 12s
CI / federation-interop (push) Successful in 1m41s
CI / test (push) Successful in 3m23s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 6s
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
2026-09-26 17:32:20 +01:00
mattandClaude Sonnet 5 7d86bad929 Plan for ActivityPub phase 4 (now playing)
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m6s
CI / test (push) Successful in 2m57s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
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
2026-09-26 16:54:00 +01:00
mattandClaude Sonnet 5 e0423d04bc Docs for phase 3: what gets posted, the publishing plug-ins (step 11)
CI / lint (push) Successful in 16s
CI / notify (push) Successful in 6s
CI / validate-monitoring (push) Successful in 8s
CI / federation-interop (push) Successful in 1m8s
CI / test (push) Successful in 2m55s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
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
2026-09-26 16:44:32 +01:00
mattandClaude Opus 5.5 bc717c2a06 Plan for ActivityPub phase 3 (posts)
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 13s
CI / federation-interop (push) Successful in 1m0s
CI / test (push) Successful in 2m1s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 7s
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
2026-09-26 10:58:48 +01:00
mattandClaude Opus 5.5 fefdeb90ec Document following on the fediverse; mark phase 2 done (phase 2, step 9)
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 11s
CI / federation-interop (push) Successful in 1m3s
CI / notify (push) Successful in 1m20s
CI / test (push) Successful in 2m4s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
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
2026-09-25 22:17:02 +01:00
mattandClaude Opus 5.5 044f25e2fd Plan for ActivityPub phase 2 (followers)
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 1m3s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
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
2026-09-25 20:56:59 +01:00
mattandClaude Opus 5.5 6b09e041b8 Document fediverse sharing; mark phase 1 done (phase 1, step 9)
CI / validate-monitoring (push) Successful in 7s
CI / lint (push) Successful in 12s
CI / test (push) Successful in 1m7s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
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
2026-09-25 20:37:30 +01:00
mattandClaude Opus 5.5 00ad8e9e6d ActivityPub decisions: UI domain, followers-only posts; phase 1 plan
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 48s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 5s
- 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
2026-09-25 20:10:08 +01:00
mattandClaude Opus 5.5 cae97380fc Mark ActivityPub phase 0 as done
CI / validate-monitoring (push) Successful in 7s
CI / notify (push) Successful in 5s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 47s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
2026-09-25 20:02:09 +01:00
mattandClaude Opus 5.5 247c94a79c Plan for ActivityPub phase 0 (groundwork)
CI / test (push) Successful in 44s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / validate-monitoring (push) Successful in 7s
CI / lint (push) Successful in 10s
CI / notify (push) Successful in 5s
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
2026-09-25 19:52:39 +01:00
mattandClaude Opus 5.5 5d71116613 ActivityPub design: build in-house as one replaceable module
CI / notify (push) Successful in 5s
CI / validate-monitoring (push) Successful in 9s
CI / lint (push) Successful in 14s
CI / test (push) Successful in 49s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
- 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
2026-09-25 19:48:04 +01:00
mattandClaude Opus 5.5 d2c71d50f1 Design proposal: ActivityPub federation
CI / validate-monitoring (push) Successful in 8s
CI / lint (push) Successful in 11s
CI / test (push) Successful in 44s
CI / images (push) Skipped
CI / assets (push) Skipped
CI / python-package (push) Skipped
CI / notify (push) Successful in 7s
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
2026-09-25 19:36:45 +01:00