Minimal host runtime for Cordis Core.
Project description
Cordis Runtime
Cordis Runtime is the minimal host bridge for Cordis Core. It does not call a model and it does not split tasks.
The semantic boundary is explicit:
user language
-> host/main model interprets intent
-> structured Task Contract
-> Cordis Runtime + Core
-> compact model context and control signal
For an agent with tool calling, the main model fills the begin arguments as
part of its normal turn. This does not require a second model call. A non-agent
application that accepts raw natural language must provide an optional Task
Interpreter. Task decomposition remains the responsibility of a Planner.
Minimal use
from cordis_core import CordisRuntime
from cordis_runtime import CordisHostRuntime
runtime = CordisHostRuntime(CordisRuntime("cordis-state.json"))
turn = runtime.begin({
"task": {
"goal": "Fix the login integration test",
"domain": "software",
"project_id": "my-app",
"strategy_id": "inspect_logs_first",
"stakes": "medium",
},
"complexity": 0.4,
"current_step": "Inspect the failing test and logs",
"constraints": ["Do not change the database schema"],
"acceptance_evidence": ["login integration test passes"],
})
# Send turn["model_context"] to the host's existing planner or main model.
The host calls check_action(...) before an action, observe(...) for any
plan/tool/artifact/test/error event, and finish(...) with observable evidence
after execution. When constructed with a CognitiveStore, Runtime retrieves a
small project-safe snapshot on begin, supports deduplicated query(...), and
persists the final episode through finish(...).
v0.1 boundary
Runtime provides:
- structured Task Contract validation through Core;
- task-local Focus State;
- deterministic control modes;
- compact model context;
- an experimental lexical drift heuristic, never a safety or attention guarantee;
- evidence-bound feedback delegation.
- optional
CognitiveStoreretrieval, event capture, and episode write-back.
Runtime does not provide natural-language interpretation, planning, model calls, tool execution, durable conversation memory, or an HTTP service.
check_action is deliberately conservative metadata: it reports lexical
overlap and obvious destructive terms. Hosts must not treat it as semantic
understanding, an authorization decision, or a complete attention-drift guard.
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 cordis_runtime-0.1.1.tar.gz.
File metadata
- Download URL: cordis_runtime-0.1.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f8cfec1dad01d41f79f4b0baf59b412aba89c76c0f436d26a27a85ba0f737f4
|
|
| MD5 |
dbf672c558b10d3eda47b4ce3a0b9989
|
|
| BLAKE2b-256 |
a1f61b2b5aa5e4085e0d55d7f45a5900226b86f5eb09e280f7c429e12fd06b44
|
Provenance
The following attestation bundles were made for cordis_runtime-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on ntoniorvn-blip/cordis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cordis_runtime-0.1.1.tar.gz -
Subject digest:
1f8cfec1dad01d41f79f4b0baf59b412aba89c76c0f436d26a27a85ba0f737f4 - Sigstore transparency entry: 2196030240
- Sigstore integration time:
-
Permalink:
ntoniorvn-blip/cordis@040119795c9c091f0cc05cf412120aeb2b044be1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ntoniorvn-blip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@040119795c9c091f0cc05cf412120aeb2b044be1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file cordis_runtime-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cordis_runtime-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef1554460c939b1ed96e7c39dc96d34b9e5c866b55dedde75a05d20e838c2a90
|
|
| MD5 |
a1acece29c1c2fec9839f68fd86aec1c
|
|
| BLAKE2b-256 |
563b67447d8b9ad384864ec423cf00f50814748a75a04c09b3a267a601ef7e9d
|
Provenance
The following attestation bundles were made for cordis_runtime-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on ntoniorvn-blip/cordis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cordis_runtime-0.1.1-py3-none-any.whl -
Subject digest:
ef1554460c939b1ed96e7c39dc96d34b9e5c866b55dedde75a05d20e838c2a90 - Sigstore transparency entry: 2196030423
- Sigstore integration time:
-
Permalink:
ntoniorvn-blip/cordis@040119795c9c091f0cc05cf412120aeb2b044be1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ntoniorvn-blip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@040119795c9c091f0cc05cf412120aeb2b044be1 -
Trigger Event:
workflow_dispatch
-
Statement type: