The Design and Governance Engine for high-stakes research.
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:
- AI Draft: Generates PICO blocks and expands terms using ontologies (via
coreason-codex). - Human Governance: Allows experts to override or inject terms.
- Strict Validation: Checks structural integrity and PRESS guidelines.
- Immutable Registration: Locks and registers approved protocols (via
coreason-veritas).
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.
pip install coreason-protocolOr using poetry:
poetry add coreason-protocolFor a full list of dependencies, see Requirements.
- PICO Architecture: Structuring of research intent into Population, Intervention, Comparator, and Outcome.
- Ontology Expansion: Integration with
coreason-codexfor 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_termandinject_termcapabilities. - 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.
For detailed product requirements and architectural philosophy, see docs/product_requirements.md.