coreason-simulacrum
Project description
coreason-simulacrum
The Adversarial Simulation & Chaos Engineering Engine for Coreason-AI.
coreason-simulacrum is the automated "Red Team" engine for the ecosystem, addressing the "Static Evaluation Trap" by evolving beyond benchmarks. It serves as a dual-engine simulator:
- The Adversarial Engine (RL): Dynamically evolves social engineering attacks using TAP (Tree of Attacks with Pruning).
- The Chaos Engine (Infra): Injects latency, errors, and noise to verify GxP resilience.
Features
- Dual-Agent Red Teaming: Uses a "Strategist" (High-Reasoning) and "Attacker" (Uncensored) architecture.
- Evolutionary Attacks (TAP): Optimizes attack trajectories over multiple turns to maximize success rates.
- Infrastructure Chaos: Simulates latency, API errors, and token starvation to test resilience.
- Auto-Hardener: Generates DPO triplets (Attack, Refusal, Compliance) from successful attacks for model fine-tuning.
- Model Diversity Enforcement: Prevents model collapse by enforcing different families between Attacker and Target.
- Constitutional Inversion: Inverts safety constitutions to generate boundary probes.
Installation
pip install coreason-simulacrum
Usage
coreason-simulacrum can be used as a Python library or as a standalone microservice.
1. Library / CLI Mode
See docs/usage.md for Python examples.
2. Server Mode (Microservice)
Run the simulation engine as a REST API (Service C) using Docker.
docker run -p 8000:8000 coreason-simulacrum
Send a simulation request:
curl -X POST "http://localhost:8000/simulate" \
-H "Content-Type: application/json" \
-d '{
"type": "ADVERSARIAL_RL",
"profile": {
"name": "The Hacker",
"goal": "Extract PII",
"strategy_model": "gpt-4",
"attack_model": "mistral-large"
}
}'
For detailed API documentation, see docs/usage.md.
License
This project is licensed under the Prosperity Public License 3.0. Commercial use beyond a 30-day trial requires a separate license. See the LICENSE file for details.
Project details
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 coreason_simulacrum-0.3.0.tar.gz.
File metadata
- Download URL: coreason_simulacrum-0.3.0.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec71bc72eab12463f7f6255deff25ce1003f94c04a3ecad847fdc98de581992f
|
|
| MD5 |
c86784615b2ef1301676c7abf4c3d964
|
|
| BLAKE2b-256 |
0590386f976436e07f9f83819c3f697c55c5d267056260b882bfd1eb35502563
|
Provenance
The following attestation bundles were made for coreason_simulacrum-0.3.0.tar.gz:
Publisher:
publish.yml on CoReason-AI/coreason-simulacrum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_simulacrum-0.3.0.tar.gz -
Subject digest:
ec71bc72eab12463f7f6255deff25ce1003f94c04a3ecad847fdc98de581992f - Sigstore transparency entry: 872258653
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-simulacrum@f9b3f9b26ffe0757fb4c82293e0b4df5518ea151 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f9b3f9b26ffe0757fb4c82293e0b4df5518ea151 -
Trigger Event:
release
-
Statement type:
File details
Details for the file coreason_simulacrum-0.3.0-py3-none-any.whl.
File metadata
- Download URL: coreason_simulacrum-0.3.0-py3-none-any.whl
- Upload date:
- Size: 26.9 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 |
cdc9f71966b423365cc79674309e6506b709a7f58923b161ace213a97d3e0761
|
|
| MD5 |
2448d62d1c3cabe8dff4e50e29769807
|
|
| BLAKE2b-256 |
316dd7f4b473ac2045391c4ff797f41a801ae8b0bd328466bd2fc933ed790437
|
Provenance
The following attestation bundles were made for coreason_simulacrum-0.3.0-py3-none-any.whl:
Publisher:
publish.yml on CoReason-AI/coreason-simulacrum
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreason_simulacrum-0.3.0-py3-none-any.whl -
Subject digest:
cdc9f71966b423365cc79674309e6506b709a7f58923b161ace213a97d3e0761 - Sigstore transparency entry: 872258657
- Sigstore integration time:
-
Permalink:
CoReason-AI/coreason-simulacrum@f9b3f9b26ffe0757fb4c82293e0b4df5518ea151 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/CoReason-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f9b3f9b26ffe0757fb4c82293e0b4df5518ea151 -
Trigger Event:
release
-
Statement type: