Skip to main content

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 CognitiveStore retrieval, 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


Download files

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

Source Distribution

cordis_runtime-0.2.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

cordis_runtime-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file cordis_runtime-0.2.0.tar.gz.

File metadata

  • Download URL: cordis_runtime-0.2.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cordis_runtime-0.2.0.tar.gz
Algorithm Hash digest
SHA256 73fc1499bb9a8bad6e1c61da5abe09c73222446086fbe9fc9e5078474cded81b
MD5 3e8f35c8d6d4c1b29a65ae549514b828
BLAKE2b-256 a4a19123ca76f404a72170f08257e296bf6fa48d0fa12671d8149853dba35066

See more details on using hashes here.

Provenance

The following attestation bundles were made for cordis_runtime-0.2.0.tar.gz:

Publisher: publish-pypi.yml on ntoniorvn-blip/cordis

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

File details

Details for the file cordis_runtime-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cordis_runtime-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cordis_runtime-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77848ec1ec4f7fda3cc0307ce3ea29a98590074186e1867c6ae576fbaa283882
MD5 811356ab12003f7ac7f47b1dbb5a2726
BLAKE2b-256 56522d8ca132e932e909b9bfb517379387c8c4124fd13c16e1e2b95574ccdf87

See more details on using hashes here.

Provenance

The following attestation bundles were made for cordis_runtime-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on ntoniorvn-blip/cordis

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

Supported by

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