Skip to main content

ACCC — Attention-Chain Compiler-Compiler

The atom of the cognition-chain stack: ACCC → CORCC → SCCC.

An attention chain (AC) is inner — not necessarily spoken. The model uses it as a template for a section of its output, or as a thinking scaffold: a silent sequence of attention foci converging on a held focus. (Contrast CORCC's CoR, which is the outer paragraph the model must say and is gauged for persona-melt.) Written in Dense Rune-Chain so HoneyC compiles it and rulecatcher catches its grammar:

[Focus_1] ⇒ [Focus_2] ⇒ ... ⇒ |Held|

ACCC is a compiler-compiler, not a compiler: forge() mints a new AC language for a task/domain (it doesn't just compile one chain). Each forged language is a rulecatcher scope holding the ratified grammar; gate() enforces it; prime() emits the re-injectable block.

The stack it sits in

layer chain of… each node expands to… package
ACCC attention foci — (the atom) chaincompiler-accc
CORCC reasoning steps a forged AC corcc
SCCC skills a CoR (+ can forge new languages) sccc

Composition is HoneyC scope/drilldown: a CoR step [Frame]:{ <ac> } contains the attention chain that powers it.

Built on

  • rulecatcher — catches + gates the emergent grammar (learn, lint, the orthogonal/syntax_break verdict).
  • HoneyC — compiles the Dense Rune-Chain notation.
  • chaincompiler — the generic learn → gate → compile → prime loop. ACCC is the first domain layer on it.

Install

pip install chaincompiler-accc

Import it as accc. It installs the accc command and brings chaincompiler, honeyc and rulecatcher at the same release. It is one of the fifteen packages of ChainCompiler; to work on it, clone the repository and run ./install.sh, which installs all fifteen editable.

Run

accc demo                                          # forge 2 AC languages, gate, prime
accc forge debug examples/debug.ac --strict        # mint a domain AC language (examples/ is in a clone of the repository)
pytest                                             # from a clone: 6 tests

What the demo shows

  1. forge generic (shape-only) and debug (strict, vocabulary-pinned) — two distinct attention-chain languages, induced from examples.
  2. prime the debug language → grammar + a compiled attention block.
  3. gate a valid debug AC → clean ✓.
  4. gate an off-domain chain ([Goal] ⇒ … in the debug language) → rejected with verdict orthogonal (valid identifier, wrong vocabulary → steerable), fix: insert Symptom.

API (what CORCC consumes)

from accc import forge, gate, prime, attention_block, parse_ac

lang = forge("debug", debug_examples, db=".accc.db", strict=True)
violations, fixes = gate(lang, "[Symptom] ⇒ [Repro] ⇒ |Localize|")
block = attention_block("debug", "[Symptom] ⇒ [Repro] ⇒ |Localize|")
foci, held = parse_ac("[Symptom] ⇒ [Repro] ⇒ |Localize|")

Metadata

Release files for chaincompiler-accc 0.3.5

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

Source distribution (sdist)

Source distribution for chaincompiler-accc 0.3.5
File Size Uploaded Provenance Actions
chaincompiler_accc-0.3.5.tar.gz 9.7 kB Without provenance Details for chaincompiler_accc-0.3.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chaincompiler-accc 0.3.5
File Interpreter ABI Platform Actions
chaincompiler_accc-0.3.5-py3-none-any.whl Python 3 none any Details for chaincompiler_accc-0.3.5-py3-none-any.whl

Total release size: 19.0 kB

Release files / chaincompiler_accc-0.3.5.tar.gz

Download URL chaincompiler_accc-0.3.5.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cce0d4b0480edcbc9349be8a17f8f6ebd8f26778346086da614f77106162498a
BLAKE2b-256 checksum
How to use checksums
c66601f7d9d35791d0f6b48595d16c1be3c84fefa963f2a2a251e6dd7661d018
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / chaincompiler_accc-0.3.5-py3-none-any.whl

Download URL chaincompiler_accc-0.3.5-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9364fb478f41e25639d10172196ecc7c6273103448a3a9bb04499fc86c7fcda7
BLAKE2b-256 checksum
How to use checksums
3493c8dd24b114b8dd96417ea544889c34f52e0a62ff3a4ab054e5fa6a8637c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Security for chaincompiler-accc 0.3.5

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