The Southern Border Provinces Case Study on heain-core Validating the HEAIN Framework for Accountable Public-Safety Governance through a 19-Node, 4-Tier Simulation, 20 Test Scenarios, a 24-Hour Soak and a 330-Node Scale Test
Abstract The first case study of the HEAIN Framework, CineNexus Pro, showed that all of its mechanisms work together in a company with many sites [13]. Public-sector work demands more: decisions no single party can make alone, records that outsiders can verify, and data that must never be traced back to a person. This paper reports the second case study, a hypothetical deployment of the HEAIN Framework for public-safety governance in Thailand's southern border provinces (Pattani, Yala, Narathiwat and four districts of Songkhla). The area is under two special security laws at once; the Prevention and Suppression of Torture and Enforced Disappearance Act B.E. 2565 (2022) requires every detention to be recorded and reported at once [17]; and trust between citizens and the state remains low. The author designed a full-size, four-tier deployment (a Primary at the SBPAC with an independent committee, 4 provincial units, 37 districts, and sub-district Workers), then turned it into a 19-node simulation running the real heain-core in containers on a single HP Z840, and broke the requirements down into 20 test scenarios (D1–D20). They cover data that stays in its own district, survival when a district is cut off, incident certification by a four-party committee, approvals bound to a single incident that expire, custody records that cannot be altered, petitions that cannot be traced to the petitioner, a public transparency log time-stamped under RFC 3161, keys never held whole on a field machine, short-lived node certificates, prohibited functions, data from outside the trust boundary, a bias gate for camera models, and safety duties that continue after the license expires. In the final run every scenario passed all 306 checks across 12 rounds. A 24-hour soak under 71 random faults processed 272,321 jobs with none lost or run twice, and a scale test at 330 nodes, matching the area's real number of districts, passed all 22 checks. The case study led to 21 changes to heain-core in 12 commits, including 10 groups of new mechanisms the first case did not need. The paper also proposes a four-phase pilot plan with success indicators and states what must still be done before real use. All results can be reproduced from the scripts in the repository. Keywords: HEAIN Framework, heain-core, Case Study, Public Safety, Human Rights, Multi-Party Approval, Transparency Log, Data Sovereignty, Network Partition, Scale Testing, Edge AI
Authors
- JAKKRIT BOONMA (ORCID: https://orcid.org/0009-0000-7165-3787)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-10-16
- DOI
- https://doi.org/10.5281/zenodo.23421781
- Primary Topic
- Blockchain Technology Applications and Security
- Type
- preprint