sched: docs, probe retirement, MCP guard, coverage pins, executable example (T14)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user