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.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 chaincompiler-accc 0.4.0
File Size Uploaded Provenance Actions
chaincompiler_accc-0.4.0.tar.gz 9.6 kB Without provenance Details for chaincompiler_accc-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 19.0 kB

Release files / chaincompiler_accc-0.4.0.tar.gz

Download URL chaincompiler_accc-0.4.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fae6bacbdf0878030fec4c81017706873058b7a745c98348cd3bb41c56b1d5fd
BLAKE2b-256 checksum
How to use checksums
1ef2a85b12f2df4898b80718cf3e6bac7654444e8d8849fb9a522649c5d93264
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.4.0-py3-none-any.whl

Download URL chaincompiler_accc-0.4.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a28ff34cfe753d1864a71ea3655c000bac7f4b83aab87d96600a41c8c6a747a
BLAKE2b-256 checksum
How to use checksums
7d6cbe0386ccd14b524075b1014bd767051b0ff277868d1dab06dcd5e16d6d6a
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.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