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, theorthogonal/syntax_breakverdict). - HoneyC — compiles the Dense Rune-Chain notation.
- chaincompiler — the generic
learn → gate → compile → primeloop. 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
- forge
generic(shape-only) anddebug(strict, vocabulary-pinned) — two distinct attention-chain languages, induced from examples. - prime the debug language → grammar + a compiled attention block.
- gate a valid debug AC →
clean ✓. - gate an off-domain chain (
[Goal] ⇒ …in the debug language) → rejected with verdictorthogonal(valid identifier, wrong vocabulary → steerable), fix: insertSymptom.
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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chaincompiler_accc-0.3.3.tar.gz | 9.7 kB | Without provenance | Details for chaincompiler_accc-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chaincompiler_accc-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for chaincompiler_accc-0.3.3-py3-none-any.whl |
Total release size: 19.0 kB
Release files / chaincompiler_accc-0.3.3.tar.gz
| Download URL | chaincompiler_accc-0.3.3.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
599314af4a16b6b848371b44d7b651a520a559a785c4ba45557741be63e91a87
|
|
BLAKE2b-256 checksum How to use checksums |
b702e5760d6d617bfc88694baa4b70c614e6be622cab8deeadcd86874dcddbc8
|
| 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.3-py3-none-any.whl
| Download URL | chaincompiler_accc-0.3.3-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eae77534940bcd1bb7003d3871c88b278e61229940a2fc0b585b66da93216157
|
|
BLAKE2b-256 checksum How to use checksums |
f2f3e8ad64cad576c35ee4929206383e3dfb1370712a298440fa230654b27e8e
|
| 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.3
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.