📝 docs(tsl-syntax): enforce two-stage fact ownership workflow
This commit is contained in:
@@ -837,7 +837,7 @@ def build_concept_map(references_dir: Path = DEFAULT_REFERENCES_DIR) -> list[tup
|
||||
continue
|
||||
if section.heading_path != (DUTY_HEADING,):
|
||||
continue
|
||||
summary = _duty_summary(section.body)
|
||||
summary = _plain_text_summary(section.body, limit=600)
|
||||
if not summary:
|
||||
continue
|
||||
seen_pages.add(page_name)
|
||||
@@ -850,8 +850,8 @@ def render_concept_map(entries: list[tuple[str, str, str]]) -> str:
|
||||
lines = [
|
||||
"# TSL 概念地图",
|
||||
"",
|
||||
"把自然语言需求映射到该查哪个 TSL 概念,随后仍用 `--query` 取精确语法。",
|
||||
"本清单不含语法细节,也不替代 lookup;用命中专题里的关键语法词组成查询。",
|
||||
"把自然语言需求映射到该查哪个 TSL 概念,随后仍用 --query 获取候选、用 --section 取回事实正文。",
|
||||
"本清单不含可照写语法,也不替代精确章节取回。",
|
||||
]
|
||||
for page_name, page_title, summary in entries:
|
||||
lines.extend(["", f"## {page_title}", "", summary])
|
||||
|
||||
Reference in New Issue
Block a user