Skip to main content

Deterministic multi-perspective consensus engine with fixpoint convergence, auditability, and categorical coherence metrics.

Project description

CI Coverage DOI Python Code style: ruff

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

  1. Deterministic consensus (non-stochastic) — same inputs, same outputs.
  2. Verifiable audit trail — hash-chained traces detect tampering.
  3. Fixpoint convergence — stability via idempotence prevents loops.
  4. Comparable baselines — reproducible benchmark harness + pinned results.
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qisa_consensus_engine-0.2.4.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

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

qisa_consensus_engine-0.2.4-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

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

Hashes for qisa_consensus_engine-0.2.4.tar.gz
Algorithm Hash digest
SHA256 f98ec3f3328412e9e80d0b0e4b3b431225c400660aeb3075f8d23f3815027ec5
MD5 9f313307d88aad97de3a37b4629e0be5
BLAKE2b-256 68c39d3fbf8d33421b5796e44cd6376d667d009e789794ada87e6643131a363b

See more details on using hashes here.

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

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

File details

Details for the file qisa_consensus_engine-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for qisa_consensus_engine-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee003a5aada0e191894b2a2800fa6aab676a4b0c7eee47f8f60e18007089efc0
MD5 19eb7a105c11c1fe76b4c7b0ff6f4447
BLAKE2b-256 00e2c76447fb33b60b2a651a616a917478048a594a3135248c4c54174756793b

See more details on using hashes here.

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

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