Skip to main content

Module metadata

Module metadata 

Source
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§

InMemoryMetadataStore
In-memory persistent metadata store.
RuntimeMetadataTable
In-memory label table keyed by MetadataScope.
SqliteMetadataStore
SQLite-backed persistent metadata store.

Enums§

LabelRpcResult
Outcome of dispatching a label RPC against a RuntimeMetadataTable.
MetadataScope
Scope of a label set.
MetadataStoreError
Errors raised by PersistentMetadataStore implementations.

Traits§

PersistentMetadataStore
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, parsing labels from 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 labels field as a string→string map.
parse_run_id_param
Pull a non-empty run_id string from RPC params.