Skip to content

Components and versions

A component is the umbrella term for the kinds of artifact a developer publishes: data type, method, workflow type and material. Every component is identified by a fully-qualified version reference and lives in a state that determines whether it can be edited.

Reference shape

group:id:version
  • group is the namespace (e.g. simscale.physics.dimensionals.scalars, simscale.test, or your own <org>.<team>).
  • id is the component's own name (e.g. length, native-test, microclimate). Hyphenated; matches the component's directory name in workflow-components.
  • version follows semantic versioning: major.minor.patch, plus a state suffix that varies by lifecycle stage.

Examples: - simscale.physics.dimensionals.scalars:length:1.0.0 — released. - simscale.test:native-test:1.0.0-SNAPSHOT-2026-05-15-1 — snapshot (date + sequence disambiguate multiple snapshots of the same semver). - simscale.test:native-test:1.0.0-RC-1 — first release candidate.

Version states

Component versions move through a lifecycle:

SNAPSHOT — immutable from creation. Multiple snapshots of the same semver can exist simultaneously, each identified by a date and sequence number suffix (1.0.0-SNAPSHOT-2026-05-15-1). Each build produces a new snapshot; prior snapshots remain in the registry. Use this during development.

RELEASE_CANDIDATE — a snapshot promoted for review. Identified by an RC number suffix (1.0.0-RC-1, 1.0.0-RC-2, …). Immutable. Multiple RCs for the same semver can coexist; any of them can be released as long as the semver has not yet been released.

RELEASED — immutable and the canonical version for that semver. Only one released version per major.minor.patch can exist. Once released it can never change; bumping requires a new version number.

DEPRECATED / ARCHIVED — see Archiving and deprecation below.

The typical progression:

SNAPSHOT → RELEASE_CANDIDATE → RELEASED → (DEPRECATED → ARCHIVED)

A snapshot or release candidate that is never going to be released can be archived directly, without passing through the released states — see Archiving and deprecation.

Releasing is a two-step operation: promote a snapshot to a release candidate, then release the RC — see how-to: release a component.

The release is irreversible. Once registered, a RELEASED version cannot be edited or deleted. Only re-think the release if the registry has rolled back to an earlier point in time, which is rare and disruptive.

Versioning rules

Components on the registry follow these rules:

  • First-time registration. Any version is acceptable as long as no version of the component exists yet.
  • Subsequent registration of an existing component. The new version must be exactly one of the next possible versions sequentially per semver. (E.g. after 1.2.3 you can register 1.2.4, 1.3.0, 2.0.0 — not 1.5.0 skipping minors.)
  • A snapshot cannot be registered if a released version of the same semver already exists. The recommended cycle is the reverse: iterate on snapshots, then release.
  • Which of the three to bump is the author's call. For data types the recommendation is: patch when the schema is unchanged, minor when the schema changes but every existing instance still validates, major otherwise — see data-types.md.

Dependencies between components

A component declares its dependencies in the dependencies { } block of its .kts:

dependencies {
    dataType("simscale.physics.dimensionals.scalars:length:1.0.0-SNAPSHOT-latest")
    method("simscale.test:native-test:1.0.0-SNAPSHOT-latest")
    workflowType("simscale.foo:other-workflow:1.0.0-SNAPSHOT-latest")
}

Three things to know:

  • The reference's version qualifier decides snapshot vs released. A bare version (…:1.0.0) resolves only the released version. To depend on a snapshot, put the qualifier in the reference: …:1.0.0-SNAPSHOT-latest floats to the newest snapshot of that base version, or pin an exact one like …:1.0.0-SNAPSHOT-2026-05-15-1. For tutorials and snapshot-state components it's typical to track a snapshot; released components pin to released dependencies.
  • Dependencies are typed by kind. dataType(...), method(...), workflowType(...) — different functions because the resolver fetches different sidecar JSONs per kind.
  • Transitive resolution happens automatically. When you simkit component register a workflow type, the registrar walks the entire dependency closure and registers anything missing first. You don't need to register dependencies by hand.
  • All dependencies must be released before you can release a component. The simkit component release command enforces this.

Where components live

  • Build time: components resolve from ~/.workflows/repository/{data-types,methods,workflow-types}/<ref>.<sidecar>.json (the local on-disk cache, populated by prior builds and by remote fetches) first, then from the configured registry on a cache miss.
  • Registry side: components live in the component registry.

Archiving and deprecation

Two soft lifecycle states beyond release:

  • Deprecated — still works, but flagged as not-recommended-for-use. New versions can still be registered. Set via simkit component deprecate.
  • Archived — can no longer be used. Set via simkit component archive, reversed with unarchive.

What the states enforce

Operations on a component version consider the lifecycle states of its dependencies, with direct dependencies weighing more than transitive ones:

Finding Direct dependency Transitive dependency
Archived operation is blocked operation passes, with a warning
Deprecated operation passes, with a warning operation passes, with a warning

This applies to registering, promoting, and releasing a component version, to creating a workflow and creating a new workflow version, including migrating a workflow onto another workflow type version (an archived workflow type version itself already blocks, and its dependencies are considered), and to creating data (the data type's dependencies are considered; an archived or non-data-type data type itself already blocks, and a deprecated data type itself warns).

Starting a workflow run is never blocked by lifecycle states: a run replays an immutable, already-admitted configuration and adds nothing new to the dependency graph, so even a years-old workflow keeps running and keeps producing the same result. Run creation only warns — about the workflow type's own retired state (workflow-type-deprecated, workflow-type-archived) and about deprecated or archived versions anywhere in its dependency closure.

The warnings arrive in the operation response's Validation-Warnings header as semicolon-separated warning codes; the detailed findings come from the component registry's dependency validations endpoint (for workflows, from the workflow repository's dependency validations endpoint). The simkit CLI prints them after the affected commands.

Both apply to a component group, a component, or a single component version — the reference you pass decides which:

simkit component archive simscale.test                        # group
simkit component archive simscale.test:native-test            # component
simkit component archive simscale.test:native-test:1.0.0      # version

Archiving works bottom-up: a group needs all its sub-groups and components archived first, a component needs all its versions archived first, and a version needs every version depending on it archived first.

Retiring a version that was never released

A released version has to be deprecated before it can be archived, so that consumers get a warning period. Every other state archives directly — pass the snapshot or release-candidate reference:

simkit component archive simscale.test:native-test:1.0.0-SNAPSHOT-2026-05-15-1
simkit component archive simscale.test:native-test:1.0.0-RC-2

This is the way to retire development leftovers. Deleting a version requires that nothing at all depends on it, which is often not true of an abandoned snapshot; archiving only requires the dependents to be archived as well. A newer version that merely migrates from the archived one is not such a dependent: a migration source stays usable for migration in every state.

Archiving a snapshot or release candidate does not consume the version number. The semantic version stays free, so 1.0.0 can still be registered, promoted and released afterwards, and the bare 1.0.0 reference keeps pointing at whichever version is eventually released.

unarchive returns a version to the state it was archived from: an archived snapshot becomes a snapshot again, an archived release candidate keeps its release-candidate number, and an archived deprecated version returns to deprecated.

Cross-references