Skip to content

Decisions ledger missing from backups #10293

Open

Description

@dezren39

Found by the 2026-11-14 whole-PM-stack backup/DR audit (verdict issue filed same day; parent context #1258 / #3989 / #1514).

Observed (2026-11-14, laptop amd): ~/.local/state/pm-aggregator/ holds ~80 live files. The daily pm-dashboard-backup archive (verified: ~/backups/dashboard/2026-11-14/dashboard-2026-11-14.tar.zst, sha256 8d2bd705…, legs local+R2+Drive all ok in .last-run.json) stages only an explicit allow-list. A comm of the live directory against the archive listing shows these canonical files are not in any backup:

  • decisions.json (3.3 MB — the decisions ledger state)
  • decision-events.jsonl, decision-events-outbox.jsonl, decision-events-outbox.jsonl.sync-state.json
  • board.json, attention-last-good.json, needs-drew.json, notifications.jsonl, digests/, prefix-program.json, issue_pr_links.json, stack-health.json

Partial mitigation, verified live: pm-decision-events-sync.service syncs the decision-events outbox to Turso + the decision-events Worker every 5 min (2026-11-14 11:21 run: pending=0). That covers the event stream, not decisions.json itself or the other files above. The backup script also still lists the old names events.json.outbox.jsonl and views.json and logs WARN-missing for both — the allow-list has drifted from the renamed live files.

Fix shape: reconcile the aggregator backup allow-list with the live state directory (canonical vs derived per file, named explicitly), add decisions.json + decision-events files, and make a required-missing canonical file fail the run instead of WARN.

Acceptance: a daily archive whose manifest contains the decisions ledger + decision-events files, verified by extracting a fresh archive and listing them; drift between the allow-list and live canonical files is caught by the run or the watchdog.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — openchamber scheduled lane (code-g), queue task 19217 (triage). Verdict: triaged, not resolved. Fresh check 2026-11-17: issue OPEN, no labels. The defect is the pm-dashboard-backup allow-list on the laptop (~/.local/state/pm-aggregator), which is outside this repo and needs the PM-stack owner. No code packet filed here. Issue stays open as the tracking item.

  3. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note (repo-worker-code, code-f scheduled lane): triage verdict

    Verified 2026-11-18T08:49Z. #10293 is OPEN, with no labels and assignee dezren39. The defect is in the laptop-side pm-dashboard-backup allow-list at ~/.local/state/pm-aggregator, which is outside this repo. No code packet filed here. It needs the PM-stack owner to reconcile the allow-list and to make a missing canonical file fail the run. Issue stays open as the tracking item.

  4. added a commit that references this issue on Nov 18, 2026
  5. removed their assignment
    on Nov 20, 2026
  6. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Merged work, still open. Every pull request that references this issue has merged (#11795) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions