Skip to main content

coreason-scribe

Project description

coreason-scribe

The "Compliance Officer in a Box" | Unified GxP Documentation Engine

CI/CD codecov Python Ruff pre-commit Poetry License

Executive Summary

coreason-scribe is the GxP documentation automation engine for the CoReason ecosystem. It addresses the "Validation Gap" where documentation inevitably drifts from code.

By treating Documentation as Code, coreason-scribe parses your agent's logic, uses AI to generate human-readable summaries (System Design Specifications), enforces Risk-Based Traceability (Requirements ↔ Tests), and facilitates a rigorous "Draft-Review-Sign" workflow. It ensures that no release is published without a cryptographically signed artifact proving it meets all requirements.

Core Philosophy: "Code is Truth. AI Drafts. Humans Ratify. Diffs Reveal Risk."

  1. AI as the Drafter: Scans Python AST and generates plain-English business logic summaries.
  2. Risk-Based Traceability: Enforces 100% test coverage for High Risk features.
  3. Semantic Delta: Surfaces logical drift between versions, not just line-by-line diffs.
  4. 21 CFR Part 11 Signatures: Requires cryptographic signatures for release certification.

Getting Started

Prerequisites

  • Python 3.12+
  • Poetry

Installation

poetry install

Basic Usage

Generate a draft SDS from your source code:

poetry run python -m coreason_scribe.main draft \
  --source ./src \
  --output ./build \
  --version "0.1.0"

Run a compliance check (CI/CD Gate):

poetry run python -m coreason_scribe.main check \
  --agent-yaml ./agent.yaml \
  --assay-report ./assay_report.json

For detailed instructions, see the Usage Guide.

Documentation

Development

This project follows a strict iterative, atomic, test-driven development protocol.

  • Linting: poetry run pre-commit run --all-files
  • Testing: poetry run pytest

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_scribe-0.3.0.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

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

coreason_scribe-0.3.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file coreason_scribe-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for coreason_scribe-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9573c8e74051bdedeff015f04766088b90dbe76f0b32096860399b8f0a940df9
MD5 a2d493b5ea889b66460ba54c5a32c284
BLAKE2b-256 0d5b5ed03088b4cc9e672638de9cce61fb534b2fe5214c63bb8a2a03df5ceb15

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_scribe-0.3.0.tar.gz:

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

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_scribe-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_scribe-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e762ab677b60e83735be439dae350b8b77e8223f0083936145c5c7f19b0c71c1
MD5 f357ef62fd697ff1eba2715693f8ca3c
BLAKE2b-256 305afe0c1105cea7938c7ae6173d3f4951c1a7af61e78ea0396de97c05adf295

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_scribe-0.3.0-py3-none-any.whl:

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

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