sched: docs, probe retirement, MCP guard, coverage pins, executable example (T14)

This commit is contained in:
lda
2026-09-09 12:21:13 +07:00 Verified
parent e09c08899a
commit 9c4f7de086
17 changed files with 601 additions and 2398 deletions
+9
View File
@@ -117,3 +117,12 @@ def test_file_run_store_rejects_unsafe_run_id(tmp_path) -> None:
def test_workflow_run_record_validates_latest_checkpoint_id() -> None:
with pytest.raises(ValidationError):
run_record("run_123", "../outside")
def test_allocate_run_id_survives_fresh_instances_without_reuse(tmp_path) -> None:
first = FileRunStore(tmp_path)
assert first.allocate_run_id() == "run-000001"
assert first.allocate_run_id() == "run-000002"
# A fresh instance (restart boundary) must not reuse identities.
second = FileRunStore(tmp_path)
assert second.allocate_run_id() == "run-000003"