Skip to content

ogar-vocab: mint the 0x08 OCR PDF-to-text plan concepts (0x0805..0x0809)#172

Merged
AdaWorldAPI merged 2 commits into
mainfrom
claude/ocr-pdf-plan-mints
Jul 7, 2026
Merged

ogar-vocab: mint the 0x08 OCR PDF-to-text plan concepts (0x0805..0x0809)#172
AdaWorldAPI merged 2 commits into
mainfrom
claude/ocr-pdf-plan-mints

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Jul 7, 2026

Copy link
Copy Markdown
Owner

What

Five container-KIND mints for the tesseract-rs PDF→text integration plan
(pdf-to-text-ocr-v1.md Phase 0 D0.3) — the plan is the emit-seam declaration,
each row names its consumer phase (mint-on-emit guard honored, not pre-minting
blind):

concept id consumer phase
textline 0x0805 P1B word/box + P3E line formation
blob 0x0806 P3B/3D connected components
page_layout 0x0807 P3F/4A layout result
page_image 0x0808 P2 decode/threshold input
ocr_renderer 0x0809 P4B-D output kinds (fmt = classid custom-low, mirroring the network_layer pattern)

All lockstep regions updated: CODEBOOK tuples, class_ids consts + ALL,
builder Classes (AR shapes — content stays in content stores per the 0x08
section note / Osint zero-rows precedent), domain-enumeration pins (OCR 4→9),
count fuse ALL.len() 79→84.

Gates

cargo test -p ogar-vocab — 108/108 green; fmt + clippy -D warnings clean.

Pairing (two-sided drift fuse) — do NOT merge alone

Merge together with the lance-graph mirror commit: contract
ogar_codebook::CODEBOOK +5 rows (0x0805..0x0809) + lance-graph-ogar
COUNT_FUSE 79→84. The mirror commit is queued in lance-graph (plan D0.5) and
lands in the same timeframe as this merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p1

Five container-KIND mints for the tesseract-rs PDF->text integration plan
(pdf-to-text-ocr-v1.md Phase 0 D0.3) -- the plan is the emit-seam declaration,
each row names its consumer phase (mint-on-emit guard honored, not pre-minting
blind):

  textline     0x0805  segmented text line (box+baseline)   plan P1B + P3E
  blob         0x0806  connected-component container         plan P3B/3D
  page_layout  0x0807  layout-analysis result container      plan P3F/4A
  page_image   0x0808  rasterized page (decoded+normalized)  plan P2
  ocr_renderer 0x0809  output-rendering kind (fmt=custom-low) plan P4B-D

All lockstep regions updated: CODEBOOK tuples, class_ids consts + ALL,
builder Classes (AR shapes, content stays in content stores per the 0x08
section note), domain-enumeration pins (OCR 4->9), count fuse ALL.len()
79->84. The lance-graph contract mirror (ogar_codebook CODEBOOK + the
lance-graph-ogar COUNT_FUSE) is updated in the paired lance-graph commit,
per the two-sided drift-fuse contract.

Gates: cargo test -p ogar-vocab green; fmt + clippy -D warnings clean.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p1
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@cursor

cursor Bot commented Jul 7, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_5f2db245-1054-401b-9913-fc8c247b426a)

The reverse gate every_codebook_id_appears_in_class_ids_all caught the missed
lockstep region: the OgarClassView registry. Adds textline/blob/page_layout/
page_image/ocr_renderer entries (codebook order) + imports. 12/12 class-view
tests green; fmt + clippy -D warnings clean.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p1
@AdaWorldAPI AdaWorldAPI merged commit dd1c30d into main Jul 7, 2026
1 check passed
AdaWorldAPI pushed a commit that referenced this pull request Jul 7, 2026
…thoritative action table

tesseract-rs's pure-Rust OCR transcode has no source AST to lift ActionDefs
from (unlike every other producer in this workspace), so its eight
capabilities (recognize_line / recognize_page / extract_text_layer /
extract_page_image / render_text / render_tsv / render_hocr /
render_searchable_pdf) are declared directly in a new ocr_actions module —
real ActionDef values (identity/predicate/object_class/kausal) targeting
the already-minted 0x08XX class_ids concepts (textline/page_image/
ocr_renderer), plus a dependency-free OcrActionParam mirror of
ogar-from-schema's arago-parity ActionParam (kept local to avoid a cyclic
dep, since ogar-from-schema already depends on ogar-vocab).

No codebook/class_ids entries were added or changed — this table
consumes the existing 0x0805/0x0808/0x0809 mints from PR #172.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016b33swuXE23hKtqxsHu9p1
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.

2 participants