Thank you for your interest in making AI safer. We welcome contributions!
This is not a standard Python library. It follows a strict "Bicameral Architecture":
- Layer 1 (Prompt): Must isolate "Reasoning" from "Result".
- Layer 2 (Sanitizer): Must treat all user input as untrusted data.
- Layer 3 (Validator): Must deterministically verify the output.
If your Pull Request breaks this separation of concerns, it will be rejected.
If you add a new capability, you must update all three layers:
- Update the Prompt (The Beak/Door/Quill) to handle the intent.
- Update the Validator (The Tentacles/Tumblers/Lens) to verify the new output.
Every new feature must include a Hostile Test Case.
- Example: If you add support for
INSERTstatements, you must add a test proving it rejectsINSERT INTO system_tables. - Add your tests to the
tests/directory usingpytest.
- Follow PEP 8 standards.
- Do not include API keys in your commits.
- Fork the repo.
- Install dependencies:
pip install -r requirements.txt - Run tests:
pytest - Submit your Pull Request.