spec-kit generated by agent unboringspec 0.5.0

Shared Photo Albums

3 stories 9 requirements 13 decisions 18 tasks 7 open questions

Families share photo albums through an invite link and get a weekly email digest of new photos.

🎧 Listen instead · Live from the spec: Shared Photo Albums, kick-off to final whistle Sports commentary

Transcript

Intro

Jordan Good evening and welcome to a packed stadium! Tonight's fixture: Shared Photo Albums. Families create albums, invite relatives by link, and get a weekly digest of new photos.

What it is

Sam Big match, Jordan. Three user stories on the pitch, nine requirements on the bench, and a couple of question marks in the line-up.

Jordan Kick-off! User Story One takes possession: create an album, give it a name, upload photos from phone or desktop. Priority one, and rightly so.

Sam No albums, no uploads, no product. The spec says it, I'll say it louder.

Key decisions

Jordan And look at this build-up play! Photos go straight from the browser to object storage with presigned URLs. Twenty-five megabyte files never touch the API servers!

Sam Lovely footwork. But they passed on resumable uploads. A big HEIC file on a shaky phone connection drops halfway, and it's back to the centre circle.

Jordan The target on the scoreboard: ten photos in under thirty seconds on twenty megabits.

Sam A target the whole architecture is built around, and it's only tested in the very last phase. That's checking the goalposts after the final whistle.

Jordan Meanwhile, the worker is everywhere! Thumbnails, HEIC to JPEG, and it strips GPS location before anyone else sees the photo.

Sam Good defending on privacy. But the original file keeps its location, and how long originals are kept is still undecided.

Jordan Here comes User Story Two, also priority one: invite relatives by link. Anyone with the link can view and add photos.

Sam And there it is, the most dangerous play of the night. One permanent invite token per album, full member rights, for anyone holding the link.

Jordan The reasoning: lowest friction for relatives who aren't technical. Grandma taps the link and she's in.

Sam So does anyone grandma forwards it to. What happens when the link leaks? The spec asks the question itself and leaves it open: should links expire or be revocable?

Jordan That one goes to the referee. A human has to make the call.

Sam And while we wait: the alternatives were on the bench all along. Per-person email invites, expiring links, view-only links with upload approval. None of them got a minute.

Jordan Second open question in this half: when a member leaves the album, do their photos stay or go?

Sam Also unanswered. And can the owner remove photos someone else uploaded? With open upload links, they'll need to. No requirement says so.

Jordan Half time! Into the second half with User Story Three, priority two: the weekly digest email.

Sam The super-sub. Brings people back, but the product plays fine without it.

Jordan Every Monday at eight in the morning, in each member's own timezone. An hourly job picks whoever just hit Monday, eight o'clock.

Sam Clever. Except for members in half-hour timezones, like India. An hourly job never lands on their eight o'clock. They never get the email.

Jordan Ooh, offside by thirty minutes!

Sam And one more: the digest is mandatory. No way to unsubscribe, and recurring email usually needs one.

Jordan Into stoppage time. The storage budget per family? Still a question mark in the plan.

Sam Originals plus converted copies, twenty-five megabytes each, no retention period, no budget. That bill keeps running after the match.

What you must decide

Jordan Full time! Let's go to the analysis desk. Reviewer, here's what's on you.

Jordan One: invite links. Do they expire, can the owner revoke them, given they let people upload?

Jordan Two: what happens to a member's photos when they leave.

Jordan Three: how long originals are kept, and the storage budget per family.

Wrap-up

Sam And credit where it's due: direct uploads and GPS stripping are a strong game plan. Fix the link, and this team goes up a division.

Jordan That's all from the stadium. Goodnight!

1 · Needs your judgment

Only these need a human call. Everything below is optional depth.

The calls this spec leaves to you:

  1. Do invite links expire or become revocable, given they grant upload rights?
  2. What happens to a member's photos when they leave the album?
  3. How long are original files retained, and what is the storage budget per family?
Q1

should links expire or be revocable?

The spec explicitly marks this as unresolved.

Q2

do their photos stay or get removed?

The spec explicitly marks this as unresolved.

Q3

retention period not specified

The spec explicitly marks this as unresolved.

Q4

monthly storage budget per family

The spec explicitly marks this as unresolved.

Q5

How are duplicate uploads detected and handled?

Listed as an edge case but no requirement or task covers it; families often upload the same photo twice.

Q6

Can the owner delete photos uploaded by others?

With open upload links, the owner needs a way to remove unwanted content; no requirement says so.

Q7

Can members opt out of the weekly digest?

FR-005 makes it mandatory; unsubscribe is usually a legal requirement for recurring email.

decide

Permanent invite link with full member rights

One permanent token per album; anyone with the link can view and upload.

Why: Lowest friction for non-technical relatives.

Instead of: Per-person email invites · Expiring links · View-only links plus upload approval

Risk: A leaked link exposes family photos and lets strangers upload; there is no way to revoke it.

2 · Decisions worth a look

review

Direct-to-storage uploads

Browser uploads to object storage with presigned URLs.

Why: Keeps 25 MB files off the API and meets the 30 s upload goal.

Instead of: Upload through the API · tus resumable uploads

Risk: No resumable uploads: large HEIC files on weak mobile connections may fail and restart.

review

GPS stripped only before other members see the photo

Originals are kept with EXIF; GPS is removed in the worker before photos are visible.

Why: Privacy for shared photos while keeping the original file.

Risk: Originals with location data are stored indefinitely while retention is undefined.

review

Timezone-aware digest via hourly job

Celery beat runs hourly and sends to members whose local time is Monday 08:00.

Why: Respects timezones without one scheduled job per user.

Instead of: One job per user · Everyone at 08:00 UTC

Risk: Members with half-hour offsets (e.g. India) never match an exact hour boundary.

9 routine decisions
routine

HEIC converted to JPEG in the worker

Convert server-side and keep the original.

Why: Most browsers cannot render HEIC.

Instead of: Reject HEIC · Convert in the browser

routine

Language/Version

Python 3.12 (API, worker), TypeScript 5 (web)

routine

Primary Dependencies

FastAPI, SQLAlchemy, Celery, React 19

routine

Storage

PostgreSQL 16 for metadata, S3-compatible object storage for files

routine

Testing

pytest, Playwright

routine

Target Platform

Linux containers on Kubernetes

routine

Project Type

web

routine

Performance Goals

10 photo uploads in under 30 s on 20 Mbps

routine

Scale/Scope

5k families in the first year

3 · Risks

high

Abuse through open upload links

Impact: Anyone with the link can upload arbitrary content to a family album; no moderation or removal flow is specified.

Mitigation: Add link revocation and owner-side photo deletion to P1.

medium

Storage cost is unbounded

Impact: Originals plus converted copies, 25 MB each, with no retention period or budget.

Mitigation: Decide retention and a per-family quota before launch.

low

Success metric SC-002 is only tested at the end

Impact: The 30 s upload goal drives the architecture but is verified only in the final polish phase.

Mitigation: Run a throttled upload spike right after T009.

4 · Visual overview

What is involved and how it connects by the agent
From new album to weekly digest by the agent
Uploading a photo by the agent
Data model · 3 entities from the spec
Task graph · 18 tasks in 6 phases from the spec

5 · Scope and plan

Shared · 8 tasks
P1 Create an album and upload photos · 5 tasks

A user creates an album, gives it a name and uploads photos from their phone or desktop.

P1 Invite relatives by link · 3 tasks

The album owner shares an invite link. Anyone with the link can view and add photos.

P2 Weekly digest email · 2 tasks

Members receive a weekly email with thumbnails of new photos in albums they belong to.

9 requirements