收紧解析资源与异步取消清理边界 - #5
Merged
Merged
Conversation
Constraint: Preserve DOCX logical-flow semantics and prompt async cancellation Rejected: Regenerating private replay baselines or guessing Strict OOXML conversion Confidence: High Scope-risk: Internal PDF limits, temp cleanup, PPTX preflight, and empty-content messages Tested: uv run --frozen pytest -q; Ruff check and format; ty check; uv build; private corpus gate Not-tested: Strict OOXML and flat-OPC compatibility without representative fixtures Known-gate: M2 private replay request-sequence mismatch reproduces on base ee26984
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
v0.1.0 复审确认了几处需要立即收紧的资源与清理边界。本 PR 在不改变公开 API 的前提下补齐回归测试并修复。
变更
ppt/presentation.xml预读幻灯片数量,在完整 PPTX 提取媒体与内容前执行max_pages校验,同时保留提取后的防御性校验。NoUsableContentError。兼容性边界
验证
uv sync --all-groups --frozenuv run --frozen pytest -q:599 passed,9 skippeduv run --frozen ruff check .uv run --frozen ruff format --check .uv run --frozen ty check src testsuv builduv run --frozen pytest tests/test_acceptance_corpus.py -q --corpus-dir=@local:12 passed已知本地门禁状态
M2 私有确定性回放为 14 passed、1 skipped、1 failed,失败原因是
request sequence mismatch。相同命令在未修改的基线提交ee26984上得到完全相同结果,确认不是本 PR 引入;未通过重生成私有 replay baseline 绕过该门禁。