Skip to content

Properties, config and tags

Every value about a worker, a trigger or a group is exactly one of three kinds, sorted by who reads it (openspec resource-metadata). The kind decides where the value lives, who may change it, and whether changing it changes behavior.

Kind Who reads it Changing it
Property the platform (the WorkManager, its Runtime, the api) acts on it is a platform call, validated; may change behavior
Config the worker's own code is not possible: config is fixed with the worker, another value means another worker
Tag only people, clients and scripts never changes what the platform or a worker does

A new field states its kind when it is added. A value the platform acts on is a typed field (a property), never a config key or a tag (platform settings or config).

Infra versus domain

Properties are infra concepts only: topics, shards, pacing, secrets, schedules, ownership, groups, observed status and output topics. A business concept (a scenario, a world, a universe, a venue, a strategy, an instrument) is never a property of a worker, trigger or group: it is config when the worker reads it, a domain tag otherwise.

When the platform must act on a business grouping, the domain layer maps it onto infra: a scenario's workers go into a group (scenario.<S> is the domain's name for it, the group's id is a UUID) owned by the scenario's owners, and access is decided from the group, never from a scenario tag.

The standard tag keys are split the same way: infra keys (name, managed-by, endpoint) come from worker-devkit's naming fragment, domain keys (type, scenario, world, universe, venue) from domain-devkit's. The WorkManager stores, filters and returns tags without reading them, so it validates none of them; the devkits' tag helpers do.

Three kinds of relation

Each relation between items is expressed in exactly one way:

  • Containment: a group's parents and an item's groups. Stored, as properties; changed only by the group calls (AddToGroup, RemoveFromGroup, DeleteGroup), each a compare-and-swap on the member's own record. See groups.
  • Lifecycle: a trigger's owner_worker_id. Stored, as a property: deleting the worker deletes its owned triggers that are in no group, and clears the owner of those in a group.
  • Data flow: derived, never stored, from worker input topics, trigger target topics and the Runtime's recorded output topics. No item names another item as its parent or as a dependency.

Every field and its kind

The tables list every field of the worker (CreateWorkerRequest, WorkerInfo), the trigger (the api's ScheduleTriggerRequest, TriggerDetail) and the group (Group). A docs test checks that every field of those messages is here.

Workers

Field Kind Notes
id property a UUID, generated (version 7) or given; never changes
code_source property where the Runtime loads the code from; LoadCode replaces it
code_url property code_source's URL as listed, without credentials
mime_type property picks the engine
language property derived from mime_type
topics property the input topics the Runtime subscribes
config config stamped on every input; fixed with the worker
secrets property references the Runtime resolves; the values reach the worker
variables property references to platform variables the Runtime resolves
tags tag UpdateWorkerTags merges; never changes behavior
groups property containment; changed by the group calls
shard, shard_size, shard_index, shard_mode, claim_ttl_seconds, claim_max_parked property delivery split
batching property delivery
input_replay, library_reload, output_pacing property delivery and reload
status property observed
created_at property observed
output_topics, output_topics_truncated property observed: the topics the worker published to

Triggers

Field Kind Notes
id property a UUID, generated or given; the Dapr job name
schedule, due_time, repeats, ttl property when it fires
target_topic property where it fires (data flow)
owner_worker_id property lifecycle relation
tags tag UpdateTriggerTags merges
groups property containment; changed by the group calls

Triggers have no config.

Groups

Field Kind Notes
id property a UUID, generated (version 7) or given; never changes
parents property containment
owners property principals; inherited through every parent; enforced by access-control
scopes property name prefixes of state keys and topics; not inherited
tags tag UpdateGroupTags merges; the display name is the name tag
created property observed
deleting property a DeleteGroup started and has not finished