Use when generating, updating, or validating third-stage reports in this Tingyun project, especially for report_templates/legal_diagnostic_report, instance-level report_config.yaml, direct-read diagnostics, generated chapter files, and final tex/pdf outputs.
围绕第三阶段报告实例目录,直接读取同批次 diagnostics/ 资产,生成可复核的 generated/ 中间产物和 output/ 报告结果。
适用:
report_templates/legal_diagnostic_report/artifacts/.../<batch_key>/reports/legal_diagnostic_report/report_context.json、章节 tex、assembled tex、pdf不适用:
report_input_bundle/优先输入:
report_config.yamlreport_templates/legal_diagnostic_report/spec.yamlchapter_guidelines.mddiagnostics/02_master_tables/*.csvdiagnostics/03_evidence_indexes/*.csv补充输入:
diagnostics/04_deep_dive/diagnostics/01_prepared_tables/preparation_summary.jsondiagnostics/00_raw_exports/export_registry.jsongenerated/report_context.jsongenerated/chapter_stubs.jsongenerated/chapters/*.texgenerated/assembled_main.texgenerated/missing_data_report.mdoutput/legal_diagnostic_report.texoutput/build_status.jsonoutput/legal_diagnostic_report.pdf(当编译器可用)report_config.yaml,确认 path_mode=repo_relative 和 direct-read 语义。spec.yaml,确认 required / optional assets、章节顺序、缺失规则。diagnostics/ 是否存在所需资产。report_context.json 与 missing_data_report.md。assembled_main.tex 和实例级 .tex。xelatex;如不可用,再使用容器化 XeLaTeX 回退。output/build_status.json。report_templates/,产物在批次实例目录。generated/ 是可追踪的中间层,不能只留一个最终 PDF。report_context.json 和 missing_data_report.md。.tex 和失败状态。generated/ 下已有可追踪的上下文、章节和缺失报告。output/build_status.json 与真实编译状态一致。report_input_bundle/。