History is kept by flow id: runs, cascades, rollups and events file the id in their flow column and nodes as <flow id>.<node>, the API answers flow plus flow_name and shows and takes nodes as <key>.<node>; events carry flow_id from the moment they are published; run queue items, the stage cache and cached curves keep ids and keys apart; endpoints, the brain graph, device bindings and search name the id to open

This commit is contained in:
2026-11-02 19:01:19 +01:00
parent e6027af8fe
commit d4a1b1db47
34 changed files with 1374 additions and 329 deletions
+4 -4
View File
@@ -22,14 +22,14 @@ def test_a_tombstone_stays_while_history_names_its_id(db: Session) -> None:
db.add(
Run(
id="tomb-run",
flow="wren_train",
flow_id="wren_train",
for_node="f_trainee.lights",
created_at=now,
)
)
db.add(Run(id="tomb-own", flow="f_gonegone", created_at=now))
db.add(MetricBucket(flow="other", node="f_measured.sensor", bucket=now))
db.add(EngineEvent(ts=now, type="audit", flow="f_forgotten_too"))
db.add(Run(id="tomb-own", flow_id="f_gonegone", created_at=now))
db.add(MetricBucket(flow_id="other", node="f_measured.sensor", bucket=now))
db.add(EngineEvent(ts=now, type="audit", flow_id="f_forgotten_too"))
db.commit()
assert graves.recorded("f_trainee") == "trainee"