fix(ops): surface pre-record schedule failures
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a06bfe-2a55-7ed3-bacd-879977b099bf
This commit is contained in:
parent
fc38ca0fdf
commit
9394c40e3a
5 changed files with 45 additions and 3 deletions
|
|
@ -99,6 +99,20 @@ def test_last_run_picks_newest_fired_at() -> None:
|
|||
assert summary["tasks_spawned"] == 2
|
||||
|
||||
|
||||
def test_activity_filter_excludes_unrelated_evidence_only_definitions() -> None:
|
||||
evidence = [
|
||||
{
|
||||
"activity_id": "00000000-0000-0000-0000-000000000999",
|
||||
"source": "state_hub_progress",
|
||||
}
|
||||
]
|
||||
|
||||
augmented = status.add_evidence_only_definitions([_definition()], evidence)
|
||||
selected = status.filter_definitions(augmented, [], ["Daily Check"])
|
||||
|
||||
assert [item["id"] for item in selected] == [ACTIVITY_ID]
|
||||
|
||||
|
||||
def test_validation_failure_wins_over_completed_run() -> None:
|
||||
run = {"run_id": "run-1", "activity_id": ACTIVITY_ID, "scheduled_for": None, "fired_at": "2026-06-26T07:00:10+00:00"}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue