Repository navigation
test(vision): the model check runs the layout tier through process with its tier named - #286
Conversation
…th its tier named
The vision-pipeline pack's layout mode calls process(image, { tiers:
['document-ai'], forceCategory: 'document-layout' }). The model check read
layout through analyzeLayout only, so that route never ran with Florence-2
loaded. It now runs too, and must report the document-ai tier alone, one
page and the invoice's text.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideExtends the real-model vision check to exercise the layout mode used by the vision-pipeline pack through Sequence diagram for layout tier processingsequenceDiagram
participant Check as vision-models-check
participant Pipeline as VisionPipeline
participant Florence as Florence-2
participant Invoice as InvoiceImage
Check->>Pipeline: process(InvoiceImage, tiers: document-ai, forceCategory: document-layout)
Pipeline->>Florence: process invoice layout
Florence-->>Pipeline: layout page and extracted text
Pipeline-->>Check: result with tiers, layout, and text
Check->>Check: assert tiers equals document-ai
Check->>Check: assert layout.pages.length equals 1
Check->>Check: assert text matches invoice
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codex Review SummaryThis 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. |
PR Summary by QodoTest the named document-ai layout route with real models
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can tweak Display settings with a live preview to see your comment before it ships |
## [0.13.44](v0.13.43...v0.13.44) (2026-10-11) ### docs * twelfth round of audit follow-ups (the docs-alignment routes, the manifest paths) (#288) ([65268a8](65268a8)) ### fix * **memory:** guardedFetch counts the body on the wire and reads the network's NAT64 prefixes (#287) ([984997f](984997f)) ### test * **vision:** the model check runs the layout tier through process with its tier named (#286) ([7886ac2](7886ac2))
Summary
The vision-pipeline pack's
layoutmode (framerslab/agentos-extensions#132) callsscripts/vision-models-check.mjsread layout only throughanalyzeLayout, so that route never ran with Florence-2 loaded. The check now also runs it on the invoice and asserts that the result names thedocument-aitier alone, carries one page inlayout, and reads the invoice's text. The handwriting route the pack uses (tiers: ['handwriting']) was already in the check.Raised on framerslab/agentos-extensions#132 (Qodo: "Tier behavior lacks a real-pipeline test"): this job is where the packs' tier options meet the real models; a real pipeline in the extensions CI would download the models on every run.
How this was verified
The "Local vision tiers load and run" job runs on this pull request (the workflow's paths include
scripts/vision-models-check.mjs), with the models.Summary by Sourcery
Verify that the vision pipeline’s layout mode runs the named document-ai tier end to end through process.
Enhancements:
Tests:
Summary by CodeRabbit