add files

This commit is contained in:
김경종
2026-04-30 17:05:19 +09:00
parent f3e01b5a8c
commit 7e985ae94a
135 changed files with 41205 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# Step 0: reading-order-checks
## Read First
- /AGENTS.md
- /PLAN.md
- /PROGRESS.md
- /docs/HARNESS.md
- /docs/IMPLEMENTATION_PLAN.md
- /docs/ARCHITECTURE.md
- /docs/CONVERSION_POLICY.md
- /phases/2-marker-adapter/step2.md
## Task
Create reading-order verification helpers over normalized blocks.
Use page numbers and bounding boxes to detect obvious ordering anomalies in multi-column or inserted-text layouts.
## Sprint Contract
- Done means: reading-order checks produce diagnostics that later enrichment and evaluator steps can use.
- Hard thresholds: checks are deterministic; tests include a multi-column-like fixture; helpers do not reorder content silently.
- Files owned: `src/pdftomd/enrichment.py`, tests, `PROGRESS.md`, `phases/4-semantic-enrichment/index.json`.
- Dependencies: Phase 2 normalized block model.
## Acceptance Criteria
```powershell
python scripts\validate_workspace.py
.\venv\python.exe -m pytest tests
```
## Verification
1. Run the acceptance commands.
2. Confirm diagnostics are actionable and tied to page/block ids.
3. Update `PROGRESS.md` and this phase index.
## Do Not
- Do not override Marker ordering without tests.
- Do not render Markdown.
- Do not call Marker or Nougat.