Skip to main content

corcc — the chain-of-reasoning compiler

corcc is one of the three chain compilers of ChainCompiler, a compiler-compiler for cognition. It compiles chains of reasoning (CoRs). A CoR is spoken: one paragraph that performs ordered moves and ends in a decision. A PersonaSpec is those moves in order, each Move carrying the cue phrases that count as evidence it was performed; the last move is the held convergence.

  • forge_persona(spec, db=…) forges the move chain as an attention-chain language;
  • lint(persona, cor_text) gates a spoken CoR against that language. Drift out of the syntax is the persona melting, which is why the lint is called the melt-gauge;
  • package(persona, out_dir=…) writes the CoR as <name>/SKILL.md, with its paragraph skeleton and its inner attention chain; a move recovered without its cue phrases is cued by its own name in the skeleton;
  • the seed personas: BANDIT (Task → Recall → Decide → Execute → Reward — given a task, it exploits a proven chain or explores by constructing one; the default CoR everywhere), EINSTEIN and FEYNMAN.

It is made from the chaincompiler base and composes chaincompiler-accc for its inner attention template; sccc chains its CoRs with attention chains and skills.

Install

pip install corcc

It installs the corcc command. To work on it, clone the repository and run ./install.sh, which installs all fifteen packages editable.

Use

from corcc import BANDIT, forge_persona, package

persona = forge_persona(BANDIT, db="cor.db")   # the BANDIT: Task → Recall → Decide → Execute → Reward
print(package(persona, out_dir="skills"))     # skills/banditchain/SKILL.md

Its design

The repository's DESIGN.md §5.

License

MIT.

Metadata

Release files for corcc 0.4.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 corcc 0.4.0
File Size Uploaded Provenance Actions
corcc-0.4.0.tar.gz 10.4 kB Without provenance Details for corcc-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for corcc 0.4.0
File Interpreter ABI Platform Actions
corcc-0.4.0-py3-none-any.whl Python 3 none any Details for corcc-0.4.0-py3-none-any.whl

Total release size: 20.6 kB

Release files / corcc-0.4.0.tar.gz

Download URL corcc-0.4.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3799a662688dd625364e261e8e892ba7d8373131e0a8c966905c5e424ab77bae
BLAKE2b-256 checksum
How to use checksums
521b3433727e4070b4cdbab334ead1e8f3e21ec7fa6c0faffb55e4b9eab3acbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / corcc-0.4.0-py3-none-any.whl

Download URL corcc-0.4.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0935d49da8230c83c6109d786aa16366f1f6cc28ff08e720e010ab548b9895c2
BLAKE2b-256 checksum
How to use checksums
644fca9c0d4083a3ace9d3f8dfb99e57039c9d5f53a7d5f218111218988a9924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Security for corcc 0.4.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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