Skip to content

standard-tags Specification

Purpose

Documented tag keys for workers, triggers and groups, split by layer: infra keys from the infra layer, domain keys from domain-devkit, so every client, devkit, script and view reads and writes the same keys with the same meaning, and infra never defines a business key.

Requirements

Requirement: Infra Tag Keys

worker-devkit SHALL define the infra tag keys in its naming fragment, with constants for Python, TypeScript and C#, documenting each key's meaning, scope and value format: name (display name; workers, triggers, groups), managed-by (what created the item: virtufin-app, virtufin-tui, or a script's or notebook's name; workers, triggers, groups) and endpoint (the external host or host:port a worker talks to, no credentials, no path; workers).

Scenario: Infra keys

  • WHEN worker-devkit's naming fragment is read
  • THEN it SHALL define name, managed-by and endpoint, and no business-domain key

Requirement: Domain Tag Keys

domain-devkit SHALL define the domain tag keys in its naming fragment, with constants for Python, TypeScript and C#, documenting each key's meaning, scope and value format: type (a registry kind such as an atomic strategy's name), scenario, world, universe and venue.

Scenario: Domain keys

  • WHEN domain-devkit's naming fragment is read
  • THEN it SHALL define type, scenario, world, universe and venue

Requirement: Other Tag Keys

Keys outside the infra and domain sets SHALL remain allowed and free-form, and SHALL NOT reuse a standard key with another meaning.

Scenario: A script's own key

  • WHEN a script tags its workers run=2026-12-02
  • THEN the platform SHALL store and filter by it like any tag

Requirement: Standard Tags Written Through Constants

Clients, devkits and examples SHALL take standard key names from the owning devkit's constants and SHALL NOT spell them.

Scenario: A client tags a new connection

  • WHEN the app connects a feed from a preset
  • THEN the feed worker SHALL carry name, managed-by=virtufin-app and endpoint (worker-devkit constants), and world, universe and venue (domain-devkit constants)

Requirement: Standard Tag Values Checked by Clients and Devkits

Clients and devkits SHALL refuse to write a standard key with a value outside its documented format, naming the key. The WorkManager and the api SHALL NOT interpret standard keys; they store them like any tag.

Scenario: An endpoint with credentials

  • WHEN a script sets endpoint to user:pw@api.example.com
  • THEN the devkit SHALL refuse it, naming endpoint

Requirement: Replaced Tag Keys

The following keys SHALL NOT be written or read anywhere: - feedowner, replaced by membership of the feed definition's group (feed-definitions); - source: its client-identity use is replaced by managed-by, and its code-origin use by the worker's own code_url; - role: a connection is recognized by its worker type.

A one-time migration SHALL rewrite these tags on existing workers.

Scenario: After the migration

  • WHEN the migration has run on a context
  • THEN no worker SHALL carry feedowner, source or role
  • AND every former feedowner=<name> feed SHALL belong to the group of definition <name>

Requirement: Trigger Tags

The api's Trigger service SHALL let clients set tags on a trigger: - when scheduling (ScheduleTriggerRequest.tags), the display name being the name tag; - afterwards (UpdateTriggerTags, item-identity), without changing its schedule, its next firing or its groups.

TriggerDetail.tags SHALL return them, and a tag change SHALL publish sys.api.trigger.scheduled again.

Scenario: Retag a trigger without moving it

  • WHEN a client sets managed-by=rebalance-notebook on a cron trigger that fires next at 12:00
  • THEN the trigger SHALL still fire next at 12:00, with the new tag