Skip to main content

arkitekt-spec

The wire format of an Arkitekt app: one definition of what an app is, shared by everything that produces or consumes it.

Model What it is Produced by Consumed by
AppManifest, Requirement who the app is, which services it needs arkitekt (from the App) kabinet
Inspection what the app declares (rekuest's action language, carried as JSON) arkitekt inspect all, inside the image arkitekt's plugin CLI, kabinet
Selector (cpu, ram, cuda, rocm, oneapi, label) where a flavour may run a flavour's config.yaml kabinet, deployers
Capability (container_engine, device, folder, host_network, linux_capability, shared_memory) what a flavour must be granted where it runs a flavour's config.yaml deployers, konstruktor
DeploymentsFile .arkitekt/deployments.yaml, the images a repo publishes arkitekt plugin publish kabinet's repo scan

It also owns the action language (arkitekt_spec.actions: definitions, ports, implementations) and the declaration layer (arkitekt_spec.declare): AppRegistry, the @app.action / @app.workflow / @app.declare machinery, structures, and the Task protocol a runtime implements. SDKs build on it; apps import the same names from arkitekt. It depends on pydantic, pyyaml and three small pure-python helpers, and on no runtime, transport or client.

Workflows and recovery

An implementation carries two claims the server keeps:

Field Values Meaning
execution PLAIN, WORKFLOW Only a WORKFLOW may call other actions; it is resumed when its agent dies, a PLAIN task ends LOST.
effects NONE, REPEATABLE, UNKNOWN, IRREVERSIBLE What running it again would do. Information for whoever decides about a lost task, never a rule.

code_hash pins a resume to the code that started the run. The errors a caller sees (AgentLost, NonDeterministicWorkflow, NotAWorkflowError, StateChanged) live in arkitekt_spec.declare.errors, and the workflow helpers (record, retry, hold, guard) are on the Task protocol.

Compatibility

Every envelope model ignores unknown keys. An inspection is written by the arkitekt inside an image and read by the host CLI, and deployments.yaml is written by the CLI and read by a kabinet server that upgrades on its own schedule. Adding a field is therefore a minor change an older reader survives.

Every dumped file names the arkitekt-spec that wrote it in spec_version ("8.0.0"): a release descriptor, deployments.yaml, builds.yaml, and each inspection, whose version is the image's and may be older than the file's. A reader picks its parser by it, as kabinet does with its RELEASE_PARSERS. A file without one, or with the number 1 older files have, is refused.

An agent says the same on Register. That says what it was written against. What a server may send it is what its features say, never its spec version.

Selectors and capabilities are the exception: they refuse unknown keys, because they are written by hand and a typo must not silently widen a placement constraint or change what is granted.

Capabilities

A selector says where a flavour may be placed; a capability says what it must be granted once it is: the container engine's socket, a device, a folder of the host, the host's network, a Linux capability, more shared memory. A capability names the container side only (target): the host side differs per machine and is the installer's to find, or to ask the person installing the app, who agrees to every capability first.

# a flavour's config.yaml
capabilities:
  - kind: container_engine
    name: engine
    description: Starts and stops the apps the organization installs
  - kind: device
    name: camera
    class: video
    target: /dev/video0
  - kind: folder
    name: data
    target: /data
    readOnly: false
    required: false

A GPU is a selector (cuda, rocm, oneapi), not a capability: a flavour placed on one is given it. There is no privileged, and SYS_ADMIN/ALL are refused: name what the app needs. A flavour without capabilities is written as one was before they existed, so the digest of an older descriptor does not change. An older reader ignores the field and places the flavour without granting anything, which the app notices at start.

from arkitekt_spec import load_deployments, dump_deployments

file = load_deployments(open(".arkitekt/deployments.yaml").read())

python -m arkitekt_spec prints the JSON Schema. The committed snapshot in tests/fixtures/deployments.schema.json makes every format change show up in review.

Metadata

Release files for arkitekt-spec 10.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arkitekt-spec 10.1.0
File Size Uploaded Provenance Actions
arkitekt_spec-10.1.0.tar.gz 334.0 kB Without provenance Details for arkitekt_spec-10.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arkitekt-spec 10.1.0
File Interpreter ABI Platform Actions
arkitekt_spec-10.1.0-py3-none-any.whl Python 3 none any Details for arkitekt_spec-10.1.0-py3-none-any.whl

Total release size: 722.1 kB

Release files / arkitekt_spec-10.1.0.tar.gz

Download URL arkitekt_spec-10.1.0.tar.gz
Size 334.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c43c47b4249ab8ac631189897f4613a8dfef682a437ad45af4b51dc8e735f6d3
BLAKE2b-256 checksum
How to use checksums
651693c93696858c4391344752a7e7a33bf585a11b293562cc4ed5dc6efade2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / arkitekt_spec-10.1.0-py3-none-any.whl

Download URL arkitekt_spec-10.1.0-py3-none-any.whl
Size 388.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
719104cb1e38aca13437cd3d737ad1c64738991e92cf6a91a4bd62fbb70158c1
BLAKE2b-256 checksum
How to use checksums
343c4add9bca2230a4c6926876e0eab851bfc158b02a6b0a06a3fce07eeadb19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for arkitekt-spec 10.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

10.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page