Skip to main content

coreason-protocol

The Design and Governance Engine for high-stakes research.

Organization License Build Status Code Style: Ruff Documentation

Description

coreason-protocol transforms natural language intent into a Rigorous, Audited, and Executable Search Protocol. It acts as the "Study Director" or Design Plane, ensuring that research protocols are designed with rigor, validated with logic (PRESS guidelines), and approved with authority before execution.

Unlike simple RAG retrieval, this package enforces a scientific workflow:

  1. AI Draft: Generates PICO blocks and expands terms using ontologies (via coreason-codex).
  2. Human Governance: Allows experts to override or inject terms.
  3. Strict Validation: Checks structural integrity and PRESS guidelines.
  4. Immutable Registration: Locks and registers approved protocols (via coreason-veritas).

Service Architecture (Service P)

coreason-protocol can be deployed as a microservice ("Service P") exposing a FastAPI-based REST API. This service handles the lifecycle of the protocol, from drafting to compilation, while integrating with the Veritas audit system.

For details on API endpoints and usage, see Usage Guide.

Installation

pip install coreason-protocol

Or using poetry:

poetry add coreason-protocol

Dependencies

For a full list of dependencies, see Requirements.

Features

  • PICO Architecture: Structuring of research intent into Population, Intervention, Comparator, and Outcome.
  • Ontology Expansion: Integration with coreason-codex for term hydration (Concept IDs).
  • Strategy Compilation: Translation of PICO models into executable queries for:
    • PubMed/Ovid (Boolean strings with MeSH/TiAb mapping).
    • LanceDB (Vector embeddings + metadata filters).
    • Graph (Cypher queries).
  • HITL Governance: Support for human review with override_term and inject_term capabilities.
  • Audit Fidelity: Soft-deletion of terms to maintain a complete history of design decisions.
  • Multi-Format Rendering: Export to HTML (visual diff), PRISMA-S text, and JSON-LD.

Documentation

For detailed product requirements and architectural philosophy, see docs/product_requirements.md.

Metadata

Release files for coreason-protocol 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coreason-protocol 0.3.0
File Size Uploaded
coreason_protocol-0.3.0.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coreason-protocol 0.3.0
File Interpreter ABI Platform
coreason_protocol-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.2 kB

Release files / coreason_protocol-0.3.0.tar.gz

Download URL coreason_protocol-0.3.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1bdd3b95b085ca26fadfa664391c6ba686040f770b09ab70b21412200d010c96
BLAKE2b-256 checksum
How to use checksums
1d0592c029628c035033386877a332ae93df6897abead46f60d409a72b8c4300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 30, 2026.

Transparency log

Release files / coreason_protocol-0.3.0-py3-none-any.whl

Download URL coreason_protocol-0.3.0-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4efd75dfc4354e294362e1a5fce631f3bce9f2e3107b36df4f3c372c330071d9
BLAKE2b-256 checksum
How to use checksums
00896a8aee0f0d92a5a706f119e293f44c655a56310392f0c5be02980a8d3d91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page