Expand description
Mobkit-side sidecar table for mob- and run-level labels.
Member-level labels are owned by meerkat-mob (they flow through
SpawnMemberSpec.with_labels() and out via MobMemberListEntry.labels).
Mob-level and run-level labels — for associating an external context like
repo, branch, customer, deployment, or environment with a mob or
a flow run — have nowhere to live in the upstream model. This module owns
that side table.
For v1 the table is in-memory only. Persistence behind MobStorage is a
future enhancement; restarts wipe the labels. The table is keyed by
MetadataScope so the same surface can serve mobs and runs uniformly.
Structs§
- InMemory
Metadata Store - In-memory persistent metadata store.
- Runtime
Metadata Table - In-memory label table keyed by
MetadataScope. - Sqlite
Metadata Store - SQLite-backed persistent metadata store.
Enums§
- Label
RpcResult - Outcome of dispatching a label RPC against a
RuntimeMetadataTable. - Metadata
Scope - Scope of a label set.
- Metadata
Store Error - Errors raised by
PersistentMetadataStoreimplementations.
Traits§
- Persistent
Metadata Store - Persistent storage for mobkit runtime metadata that must survive a gateway restart — currently the structural-events subscription cursor.
Functions§
- dispatch_
labels_ delete - Remove the label set for
scope. - dispatch_
labels_ get - Read the label set for
scope. - dispatch_
labels_ set - Replace the label set for
scope, parsinglabelsfrom RPC params. - labels_
to_ json_ value - Render a label map as a JSON object suitable for the wire format.
- parse_
labels_ param - Parse a JSON
labelsfield as a string→string map. - parse_
run_ id_ param - Pull a non-empty
run_idstring from RPC params.