Repository navigation
fix(backup): put the decisions ledger in the daily dashboard archive (#10293) - #11795
Merged
Merged
Conversation
…10293) pm-dashboard-backup.sh staged an explicit allow-list that never gained decisions.json or the decision-events files. They are now staged: decisions.json and decision-events.jsonl as required members (a missing one fails the run at verify), the decision-events outbox with its sync cursor (cursor first), needs-drew.json, notifications.jsonl, issue_pr_links.json, prefix-program.json and digests/ as optional ones. Rebuilt caches are named in AGG_DERIVED, and the manifest step records any other top-level state file as unclassified and WARNs naming it, so the next drift shows in the log and the archive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dezren39
marked this pull request as ready for review
November 18, 2026 11:53
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #10293 (the acceptance check, a fresh archive from the laptop listing the ledger, needs this deployed first)
Before: the daily
pm-dashboard-backuparchive staged a fixed list of aggregator files that never included the decisions ledger.decisions.json,decision-events.jsonl, the decision-events outbox and several other hand-kept state files were in no backup, and nothing noticed when a new state file appeared.After: the ledger rides every archive.
decisions.jsonanddecision-events.jsonlare required members, so a missing one fails the run before upload, likeregistry.jsontoday. The outbox and its sync cursor,needs-drew.json,notifications.jsonl,issue_pr_links.json,prefix-program.jsonanddigests/are optional members. Any other top-level file in the state directory that is neither an expected member nor named derived is listed in the manifest's newunclassifiedfield and named in a WARN line, so drift shows up in the run's own output.The issue also named
events.json.outbox.jsonlandviews.jsonas stale names. Both are still the names the aggregator uses: the outbox exists only while failed appends wait for retry, andviews.jsononly once a view is saved, so they stay optional.How:
EXPECTED_SETgains nine members; staging copies them with the same checkedcp -aas the rest, the outbox's sync cursor before the outbox so a restored cursor can lag but never lead.AGG_DERIVEDnames the rebuilt caches (board.json,attention-last-good.json,stack-health.json,host-health.json) that are deliberately left out..corrupt-copies and dotfiles.aggregator/decisions.json, marker unchanged) and a staging scenario (companions recorded present, a derived file and a write temp ignored, one stray file named as unclassified). Results here: date, monthly, pmp-links, prune, record and main suites pass; manifest has one failure and copy has four, the same as on main in this container (no rclone on PATH; running as root defeats the unreadable-file fixtures).Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.