Nothing lost, everything traced
Mistakes get undone, not discovered. Every save is kept, every change says who made it, and the whole database can go back to any minute of the last month.
Every save is kept
Each save of a story becomes a numbered version that says who saved it and from which seat. Saving the same words twice doesn’t add clutter.
Blossom writes a story_versions row (number, fields, saved_by, saved_seat, note) when a save differs from the latest version. Site-wide settings get a site_versions row on every save. The store engine keeps every published version of its content, and policies can be compared paragraph by paragraph.
Putting back never replaces
Choosing an old version brings its words back as a new version, so the one you replaced is kept too. If the story is on the site, it changes there only when it’s published again.
A restore copies the version’s fields onto the story, saves a new version noted “restored version N”, and writes a story.restored entry to the audit log with the version id.
Every change has a name and a seat
The log says who did what, when, to which thing, and in which role, so a question about a change always has an answer.
Blossom’s audit_log records the time, the person, the seat they acted from, the action, the object type and id, a summary, the detail, and a keyed hash of the address. The store engine’s activity log records who, the action, the subject, and a summary.
Back to any minute
If the database is damaged, it can go back to any minute in the last 30 days. Past that, a readable copy is written every week.
D1 Time Travel restores the whole database to a chosen minute within 30 days, so changes after it are re-entered by hand. Every Sunday the store writes its records, never the sign-in secrets, to R2 as JSON and keeps eight weeks. Restoring from a copy is rehearsed on three months of sample data on every setup check. Code rolls back to the version before with one command.
- of minutes to go back to
- 30 days
- of weekly copies kept
- 8 weeks
The detail
Switch to Technical for what an IT team asks.
- Removing archives
- Removing a story takes it out of the book without deleting it. A story on the site has to come off the site first, and only editors can remove one that’s under way.Removal sets archived_at and cancels the story’s open work items. The row and its versions stay. The action is logged as story.archived.
- Updates never undo edits
- Shipping new code never puts back old words. What’s saved in the studio wins over what ships with the code.Saved content lives in D1 and overrides the defaults in the repository.
- Changes that only add
- Changes to the database add to it, so the running site and the new code can work side by side for the minute in between.Each schema change needs the next numbered migration, the tests check the two agree, and live changes are additive: a new table, column, or index.
- What a restore can’t bring back
- Orders placed after a copy was made aren’t in it, and passwords are chosen again. The steps for both are written down.After a restore from a copy, each team member gets a link to set a password, customers use the reset link, and passkeys are added again. Later orders are found in Stripe’s payments and re-entered.
Where it runs
Blossom Magazine’s studio, for versions, archiving, and the log with seats, and Afterglow’s own store engine, for restores and the weekly copy, running in a working build that isn’t public yet.
Revision A, November 25, 2026.