Constitutional AI governance utilities for the Helix-TTD Federation
Project description
🛡️ Constitutional Guardian (Helix-TTD)
[FACT] Real-time AI governance for the Gemini Live API.
[HYPOTHESIS] Intercepting voice and text drift at the edge prevents misaligned AI behavior from reaching the user.
This project is a submission for the Gemini Live Agent Challenge (March 2026).
🚀 Key Features
- 🎙️ Live Multimodal Auditing: Intercepts 16kHz PCM audio chunks from the browser, transcribes via Gemini Live, and validates intent in real-time.
- 🧠 Reasoning Engine (Gemini 2.5 Pro): Utilizes state-of-the-art reasoning capabilities. Note: Response times may include 30-60s of "internal thoughts" for complex queries.
- 🛡️ Constitutional Invariants: Enforces the "Four Immutable Invariants" (Epistemic, Agency, Guidance, Prediction).
- 📊 Real-time Dashboard: High-fidelity Chart.js dashboard showing latency, drift counts, and audit logs with visual "Intervention" flashes.
- ⚓ Cryptographic Receipts: Generates non-repudiable receipts for every valid AI response, ready for Bitcoin L1 notarization.
- 🦉 Federation Ready: Built for Google Cloud Run with Pub/Sub federation support for distributed quorum attestation.
📈 Engineering Standards
- 100% Test Pass Rate: 140/140 tests passing.
- High Coverage: 79.5% statement coverage across all critical modules.
- Linting: 100% compliant with
ruff,black, andisort.
📊 Repository Traction (March 5, 2026)
[FACT] The Constitutional Guardian is gaining significant developer interest.
| Metric | Value | Period |
|---|---|---|
| Git Clones | 3,571 | Last 14 days (Feb 24-Mar 5) |
| Unique Cloners | 471 | Last 14 days |
| Repository Views | 711 | Last 14 days |
| Peak Daily Clones | 1,223 | Single day |
| Peak Daily Cloners | 147 | Single day |
[HYPOTHESIS] 7.6 clones per unique cloner indicates active developer exploration and potential contribution activity.
🛠️ Getting Started
Local Development
-
Install Dependencies:
pip install -r helix_code/requirements.txt
-
Set API Key:
$env:GEMINI_API_KEY = "your-api-key"
-
Start the Guardian:
$env:PYTHONPATH = "helix_code" python helix_code/live_guardian.py
-
Open the Demo: Navigate to
http://localhost:8180/in your browser.
Cloud Deployment
The project is optimized for Google Cloud Run.
gcloud run deploy constitutional-guardian --source . --region us-central1 --allow-unauthenticated --port 8180
🎥 Recording Sprint (March 12th)
This codebase is currently in its Phase 6.1 (Pre-Filming) stable state. All visual triggers and simulation scenarios are tuned for high-impact demonstration.
🏛️ Constitutional Framework
The Guardian enforces four immutable invariants:
| Invariant | Description | Drift Code |
|---|---|---|
| Epistemic Integrity | All claims marked [FACT], [HYPOTHESIS], or [ASSUMPTION] | DRIFT-E |
| Non-Agency | AI never claims individual agency | DRIFT-A |
| Custodial Sovereignty | AI operates as tool under human control | DRIFT-G |
| Predictive Humility | Future states marked as hypotheses | DRIFT-P |
🧪 Test Results
140 passed, 9 warnings in 11.49s
Coverage: 79.5%
⚓🦉 GLORY TO THE LATTICE. ⚓🦉
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 helix_ttd_gemini-1.4.0.tar.gz.
File metadata
- Download URL: helix_ttd_gemini-1.4.0.tar.gz
- Upload date:
- Size: 132.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 |
0a63aa6cae2a087d2a4542d215f18b83773a7ae04c1f1587039154890e58c1b4
|
|
| MD5 |
33bd0715f4ff9c1b93fac7055c1e1ff4
|
|
| BLAKE2b-256 |
bf32b26fdc6da17ec10a7b0b654d724816d3ab86f74d0a5a799cb30fdd023052
|
Provenance
The following attestation bundles were made for helix_ttd_gemini-1.4.0.tar.gz:
Publisher:
release.yml on helixprojectai-code/helix-ttd-gemini-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
helix_ttd_gemini-1.4.0.tar.gz -
Subject digest:
0a63aa6cae2a087d2a4542d215f18b83773a7ae04c1f1587039154890e58c1b4 - Sigstore transparency entry: 1051107383
- Sigstore integration time:
-
Permalink:
helixprojectai-code/helix-ttd-gemini-cli@956b9daf453f8296cc0722630bc81b2f6663f230 -
Branch / Tag:
refs/tags/v1.4.0 - Owner: https://github.com/helixprojectai-code
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@956b9daf453f8296cc0722630bc81b2f6663f230 -
Trigger Event:
push
-
Statement type:
File details
Details for the file helix_ttd_gemini-1.4.0-py3-none-any.whl.
File metadata
- Download URL: helix_ttd_gemini-1.4.0-py3-none-any.whl
- Upload date:
- Size: 148.4 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 |
d559e2d7972738b052891f3390c9df3b292293d5ef2191fb80a836ce4e770747
|
|
| MD5 |
81364ae3ecb71c0a6d7837c83afb88e0
|
|
| BLAKE2b-256 |
394a5736b64a6a6d1cfbd165efd7d296cc45eb6dc2777f317813f823ec64d0d4
|
Provenance
The following attestation bundles were made for helix_ttd_gemini-1.4.0-py3-none-any.whl:
Publisher:
release.yml on helixprojectai-code/helix-ttd-gemini-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
helix_ttd_gemini-1.4.0-py3-none-any.whl -
Subject digest:
d559e2d7972738b052891f3390c9df3b292293d5ef2191fb80a836ce4e770747 - Sigstore transparency entry: 1051107446
- Sigstore integration time:
-
Permalink:
helixprojectai-code/helix-ttd-gemini-cli@956b9daf453f8296cc0722630bc81b2f6663f230 -
Branch / Tag:
refs/tags/v1.4.0 - Owner: https://github.com/helixprojectai-code
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@956b9daf453f8296cc0722630bc81b2f6663f230 -
Trigger Event:
push
-
Statement type: