按六章补上已有数据的小附录,并把 Goel 强度与两种 Narayana 口径分开印出。

Co-Authored-By: Grok (agent loop)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jesse-ux
2026-10-22 16:22:45 +08:00
co-authored by Grok (agent loop) Cursor
parent 8444660f36
commit 4020c3958a
3 changed files with 1842 additions and 2 deletions
+13 -2
View File
@@ -2352,6 +2352,17 @@ def _interpretation_tools():
return attach_full_data_interpretation, opening_focus_block
def _append_parity_chapters(markdown: str, packet: dict, language: str) -> str:
try:
from scripts.report_render.parity_chapters import render_parity_chapters
except ModuleNotFoundError: # pragma: no cover
from report_render.parity_chapters import render_parity_chapters
extra = render_parity_chapters(packet, language).strip()
if not extra:
return markdown
return markdown.rstrip() + "\n\n" + extra + "\n"
def render_full_data_markdown(packet: dict) -> str:
"""Upstream `pl9_ai_density` branch at 23be1807, on this site's parity body."""
attach_full_data_interpretation, opening_focus_block = _interpretation_tools()
@@ -2386,7 +2397,7 @@ def render_full_data_markdown(packet: dict) -> str:
_pl9_english_report_title(packet),
)
rendered = _apply_local_report_conventions(rendered, language="en")
return rendered
return _append_parity_chapters(rendered, packet, "en")
zh_structured_appendix = re.sub(
r"^#\s+.*?(?:\n{2,}|\n)",
"",
@@ -2408,7 +2419,7 @@ def render_full_data_markdown(packet: dict) -> str:
)
rendered = _sanitize_pl9_ai_density_markdown(zh_markdown, _pl9_public_report_title(packet))
rendered = _apply_local_report_conventions(rendered, language="zh")
return rendered
return _append_parity_chapters(rendered, packet, "zh")
def read_full_data_domain(packet: Mapping, domain: str) -> dict:
File diff suppressed because it is too large Load Diff