omnigraph/db/run_registry.rs
1// The Run state machine has been removed. Mutations now write directly
2// to target tables and use the publisher's `expected_table_versions`
3// CAS for cross-table OCC; `__run__<id>` staging branches and the
4// `_graph_runs.lance` state machine no longer exist.
5//
6// What remains is the branch-name predicate, kept as a defense-in-depth
7// guard against users naming a public branch `__run__*`. A future
8// production sweep of legacy `_graph_runs.lance` rows and stale
9// `__run__*` branches will let this predicate (and this file) go too.
10
11pub(crate) const INTERNAL_RUN_BRANCH_PREFIX: &str = "__run__";
12
13pub(crate) fn is_internal_run_branch(name: &str) -> bool {
14 name.trim_start_matches('/')
15 .starts_with(INTERNAL_RUN_BRANCH_PREFIX)
16}