Skip to main content

chaincompiler-archetype — an archetype compiled as a state machine

chaincompiler-archetype (import archetype) is the archetype compiler of ChainCompiler, a compiler-compiler for cognition. It compiles an archetype as a state machine rather than a name, because what an archetype does is change: it has

  • a Persona (the mask it wears),
  • a Shadow (the persona's denied inverse),
  • a Self (the process that holds both),
  • an Odyssey (a succession of journeys, one for each other archetype it meets, ending in a journey after the return),
  • and a Becoming (the archetype it turns into next).

From one seed it infers the aspects it was not given, builds the Odyssey, validates the constraints C1–C6, and emits the result as readable text, triples, Prolog, Cypher, JSON or a SKILL.md an agent loads.

Install

pip install chaincompiler-archetype

It installs the archetype command and brings the chaincompiler base at the same release. To work on it, clone the repository and run ./install.sh, which installs all fifteen packages editable.

Use

from archetype import compile_archetype, emit, is_valid

hero = compile_archetype("Hero")          # the missing aspects inferred, the Odyssey built
print(is_valid(hero))                     # True
print(emit(hero, "readable"))             # "# Hero — a recursive individuation circuit" …

Its specification is ARCHETYPE-COMPILER.md, beside this file — the code cites it by section — and the grade of each of its music correspondences is in ARCHETYPE-MUSIC-CORRESPONDENCE-MAP.md.

Its design

The repository's DESIGN.md §12.

License

MIT.

Metadata

Release files for chaincompiler-archetype 0.7.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-archetype 0.7.0
File Size Uploaded Provenance Actions
chaincompiler_archetype-0.7.0.tar.gz 14.7 kB Without provenance Details for chaincompiler_archetype-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chaincompiler-archetype 0.7.0
File Interpreter ABI Platform Actions
chaincompiler_archetype-0.7.0-py3-none-any.whl Python 3 none any Details for chaincompiler_archetype-0.7.0-py3-none-any.whl

Total release size: 31.5 kB

Release files / chaincompiler_archetype-0.7.0.tar.gz

Download URL chaincompiler_archetype-0.7.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
38a1afe510b06b3478d4bac0317bce3c9a0b8aab7233ddccbbfd3c96694289ee
BLAKE2b-256 checksum
How to use checksums
c5ab1a9e7005a3c99457070773022683cfd617cf91821723f33657c2e9f5a72f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Release files / chaincompiler_archetype-0.7.0-py3-none-any.whl

Download URL chaincompiler_archetype-0.7.0-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b030cdcb0e494ae37fa4b0d48b1a93492f4cd1d29f248f8dbc7bd30934783e0
BLAKE2b-256 checksum
How to use checksums
9a7659f6265d1ad8968c3a3e5fbfd8aa2244e178d6c6062ef085dcc5d78ea82d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.13

Security for chaincompiler-archetype 0.7.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