Skip to main content

agent from Development (mutable drafts) to Production (immutable artifacts)

Project description

coreason-publisher

The Regulatory Gatekeeper & Artifact Packager

CI Python License Ruff

coreason-publisher is the "Final Gatekeeper" of the CoReason platform. It orchestrates the transition of an agent from a mutable "Development Experiment" to an immutable "Clinical-Grade Product."

It solves the "Big AI" problem in GxP environments. Agents are not just code; they are a complex dependency of Logic (Prompts), Evidence (Test Results), and Binary Assets (Fine-Tuned Weights). This package bundles these diverse assets into a verifiable package, manages the Git LFS (Large File Storage) pointers for heavy models, and enforces a strict Two-Stage Governance Workflow (Submission $\to$ SRB Approval) before any code reaches production.

It can be run as a CLI tool for local development or as a Centralized Service (REST API) for platform integration.

Functional Philosophy

The agent must implement the Package-Propose-Approve-Merge Loop:

  1. The "Thick" Artifact: A release is monolithic. It must contain the exact Prompts, Code, Test Data, and Model Weights used during validation. If one piece is missing, the release is void.
  2. Governance as Code: The Scientific Review Board (SRB) approval is a digital state transition, not an email. coreason-publisher blocks the Git merge until a cryptographically signed approval from an authorized SRB member is registered.
  3. Semantic Versioning (SemVer): The tool manages versioning (v1.0 $\to$ v1.1) automatically based on the nature of the change (Patch/Minor/Major), preventing human error.
  4. Reproducibility: The "Council of Models" (the specific LLM versions used for testing) must be locked in the release manifest to ensure the test results are reproducible 5 years from now.

Key Features

  • Governance Service (API): Exposes REST endpoints (/propose, /release) for Foundry/Assay integration.
  • Artifact Bundling: Aggregates code, data, and models into a single deployment folder.
  • Git LFS Management: Automatically handles large files and model weights.
  • Governance as Code: Blocks merges until a cryptographically signed SRB approval is received.
  • Automated Versioning: Manages SemVer based on change types (Patch/Minor/Major).
  • Reproducibility: Locks the specific "Council of Models" used for validation.

Documentation

For detailed documentation, please refer to the docs/ directory or the deployed MkDocs site:

Quick Start

Prerequisites

  • Python 3.12+
  • Poetry
  • Git LFS

Installation

git clone https://github.com/CoReason-AI/coreason_publisher.git
cd coreason_publisher
poetry install

Server Mode

Run the service via Docker:

docker run -p 8000:8000 \
  -e GITLAB_TOKEN="<token>" \
  coreason-publisher:latest

CLI Usage

To propose a new release locally:

poetry run python -m coreason_publisher.main propose \
    --project-id <PROJECT_ID> \
    --draft-id <DRAFT_ID> \
    --bump minor \
    --user-id <USER_ID> \
    --description "Release description"

For more details, see the Usage Guide.

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

coreason_publisher-0.4.1.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

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

coreason_publisher-0.4.1-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file coreason_publisher-0.4.1.tar.gz.

File metadata

  • Download URL: coreason_publisher-0.4.1.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coreason_publisher-0.4.1.tar.gz
Algorithm Hash digest
SHA256 30d832464ea79c77c958f78e97df5c02158573ccbe8d3cdc34b5778c2e755e30
MD5 6c90b22b0e5a929c3e8eec592ba7aed1
BLAKE2b-256 e78e2702787a570ed3df6d310669b55a5393289b1c28e4b9f61744b2188bfab3

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_publisher-0.4.1.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-publisher

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

File details

Details for the file coreason_publisher-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_publisher-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17f54a260d79cc8b7cec924d14d774891dd38afc1695103b2a817c38980ab81b
MD5 522e3adf283601e56059c8b97ce2e374
BLAKE2b-256 08eb897ad3da0576990129af71c72ca8ee1d463cccf07ab3b8cb46aff7f84ead

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_publisher-0.4.1-py3-none-any.whl:

Publisher: publish.yml on CoReason-AI/coreason-publisher

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