Skip to main content

kestrel-feature-workflows

First-class agent workflow orchestration for Kestrel Sovereign.

The package also installs a host-scoped WorkflowsHostFeature that owns the durable, engine-neutral operator run plane. It registers the public SDK RunService at host scope as workflows.runs version 1.0.0, persists accepted launches and their recovery outbox in the host database, and exposes a fenced producer lifecycle for installed execution features. The run plane does not add HTTP routes or engine-specific fields.

Absolute artifact links fail closed unless their exact HTTPS origins are listed in the package-owned KESTREL_WORKFLOWS_ARTIFACT_ORIGINS environment variable as a JSON array, for example ["https://artifacts.example.com","https://cdn.example.com:8443"]. Entries must be exact HTTPS origins: paths, queries, fragments, credentials, and non-HTTPS URLs are rejected. The value is limited to 16 KiB, 100 origins, and 2,048 characters per origin. Canonical /authorized/artifacts/<artifact_id> links remain same-origin and need no allowlist entry.

Alternate hosts may instead provide the existing workflows.artifact_origins context mapping. If both sources are present, their normalized origin sets must be identical or host-feature startup fails; otherwise the environment source is used when set. Malformed values fail startup without logging their contents.

Workflows is orchestration on top of the existing Signal Dispatcher. Stages dispatch signals (ACTION / ARTIFACT / COGNITION); durability, dedupe, locks, causation tracking, retention, and redaction all come from the dispatcher. Workflows adds what the dispatcher lacks: multi-stage sequencing and fan-out, per-stage gates (including an adversarial red_team_clear gate), reverse-order saga compensation, a cancellation barrier, DID-signed versioned workflow definitions, and constitutional-boundary enforcement.

Execution is lease-owned: runnable runs and open stage/compensation attempts are atomically claimed by an executor and heartbeated. Recovery reuses the persisted attempt idempotency key and dispatch linkage; it advances confirmed effects, never reruns completed stages, and fails safely when an external effect cannot be determined. This provides exactly-once workflow transitions and at-most-once effects where downstream idempotency supports it, not a blanket exactly-once guarantee for arbitrary external systems.

Installation

uv pip install kestrel-feature-workflows

The package registers WorkflowsFeature through kestrel_sovereign.features and WorkflowsHostFeature through kestrel_sovereign.host_features.

Development

uv sync --extra test
uv run --extra test pytest -q

Design

See docs/architecture/WORKFLOWS_FEATURE_DESIGN.md (v4.1) and WORKFLOWS_DEVELOPER_GUIDE.md in the kestrel-sovereign repository for the full design and the stage-to-signal reduction.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kestrel_feature_workflows-0.4.0.tar.gz (403.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kestrel_feature_workflows-0.4.0-py3-none-any.whl (124.1 kB view details)

Uploaded Python 3

File details

Details for the file kestrel_feature_workflows-0.4.0.tar.gz.

File metadata

File hashes

Hashes for kestrel_feature_workflows-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d2940a4875fabc35e03b01e7b05e9c7bccee66e862e25b5dc0eae30de7a4df84
MD5 a07436e66ba9a218beae70450b494917
BLAKE2b-256 467fa0c376333a53089cee68416a0c62e2261327e7f522ece38869ddb0ca9d69

See more details on using hashes here.

Provenance

The following attestation bundles were made for kestrel_feature_workflows-0.4.0.tar.gz:

Publisher: publish.yml on KestrelSovereignAI/kestrel-feature-workflows

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kestrel_feature_workflows-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kestrel_feature_workflows-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f6c2aa4ac211c5992a4cd7ec3c5b8306a40562a222d288d47702e7382fd4c44
MD5 76ddc8f8e5c23f2c08cb8bd277ab142f
BLAKE2b-256 7df0ba352c37f03e2686f4fce704f196e3f626fb325e700839744035e4f630b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for kestrel_feature_workflows-0.4.0-py3-none-any.whl:

Publisher: publish.yml on KestrelSovereignAI/kestrel-feature-workflows

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page