Skip to content

fix(report): recognize retained dates and qualify PDF recovery - #766

Merged
wesm merged 4 commits into
mainfrom
test/retained-pdf-workflow
Oct 3, 2026
Merged

wesm merged 4 commits into
mainfrom
test/retained-pdf-workflow

Conversation

@wesm

@wesm wesm commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Reports now recognize dates in retained rendition Markdown. A labeled date such as Document dated 2024\-05\-06 was previously missed because its punctuation is escaped. Reports could therefore skip required date review and use vault-addition dates. The fix preserves the original evidence bytes, quotes, offsets, and hashes, and supports the existing numeric-date interpretation rules.

Rerunning a saved request can now require date review for dates previously missed. The review drawer shows readable dates while retaining the original evidence.

Real-daemon CLI tests now follow four synthetic, structurally valid PDFs through selected reporting, date review, exact original export, and two physical backup restores:

  • An unchanged selection can produce a fresh report with the same counts and coverage, after reviewing its dates again.
  • A changed selection is refused; the replaced document's retained historical original remains exportable with its exact bytes.

The tests also check frozen report bytes after replacement and trash, history without restored live handles or date choices, strict missing-evidence refusal, and explicit export release. They start with retained evidence and reuse one portable profile across restored daemons; fresh PDF extraction remains outside this scope.

Implements the retained-PDF qualification design, the next bounded slice of #719.

Date review with readable dates from retained PDF evidence

wesm and others added 3 commits October 2, 2026 16:29
Separate report, export, and backup tests do not establish that an operator
can recover the same retained PDF selection in a restored daemon. Define
one bounded qualification slice with concrete counts, exact original
content, and distinct outcomes for current and changed selections.

Keep the fixture honest about available runtimes: it starts with retained
evidence and does not qualify fresh PDF extraction. Restore provisions its
portable profile explicitly and requires date review again because history
keeps requests and receipts, not live handles or reviewed choices.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
Retained rendition Markdown escapes date punctuation. Reports missed those
dates, skipped required review, and silently used vault-addition fallbacks.
Recognize the escaped tokens while preserving their original evidence bytes
and offsets, including numeric dates that need an explicit interpretation.

Exercise selected PDF reporting and exact original export through physical
backup and restore. Recovery must review a current selection again, refuse
a changed selection, and keep historical original bytes exportable. The
fixture uses one portable profile and real publication without a PDF runtime.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
Keep the implemented design tied to the revision actually reviewed and
exercised. Distinguish the passing bounded-parallel run from the existing
API timeouts under default parallelism, and preserve the Linux-only scope
of the local qualification.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (34b7ebc)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 7m34s

Retained Markdown keeps escaped punctuation as evidence. Show its dates in
readable form so reviewers can interpret ambiguous numeric dates without
changing the stored tokens or the evidence submitted with their choices.

Document the backup configuration exclusion where the recovery guide links
to it, so operators know which settings they must restore separately.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (b83310d)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 6m16s

@wesm wesm self-assigned this Oct 3, 2026
@wesm
wesm merged commit 83c7a02 into main Oct 3, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant