docs: 新项目默认采用轻量治理模式 (#33)

This commit is contained in:
ila
2026-09-04 14:14:12 +08:00
parent 8615a4048d
commit ecab899502
6 changed files with 31 additions and 17 deletions
+8
View File
@@ -132,6 +132,8 @@ class CoreDocumentTests(unittest.TestCase):
self.assertIn("## DevHarness 来源与基线", required)
def test_lightweight_governance_keeps_only_real_safety_boundaries(self) -> None:
agents = (ROOT / "AGENTS.md").read_text(encoding="utf-8")
profile = (ROOT / "docs/00-project-profile.md").read_text(encoding="utf-8")
workflow = (ROOT / "docs/01-workflow.md").read_text(encoding="utf-8")
setup = (ROOT / "docs/07-new-project-documentation-setup.md").read_text(
encoding="utf-8"
@@ -147,6 +149,12 @@ class CoreDocumentTests(unittest.TestCase):
self.assertIn("局部样式或布局", requirements)
self.assertIn("可直接实施", requirements)
self.assertIn("真实个人/生产数据", setup)
for text in (agents, profile, workflow, setup):
self.assertIn("默认采用轻量模式", text)
self.assertIn("DevHarness 上游模板自身继续采用标准模式", text)
for text in (agents, workflow, setup):
self.assertIn("不因此阻塞产品开发", text)
self.assertIn("单个任务风险高于项目默认模式时只升级该任务", setup)
def test_explicit_human_authorization_does_not_repeat_confirmation(self) -> None:
agents = (ROOT / "AGENTS.md").read_text(encoding="utf-8")