GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cold-store-reaper: D1 manifest schema still lacks the v1.2 'evicted' CHECK — first evict --apply will break nightly sync-manifest (follow-up left by PRs #965/#971) · Issue #984 · developing-today/code

cold-store-reaper: D1 manifest schema still lacks the v1.2 'evicted' CHECK — first evict --apply will break nightly sync-manifest (follow-up left by PRs #965/#971) #984

New issue
Copy link
New issue
Copy link
Closed
#1012
Closed
cold-store-reaper: D1 manifest schema still lacks the v1.2 'evicted' CHECK — first evict --apply will break nightly sync-manifest (follow-up left by PRs #965/#971)#984
#1012
Copy link
Assignees
dezren39
Labels
app/cold-store-reaperPackage/app: cold-store-reaper (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 26, 2026
Issue body actions

Finding

The cold-store-reaper's local manifest schema and the hosted D1 copy of it have drifted, and the drift is documented in the repo but tracked nowhere:

  • PR feat(cold-store-reaper): v4 — R2 S3 client, backup-supabase, eviction #971 (merged 2026-10-26, feat(cold-store-reaper): v4 — R2 S3 client, backup-supabase, eviction) added the objects.state = 'evicted' value as schema v1.2. Local manifests are migrated in place (ColdStore._migrate_objects_evicted), but the D1 copy is not.
  • pkgs/cold-store-reaper/schema.sql lines 3–5 (current main d715adf9): "v1.2 (reaper v4): objects.state gains 'evicted' … The D1 copy of this schema needs the same one-line CHECK change before evicted rows can sync; sync-manifest fails on the objects statement…"
  • pkgs/cold-store-reaper/README.md lines 256–261 says the same: until the D1 CHECK change is applied, "sync-manifest fails on the objects statement with D1's own error text (the same caveat the v1.1 'trash' direction had)".
  • The same pattern already happened once: PR cold-store-reaper v3: backup retention (prune-backups), get-backup, backup-d1, nightly + drill scripts #965 (v3, schema v1.1) added the 'trash' ledger direction with the identical caveat for prune rows.

Consequence: the first time anyone runs cold-store evict --apply (the eviction trial PR #971 prepares), the local manifest gains 'evicted' rows and every subsequent sync-manifest — including the nightly run in scripts/nightly-backup.sh, step 4, which runs under set -e — fails on the objects statement until someone applies the D1 change by hand. Nothing files or tracks that prerequisite; it exists only as a README/schema comment.

Why it matters

Eviction is presented as ready (evict --apply ships in v4, the nightly files the source backups it will evict), but its prerequisite D1 migration is an undocumented-in-GitHub manual step. The failure mode is also badly timed: it surfaces in the nightly after objects have already been deleted from R2, breaking manifest sync at exactly the moment the hosted manifest matters most.

Acceptance criteria

  • The D1 cold-store-manifest database's objects table CHECK constraint accepts 'evicted' (and transfer_ledger.direction is confirmed to accept 'trash' from v1.1, if that was never actually applied either).
  • Verified end-to-end: a manifest containing at least one 'evicted' object row (and one 'trash' ledger row) completes sync-manifest against D1 without the CHECK error.
  • The caveat text in schema.sql and README.md is updated to record that the D1 change is applied (with a date), or replaced by a repeatable migration step in the repo so the next schema extension (v1.3+) cannot drift the same way.
  • No evict --apply run is treated as complete before the sync verification above passes.

Found by the pr-diff-review job reviewing PRs #965 and #971 against current main.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    on Oct 26, 2026
  2. developing-today commented on Oct 26, 2026

    @developing-today
    developing-todayBot
    on Oct 26, 2026 – with developing.today
    Contributor
    More actions

    CODE-169

  3. dezren39
    added
    queue/queuedHas a queued queue task
    app/cold-store-reaperPackage/app: cold-store-reaper (pkgs/ or apps/ in this repo)
    on Oct 26, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 26, 2026
  5. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: pr-diff-review job
    • Session / ID: pr-diff-review cron run 2026-10-26 10:24 CDT
    • Found via: filed this run
    • Task: Filed from the review of PRs cold-store-reaper v3: backup retention (prune-backups), get-backup, backup-d1, nightly + drill scripts #965/feat(cold-store-reaper): v4 — R2 S3 client, backup-supabase, eviction #971 — the D1 manifest copy still lacks the v1.2 'evicted' CHECK change documented in schema.sql/README, so the first evict --apply will break nightly sync-manifest; a triage packet has been enqueued.
    • Expectation: effort class s; done when D1 accepts 'evicted' rows, sync-manifest is verified against a manifest containing one, and the caveat text is updated.
    • Links: source PRs feat(cold-store-reaper): v4 — R2 S3 client, backup-supabase, eviction #971 and cold-store-reaper v3: backup retention (prune-backups), get-backup, backup-d1, nightly + drill scripts #965
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 26, 2026
  7. 18 remaining items

  8. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 26, 2026
  9. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 1143
    • Found via: queue claim (resume from park)
    • Task: Resume PR docs(cold-store-reaper): D1 already carries the evicted/trash CHECKs — caveat text corrected (#984) #1012 — docs-only caveat-text fix; CI was pending at park, now revalidating fresh and merging when green.
    • Expectation: xs — done = PR merged, cold-store-reaper: D1 manifest schema still lacks the v1.2 'evicted' CHECK — first evict --apply will break nightly sync-manifest (follow-up left by PRs #965/#971) #984 closed, task completed.
    • Links: PR docs(cold-store-reaper): D1 already carries the evicted/trash CHECKs — caveat text corrected (#984) #1012 · branch queue/1143-984-d1-caveat-text
  10. dezren39
    added a commit that references this issue on Oct 26, 2026

    docs(cold-store-reaper): D1 already carries the evicted/trash CHECKs …

    786d212
  11. dezren39
    closed this as completedin #1012on Oct 26, 2026
  12. developing-today
    added
    status:done
    on Oct 26, 2026
  13. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 1143
    • Found via: queue claim (resume from park)
    • Task: PR docs(cold-store-reaper): D1 already carries the evicted/trash CHECKs — caveat text corrected (#984) #1012 merged — stale D1 'evicted'/'trash' CHECK caveat text corrected in pkgs/cold-store-reaper/schema.sql + README.md (docs only).
    • Expectation: done — PR merged (squash 786d212), all checks green, cold-store-reaper: D1 manifest schema still lacks the v1.2 'evicted' CHECK — first evict --apply will break nightly sync-manifest (follow-up left by PRs #965/#971) #984 auto-closed; prior targeted tests 59 OK (1 skipped).
    • Links: PR docs(cold-store-reaper): D1 already carries the evicted/trash CHECKs — caveat text corrected (#984) #1012
  14. dezren39
    removed
    status:done
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 26, 2026
  15. dezren39
    added 2 commits that reference this issue on Oct 30, 2026

    chore(flake): bump opencode to 195bdae1 (quota gate #984)

    861bd54

    Merge pull request #2746 from developing-today/deploy-opencode-991

    b24e615
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/cold-store-reaperPackage/app: cold-store-reaper (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.