Feature plan: Step 1 · Step 2 · Step 3 · Step 4

Debug mode: enabled (debug log)

Effort study: railspike-effort / v3/music_slideshow; host ledger music_slideshow.md. Standing P2 enrollment.

Extended estimates: enabled.

Cycle estimate: 0.50

Step 3 approved 2026-11-28 ("approved step 3"). Branch feat/music_slideshow from 6a8187f76 (main moved on from the Step 1 starting revision 619b53d5e; nothing in between touches the music page). Planning commit 0f20b4926. Step 4 entry: 0.50, reaffirmed from Step 3.

Enhancement requests carried from Step 3: music_room_setup (sound check, speaker picker, full screen, keep awake, test pattern, mic check) stays a follow-up cycle; nothing from it is built here.

Stage 1 - The set and a plain slide

Original estimate: 0.12 Retrospective: 0.12

  • Changes:

    • ReadModel/TagPage.php: since(PDO, tag, DateTimeImmutable from, limit = 200) returns IDs of listed #music threads first posted at or after the instant, oldest first. Same membership SQL as /music/ and /tags/music.

    • Http/MusicPageController.php: slides(?threadId, since) returns status plus HTML or a redirect location. since is a local day in the site's calendar time zone; absent means the last 7 days. Only the current thread and up to 9 tile neighbours are loaded. slidesHref() and defaultSince() are public for the /music/ entry.

    • Application.php: /music/slides/ and /music/slides/<thread id>, gated by musicSection and the flag; a thread outside the set gets a 303 to the set's start.

    • templates/pages/music_slides.php: date form, "3 / 9", title linking to the thread, who shared it and when, Previous and Next links. Unreadable date: short message, link to the last week, closed Details naming the step and value (HTTP 400).

    • FeatureFlagRegistry.php: FORUM_MUSIC_SLIDES_ENABLED ("Music slides"), on by default, Rendering group.

    • SiteProfileRegistry.php: mitrapclub gets calendarTimeZone America/New_York. The only other reader is the calendar's .ics feed, which now carries Eastern times for mitrapclub.

  • Verification:

    • ./v3 test --smoke MusicSlidesPageTest MusicPageTest FeatureFlagEvaluatorTest: passed (509 run). Full suite not run.

    • New MusicSlidesPageTest: order and the 23:30-Eastern edge; untagged threads left out; Next/Previous keep the day; default last-week set; empty set; impossible date (400, Details); redirect for a thread outside the set; 404 on other sites and with the flag off.

  • Notes:

    • First draft compared times with julianday() to accept offset timestamps. Records reject anything but …Z (the test write failed on +00:00), so plain text comparison is exact and keeps the index-friendly form.

  • Estimate details: original scope: route, query, errors; uncertainty low. Unchanged.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5

Stage 2 - Slide layout for a big screen and a phone

Original estimate: 0.12 Retrospective: 0.12

  • Changes:

    • music_slides.php: the slide renders the track's first link through the shared embed renderer ($br), so YouTube shows its stored poster with the play button and other providers show the player bar. A post without a recognized link shows its text. The title-fetch beacon is included, as on /music/ rows. A tile row (up to 9 around the current slide) links to each track.

    • New public/assets/music-slides.css, registered for music_slides.php in TemplateRenderer.php like the guestbook's sheet. Wider than the reading column (up to 90rem); poster beside the title from 900px, stacked below. Type sizes scale with window width. The title sits on a panel, so a theme's margin drawings never sit behind it. A provider without a poster gets a 16:9 panel holding its bar.

  • Verification:

    • New tests/browser/music_slides.mjs with its own fixture and router (tests/Support/music_slides_browser_*.php): 9 tracks from the last week, posters stored for the YouTube ones. Passed.

      • Underground and Underground Dark at 1920×1080, 1280×720 and 390×844: oldest track first, "1 / 9", poster shown, no sideways scroll; at 1920 the title is at least 48px and the slide fits without scrolling.

      • A Spotify slide shows its bar in the panel.

      • All 20 themes mitrapclub permits at 390px, poster and bar slides: no sideways scroll.

    • Screenshots reviewed: Underground 1920 and 390, Underground Dark 1920 (bar slide) and 390.

    • ./v3 test MusicSlidesPageTest MusicPageTest MediaEmbedRendererTest: passed.

  • Notes:

    • Deviation from the plan: styles went into a page sheet, music-slides.css, not site.css. The site already loads per-page sheets this way (guestbook, support), and it keeps the slides' styles off every other page.

    • Underground colours every link with :root:is(...) a; the Previous and Next styles need a matching specificity, or Next's label turns the same blue as its background (seen in the first screenshot).

    • The site's inputs and buttons fill their container; the date form resets that to one row.

  • Estimate details: original scope: layout across themes; uncertainty medium. Unchanged.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5

Stage 3 - Friday listen on /music/

Original estimate: 0.05 Retrospective: 0.05

  • Changes:

    • MusicPageController::page(): with the flag on, counts the default set (TagPage::since from defaultSince()) and passes listen (address, count, first day).

    • music.php: one link under the share box, "Friday listen · 9 tracks since Nov 21", to /music/slides/?since=<day>. Absent when the week is empty or the flag is off.

    • site.css: the link in the embed accent colours with a drawn play button; element-qualified selectors keep Underground's link colour off it.

  • Verification:

    • MusicPageTest::testFridayListenLinksTheLastWeekAsSlides (no link when empty; counts only the last week; flag off hides it). ./v3 test MusicPageTest MusicSlidesPageTest: passed (13 run).

    • music_slides.mjs: the link names 9 tracks and a tap lands on the first slide. Screenshot at 390px reviewed. Passed.

    • music_share.mjs (share box): passed.

  • Notes: reaching the first slide from the site's home is Music, then Friday listen: two taps, as the success criterion asks.

  • Estimate details: original scope: small template change; uncertainty low. Unchanged.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5

Stage 4 - Moving between slides without a reload

Original estimate: 0.10 Retrospective: 0.10

  • Changes:

    • New public/assets/music_slides.js, loaded only on the slides page. Previous, Next, tiles, ArrowLeft / ArrowRight and a sideways swipe fetch the target slide's page once, swap the slides section in place, and push the address; Back and Forward swap back. The neighbours are fetched ahead when a slide shows.

    • Before a swap, every open player is closed, so media_embed_inline_player.js clears its frame and the sound stops.

    • Arrow keys are ignored in form fields and with modifier keys; a swipe counts only when it is at least 60px and twice as wide as it is tall.

    • A failed or timed-out fetch (8s) follows the link instead.

  • Verification:

    • music_slides.mjs additions, passed: Next swaps without a page load and updates the address and "2 / 9"; Back returns in the same document; a tile and both arrow keys move; arrows in the date field do nothing; after playing and moving, at most one player is open; a vertical drag does not move, a sideways swipe moves both ways; a blocked fetch falls back to a page load; with script off, Next, Previous and the date form work as links and a GET form.

    • ./v3 test MusicSlidesPageTest MusicPageTest: passed.

  • Notes: the set's page HTML is the cache unit, so a slide fetched in place is exactly what the server renders for that address.

  • Estimate details: original scope: history and swap edge cases; uncertainty medium. Unchanged.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5

Stage 5 - Next starts the next track

Original estimate: 0.06 Retrospective: 0.06

  • Changes:

    • music_slides.js: after a move by tap, click, arrow key or swipe, the new slide's player is marked as tapped and opened in the same move, from the prefetched slide. media_embed_inline_player.js then loads it with the start request it already sends for a Play tap: autoplay=1 for YouTube and TikTok, auto_play=true for SoundCloud. Spotify and Bandcamp open loaded, one tap from playing.

    • Back and Forward show a slide without starting it.

  • Verification:

    • music_slides.mjs additions, passed: Next on a YouTube slide opens the next YouTube player with autoplay=1, and navigator.userActivation.isActive is still true when it opens; the frame carries allow="autoplay"; ArrowRight starts too; one player open; SoundCloud gets auto_play=true; Spotify opens its embed loaded; Back opens nothing.

    • ./v3 test MediaEmbedInlinePlayerScriptTest MusicSlidesPageTest: passed.

    • Pending: hearing sound. The workspace cannot reach YouTube, so the browser test serves stub frames; a desktop Chrome check against the real site after deploy is part of Stage 6's replay.

  • Notes: no change to media_embed_inline_player.js; the slides reuse its tapped mark and withAutoplay().

  • Estimate details: original scope: keeping the open inside the gesture; uncertainty medium. Unchanged.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5

Stage 6 - Concept update and the real-world replay

Original estimate: 0.05 Retrospective: 0.05 (work in this session; the replay is pending)

  • Changes:

    • docs/concepts/music_section.md: a Slides paragraph (addresses, the set rule, time zone, Friday listen, recovery, script behaviour, flag) and the slides' source links.

    • docs/concepts/media_embed.md: the slides as a second caller that opens the player as if tapped.

    • Effort ledger closeout.

  • Verification:

    • Concept source links resolve (checked each ../ path). git diff --check origin/main: clean.

    • Final diff review of src, templates, public and tests against origin/main: changes stay inside the approved scope; no new dependency (npm install only fetched the repository's existing playwright-core dev dependency into the workspace).

    • Pending, needs deploy: the known-environment replay. On mitrapclub.com: room laptop (signed out) → Music → Friday listen; does the title read across the room on the projector, and does Next on a YouTube slide start sound in desktop Chrome? On the iPhone SE: does Next start sound, or does the player need one tap? Workspace screenshots and stub frames do not settle these.

  • Notes: none.

  • Estimate details: original scope: concept files and the replay; uncertainty low for the work, high for timing. Unchanged.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5

Closeout

  • Stages 1–6 done, one commit each after the planning commit 0f20b4926.

  • Completion Contract: normal entry, end-to-end moves, autostart requests and every recovery path are covered by MusicSlidesPageTest, MusicPageTest and tests/browser/music_slides.mjs. Release (merge, Deploy now, one Friday meeting) and the replay above are pending.

  • Tests run: ./v3 test --smoke MusicSlidesPageTest MusicPageTest FeatureFlagEvaluatorTest (509 passed, Stage 1); MediaEmbedRendererTest, MediaEmbedInlinePlayerScriptTest; node tests/browser/music_slides.mjs; node tests/browser/music_share.mjs. Full suite not run.

  • No baseline failures met in the tests touched.

  • Retrospective scope assessment: 0.50, matching the Step 3 projection. Delivered scope equals the approved scope; the only deviation is the page stylesheet. Single exposed Claude rater. Maintainer comfortable-fit judgment: pending. Measured time unknown.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5