Proteum
Turn observed events into typed goals and policy-checked capability calls, with explicit state at every step.
Why
Model-driven runtimes often hide state changes and tool calls inside one loop. Proteum separates the loop into typed stages, then puts deterministic checks between model output and execution. The architecture is the point of v0.1.
Install
git clone https://github.com/xhillman/proteum.git
cd proteum
uv sync --locked
Requires: Python 3.14+ and uv. The included examples need no API key or network access after installation.
Quick start
uv run python examples/hello_proteum.py
Hello, world!
Task status: completed
Features
- Typed reasoning. Pydantic contracts validate model-generated Goals, Tasks, and Actions before Proteum uses them.
- Policy-checked execution. Every capability call crosses an authorization boundary before local code runs.
- Explicit state. Objects and Facts live in a World Model instead of a prompt transcript.
- Optional persistence. One
databaseargument stores Objects, Facts, Events, Goals, Tasks, and execution records in SQLite. - Offline tests.
FakeModelreturns queued structured responses for deterministic examples and tests.
Usage
Register a capability
Capabilities are asynchronous functions. Proteum derives their input schema from the function signature and registers them with the policy boundary.
@app.capability(
name="diagnostics.inspect_ci",
effects=("reads_ci_results",),
)
async def inspect_ci(repository: str) -> dict[str, str]:
return {"repository": repository, "status": "failed"}
Persist state between sessions
In-memory storage is the default. Pass a database path when state must survive
the current Proteum instance.
app = Proteum(model=model, database="proteum.db")
await app.start()
try:
await app.publish(event)
finally:
await app.stop()
restarted = Proteum(model=new_model, database="proteum.db")
repository = restarted.world.get_object("repo:proteum")
await restarted.stop()
stop() ends the session and closes resources owned by the application. Create
a new instance to load the SQLite state.
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
model |
Model |
Required | Produces structured Goal, Task, and Worker decisions. |
database |
str | Path | None |
None |
Enables SQLite persistence when set. |
world |
WorldModel | None |
In-memory | Replaces Object and Fact storage. |
memory |
MemoryStore | None |
In-memory | Replaces contextual Memory storage. |
event_bus |
EventBus | None |
In-memory | Replaces Event delivery. |
policy |
PolicyEngine | None |
SimplePolicyEngine |
Authorizes capability requests. |
clock |
Clock | None |
SystemClock |
Supplies timestamps for runtime behavior. |
database owns the World Model and Event Bus composition. Do not combine it
with world or event_bus. Memory remains in-process when SQLite is enabled.
How it works
- An Event enters Proteum and updates recognized World Model Facts.
- Attention decides whether the Event deserves further processing.
- The Executive proposes a Goal, and the planner creates one Task.
- The Worker receives bounded Context and may request a registered capability.
- Policy authorizes the request. Execution records the result and updates the Task, Goal, and World Model.
The full path is:
Event
→ World Model
→ Attention
→ Goal
→ Task
→ Context
→ Worker
→ Capability
→ Policy
→ Execution
→ Result
→ World Model
Development
git clone https://github.com/xhillman/proteum.git
cd proteum
uv sync --locked
uv run ruff check .
uv run pyright
uv run pytest
Both examples use FakeModel. Development and test runs do not need external
services.
Roadmap & known limitations
- Build the v0.1 package and run both examples from a fresh installation.
- Tag and publish v0.1 after the release gate passes.
- SQLite preserves records, but v0.1 does not resume unfinished Goals or Tasks.
- Memory remains in-process. Persistent Memory is post-v0.1 work.
- Not planned for v0.1. Distributed execution, dynamic Workers, plugin systems, and production-readiness claims.
Metadata
Release files for proteum 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proteum-0.1.0.tar.gz | 113.6 kB | With provenance | Details for proteum-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proteum-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for proteum-0.1.0-py3-none-any.whl |
Total release size: 179.2 kB
Release files / proteum-0.1.0.tar.gz
| Download URL | proteum-0.1.0.tar.gz |
|---|---|
| Size | 113.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a06171277d6ae15c623917c810036272fd632fa57749a797edc8da97f1719b20
|
|
BLAKE2b-256 checksum How to use checksums |
eada07d2014ce5e819341db06eef214c04d1f958f8d5c03cb98e65feaf3479cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logRelease files / proteum-0.1.0-py3-none-any.whl
| Download URL | proteum-0.1.0-py3-none-any.whl |
|---|---|
| Size | 65.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f37aa4d7107327ba5b63db2831027a5378390af2c6ed8d5f957fb07f61c43d6
|
|
BLAKE2b-256 checksum How to use checksums |
1f9f860ee4a60ae563a9e5e4a674fbc5b97f6b88f08d604b2267795eff35042b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logSecurity for proteum 0.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for proteum-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logA 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.