Skip to content

Add adaptive source provenance and bounded recovery - #10

Merged
Tom-R-Main merged 4 commits into
mainfrom
codex/parser-020-provenance-and-safety
Oct 31, 2026
Merged

Tom-R-Main merged 4 commits into
mainfrom
codex/parser-020-provenance-and-safety

Conversation

@Tom-R-Main

@Tom-R-Main Tom-R-Main commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Adaptive batch and streaming extraction now share table-continuation decisions and retain section ancestry and optional glyph geometry. Schema 0.20.0 adds those records while preserving exact text views, source maps, and compatibility fields.

This also carries the two prerequisite local commits for bounded table-region and wrapped-statement assembly, which were not yet on main.

  • Bound decoded output across filters, predictors, fonts, Forms, and lazy object streams; preserve resource refusals through permissive recovery and CLI flag ordering.
  • Separate opposite writing directions during native line assembly.
  • Keep ligatures indivisible and ActualText at group precision. Validate document-global section ancestry before JavaScript streaming completion.
  • Fix both review findings: saturate deep numbering before arithmetic and bound outline traversal with visited-reference tracking and a depth limit.
  • Add four public CLI harnesses to CI, with uploaded evidence.
  • Refresh the exact Ubuntu Poppler package pin after the old revision disappeared from the runner's package index; retain OCR runtime-version checks and quality floors.
  • Rewrite the README around a runnable local example, supported outputs, and limits; move detailed usage/benchmarking into guides and update the changelog and schema documentation.

Validation on the final parser/adapter source:

  • Zig: 4,924 passed, 10 skipped; native, shared-library, and WASM builds passed.
  • JavaScript: all 380 tests passed with files run serially.
  • Both original failing PDFs now succeed in both JSONL formats; all 12 safety cases and four existing section cases pass.
  • All four new CI harness commands passed locally. The README's first command block and JavaScript example ran successfully, and all 34 local documentation links resolved.

Limits remain explicit: decoder budgets are per stage, fine geometry is optional, table continuation is heuristic, and broad real-document hierarchy/highlight accuracy remains unqualified. Legacy reading order stays the default; the experimental graph's existing diagnostic failures are not promoted or hidden.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T20:05:51.147518Z 2be33bc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Tom-R-Main
Tom-R-Main merged commit af4c180 into main Oct 31, 2026
6 checks passed
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.

1 participant