Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
E2E Model Stack Alignment Design
历史归档:保留原设计或验收时的记录,不作为当前版本的安装、接口或实现指引。 当前入口见 开发文档;当时的版本、测试结论和未完成事项不追溯改写。
Date: 2026-08-14
Goal
Align the CLI end-to-end test document with the current README model-stack contract while keeping the suite deterministic and avoiding duplicate coverage unrelated to local parsing.
README Corrections
The startup configuration default is model.stack=auto, not light. Its effective value is selected from the detected device:
CPU -> light
accelerator -> full
model.stack is startup configuration and is not a supported key for mineru config set. The README must document MINERU_MODEL_STACK=<stack> and config.yaml as the supported overrides. Model download and verification examples must pass --stack <stack> explicitly when preparing a managed parse server.
E2E Profiles
The full E2E suite runs with MINERU_MODEL_STACK=light. This profile is deterministic across hardware and exercises all CLI behavior, including local Basic, Standard, and Advanced PDF parsing.
A focused mandatory full profile then exercises only local PDF parsing for Basic, Standard, and Advanced. It does not duplicate remote parsing, watch, scan, CRUD, telemetry, or maintenance cases because those behaviors do not depend on the model runtime stack.
The full profile must:
- Stop the current server.
- Start a replacement server with
MINERU_MODEL_STACK=fullin its environment. - Wait until the managed parse server is healthy.
- Force new Basic, Standard, and Advanced parses and verify
privacy=local,via=local, the requested tier, completed status, and non-null content. - Stop the server and restore the
lightprofile before later cases run.
Installation And Models
The E2E environment installs .[full] because the mandatory profile matrix includes the optional full runtime. The base package already contains the light runtime.
Setup downloads and verifies both Standard deployment model sets explicitly:
standard/light
standard/full
Each Standard model set also covers the corresponding Basic models and supports Advanced requests through a Standard managed server. Model preparation remains setup work and may use mineru-kit; formal CLI cases continue to use mineru only.
Tier Selection
Implicit quality-tier selection is:
standard -> basic -> error
Advanced remains available only when requested explicitly. An Advanced-only remote server does not provide an implicit default tier. Cached-result selection remains:
advanced -> standard -> basic -> flash
Verification
Documentation verification must confirm:
- No E2E setup step refers to the removed
standardextra. - Every setup model download and verification command specifies a stack.
- The main suite and isolated missing-model cases inherit the deterministic light profile.
- The mandatory full profile restores light before subsequent cases.
- Default-tier expectations contain Standard and Basic only.
- README examples use supported startup-configuration mechanisms.
- Markdown has no whitespace errors and all referenced CLI options exist.