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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kestrel_feature_workflows-0.4.0.tar.gz.
File metadata
- Download URL: kestrel_feature_workflows-0.4.0.tar.gz
- Upload date:
- Size: 403.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2940a4875fabc35e03b01e7b05e9c7bccee66e862e25b5dc0eae30de7a4df84
|
|
| MD5 |
a07436e66ba9a218beae70450b494917
|
|
| BLAKE2b-256 |
467fa0c376333a53089cee68416a0c62e2261327e7f522ece38869ddb0ca9d69
|
Provenance
The following attestation bundles were made for kestrel_feature_workflows-0.4.0.tar.gz:
Publisher:
publish.yml on KestrelSovereignAI/kestrel-feature-workflows
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kestrel_feature_workflows-0.4.0.tar.gz -
Subject digest:
d2940a4875fabc35e03b01e7b05e9c7bccee66e862e25b5dc0eae30de7a4df84 - Sigstore transparency entry: 2427934205
- Sigstore integration time:
-
Permalink:
KestrelSovereignAI/kestrel-feature-workflows@7bc30d021ec858600ec0126797f95c9f0d4b603a -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/KestrelSovereignAI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7bc30d021ec858600ec0126797f95c9f0d4b603a -
Trigger Event:
push
-
Statement type:
File details
Details for the file kestrel_feature_workflows-0.4.0-py3-none-any.whl.
File metadata
- Download URL: kestrel_feature_workflows-0.4.0-py3-none-any.whl
- Upload date:
- Size: 124.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f6c2aa4ac211c5992a4cd7ec3c5b8306a40562a222d288d47702e7382fd4c44
|
|
| MD5 |
76ddc8f8e5c23f2c08cb8bd277ab142f
|
|
| BLAKE2b-256 |
7df0ba352c37f03e2686f4fce704f196e3f626fb325e700839744035e4f630b7
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kestrel_feature_workflows-0.4.0-py3-none-any.whl -
Subject digest:
1f6c2aa4ac211c5992a4cd7ec3c5b8306a40562a222d288d47702e7382fd4c44 - Sigstore transparency entry: 2427934302
- Sigstore integration time:
-
Permalink:
KestrelSovereignAI/kestrel-feature-workflows@7bc30d021ec858600ec0126797f95c9f0d4b603a -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/KestrelSovereignAI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7bc30d021ec858600ec0126797f95c9f0d4b603a -
Trigger Event:
push
-
Statement type: