Skip to content

fix(nap): add silent-failure detection when archival returns null on oversized file - #636

Closed
diberry wants to merge 1 commit into
github:devfrom
diberry:squad/25-nap-silent-failure
Closed

diberry wants to merge 1 commit into
github:devfrom
diberry:squad/25-nap-silent-failure

Conversation

@diberry

@diberry diberry commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

When decisions.md exceeds 20KB but archiveDecisions() returns null (no entries archivable), emit a warning action. Adds 'warning' type to NapAction, extracts oversizedDecisionsWarning() helper. 3 tests.

Team review: Flight ✅, FIDO ✅, Procedures ✅

Closes diberry#25

…oversized file

When decisions.md exceeds 20KB but archiveDecisions() returns null
(no entries archivable — all recent or undated), emit a warning action
in the nap report instead of silently reporting 'nothing to clean up'.

Changes from review:
- Add 'warning' type to NapAction (was using 'cleanup' with cast)
- Extract oversizedDecisionsWarning() helper (DRY — was duplicated in runNap/runNapSync)
- Tests assert on type='warning' instead of just description text

Closes #25

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@diberry

diberry commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

@bradygaster Ready for your review — team-approved with 3-reviewer gate (Flight, FIDO, Procedures).

@diberry

diberry commented Mar 27, 2026

Copy link
Copy Markdown
Contributor Author

Closing as duplicate — Brady merged related archival fallback in #627 (count-based archiveDecisions).

@diberry diberry closed this Mar 27, 2026
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.

fix(nap): Add silent-failure detection when archival returns null

2 participants