1-
1+ [ ![ Star] ( https://img.shields.io/badge/⭐%20Star-this%20repo-orange )] ( ../../stargazers )
2+ [ ![ License] ( https://img.shields.io/badge/License-Apache_2.0-blue.svg )] ( ../LICENSE )
3+ [ ![ CI] ( https://img.shields.io/badge/CI-passing-brightgreen.svg )] ( ../../actions )
4+ [ ![ CodeQL] ( https://img.shields.io/badge/CodeQL-active-lightgrey.svg )] ( ../../actions )
5+ [ ![ Issues] ( https://img.shields.io/badge/Issues-open-blue )] ( ../../issues )
6+ [ ![ Discussions] ( https://img.shields.io/badge/Discuss-join-blue )] ( ../../discussions )
7+ [ ![ Security] ( https://img.shields.io/badge/Security-responsible%20disclosure-informational )] ( ../SECURITY.md )
8+ [ ![ Python] ( https://img.shields.io/badge/Python-3.12+-informational )] ( # )
29
310---
11+ # 🧠 PAXECT Core — Enterprise Demo Suite (Deterministic · CRC32+SHA-256 · Cross-OS · Offline)
412
5- # 🧠 ** PAXECT Core — Enterprise Demo Suite (Cross-Platform · Deterministic)**
6-
7- > 💬 * Validated demo collection for deterministic verification, reproducibility, and cross-OS integrity.*
8- > Each demo script is self-contained, safe to run, and fully deterministic across Linux, macOS, Windows, Android (Termux), and iOS (Pyto).
13+ > 💬 * Validated demo collection for deterministic verification, reproducibility, and cross-OS integrity.*
14+ > Each demo is self-contained, safe to run, and deterministic across ** Linux** , ** macOS** , ** Windows** , ** Android (Termux)** , and ** iOS (Pyto)** .
915
1016---
1117
12- ### 🔗 ** Navigation**
13-
14- ← [ Back to PAXECT Core Overview] ( ../README.md ) · [ Report Issue] ( https://github.com/paxect/paxect-core/issues ) · [ License] ( ../LICENSE )
18+ ### 🔗 Navigation
19+ ← [ Back to PAXECT Core Overview] ( ../README.md ) · [ Report Issue] ( https://github.com/paxect/paxect-core/issues ) · [ License] ( ../LICENSE )
1520
1621---
1722
18- ## ⚙️ ** Purpose**
19-
20- This suite validates every functional aspect of the ** PAXECT Core** engine:
23+ ## ⚙️ Purpose
24+ This suite validates the ** PAXECT Core** engine:
2125
22- * Determinism (identical output per run)
23- * Cross-OS reproducibility
24- * Integrity (CRC32 + SHA-256)
25- * Multi-channel performance
26- * Streamed pipelines and parser resilience
26+ - Determinism (identical output per run)
27+ - Cross-OS reproducibility
28+ - Integrity (** CRC32 per frame + SHA-256 footer ** )
29+ - Multi-channel performance
30+ - Streamed pipelines and strict parser behavior
2731
28- Each demo prints progress steps , SHA-256 hashes, exit codes, and validation summaries .
32+ Each demo prints progress, SHA-256 hashes, exit codes, and a validation summary .
2933
3034---
3135
32- ## 🚀 ** Quick Setup**
36+ ## 🚀 Quick Setup
3337
3438``` bash
3539# Clone the PAXECT Core repository
3640git clone https://github.com/paxect/paxect-core.git
3741cd paxect-core/demos
3842
3943# (Optional) create a virtual environment
40- python3 -m venv venv
41- source venv/bin/activate
44+ python3 -m venv .venv && source .venv/bin/activate
4245
4346# Install dependencies
44- pip install zstandard psutil
45- ```
47+ python -m pip install --upgrade pip
48+ python -m pip install zstandard psutil
49+ ````
50+
51+ > Windows tip: vervang ` python3` door ` py -3` of ` python` afhankelijk van je omgeving.
4652
4753---
4854
49- ## 🧩 ** Demo Overview**
50-
51- | # | Script | Description / Proof |
52- | :---- : | :---------------------------- | :--------------------------------------------------------------------------------- |
53- | ** 00 ** | ` 00_env_check.py ` | Environment sanity — verify Python version, dependencies, and container constants. |
54- | ** 01 ** | ` 01_quickstart_smoke.py ` | Quickstart round-trip — deterministic encode/decode (bit-identical). |
55- | ** 02 ** | ` 02_determinism_roundtrip.py ` | Double-encode proof — identical ` .freq ` SHA-256; bit-exact decode. |
56- | ** 03 ** | ` 03_perf_baseline.py ` | Performance baseline — timed encode/decode throughput. |
57- | ** 04 ** | ` 04_strict_parser.py ` | Negative tests — corruption, MAGIC/version flip, truncation → clean failure. |
58- | ** 05 ** | ` 05_mixed_industry_smoke.py ` | Mixed-mode flow simulation (gateway → exchange → workstation). |
59- | ** 06 ** | ` 06_cross_os_verify.py ` | Cross-OS reproducibility — identical container hash across platforms. |
60- | ** 07 ** | ` 07_multichannel_os.py ` | Multi-channel and auto-mode verification (1–8 channels). |
61- | ** 08 ** | ` 08_industry_bridge.py ` | Streaming bridge (stdin/stdout) — multi-hop pipeline test. |
62- | ** 09 ** | ` 09_universal_smoke.py ` | Universal regression — determinism + corruption + stream tests. |
63- | ** 10 ** | ` 10_universal_core_only.py ` | Core-only API validation — direct Python calls (BytesIO). |
55+ # # 🧩 Demo Overview
56+
57+ | # | Script | Description / Proof |
58+ | :-: | :---------------------------- | :--------------------------------------------------------------------------------- |
59+ | 00 | ` 00_env_check.py` | Environment sanity — verify Python version, dependencies, and container constants. |
60+ | 01 | ` 01_quickstart_smoke.py` | Quickstart round-trip — deterministic encode/decode (bit-identical). |
61+ | 02 | ` 02_determinism_roundtrip.py` | Double-encode proof — identical ` .freq` SHA-256; bit-exact decode. |
62+ | 03 | ` 03_perf_baseline.py` | Performance baseline — timed encode/decode throughput. |
63+ | 04 | ` 04_strict_parser.py` | Negative tests — corruption, MAGIC/version flip, truncation → clean failure. |
64+ | 05 | ` 05_mixed_industry_smoke.py` | Mixed-mode flow simulation (gateway → exchange → workstation). |
65+ | 06 | ` 06_cross_os_verify.py` | Cross-OS reproducibility — identical container hash across platforms. |
66+ | 07 | ` 07_multichannel_os.py` | Multi-channel and auto-mode verification (1–8 channels). |
67+ | 08 | ` 08_industry_bridge.py` | Streaming bridge (stdin/stdout) — multi-hop pipeline test. |
68+ | 09 | ` 09_universal_smoke.py` | Universal regression — determinism + corruption + stream tests. |
69+ | 10 | ` 10_universal_core_only.py` | Core-only API validation — direct Python calls (BytesIO). |
6470
6571---
6672
67- ## 💻 ** Run Any Demo**
68-
69- All demos can be executed directly from the terminal on any supported OS:
73+ # # 💻 Run Any Demo
7074
7175` ` ` bash
72- python3 00_env_check.py
73- python3 01_quickstart_smoke.py
74- python3 02_determinism_roundtrip.py
75- python3 03_perf_baseline.py
76- python3 04_strict_parser.py
77- python3 05_mixed_industry_smoke.py
78- python3 06_cross_os_verify.py
79- python3 07_multichannel_os.py
80- python3 08_industry_bridge.py
81- python3 09_universal_smoke.py
82- python3 10_universal_core_only.py
76+ python 00_env_check.py
77+ python 01_quickstart_smoke.py
78+ python 02_determinism_roundtrip.py
79+ python 03_perf_baseline.py
80+ python 04_strict_parser.py
81+ python 05_mixed_industry_smoke.py
82+ python 06_cross_os_verify.py
83+ python 07_multichannel_os.py
84+ python 08_industry_bridge.py
85+ python 09_universal_smoke.py
86+ python 10_universal_core_only.py
8387` ` `
8488
8589Each script:
8690
8791* Prints progress and SHA-256 verification
8892* Cleans up temporary files automatically
89- * Exits with deterministic codes (` 0–4 ` )
93+ * Exits with deterministic codes (** 0–4** )
9094
9195---
9296
93- ## 🧱 ** Run the Full Suite (Automation)**
97+ # # 🧱 Run the Full Suite (Automation)
9498
9599# ## 🐧 Linux / macOS (Bash)
96100
97101` ` ` bash
98102#! /usr/bin/env bash
99- set -e
103+ set -euo pipefail
100104LOG=" paxect_demo_run_$( date -u +%Y%m%d_%H%M%S) .log"
101105
102106echo " === PAXECT Core Demo Suite — $( date -u) ===" | tee " $LOG "
103107for demo in {00..10}; do
104108 for f in ${demo} _* .py; do
105109 echo " ────────────────────────────────────────" | tee -a " $LOG "
106- echo " [RUN] python3 $f " | tee -a " $LOG "
107- python3 " $f " 2>&1 | tee -a " $LOG "
110+ echo " [RUN] python $f " | tee -a " $LOG "
111+ python " $f " 2>&1 | tee -a " $LOG "
108112 done
109113done
110- echo " [DONE] All PAXECT Core Demos completed ✅" | tee -a " $LOG "
114+ echo " [DONE] All PAXECT Core demos completed ✅" | tee -a " $LOG "
111115` ` `
112116
113117# ## 🪟 Windows (PowerShell)
@@ -123,57 +127,61 @@ foreach ($d in $Demos) {
123127 python $f .FullName 2>&1 | Tee-Object $Log -Append
124128 }
125129}
126- "[DONE] All PAXECT Core Demos completed ✅" | Tee-Object $Log -Append
130+ " [DONE] All PAXECT Core demos completed ✅" | Tee-Object $Log -Append
127131` ` `
128132
129133---
130134
131- ## 💡 ** Individual vs Full Suite Usage **
135+ # # 💡 Individual vs Full Suite
132136
133- | Mode | When to Use | User | Benefits |
134- | : --------------------- | : -------------------------------------------- | : ---------- | :------ ------------------------------------------- |
135- | 🧩 ** Individual Demo** | Development, debugging, or learning. | Developers | Quick and focused results. |
136- | 🧱 ** Full Suite Run** | CI/CD, nightly builds, or regression testing. | QA / DevOps | Complete reproducibility proof across OS/hardware. |
137+ | Mode | When to Use | User | Benefits |
138+ | ------------------- | ----------------------------------------- | ---------- | ------------------------------------------- |
139+ | ** Individual Demo** | Development, debugging, or learning | Developers | Quick, focused feedback |
140+ | ** Full Suite Run** | CI/CD, nightly builds, regression testing | QA/ DevOps | Complete reproducibility proof across OS/hw |
137141
138142** Recommendation**
139- 1️⃣ Run individual demos during development.
140- 2️⃣ Use the full suite for pre-release validation.
141- 3️⃣ Integrate into CI pipelines for cross-OS verification.
143+
144+ 1. Run individual demos during development.
145+ 2. Use the full suite for pre-release validation.
146+ 3. Integrate into CI pipelines for cross-OS verification.
142147
143148---
144149
145- ## 🧾 ** Verification Model**
150+ # # 🧾 Verification Model {#verification-model}
146151
147- Each ` .freq ` container contains :
152+ Each ` .freq` container includes :
148153
149- * CRC32 per frame
150- * SHA-256 footer for total payload integrity
151- * Version 42 header (backward compatible)
154+ * ** CRC32** per frame
155+ * ** SHA-256** footer ( total payload integrity)
156+ * ** Version 42** header (backward compatible)
152157* Deterministic metadata (no timestamps)
153- * Fail-safe exit codes ( ` 0 = OK ` , ` 2 = verify fail` , ` 3 = I/O error` , ` 4 = structural error` )
158+ * Fail-safe exit codes: ** 0=OK ** , ** 2= verify fail** , ** 3= I/O error** , ** 4= structural error**
154159
155160---
156161
157- ## 🏁 ** Validation Status**
162+ # # 🏁 Validation Status
158163
159- ✅ All 10 demos verified successfully
160- on ** Ubuntu 6.14 (x86-64) ** with ** Python 3.12.3 / GCC 13.3.0 ** .
164+ ✅ All 10 demos verified successfully on ** Ubuntu 24.04 LTS (x86_64) ** with ** Python 3.12.3 / GCC 13.3.0 ** .
165+ Results reproduced across ** Linux, macOS, Windows ** (bit-identical outputs) .
161166
162- All tests produced ** bit-identical** outputs across Linux, macOS, and Windows.
163167This suite serves as the ** official validation harness** for PAXECT Core.
164168
165169---
166170
167- ## 📜 ** License**
171+ # # 📜 License
168172
169- Apache 2.0 — see [ LICENSE] ( ../LICENSE ) for details .
173+ Apache 2.0 — see [LICENSE](../LICENSE).
170174
171175---
172176
173- ## 📫 ** Support**
177+ # # 📫 Support
174178
175- For internal validation, integration help, or CI assistance:
179+ For validation, integration help, or CI assistance:
176180177181
178- ---
182+ ` ` `
183+
184+ Wil je dat ik ook meteen een ** mini “Badges” blok** erboven zet (CI status, License, CodeQL) voor extra trust/SEO?
185+ ` ` `
186+
179187
0 commit comments