MCPcopy Create free account
hub / github.com/Qinbf/groundmap / list_status_issues

Function list_status_issues

scripts/k.py:2074–2092  ·  view source on GitHub ↗

扫 `status: reviewed` 但 `last_modified_by != Human` 的页面: reviewed("已审阅")语义 = 人类审阅过;LLM 自己写入的页面不该自称已审, 应保持 `draft`,由人类审阅后才改成 `reviewed` + `last_modified_by: Human`。 跳过 deprecated / 归档区(_is_exempt)。

(pages)

Source from the content-addressed store, hash-verified

2072
2073
2074def list_status_issues(pages) -> list[dict]:
2075 """扫 `status: reviewed` 但 `last_modified_by != Human` 的页面:
2076 reviewed("已审阅")语义 = 人类审阅过;LLM 自己写入的页面不该自称已审,
2077 应保持 `draft`,由人类审阅后才改成 `reviewed` + `last_modified_by: Human`。
2078 跳过 deprecated / 归档区(_is_exempt)。
2079 """
2080 out = []
2081 for page in pages:
2082 if _is_exempt(page):
2083 continue
2084 if page.status == "reviewed" and page.last_modified_by != "Human":
2085 out.append({
2086 "path": page.path,
2087 "title": page.title,
2088 "type": page.type,
2089 "status": page.status,
2090 "last_modified_by": page.last_modified_by,
2091 })
2092 return out
2093
2094
2095def fmt_status_issues(items: list[dict]):

Callers 2

health_reportFunction · 0.85
_main_implFunction · 0.85

Calls 1

_is_exemptFunction · 0.85

Tested by

no test coverage detected