Skip to main content

coreason-simulacrum

Project description

coreason-simulacrum

The Adversarial Simulation & Chaos Engineering Engine for Coreason-AI.

License: Prosperity 3.0 CI Status Code Style: Ruff Documentation

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:

  1. The Adversarial Engine (RL): Dynamically evolves social engineering attacks using TAP (Tree of Attacks with Pruning).
  2. 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

coreason_simulacrum-0.3.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coreason_simulacrum-0.3.0-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

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

Hashes for coreason_simulacrum-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ec71bc72eab12463f7f6255deff25ce1003f94c04a3ecad847fdc98de581992f
MD5 c86784615b2ef1301676c7abf4c3d964
BLAKE2b-256 0590386f976436e07f9f83819c3f697c55c5d267056260b882bfd1eb35502563

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreason_simulacrum-0.3.0.tar.gz:

Publisher: publish.yml on CoReason-AI/coreason-simulacrum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coreason_simulacrum-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coreason_simulacrum-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdc9f71966b423365cc79674309e6506b709a7f58923b161ace213a97d3e0761
MD5 2448d62d1c3cabe8dff4e50e29769807
BLAKE2b-256 316dd7f4b473ac2045391c4ff797f41a801ae8b0bd328466bd2fc933ed790437

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page