Skip to content

fix: keep historical work stable across metadata changes - #171

Merged
f0rr0 merged 3 commits into
nextfrom
f0rr0/verify-astra-work
Sep 28, 2026
Merged

f0rr0 merged 3 commits into
nextfrom
f0rr0/verify-astra-work

Conversation

@f0rr0

@f0rr0 f0rr0 commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Old work could reappear as a new daily entry when the repository advanced: its fingerprint included the current branch head, and publication replaced its source date with the publication time.

Fingerprint owned work independently of mutable branch heads and PR metadata, and publish using the original activity date and time. Actual commit, fact, and outcome changes still update work; existing closed-day snapshots stay frozen. Remove the redundant projection fields.

The cleanup migration was generated with bun run db:generate --custom, including its filename, journal entry, and schema snapshot. It removes later canonical copies only when an identical original snapshot exists on the actual work day. The history guard is suspended and restored inside the migration transaction so the repair also works after the duplicate day closes. A read-only production check matched one erroneous row.

Validation:

  • 291 tests, typecheck, lint, and both Knip modes pass. A targeted replay of the affected historical record reproduced the old fingerprint churn and confirmed stable fingerprints with unchanged display facts after the fix.
  • Applied all 26 migrations to an empty PostgreSQL 17 database using bun run db:migrate; rerunning changed nothing. Drizzle consistency checks pass and generation reports no schema drift.
  • Tested an existing-data upgrade with the duplicate day closed: only the duplicate was removed, original and differing facts survived, and history protection was restored. Both Drizzle and direct cleanup reruns were unchanged.

@vercel

vercel Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
f0rr0-github-io Ready Ready Preview Sep 28, 2026 1:41pm UTC

@f0rr0 f0rr0 changed the title fix: preserve source dates when publishing work fix: keep historical work stable across metadata changes Sep 28, 2026
@f0rr0
f0rr0 merged commit 7334ca0 into next Sep 28, 2026
4 checks passed
@f0rr0
f0rr0 deleted the f0rr0/verify-astra-work branch September 28, 2026 13:46

This branch was successfully deployed

1 active deployment
Preview — 1a1ef2c2 Deployed Sep 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant