Core engine for Ploston - Deterministic Agent Execution Layer
Project description
ploston-core
Core engine for Ploston - Deterministic Agent Execution Layer.
Overview
ploston-core contains the shared engine components that both OSS and Enterprise packages depend on. It provides:
| Module | Description |
|---|---|
| Engine | Workflow execution engine with sequential, deterministic execution |
| Registry | Tool and workflow registries with auto-discovery |
| MCP | Model Context Protocol client connections |
| MCP Frontend | MCP server frontend (stdio/HTTP transport) |
| API | REST API framework (FastAPI-based) |
| Sandbox | Python sandbox with 7-layer security model |
| Template | Jinja2 template engine for parameter rendering |
| Telemetry | Structured logging and metrics |
| Config | Layered configuration with hot-reload |
| Errors | Structured, actionable error handling |
| Plugins | Extensible plugin framework |
Installation
pip install ploston-core
Or with uv:
uv add ploston-core
Quick Start
from ploston_core.engine import Engine
from ploston_core.registry import ToolRegistry
# Create engine with tool registry
registry = ToolRegistry()
engine = Engine(registry=registry)
# Execute workflow
result = await engine.execute(workflow)
Documentation
Detailed documentation is available in the docs/ directory:
Concepts
- How Ploston Works - Architecture overview and design principles
- Execution Model - How workflows execute step-by-step
- Security Model - 7-layer sandbox security for code execution
Reference
- Workflow Schema - Complete YAML schema for defining workflows
- Configuration Reference - All configuration options
- Error Codes - Error codes and troubleshooting guide
Architecture
- Implemented Architecture - Current architecture summary
Development
Prerequisites
- Python 3.12+
- uv (recommended)
Setup
# Clone the repository
git clone https://github.com/ostanlabs/ploston-core.git
cd ploston-core
# Install dependencies
uv sync
# Run tests
uv run pytest tests/unit/ -v
# Run linting
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
Running Tests
# Unit tests
uv run pytest tests/unit/ -v
# With coverage
uv run pytest tests/unit/ -v --cov=ploston_core --cov-report=term-missing
Related Packages
| Package | Description |
|---|---|
ploston |
OSS distribution (core + CLI) |
ploston-cli |
Command-line interface |
ploston-enterprise |
Enterprise features |
License
Apache-2.0 - see LICENSE for details.
Project details
Release history Release notifications | RSS feed
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 ploston_core-1.4.0.dev1770438724.tar.gz.
File metadata
- Download URL: ploston_core-1.4.0.dev1770438724.tar.gz
- Upload date:
- Size: 249.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d20f7bd411e748ee047aadfe60d4dc83fc529ddab4f0b4751d23bf84e7444b9
|
|
| MD5 |
eb048a5ab2c6fc7e4bebca8f33ba15c1
|
|
| BLAKE2b-256 |
a92147a35bb2c0048180b1e9342d650d35ae11ec659ce190da2a10e25408dc3f
|
Provenance
The following attestation bundles were made for ploston_core-1.4.0.dev1770438724.tar.gz:
Publisher:
trigger-downstream.yml on ostanlabs/ploston-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ploston_core-1.4.0.dev1770438724.tar.gz -
Subject digest:
4d20f7bd411e748ee047aadfe60d4dc83fc529ddab4f0b4751d23bf84e7444b9 - Sigstore transparency entry: 925833734
- Sigstore integration time:
-
Permalink:
ostanlabs/ploston-core@aa6f89c63ba35e7d7e64f82af2627fb0eae9f8ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ostanlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
trigger-downstream.yml@aa6f89c63ba35e7d7e64f82af2627fb0eae9f8ea -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file ploston_core-1.4.0.dev1770438724-py3-none-any.whl.
File metadata
- Download URL: ploston_core-1.4.0.dev1770438724-py3-none-any.whl
- Upload date:
- Size: 242.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1ad2fdb928c6e55392cc18af7f0a33a74a37444459cd3d299be71e75e96bfa3
|
|
| MD5 |
e83bef905932813a4d73568e557d046f
|
|
| BLAKE2b-256 |
e0a16e4fdbfdf079b4d17daca3f764cd680306ad47e707f2205845b60bf0cd2f
|
Provenance
The following attestation bundles were made for ploston_core-1.4.0.dev1770438724-py3-none-any.whl:
Publisher:
trigger-downstream.yml on ostanlabs/ploston-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ploston_core-1.4.0.dev1770438724-py3-none-any.whl -
Subject digest:
a1ad2fdb928c6e55392cc18af7f0a33a74a37444459cd3d299be71e75e96bfa3 - Sigstore transparency entry: 925833745
- Sigstore integration time:
-
Permalink:
ostanlabs/ploston-core@aa6f89c63ba35e7d7e64f82af2627fb0eae9f8ea -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ostanlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
trigger-downstream.yml@aa6f89c63ba35e7d7e64f82af2627fb0eae9f8ea -
Trigger Event:
workflow_run
-
Statement type: