|
| 1 | +# Contributing to Qute |
| 2 | + |
| 3 | +Thank you for your interest in contributing. Qute (Quantum Unified Threat Engine) is a local-first quantum-classical hybrid threat detection system built on CUDA-Q, DuckDB, and Streamlit. Contributions that improve detection accuracy, extend the feature vector, add new attack simulations, or improve the user experience are welcome. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## Before you start |
| 8 | + |
| 9 | +**Please open an issue before writing code.** This avoids wasted effort if a feature is already in progress, outside scope, or planned differently. For bug fixes, an issue also helps confirm the bug is reproducible and understood before a fix is attempted. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## Development setup |
| 14 | + |
| 15 | +**Requirements:** |
| 16 | +- Python 3.11 |
| 17 | +- CUDA-Q 0.14.0 (or compatible) |
| 18 | +- Docker + Docker Compose (for GPU build) |
| 19 | +- NVIDIA GPU recommended for VQC benchmarking |
| 20 | + |
| 21 | +**Quick start:** |
| 22 | +```bash |
| 23 | +git clone https://github.com/marjatmm-sec/qute |
| 24 | +cd qute |
| 25 | +git checkout dev |
| 26 | + |
| 27 | +# CPU-only (no GPU required) |
| 28 | +pip install -r requirements.txt |
| 29 | +streamlit run src/ui/app.py |
| 30 | + |
| 31 | +# GPU build (recommended) |
| 32 | +docker compose up --build |
| 33 | +``` |
| 34 | + |
| 35 | +**Running the optimiser:** |
| 36 | +```bash |
| 37 | +python3 scripts/optimise_vqc_params.py --trials 8 --maxiter 2000 |
| 38 | +``` |
| 39 | + |
| 40 | +**Recomputing feature vectors after changes:** |
| 41 | +```bash |
| 42 | +python3 scripts/recompute_feature_vectors.py |
| 43 | +``` |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Branch conventions |
| 48 | + |
| 49 | +``` |
| 50 | +main ← stable, protected, tagged releases only |
| 51 | +dev ← integration branch, default for PRs |
| 52 | +``` |
| 53 | + |
| 54 | +- All work targets `dev` — never commit directly to `main` |
| 55 | +- `main` is updated only via PR from `dev` at stable milestones |
| 56 | +- Branch protection rules are configured but not enforced on the private repo — please self-enforce the convention |
| 57 | + |
| 58 | +--- |
| 59 | + |
| 60 | +## What we will and won't merge |
| 61 | + |
| 62 | +**Will merge:** |
| 63 | +- Bug fixes with a clear reproduction case |
| 64 | +- New Sigma detection rules (40 rules currently across Linux/Windows/Network) |
| 65 | +- Feature vector extensions with justification and benchmark evidence |
| 66 | +- New attack simulation factories in `replay.py` |
| 67 | +- UI improvements that don't break existing tabs |
| 68 | +- Documentation improvements |
| 69 | +- Performance improvements to the VQC pipeline |
| 70 | + |
| 71 | +**Won't merge:** |
| 72 | +- Features that require cloud APIs or send data off the local machine |
| 73 | +- Changes that break the local/privacy-preserving nature of the project |
| 74 | +- VQC parameter changes without benchmark evidence showing improvement |
| 75 | +- Breaking changes to the DB schema without a migration in `migrations.py` |
| 76 | +- Features without a clear security detection use case |
| 77 | + |
| 78 | +The maintainer reserves the right to decline PRs that don't fit the project direction, even if technically correct. |
| 79 | + |
| 80 | +--- |
| 81 | + |
| 82 | +## PR checklist |
| 83 | + |
| 84 | +- [ ] Targets `dev` branch, not `main` |
| 85 | +- [ ] No credentials, API keys, or personal data committed |
| 86 | +- [ ] All modified Python files pass syntax check (`python3 -m py_compile`) |
| 87 | +- [ ] Feature vector changes accompanied by benchmark results |
| 88 | +- [ ] Schema changes include a migration in `src/store/migrations.py` |
| 89 | +- [ ] README updated if behaviour or project structure changed |
| 90 | +- [ ] PR description explains what changed and why |
| 91 | + |
| 92 | +--- |
| 93 | + |
| 94 | +## Reporting security vulnerabilities |
| 95 | + |
| 96 | +Please do **not** open a public issue for security vulnerabilities in Qute itself. See [SECURITY.md](SECURITY.md) for the responsible disclosure process. |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +## Licence |
| 101 | + |
| 102 | +By contributing to Qute, you agree that your contributions will be licensed under the [MIT License](LICENSE). |
0 commit comments