Deterministic multi-perspective consensus engine with fixpoint convergence, auditability, and categorical coherence metrics.
Project description
QISA Consensus Engine
Deterministic, auditable multi-perspective consensus with explicit fixpoint semantics and tamper-evident trace hashing.
QISA provides a reference-grade core for decision systems where reproducibility, auditability, and determinism are first-class constraints.
This repository intentionally avoids stochasticity and external services in order to support verifiable execution and post-hoc inspection.
Key properties
-
Deterministic convergence
Fixpoint iteration converges (or fails fast) under bounded steps. -
Idempotence
Re-running from a converged state yields the same final state and trace hash. -
Tamper-evident traces
Each execution step is hash-chained; any post-hoc mutation is detectable. -
Reproducible benchmarks
Benchmarks emit pinned JSON artifacts plus a generated comparison table.
What problem does QISA solve?
QISA (Quantum-Inspired System of AI Consensus) addresses a core problem in automated decision systems:
how to produce reproducible, auditable, and deterministic decisions when multiple perspectives disagree.
In five clear points
- Deterministic consensus (non-stochastic) — same inputs, same outputs.
- Verifiable audit trail — hash-chained traces detect tampering.
- Fixpoint convergence — stability via idempotence prevents loops.
- Comparable baselines — reproducible benchmark harness + pinned results.
- No external dependencies — not an LLM, no external services required.
QISA does not aim to be creative. It aims to be correct, verifiable, and repeatable.
Quality gate: CI enforces test coverage (pytest-cov) with a minimum threshold.
Installation
python -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1
python -m pip install -U pip
python -m pip install -e ".[dev]"
<!-- QISA_META_START -->
## Tools (Trace export + external verification)
- Paper-grade instructions: ools/README.md
- Quick demo:
- Host: python tools\export_trace_demo.py then python tools\verify_trace_json.py tools\_artifacts\trace_demo.json
- Docker: docker run --rm -v \C:\repos\qisa-consensus-engine:/app qisa-consensus-engine:dev python tools/export_trace_demo.py
## Benchmarks (adversarial)
- Latest results (generated): enchmarks\_results\results.md
- Re-run: python .\benchmarks\bench_adversarial.py
<!-- QISA_META_END -->
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 qisa_consensus_engine-0.2.4.tar.gz.
File metadata
- Download URL: qisa_consensus_engine-0.2.4.tar.gz
- Upload date:
- Size: 30.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 |
f98ec3f3328412e9e80d0b0e4b3b431225c400660aeb3075f8d23f3815027ec5
|
|
| MD5 |
9f313307d88aad97de3a37b4629e0be5
|
|
| BLAKE2b-256 |
68c39d3fbf8d33421b5796e44cd6376d667d009e789794ada87e6643131a363b
|
Provenance
The following attestation bundles were made for qisa_consensus_engine-0.2.4.tar.gz:
Publisher:
publish-pypi.yml on crasofuentes-hub/qisa-consensus-engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qisa_consensus_engine-0.2.4.tar.gz -
Subject digest:
f98ec3f3328412e9e80d0b0e4b3b431225c400660aeb3075f8d23f3815027ec5 - Sigstore transparency entry: 945847476
- Sigstore integration time:
-
Permalink:
crasofuentes-hub/qisa-consensus-engine@af68b9a9b280227ca00f3af278de1282c9f01cf0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/crasofuentes-hub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@af68b9a9b280227ca00f3af278de1282c9f01cf0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file qisa_consensus_engine-0.2.4-py3-none-any.whl.
File metadata
- Download URL: qisa_consensus_engine-0.2.4-py3-none-any.whl
- Upload date:
- Size: 13.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 |
ee003a5aada0e191894b2a2800fa6aab676a4b0c7eee47f8f60e18007089efc0
|
|
| MD5 |
19eb7a105c11c1fe76b4c7b0ff6f4447
|
|
| BLAKE2b-256 |
00e2c76447fb33b60b2a651a616a917478048a594a3135248c4c54174756793b
|
Provenance
The following attestation bundles were made for qisa_consensus_engine-0.2.4-py3-none-any.whl:
Publisher:
publish-pypi.yml on crasofuentes-hub/qisa-consensus-engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qisa_consensus_engine-0.2.4-py3-none-any.whl -
Subject digest:
ee003a5aada0e191894b2a2800fa6aab676a4b0c7eee47f8f60e18007089efc0 - Sigstore transparency entry: 945847513
- Sigstore integration time:
-
Permalink:
crasofuentes-hub/qisa-consensus-engine@af68b9a9b280227ca00f3af278de1282c9f01cf0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/crasofuentes-hub
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@af68b9a9b280227ca00f3af278de1282c9f01cf0 -
Trigger Event:
workflow_dispatch
-
Statement type: