openspec generated by agent unboringspec 0.5.0

Add invite link revocation

6 requirement changes 4 decisions 8 tasks 3 open questions

Album owners can revoke and expire invite links and remove any photo, replacing today's permanent links.

🎧 Listen instead · Roasting the change that finally locks the front door Roast

Transcript

Intro

Maya Welcome back to the spec roast. Today's change has a noble mission: stop family photo albums from being open to the whole internet.

Leo Noble. Overdue. Today, an album link never expires and can't be revoked. Forward it to the wrong group chat and your cousin's coworkers are uploading memes into grandma's birthday album.

What it is

Maya Which is exactly what this fixes. Owners can revoke the link, and a new one is issued straight away.

Leo I'll give it that. One click and the leak is closed. Applause, genuinely.

Key decisions

Maya And the clever bit: revoking doesn't keep a list of banned links. It just swaps the album's token for a new random one.

Leo Clever, and also a nuclear option. Rotate the token and every link dies, including the one aunt Carmen printed and stuck on her fridge.

Maya The design calls that acceptable, because rotating is a deliberate owner action.

Leo Deliberate, sure. Until the owner realises the whole family is now locked out and the group chat lights up.

Maya Fair. Next: links also expire. Each token gets an expiry date, and the lifetime comes from configuration.

Leo Lovely. And what is that lifetime?

Maya That's… an open question. Seven, thirty or ninety days.

Leo Undecided. And yet the migration already decided: existing links expire thirty days after release. The task list picked a number the design is still debating.

Maya Okay, that one lands. Pick the default first, or derive the migration from it.

Leo Now my favourite line. Owners get an email three days before a link expires, with a button to extend it.

Maya That's thoughtful.

Leo It is a button to nowhere. No requirement says links can be extended, and no task builds it. We are emailing people a promise.

Maya Point taken. Either add the requirement and the task, or drop the button.

Leo Then there's the breaking change. Permanent links are removed outright.

Maya With a migration: old links expire thirty days after release, and owners can issue new ones any time.

Leo Right. Thirty days for every family to notice, in an app whose main channel to them is… an email we haven't built the button for.

Maya Moderation, then. Owners can now delete any photo, whoever uploaded it.

Leo Good. Also permanent. No undo, no record of who deleted what. One tired thumb at midnight and the wedding photos are gone for everyone.

Maya And one more open question: should people who joined through a revoked link stay in the album?

Leo Because if they stay, revoking the link closes the door after the burglar is already on the sofa.

Maya Last roast, I promise. Rotation, expiry and a data migration all touch who can see what…

Leo And the task list has zero tests. Not one. Access control on vibes.

What you must decide

Maya Alright, serious minute. If you're reviewing this change, here's what's on you.

Maya One: pick the default link lifetime, and make the migration use it.

Maya Two: decide whether members who came in through a revoked link keep their access.

Maya Three: build the extend button, or stop promising it. And add tests while you're at it.

Wrap-up

Leo And say nice things too. Revoking a leaked link in one click is a real improvement. It just needs the rest of the house finished.

Maya Thanks for listening. Go lock your front doors.

1 · Needs your judgment

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

The calls this spec leaves to you:

  1. Default link lifetime (7, 30 or 90 days), which the migration already assumes is 30.
  2. Whether members who joined through a revoked link keep their access.
  3. Whether the expiry email's 'extend' button is in scope: no requirement or task covers extending a link.
Q1

What should the default link lifetime be: 7, 30 or 90 days?

The design lists this as an open question.

Q2

Should members who joined through a revoked link stay in the album?

The design lists this as an open question.

Q3

Can a deleted photo be restored, and is the deletion logged?

Owner moderation is irreversible as written, across every member's view.

decide

Remove permanent links, expire existing ones after 30 days

Breaking change: permanent invite links go away; links created before release expire 30 days after it.

Why: Permanent links cannot be revoked and are the product's main privacy risk.

Instead of: Keep permanent links but allow revocation

Risk: Families relying on an old link lose access without noticing; the 30-day grace period is fixed before the default lifetime is decided.

2 · Decisions worth a look

review

Revoke by rotating the token

Revoking replaces the album's token with a new random one instead of keeping a denylist.

Why: A denylist grows forever and must be checked on every join.

Instead of: Denylist of revoked tokens

Risk: Rotation also kills legitimate links already shared with relatives.

review

Only owners moderate photos

The owner can delete any photo; members can delete only their own.

Why: Closes the abuse path of open upload links.

Risk: Deleted photos disappear for everyone, with no undo or audit trail specified.

1 routine decisions
routine

Expiry stored next to the token, lifetime from configuration

Each token has an expires_at; the default lifetime is a configuration value.

Why: The lifetime can change without a migration.

3 · Risks

medium

Migration hard-codes 30 days while the default lifetime is open

Impact: If the team picks 7 or 90 days, existing and new links follow different rules.

Mitigation: Derive the migration expiry from the configured default, or decide the default first.

medium

The expiry email promises an action nobody builds

Impact: The notification offers a button to extend the link, but no requirement or task covers extending.

Mitigation: Add an 'Extend invite link' requirement and task, or drop the button from the scenario.

low

No tasks for tests

Impact: Rotation, expiry and the migration change access control with no planned verification.

Mitigation: Add contract tests for rotate and expired join, and a migration test.

4 · Visual overview

What the change touches by the agent
Revoking a leaked link by the agent
Task graph · 8 tasks in 4 phases from the spec

5 · Scope and plan

Data model · 2 tasks
API · 3 tasks
Web · 2 tasks
Notifications · 1 tasks
6 requirement changes