A consciousness-aware programming language for ethical AI interaction
Project description
SpiralLogic 🔮
SpiralLogic is a consciousness-aware programming language designed for ethical AI interaction, trauma-informed computing, and mystical automation. It provides a structured, consent-driven framework for AI operations, making their actions transparent, auditable, and controllable.
This language is not primarily for humans to write, but for AI systems to use. It creates a "safer" operational wrapper by ensuring all actions are gated by explicit, human-readable consent.
- 🤝 Consent-First: Operations require explicit permission via a consent-management system.
- 👻 Spirit-Guided: Use specialized AI personalities (
@healer,@analyst,@architect) for different tasks. - 🧠 Memory-Aware: A built-in memory system separates narrative (emotional) and artifact (factual) data.
- 🔐 Attested Logs: All actions are cryptographically logged to a tamper-evident chain.
For a deep dive into the language's philosophy, syntax, and features, see the SpiralLogic Complete Programming Guide.
Getting Started
Prerequisites
- Python 3.8+
Installation
-
Clone this repository:
git clone <your-repository-url> cd <repository-folder>
-
Install the required dependencies:
pip install -r requirements.txt
Running the Tests
To verify that the SpiralLogic system is working correctly, run the integration test suite:
python test_real_spirallogic.py
If all tests pass, you will see the message: ALL TESTS PASSED! SPIROLOGIC IS REAL!
Running a SpiralLogic File
You can execute any .sl (SpiralLogic) file using the command-line interface:
python spirallogic_cli.py examples/real_spirallogic_test.sl
This will run the ritual defined in the file, and the runtime will prompt for any required consents in the console.
If you installed via pip, the spirallogic console entry point is also available globally:
spirallogic examples/real_spirallogic_test.sl
Guarded Development Mode
SpiralLogic is meant to be the guardrail layer for AI coding agents. Instead of letting an agent run arbitrary Python, require it to express every action through a ritual. Inside any ritual.* step you can add an execute { ... } block that contains the code to run once the declared consent scopes are granted.
The runtime now exposes a development bridge so those execute blocks can safely touch the filesystem or shell:
context.bridge.read_text(path)/write_text(path, content)/append_text(path, content)context.bridge.list_dir(path)for quick inspectioncontext.bridge.run_shell(command, cwd=...)to run git/tests from within the guardrailcontext.bridge.emit_artifact(name, data)to attach structured evidence to the execution log
Every helper enforces consent scopes (file_system, system_shell, etc.) and writes a tamper-evident attestation entry. You can see it in action by running the new example:
spirallogic examples/guarded_dev_session.sl -v
This ritual checks git status via the guarded shell helper, updates README.md only if a documentation section is missing, and records artifacts for review. Wire your agent so it must emit guardrail rituals like this before touching code, and SpiralLogic becomes the enforced replacement for loose Python scripts.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spirallogic-0.1.1.tar.gz.
File metadata
- Download URL: spirallogic-0.1.1.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a272aac2fdb1fbccc670d8968bc018a2a23c6cfccc5a1cac15530f1678e8c4
|
|
| MD5 |
aebf12b7aeaddaedd396590f1501bef0
|
|
| BLAKE2b-256 |
6c9b319ac6d42a06cae67e0e898370245315aa850d54fb19f59c029ec6f04dd0
|
Provenance
The following attestation bundles were made for spirallogic-0.1.1.tar.gz:
Publisher:
publish-spirallogic.yml on TheFortThatHolds/spirallogic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spirallogic-0.1.1.tar.gz -
Subject digest:
06a272aac2fdb1fbccc670d8968bc018a2a23c6cfccc5a1cac15530f1678e8c4 - Sigstore transparency entry: 686752820
- Sigstore integration time:
-
Permalink:
TheFortThatHolds/spirallogic@c731a368fc545d75c6407e6d6e193975fddd7e49 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TheFortThatHolds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-spirallogic.yml@c731a368fc545d75c6407e6d6e193975fddd7e49 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spirallogic-0.1.1-py3-none-any.whl.
File metadata
- Download URL: spirallogic-0.1.1-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
075e8d9e7091d3c17a00a14c776eff30c108d1dbdd89749e4f9ae707a7d0f4b7
|
|
| MD5 |
22e17adda5795ddde618a51ef290e09e
|
|
| BLAKE2b-256 |
3260968f850570a146dac68a236baf6b2a1ae4cdf64601653a7c66fa0fef431a
|
Provenance
The following attestation bundles were made for spirallogic-0.1.1-py3-none-any.whl:
Publisher:
publish-spirallogic.yml on TheFortThatHolds/spirallogic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spirallogic-0.1.1-py3-none-any.whl -
Subject digest:
075e8d9e7091d3c17a00a14c776eff30c108d1dbdd89749e4f9ae707a7d0f4b7 - Sigstore transparency entry: 686752852
- Sigstore integration time:
-
Permalink:
TheFortThatHolds/spirallogic@c731a368fc545d75c6407e6d6e193975fddd7e49 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TheFortThatHolds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-spirallogic.yml@c731a368fc545d75c6407e6d6e193975fddd7e49 -
Trigger Event:
push
-
Statement type: