实现本地 Markdown 清洗评审器

This commit is contained in:
2026-08-24 01:02:16 +08:00
parent 80001a8ab9
commit ac798a2610
39 changed files with 9357 additions and 119 deletions
+21
View File
@@ -109,6 +109,27 @@ def test_run_experiment_publishes_manifest_reports_diff_and_preserves_inputs(tmp
assert (result.run_directory / "documents/second/changes.diff").read_bytes() == b""
manifest = json.loads((result.run_directory / "manifest.json").read_bytes())
locator = json.loads((result.run_directory / "review-locator.json").read_bytes())
assert locator == {
"schema_version": 1,
"run": {
"run_id": "local-review",
"run_directory": str(result.run_directory.resolve()),
"manifest_path": "manifest.json",
},
"documents": [
{
"document_id": "first",
"source_path": str(first_path.resolve()),
"input_sha256": manifest["documents"][0]["input_sha256"],
},
{
"document_id": "second",
"source_path": str(second_path.resolve()),
"input_sha256": manifest["documents"][1]["input_sha256"],
},
],
}
assert manifest["run"]["run_date"] == "2026-08-22"
assert manifest["run"]["utc_offset"] == "+08:00"
assert manifest["run"]["started_at_utc"] == "2026-08-22T02:30:00Z"