扫 `status: reviewed` 但 `last_modified_by != Human` 的页面: reviewed("已审阅")语义 = 人类审阅过;LLM 自己写入的页面不该自称已审, 应保持 `draft`,由人类审阅后才改成 `reviewed` + `last_modified_by: Human`。 跳过 deprecated / 归档区(_is_exempt)。
(pages)
| 2072 | |
| 2073 | |
| 2074 | def 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 | |
| 2095 | def fmt_status_issues(items: list[dict]): |
no test coverage detected