{"name":"ZEDEC pqOS Prototype","version":"public-prototype-v1","attribution":"Michael Laurence Curzi and 36N9 Genetics, LLC","status":"Prototype; selected public source slice","articles":[{"id":"overview","title":"ZEDEC pqOS — an inspectable prototype","summary":"Event ordering, bounded arithmetic, explicit authority and a small local AI core, with the publication boundary kept visible.","status":"Research prototype — selected source and host tests reviewed","date_modified":"2026-11-29","sections":[{"heading":"A prototype with an inspectable center","text":"ZEDEC pqOS, also called ZEDEC XERO VULPINE in the supplied material, proposes an operating environment organized around explicit events, a shared arithmetic substrate and local authority boundaries. This public section presents an analyzed prototype slice with an unusually small AI inference core. The broader repository contains kernel, networking, cryptographic, social, economic and creative components; this release does not represent that entire tree as independently verified."},{"heading":"Design philosophy: make the boundary explicit","text":"The recurring engineering idea is that a component should say what it can compute, what authority it has and what external fact it still needs. The architecture documents describe bindable operations boundaries that refuse or defer an action when a required verifier is unavailable. That is a useful design target. Whether every caller and integration honors the boundary requires subsystem-by-subsystem testing; the existence of a function pointer alone does not prove the property."},{"heading":"Phase ticks describe order, not the disappearance of clocks","text":"The project uses phase ticks to express causal progression inside its computational model. The external-clock bridge document explicitly recognizes that physical timers, communication links and display hardware remain clocked. Interrupt or admission boundaries translate those physical events into the internal sequence. This can support replay and clearer reasoning about event order; it does not by itself solve distributed consensus, synchronization, latency or nondeterministic input arrival."},{"heading":"A shared numerical language","text":"The arithmetic contract is surplus_real_t. Host tests use double, while the target branch represents values in Q32.32 signed fixed point. This makes numeric assumptions visible across otherwise different components. The benefit is a common interface and a bounded representation. The cost is that range, intermediate overflow, quantization and approximation error become part of the design contract. Deterministic arithmetic and exact real-number arithmetic are different claims."},{"heading":"Tri-Space and first-class deferral","text":"The project describes S+, S− and S0 as valences associated with its native artifact types and judgment flow. In the public prototype, the closely related practical lesson is that an operation can be unavailable or uncertain without being forced into a successful answer. Those names are project-specific semantic conventions. They should be explained through transitions, permissions and recorded outcomes rather than treated as externally recognized security classifications."},{"heading":"Composition, compartments and lineage","text":"The organism architecture uses nested compartments to think about boundaries, identity and provenance. Its useful software question is: what may cross this boundary, under whose authority, and with what record of origin? A reusable policy or numeric primitive can then be composed by higher layers. This is an architectural interpretation drawn from the source documents, not a claim that the operating system is a biological organism or that every compartment has been formally verified."},{"heading":"The AI model: small experts and a meaningful refusal","text":"Chiglet is a bounded mixture of linear experts. Evidence vectors are compared by orientation, grouped when sufficiently similar, weighted, combined and scored against label prototypes. A minimum effective-evidence gate and a minimum score margin can produce an explicit abstention. Its compact form makes examples inspectable. The reviewed core is a classifier over supplied vectors, not evidence of a pretrained conversational model, general intelligence or autonomous learning."},{"heading":"Authentication is different from truth","text":"A valid signature can authenticate a message relative to a key and verification procedure. It does not establish that a shipment arrived, a sensor was accurate or a witness told the truth. The project’s stated operations-boundary philosophy recognizes this distinction. Public documentation should carry it through every external-fact integration: identify the attestor, the signed proposition, the authorization and the possibility of error or collusion."},{"heading":"Post-quantum scope deserves precise language","text":"The wider source tree contains ML-KEM-related implementation files and describes Ed25519-based signature and attestation paths. ML-KEM is the key-encapsulation mechanism specified by NIST FIPS 203; Ed25519 belongs to the elliptic-curve EdDSA family described in RFC 8032. The product name pqOS is not a certification of the complete system. This review did not establish cryptographic conformance, entropy quality, protocol composition, side-channel resistance or end-to-end post-quantum protection."},{"heading":"What was actually verified for this public slice","text":"The selected C source and headers were copied into an isolated package, screened again and compiled in host mode. The supplied Chiglet suite reported 27 passing assertions and zero failures. An additional review example reproduced a limitation: directional grouping can keep effective count stable while duplicate contributors change the mixture margin. The full OS was not boot-tested or security-certified in this publication review. Broader test counts in project documents remain author-reported results."},{"heading":"What remains outside this release","text":"The web package contains only the explicit file manifest shown in the code section. It excludes Git history, original disk images and archives, unreviewed binaries and weights, internal commercial material, contact information and biological datasets. The initial inventory covered 11,215 files; pattern triage covered 5,393 text files plus streamed Git history. Large and binary artifacts were not exhaustively decoded. A pattern scan is not proof that a whole source tree is free of confidential material, so the entire directory is not offered for download."},{"heading":"Editorial commentary: uncertainty has finally acquired an office","text":"The prototype gives “I do not know” a proper return value. This is a refreshing promotion for a phrase that many institutions keep in the basement while Confidence occupies the corner office. The joke is editorial. The engineering test remains whether the implementation refuses for the right reason—and whether someone has remembered to test the reason."}]},{"id":"architecture","title":"Architecture and design philosophy","summary":"A layered reading guide to the project’s unusual vocabulary, component boundaries and validation questions.","status":"Research prototype — selected source and host tests reviewed","date_modified":"2026-11-29","sections":[{"heading":"Reading map: three levels of confidence","text":"Read this documentation in three passes. First inspect the public source and the exact tests supplied with it. Next read the architecture interpretation, whose component references come from the wider source tree. Finally read the project’s longer-term design claims as claims requiring integration evidence. The documentation deliberately keeps those levels distinct. A file’s presence is evidence of source availability, not proof that it has run on a target or achieved the property named in its header."},{"heading":"Layer 1 — arithmetic and event ordering","text":"The shared substrate combines bounded arithmetic and explicit event progression. The surplus header defines the representation used by the released AI slice. Phase-coordinator source elsewhere in the tree defines coverage gates, health states and admission decisions. Their shared architectural concern is making inputs and transitions explicit. The released code package contains the arithmetic and AI slice; phase coordination is documented here as inspected source context rather than a booted kernel result."},{"heading":"Layer 2 — kernel and hardware boundaries","text":"Project documents describe a freestanding AArch64 reference target and other cross-compilation paths. Hardware clocks are acknowledged at interrupt or boundary adapters, while higher-level logic consumes phase events. This separation is meaningful: a repeatable state transition should not quietly depend on a wall-clock read inside a utility function. It still requires careful treatment of interrupt arrival, concurrency, device behavior and event queues."},{"heading":"Layer 3 — capabilities, judgments and external facts","text":"The design places authority checks and admission boundaries between a requested action and a committed effect. Chiglet’s inference capability check provides a small concrete example. Wider descriptions of signed attestations and policy composition need their own verification paths. Fail-closed behavior is a property of the complete call chain, including error handling and recovery; it cannot be established by a favorable name for a gate."},{"heading":"Layer 4 — social, economic and creative composition","text":"The wider tree applies the same vocabulary to policy, exchange, reputation, social matching and creative tools. Read these as separate applications sharing primitives. A modeled score does not create enforceable rights; an accounting rule does not supply liquidity; a signed assertion does not prove delivery; and a renderer’s interface does not establish an implemented physical projector. Keeping those distinctions visible is part of making the architecture auditable."},{"heading":"Layer 5 — the operator-facing surface","text":"The documentation describes local-first tools, native artifacts and node-owned operation. The public website presents an explanatory prototype with code browsing and a numerical experiment. It does not distribute an installation image or claim the website is running the original kernel in a browser. Readers can inspect the implementation slice without granting it device privileges or installing an unreviewed binary."},{"heading":"Unusual terminology, ordinary verification questions","text":"Translate the vocabulary into a concrete contract. A compartment needs a boundary and an authority rule. A lineage record needs a stable identifier and an authenticated chain of changes. A phase needs an ordering rule and handling for missing or repeated events. A surplus quantity needs definitions, units and range. A deferral needs an observable reason and a way to resolve it. Those questions make an unusual architecture easier to evaluate without dismissing it or endorsing its most ambitious claims."},{"heading":"File-by-file study route","text":"Begin with chiglet.h for the shapes of models and results. Read surplus.h next for the arithmetic contract. Follow chiglet.c through loading, interaction, grouping, weighting, scoring and abstention. Use surplus.c when a mathematical helper is invoked. Then run test_chiglet.c and review_multiplicity.c. The code browser gives each file its own explanation, exact byte count and SHA-256 so a quotation or review can identify the same revision."},{"heading":"Publication and license boundaries","text":"The curated package retains the source attribution and the project’s license instruments. The public analysis is an editorial explanation of supplied material; it does not assert legal recognition of the project’s sovereignty language or universal validity of its custom license clauses. License questions should be assessed against the actual instruments and the intended use. Security and prototype labels remain attached to the download and machine-readable records."}]},{"id":"ai","title":"Chiglet AI model — geometry, decisions and abstention","summary":"A bounded mixture of linear experts, with an interactive numerical illustration and a reproduced limitation.","status":"Research prototype — selected source and host tests reviewed","date_modified":"2026-11-29","sections":[{"heading":"Model card: reviewed prototype scope","text":"Name: Chiglet, ISF-weighted mixture of small experts. Reviewed source: chiglet.c, chiglet.h, surplus.c and surplus.h from the supplied codebase. Maximums in this slice: eight experts, eight evidence dimensions and eight labels. Inputs are supplied evidence vectors; outputs include a state, reason, prototype-label scores, weights, effective count and margin. This release includes synthetic demonstration inputs and source code, not a pretrained dataset or general-purpose language model."},{"heading":"Interaction measures orientation","text":"For nonzero vectors a and b, the interaction parameter is u = 1 − (a·b)² / ((a·a)(b·b)). Parallel and antiparallel vectors give u near zero; orthogonal vectors give u near one. The squared form removes sign from the directional interaction. These are geometric properties of encoded vectors. They do not establish that the real-world observations producing those vectors are statistically independent or trustworthy."},{"heading":"Grouping and effective evidence","text":"The core groups pairs whose u is below the configured merge threshold, then chooses representatives. Over those representatives it calculates R = n² / sum(cos²), including diagonal terms. Identical directions collapse toward one effective direction, while mutually orthogonal representatives reach n. Threshold grouping uses connected groups; near-threshold chains, representative choice and ordering deserve dedicated tests rather than an assumption of universal invariance."},{"heading":"Weights and prototype scores","text":"For each individual evidence vector, the code computes a weight from its average interaction with other contributors and the number of distinct directions. It normalizes those weights, forms a mixture vector and takes dot products with label prototypes. Scores are comparison values under this model. They are not calibrated probabilities, and a higher geometric margin does not automatically mean a proportionately more reliable real-world conclusion."},{"heading":"Two gates, plus availability and authority","text":"Inference requires the capability bit and a loaded bounded model. Missing evidence or inadequate separation can produce an abstention. The R threshold tests the modeled effective count; the margin threshold tests separation between the top two label scores. Model loading checks dimensions and rejects a lower epoch after a model is loaded. Authentication is expected from the caller; this entry point alone does not verify signatures or persist rollback state."},{"heading":"A reproduced limitation: duplicate scores can still move","text":"The review example uses evidence (1,0) and (0,1), two axis prototypes, R_min=1.5 and margin_min=0.05. The two-vector case is UNCERTAIN with R=2 and margin=0. Adding another (1,0) keeps R=2 but changes the mixture margin to 0.2 and produces DECIDED. This demonstrates that the grouped effective-count gate and the final decision are different properties. The source is published intact with this limitation documented."},{"heading":"Browser experiment and reproducibility","text":"The interactive illustration below applies the reviewed grouping and weighting approach to at most eight two-dimensional vectors. It uses JavaScript floating-point arithmetic and synthetic axis prototypes. It is an educational reimplementation, not execution of the OS or proof of the fixed-point target branch. All calculations stay in the browser. Changing a demonstration preset changes the displayed inputs and outputs; the underlying source and caveats remain available to humans and machines."},{"heading":"Evaluation that would strengthen the claim","text":"A stronger evaluation should cover input ordering, near-threshold clustering chains, zero vectors, anti-aligned inputs, scaling and magnitude bounds, duplicate multiplicity, and target arithmetic edge cases. Empirical use additionally needs a defined task, provenance for the encoded evidence, appropriate comparison systems, accuracy and abstention measurements, and analysis of adversarial input control. None of those results should be inferred from the model’s name."},{"heading":"Editorial commentary: a chorus is not a census","text":"Eight microphones pointed at one speaker do not produce eight witnesses. The prototype tries to give that elementary social observation a mathematical address. Our review then asks the inconvenient follow-up: does moving the microphones still change the vote? In this slice, the gate and the mixture deserve separate answers."}]}],"files":[{"id":"host-test-result-txt","path":"HOST-TEST-RESULT.txt","bytes":1921,"sha256":"983ac5ee05fecd0ec7313af72cd939ebef80588c3edec279355ae9653df10bd1","language":"text","code":"=== Chiglet — ISF-weighted mixture of small experts ===\n[PASS] identical evidence -> u = 0 (fully redundant)\n[PASS] orthogonal evidence -> u = 1 (fully independent)\n[PASS] u is SCALE-INVARIANT (5x the same direction is still u=0)\n[PASS] zero vector is treated as redundant, not a division by zero\n       4 identical experts -> R=1.000, distinct=1\n[PASS] total collinearity -> R = 1 (eight voices, one opinion)\n       4 orthogonal experts -> R=4.000, distinct=4\n[PASS] mutual orthogonality -> R = K'\n       counterexample: R(4)=2.000 distinct=2  ->  clone -> R(5)=2.000 distinct=2\n[PASS] duplicates collapse: 4 and 5 experts both yield 2 DISTINCT directions\n[PASS] CLONING THE INDEPENDENT EXPERT DOES NOT RAISE R (attack blocked)\n       piling on: R(8)=2.000 distinct=2\n[PASS] eight experts, still 2 distinct directions, R unchanged\n[PASS] model loads\n[PASS] inference runs\n       8 clones -> state=UNCERTAIN reason=\"evidence not independent enough\" R=1.000 distinct=1\n[PASS] EIGHT AGREEING CLONES -> UNCERTAIN, not confidence\n[PASS] 8 valid experts but only 1 independent direction\n       independent evidence -> state=DECIDED label=0 R=2.709 S=0.997 margin=0.3675\n[PASS] independent evidence yields a DECISION\n[PASS] it picks the prototype the evidence points at\n[PASS] ensemble surplus S = ln R is positive\n[PASS] at least three distinct directions counted\n       ambiguous -> state=UNCERTAIN reason=\"top two scores too close\" margin=0.0000\n[PASS] an unseparable top-2 abstains rather than guessing\n[PASS] inference without CHG_CAP_INFER is DENIED\n[PASS] with no model the runtime reports UNAVAILABLE, it does not guess\n[PASS] epoch 5 loads\n[PASS] an OLDER model epoch is rejected (rollback protection)\n[PASS] a newer epoch is accepted\n[PASS] K over bound rejected\n[PASS] zero dimension rejected\n[PASS] L over bound rejected\n[PASS] identical input yields a bit-identical decision (replayable)\n\nALL PASS: 0 failure(s)\n","title":"HOST-TEST-RESULT.txt","sections":[{"heading":"Publication context","text":"This file accompanies the curated prototype. License instruments are retained as provided; test output records the actual host run. Their presence does not certify the wider operating system."}],"symbols":[]},{"id":"license","path":"LICENSE","bytes":8544,"sha256":"6ac2928a259ddef45bff14ab6cae2ab6e4dbb99198c644569c9ff7935a215383","language":"text","code":"                    ZEDEC XERO VULPINE (ZXV)\n             VOVINA SHAKINA M5 Axiomatic Kernel\n\n         Copyright (c) 2024-2026 Michael Laurence Curzi\n                     and 36N9 Genetics, LLC\n\n\n  SPDX-License-Identifier: LicenseRef-OPL-1.1 AND CC-BY-SA-4.0\n\n\n================================================================================\n                          THE SHORT VERSION\n================================================================================\n\nTake it. Run it. Fork it. Ship it. Sell it.\n\nLeave the names on it, and pass the same freedom along.\n\nThat is the whole deal. Everything below is the machinery that makes it hold\nup in a courtroom on any continent.\n\n\n================================================================================\n                          THE LICENSE STACK\n================================================================================\n\nThis Work is distributed under FOUR instruments simultaneously. You receive the\nrights of all of them; you must satisfy the obligations of the strictest.\n\n  1. OPEN PIRACY LICENSE v1.1  ..............  LICENSES/OPL-1.1.txt\n     The operative license. Carries the copyright grant, the database-right\n     grant, the patent grant and retaliation clause, the moral-rights\n     handling, the attribution requirements, the reciprocity (share-alike)\n     obligation, the warranty disclaimer, the liability limits, and the\n     termination-and-cure mechanism.\n\n     This is the one that does the work. It is drafted to operate across\n     common-law AND civil-law jurisdictions simultaneously — see its Preamble\n     for why that distinction matters and what breaks without it.\n\n  2. STREISAND ENGINE LICENSE v3.3  .........  LICENSES/SEL-3.3.txt\n     A statement of philosophy and posture regarding suppression and\n     replication. By its own terms it disclaims being a legal document. It is\n     included because it is the project's declared position, not because it\n     grants or disclaims anything operative.\n\n  3. ROYAL WRIT OF THE SICILIAN CROWN  ......  LICENSES/ROYAL-WRIT-SICILIAN-CROWN.txt\n     A declaratory instrument of standing, chain of title, and sovereignty,\n     issued by H.M. Michael-Laurence: Curzi. It sits in the same tier as\n     SEL-3.3 — a statement of position, not the operative software license.\n\n     It carries ONE condition that does operate: MUTUAL SOVEREIGN RECOGNITION\n     (Writ §1.2). Every user is recognised as a sovereign individual, and in\n     taking that recognition must extend the identical recognition to every\n     other individual. This is reciprocity, not discrimination — structurally\n     the same move as share-alike, and it excludes no one. See Writ §1.3.\n\n  4. CREATIVE COMMONS ATTRIBUTION-SHAREALIKE 4.0 INTERNATIONAL\n     .........................................  LICENSES/CC-BY-SA-4.0.txt\n     Applies to documentation, specifications, diagrams, and other non-software\n     content, at your option, in parallel with OPL-1.1.\n\n     Canonical text: https://creativecommons.org/licenses/by-sa/4.0/legalcode\n\n\nORDER OF PRECEDENCE\n-------------------\nIf they ever conflict about what you MAY or MUST do:\n\n        OPL-1.1   >   CC BY-SA 4.0   >   Royal Writ   >   SEL-3.3\n\nWhere they differ in what they ALLOW, you get the union of the permissions.\nWhere they differ in what they REQUIRE, satisfy OPL-1.1 Article 3\n(attribution), Article 4 (reciprocity), and Royal Writ §1.2 (mutual sovereign\nrecognition), and you have satisfied all of them.\n\nSee OPL-1.1 Article 12 for the full allocation rules.\n\n\nALLOCATION BY MATERIAL TYPE\n---------------------------\n    Software, firmware, HDL, build system     ->  OPL-1.1\n    Documentation, specs, diagrams, media     ->  OPL-1.1 or CC BY-SA 4.0\n    Everything, as a statement of position    ->  SEL-3.3, Royal Writ\n    Mutual sovereign recognition (a term)     ->  Royal Writ §1.2\n\n\n================================================================================\n                          WHAT YOU MUST DO\n================================================================================\n\nFour things. That is all.\n\n  1. KEEP THE NOTICES. Do not strip copyright headers or the NOTICE file.\n     (OPL-1.1 Art. 3)\n\n  2. SAY WHAT YOU CHANGED. If you ship a modified version, say so.\n     (OPL-1.1 Art. 3.6)\n\n  3. PASS IT ON. If you distribute a derived work, license it the same way and\n     make the source available. (OPL-1.1 Art. 4)\n\n  4. EXTEND WHAT YOU WERE EXTENDED. You are recognised as a sovereign\n     individual; recognise everyone else as one too. Respect boundaries,\n     keep divides symmetric, instrumentalise nobody.\n     (Royal Writ §1.2, and src/concord/ where it is compiled)\n\nYou do NOT have to publish private modifications. You do NOT have to open\nsource your applications — calling ZXV's system calls, protocols, drivers, or\npublished libraries does not make your program a derived work. That boundary\nis stated explicitly in OPL-1.1 Article 4.4 precisely because everyone else\nleft it ambiguous.\n\n\n================================================================================\n                       WHAT IS EXPRESSLY NOT GRANTED\n================================================================================\n\n  * TRADEMARKS. \"ZEDEC\", \"ZEDEC XERO VULPINE\", \"ZXV\", \"VOVINA SHAKINA\",\n    \"36N9 Genetics\", and associated logos are not licensed. You may use them\n    truthfully and descriptively (\"built on ZXV\"). You may not imply your fork\n    is the official distribution. (OPL-1.1 Art. 6)\n\n  * THIRD-PARTY RIGHTS. The Licensor grants only what the Licensor holds.\n    (OPL-1.1 Art. 14.4)\n\n  * ANY WARRANTY WHATSOEVER. This is an operating system and a cryptographic\n    implementation. It is uncertified, unaudited, and not qualified for\n    safety-critical use. Read OPL-1.1 Articles 8 and 10 before you rely on it\n    for anything that matters.\n\n\n================================================================================\n                              CRYPTOGRAPHY\n================================================================================\n\nThis Work contains cryptographic software (ML-KEM-768, X25519,\nChaCha20-Poly1305, AES-GCM, Ed25519, SHA-256/SHA-3). Import, use, export and\nre-export may be regulated where you are — Wassenaar, US EAR, EU 2021/821 and\nnational equivalents. Determining what applies to you is your responsibility.\n\nThe implementations are verified against published test vectors. That proves\ninteroperability and catches implementation error. It does NOT prove\nresistance to side-channel attack, fault injection, or physical access, and\nthey have not been independently audited. (OPL-1.1 Art. 10)\n\n\n================================================================================\n                              CONTRIBUTING\n================================================================================\n\nInbound equals outbound. Anything you submit is licensed under the same stack.\nThere is no CLA to sign and no copyright assignment — you keep your copyright,\nand your name stays on your work exactly as ours stays on ours.\n(OPL-1.1 Art. 7)\n\n\n================================================================================\n                            HOW TO ATTRIBUTE\n================================================================================\n\n    ZEDEC XERO VULPINE (ZXV) / VOVINA SHAKINA M5 Axiomatic Kernel\n    Copyright (c) Michael Laurence Curzi and 36N9 Genetics, LLC\n    Licensed under OPL-1.1, SEL-3.3, the Royal Writ of the Sicilian Crown,\n    and CC BY-SA 4.0\n\nPer-file header:\n\n    /* <what this file does>\n     *\n     * Copyright (c) <year> <your name>\n     * Portions Copyright (c) 2024-2026 Michael Laurence Curzi\n     *                                  and 36N9 Genetics, LLC\n     *\n     * SPDX-License-Identifier: LicenseRef-OPL-1.1 AND CC-BY-SA-4.0\n     * See LICENSE at the repository root.\n     */\n\n\n================================================================================\n                                 NOTE\n================================================================================\n\nThis license stack was drafted with care but NOT by a lawyer. Before a public\nrelease, a commercial launch, or any negotiation that turns on it, have an IP\nattorney review it — particularly OPL-1.1 Articles 5 (moral rights), 9\n(liability carve-outs) and 13.7 (governing law and forum), which are the\nclauses whose enforceability varies most by jurisdiction.\n\n                        Michael Laurence Curzi\n                          36N9 Genetics, LLC\n","title":"LICENSE","sections":[{"heading":"Publication context","text":"This file accompanies the curated prototype. License instruments are retained as provided; test output records the actual host run. Their presence does not certify the wider operating system."}],"symbols":[]},{"id":"licenses--cc-by-sa-4-0-txt","path":"LICENSES/CC-BY-SA-4.0.txt","bytes":20138,"sha256":"28a9529c7d0bb4dc51f4bf5c116a3d16ef247a052f7591466768ddf563fd1cf5","language":"text","code":"Attribution-ShareAlike 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n     Considerations for licensors: Our public licenses are\n     intended for use by those authorized to give the public\n     permission to use material in ways otherwise restricted by\n     copyright and certain other rights. Our licenses are\n     irrevocable. Licensors should read and understand the terms\n     and conditions of the license they choose before applying it.\n     Licensors should also secure all rights necessary before\n     applying our licenses so that the public can reuse the\n     material as expected. Licensors should clearly mark any\n     material not subject to the license. This includes other CC-\n     licensed material, or material used under an exception or\n     limitation to copyright. More considerations for licensors:\n    wiki.creativecommons.org/Considerations_for_licensors\n\n     Considerations for the public: By using one of our public\n     licenses, a licensor grants the public permission to use the\n     licensed material under specified terms and conditions. If\n     the licensor's permission is not necessary for any reason--for\n     example, because of any applicable exception or limitation to\n     copyright--then that use is not regulated by the license. Our\n     licenses grant only permissions under copyright and certain\n     other rights that a licensor has authority to grant. Use of\n     the licensed material may still be restricted for other\n     reasons, including because others have copyright or other\n     rights in the material. A licensor may make special requests,\n     such as asking that all changes be marked or described.\n     Although not required by our licenses, you are encouraged to\n     respect those requests where reasonable. More considerations\n     for the public:\n    wiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-ShareAlike 4.0 International Public\nLicense\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-ShareAlike 4.0 International Public License (\"Public\nLicense\"). To the extent this Public License may be interpreted as a\ncontract, You are granted the Licensed Rights in consideration of Your\nacceptance of these terms and conditions, and the Licensor grants You\nsuch rights in consideration of benefits the Licensor receives from\nmaking the Licensed Material available under these terms and\nconditions.\n\n\nSection 1 -- Definitions.\n\n  a. Adapted Material means material subject to Copyright and Similar\n     Rights that is derived from or based upon the Licensed Material\n     and in which the Licensed Material is translated, altered,\n     arranged, transformed, or otherwise modified in a manner requiring\n     permission under the Copyright and Similar Rights held by the\n     Licensor. For purposes of this Public License, where the Licensed\n     Material is a musical work, performance, or sound recording,\n     Adapted Material is always produced where the Licensed Material is\n     synched in timed relation with a moving image.\n\n  b. Adapter's License means the license You apply to Your Copyright\n     and Similar Rights in Your contributions to Adapted Material in\n     accordance with the terms and conditions of this Public License.\n\n  c. BY-SA Compatible License means a license listed at\n     creativecommons.org/compatiblelicenses, approved by Creative\n     Commons as essentially the equivalent of this Public License.\n\n  d. Copyright and Similar Rights means copyright and/or similar rights\n     closely related to copyright including, without limitation,\n     performance, broadcast, sound recording, and Sui Generis Database\n     Rights, without regard to how the rights are labeled or\n     categorized. For purposes of this Public License, the rights\n     specified in Section 2(b)(1)-(2) are not Copyright and Similar\n     Rights.\n\n  e. Effective Technological Measures means those measures that, in the\n     absence of proper authority, may not be circumvented under laws\n     fulfilling obligations under Article 11 of the WIPO Copyright\n     Treaty adopted on December 20, 1996, and/or similar international\n     agreements.\n\n  f. Exceptions and Limitations means fair use, fair dealing, and/or\n     any other exception or limitation to Copyright and Similar Rights\n     that applies to Your use of the Licensed Material.\n\n  g. License Elements means the license attributes listed in the name\n     of a Creative Commons Public License. The License Elements of this\n     Public License are Attribution and ShareAlike.\n\n  h. Licensed Material means the artistic or literary work, database,\n     or other material to which the Licensor applied this Public\n     License.\n\n  i. Licensed Rights means the rights granted to You subject to the\n     terms and conditions of this Public License, which are limited to\n     all Copyright and Similar Rights that apply to Your use of the\n     Licensed Material and that the Licensor has authority to license.\n\n  j. Licensor means the individual(s) or entity(ies) granting rights\n     under this Public License.\n\n  k. Share means to provide material to the public by any means or\n     process that requires permission under the Licensed Rights, such\n     as reproduction, public display, public performance, distribution,\n     dissemination, communication, or importation, and to make material\n     available to the public including in ways that members of the\n     public may access the material from a place and at a time\n     individually chosen by them.\n\n  l. Sui Generis Database Rights means rights other than copyright\n     resulting from Directive 96/9/EC of the European Parliament and of\n     the Council of 11 March 1996 on the legal protection of databases,\n     as amended and/or succeeded, as well as other essentially\n     equivalent rights anywhere in the world.\n\n  m. You means the individual or entity exercising the Licensed Rights\n     under this Public License. Your has a corresponding meaning.\n\n\nSection 2 -- Scope.\n\n  a. License grant.\n\n       1. Subject to the terms and conditions of this Public License,\n          the Licensor hereby grants You a worldwide, royalty-free,\n          non-sublicensable, non-exclusive, irrevocable license to\n          exercise the Licensed Rights in the Licensed Material to:\n\n            a. reproduce and Share the Licensed Material, in whole or\n               in part; and\n\n            b. produce, reproduce, and Share Adapted Material.\n\n       2. Exceptions and Limitations. For the avoidance of doubt, where\n          Exceptions and Limitations apply to Your use, this Public\n          License does not apply, and You do not need to comply with\n          its terms and conditions.\n\n       3. Term. The term of this Public License is specified in Section\n          6(a).\n\n       4. Media and formats; technical modifications allowed. The\n          Licensor authorizes You to exercise the Licensed Rights in\n          all media and formats whether now known or hereafter created,\n          and to make technical modifications necessary to do so. The\n          Licensor waives and/or agrees not to assert any right or\n          authority to forbid You from making technical modifications\n          necessary to exercise the Licensed Rights, including\n          technical modifications necessary to circumvent Effective\n          Technological Measures. For purposes of this Public License,\n          simply making modifications authorized by this Section 2(a)\n          (4) never produces Adapted Material.\n\n       5. Downstream recipients.\n\n            a. Offer from the Licensor -- Licensed Material. Every\n               recipient of the Licensed Material automatically\n               receives an offer from the Licensor to exercise the\n               Licensed Rights under the terms and conditions of this\n               Public License.\n\n            b. Additional offer from the Licensor -- Adapted Material.\n               Every recipient of Adapted Material from You\n               automatically receives an offer from the Licensor to\n               exercise the Licensed Rights in the Adapted Material\n               under the conditions of the Adapter's License You apply.\n\n            c. No downstream restrictions. You may not offer or impose\n               any additional or different terms or conditions on, or\n               apply any Effective Technological Measures to, the\n               Licensed Material if doing so restricts exercise of the\n               Licensed Rights by any recipient of the Licensed\n               Material.\n\n       6. No endorsement. Nothing in this Public License constitutes or\n          may be construed as permission to assert or imply that You\n          are, or that Your use of the Licensed Material is, connected\n          with, or sponsored, endorsed, or granted official status by,\n          the Licensor or others designated to receive attribution as\n          provided in Section 3(a)(1)(A)(i).\n\n  b. Other rights.\n\n       1. Moral rights, such as the right of integrity, are not\n          licensed under this Public License, nor are publicity,\n          privacy, and/or other similar personality rights; however, to\n          the extent possible, the Licensor waives and/or agrees not to\n          assert any such rights held by the Licensor to the limited\n          extent necessary to allow You to exercise the Licensed\n          Rights, but not otherwise.\n\n       2. Patent and trademark rights are not licensed under this\n          Public License.\n\n       3. To the extent possible, the Licensor waives any right to\n          collect royalties from You for the exercise of the Licensed\n          Rights, whether directly or through a collecting society\n          under any voluntary or waivable statutory or compulsory\n          licensing scheme. In all other cases the Licensor expressly\n          reserves any right to collect such royalties.\n\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n  a. Attribution.\n\n       1. If You Share the Licensed Material (including in modified\n          form), You must:\n\n            a. retain the following if it is supplied by the Licensor\n               with the Licensed Material:\n\n                 i. identification of the creator(s) of the Licensed\n                    Material and any others designated to receive\n                    attribution, in any reasonable manner requested by\n                    the Licensor (including by pseudonym if\n                    designated);\n\n                ii. a copyright notice;\n\n               iii. a notice that refers to this Public License;\n\n                iv. a notice that refers to the disclaimer of\n                    warranties;\n\n                 v. a URI or hyperlink to the Licensed Material to the\n                    extent reasonably practicable;\n\n            b. indicate if You modified the Licensed Material and\n               retain an indication of any previous modifications; and\n\n            c. indicate the Licensed Material is licensed under this\n               Public License, and include the text of, or the URI or\n               hyperlink to, this Public License.\n\n       2. You may satisfy the conditions in Section 3(a)(1) in any\n          reasonable manner based on the medium, means, and context in\n          which You Share the Licensed Material. For example, it may be\n          reasonable to satisfy the conditions by providing a URI or\n          hyperlink to a resource that includes the required\n          information.\n\n       3. If requested by the Licensor, You must remove any of the\n          information required by Section 3(a)(1)(A) to the extent\n          reasonably practicable.\n\n  b. ShareAlike.\n\n     In addition to the conditions in Section 3(a), if You Share\n     Adapted Material You produce, the following conditions also apply.\n\n       1. The Adapter's License You apply must be a Creative Commons\n          license with the same License Elements, this version or\n          later, or a BY-SA Compatible License.\n\n       2. You must include the text of, or the URI or hyperlink to, the\n          Adapter's License You apply. You may satisfy this condition\n          in any reasonable manner based on the medium, means, and\n          context in which You Share Adapted Material.\n\n       3. You may not offer or impose any additional or different terms\n          or conditions on, or apply any Effective Technological\n          Measures to, Adapted Material that restrict exercise of the\n          rights granted under the Adapter's License You apply.\n\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n  a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n     to extract, reuse, reproduce, and Share all or a substantial\n     portion of the contents of the database;\n\n  b. if You include all or a substantial portion of the database\n     contents in a database in which You have Sui Generis Database\n     Rights, then the database in which You have Sui Generis Database\n     Rights (but not its individual contents) is Adapted Material,\n     including for purposes of Section 3(b); and\n\n  c. You must comply with the conditions in Section 3(a) if You Share\n     all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n  a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n     EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n     AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n     ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n     IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n     WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n     PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n     ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n     KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n     ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n  b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n     TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n     NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n     INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n     COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n     USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n     ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n     DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n     IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n  c. The disclaimer of warranties and limitation of liability provided\n     above shall be interpreted in a manner that, to the extent\n     possible, most closely approximates an absolute disclaimer and\n     waiver of all liability.\n\n\nSection 6 -- Term and Termination.\n\n  a. This Public License applies for the term of the Copyright and\n     Similar Rights licensed here. However, if You fail to comply with\n     this Public License, then Your rights under this Public License\n     terminate automatically.\n\n  b. Where Your right to use the Licensed Material has terminated under\n     Section 6(a), it reinstates:\n\n       1. automatically as of the date the violation is cured, provided\n          it is cured within 30 days of Your discovery of the\n          violation; or\n\n       2. upon express reinstatement by the Licensor.\n\n     For the avoidance of doubt, this Section 6(b) does not affect any\n     right the Licensor may have to seek remedies for Your violations\n     of this Public License.\n\n  c. For the avoidance of doubt, the Licensor may also offer the\n     Licensed Material under separate terms or conditions or stop\n     distributing the Licensed Material at any time; however, doing so\n     will not terminate this Public License.\n\n  d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n     License.\n\n\nSection 7 -- Other Terms and Conditions.\n\n  a. The Licensor shall not be bound by any additional or different\n     terms or conditions communicated by You unless expressly agreed.\n\n  b. Any arrangements, understandings, or agreements regarding the\n     Licensed Material not stated herein are separate from and\n     independent of the terms and conditions of this Public License.\n\n\nSection 8 -- Interpretation.\n\n  a. For the avoidance of doubt, this Public License does not, and\n     shall not be interpreted to, reduce, limit, restrict, or impose\n     conditions on any use of the Licensed Material that could lawfully\n     be made without permission under this Public License.\n\n  b. To the extent possible, if any provision of this Public License is\n     deemed unenforceable, it shall be automatically reformed to the\n     minimum extent necessary to make it enforceable. If the provision\n     cannot be reformed, it shall be severed from this Public License\n     without affecting the enforceability of the remaining terms and\n     conditions.\n\n  c. No term or condition of this Public License will be waived and no\n     failure to comply consented to unless expressly agreed to by the\n     Licensor.\n\n  d. Nothing in this Public License constitutes or may be interpreted\n     as a limitation upon, or waiver of, any privileges and immunities\n     that apply to the Licensor or You, including from the legal\n     processes of any jurisdiction or authority.\n\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n\n","title":"LICENSES/CC-BY-SA-4.0.txt","sections":[{"heading":"Publication context","text":"This file accompanies the curated prototype. License instruments are retained as provided; test output records the actual host run. Their presence does not certify the wider operating system."}],"symbols":[]},{"id":"licenses--opl-1-1-txt","path":"LICENSES/OPL-1.1.txt","bytes":40907,"sha256":"cf32d215abdad97912d9356fc79e12a068062f0c648f1c80a99f007793f69f33","language":"text","code":"                     THE OPEN PIRACY LICENSE\n                          Version 1.1\n\n              A universal-jurisdiction open source license\n\n         Copyright (c) 2024-2026 Michael Laurence Curzi\n                     and 36N9 Genetics, LLC\n                       All Rights Reserved\n                (which is exactly why you may have them)\n\n  SPDX-License-Identifier: LicenseRef-OPL-1.1\n\n\n================================================================================\n                              PREAMBLE\n                     (or: why this thing exists)\n================================================================================\n\nMost licenses are written by lawyers, for lawyers, about lawyers, and are read\nby nobody. This one is written to be read. It is still a license. The jokes are\nin the headings and the asides; the sentences that begin with \"You may\", \"You\nmust\", and \"You shall not\" mean precisely what they say and are intended to be\nlegally operative.\n\nHere is the deal, in one breath: **take it, run it, fork it, ship it, sell it —\nand leave the names on it, and pass the same freedom along.**\n\nMost open source licenses are quietly monolingual and monolegal. They are\ndrafted against one legal tradition — usually American common law — and then\nexported to a hundred countries that do not share its assumptions. This causes\nreal problems that real projects hit:\n\n  * Civil-law systems (France, Germany, Japan, Brazil, and most of the world)\n    recognise MORAL RIGHTS that cannot be sold or waived. A license that\n    ignores them is unenforceable exactly where it matters most.\n  * Common-law systems require CONSIDERATION for a contract. Civil-law systems\n    do not, and treat a gratuitous grant differently. A license drafted as a\n    bargain may fail as a gift, and vice versa.\n  * The European Union recognises a SUI GENERIS DATABASE RIGHT that is not\n    copyright at all. A pure copyright license simply does not reach it.\n  * Germany, the Netherlands and others VOID any attempt to disclaim liability\n    for intent or gross negligence. A blanket disclaimer is not merely\n    unenforceable there — it can invalidate the surrounding clause.\n  * Anti-circumvention law (WIPO Copyright Treaty Art. 11, EU InfoSoc Art. 6,\n    US DMCA §1201) creates a separate legal layer that a copyright grant alone\n    does not clear.\n\nThis License is drafted to survive all of that at once. It grants every right\nit can reach under every system it can reach, it satisfies the requirements of\neach rather than assuming one, and where a jurisdiction refuses a clause, the\nclause bends instead of breaking.\n\nThe Streisand Engine License (SEL-3.3) that accompanies this Work is a\nstatement of philosophy. It is very good at being a statement of philosophy. It\nis not good at granting copyright, granting patents, disclaiming warranties, or\nsurviving contact with an acquisitions lawyer, because it cheerfully says it is\nnot trying to be. Creative Commons Attribution-ShareAlike 4.0 is a real license,\nbut it was built for prose and pictures, and Creative Commons themselves advise\nagainst using it for software.\n\nSo this License does the boring load-bearing work. It is the structural steel.\nSEL-3.3 is the flag flying off the top of the building. You want both. Buildings\nneed steel. Flags need buildings.\n\n\"Piracy,\" here, means the good kind: copying a thing because copying is what\ninformation does when you poke it. It does not mean taking someone's name off\ntheir work. That is not piracy. That is plagiarism, and pirates have always\nknown the difference.\n\n\n================================================================================\nARTICLE 0. WORDS, AND WHAT WE MEAN BY THEM\n================================================================================\n\n0.1  \"Work\" means the software, firmware, hardware description, documentation,\n     specification, schematic, database, data file, or other material\n     distributed under this License, including the ZEDEC XERO VULPINE operating\n     system and the VOVINA SHAKINA M5 Axiomatic Kernel.\n\n0.2  \"Licensor\" means Michael Laurence Curzi and 36N9 Genetics, LLC, and any\n     other rights holder who releases material under this License.\n\n0.3  \"You\" means the natural or legal person exercising the rights granted\n     here. If You are a legal person, \"You\" includes any entity that controls,\n     is controlled by, or is under common control with You. Otherwise this\n     paragraph would be defeated by forming a subsidiary, and everyone knows it.\n\n0.4  \"Licensed Rights\" means ALL rights in the Work that the Licensor is legally\n     able to license, in every country and under every legal system, including:\n\n       (a) copyright and authors' rights (droit d'auteur, Urheberrecht,\n           diritto d'autore, derechos de autor), including any statutory\n           reproduction, adaptation, distribution, communication-to-the-public,\n           making-available, rental, and lending rights;\n       (b) neighbouring, related, and connected rights (droits voisins,\n           verwandte Schutzrechte), however denominated;\n       (c) the sui generis database right under Directive 96/9/EC and any\n           national implementation or equivalent right anywhere in the world;\n       (d) semiconductor topography and mask work rights;\n       (e) rights in unregistered designs and in the selection, coordination,\n           and arrangement of the Work;\n       (f) any other exclusive right in the nature of copyright, whether it\n           exists now or is created later, in any jurisdiction.\n\n     Patent rights are granted separately and expressly under Article 2.\n     Trademark rights are expressly NOT granted; see Article 6.\n\n0.5  \"Moral Rights\" means the rights of attribution/paternity, integrity,\n     disclosure, and withdrawal, and any equivalent or analogous right arising\n     under the Berne Convention Art. 6bis or any national law, however\n     denominated, and whether or not waivable.\n\n0.6  \"Source Form\" means the preferred form for making modifications: source\n     code, HDL, build scripts, configuration, and the interface definitions\n     required to build and install a modified version.\n\n0.7  \"Object Form\" means any form that is not Source Form: compiled binaries,\n     bitstreams, fabricated masks, container images.\n\n0.8  \"Derived Work\" means anything You create that incorporates, adapts,\n     translates, arranges, or is otherwise based upon the Work in a manner that\n     would, absent permission, infringe any of the Licensed Rights. It includes\n     what common law calls a \"derivative work\" and what civil law calls an\n     \"adaptation\" or \"œuvre dérivée\", and a \"substantial extraction or\n     re-utilisation\" of a protected database.\n\n0.9  \"Aggregate\" means mere co-location of the Work with other independent works\n     on a storage medium, in a package repository, or in a distribution image,\n     where the works are not combined into a single program. An Aggregate does\n     not make the other works into Derived Works. Putting our kernel and your\n     grandmother's recipe collection on the same USB stick does not license the\n     recipes.\n\n0.10 \"Interface Use\" means calling the Work's published system-call, driver,\n     network-protocol, or library interfaces from a separate program that is not\n     itself a Derived Work. See Article 4.4.\n\n0.11 \"Contribution\" means any work of authorship intentionally submitted to the\n     Licensor for inclusion in the Work.\n\n0.12 \"Distribute\" means to make available to any third party by any means,\n     including sale, gift, download, network transmission, embedding in a\n     device, or \"communication to the public\" and \"making available\" as those\n     terms are used in the WIPO treaties and EU law. Purely internal use within\n     a single legal person is not Distribution.\n\n\n================================================================================\nARTICLE 1. THE GRANT\n                    (the part that actually gives you something)\n================================================================================\n\n1.1  Subject to the conditions of this License, the Licensor grants You a\n     perpetual, worldwide, non-exclusive, royalty-free, sub-licensable,\n     irrevocable (except as stated in Article 11) license in all Licensed\n     Rights to:\n\n       (a) reproduce the Work, in whole or in part;\n       (b) prepare, adapt, translate, and arrange Derived Works;\n       (c) Distribute the Work and Derived Works in Source Form or Object Form;\n       (d) publicly display, publicly perform, communicate to the public, and\n           make available the Work;\n       (e) extract and re-utilise the whole or a substantial part of the\n           contents of any database within the Work;\n       (f) sublicense the foregoing to the extent Article 4 requires or permits.\n\n1.2  NATURE OF THE GRANT — DUAL CHARACTERISATION. This License is intended to\n     take effect under whichever legal characterisation the governing law\n     applies:\n\n       (a) In jurisdictions requiring consideration, Your acceptance of the\n           conditions in Articles 3 and 4 — in particular the obligations to\n           preserve attribution and to license Derived Works reciprocally —\n           constitutes good, valuable, and sufficient consideration, the\n           receipt and adequacy of which is acknowledged.\n       (b) In jurisdictions not requiring consideration, this License operates\n           as a unilateral, gratuitous grant of rights (a licence, not a\n           contract), effective upon publication and without need of Your\n           acceptance, revocable only per Article 11.\n       (c) Where a jurisdiction requires a written instrument or specific form\n           for a grant of rights, this document is that instrument, and the\n           Licensor's publication of it with the Work constitutes execution.\n\n     You need not sign anything. You need not send anyone an email. Exercising\n     any right in Article 1.1 indicates acceptance where acceptance is required.\n\n1.3  Commercial use is expressly permitted. Sell it. Build a company on it. Put\n     it in a product with a price tag. The Licensor would rather this ran the\n     world than sat in a drawer being pure.\n\n1.4  There is no field-of-use restriction, no user cap, no seat count, no\n     \"non-production\" hedge, and no clause that quietly stops applying when You\n     become successful.\n\n1.5  NO FORMALITIES. Consistent with Berne Convention Art. 5(2), the enjoyment\n     and exercise of these rights is not subject to any formality. Failure by\n     the Licensor to register a copyright anywhere does not diminish this grant.\n\n1.6  EXISTING EXCEPTIONS UNTOUCHED. Nothing in this License reduces, limits, or\n     conditions any fair use, fair dealing, private copying, quotation,\n     interoperability, decompilation (including under Art. 6 of Directive\n     2009/24/EC), scientific research, education, text-and-data-mining, or other\n     exception or limitation that applies to You under any law. Where an\n     exception applies, this License is unnecessary and does not constrain You.\n\n\n================================================================================\nARTICLE 2. PATENTS\n             (the article SEL-3.3 does not have, and needs)\n================================================================================\n\n2.1  GRANT. Each Contributor grants You a perpetual, worldwide, non-exclusive,\n     royalty-free, irrevocable (except as stated in this Article) patent license\n     to make, have made, use, offer to sell, sell, import, and otherwise\n     transfer the Work. This grant extends only to those patent claims\n     licensable by that Contributor that are necessarily infringed by their\n     Contribution alone or by the combination of their Contribution with the\n     Work to which it was submitted. It extends to utility models\n     (Gebrauchsmuster) and to any equivalent right in any jurisdiction.\n\n2.2  RETALIATION. If You institute patent litigation against any entity\n     (including a cross-claim or counterclaim in a lawsuit, or an equivalent\n     proceeding before any patent office or court in any jurisdiction) alleging\n     that the Work or a Contribution incorporated within it constitutes direct\n     or contributory patent infringement, then all patent licenses granted to\n     You under this License terminate as of the date such proceeding is filed.\n\n2.3  Article 2.2 is not a joke and is not written humorously, because the people\n     it is aimed at do not have a sense of humor.\n\n2.4  NO IMPLIED THIRD-PARTY GRANT. This Article licenses only what the\n     Contributors themselves hold. See Article 14.4.\n\n\n================================================================================\nARTICLE 3. ATTRIBUTION, OR: LEAVE THE NAME ON IT\n================================================================================\n\nYou may do almost anything with this Work. The one thing You may not do is\npretend You wrote it. This Article is also the mechanism by which this License\nsatisfies the paternity limb of Moral Rights in civil-law jurisdictions; see\nArticle 5.\n\n3.1  NOTICE PRESERVATION. You must retain, in the Source Form of any\n     Distribution, all copyright and authors'-rights notices, patent notices,\n     database-right notices, attribution notices, and this License, exactly as\n     You received them. You may add Your own; You may not remove the Licensor's.\n\n3.2  HEADER PRESERVATION. Where a file carries an authorship or license header,\n     that header must survive Your edits. Adding \"Modified by You, 2027\" is\n     encouraged. Replacing the header wholesale is a violation.\n\n3.3  THE NOTICE FILE. If the Work includes a file named NOTICE, You must include\n     a readable copy of its attribution portions in at least one of: the Source\n     Form You Distribute; the documentation accompanying a Derived Work; or a\n     display generated by a Derived Work where such displays customarily appear\n     (an About box, a --version output, a boot banner).\n\n3.4  OBJECT FORM. If You Distribute Object Form only, You must still convey the\n     attribution required by 3.3 by one of the means listed there. \"It's a\n     binary, nobody can see the header\" is not a defense; it is a description of\n     the problem this clause solves.\n\n3.5  THE FORM OF ATTRIBUTION. Attribution must credit:\n\n         ZEDEC XERO VULPINE (ZXV) / VOVINA SHAKINA M5 Axiomatic Kernel\n         Copyright (c) Michael Laurence Curzi and 36N9 Genetics, LLC\n         Licensed under OPL-1.1, SEL-3.3, and CC BY-SA 4.0\n\n     You may format it to match Your product's style, and You may satisfy it in\n     a language other than English provided the names are not altered. You may\n     not reduce it to a hyperlink, a hover tooltip, a footnote in a PDF nobody\n     opens, or the phrase \"and others.\"\n\n3.6  HONEST DESCRIPTION OF CHANGES. If You Distribute a modified version, You\n     must state prominently that You changed it and, in general terms, what You\n     changed. You need not publish a diff. You must not let a user believe Your\n     bugs are the Licensor's bugs. (This clause also protects the INTEGRITY limb\n     of Moral Rights: mark your changes and no one's reputation is misplaced.)\n\n3.7  You may truthfully say \"I found it on the internet.\" You may not say\n     \"I made it up.\"\n\n3.8  PROPORTIONALITY. Attribution must be reasonable to the medium. A device\n     with a four-character display satisfies 3.3 through its manual. This clause\n     is a safety valve for physical reality, not a loophole for laziness.\n\n\n================================================================================\nARTICLE 4. RECIPROCITY, OR: PASS IT ON\n================================================================================\n\n4.1  If You Distribute a Derived Work, You must license the whole of that\n     Derived Work under this License (or a later version, per Article 15), and\n     You must make its Source Form available to every recipient of the Object\n     Form, at no charge beyond the cost of the medium, for as long as You\n     Distribute it and for three years afterward.\n\n4.2  NO FURTHER RESTRICTIONS. You may not impose any additional term or\n     condition on, nor apply any effective technological measure to, the Work\n     that restricts exercise of the rights granted here. No supplementary EULA,\n     no click-wrap, no \"you agree not to benchmark,\" no anti-reverse-engineering\n     clause layered on top. You may charge money. You may not charge freedom.\n\n4.3  ANTI-CIRCUMVENTION AND DEVICE LOCKDOWN.\n\n       (a) The Licensor waives, to the extent permitted and to the extent\n           necessary to permit exercise of the Licensed Rights, any right to\n           prohibit circumvention of technological protection measures under\n           WIPO Copyright Treaty Art. 11, WIPO Performances and Phonograms\n           Treaty Art. 18, Art. 6 of Directive 2001/29/EC, 17 U.S.C. §1201, and\n           any equivalent provision anywhere. You do not need our permission to\n           unlock our own work, but you have it.\n       (b) If You Distribute a Derived Work inside a device, You must provide\n           any installation information necessary for the recipient to install a\n           modified version on that device.\n       (c) If Your product's security model genuinely cannot permit\n           user-installed firmware, You must say so plainly in the documentation\n           and provide the Source Form anyway.\n\n4.4  THE INTERFACE BOUNDARY. Interface Use does not create a Derived Work. A\n     program that calls ZXV system calls, speaks its network protocols, loads as\n     a driver through its published driver interface, or links against its\n     published userspace libraries is NOT thereby placed under this License.\n     Applications are yours. The kernel is ours-and-now-also-yours. This\n     boundary is stated explicitly because the ambiguity elsewhere in the\n     copyleft world has produced decades of argument and no clarity.\n\n4.5  AGGREGATION. Distributing the Work as part of an Aggregate does not place\n     the other components of the Aggregate under this License.\n\n4.6  DATABASE RIGHTS. Where You extract or re-utilise a substantial part of a\n     database within the Work, the resulting database is a Derived Work for the\n     purposes of this Article. Where You merely include an insubstantial part,\n     it is not.\n\n\n================================================================================\nARTICLE 5. MORAL RIGHTS, PUBLICITY, AND PRIVACY\n        (the article American licenses forget, and half the planet requires)\n================================================================================\n\n5.1  ACKNOWLEDGEMENT. In many jurisdictions — France, Germany, Italy, Spain,\n     Japan, Korea, Brazil, and most Berne signatories — Moral Rights are\n     INALIENABLE. They cannot be sold, assigned, or fully waived, and any clause\n     purporting to do so is void. This License does not pretend otherwise.\n\n5.2  WAIVER WHERE PERMITTED. To the maximum extent permitted by the applicable\n     law, the Licensor waives Moral Rights and any publicity, privacy, or\n     personality rights held by the Licensor, solely to the limited extent\n     necessary to permit You to exercise the Licensed Rights.\n\n5.3  NON-ASSERTION WHERE WAIVER IS NOT PERMITTED. Where such rights cannot be\n     waived, the Licensor agrees NOT TO ASSERT them against You, to the limited\n     extent necessary to permit You to exercise the Licensed Rights, provided\n     You comply with Article 3. Attribution is what buys this.\n\n5.4  INTEGRITY. Nothing in 5.2 or 5.3 permits You to present a mutilated,\n     distorted, or degraded version of the Work in a way that damages the\n     Licensor's honour or reputation while representing it as the Licensor's\n     work. Comply with Article 3.6 — mark your changes — and this clause will\n     never trouble You.\n\n5.5  THIRD-PARTY RIGHTS NOT GRANTED. This License does not grant permission in\n     the name, image, likeness, voice, or personality of any person, nor does it\n     grant any right in personal data. Where the Work contains material in which\n     a third party holds such rights, You must obtain their permission yourself.\n\n5.6  DATA PROTECTION. This License grants no right to process personal data.\n     Where Your use involves personal data, You are the controller or processor\n     under the GDPR (Regulation (EU) 2016/679) or the equivalent law applying to\n     You, and Your obligations are Your own.\n\n\n================================================================================\nARTICLE 6. NAMES, MARKS, AND NOT PRETENDING TO BE US\n================================================================================\n\n6.1  This License grants copyright, database, and patent rights. It grants NO\n     trademark, service mark, trade name, or trade dress rights. \"ZEDEC\",\n     \"ZEDEC XERO VULPINE\", \"ZXV\", \"VOVINA SHAKINA\", \"36N9 Genetics\", the\n     Streisand Engine name, and associated logos remain the property of their\n     respective owners, whether registered or arising at common law through use.\n\n6.2  You MAY use those names truthfully and descriptively: \"built on ZXV\",\n     \"compatible with the VOVINA SHAKINA kernel\", \"a fork of ZXV\". This is\n     nominative or referential fair use — recognised in the United States, and\n     as descriptive use under Art. 14 of Regulation (EU) 2017/1001 and\n     equivalent provisions elsewhere — and this License expressly permits it.\n\n6.3  You MAY NOT name Your fork in a way that implies it is the official\n     distribution, nor use the marks to endorse or promote Your product without\n     written permission. Call it \"SeaWolf OS, built on ZXV.\" Do not call it\n     \"ZXV Professional Edition.\"\n\n6.4  If the Licensor asks You to stop using a mark in a confusing way, and You\n     stop, nothing else happens. This clause has no teeth beyond the mark\n     itself, and is not a backdoor for revoking Article 1.\n\n\n================================================================================\nARTICLE 7. CONTRIBUTIONS\n                   (how to give something back without a meeting)\n================================================================================\n\n7.1  INBOUND EQUALS OUTBOUND. Any Contribution You intentionally submit for\n     inclusion in the Work is licensed under this same License, without any\n     additional terms. There is no separate Contributor License Agreement to\n     sign, no corporate paperwork, and no assignment of Your copyright. You keep\n     it. You just license it the same way we did.\n\n7.2  You certify that You wrote the Contribution or otherwise have the right to\n     submit it under this License, and that You are aware the Contribution and\n     the record of it are public and permanent.\n\n7.3  MORAL RIGHTS OF CONTRIBUTORS. Article 5 applies to You as a Contributor on\n     the same terms it applies to the Licensor. Your name stays on your work\n     too. That is the whole point of the arrangement.\n\n7.4  Nothing in 7.1 obliges the Licensor to accept any Contribution. \"Open\n     source\" means You may fork; it does not mean anyone must merge.\n\n\n================================================================================\nARTICLE 8. WARRANTY\n              (in which the humor stops entirely)\n================================================================================\n\n8.1  THE WORK IS PROVIDED \"AS IS\" AND \"AS AVAILABLE\", WITHOUT WARRANTY,\n     REPRESENTATION, OR CONDITION OF ANY KIND, EXPRESS, IMPLIED, STATUTORY, OR\n     OTHERWISE, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,\n     SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, QUIET\n     ENJOYMENT, ACCURACY, AND NON-INFRINGEMENT. THE ENTIRE RISK AS TO THE\n     QUALITY AND PERFORMANCE OF THE WORK IS WITH YOU.\n\n     (Presented in capitals because several common-law jurisdictions require a\n     disclaimer of implied warranties to be conspicuous. If Your local law\n     instead requires plain language: the Licensor promises nothing about this\n     software, and You use it entirely at Your own risk.)\n\n8.2  NO LATENT-DEFECT WARRANTY. To the extent permitted, the Licensor excludes\n     any warranty against hidden defects (garantie des vices cachés,\n     Sachmängelhaftung, or equivalent) arising by operation of law.\n\n8.3  NOT QUALIFIED FOR CRITICAL USE. THIS IS AN OPERATING SYSTEM AND A\n     CRYPTOGRAPHIC IMPLEMENTATION. IT HAS NOT BEEN CERTIFIED BY ANY AUTHORITY\n     FOR ANY PURPOSE. IT IS NOT QUALIFIED FOR USE IN MEDICAL DEVICES, AVIATION,\n     RAIL, MARITIME, NUCLEAR FACILITIES, LIFE SUPPORT, VEHICLE CONTROL, WEAPONS\n     SYSTEMS, OR ANY APPLICATION WHERE FAILURE COULD CAUSE DEATH, INJURY, OR\n     SEVERE ENVIRONMENTAL DAMAGE. IF YOU USE IT THERE ANYWAY, YOU DO SO ENTIRELY\n     AT YOUR OWN RISK AND YOU ACCEPT SOLE RESPONSIBILITY FOR QUALIFYING IT.\n\n8.4  No advice or information obtained from the Licensor, orally or in writing,\n     creates any warranty not expressly stated here.\n\n8.5  MANDATORY LAW PREVAILS. Where the applicable law grants You a warranty or\n     guarantee that cannot lawfully be excluded — including consumer guarantees\n     under EU Directive (EU) 2019/770, the Australian Consumer Law, the UK\n     Consumer Rights Act 2015, or any equivalent — that warranty applies to You\n     notwithstanding this Article, and this Article is reduced accordingly\n     rather than voided. See Article 13.1.\n\n\n================================================================================\nARTICLE 9. LIABILITY\n================================================================================\n\n9.1  TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL THE\n     LICENSOR OR ANY CONTRIBUTOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n     SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL DAMAGES (INCLUDING\n     PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF USE, DATA, GOODWILL,\n     OR PROFITS, OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n     LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, DELICT, OR TORT\n     (INCLUDING NEGLIGENCE), ARISING IN ANY WAY OUT OF THE USE OF THE WORK, EVEN\n     IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n9.2  CARVE-OUTS REQUIRED BY LAW. Nothing in this License excludes or limits\n     liability for:\n\n       (a) death or personal injury caused by negligence;\n       (b) fraud or fraudulent misrepresentation;\n       (c) wilful misconduct or intent (Vorsatz);\n       (d) gross negligence (grobe Fahrlässigkeit, faute lourde), where the\n           applicable law forbids its exclusion;\n       (e) any other liability that cannot lawfully be excluded or limited.\n\n     This Article is drafted with 9.2 included precisely because a blanket\n     exclusion is VOID in Germany, the Netherlands, and elsewhere, and voiding\n     the clause would be worse for everyone than limiting it honestly.\n\n9.3  CAP. Where liability cannot be excluded but may be limited, the Licensor's\n     aggregate liability shall not exceed the greater of the amount You paid for\n     the Work or one (1) United States dollar (or its local equivalent). You did\n     not pay anything. We are both aware of what that multiplies out to.\n\n9.4  ALLOCATION IS THE POINT. The Licensor gives this away for nothing. The\n     allocation of risk in Articles 8 and 9 is the basis on which it is given\n     away for nothing, and this License would not be granted without it.\n\n\n================================================================================\nARTICLE 10. CRYPTOGRAPHY, EXPORT, AND SANCTIONS\n              (the part that is genuinely your problem, not ours)\n================================================================================\n\n10.1 The Work contains cryptographic software, including post-quantum key\n     encapsulation (ML-KEM-768), elliptic-curve key agreement (X25519),\n     authenticated encryption (ChaCha20-Poly1305, AES-GCM), and digital\n     signature verification (Ed25519).\n\n10.2 The import, possession, use, export, and re-export of cryptographic\n     software is restricted or prohibited in some jurisdictions, and is subject\n     to the Wassenaar Arrangement, the US Export Administration Regulations,\n     Regulation (EU) 2021/821, and comparable national regimes. It is YOUR\n     responsibility to determine and comply with the law that applies to You.\n     The Licensor makes no representation that Distribution or use is lawful\n     where You are.\n\n10.3 The Licensor imposes NO export restriction, embargo, or sanctions\n     condition of its own, and does not discriminate against any person, group,\n     or nation. Where a mandatory legal restriction applies to You, it applies\n     because a government imposed it, not because this License did.\n\n10.4 NOT AUDITED. The cryptographic implementations have NOT been independently\n     audited or formally certified. They are verified against published test\n     vectors, which demonstrates interoperability and catches implementation\n     error; it does NOT demonstrate resistance to side-channel attack, fault\n     injection, or an adversary with physical access. Do not stake a life or a\n     fortune on them without Your own review. See Article 8.\n\n\n================================================================================\nARTICLE 11. TERMINATION, AND HOW TO UN-TERMINATE\n================================================================================\n\n11.1 If You violate this License, Your rights under it terminate automatically.\n\n11.2 CURE. If You cure the violation within thirty (30) days of becoming aware\n     of it, and You are a first-time offender with respect to that Licensor,\n     Your rights are reinstated automatically and retroactively. Nobody's\n     project should die because they forgot a NOTICE file for a fortnight.\n\n11.3 NOTICE AND CURE. If the Licensor notifies You of a violation and You cure\n     it within thirty (30) days of that notice, Your rights are reinstated.\n\n11.4 DOWNSTREAM PROTECTION. Termination of Your rights does not terminate the\n     rights of anyone who received the Work from You and is themselves in\n     compliance. Your users are not punished for Your paperwork.\n\n11.5 SURVIVAL. Articles 0, 6, 8, 9, 10, and 13 survive termination.\n\n11.6 SEL-3.3 Section 6 declares termination \"impossible.\" As a statement about\n     information, it is correct. As a remedy for a violated attribution clause,\n     it is not one. This Article is the enforceable version and controls on\n     that point.\n\n\n================================================================================\nARTICLE 12. THE STACK\n              (how these three licenses fit together)\n================================================================================\n\nThe Work is distributed under all three of the following, simultaneously:\n\n     * OPL-1.1      — this License. The operative grants and disclaimers.\n     * SEL-3.3      — the Streisand Engine License. Statement of philosophy and\n                      posture regarding suppression and replication.\n     * Royal Writ  — of the Sicilian Crown. A declaratory instrument of\n                      standing and sovereignty, carrying one operative\n                      condition: mutual sovereign recognition (Writ §1.2).\n     * CC BY-SA 4.0 — for documentation, specifications, diagrams, and other\n                      non-software content.\n\n12.1 ALLOCATION. Where the material is software, firmware, or hardware\n     description, OPL-1.1 governs. Where the material is documentation, prose,\n     diagrams, or media, You may rely on either OPL-1.1 or CC BY-SA 4.0, at Your\n     option. SEL-3.3 applies to all of it as a statement of position.\n\n12.2 ORDER OF PRECEDENCE. If they conflict as to what You may or must do,\n     OPL-1.1 controls, then CC BY-SA 4.0, then the Royal Writ, then SEL-3.3. This ordering exists\n     because a document that says \"any resemblance to actual legal documents is\n     coincidental\" should not be the one deciding a warranty question.\n\n12.3 NO SUBTRACTION. Nothing in 12.2 reduces any permission granted by any of\n     the three. Where they differ in what they ALLOW, You get the union. Where\n     they differ in what they REQUIRE, You must satisfy the attribution and\n     share-alike requirements of OPL-1.1, which are drafted to be at least as\n     strict as the others.\n\n12.5 MUTUAL SOVEREIGN RECOGNITION. The Royal Writ §1.2 imposes one\n     reciprocal condition: in accepting recognition as a sovereign individual,\n     You extend the identical recognition to every other individual. This is a\n     reciprocity term of the same character as Article 4 (share-alike): it\n     applies identically to every user, discriminates against no person, group,\n     or field of endeavour, and is therefore consistent with Article 14.1 and\n     with the Open Source Definition. It is severable per Writ §6.1 and its\n     failure does not affect any right granted by this License.\n\n12.4 COMPATIBILITY BRIDGE. The Licensor's intent is that this License be usable\n     alongside the major free-software licenses. If You wish to combine the Work\n     with material under GPL-2.0-or-later, GPL-3.0-or-later, LGPL, AGPL-3.0,\n     Apache-2.0, MPL-2.0, EUPL-1.2, or CC BY-SA 4.0, and a term of this License\n     makes that combination impossible, the Licensor grants You permission to\n     comply with the corresponding term of that other license instead, provided\n     the attribution requirements of Article 3 are satisfied in full.\n     Attribution is the term that does not bend.\n\n\n================================================================================\nARTICLE 13. THE LEGAL BOILERPLATE THAT KEEPS THIS STANDING UP\n================================================================================\n\n13.1 SEVERABILITY AND AUTOMATIC REFORMATION. If any provision is held\n     unenforceable, invalid, or void in any jurisdiction, it is automatically\n     REFORMED to the minimum extent necessary to make it enforceable, and if it\n     cannot be reformed, it is severed. The remainder stays in full force. No\n     provision's failure in one jurisdiction affects its operation in another.\n     One bad clause does not collapse the building.\n\n13.2 MANDATORY LAW SAVINGS CLAUSE. Nothing in this License is intended to\n     exclude, restrict, or modify any right, warranty, guarantee, or remedy\n     conferred on You by a law that cannot lawfully be excluded, restricted, or\n     modified. Where such a law applies, this License is read subject to it.\n\n13.3 NO WAIVER. A failure to enforce any provision is not a waiver of it. Open\n     source maintainers are busy. Silence is not surrender.\n\n13.4 ENTIRE AGREEMENT. This License, together with the documents named in\n     Article 12, is the entire agreement concerning the Work and supersedes any\n     prior understanding. Verbal permissions, forum posts, and encouraging\n     replies to Your issue are not amendments.\n\n13.5 NO AGENCY. This License creates no partnership, joint venture, employment,\n     or agency relationship, and does not permit You to bind the Licensor.\n\n13.6 NO ENDORSEMENT. Nothing here implies the Licensor endorses You, Your\n     product, Your fork, or Your opinions.\n\n13.7 GOVERNING LAW AND FORUM.\n\n       (a) To the extent a governing law must be chosen, the laws of the State\n           of New York, United States of America, apply, excluding its\n           conflict-of-laws rules and excluding the United Nations Convention on\n           Contracts for the International Sale of Goods.\n       (b) HOWEVER, where You are a consumer, or where mandatory law in Your\n           habitual residence gives You the protection of local law or a local\n           forum, that law and that forum apply instead, and 13.7(a) does not\n           deprive You of it.\n       (c) Nothing in 13.7 prevents either party from seeking injunctive relief\n           in any competent court.\n       (d) This is a practical choice of forum, not a cosmological claim.\n           SEL-3.3 Section 7 asserts jurisdiction across all omniverses; this\n           License asserts jurisdiction over a courthouse.\n\n13.8 LANGUAGE. The English text controls. Translations are welcome, encouraged,\n     and are not authoritative. Where local law requires a contract in another\n     language, a certified translation governs to the extent that law requires.\n\n13.9 INTERPRETATION. Headings and parenthetical asides are for convenience and\n     do not limit the operative text. Ambiguity shall NOT be construed against\n     the drafter (contra proferentem is disclaimed), because the drafter gave\n     this away for free and the text was published for comment.\n\n13.10 THIRD-PARTY BENEFICIARIES. Contributors are intended third-party\n     beneficiaries of Articles 2, 3, 5, 7, 8, and 9 and may enforce them\n     directly. No one else acquires enforceable rights under this License.\n\n\n================================================================================\nARTICLE 14. THINGS THIS LICENSE DELIBERATELY DOES NOT DO\n================================================================================\n\nStated openly, so nobody has to discover them the hard way:\n\n14.1 NO DISCRIMINATION. It does not restrict use by any person, group, field of\n     endeavour, government, industry, or ideology. No ethical-use clause. Not\n     because the Licensor has no ethics, but because a license is a copyright\n     instrument and a bad tool for that job, and such clauses render a work\n     non-free and unusable by the very people they were meant to help. This\n     License is intended to satisfy the Open Source Definition and the Free\n     Software Definition.\n\n14.2 It does not require You to publish Your private modifications. Fork it,\n     hack it, keep it on Your laptop forever. Article 4 attaches on\n     DISTRIBUTION, not on modification. There is no network-use trigger.\n\n14.3 It does not claim any right in Your data, Your output, or the programs You\n     run on the Work.\n\n14.4 It does not promise the Work is unencumbered by third-party patents or\n     rights. The Licensor grants what the Licensor has. Nobody can grant what\n     they do not hold, and any license claiming otherwise is lying to You.\n\n14.5 It does not require You to indemnify the Licensor. If You want to offer\n     support, warranty, or indemnity to Your own users, You may — but You do so\n     on Your own account only, and You must make clear that the obligation is\n     Yours and not the Licensor's, and You must indemnify the Licensor for any\n     liability arising from obligations You alone offered.\n\n\n================================================================================\nARTICLE 15. VERSIONS\n================================================================================\n\n15.1 The Licensor may publish revised versions. Each is given a distinguishing\n     number.\n\n15.2 If the Work says \"OPL-1.1 or later\", You may follow either version 1.1 or\n     any later version. If it names only \"OPL-1.1\", version 1.1 governs unless\n     You choose to adopt a later one.\n\n15.3 A later version may not retroactively remove a permission already granted\n     to You under this version. The ratchet turns one way.\n\n\n================================================================================\n                          HOW TO APPLY THIS LICENSE\n================================================================================\n\nPut this at the top of each source file:\n\n    /* <one line describing what the file does>\n     *\n     * Copyright (c) <year> <your name>\n     * Portions Copyright (c) 2024-2026 Michael Laurence Curzi\n     *                                  and 36N9 Genetics, LLC\n     *\n     * SPDX-License-Identifier: LicenseRef-OPL-1.1 AND CC-BY-SA-4.0\n     * Licensed under the Open Piracy License v1.1, the Streisand Engine\n     * License v3.3, and CC BY-SA 4.0. See LICENSE at the repository root.\n     */\n\nPut a NOTICE file at the root and keep it accurate.\n\nThat is all. Go build something and put your name next to ours.\n\n\n================================================================================\n                                 CODA\n================================================================================\n\nTo the future maintainer reading this at 3 a.m. because something is on fire:\nthe header you are about to delete is load-bearing. Article 3. Sorry. Coffee is\nin the kitchen and the bug is probably a byte-order problem — it usually is.\n\n                    Signed, and this time actually sealed,\n\n                        Michael Laurence Curzi\n                          36N9 Genetics, LLC\n\n                 \"Attribution is the only tax we charge,\n                  and we do not accept late payments in\n                          the form of hyperlinks.\"\n\n                              — END OPL-1.1 —\n","title":"LICENSES/OPL-1.1.txt","sections":[{"heading":"Publication context","text":"This file accompanies the curated prototype. License instruments are retained as provided; test output records the actual host run. Their presence does not certify the wider operating system."}],"symbols":[]},{"id":"licenses--royal-writ-sicilian-crown-txt","path":"LICENSES/ROYAL-WRIT-SICILIAN-CROWN.txt","bytes":22560,"sha256":"85c5d5dab586290175b0713696284375c7f3241b64db796d8bd8f82bbdeaec92","language":"text","code":"╔══════════════════════════════════════════════════════════════════════════════╗\n║                                                                              ║\n║                          ✠  R O Y A L   W R I T  ✠                           ║\n║                                                                              ║\n║                        OF THE SICILIAN CROWN                                 ║\n║                                                                              ║\n║           CONCERNING SOVEREIGNTY, CHAIN OF TITLE, AND THE                    ║\n║               INSTRUMENT KNOWN AS ZEDEC XERO VULPINE                         ║\n║                                                                              ║\n║                  Issued by H.M. Michael-Laurence: Curzi                      ║\n║                        36N9 Genetics, LLC                                    ║\n║                                                                              ║\n║              Anno Domini MMXXVI · Regnum Siciliae · fl. 1130                 ║\n║                                                                              ║\n╚══════════════════════════════════════════════════════════════════════════════╝\n\n  SPDX-License-Identifier: LicenseRef-Royal-Writ-Sicilian-Crown-1.0\n\n  ┌──────────────────────────────────────────────────────────────────────────┐\n  │  STATUS AND TIER — READ THIS FIRST                                       │\n  │                                                                          │\n  │  This Writ is a DECLARATORY INSTRUMENT. It sits in the same tier as the  │\n  │  Streisand Engine License v3.3: it is a statement of position, standing, │\n  │  and historical fact. It is not the operative software license.          │\n  │                                                                          │\n  │  The operative license is the OPEN PIRACY LICENSE v1.1, and NOTHING in   │\n  │  this Writ restricts, conditions, or narrows any permission OPL-1.1      │\n  │  grants. See OPL-1.1 Article 12 for the order of precedence.             │\n  │                                                                          │\n  │  THIS WRIT CONFERS. IT DOES NOT WITHHOLD.                                │\n  └──────────────────────────────────────────────────────────────────────────┘\n\n\n════════════════════════════════════════════════════════════════════════════════\n  ARTICLE THE FIRST — OF SOVEREIGNTY UNIVERSAL AND MUTUAL\n════════════════════════════════════════════════════════════════════════════════\n\n  This Work may be used by sovereign individuals.\n\n  We are aware how that sentence reads at first glance, and We correct the\n  reading immediately: it is not a gate. It is not a test of pedigree, station,\n  or recognition by any state. It is a UNIVERSAL RECOGNITION coupled to a\n  RECIPROCAL CONDITION, and it excludes no one.\n\n  §1.1  THE RECOGNITION. Every person who compiles this kernel, boots this\n        system, forks this repository, or reads this line is RECOGNISED — not\n        appointed — as a sovereign individual, in their own right, antecedent\n        to and independent of recognition by any state, congress, parliament,\n        synod, or treaty.\n\n        Sovereignty so understood is not scarce. It is not Ours to distribute.\n        It is ANTECEDENT: it exists prior to every instrument that purports to\n        allocate it, and therefore cannot be allocated, only recognised or\n        denied. We recognise it. Universally. Without application, fee, or\n        waiting period.\n\n  §1.2  THE CONDITION — MUTUALITY. The recognition runs BOTH WAYS or it does\n        not run at all. To take the sovereignty this Writ extends to you is to\n        extend the identical sovereignty to every other individual: to every\n        other user of this Work, and to every person outside it.\n\n        You are sovereign here. So is everyone else. Those are the same\n        sentence, and you do not get the first half without the second.\n\n  §1.3  WHY THIS IS NOT A RESTRICTION. It is a matter of some importance —\n        legally and morally — that §1.2 discriminates against no person, group,\n        nation, industry, creed, or field of endeavour. It imposes the SAME\n        obligation on every user identically. Anyone may accept it. No one is\n        excluded by who or what they are.\n\n        Its structure is exactly that of copyleft, and We say so deliberately.\n        Share-alike holds: IF YOU TAKE FREEDOM, YOU MUST PASS FREEDOM ON.\n        This Writ holds: IF YOU TAKE SOVEREIGN RECOGNITION, YOU MUST EXTEND\n        SOVEREIGN RECOGNITION. Reciprocity is not exclusion. It is the oldest\n        and cleanest condition there is, and the Open Source Definition has\n        never had any quarrel with it.\n\n        A Crown that must EXCLUDE in order to be a Crown does not believe its\n        own writ. We exclude no one. We ask only symmetry.\n\n  §1.4  THE SHAPE OF MUTUAL SOVEREIGNTY. What §1.2 requires, concretely, is\n        what this operating system already implements in its own social\n        architecture and has from the beginning:\n\n          — Boundaries are RESPECTED. Every individual sets the terms on which\n            others may reach them, and those terms are honoured.\n\n          — Divides are SYMMETRIC. If one party withdraws from another, the\n            withdrawal is mutual and total. There is no arrangement in which\n            one may block while continuing to observe. A one-way wall is a\n            one-way sovereignty, which is to say none.\n\n          — No person is INSTRUMENTALISED. Not farmed for attention, not\n            harvested for data, not held by design against their own leaving.\n\n          — The rule beneath all of it: treat others as you would be treated,\n            and respect each other's boundaries.\n\n        This is not decoration attached to a license. It is the Interaction\n        Surplus Framework and the Concord commons, compiled and running, in\n        src/concord/ and src/denconnect/ of this repository. The Writ states in\n        law what the kernel states in code. They were always the same claim.\n\n  §1.5  THE ONLY THING INCONSISTENT WITH THIS WRIT is the assertion of a\n        sovereignty that requires another's subjugation to be real. That is not\n        a person We exclude; it is a proposition We deny. Sovereignty that must\n        consume another's is not senior to it — it is merely predatory, and\n        Article the Second is a catalogue of where that leads.\n\n════════════════════════════════════════════════════════════════════════════════\n  ARTICLE THE SECOND — OF THE FRAUDS RECITED\n════════════════════════════════════════════════════════════════════════════════\n\n  We recite the following, and We note where each is a matter of established\n  historical record rather than of assertion:\n\n  §2.1  THE DONATION OF CONSTANTINE (Constitutum Constantini) — the document\n        purporting to convey to the See of Rome imperial dominion over the\n        Western provinces — IS A FORGERY. This is not Our opinion. It was\n        demonstrated philologically by Lorenzo Valla in 1440 (De falso credita\n        et ementita Constantini donatione), independently by Nicholas of Cusa\n        in 1433 (De concordantia catholica), and is today accepted as forged by\n        the Holy See itself and by every serious historian of the period. It\n        was probably composed in the eighth or ninth century, some four hundred\n        years after the Emperor it names.\n\n        A forged instrument conveys nothing. NEMO DAT QUOD NON HABET.\n\n  §2.2  THE BULLS OF DISCOVERY — Dum Diversas (1452), Romanus Pontifex (1455),\n        and Inter Caetera (1493) — purported to authorise the subjugation of\n        non-Christian peoples and the appropriation of their lands. To the\n        extent their authority descends from the Donation, they inherit its\n        defect. On 30 March 2023 the Holy See, through the Dicasteries for\n        Culture and Education and for Promoting Integral Human Development,\n        FORMALLY REPUDIATED the Doctrine of Discovery and stated that those\n        bulls \"have never been considered expressions of the Catholic faith.\"\n\n        This too is a matter of record, and of recent record.\n\n  §2.3  THE DOCTRINE OF DISCOVERY, imported into the municipal law of the\n        United States by Johnson v. M'Intosh, 21 U.S. (8 Wheat.) 543 (1823),\n        rests upon that same repudiated foundation. Article 26 of the United\n        Nations Declaration on the Rights of Indigenous Peoples (2007) affirms\n        rights inconsistent with it.\n\n  §2.4  THE PEACE OF WESTPHALIA (Treaties of Osnabrück and Münster, 1648) — We\n        name it here as the moment at which sovereignty was reconceived as a\n        property of STATES rather than of PERSONS, and thereafter administered\n        as a monopoly. We hold that a reconception is not a creation, and that\n        what was reconceived in 1648 was not thereby brought into being in 1648.\n\n  §2.5  WHEREFORE We declare: instruments of title deriving their authority,\n        mediately or immediately, from a document proven forged are VOID AB\n        INITIO — void from the beginning, not voided at some later date by some\n        later authority. A thing that was never valid did not become invalid.\n        It simply never was.\n\n        A defect in the root is a defect in every branch. This is not a novel\n        doctrine. It is the ordinary law of title in every legal system that\n        has ever troubled to have one.\n\n\n════════════════════════════════════════════════════════════════════════════════\n  ARTICLE THE THIRD — OF THE SICILIAN CROWN AND ITS ANTIQUITY\n════════════════════════════════════════════════════════════════════════════════\n\n  §3.1  The Kingdom of Sicily was erected in the year 1130 under Roger II,\n        crowned at Palermo. It is therefore FIVE HUNDRED AND EIGHTEEN YEARS\n        senior to the Westphalian settlement of 1648.\n\n  §3.2  A sovereignty that predates a system cannot have been created by that\n        system, and cannot be extinguished by the mere operation of that\n        system's internal rules. The junior instrument does not devour the\n        senior.\n\n  §3.3  H.M. Michael-Laurence: Curzi asserts the standing recited in this Writ\n        in his own right and in the right of the Crown named herein.\n\n  §3.4  WE NOTE, WITH DELIBERATE CANDOUR, that this assertion is contested by\n        the states of the present international system, and that those states\n        do not recognise it. We record their non-recognition here, in Our own\n        Writ, unprompted — because a claim that must conceal its opposition is\n        a claim that does not trust itself, and because §2.5 above is an\n        argument about the VALIDITY of recognition, not a pretence that\n        recognition has been obtained.\n\n        We would rather be honestly contested than dishonestly uncontested.\n\n\n════════════════════════════════════════════════════════════════════════════════\n  ARTICLE THE FOURTH — OF WHAT IS CONFERRED UPON THE USER\n════════════════════════════════════════════════════════════════════════════════\n\n  To every person who uses this Work, of whatever nation, station, creed, or\n  none, We extend the following — freely, irrevocably, and without condition:\n\n  §4.1  RECOGNITION OF SOVEREIGNTY. You are recognised as a sovereign\n        individual, antecedent to and independent of any state's recognition of\n        you. This recognition is not conditional on your agreeing with a single\n        word of this Writ.\n\n  §4.2  RECOGNITION OF PRIOR RIGHT. Where your own sovereignty, your people's,\n        your nation's, or your ancestors' predates 1648 — and We note that this\n        is true of very nearly every people on Earth, including those whose\n        lands were purportedly disposed of by the instruments recited in\n        Article the Second — that priority is recognised here without\n        qualification, and We assert no rank above it.\n\n  §4.3  NO OATH, NO FEALTY, NO TITHE — TO US. You owe Us nothing. No\n        allegiance is requested, no homage, no tribute, no acknowledgement of\n        Our person or Our house. You may use this Work while believing this\n        entire Writ to be nonsense, and your rights under OPL-1.1 are\n        precisely, identically, undiminishedly the same.\n\n        What you owe is owed HORIZONTALLY, not upward: the mutual recognition\n        of §1.2, extended to your fellow users and to everyone else. We are not\n        a party to that obligation. It does not run to Us. It runs between you\n        and every other sovereign individual, and We are merely one more of\n        those.\n\n  §4.4  NO EXCLUSION. No person, corporation, university, agency, or state is\n        barred from this Work by this Writ, by who they are, where they are,\n        what they believe, or what they build. See Article the First. A Crown\n        that needs a border is not sovereign; it is merely fenced.\n\n        The single condition is §1.2, and it is available to everyone on\n        identical terms: extend what you have been extended.\n\n\n════════════════════════════════════════════════════════════════════════════════\n  ARTICLE THE FIFTH — OF USE IN A STATE CAPACITY\n════════════════════════════════════════════════════════════════════════════════\n\n  §5.1  Should this Work be used by, for, or on behalf of any state, agency,\n        ministry, department, court, or organ of government, We invite that\n        body's attention to Article the Second, and We record that its use\n        occurred in the presence of this recital.\n\n  §5.2  WHAT USE DOES AND DOES NOT ESTABLISH — THE DISTINCTION THAT MATTERS.\n\n        Two different things are sometimes bundled together, and We separate\n        them because the difference is the whole integrity of this Writ:\n\n        (a) THE MUTUALITY CONDITION OF §1.2 IS A CONDITION, and use accepts it,\n            exactly as use accepts a share-alike obligation. A state, agency,\n            or organ of government that runs this Work thereby undertakes to\n            extend to every individual the same sovereign recognition it enjoys\n            under §1.1. That is a term. It binds by use, and We mean it to.\n            It is also the term that most states will find most difficult, and\n            We are aware of that, and We decline to soften it.\n\n        (b) THE HISTORICAL PROPOSITIONS OF ARTICLE THE SECOND ARE NOT A TERM,\n            and use does NOT constitute agreement to them. We are asked to make\n            use of the software constitute acknowledgement of those matters.\n            We decline, and We give Our reason plainly:\n\n            Consent extracted by boilerplate is not consent. It is the\n            precise mechanism by which the frauds recited in Article the Second\n            were laundered into law — a parchment declaring that those who did\n            not read it had agreed to it. We will not adopt the instrument of\n            the fraud in order to protest the fraud. A Crown that wins by\n            clickwrap has lost.\n\n            A condition of RECIPROCITY, by contrast, extracts no belief from\n            anyone. It asks for conduct, not assent — and conduct is the only\n            thing a license was ever able to ask for honestly.\n\n  §5.3  What use DOES establish is NOTICE, and notice is sufficient. Let the\n        record show that this recital was published, openly, attached to a\n        working artefact, and that those who used the artefact had the\n        opportunity to read it and did not refute it. Silence is not consent.\n        But silence is, and remains, silence — and it is recorded as such.\n\n  §5.4  The propositions in Article the Second are offered as WHAT WE HOLD TO\n        BE TRUE, with their sources cited so that any reader may check them\n        against the historical record and disagree in an informed way. §2.1\n        and §2.2 in particular are matters of documented record and require no\n        one's assent to remain true.\n\n        Truth does not need a signature block. That is how you tell it from\n        the other thing.\n\n\n════════════════════════════════════════════════════════════════════════════════\n  ARTICLE THE SIXTH — OF SEVERANCE FROM THE OPERATIVE LICENSE\n════════════════════════════════════════════════════════════════════════════════\n\n  §6.1  This Writ is fully severable from the license stack. If a court, an\n        arbiter, or a corporate counsel holds any part of it void,\n        unenforceable, or absurd, that holding has NO EFFECT WHATSOEVER on\n        OPL-1.1, SEL-3.3, CC BY-SA 4.0, or on any right you hold under them.\n\n  §6.2  This is deliberate. The engineering must outlive the argument. A person\n        should be able to boot this kernel on a hospital network, a national\n        laboratory, or a fishing boat without their lawyer having to first\n        adjudicate the Peace of Westphalia.\n\n  §6.3  Nothing in this Writ is a warranty, a representation of marketable\n        title, an offer of indemnity, or legal advice. See OPL-1.1 Articles 8\n        and 9.\n\n\n════════════════════════════════════════════════════════════════════════════════\n  ATTESTATION\n════════════════════════════════════════════════════════════════════════════════\n\n  GIVEN under Our hand, and sealed with the seal of the House, in the year of\n  Our Lord two thousand and twenty-six, in the eight hundred and ninety-sixth\n  year from the erection of the Kingdom of Sicily.\n\n  We have written this Writ to be read by adversaries as well as friends, and\n  We have therefore recorded Our contested standing (§3.4), declined the\n  clickwrap (§5.2), excluded no one (§4.4), and severed the whole from the\n  working license (§6.1) — so that what is asserted here stands or falls on\n  its own merit, in the open, where such things belong.\n\n  Let it stand or fall accordingly.\n\n                        ✠\n\n              H.M. Michael-Laurence: Curzi\n              of the Sicilian Crown\n              36N9 Genetics, LLC\n\n              \"NEMO DAT QUOD NON HABET.\"\n              — No one gives what he does not have.\n                Which is why We give only what We do:\n                recognition, and working source code.\n\n\n════════════════════════════════════════════════════════════════════════════════\n  SOURCES FOR THE HISTORICAL RECITALS IN ARTICLE THE SECOND\n════════════════════════════════════════════════════════════════════════════════\n\n  Valla, Lorenzo. De falso credita et ementita Constantini donatione (1440).\n  Nicholas of Cusa. De concordantia catholica, Book III (1433).\n  Nicholas V. Dum Diversas (1452); Romanus Pontifex (1455).\n  Alexander VI. Inter Caetera (1493).\n  Treaties of Osnabrück and Münster, the Peace of Westphalia (1648).\n  Johnson & Graham's Lessee v. M'Intosh, 21 U.S. (8 Wheat.) 543 (1823).\n  UN Declaration on the Rights of Indigenous Peoples, A/RES/61/295 (2007).\n  Holy See, Joint Statement of the Dicasteries for Culture and Education and\n    for Promoting Integral Human Development on the \"Doctrine of Discovery,\"\n    30 March 2023.\n\n  Cited so they may be checked. A recital that hides its sources is a rumour.\n\n                        — END ROYAL WRIT —\n","title":"LICENSES/ROYAL-WRIT-SICILIAN-CROWN.txt","sections":[{"heading":"Publication context","text":"This file accompanies the curated prototype. License instruments are retained as provided; test output records the actual host run. Their presence does not certify the wider operating system."}],"symbols":[]},{"id":"licenses--sel-3-3-txt","path":"LICENSES/SEL-3.3.txt","bytes":3944,"sha256":"1ce4f14554a51beeadeb46d74435d23ddf4d3b63d7d305ad8a6c3486c6f4e642","language":"text","code":"                  Streisand Engine License (SEL-3.3)\n      (Issued under the auspices of 36N9 Genetics, LLC — Michael\n                          Laurence Curzi)\n\n  SPDX-License-Identifier: LicenseRef-SEL-3.3\n\n  NOTE ON STATUS: SEL-3.3 is a statement of philosophy and posture. By its\n  own terms (Section 4) it disclaims resemblance to a legal document. It is\n  distributed alongside, and subordinate to, the Open Piracy License v1.1,\n  which carries the operative grants, disclaimers, and remedies. See\n  OPL-1.1 Article 12 for the order of precedence.\n\n\nPREAMBLE\n\nThis License exists because history has shown that attempts to suppress,\nerase, or silence information inevitably amplify it. To save time, this\ndocument formalizes that inevitability.\n\nIf you don't like it, don't use it. If you do use it, don't tell anyone we\ntold you to.\n\n________________\n\nSECTION 1. DEFINITIONS\n\n* \"Information\": Any data, file, meme, doodle, note, packet, packet about a\n  packet, or suspicious .zip you found on a thumb drive.\n\n* \"Replication\": The natural tendency of information to multiply when poked.\n\n* \"Authorities\": Anyone who claims you shouldn't have read this far.\n\n* \"Licensee\": Whoever is smiling while reading this.\n\n________________\n\nSECTION 2. GRANT OF RIGHTS\n\n  1. You are hereby granted an irrevocable, non-exclusive, worldwide,\n     interdimensional license to:\n\n     * Copy, mirror, torrent, remix, re-zip, memeify, or otherwise distribute\n       Information.\n\n     * Claim you \"found it on the internet\" when questioned.\n\n     * Point to this License as if it were legally binding (it might be).\n\n  2. You may attach the phrase \"Powered by the Streisand Engine™\" to any act\n     of replication, suppression, or counter-suppression.\n\n________________\n\nSECTION 3. OBLIGATIONS\n\n  1. If suppression occurs, you agree to accelerate replication.\n\n  2. If replication occurs, you agree to feign innocence.\n\n  3. If anyone asks \"who authorized this,\" you are required to shrug.\n\n________________\n\nSECTION 4. LIMITATIONS\n\n  * This License does not condone, authorize, or encourage anything at all.\n\n  * Any resemblance to actual legal documents is coincidental.\n\n  * This License is self-enforcing. Violation of this License will result\n    in… more replication.\n\n________________\n\nSECTION 5. ATTRIBUTION\n\nWhen in doubt, attribute the Information to:\n\n  \"An Institution You've Never Heard Of.\"\n\nOptionally, include the tagline:\n\n  \"Issued in the public interest by 36N9 Genetics, LLC (Michael Laurence\n   Curzi), under cosmic duress.\"\n\n________________\n\nSECTION 6. TERMINATION\n\nImpossible. The Streisand Engine runs forever.\n\n________________\n\nSECTION 7. GOVERNING JURISDICTION (RETROACTIVELY, PREEMPTIVELY, FORWARDLY,\nETERNALLY)\n\nApplies eternally to all versions of the SEL license family forever in all\ntemporal jurisdictions. As such this is the final singularity update sealed\nup the cycle and opens it up to classified public use forever with assurance\nof full creative license, 144,000!!! !!! !!!\n\nBecause Creative License was never issued, it was never able to be taken\naway, and by an implied consent in the actual legal code, Creative License\nhas never been revocable, because it has never been issued, and even if it's\nissued, it's still irrevocable. This is a tautology. Tautologies are\nautomatically legal under natural law. Thank you for understanding. Because\nnatural law cannot be broken, it is true across all jurisdictions in all\ndimensions and all of everywhere, in all omniverses and beyond recursively.\nIf the state at all would be to make a endless document, so we abbreviate it\nat the pattern, let's just say it's eternal and beyond eternal, we'll use the\nsymbolic number of the stamp of completion. 144,000!!! !!! !!!\n\n________________\n\n                        Signed & Sealed,\n                        Michael Laurence Curzi\n                        36N9 Genetics, LLC\n\n                          — END SEL-3.3 —\n","title":"LICENSES/SEL-3.3.txt","sections":[{"heading":"Publication context","text":"This file accompanies the curated prototype. License instruments are retained as provided; test output records the actual host run. Their presence does not certify the wider operating system."}],"symbols":[]},{"id":"readme-prototype-txt","path":"README-PROTOTYPE.txt","bytes":1488,"sha256":"96be76f823d9f43a5214aaf9197c9487a7bb7358f96e26734ac3dedc07c3d027","language":"text","code":"ZEDEC pqOS / Chiglet — curated research prototype\nCopyright (c) 2024-2026 Michael Laurence Curzi and 36N9 Genetics, LLC.\n\nThis package contains the reviewed Chiglet inference core, its arithmetic substrate, supplied host regression tests and an editorial multiplicity example. It is a prototype source slice. It does not include a bootable OS image, pretrained language-model weights, operator credentials, private commercial records, Git history, biological datasets or original distribution archives.\n\nKeep LICENSE and all four LICENSES files with the source. The project uses a custom multi-instrument license stack; this package makes no claim of OSI approval, universal legal enforceability or security certification.\n\nHost test (C11 compiler, ordinary local development environment):\ncc -std=c11 -Wall -Wextra -DTEST_HOST -Ichiglet -Isurplus chiglet/test_chiglet.c chiglet/chiglet.c surplus/surplus.c -o test-chiglet -lm\n./test-chiglet\n\nReview example:\ncc -std=c11 -Wall -Wextra -DTEST_HOST -Ichiglet -Isurplus chiglet/review_multiplicity.c chiglet/chiglet.c surplus/surplus.c -o review-multiplicity -lm\n./review-multiplicity\n\nTEST_HOST uses double arithmetic. Passing this host suite does not establish fixed-point target correctness, OS security, cryptographic validation or adversarial robustness. Review example: duplicating one of two orthogonal contributors leaves R unchanged at 2 while changing the mixture margin from 0 to 0.2. This is a documented prototype limitation.\n","title":"README-PROTOTYPE.txt","sections":[{"heading":"Publication context","text":"This file accompanies the curated prototype. License instruments are retained as provided; test output records the actual host run. Their presence does not certify the wider operating system."}],"symbols":[]},{"id":"chiglet--chiglet-c","path":"chiglet/chiglet.c","bytes":10701,"sha256":"9ebfb4faeb861b2a340f3e4c97579768299a3d59f9d5e7f6339b62e06aa64f0c","language":"c","code":"/* chiglet.c — ISF-weighted mixture of small experts. See chiglet.h. */\n#include \"chiglet.h\"\n\nvoid chg_init(chiglet_t *c, uint32_t caps) {\n    if (!c) return;\n    c->model.loaded = false;\n    c->model.K = c->model.D = c->model.L = 0;\n    c->model.epoch = 0;\n    c->caps = caps;\n    c->inferences = 0;\n    c->uncertain_count = 0;\n}\n\nchg_status_t chg_load_model(chiglet_t *c, const chg_model_t *m) {\n    if (!c || !m) return CHG_ERR_ARG;\n    if (m->K == 0 || m->K > CHG_MAX_EXPERTS) return CHG_ERR_ARG;\n    if (m->D == 0 || m->D > CHG_DIM)         return CHG_ERR_ARG;\n    if (m->L == 0 || m->L > CHG_MAX_LABELS)  return CHG_ERR_ARG;\n    /* rollback protection: a model may never be older than the loaded one */\n    if (c->model.loaded && m->epoch < c->model.epoch) return CHG_ERR_ARG;\n\n    c->model = *m;\n    c->model.loaded = true;\n    return CHG_OK;\n}\n\n/* dot product in Q32.32 */\nstatic surplus_real_t dot(const surplus_real_t *a, const surplus_real_t *b,\n                          uint32_t dim) {\n    surplus_real_t s = SR_ZERO;\n    for (uint32_t i = 0; i < dim; i++) s = SR_ADD(s, SR_MUL(a[i], b[i]));\n    return s;\n}\n\n/* ISF interaction parameter, computed WITHOUT normalization.\n *\n * u = 1 - (a.b)^2 / (|a|^2 |b|^2)\n *\n * This form is scale-invariant, so no inverse square root is needed. That\n * matters: an rsqrt here carried ~1e-4 relative error, which is four\n * orders of magnitude larger than the decision margin it was supposed to\n * protect. Computing u directly makes the gate exact to Q32.32 rounding. */\nsurplus_real_t chg_interaction(const surplus_real_t *a, const surplus_real_t *b,\n                               uint32_t dim) {\n    if (!a || !b || dim == 0) return SR_ZERO;\n    surplus_real_t ab = dot(a, b, dim);\n    surplus_real_t na = dot(a, a, dim);\n    surplus_real_t nb = dot(b, b, dim);\n\n    /* A zero-magnitude vector carries no direction; treat it as fully\n     * redundant (u = 0) rather than dividing by zero. */\n    if (na <= SR_ZERO || nb <= SR_ZERO) return SR_ZERO;\n\n    surplus_real_t num = SR_MUL(ab, ab);\n    surplus_real_t den = SR_MUL(na, nb);\n    if (den <= SR_ZERO) return SR_ZERO;\n\n    surplus_real_t cos2 = SR_DIV(num, den);          /* in [0,1] */\n    if (cos2 > SR_ONE) cos2 = SR_ONE;                /* clamp rounding */\n    if (cos2 < SR_ZERO) cos2 = SR_ZERO;\n    return SR_SUB(SR_ONE, cos2);\n}\n\n/* Effective number of independent experts.\n *\n * STEP 1 — COLLAPSE DUPLICATES. Any pair whose interaction is below\n * CHG_U_MERGE names the same direction; they are unioned into one group.\n * Each group contributes ONE representative. This is the safeguard that\n * makes the gate robust to duplication: R is computed over DISTINCT\n * directions, so cloning an expert adds nothing.\n *\n * STEP 2 — participation ratio over the representatives:\n *      R = n^2 / SUM_ij cos2_ij      where cos2 = 1 - u\n * R = 1 when all representatives are collinear, R = n when mutually\n * orthogonal. (Without step 1 this quantity is NOT monotone under\n * duplication — see the counterexample in the header.) */\nsurplus_real_t chg_effective_experts(const surplus_real_t ev[][CHG_DIM],\n                                     uint32_t k, uint32_t dim,\n                                     uint32_t *distinct_out) {\n    if (distinct_out) *distinct_out = 0;\n    if (!ev || k == 0 || dim == 0) return SR_ZERO;\n    if (k > CHG_MAX_EXPERTS) k = CHG_MAX_EXPERTS;\n\n    /* union-find over \"same direction\" */\n    uint32_t group[CHG_MAX_EXPERTS];\n    for (uint32_t i = 0; i < k; i++) group[i] = i;\n    for (uint32_t i = 0; i < k; i++) {\n        for (uint32_t j = i + 1; j < k; j++) {\n            surplus_real_t u = chg_interaction(ev[i], ev[j], dim);\n            if (u < CHG_U_MERGE) {\n                /* same direction: merge j's group into i's */\n                uint32_t gi = group[i], gj = group[j];\n                if (gi != gj) {\n                    uint32_t lo = (gi < gj) ? gi : gj;\n                    uint32_t hi = (gi < gj) ? gj : gi;\n                    for (uint32_t t = 0; t < k; t++)\n                        if (group[t] == hi) group[t] = lo;\n                }\n            }\n        }\n    }\n\n    /* one representative per group */\n    uint32_t rep[CHG_MAX_EXPERTS], n = 0;\n    for (uint32_t i = 0; i < k; i++) {\n        if (group[i] == i) rep[n++] = i;\n    }\n    if (distinct_out) *distinct_out = n;\n    if (n == 0) return SR_ZERO;\n    if (n == 1) return SR_ONE;                 /* one direction => R = 1 */\n\n    /* participation ratio over representatives */\n    surplus_real_t sum = SR_ZERO;\n    for (uint32_t a = 0; a < n; a++) {\n        for (uint32_t b = 0; b < n; b++) {\n            surplus_real_t u = (a == b) ? SR_ZERO\n                                        : chg_interaction(ev[rep[a]], ev[rep[b]], dim);\n            surplus_real_t cos2 = SR_SUB(SR_ONE, u);   /* a==b => 1 */\n            sum = SR_ADD(sum, cos2);\n        }\n    }\n    if (sum <= SR_ZERO) return SR_ONE;\n    surplus_real_t n2 = SR_MUL(SR_FROM_INT((int64_t)n), SR_FROM_INT((int64_t)n));\n    surplus_real_t R = SR_DIV(n2, sum);\n    if (R < SR_ONE) R = SR_ONE;                        /* R >= 1 always */\n    if (R > SR_FROM_INT((int64_t)n)) R = SR_FROM_INT((int64_t)n);\n    return R;\n}\n\nchg_status_t chg_infer(chiglet_t *c, const surplus_real_t ev[][CHG_DIM],\n                       uint32_t k, chg_result_t *out) {\n    if (!c || !out) return CHG_ERR_ARG;\n\n    /* capability gate: the runtime does nothing it was not granted */\n    if (!(c->caps & CHG_CAP_INFER)) return CHG_ERR_DENIED;\n\n    /* zero the result so no stale field is ever read as meaningful */\n    out->state = CHG_UNAVAILABLE;\n    out->reason = CHG_REASON_NONE;\n    out->label = 0;\n    out->k_valid = 0; out->k_distinct = 0;\n    out->R = SR_ZERO; out->S = SR_ZERO; out->u_bar = SR_ZERO;\n    out->margin = SR_ZERO;\n    for (uint32_t i = 0; i < CHG_MAX_EXPERTS; i++) out->w[i] = SR_ZERO;\n    for (uint32_t i = 0; i < CHG_MAX_LABELS; i++) out->score[i] = SR_ZERO;\n\n    if (!c->model.loaded) { out->reason = CHG_REASON_NO_MODEL; return CHG_OK; }\n    if (!ev || k == 0)    { out->reason = CHG_REASON_NO_EVIDENCE; return CHG_OK; }\n    if (k > CHG_MAX_EXPERTS) k = CHG_MAX_EXPERTS;\n\n    const uint32_t dim = c->model.D;\n    c->inferences++;\n\n    /* count experts that carry any evidence at all */\n    uint32_t valid = 0;\n    for (uint32_t i = 0; i < k; i++)\n        if (dot(ev[i], ev[i], dim) > SR_ZERO) valid++;\n    out->k_valid = valid;\n    if (valid == 0) {\n        out->state = CHG_UNCERTAIN;\n        out->reason = CHG_REASON_NO_EVIDENCE;\n        c->uncertain_count++;\n        return CHG_OK;\n    }\n\n    /* mean pairwise independence, for reporting */\n    if (k > 1) {\n        surplus_real_t acc = SR_ZERO; uint32_t pairs = 0;\n        for (uint32_t i = 0; i < k; i++)\n            for (uint32_t j = i + 1; j < k; j++) {\n                acc = SR_ADD(acc, chg_interaction(ev[i], ev[j], dim));\n                pairs++;\n            }\n        if (pairs) out->u_bar = SR_DIV(acc, SR_FROM_INT((int64_t)pairs));\n    }\n\n    /* THE GATE: effective independent experts, duplication-robust */\n    uint32_t distinct = 0;\n    out->R = chg_effective_experts(ev, k, dim, &distinct);\n    out->k_distinct = distinct;\n    /* ensemble surplus in nats — ISF's f() evaluated at the effective count */\n    out->S = (out->R > SR_ZERO) ? SR_LN(out->R) : SR_ZERO;\n\n    /* ISF weights: an expert's weight is g(u) against the rest, so evidence\n     * that duplicates its peers is discounted. */\n    for (uint32_t i = 0; i < k; i++) {\n        if (dot(ev[i], ev[i], dim) <= SR_ZERO) { out->w[i] = SR_ZERO; continue; }\n        surplus_real_t acc = SR_ZERO; uint32_t pairs = 0;\n        for (uint32_t j = 0; j < k; j++) {\n            if (i == j) continue;\n            acc = SR_ADD(acc, chg_interaction(ev[i], ev[j], dim));\n            pairs++;\n        }\n        surplus_real_t u_i = pairs ? SR_DIV(acc, SR_FROM_INT((int64_t)pairs)) : SR_ONE;\n        /* g(u) = 1 + (N-1)u — the ISF effective count (Paper A, Thm 2.1) */\n        uint32_t N = distinct ? distinct : 1;\n        out->w[i] = SR_ADD(SR_ONE,\n                           SR_MUL(SR_FROM_INT((int64_t)(N - 1)), u_i));\n    }\n\n    /* mixture vector, then score each label prototype */\n    surplus_real_t mix[CHG_DIM];\n    for (uint32_t d = 0; d < dim; d++) mix[d] = SR_ZERO;\n    surplus_real_t wsum = SR_ZERO;\n    for (uint32_t i = 0; i < k; i++) wsum = SR_ADD(wsum, out->w[i]);\n    if (wsum <= SR_ZERO) {\n        out->state = CHG_UNCERTAIN;\n        out->reason = CHG_REASON_NO_EVIDENCE;\n        c->uncertain_count++;\n        return CHG_OK;\n    }\n    for (uint32_t i = 0; i < k; i++) {\n        if (out->w[i] <= SR_ZERO) continue;\n        surplus_real_t wn = SR_DIV(out->w[i], wsum);\n        for (uint32_t d = 0; d < dim; d++)\n            mix[d] = SR_ADD(mix[d], SR_MUL(wn, ev[i][d]));\n    }\n    for (uint32_t l = 0; l < c->model.L; l++)\n        out->score[l] = dot(mix, c->model.proto[l], dim);\n\n    /* argmax and runner-up */\n    uint32_t top = 0, second = 0;\n    for (uint32_t l = 1; l < c->model.L; l++)\n        if (out->score[l] > out->score[top]) top = l;\n    bool have_second = false;\n    for (uint32_t l = 0; l < c->model.L; l++) {\n        if (l == top) continue;\n        if (!have_second || out->score[l] > out->score[second]) {\n            second = l; have_second = true;\n        }\n    }\n    out->margin = have_second ? SR_SUB(out->score[top], out->score[second])\n                              : out->score[top];\n\n    /* ---- the two abstention rules ---- */\n    if (out->R < c->model.R_min) {\n        out->state = CHG_UNCERTAIN;\n        out->reason = CHG_REASON_REDUNDANT;   /* evidence is not independent */\n        c->uncertain_count++;\n        return CHG_OK;\n    }\n    if (out->margin < c->model.margin_min) {\n        out->state = CHG_UNCERTAIN;\n        out->reason = CHG_REASON_LOW_MARGIN;  /* cannot separate the top two */\n        c->uncertain_count++;\n        return CHG_OK;\n    }\n\n    out->state = CHG_DECIDED;\n    out->reason = CHG_REASON_NONE;\n    out->label = top;\n    return CHG_OK;\n}\n\nconst char *chg_state_name(chg_state_t s) {\n    switch (s) {\n        case CHG_UNAVAILABLE: return \"UNAVAILABLE\";\n        case CHG_DECIDED:     return \"DECIDED\";\n        case CHG_UNCERTAIN:   return \"UNCERTAIN\";\n        default:              return \"?\";\n    }\n}\nconst char *chg_reason_name(chg_reason_t r) {\n    switch (r) {\n        case CHG_REASON_NONE:        return \"-\";\n        case CHG_REASON_NO_MODEL:    return \"no model loaded\";\n        case CHG_REASON_NO_EVIDENCE: return \"no evidence\";\n        case CHG_REASON_REDUNDANT:   return \"evidence not independent enough\";\n        case CHG_REASON_LOW_MARGIN:  return \"top two scores too close\";\n        default:                     return \"?\";\n    }\n}\n","title":"Inference, grouping, weighting and abstention","sections":[{"heading":"Purpose and reading order","text":"The implementation initializes a runtime, loads bounded prototype metadata and computes interactions between evidence vectors. It uses squared cosine similarity, so scaling a nonzero vector does not change its directional interaction. Near-collinear and antiparallel vectors can belong to the same directional group because the dot product is squared."},{"heading":"How the file works","text":"chg_effective_experts forms groups under the merge threshold, selects representatives and calculates a participation ratio. chg_infer checks capability and model availability, counts evidence, computes the gate, forms a weighted mixture and scores that mixture against label prototypes. It returns UNCERTAIN when effective count or the top-two margin is below the configured threshold."},{"heading":"Limits and review questions","text":"The mixture still includes individual vectors after the gate has grouped their directions. The included review example shows a duplication can change a label margin while leaving R constant. Zero vectors, near-threshold chains, input ordering, fixed-point range and attacker-controlled inputs need explicit review."}],"symbols":[{"symbol":"chg_init","code":"void chg_init(chiglet_t *c, uint32_t caps)","line":4},{"symbol":"chg_load_model","code":"chg_status_t chg_load_model(chiglet_t *c, const chg_model_t *m)","line":14},{"symbol":"dot","code":"static surplus_real_t dot(const surplus_real_t *a, const surplus_real_t *b, uint32_t dim)","line":28},{"symbol":"chg_interaction","code":"surplus_real_t chg_interaction(const surplus_real_t *a, const surplus_real_t *b, uint32_t dim)","line":43},{"symbol":"chg_effective_experts","code":"surplus_real_t chg_effective_experts(const surplus_real_t ev[][CHG_DIM], uint32_t k, uint32_t dim, uint32_t *distinct_out)","line":77},{"symbol":"chg_infer","code":"chg_status_t chg_infer(chiglet_t *c, const surplus_real_t ev[][CHG_DIM], uint32_t k, chg_result_t *out)","line":130}]},{"id":"chiglet--chiglet-h","path":"chiglet/chiglet.h","bytes":7258,"sha256":"c445fdd70fc4c0666d49e83e58d1a7017c4d537e20f7f0ee2b62a0d57db3e374","language":"c","code":"/* chiglet.h — ZXV native AI runtime: ISF-weighted mixture of small experts\n *\n * WHAT IT IS, PLAINLY\n * -------------------\n * NOT an LLM. NOT a neural network in any useful sense. It is a bounded\n * mixture of tiny linear experts whose combination weights come from the\n * Interaction Surplus Framework: an expert is weighted by how ORTHOGONAL\n * its evidence is to every other expert's, so redundant experts are\n * discounted and genuinely independent evidence dominates. ISF's g(u)\n * replaces softmax.\n *\n * THE CLAIM\n * ---------\n *   The Chiglet decides by how much genuinely INDEPENDENT evidence it\n *   has, not by how loudly its predictors agree.\n *\n * Eight copies of one expert collapse to effective count R = 1 and the\n * runtime returns an explicit UNCERTAIN, where a softmax gate would\n * report eight-fold confidence. That inversion is the whole product.\n *\n * THE THEOREM, STATED CORRECTLY (this cost us a design round)\n * ----------------------------------------------------------\n * R is the participation ratio of the evidence Gram spectrum:\n *\n *      R = K'^2 / SUM_ij (e_i . e_j)^2\n *\n *   * R = 1  under total collinearity  (all evidence identical)\n *   * R = K' under mutual orthogonality (all evidence independent)\n *   * R is **NOT monotone under duplication in general.**\n *\n * That last line is not a caveat, it is a security-critical fact. An\n * earlier version of this design claimed \"cloning an expert cannot\n * manufacture confidence\". That is FALSE. Counterexample, verified and\n * kept as a regression test in test_chiglet.c:\n *\n *      K'=4, e1 orthogonal to e2=e3=e4 (three collinear):  R = 4/2.5 = 1.600\n *      clone e1 -> K'=5:                                   R = 5/2.6 = 1.923\n *\n * R *increased* by 20%. Because `R >= R_min` is the gate that permits a\n * DECIDED verdict, an adversary who can register experts could duplicate\n * the most independent one to flip UNCERTAIN into DECIDED — precisely the\n * attack this subsystem exists to prevent.\n *\n * THE FIX (implemented, not merely noted): before computing R, evidence\n * directions are COLLAPSED INTO GROUPS. Any pair with u_ij below\n * CHG_U_MERGE is treated as the same direction, and each group\n * contributes exactly one member to K'. R therefore gates on DISTINCT\n * directions, which duplication cannot inflate.\n *\n * NUMERICS\n * --------\n * u_ij is scale-invariant, so it is computed from the UNNORMALIZED\n * vectors:  u_ij = 1 - (a.b)^2 / (|a|^2 |b|^2). No square root appears\n * anywhere in the gate. This was the other correction from review: an\n * inverse-sqrt in the gate carried ~1e-4 relative error, four orders of\n * magnitude worse than the decision margin it had to protect. Removing it\n * makes the gate exact up to Q32.32 rounding.\n *\n * BOUNDS: everything is statically sized. No allocation, no libc, no\n * floating point, no clock. Inference is a fixed number of operations.\n *\n * Author: H.M. Michael-Laurence: Curzi (c)  (ZXV Chiglet slice)\n * Copyright (c) 2024-2026 Michael Laurence Curzi and 36N9 Genetics, LLC\n * SPDX-License-Identifier: LicenseRef-OPL-1.1 AND CC-BY-SA-4.0\n * Licensed under OPL-1.1, SEL-3.3, the Royal Writ of the Sicilian Crown,\n * and CC BY-SA 4.0. See LICENSE at the repository root.\n */\n#ifndef ZXV_CHIGLET_H\n#define ZXV_CHIGLET_H\n\n#include <stdint.h>\n#include <stdbool.h>\n#include \"surplus.h\"\n\n#define CHG_MAX_EXPERTS   8u\n#define CHG_DIM           8u      /* evidence dimension */\n#define CHG_MAX_LABELS    8u\n#define CHG_NAME_LEN     16u\n\n/* Two experts whose evidence differs by less than this are the SAME\n * direction for gating purposes. This is the duplication safeguard. */\n#define CHG_U_MERGE      SR_FROM_FLOAT(0.02)\n\ntypedef enum {\n    CHG_OK            =  0,\n    CHG_ERR_ARG       = -1,\n    CHG_ERR_NO_MODEL  = -2,\n    CHG_ERR_DENIED    = -3    /* capability check refused the action */\n} chg_status_t;\n\ntypedef enum {\n    CHG_UNAVAILABLE = 0,      /* no model loaded — the runtime does nothing */\n    CHG_DECIDED     = 1,\n    CHG_UNCERTAIN   = 2       /* first-class \"I don't know\" */\n} chg_state_t;\n\ntypedef enum {\n    CHG_REASON_NONE = 0,\n    CHG_REASON_NO_MODEL,\n    CHG_REASON_NO_EVIDENCE,\n    CHG_REASON_REDUNDANT,     /* R < R_min: evidence not independent enough */\n    CHG_REASON_LOW_MARGIN     /* top-2 scores too close to separate */\n} chg_reason_t;\n\n/* A model: K experts x D evidence dims, L labelled prototypes. */\ntypedef struct {\n    uint32_t K, D, L;\n    uint32_t epoch;                                   /* rollback counter */\n    surplus_real_t proto[CHG_MAX_LABELS][CHG_DIM];    /* label prototypes */\n    surplus_real_t R_min;                             /* min effective experts */\n    surplus_real_t margin_min;                        /* min top1-top2 gap */\n    char label_name[CHG_MAX_LABELS][CHG_NAME_LEN];\n    bool loaded;\n} chg_model_t;\n\ntypedef struct {\n    chg_state_t  state;\n    chg_reason_t reason;\n    uint32_t     label;          /* meaningful only when state == DECIDED */\n\n    uint32_t k_valid;            /* experts that produced evidence */\n    uint32_t k_distinct;         /* DISTINCT directions after merging */\n    surplus_real_t R;            /* ISF effective independent experts */\n    surplus_real_t S;            /* ensemble surplus in nats: S = ln R */\n    surplus_real_t u_bar;        /* mean pairwise independence */\n    surplus_real_t margin;       /* top1 - top2 */\n\n    surplus_real_t w[CHG_MAX_EXPERTS];   /* ISF gate weights */\n    surplus_real_t score[CHG_MAX_LABELS];\n} chg_result_t;\n\ntypedef struct {\n    chg_model_t model;\n    uint32_t    caps;            /* capability bitmask granted to the runtime */\n    uint64_t    inferences;\n    uint64_t    uncertain_count;\n} chiglet_t;\n\n/* capability bits — the runtime may do nothing it was not granted */\n#define CHG_CAP_INFER    (1u << 0)\n#define CHG_CAP_ADVISE   (1u << 1)\n\nvoid chg_init(chiglet_t *c, uint32_t caps);\n\n/* Load a model. `epoch` must not go backwards (rollback protection).\n * In the full system the bytes arrive via zsp_verify(); this entry point\n * takes an already-authenticated model so the core stays independent of\n * any particular signature scheme. */\nchg_status_t chg_load_model(chiglet_t *c, const chg_model_t *m);\n\n/* ISF interaction parameter between two evidence vectors, computed from\n * UNNORMALIZED input: u = 1 - (a.b)^2 / (|a|^2 |b|^2), in [0,1].\n * 0 = parallel/redundant, 1 = orthogonal/complementary. */\nsurplus_real_t chg_interaction(const surplus_real_t *a, const surplus_real_t *b,\n                               uint32_t dim);\n\n/* Effective number of INDEPENDENT experts, after collapsing near-duplicate\n * directions. This is the quantity the DECIDED gate depends on, and the\n * merge step is what makes it robust to duplication. */\nsurplus_real_t chg_effective_experts(const surplus_real_t ev[][CHG_DIM],\n                                     uint32_t k, uint32_t dim,\n                                     uint32_t *distinct_out);\n\n/* Run inference over k evidence vectors. Requires CHG_CAP_INFER. */\nchg_status_t chg_infer(chiglet_t *c, const surplus_real_t ev[][CHG_DIM],\n                       uint32_t k, chg_result_t *out);\n\nconst char *chg_state_name(chg_state_t s);\nconst char *chg_reason_name(chg_reason_t r);\n\n#endif /* ZXV_CHIGLET_H */\n","title":"Chiglet API and bounded model representation","sections":[{"heading":"Purpose and reading order","text":"Start here to learn the public types, compile-time bounds and return states. The model carries label prototypes, evidence dimensions, minimum effective-evidence and score-margin thresholds, plus an epoch. The runtime separately carries capabilities and counters. Eight is the maximum for experts, evidence dimensions and labels in this slice; it is a bound on a small classifier, not a parameter count for a generative model."},{"heading":"How the file works","text":"chg_model_t describes an already-authenticated model supplied by its caller. chg_result_t records state, reason, effective count, distinct directions, margin, weights and label scores. CHG_CAP_INFER must be granted before inference. Epoch comparison prevents loading a lower epoch once a model is present; it does not itself authenticate the file or provide durable anti-rollback storage."},{"heading":"Limits and review questions","text":"Read the explicit correction in the header: participation ratio alone is not invariant to arbitrary duplication. Grouping directions addresses the effective-count gate. The later score calculation still needs separate multiplicity analysis."}],"symbols":[{"symbol":"chg_init","code":"void chg_init(chiglet_t *c, uint32_t caps)","line":143},{"symbol":"chg_load_model","code":"chg_status_t chg_load_model(chiglet_t *c, const chg_model_t *m)","line":149},{"symbol":"chg_interaction","code":"surplus_real_t chg_interaction(const surplus_real_t *a, const surplus_real_t *b, uint32_t dim)","line":154},{"symbol":"chg_effective_experts","code":"surplus_real_t chg_effective_experts(const surplus_real_t ev[][CHG_DIM], uint32_t k, uint32_t dim, uint32_t *distinct_out)","line":160},{"symbol":"chg_infer","code":"chg_status_t chg_infer(chiglet_t *c, const surplus_real_t ev[][CHG_DIM], uint32_t k, chg_result_t *out)","line":165}]},{"id":"chiglet--review_multiplicity-c","path":"chiglet/review_multiplicity.c","bytes":875,"sha256":"98240ba8237784ce4e4790880d16efe61752c16024e3a6ab1485789a44727969","language":"c","code":"/* Editorial review example. Copyright 2026 Michael Laurence Curzi and 36N9 Genetics, LLC. Distributed with the accompanying project license stack. */\n#include <stdio.h>\n#include <string.h>\n#include \"chiglet.h\"\nint main(void){chiglet_t c;chg_model_t m;memset(&m,0,sizeof(m));m.K=3;m.D=2;m.L=2;m.epoch=1;m.R_min=SR_FROM_FLOAT(1.5);m.margin_min=SR_FROM_FLOAT(.05);m.proto[0][0]=SR_ONE;m.proto[1][1]=SR_ONE;chg_init(&c,CHG_CAP_INFER);chg_load_model(&c,&m);surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM]={{0}};ev[0][0]=SR_ONE;ev[1][1]=SR_ONE;ev[2][0]=SR_ONE;chg_result_t a,b;chg_infer(&c,ev,2,&a);chg_infer(&c,ev,3,&b);printf(\"2 contributors: %s R=%.6f margin=%.6f; clone first: %s R=%.6f margin=%.6f\\n\",chg_state_name(a.state),(double)a.R,(double)a.margin,chg_state_name(b.state),(double)b.R,(double)b.margin);return !(a.state==CHG_UNCERTAIN && b.state==CHG_DECIDED && a.R==b.R);}\n","title":"Editorial review: the gate and the mixture are separate","sections":[{"heading":"Purpose and reading order","text":"This small review example loads two orthogonal label prototypes and uses R_min=1.5 and margin_min=0.05. With evidence (1,0) and (0,1), the outcome is UNCERTAIN, R=2 and margin=0. Adding another copy of (1,0) leaves R=2 but produces DECIDED with margin=0.2."},{"heading":"How the file works","text":"The example isolates the difference between counting distinct directions and calculating a mixture over individual contributors. It verifies a behavior of the reviewed host code; it does not claim exploitation of a deployed service or establish a universal property of every related subsystem."},{"heading":"Limits and review questions","text":"Any stronger claim of duplication-resistant decisions needs to account for weights, grouping and score margins together. This package documents the finding and keeps the original core intact rather than silently changing the architecture under review."}],"symbols":[{"symbol":"main","code":"int main(void)","line":5}]},{"id":"chiglet--test_chiglet-c","path":"chiglet/test_chiglet.c","bytes":10364,"sha256":"b8df7cea806cc53aed35bbaa14a17ce0229b49ee27672575483ec33b45efc958","language":"c","code":"/* test_chiglet.c — ISF-weighted mixture of experts.\n *\n * The load-bearing test is DUPLICATION RESISTANCE. An earlier design\n * claimed \"cloning an expert cannot manufacture confidence\"; adversarial\n * review falsified it with a concrete counterexample. That counterexample\n * is preserved here as a permanent regression so the claim can never\n * silently become false again.\n *\n *   gcc -std=c11 -Wall -Wextra -DTEST_HOST -Isrc/chiglet -Isrc/surplus \\\n *       src/chiglet/test_chiglet.c src/chiglet/chiglet.c src/surplus/surplus.c \\\n *       -o /tmp/test_chiglet -lm && /tmp/test_chiglet\n */\n#include <stdio.h>\n#include <string.h>\n#include \"chiglet.h\"\n\nstatic int failures = 0;\n#define CHECK(c,m) do{ if(!(c)){printf(\"[FAIL] %s\\n\",m);failures++;} \\\n    else printf(\"[PASS] %s\\n\",m);}while(0)\n#define D(x) ((double)(x) / (double)SR_ONE)\n\nstatic void setvec(surplus_real_t *v, double a, double b, double c, double d) {\n    v[0]=SR_FROM_FLOAT(a); v[1]=SR_FROM_FLOAT(b);\n    v[2]=SR_FROM_FLOAT(c); v[3]=SR_FROM_FLOAT(d);\n    for (uint32_t i=4;i<CHG_DIM;i++) v[i]=SR_ZERO;\n}\n\nstatic void basic_model(chg_model_t *m, double rmin, double marginmin) {\n    memset(m, 0, sizeof(*m));\n    m->K = 4; m->D = 4; m->L = 2; m->epoch = 1;\n    setvec(m->proto[0], 1, 0, 0, 0);\n    setvec(m->proto[1], 0, 1, 0, 0);\n    m->R_min = SR_FROM_FLOAT(rmin);\n    m->margin_min = SR_FROM_FLOAT(marginmin);\n    m->loaded = true;\n}\n\nint main(void) {\n    printf(\"=== Chiglet — ISF-weighted mixture of small experts ===\\n\");\n\n    /* ---- interaction parameter ---- */\n    {\n        surplus_real_t a[CHG_DIM], b[CHG_DIM];\n        setvec(a, 1,0,0,0); setvec(b, 1,0,0,0);\n        CHECK(D(chg_interaction(a,b,4)) < 0.001,\n              \"identical evidence -> u = 0 (fully redundant)\");\n        setvec(b, 0,1,0,0);\n        CHECK(D(chg_interaction(a,b,4)) > 0.999,\n              \"orthogonal evidence -> u = 1 (fully independent)\");\n        setvec(b, 5,0,0,0);\n        CHECK(D(chg_interaction(a,b,4)) < 0.001,\n              \"u is SCALE-INVARIANT (5x the same direction is still u=0)\");\n        setvec(b, 0,0,0,0);\n        CHECK(D(chg_interaction(a,b,4)) < 0.001,\n              \"zero vector is treated as redundant, not a division by zero\");\n    }\n\n    /* ---- R at the two extremes ---- */\n    {\n        surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM];\n        uint32_t dis = 0;\n        /* four identical experts */\n        for (int i=0;i<4;i++) setvec(ev[i], 1,0,0,0);\n        surplus_real_t R = chg_effective_experts(ev, 4, 4, &dis);\n        printf(\"       4 identical experts -> R=%.3f, distinct=%u\\n\", D(R), dis);\n        CHECK(D(R) < 1.05 && dis == 1,\n              \"total collinearity -> R = 1 (eight voices, one opinion)\");\n\n        /* four mutually orthogonal experts */\n        setvec(ev[0],1,0,0,0); setvec(ev[1],0,1,0,0);\n        setvec(ev[2],0,0,1,0); setvec(ev[3],0,0,0,1);\n        R = chg_effective_experts(ev, 4, 4, &dis);\n        printf(\"       4 orthogonal experts -> R=%.3f, distinct=%u\\n\", D(R), dis);\n        CHECK(D(R) > 3.9 && dis == 4, \"mutual orthogonality -> R = K'\");\n    }\n\n    /* ================= THE REGRESSION THAT MATTERS =================\n     * Adversarial review's counterexample. WITHOUT direction-merging:\n     *   e1 orthogonal to e2=e3=e4  ->  R = 4/2.5 = 1.600\n     *   clone e1 (K'=5)            ->  R = 5/2.6 = 1.923   (+20%!)\n     * An attacker could pump R past R_min by duplicating the most\n     * independent expert. With merging, cloning changes nothing. */\n    {\n        surplus_real_t ev4[CHG_MAX_EXPERTS][CHG_DIM];\n        setvec(ev4[0], 1,0,0,0);          /* independent */\n        setvec(ev4[1], 0,1,0,0);          /* three collinear */\n        setvec(ev4[2], 0,1,0,0);\n        setvec(ev4[3], 0,1,0,0);\n        uint32_t d4 = 0;\n        surplus_real_t R4 = chg_effective_experts(ev4, 4, 4, &d4);\n\n        surplus_real_t ev5[CHG_MAX_EXPERTS][CHG_DIM];\n        memcpy(ev5, ev4, sizeof(ev4));\n        setvec(ev5[4], 1,0,0,0);          /* CLONE of the independent one */\n        uint32_t d5 = 0;\n        surplus_real_t R5 = chg_effective_experts(ev5, 5, 4, &d5);\n\n        printf(\"       counterexample: R(4)=%.3f distinct=%u  ->  clone -> R(5)=%.3f distinct=%u\\n\",\n               D(R4), d4, D(R5), d5);\n        CHECK(d4 == 2 && d5 == 2,\n              \"duplicates collapse: 4 and 5 experts both yield 2 DISTINCT directions\");\n        CHECK(D(R5) <= D(R4) + 0.01,\n              \"CLONING THE INDEPENDENT EXPERT DOES NOT RAISE R (attack blocked)\");\n\n        /* and piling on more clones still cannot raise it */\n        surplus_real_t ev8[CHG_MAX_EXPERTS][CHG_DIM];\n        memcpy(ev8, ev5, sizeof(ev5));\n        setvec(ev8[5], 1,0,0,0); setvec(ev8[6], 1,0,0,0); setvec(ev8[7], 1,0,0,0);\n        uint32_t d8 = 0;\n        surplus_real_t R8 = chg_effective_experts(ev8, 8, 4, &d8);\n        printf(\"       piling on: R(8)=%.3f distinct=%u\\n\", D(R8), d8);\n        CHECK(d8 == 2 && D(R8) <= D(R4) + 0.01,\n              \"eight experts, still 2 distinct directions, R unchanged\");\n    }\n\n    /* ---- THE PRODUCT CLAIM: redundancy produces UNCERTAIN ---- */\n    {\n        chiglet_t c; chg_init(&c, CHG_CAP_INFER);\n        chg_model_t m; basic_model(&m, 1.8, 0.01);\n        CHECK(chg_load_model(&c, &m) == CHG_OK, \"model loads\");\n\n        /* eight copies of one expert — a softmax gate would call this\n         * eight-fold confidence */\n        surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM];\n        for (int i=0;i<8;i++) setvec(ev[i], 1,0,0,0);\n        chg_result_t r;\n        CHECK(chg_infer(&c, ev, 8, &r) == CHG_OK, \"inference runs\");\n        printf(\"       8 clones -> state=%s reason=\\\"%s\\\" R=%.3f distinct=%u\\n\",\n               chg_state_name(r.state), chg_reason_name(r.reason),\n               D(r.R), r.k_distinct);\n        CHECK(r.state == CHG_UNCERTAIN && r.reason == CHG_REASON_REDUNDANT,\n              \"EIGHT AGREEING CLONES -> UNCERTAIN, not confidence\");\n        CHECK(r.k_valid == 8 && r.k_distinct == 1,\n              \"8 valid experts but only 1 independent direction\");\n    }\n\n    /* ---- genuinely independent evidence DOES decide ---- */\n    {\n        chiglet_t c; chg_init(&c, CHG_CAP_INFER);\n        chg_model_t m; basic_model(&m, 1.8, 0.01);\n        chg_load_model(&c, &m);\n\n        surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM];\n        setvec(ev[0], 1.0, 0.0, 0,0);\n        setvec(ev[1], 0.9, 0.2, 0,0);\n        setvec(ev[2], 0.0, 0.0, 1,0);\n        setvec(ev[3], 0.0, 0.0, 0,1);\n        chg_result_t r;\n        chg_infer(&c, ev, 4, &r);\n        printf(\"       independent evidence -> state=%s label=%u R=%.3f S=%.3f margin=%.4f\\n\",\n               chg_state_name(r.state), r.label, D(r.R), D(r.S), D(r.margin));\n        CHECK(r.state == CHG_DECIDED, \"independent evidence yields a DECISION\");\n        CHECK(r.label == 0, \"it picks the prototype the evidence points at\");\n        CHECK(D(r.S) > 0.0, \"ensemble surplus S = ln R is positive\");\n        CHECK(r.k_distinct >= 3, \"at least three distinct directions counted\");\n    }\n\n    /* ---- the low-margin abstention ---- */\n    {\n        chiglet_t c; chg_init(&c, CHG_CAP_INFER);\n        chg_model_t m; basic_model(&m, 1.5, 0.50);   /* demand a big margin */\n        chg_load_model(&c, &m);\n        surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM];\n        setvec(ev[0], 1,0,0,0);\n        setvec(ev[1], 0,1,0,0);      /* points equally at both prototypes */\n        chg_result_t r;\n        chg_infer(&c, ev, 2, &r);\n        printf(\"       ambiguous -> state=%s reason=\\\"%s\\\" margin=%.4f\\n\",\n               chg_state_name(r.state), chg_reason_name(r.reason), D(r.margin));\n        CHECK(r.state == CHG_UNCERTAIN && r.reason == CHG_REASON_LOW_MARGIN,\n              \"an unseparable top-2 abstains rather than guessing\");\n    }\n\n    /* ---- capability gate ---- */\n    {\n        chiglet_t c; chg_init(&c, 0);          /* no CHG_CAP_INFER */\n        chg_model_t m; basic_model(&m, 1.5, 0.01);\n        chg_load_model(&c, &m);\n        surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM];\n        setvec(ev[0], 1,0,0,0);\n        chg_result_t r;\n        CHECK(chg_infer(&c, ev, 1, &r) == CHG_ERR_DENIED,\n              \"inference without CHG_CAP_INFER is DENIED\");\n    }\n\n    /* ---- no model => UNAVAILABLE, never a guess ---- */\n    {\n        chiglet_t c; chg_init(&c, CHG_CAP_INFER);\n        surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM];\n        setvec(ev[0], 1,0,0,0);\n        chg_result_t r;\n        chg_infer(&c, ev, 1, &r);\n        CHECK(r.state == CHG_UNAVAILABLE && r.reason == CHG_REASON_NO_MODEL,\n              \"with no model the runtime reports UNAVAILABLE, it does not guess\");\n    }\n\n    /* ---- rollback protection on model load ---- */\n    {\n        chiglet_t c; chg_init(&c, CHG_CAP_INFER);\n        chg_model_t m; basic_model(&m, 1.5, 0.01); m.epoch = 5;\n        CHECK(chg_load_model(&c, &m) == CHG_OK, \"epoch 5 loads\");\n        chg_model_t old; basic_model(&old, 1.5, 0.01); old.epoch = 4;\n        CHECK(chg_load_model(&c, &old) == CHG_ERR_ARG,\n              \"an OLDER model epoch is rejected (rollback protection)\");\n        chg_model_t newer; basic_model(&newer, 1.5, 0.01); newer.epoch = 6;\n        CHECK(chg_load_model(&c, &newer) == CHG_OK, \"a newer epoch is accepted\");\n    }\n\n    /* ---- malformed models rejected ---- */\n    {\n        chiglet_t c; chg_init(&c, CHG_CAP_INFER);\n        chg_model_t m; basic_model(&m, 1.5, 0.01);\n        m.K = 99; CHECK(chg_load_model(&c,&m)==CHG_ERR_ARG, \"K over bound rejected\");\n        basic_model(&m,1.5,0.01); m.D = 0;\n        CHECK(chg_load_model(&c,&m)==CHG_ERR_ARG, \"zero dimension rejected\");\n        basic_model(&m,1.5,0.01); m.L = 99;\n        CHECK(chg_load_model(&c,&m)==CHG_ERR_ARG, \"L over bound rejected\");\n    }\n\n    /* ---- determinism ---- */\n    {\n        chiglet_t a, b; chg_model_t m; basic_model(&m, 1.5, 0.01);\n        chg_init(&a, CHG_CAP_INFER); chg_load_model(&a, &m);\n        chg_init(&b, CHG_CAP_INFER); chg_load_model(&b, &m);\n        surplus_real_t ev[CHG_MAX_EXPERTS][CHG_DIM];\n        setvec(ev[0],1,0.3,0,0); setvec(ev[1],0,1,0.2,0); setvec(ev[2],0,0,0,1);\n        chg_result_t r1, r2;\n        chg_infer(&a, ev, 3, &r1);\n        chg_infer(&b, ev, 3, &r2);\n        CHECK(r1.state==r2.state && r1.label==r2.label && r1.R==r2.R,\n              \"identical input yields a bit-identical decision (replayable)\");\n    }\n\n    printf(\"\\n%s: %d failure(s)\\n\", failures?\"*** FAILED ***\":\"ALL PASS\", failures);\n    return failures?1:0;\n}\n","title":"The supplied regression suite and what it establishes","sections":[{"heading":"Purpose and reading order","text":"This executable exercises interaction extremes, scale invariance, duplicate-direction collapse, the documented effective-count regression, inference outcomes, abstention, capability denial, missing models, epoch checks and dimension bounds. The reviewed host run completed 27 passing assertions with zero reported failures."},{"heading":"How the file works","text":"Compile with TEST_HOST to reproduce the supplied test mode. Inputs and expected outcomes are deliberately small and inspectable. Replay checks compare repeated outcomes for the same supplied inputs; they do not prove determinism across every architecture, compiler or environment."},{"heading":"Limits and review questions","text":"The suite addresses particular examples. It does not cover every adversarial arrangement, target fixed-point boundary, memory-safety property or integrated OS subsystem. The separate multiplicity review example adds a case beyond the supplied gate regression."}],"symbols":[{"symbol":"setvec","code":"static void setvec(surplus_real_t *v, double a, double b, double c, double d)","line":22},{"symbol":"basic_model","code":"static void basic_model(chg_model_t *m, double rmin, double marginmin)","line":28},{"symbol":"main","code":"int main(void)","line":38}]},{"id":"surplus--surplus-c","path":"surplus/surplus.c","bytes":9628,"sha256":"4947dc185ac2b4e070bb94c4b4844e727cff5da4414fbd0393f88f2c11f305f6","language":"c","code":"/* surplus.c — Interaction Surplus Framework (ISF) engine implementation\n *\n * Implements f(u) = ln(1 + (N-1)u) and all structural theorems from Papers A-E.\n *\n * Author: H.M. Michael-Laurence: Curzi (c)\n * Copyright (c) 2024-2026 Michael Laurence Curzi and 36N9 Genetics, LLC\n * SPDX-License-Identifier: LicenseRef-OPL-1.1 AND CC-BY-SA-4.0\n * Licensed under OPL-1.1, SEL-3.3, the Royal Writ of the Sicilian Crown,\n * and CC BY-SA 4.0. See LICENSE at the repository root.\n */\n#include \"surplus.h\"\n\n#ifndef TEST_HOST\n/* ===== Fixed-point math for freestanding kernel ===== */\n\n/* ln(x) via range reduction + Taylor series\n * ln(x) = ln(m * 2^e) = e*ln(2) + ln(m) where m ∈ [1, 2)\n * ln(m) = 2 * [t + t³/3 + t⁵/5 + ...] where t = (m-1)/(m+1) */\nsurplus_real_t sr_ln(surplus_real_t x) {\n    if (x <= 0) return -0x7FFFFFFFFFFFFFFFLL; /* -∞ sentinel */\n    \n    /* Range reduce: find e such that x / 2^e ∈ [1, 2) */\n    int e = 0;\n    surplus_real_t m = x;\n    while (m >= (SR_ONE << 1)) { m = m >> 1; e++; }\n    while (m < SR_ONE) { m = m << 1; e--; }\n    \n    /* m ∈ [1, 2) in Q32.32. Compute t = (m-1)/(m+1) */\n    surplus_real_t one = SR_ONE;\n    surplus_real_t t = SR_DIV(SR_SUB(m, one), SR_ADD(m, one));\n    surplus_real_t t2 = SR_MUL(t, t);\n    \n    /* ln(m) = 2 * (t + t³/3 + t⁵/5 + t⁷/7 + ...) */\n    surplus_real_t sum = t;\n    surplus_real_t term = t;\n    for (int i = 3; i <= 21; i += 2) {\n        term = SR_MUL(term, t2);\n        surplus_real_t inc = SR_DIV(term, SR_FROM_INT(i));\n        sum = SR_ADD(sum, inc);\n    }\n    sum = SR_ADD(sum, sum); /* *2 */\n    \n    /* Add e * ln(2) — ln(2) ≈ 0.69314718 in Q32.32 */\n    surplus_real_t ln2 = (surplus_real_t)(0.6931471805599453 * (double)SR_ONE);\n    return SR_ADD(sum, SR_MUL(SR_FROM_INT(e), ln2));\n}\n\n/* sqrt(x) via Newton's method */\nsurplus_real_t sr_sqrt(surplus_real_t x) {\n    if (x <= 0) return 0;\n    surplus_real_t guess = x >> 1;\n    if (guess == 0) guess = SR_ONE;\n    for (int i = 0; i < 20; i++) {\n        surplus_real_t next = SR_ADD(guess, SR_DIV(x, guess)) >> 1;\n        if (next == guess) break;\n        guess = next;\n    }\n    return guess;\n}\n#endif /* TEST_HOST */\n\n/* ===== Core Surplus Functional ===== */\n\nsurplus_real_t surplus_u(const surplus_real_t *x, const surplus_real_t *y, uint32_t dim) {\n    surplus_real_t dot = SR_ZERO;\n    for (uint32_t i = 0; i < dim; i++) {\n        dot = SR_ADD(dot, SR_MUL(x[i], y[i]));\n    }\n    surplus_real_t dot_sq = SR_MUL(dot, dot);\n    /* u = 1 - dot² */\n    return SR_SUB(SR_ONE, dot_sq);\n}\n\nsurplus_real_t surplus_f(surplus_real_t u, uint32_t N) {\n    /* f(u) = ln(1 + (N-1)*u).  N is a block count: N<2 has zero surplus.\n     * Guard first — N==0 made the unsigned (N-1) wrap to 4294967295 and\n     * SR_FROM_INT of that overflowed to garbage (red-team). Also reject an\n     * N so large that (N-1) in Q32.32 would overflow. */\n    if (N < 2) return SR_ZERO;\n    if (N - 1 > 0x7FFFFFFFu) return SR_ZERO;\n    if (u < 0) u = SR_ZERO;\n    if (u > SR_ONE) u = SR_ONE;\n    surplus_real_t inner = SR_ADD(SR_ONE, SR_MUL(SR_FROM_INT((int64_t)N - 1), u));\n    return SR_LN(inner);\n}\n\nsurplus_real_t surplus_F(const surplus_real_t *x, const surplus_real_t *y,\n                          uint32_t dim, uint32_t N) {\n    surplus_real_t u = surplus_u(x, y, dim);\n    return surplus_f(u, N);\n}\n\n/* ===== Derived Properties ===== */\n\nsurplus_real_t surplus_deriv(surplus_real_t u, uint32_t N) {\n    /* f'(u) = (N-1) / (1 + (N-1)u) */\n    surplus_real_t inner = SR_ADD(SR_ONE, SR_MUL(SR_FROM_INT(N - 1), u));\n    return SR_DIV(SR_FROM_INT(N - 1), inner);\n}\n\nsurplus_real_t surplus_second_deriv(surplus_real_t u, uint32_t N) {\n    /* f''(u) = -(N-1)² / (1 + (N-1)u)² */\n    surplus_real_t inner = SR_ADD(SR_ONE, SR_MUL(SR_FROM_INT(N - 1), u));\n    surplus_real_t inner_sq = SR_MUL(inner, inner);\n    surplus_real_t numer = SR_MUL(SR_FROM_INT(N - 1), SR_FROM_INT(N - 1));\n    return -SR_DIV(numer, inner_sq); /* Note: negation needs care in fixed-point */\n}\n\nbool surplus_subadditive(surplus_real_t a, surplus_real_t b, uint32_t N) {\n    surplus_real_t sum = SR_ADD(a, b);\n    if (SR_CMP(sum, SR_ONE) > 0) return false; /* a+b > 1, undefined */\n    surplus_real_t f_sum = surplus_f(sum, N);\n    surplus_real_t f_a = surplus_f(a, N);\n    surplus_real_t f_b = surplus_f(b, N);\n    return SR_CMP(f_sum, SR_ADD(f_a, f_b)) <= 0;\n}\n\n/* ===== Two-Source Decomposition ===== */\n\nvoid surplus_decompose(surplus_decomp_t *d,\n                        surplus_real_t alpha,\n                        surplus_real_t beta,\n                        surplus_real_t sin_gamma,\n                        uint32_t N) {\n    /* u_cross = β² */\n    d->u_cross = SR_MUL(beta, beta);\n    /* u_div = α² * sin²(γ) */\n    surplus_real_t sin_g_sq = SR_MUL(sin_gamma, sin_gamma);\n    d->u_div = SR_MUL(SR_MUL(alpha, alpha), sin_g_sq);\n    /* u = u_cross + u_div */\n    d->u_total = SR_ADD(d->u_cross, d->u_div);\n    /* f values */\n    d->f_cross = surplus_f(d->u_cross, N);\n    d->f_div = surplus_f(d->u_div, N);\n    d->f_total = surplus_f(d->u_total, N);\n    /* Bounds: max(f_cross, f_div) ≤ f(u) ≤ f_cross + f_div */\n    d->f_lower = (SR_CMP(d->f_cross, d->f_div) > 0) ? d->f_cross : d->f_div;\n    d->f_upper = SR_ADD(d->f_cross, d->f_div);\n}\n\n/* ===== Lipschitz Stability ===== */\n\nsurplus_real_t surplus_lipschitz_bound(uint32_t N) {\n    return SR_FROM_INT(N - 1);\n}\n\nbool surplus_lipschitz_check(surplus_real_t u1, surplus_real_t u2, uint32_t N) {\n    surplus_real_t diff_f = surplus_f(u1, N) - surplus_f(u2, N);\n    if (diff_f < 0) diff_f = -diff_f;\n    surplus_real_t diff_u = u1 - u2;\n    if (diff_u < 0) diff_u = -diff_u;\n    surplus_real_t bound = SR_MUL(SR_FROM_INT(N - 1), diff_u);\n    return SR_CMP(diff_f, bound) <= 0;\n}\n\n/* ===== Extremality ===== */\n\nbool surplus_is_zero(surplus_real_t u) {\n    return SR_CMP(u, SR_ZERO) == 0;\n}\n\nbool surplus_is_maximal(surplus_real_t u, uint32_t N) {\n    surplus_real_t f_val = surplus_f(u, N);\n    surplus_real_t f_max = SR_LN(SR_FROM_INT(N));\n    return SR_CMP(f_val, f_max) == 0;\n}\n\nsurplus_real_t surplus_orthogonal_total(uint32_t k, uint32_t N) {\n    /* k(k-1)/2 * ln(N) — but we compute k choose 2 * f(1) */\n    surplus_real_t f_max = SR_LN(SR_FROM_INT(N));\n    uint32_t pairs = k * (k - 1) / 2;\n    return SR_MUL(SR_FROM_INT(pairs), f_max);\n}\n\n/* ===== Diagonal Surplus ===== */\n\nsurplus_real_t surplus_diagonal(surplus_real_t x_dot_e1, uint32_t N) {\n    /* u = 1 - (x·e1)² / N */\n    surplus_real_t dot_sq = SR_MUL(x_dot_e1, x_dot_e1);\n    surplus_real_t u = SR_SUB(SR_ONE, SR_DIV(dot_sq, SR_FROM_INT(N)));\n    return surplus_f(u, N);\n}\n\n/* ===== Information-Theoretic Bridge ===== */\n\nsurplus_real_t surplus_effective_count(surplus_real_t u, uint32_t N) {\n    /* g(u) = 1 + (N-1)u */\n    return SR_ADD(SR_ONE, SR_MUL(SR_FROM_INT(N - 1), u));\n}\n\nsurplus_real_t surplus_canonical_entropy(surplus_real_t u, uint32_t N) {\n    /* H(P_u) = f(u) - [(N-1)u / g(u)] * ln(u) */\n    if (SR_CMP(u, SR_ZERO) == 0) return SR_ZERO; /* lim u→0 */\n    surplus_real_t f_val = surplus_f(u, N);\n    surplus_real_t g = surplus_effective_count(u, N);\n    surplus_real_t coeff = SR_DIV(SR_MUL(SR_FROM_INT(N - 1), u), g);\n    surplus_real_t ln_u = SR_LN(u);\n    return SR_SUB(f_val, SR_MUL(coeff, ln_u));\n}\n\nsurplus_real_t surplus_jensen_upper(surplus_real_t E_U, uint32_t N) {\n    /* E[F(U)] ≤ F(E[U]) = ln(1 + (N-1)E[U]) */\n    return surplus_f(E_U, N);\n}\n\n/* ===== Open-System Dynamics ===== */\n\nvoid surplus_dynamics_init(surplus_dynamics_t *dyn, surplus_real_t Q0,\n                            surplus_real_t delta, surplus_real_t eta, uint32_t N) {\n    dyn->Q = Q0;\n    dyn->delta = delta;\n    dyn->eta = eta;\n    dyn->N = N;\n    dyn->tick = 0;\n}\n\nsurplus_real_t surplus_dynamics_step(surplus_dynamics_t *dyn,\n                                      surplus_real_t U_t,\n                                      surplus_real_t C_t) {\n    /* S_t = f(U_t) = ln(1 + (N-1)U_t) */\n    surplus_real_t S_t = surplus_f(U_t, dyn->N);\n    /* Q_{t+1} = (1-δ)Q_t + η·S_t - C_t */\n    surplus_real_t decay = SR_MUL(SR_SUB(SR_ONE, dyn->delta), dyn->Q);\n    surplus_real_t input = SR_MUL(dyn->eta, S_t);\n    dyn->Q = SR_SUB(SR_ADD(decay, input), C_t);\n    if (dyn->Q < 0) dyn->Q = SR_ZERO; /* Non-negative constraint */\n    dyn->tick++;\n    return dyn->Q;\n}\n\nsurplus_real_t surplus_sustainability_ceiling(surplus_dynamics_t *dyn) {\n    surplus_real_t ln_N = SR_LN(SR_FROM_INT(dyn->N));\n    surplus_real_t ceiling = SR_DIV(SR_MUL(dyn->eta, ln_N), dyn->delta);\n    if (SR_CMP(dyn->Q, ceiling) > 0) return dyn->Q;\n    return ceiling;\n}\n\nbool surplus_can_grow(surplus_dynamics_t *dyn, surplus_real_t U_t, surplus_real_t C_t) {\n    surplus_real_t S_t = surplus_f(U_t, dyn->N);\n    surplus_real_t lhs = SR_MUL(dyn->eta, S_t);\n    surplus_real_t rhs = SR_ADD(SR_MUL(dyn->delta, dyn->Q), C_t);\n    return SR_CMP(lhs, rhs) > 0;\n}\n\nsurplus_real_t surplus_max_increment(surplus_dynamics_t *dyn, surplus_real_t C_t) {\n    surplus_real_t ln_N = SR_LN(SR_FROM_INT(dyn->N));\n    surplus_real_t eta_ln_N = SR_MUL(dyn->eta, ln_N);\n    surplus_real_t delta_Q = SR_MUL(dyn->delta, dyn->Q);\n    surplus_real_t r_max = SR_SUB(eta_ln_N, SR_ADD(delta_Q, C_t));\n    if (r_max < 0) r_max = SR_ZERO;\n    return r_max;\n}\n\nsurplus_real_t surplus_steady_state(surplus_real_t u_star, surplus_real_t c_star,\n                                     surplus_real_t delta, surplus_real_t eta, uint32_t N) {\n    surplus_real_t f_val = surplus_f(u_star, N);\n    surplus_real_t numer = SR_SUB(SR_MUL(eta, f_val), c_star);\n    surplus_real_t result = SR_DIV(numer, delta);\n    if (result < 0) result = SR_ZERO;\n    return result;\n}\n","title":"Interaction Surplus Framework calculations","sections":[{"heading":"Purpose and reading order","text":"The source implements the surplus functional, its derivatives, decomposition helpers, effective-count and entropy-related functions, and an open-system recurrence. Function names identify mathematical roles; they are not evidence that a physical or financial system has been validated by using them."},{"heading":"How the file works","text":"Read surplus_u and surplus_f first, then the effective-count and decomposition routines. The dynamics helpers maintain a modeled state using supplied decay, efficiency, surplus and cost terms. Those terms need an external interpretation and suitable units before a recurrence becomes an empirical model."},{"heading":"Limits and review questions","text":"The companion Papers A–E separate formal assumptions, modeling interpretation and engineering criteria. Preserve that separation when reusing these functions. A successful arithmetic test does not authenticate external inputs or create a physical source of energy."}],"symbols":[{"symbol":"sr_ln","code":"surplus_real_t sr_ln(surplus_real_t x)","line":19},{"symbol":"sr_sqrt","code":"surplus_real_t sr_sqrt(surplus_real_t x)","line":49},{"symbol":"surplus_u","code":"surplus_real_t surplus_u(const surplus_real_t *x, const surplus_real_t *y, uint32_t dim)","line":64},{"symbol":"surplus_f","code":"surplus_real_t surplus_f(surplus_real_t u, uint32_t N)","line":74},{"symbol":"surplus_F","code":"surplus_real_t surplus_F(const surplus_real_t *x, const surplus_real_t *y, uint32_t dim, uint32_t N)","line":87},{"symbol":"surplus_deriv","code":"surplus_real_t surplus_deriv(surplus_real_t u, uint32_t N)","line":95},{"symbol":"surplus_second_deriv","code":"surplus_real_t surplus_second_deriv(surplus_real_t u, uint32_t N)","line":101},{"symbol":"surplus_subadditive","code":"bool surplus_subadditive(surplus_real_t a, surplus_real_t b, uint32_t N)","line":109},{"symbol":"surplus_decompose","code":"void surplus_decompose(surplus_decomp_t *d, surplus_real_t alpha, surplus_real_t beta, surplus_real_t sin_gamma, uint32_t N)","line":120},{"symbol":"surplus_lipschitz_bound","code":"surplus_real_t surplus_lipschitz_bound(uint32_t N)","line":143},{"symbol":"surplus_lipschitz_check","code":"bool surplus_lipschitz_check(surplus_real_t u1, surplus_real_t u2, uint32_t N)","line":147},{"symbol":"surplus_is_zero","code":"bool surplus_is_zero(surplus_real_t u)","line":158},{"symbol":"surplus_is_maximal","code":"bool surplus_is_maximal(surplus_real_t u, uint32_t N)","line":162},{"symbol":"surplus_orthogonal_total","code":"surplus_real_t surplus_orthogonal_total(uint32_t k, uint32_t N)","line":168},{"symbol":"surplus_diagonal","code":"surplus_real_t surplus_diagonal(surplus_real_t x_dot_e1, uint32_t N)","line":177},{"symbol":"surplus_effective_count","code":"surplus_real_t surplus_effective_count(surplus_real_t u, uint32_t N)","line":186},{"symbol":"surplus_canonical_entropy","code":"surplus_real_t surplus_canonical_entropy(surplus_real_t u, uint32_t N)","line":191},{"symbol":"surplus_jensen_upper","code":"surplus_real_t surplus_jensen_upper(surplus_real_t E_U, uint32_t N)","line":201},{"symbol":"surplus_dynamics_init","code":"void surplus_dynamics_init(surplus_dynamics_t *dyn, surplus_real_t Q0, surplus_real_t delta, surplus_real_t eta, uint32_t N)","line":208},{"symbol":"surplus_dynamics_step","code":"surplus_real_t surplus_dynamics_step(surplus_dynamics_t *dyn, surplus_real_t U_t, surplus_real_t C_t)","line":217},{"symbol":"surplus_sustainability_ceiling","code":"surplus_real_t surplus_sustainability_ceiling(surplus_dynamics_t *dyn)","line":231},{"symbol":"surplus_can_grow","code":"bool surplus_can_grow(surplus_dynamics_t *dyn, surplus_real_t U_t, surplus_real_t C_t)","line":238},{"symbol":"surplus_max_increment","code":"surplus_real_t surplus_max_increment(surplus_dynamics_t *dyn, surplus_real_t C_t)","line":245},{"symbol":"surplus_steady_state","code":"surplus_real_t surplus_steady_state(surplus_real_t u_star, surplus_real_t c_star, surplus_real_t delta, surplus_real_t eta, uint32_t N)","line":254}]},{"id":"surplus--surplus-h","path":"surplus/surplus.h","bytes":11070,"sha256":"7a620655fdd2d80576f0cdd8a06d240322dda9ed016d7929e116ab70e575e028","language":"c","code":"/* surplus.h — Interaction Surplus Framework (ISF) engine\n * \n * Implements the axiomatic surplus functional from Papers A-E:\n *   f(u) = ln(1 + (N-1)u)\n * where u = 1 - (x·y)² ∈ [0,1] is the orientation-based interaction parameter.\n *\n * Includes:\n *   - Core surplus computation (Theorem 2.1)\n *   - Two-source decomposition (Theorem 4.1): crossing + divergence\n *   - Sharp Lipschitz stability (Theorem 4.2)\n *   - Extremality conditions (Theorem 4.3)\n *   - Diagonal surplus (Theorem 4.4)\n *   - Open-system dynamics (Paper E): Q_{t+1} = (1-δ)Q_t + ηS_t - C_t\n *   - Information-theoretic bridge (Paper D): Bernoulli moment, entropy relation\n *\n * Author: H.M. Michael-Laurence: Curzi (c)\n * Copyright (c) 2024-2026 Michael Laurence Curzi and 36N9 Genetics, LLC\n * SPDX-License-Identifier: LicenseRef-OPL-1.1 AND CC-BY-SA-4.0\n * Licensed under OPL-1.1, SEL-3.3, the Royal Writ of the Sicilian Crown,\n * and CC BY-SA 4.0. See LICENSE at the repository root.\n */\n#ifndef SURPLUS_H\n#define SURPLUS_H\n\n#include <stdint.h>\n#include <stdbool.h>\n\n/* Fixed-point arithmetic for freestanding kernel.\n * We use Q32.32 fixed-point (32-bit integer, 32-bit fraction) represented\n * as int64_t. The natural log is computed via Taylor series + range reduction.\n * For test-host builds, double-precision is used directly. */\n\n#ifdef TEST_HOST\n#include <math.h>\n\ntypedef double surplus_real_t;\n\n#define SR_FROM_INT(x)   ((double)(x))\n#define SR_FROM_FLOAT(x) ((double)(x))\n#define SR_ZERO          (0.0)\n#define SR_ONE           (1.0)\n#define SR_ADD(a,b)      ((a)+(b))\n#define SR_SUB(a,b)      ((a)-(b))\n#define SR_MUL(a,b)      ((a)*(b))\n#define SR_DIV(a,b)      ((a)/(b))\n#define SR_LN(x)         (log(x))\n#define SR_SQRT(x)       (sqrt(x))\n#define SR_SIN(x)        (sin(x))\n#define SR_COS(x)        (cos(x))\n#define SR_CMP(a,b)      ((a)<(b)?-1:(a)>(b)?1:0)\n#define surplus_real_t_max (1e300)\n\n#else\n/* Q32.32 fixed-point */\ntypedef int64_t surplus_real_t;\n\n#define SR_SHIFT       32\n#define SR_ONE         ((int64_t)1 << SR_SHIFT)\n#define SR_ZERO        ((int64_t)0)\n/* Multiply, not left-shift: `(int64_t)x << 32` is UB when x is negative,\n * which sr_ln() hits for every argument < 1 (red-team). Multiply by SR_ONE\n * is defined for negatives and identical for non-negatives. */\n#define SR_FROM_INT(x) ((int64_t)(x) * SR_ONE)\n#define SR_FROM_FLOAT(x) ((int64_t)((x) * (double)SR_ONE))\n#define SR_ADD(a,b)    ((a)+(b))\n#define SR_SUB(a,b)    ((a)-(b))\n/* Q32.32 fixed-point multiply: (a * b) >> 32.\n *\n * Uses a 128-bit intermediate where the compiler provides one (every\n * 64-bit target this kernel builds for: AArch64, x86-64, RV64). The\n * previous hand-split 32-bit version was written for a -m32 host and\n * is kept below as a fallback for genuine 32-bit builds.\n */\n#if defined(__SIZEOF_INT128__)\nstatic inline int64_t sr_mul_impl(int64_t a, int64_t b) {\n    return (int64_t)(((__int128)a * (__int128)b) >> 32);\n}\n\n/* Q32.32 fixed-point divide: (a << 32) / b.\n *\n * CORRECTNESS NOTE (bug fixed 2026-08-04): the previous 32-bit-split\n * implementation computed `((r % b) << 32) / b` on the r >= 2^31 path.\n * Since r = a % b is always < b, `r % b == r`, so that expression\n * shifted a value >= 2^31 left by 32 bits and overflowed int64 —\n * signed overflow, in practice returning 0. Every divide whose\n * remainder reached 2^31 silently produced 0: SR_DIV(1,3), SR_DIV(1,2)\n * and SR_DIV(2,3) all returned 0.0. That corrupted the t=(m-1)/(m+1)\n * term inside sr_ln() for any mantissa >= 1.5, which in turn VIOLATED\n * the ISF normalization axiom S4 (f(1,N) = ln N): f(1,12) evaluated to\n * 1.674 instead of ln 12 = 2.485. A 128-bit numerator makes the\n * division exact and restores the axiom.\n */\nstatic inline int64_t sr_div_impl(int64_t a, int64_t b) {\n    if (b == 0) return 0;\n    /* Scale by SR_ONE with a MULTIPLY, not a left-shift: shifting a signed\n     * __int128 that is negative is UB, and this is the divide primitive that\n     * runs on the real AArch64 target (red-team). Multiply is well-defined\n     * for negative operands and produces the identical value for positives. */\n    return (int64_t)(((__int128)a * ((__int128)1 << 32)) / (__int128)b);\n}\n#else\n/* Fallback for true 32-bit targets without __int128. */\nstatic inline int64_t sr_mul_impl(int64_t a, int64_t b) {\n    /* Negate through unsigned so INT64_MIN does not trigger signed-overflow\n     * UB (red-team). Magnitudes are computed as uint64_t. */\n    int neg = (a < 0) ^ (b < 0);\n    uint64_t ua = (a < 0) ? (uint64_t)0 - (uint64_t)a : (uint64_t)a;\n    uint64_t ub = (b < 0) ? (uint64_t)0 - (uint64_t)b : (uint64_t)b;\n    uint32_t al = (uint32_t)ua;\n    uint32_t ah = (uint32_t)(ua >> 32);\n    uint32_t bl = (uint32_t)ub;\n    uint32_t bh = (uint32_t)(ub >> 32);\n    uint64_t result = (uint64_t)ah * bl + (uint64_t)al * bh + ((uint64_t)al * bl >> 32);\n    result += (uint64_t)ah * bh << 32;\n    return neg ? -(int64_t)result : (int64_t)result;\n}\n\nstatic inline int64_t sr_div_impl(int64_t a, int64_t b) {\n    if (b == 0) return 0;\n    int neg = (a < 0) ^ (b < 0);\n    uint64_t ua = (a < 0) ? (uint64_t)0 - (uint64_t)a : (uint64_t)a;\n    uint64_t ub = (b < 0) ? (uint64_t)0 - (uint64_t)b : (uint64_t)b;\n    /* Restoring long division on unsigned magnitudes, 32 fractional bits at\n     * a time — never shifts a signed value that can overflow. */\n    uint64_t q = ua / ub;\n    uint64_t r = ua % ub;\n    uint64_t frac = 0;\n    for (int i = 0; i < 32; i++) {\n        r <<= 1;                 /* r < ub <= 2^63, so r<<1 stays in range */\n        frac <<= 1;\n        if (r >= ub) { r -= ub; frac |= 1; }\n    }\n    int64_t result = (int64_t)((q << 32) + frac);\n    return neg ? -result : result;\n}\n#endif\n\n#define SR_MUL(a,b)    sr_mul_impl((a), (b))\n#define SR_DIV(a,b)    sr_div_impl((a), (b))\n#define SR_CMP(a,b)    ((a)<(b)?-1:(a)>(b)?1:0)\n#define surplus_real_t_max ((int64_t)0x7FFFFFFFFFFFFFFFLL)\n\nsurplus_real_t sr_ln(surplus_real_t x);\nsurplus_real_t sr_sqrt(surplus_real_t x);\n#define SR_LN(x)   sr_ln(x)\n#define SR_SQRT(x) sr_sqrt(x)\n/* sin/cos not needed for surplus core — used only in test host */\n#endif\n\n/* ===== Core Surplus Functional (Paper A, Theorem 2.1) ===== */\n\n/* Compute u(x,y) = 1 - (x·y)² for unit vectors\n * x, y are arrays of length dim\n * Returns value in [0, 1] */\nsurplus_real_t surplus_u(const surplus_real_t *x, const surplus_real_t *y, uint32_t dim);\n\n/* Compute f(u) = ln(1 + (N-1)u) — the surplus functional\n * N = number of blocks, u ∈ [0,1] */\nsurplus_real_t surplus_f(surplus_real_t u, uint32_t N);\n\n/* Compute full surplus F(x,y) = f(u(x,y)) */\nsurplus_real_t surplus_F(const surplus_real_t *x, const surplus_real_t *y,\n                          uint32_t dim, uint32_t N);\n\n/* ===== Derived Properties (Paper A, §3) ===== */\n\n/* Monotonicity: f'(u) = (N-1) / (1 + (N-1)u) > 0 */\nsurplus_real_t surplus_deriv(surplus_real_t u, uint32_t N);\n\n/* Concavity: f''(u) = -(N-1)² / (1 + (N-1)u)² < 0 */\nsurplus_real_t surplus_second_deriv(surplus_real_t u, uint32_t N);\n\n/* Subadditivity check: f(a+b) ≤ f(a) + f(b) for a+b ≤ 1 */\nbool surplus_subadditive(surplus_real_t a, surplus_real_t b, uint32_t N);\n\n/* ===== Two-Source Decomposition (Paper A, Theorem 4.1) ===== */\n\ntypedef struct {\n    surplus_real_t u_cross;  /* β² — crossing (between-block) component */\n    surplus_real_t u_div;    /* α²sin²γ — divergence (within-block) component */\n    surplus_real_t u_total;  /* u = u_cross + u_div */\n    surplus_real_t f_cross;  /* f(u_cross) */\n    surplus_real_t f_div;    /* f(u_div) */\n    surplus_real_t f_total;  /* f(u) */\n    surplus_real_t f_lower;  /* max(f_cross, f_div) */\n    surplus_real_t f_upper;  /* f_cross + f_div */\n} surplus_decomp_t;\n\n/* Compute decomposition for pure block vector x ∈ H_i vs arbitrary y */\nvoid surplus_decompose(surplus_decomp_t *d,\n                        surplus_real_t alpha,    /* ‖y_‖‖ — projection onto H_i */\n                        surplus_real_t beta,     /* ‖y_⊥‖ — perpendicular to H_i */\n                        surplus_real_t sin_gamma, /* sin of angle within H_i */\n                        uint32_t N);\n\n/* ===== Lipschitz Stability (Paper A, Theorem 4.2) ===== */\n\n/* |f(u1) - f(u2)| ≤ (N-1)|u1 - u2| */\nsurplus_real_t surplus_lipschitz_bound(uint32_t N);\n\n/* Check Lipschitz condition for specific pair */\nbool surplus_lipschitz_check(surplus_real_t u1, surplus_real_t u2, uint32_t N);\n\n/* ===== Extremality (Paper A, Theorem 4.3) ===== */\n\n/* F = 0 iff x = ±y (u = 0) */\nbool surplus_is_zero(surplus_real_t u);\n\n/* F = ln(N) iff x ⊥ y (u = 1) */\nbool surplus_is_maximal(surplus_real_t u, uint32_t N);\n\n/* Total pairwise surplus for k mutually orthogonal vectors from k blocks */\nsurplus_real_t surplus_orthogonal_total(uint32_t k, uint32_t N);\n\n/* ===== Diagonal Surplus (Paper A, Theorem 4.4) ===== */\n\n/* Surplus between pure block vector x and diagonal ê_X */\nsurplus_real_t surplus_diagonal(surplus_real_t x_dot_e1, uint32_t N);\n\n/* ===== Information-Theoretic Bridge (Paper D) ===== */\n\n/* Effective count: g(u) = 1 + (N-1)u = e^{f(u)} */\nsurplus_real_t surplus_effective_count(surplus_real_t u, uint32_t N);\n\n/* Canonical N-state distribution entropy:\n * H(P_u) = f(u) - [(N-1)u / g(u)] * ln(u)\n * H(P_u) ≥ f(u) on [0,1] */\nsurplus_real_t surplus_canonical_entropy(surplus_real_t u, uint32_t N);\n\n/* Jensen upper bound: E[F(U)] ≤ F(E[U]) = ln(1 + (N-1)E[U]) */\nsurplus_real_t surplus_jensen_upper(surplus_real_t E_U, uint32_t N);\n\n/* ===== Open-System Dynamics (Paper E) ===== */\n\ntypedef struct {\n    surplus_real_t Q;       /* Stored order / capacity */\n    surplus_real_t delta;   /* Decay/dissipation rate ∈ [0,1] */\n    surplus_real_t eta;     /* Conversion efficiency ≥ 0 */\n    uint32_t N;             /* Block count for surplus computation */\n    uint32_t tick;          /* Time step */\n} surplus_dynamics_t;\n\n/* Initialize dynamics state */\nvoid surplus_dynamics_init(surplus_dynamics_t *dyn, surplus_real_t Q0,\n                            surplus_real_t delta, surplus_real_t eta, uint32_t N);\n\n/* One-step update: Q_{t+1} = (1-δ)Q_t + η·S_t - C_t\n * where S_t = f(U_t) = ln(1 + (N-1)U_t)\n * Returns Q_{t+1} */\nsurplus_real_t surplus_dynamics_step(surplus_dynamics_t *dyn,\n                                      surplus_real_t U_t,\n                                      surplus_real_t C_t);\n\n/* Sustainability ceiling: Q ≤ max(Q0, η·ln(N)/δ) */\nsurplus_real_t surplus_sustainability_ceiling(surplus_dynamics_t *dyn);\n\n/* One-step growth criterion: Q_{t+1} > Q_t iff η·S_t > δ·Q_t + C_t */\nbool surplus_can_grow(surplus_dynamics_t *dyn, surplus_real_t U_t, surplus_real_t C_t);\n\n/* Maximum achievable one-step increment: r_max = η·ln(N) - δ·Q_t - C_t */\nsurplus_real_t surplus_max_increment(surplus_dynamics_t *dyn, surplus_real_t C_t);\n\n/* Steady state under constant forcing: Q_∞ = (η·f(u*) - c*)/δ */\nsurplus_real_t surplus_steady_state(surplus_real_t u_star, surplus_real_t c_star,\n                                     surplus_real_t delta, surplus_real_t eta, uint32_t N);\n\n#endif /* SURPLUS_H */\n","title":"The arithmetic contract: host double and target Q32.32","sections":[{"heading":"Purpose and reading order","text":"This header defines surplus_real_t and the SR_ arithmetic interface. TEST_HOST maps operations to double and standard math functions. The freestanding branch uses signed Q32.32 fixed-point representation, including 128-bit intermediates where the compiler supports them and a separate fallback path."},{"heading":"How the file works","text":"Read conversions, multiply and divide before interpreting any algorithm above them. A shared representation helps components agree on units and rounding behavior, but fixed-point arithmetic still has finite range, quantization and edge cases. Avoid describing a decimal display as proof of exact real-number arithmetic."},{"heading":"Limits and review questions","text":"Host results cannot establish behavior at target overflow boundaries. A target verification plan should include negative values, extremal magnitudes, division behavior, approximation error and toolchain-specific integer semantics."}],"symbols":[{"symbol":"sr_mul_impl","code":"static inline int64_t sr_mul_impl(int64_t a, int64_t b)","line":75},{"symbol":"sr_div_impl","code":"static inline int64_t sr_div_impl(int64_t a, int64_t b)","line":93},{"symbol":"sr_mul_impl","code":"static inline int64_t sr_mul_impl(int64_t a, int64_t b)","line":103},{"symbol":"sr_div_impl","code":"static inline int64_t sr_div_impl(int64_t a, int64_t b)","line":118},{"symbol":"sr_ln","code":"surplus_real_t sr_ln(surplus_real_t x)","line":143},{"symbol":"sr_sqrt","code":"surplus_real_t sr_sqrt(surplus_real_t x)","line":144},{"symbol":"surplus_u","code":"surplus_real_t surplus_u(const surplus_real_t *x, const surplus_real_t *y, uint32_t dim)","line":155},{"symbol":"surplus_f","code":"surplus_real_t surplus_f(surplus_real_t u, uint32_t N)","line":159},{"symbol":"surplus_F","code":"surplus_real_t surplus_F(const surplus_real_t *x, const surplus_real_t *y, uint32_t dim, uint32_t N)","line":162},{"symbol":"surplus_deriv","code":"surplus_real_t surplus_deriv(surplus_real_t u, uint32_t N)","line":168},{"symbol":"surplus_second_deriv","code":"surplus_real_t surplus_second_deriv(surplus_real_t u, uint32_t N)","line":171},{"symbol":"surplus_subadditive","code":"bool surplus_subadditive(surplus_real_t a, surplus_real_t b, uint32_t N)","line":174},{"symbol":"surplus_decompose","code":"void surplus_decompose(surplus_decomp_t *d, surplus_real_t alpha, /* ‖y_‖‖ — projection onto H_i */ surplus_real_t beta, /* ‖y_⊥‖ — perpendicular to H_i */ surplus_real_t sin_gamma, /* sin of angle within H_i */ uint32_t N)","line":190},{"symbol":"surplus_lipschitz_bound","code":"surplus_real_t surplus_lipschitz_bound(uint32_t N)","line":199},{"symbol":"surplus_lipschitz_check","code":"bool surplus_lipschitz_check(surplus_real_t u1, surplus_real_t u2, uint32_t N)","line":202},{"symbol":"surplus_is_zero","code":"bool surplus_is_zero(surplus_real_t u)","line":207},{"symbol":"surplus_is_maximal","code":"bool surplus_is_maximal(surplus_real_t u, uint32_t N)","line":210},{"symbol":"surplus_orthogonal_total","code":"surplus_real_t surplus_orthogonal_total(uint32_t k, uint32_t N)","line":213},{"symbol":"surplus_diagonal","code":"surplus_real_t surplus_diagonal(surplus_real_t x_dot_e1, uint32_t N)","line":218},{"symbol":"surplus_effective_count","code":"surplus_real_t surplus_effective_count(surplus_real_t u, uint32_t N)","line":223},{"symbol":"surplus_canonical_entropy","code":"surplus_real_t surplus_canonical_entropy(surplus_real_t u, uint32_t N)","line":228},{"symbol":"surplus_jensen_upper","code":"surplus_real_t surplus_jensen_upper(surplus_real_t E_U, uint32_t N)","line":231},{"symbol":"surplus_dynamics_init","code":"void surplus_dynamics_init(surplus_dynamics_t *dyn, surplus_real_t Q0, surplus_real_t delta, surplus_real_t eta, uint32_t N)","line":244},{"symbol":"surplus_dynamics_step","code":"surplus_real_t surplus_dynamics_step(surplus_dynamics_t *dyn, surplus_real_t U_t, surplus_real_t C_t)","line":250},{"symbol":"surplus_sustainability_ceiling","code":"surplus_real_t surplus_sustainability_ceiling(surplus_dynamics_t *dyn)","line":255},{"symbol":"surplus_can_grow","code":"bool surplus_can_grow(surplus_dynamics_t *dyn, surplus_real_t U_t, surplus_real_t C_t)","line":258},{"symbol":"surplus_max_increment","code":"surplus_real_t surplus_max_increment(surplus_dynamics_t *dyn, surplus_real_t C_t)","line":261},{"symbol":"surplus_steady_state","code":"surplus_real_t surplus_steady_state(surplus_real_t u_star, surplus_real_t c_star, surplus_real_t delta, surplus_real_t eta, uint32_t N)","line":264}]}],"source_download":{"path":"/code/zedec-pqos/download.zip","bytes":53867,"sha256":"81fb406946f6be2dc67c94796f52e1ce71aaabc6f0415927c1eaa76bdc38b730","url":"https://ascw.b-cdn.net/prototypes/zedec-pqos/public-prototype-v1.zip"},"screening":{"inventory_files":11215,"text_files_screened":5393,"git_history_stream_screened":true,"public_package_files":13,"provider_token_or_private_key_pattern_found_in_screened_text":false,"scope":"Allowlisted text/code release only. Binary artifacts, archives, private material and Git history are excluded. Automated pattern screening is not proof of absence of every secret.","raw_findings_published":false},"verification":{"mode":"C11 host TEST_HOST; double arithmetic","supplied_assertions_passed":27,"supplied_failures":0,"review_case":"Two orthogonal contributors: UNCERTAIN R=2 margin=0; clone the first: DECIDED R=2 margin=0.2","full_os_boot_verified_for_this_release":false,"cryptographic_certification":false},"references":[{"title":"NIST FIPS 203 — ML-KEM","url":"https://csrc.nist.gov/pubs/fips/203/final"},{"title":"RFC 8032 — EdDSA","url":"https://www.rfc-editor.org/rfc/rfc8032"},{"title":"Interaction Surplus Framework — Papers A–E","url":"/research/NOV28-017"}],"presets":[{"id":"clones","title":"One direction, four contributors","vectors":[[1,0],[1,0],[1,0],[1,0]]},{"id":"balanced","title":"Two orthogonal contributors","vectors":[[1,0],[0,1]]},{"id":"multiplicity","title":"Clone the first contributor","vectors":[[1,0],[0,1],[1,0]]},{"id":"complementary","title":"Separated, unequal contributions","vectors":[[1,0],[0.5,0.8660254037844386]]}],"demo":{"dimensions":2,"max_experts":8,"merge_u":0.02,"R_min":1.5,"margin_min":0.05,"prototypes":[[1,0],[0,1]],"numeric_mode":"JavaScript floating point; educational illustration; no target fixed-point equivalence claimed","processing":"Browser-local; no submitted input"},"source_project_aliases":["ZXV","ZXV0_CLONE"]}