Infra tags
The infra tag keys (openspec standard-tags, Infra Tag Keys), declared in this
package's naming fragment naming/virtufin.infra.tags.yaml (virtufin.infra.tags).
A tag is read only by people, clients and scripts and never changes what the
platform or a worker does. Clients, devkits and scripts take the key names from
the constants below and never spell them.
| Key | Meaning | Applies to | Value format |
|---|---|---|---|
name |
The display name, shown in place of the id | workers, triggers, groups | 1 to 128 characters, no control characters, no leading or trailing space |
managed-by |
What created the item: virtufin-app, virtufin-tui, or the script's or notebook's name |
workers, triggers, groups | as name |
endpoint |
The external host or host:port the worker talks to |
workers | host or host:port: no scheme, no credentials, no path |
The domain keys (type, scenario, world, universe, venue) are
domain-devkit's (virtufin.tags); this fragment never declares a business key.
Any other key stays free-form.
Constants and the value check
C# (Virtufin.Worker.DevKit) |
Python (virtufin.worker_devkit.tags) |
TypeScript (@virtufin/worker-devkit) |
|
|---|---|---|---|
name |
InfraTags.Name |
NAME |
TAG_NAME |
managed-by |
InfraTags.ManagedBy |
MANAGED_BY |
TAG_MANAGED_BY |
endpoint |
InfraTags.Endpoint |
ENDPOINT |
TAG_ENDPOINT |
| All keys | InfraTags.All |
INFRA_TAG_KEYS |
INFRA_TAG_KEYS |
| Fragment id | InfraTags.FragmentId |
TAGS_FRAGMENT_ID |
INFRA_TAGS_FRAGMENT_ID |
| Check one | InfraTags.Validate(key, value) |
validate_tag(key, value) |
validateInfraTag(key, value) |
| Check a map | InfraTags.Validate(tags) |
validate_tags(tags) |
validateInfraTags(tags) |
| Composed registry | InfraTags.Names |
names() |
infraNames() |
The check refuses an infra key whose value is outside its format with the naming
library's error (NamingException / NamingError), naming the key and never
the value, since a refused value may hold a credential:
from virtufin.worker_devkit import tags
tags.validate_tags({tags.MANAGED_BY: "rebalance-notebook", tags.ENDPOINT: "stream.binance.com:9443"})
tags.validate_tag(tags.ENDPOINT, "user:pw@api.example.com") # NamingError: tag 'endpoint' ...
Keys that are not infra keys pass unchecked here; check the domain keys with
domain-devkit. The TypeScript module embeds its fragment and imports nothing
from node:, so a browser bundle can import @virtufin/worker-devkit/dist/tags.js.