hwp_verify_5stage
Verifies HWP/HWPX documents through a 5-stage process: step log, body char count, file size, text snippet match, and optional layout PNG, ensuring document integrity after creation.
Instructions
문서를 TEST_CHECKLIST Phase 19 의 5단계 검증 기준으로 평가합니다. (v0.7.5.4 신규) Stage 1 step_log (호출자 보장), 2 body_verified (chars ≥ expected×0.5), 3 file_size (22KB/28KB 하한), 4 text cross-check (snippet 90%+ 매칭), 5 layout PNG (opt-in). overall_pass 는 stage 1-4 모두 PASS 시 true. 신규 문서 작성 후 자동 검증에 사용.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | 검증할 HWP/HWPX 파일 절대 경로 | |
| run_layout | No | stage 5 layout PNG 생성 실행 (기본 false, 시간 오래 걸림) | |
| expected_chars | No | 예상 본문 글자수 (stage 2 판정 기준, 없으면 chars > 0 만 확인) | |
| expected_text_snippet | No | 본문에 포함돼야 할 텍스트 샘플 (stage 4 판정) |