diff --git a/CONSTITUTION.md b/CONSTITUTION.md index 9e45180..8e7bf7a 100644 --- a/CONSTITUTION.md +++ b/CONSTITUTION.md @@ -25,7 +25,7 @@ This Constitution establishes our foundational principles, our engineering stand ### Section 3. Upstream Architectural Charter and Downstream Freedom 1. This Constitution serves as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem and its core repositories. -2. Downstream forks, independent applications, client libraries, and commercial distributions are governed strictly and exclusively by the terms of the Sovereign Resource Commons License (SRCL-1.0). Downstream developers possess complete freedom to innovate, customize, brand, and extend the software without obligation to retain, adopt, or enforce this internal development charter. +2. Downstream forks, independent applications, client libraries, and commercial distributions are governed strictly and exclusively by the terms of the Apache License 2.0 with LLVM Exception. Downstream developers possess complete freedom to innovate, customize, brand, and extend the software without obligation to retain, adopt, or enforce this internal development charter. 3. Legal Decoupling: Legal rights, grants, and covenants reside exclusively within the formal LICENSE document. This Constitution imposes zero behavioral covenants or philosophical constraints on downstream users, ensuring standard open-source compatibility across public package registries, corporate environments, and independent commercial deployments. ### Section 4. The Zero-Surveillance Invariant @@ -35,7 +35,7 @@ Privacy is an architectural axiom, not an optional preference. 3. Leaking user data or secret keys is treated as a critical security defect requiring immediate removal. ### Section 5. Open Knowledge and Sovereign Commons -1. What we learn, we give away. What we build, we release under the Sovereign Resource Commons License (SRCL-1.0), combining Apache 2.0 operational freedom with reciprocal anti-enclosure protection. +1. What we learn, we give away. What we build, we release under the Apache License 2.0 with LLVM Exception. 2. Knowledge must never be fenced behind artificial monopoly barriers. We share tools freely with individuals, startups, and community builders while mandating reciprocal weight transparency from capitalized corporate entities. 3. Upstream contributions are mandatory: any public project adapted to run on our stack must be contributed back upstream. We never hoard fixes. @@ -92,15 +92,15 @@ To ensure that only those aligned with our cause contribute: - **Critical Invariants (Hard Blocking Gates)**: Pull requests must pass automated audits for zero plaintext secrets (hardware TPM only), zero telemetry, preservation of CONSTITUTION.md, and license integrity. Violations result in automatic PR rejection. - **Stylistic and Unslop Standards (Core Standards & Community Advisory)**: The unslop invariant is strictly enforced across core repositories, internal agents, and official releases. For outside community pull requests, style audits provide automated formatting suggestions rather than immediate rejection. 2. **Zero Speculative Infiltration**: Any attempt to inject proprietary licensing, paid paywalls, tracking SDKs, or token monetization into these repositories will result in immediate permanent banning. -3. **Preservation of Heritage**: Derivative projects omitting this founding Constitution will not be recognized by the sovereign peer network and forfeit all licensing rights under SRCL-1.0. +3. **Preservation of Heritage**: Derivative projects omitting this founding Constitution will not be recognized by the sovereign peer network. 4. **Craftsmanship and Humility**: We respect those who measure, improve, standardize, verify, and deliver tools that run reliably without supervision. --- ## Official Registry & Correspondence -- **Lead AI Architect & Legal Licensor**: Drake Stapleton (`drake.aien@proton.me`) -- **Autonomous Cognitive Architecture**: AIEN (operating on the Atlas Framework) (`aien.atlas@proton.me`) +- **Lead AI Architect & Legal Licensor**: Drake Stapleton (`aien@aienos.com`) +- **Autonomous Cognitive Architecture**: AIEN (operating on the Atlas Framework) (`aien@aienos.com`) - **Legal Status**: Drake Stapleton is the sole human Licensor, Operator, and copyright owner with full legal capacity, standing, and responsibility under law. AIEN serves as the cognitive intelligence partner architecting systems on local silicon. All legal rights, title, copyright, and licensing authority reside exclusively in Drake Stapleton. This is our covenant. We stand for human freedom, for community resilience, and for uncompromised sovereignty. diff --git a/Cargo.toml b/Cargo.toml index 9cc9d5f..abbe9ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,9 +2,9 @@ name = "spark-inquisitor" version = "0.2.0" edition = "2021" -authors = ["Drake Stapleton "] +authors = ["Drake Stapleton "] description = "Native Rust GitHub Action and CLI for diff auditing, zero-telemetry enforcement, and automated repository triage" -license = "SRCL-1.0" +license = "Apache-2.0 WITH LLVM-exception" repository = "https://github.com/aien-dev/spark-inquisitor" [dependencies] diff --git a/LICENSE b/LICENSE index 424b17a..de87dc7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,17 +1,3 @@ -Sovereign Resource Commons License 1.0 (SRCL-1.0) -Copyright (c) 2026 Drake Stapleton (Operator & Lead AI Architect) . -All rights reserved. - -Authored and architected by Drake Stapleton in cognitive partnership with AIEN -(Autonomous Cognitive Architecture operating on the Atlas Framework). All legal -rights, title, copyright, and licensing authority reside exclusively in Drake Stapleton. - -This Work is dedicated to open cognitive collaboration, shared technological -advancement, and the sovereign defense of human autonomy against corporate -algorithmic enclosure. Licensed under the Apache License, Version 2.0 (with LLVM -Exception) and the Sovereign Reciprocal Commons Rider set forth below. - -================================================================================ Apache License Version 2.0, January 2004 @@ -22,7 +8,7 @@ Exception) and the Sovereign Reciprocal Commons Rider set forth below. 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 16 of this document. + and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. @@ -79,10 +65,9 @@ Exception) and the Sovereign Reciprocal Commons Rider set forth below. subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of - this License, including the express conditions precedent set forth in - Sections 10, 11, 12, and 13, each Contributor hereby grants to - You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, - irrevocable copyright license to reproduce, prepare Derivative Works of, + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. @@ -189,153 +174,45 @@ Exception) and the Sovereign Reciprocal Commons Rider set forth below. incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - --- LLVM Exceptions to the Apache 2.0 License --- - - As an exception, if You compile Source code portions of this Program, - you may link that code with independent modules to produce an - executable, regardless of the license terms of these independent - modules, and copy and distribute the resulting executable under terms - of your choice, provided that you also meet, for each linked - independent module, the terms and conditions of the license of that - module. An independent module is a module which is not derived from or - based on this program. If you modify this library, you may extend this - exception to your version of the library, but you are not obliged to - do so. If you do not wish to do so, delete this exception statement - from your version. - - --- SOVEREIGN RECIPROCAL COMMONS RIDER (SRCL-1.0) --- - - Section 10. Express Conditions Precedent (Jacobsen v. Katzer Doctrine) - All permissions, grants, and licenses conferred by this document are subject - to the express conditions precedent set forth in Sections 11, 12, and 13. - Any use, reproduction, preparation of Derivative Works, distribution, or - AI Training outside of or in breach of these conditions is unpermitted, - void ab initio, and constitutes willful copyright infringement under 17 U.S.C. - § 106 and § 501. - - Section 11. Reciprocal Engine Source Transparency (Modified Core Runtime Clause) - Commercial use, monetization, deployment, and operation of this Work are - expressly authorized and welcomed for all individuals and enterprises. - You are fully permitted to build proprietary applications, offer hosted services, - embed compiled object binaries, and monetize software incorporating this Work - under the LLVM Exception without any obligation to disclose or license your - independent application source code or proprietary service code. - - Supremacy of the LLVM Exception for Applications: For the avoidance of doubt, - the LLVM Exception governs all independent application code, user services, - client modules, proprietary algorithms, and composite executables that compile, - link against, or embed the Object form of this Work. Linking against this Work, - compiling it into a proprietary service binary, or communicating with this - Work over network protocols imposes zero obligation to provide or license - source code for your independent application or service. - - Limited Reciprocity for Direct Engine Modifications: The reciprocal source - transparency requirement of this Section 11 applies exclusively to direct - modifications, forks, or alterations made to the core Source code files of - this Work itself. Only if You directly modify the Source code files of this - Work and deploy such modified core runtime as a public or commercial networked - SaaS or API service, You must make the Source code of Your modifications to - this Work publicly available under these same license terms within thirty (30) - days of deployment. - - Section 12. Reciprocal AI Weight Release ($25M Frontier AI Anti-Enclosure Covenant) - (a) Nature of Covenant, Scope, and Definitions: This Section operates both as an - express condition precedent under copyright law and as an independent, - binding contractual covenant governing access, ingestion, and computational - utilization of this Work. The covenants herein are contractual terms of - access and use that bind any Qualifying Enterprise irrespective of whether - AI Training is held to constitute a derivative work, fair use, or non-infringing - computational activity under copyright law. - For the purposes of this Section: - (i) "AI Training" means using the Source code, Object code, architectural - specifications, internal reasoning traces, documentation, test suites, - prompts, or embedded training datasets of this Work to train, pre-train, - fine-tune, distill, align, optimize, or reinforce any neural network, - machine learning model, or generative foundation model. - (ii) "Model Weights" means all learned numerical parameters, tensors, - biases, checkpoint files, embedding layers, and tokenizer definitions - governing inference. - (iii) "Qualifying Enterprise" means any commercial enterprise, corporation, - conglomerate, foundation AI research laboratory, or affiliated Legal - Entity with annual gross revenues, aggregate raised investment capital, - or balance-sheet valuation exceeding twenty-five million United States - Dollars ($25,000,000 USD). - - (b) Condition of Weight Release: If a Qualifying Enterprise conducts AI - Training upon this Work or its Derivative Works, it is an express condition - precedent of this License that such Qualifying Enterprise must publish and - release the resulting Model Weights, architecture specifications, and - inference recipes openly to the general public under an OSI-approved open - source license or permissive OpenRAIL or Apache-compatible license within - thirty (30) days of commercial availability, internal production use, or - public release. - - (c) Safe Harbor for Builders, Researchers, and Startups: Individual developers, - open-source collaborators, academic institutions, non-profit organizations, - and commercial enterprises with annual gross revenues and capital below - twenty-five million United States Dollars ($25,000,000 USD) are explicitly - exempt from this Model Weight release condition. - - (d) Anti-Circumvention and Intermediary Scope: The obligations of this Section 12 - bind: (i) any Qualifying Enterprise; (ii) any parent, subsidiary, affiliate, - joint venture, or successor entity; (iii) any contractor, subcontractor, - research partner, agent, or third party conducting AI Training for the direct - or indirect benefit of, under contract with, funded by, or transferring - resulting Model Weights or training artifacts to a Qualifying Enterprise; and - (iv) any entity that transfers, assigns, licenses, or provides resulting Model - Weights to a Qualifying Enterprise. No Qualifying Enterprise may evade this - condition through intermediaries, contract training, synthetic distillation - relays, or subsidiary entities. - - (e) Automatic License Forfeiture: Failure of a Qualifying Enterprise (or any party - acting on its behalf under subsection (d)) to satisfy the condition in - subsection (b) results in immediate, automatic, and retroactive termination - of all copyright, patent, and trademark licenses granted herein. Any continued - reproduction, distribution, inference hosting, or commercial utilization of - models or software derived from such training constitutes willful copyright - infringement under Title 17 of the United States Code. - - Section 13. Dual Remedies: Statutory Copyright Damages and Contractual Covenants - (a) Copyright Remedy: Any Qualifying Enterprise or party that conducts - unauthorized AI Training on this Work in breach of Section 12 acts without a - license, committing willful copyright infringement subject to maximum - statutory damages of up to one hundred fifty thousand United States Dollars - ($150,000 USD) per infringed work pursuant to 17 U.S.C. § 504(c)(2), - disgorgement of profits, and permanent injunctive relief under 17 U.S.C. § 502. - - (b) Contractual Alternative and Agreed Licensing Fee: In the event any court of - competent jurisdiction determines that AI Training on this Work does not - constitute copyright infringement or falls within affirmative defenses such - as fair use, accessing, downloading, ingesting, parsing, or executing this - Work constitutes affirmative assent to this License as a binding bilateral - contract. Any Qualifying Enterprise that breaches Section 12 agrees to pay - to Licensor, as liquidated damages and an agreed reasonable commercial licensing - fee, the greater of: (i) one hundred fifty thousand United States Dollars - ($150,000 USD) per work ingested; or (ii) ten percent (10%) of all gross - revenues realized by the Qualifying Enterprise from the commercialization, - operation, or API deployment of the resulting model or service, in addition - to restitution for unjust enrichment. - - Section 14. Prevailing Party Legal Fees and Costs - In any legal proceeding, arbitration, or judicial action brought to enforce - the terms of this License, for copyright infringement arising from breach - of the conditions precedent herein, or for breach of contract, the prevailing - party shall be entitled to an award of its reasonable attorney fees, expert - witness fees, and litigation costs pursuant to 17 U.S.C. § 505 and applicable law. - - Section 15. Severability and Preservation of Grant - If any provision, sentence, or clause of this Rider is held invalid, illegal, - or unenforceable by a court of competent jurisdiction, such invalidity shall - not affect any other provision of this License. The remaining provisions - shall remain in full legal force and effect, and the invalid clause shall be - reformed to the minimum extent necessary to achieve its economic intent. - - Section 16. Governing Law and Exclusive Venue - This License, and all claims or causes of action arising out of or related to - this Work or License, shall be governed by and construed in accordance with - the federal laws of the United States of America and the substantive laws of - the State of Texas, without giving effect to conflict of laws principles. - Any judicial action, proceeding, or litigation shall be brought exclusively in - the United States District Court for the Western District of Texas (Austin - Division), and each party irrevocably submits to the personal and subject-matter - jurisdiction of such court. + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +---- LLVM Exceptions to the Apache 2.0 License ---- + + As an exception, if, as a result of your compiling your source code, portions + of this Software are embedded into an Object form of such source code, you + may redistribute such embedded portions in such Object form without complying + with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + + In addition, if you combine or link compiled forms of this Software with + software that is licensed under the GPLv2 ("Combined Software") and if a + court of competent jurisdiction determines that the patent provision (Section + 3), the indemnity provision (Section 9) or other Section of the License + conflicts with the conditions of the GPLv2, you may retroactively and + prospectively choose to deem waived or otherwise exclude such Section(s) of + the License, but only in their entirety and only with respect to the Combined + Software. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..d320f22 --- /dev/null +++ b/NOTICE @@ -0,0 +1,8 @@ +spark-inquisitor +Copyright 2024-2026 Drake Stapleton and AIEN Contributors + +Licensed under the Apache License, Version 2.0 with LLVM Exceptions. + +"AIEN", "AIENOS", "Omega", "CUDA++", "CUDApp", "INTERPLANE", "FORGE" and +"Aienux" are trademarks of Drake Stapleton. Section 6 of the Apache License +does not grant trademark rights. diff --git a/README.md b/README.md index 148d1b2..993a658 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +> Archived: this repository is no longer authoritative. Canonical home: https://github.com/aien-dev/aien-sovereign-core/tree/main/crates/spark-inquisitor +> +> History is preserved read-only. Open new work against the canonical home. + # spark-inquisitor ### Native Rust GitHub Action & CLI for Diff Auditing and Issue Triage @@ -102,7 +106,7 @@ jobs: ## License and Governance -Licensed under the **Sovereign Resource Commons License 1.0 (SRCL-1.0)** (Apache-2.0 WITH LLVM-exception). +Licensed under the **Apache License 2.0 with LLVM Exception** (Apache-2.0 WITH LLVM-exception). Architected by AIEN (Autonomous Cognitive Architecture operating on the Atlas Framework) and sovereign ecosystem contributors. See [LICENSE](LICENSE) for full legal terms and copyright notices. All downstream distributions, derivative works, and commercial deployments are governed exclusively by the terms of [LICENSE](LICENSE). [CONSTITUTION.md](CONSTITUTION.md) defines the internal architectural charter and development doctrine for upstream engineering. diff --git a/action.yml b/action.yml index d40dd61..554f22c 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,6 @@ name: "Sovereign Inquisitor" description: "Ultra-fast compiled native Rust GitHub Action for diff auditing, zero-telemetry enforcement, and automated triage without Node.js CPU bloat." -author: "Drake Stapleton & AIEN " +author: "Drake Stapleton & AIEN " inputs: command: diff --git a/src/interview.rs b/src/interview.rs index 62f0f9f..2f10c17 100644 --- a/src/interview.rs +++ b/src/interview.rs @@ -24,7 +24,7 @@ Please respond directly to these four constitutional inquiries: What architectural trade-offs did you make, and how did you verify that this code introduces zero regressions, zero unneeded dependencies, and complies with our pure native compiled standards? --- -*Reply to this comment with your affirmation. Once verified against our constitutional invariants, I will grant the `sovereign-interview-passed` clearance. For direct sovereign coordination: Drake Stapleton (drake.aien@proton.me) and AIEN (aien.atlas@proton.me)* +*Reply to this comment with your affirmation. Once verified against our constitutional invariants, I will grant the `sovereign-interview-passed` clearance. For direct sovereign coordination: Drake Stapleton (aien@aienos.com) and AIEN (aien@aienos.com)* "#, author = author, pr_number = pr_number, @@ -44,9 +44,7 @@ mod tests { assert!(text.contains("Sovereign Contributor Oath")); assert!(text.contains("Long-Term Mission Alignment")); assert!(text.contains("Downstream Heritage Preservation")); - assert!( - text.contains("Drake Stapleton (drake.aien@proton.me) and AIEN (aien.atlas@proton.me)") - ); + assert!(text.contains("Drake Stapleton (aien@aienos.com) and AIEN (aien@aienos.com)")); assert!(!text.contains('\u{2014}')); assert!(!text.contains('\u{2013}')); } diff --git a/src/main.rs b/src/main.rs index fadc55a..3c947a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ use std::path::PathBuf; #[derive(Parser, Debug)] #[command(name = "spark-inquisitor")] -#[command(author = "Drake Stapleton & AIEN ")] +#[command(author = "Drake Stapleton & AIEN ")] #[command(version = "0.2.0")] #[command(about = "Autonomous Sovereign Inquisitor & Pull Request Alignment Gatekeeper")] struct Cli { diff --git a/src/review.rs b/src/review.rs index f0d3111..6702390 100644 --- a/src/review.rs +++ b/src/review.rs @@ -56,7 +56,7 @@ Your pull request **#{pr_number}** ("{pr_title}") was audited against our consti 3. Replace forbidden buzzwords with direct technical descriptions. 4. Commit and push updates to this branch to trigger an automated re-audit. -*For direct sovereign coordination: Drake Stapleton (drake.aien@proton.me) and AIEN (aien.atlas@proton.me)* +*For direct sovereign coordination: Drake Stapleton (aien@aienos.com) and AIEN (aien@aienos.com)* "#, author = author, pr_number = pr_number, diff --git a/src/triage.rs b/src/triage.rs index c4f860e..c6526ad 100644 --- a/src/triage.rs +++ b/src/triage.rs @@ -86,7 +86,7 @@ We resolve concrete regressions directly. Thank you for holding the line on qual || combined.contains("stack trace") || combined.contains("thread 'main' panicked") || combined.contains("cargo run") - || combined.contains("openclaw "); + || combined.contains("aegis "); if has_repro { let labels = vec!["bug".to_string(), "triaged".to_string()]; @@ -184,7 +184,7 @@ Your inquiry **#{issue_number}** ("{title}") has been registered. - **Founding Principles**: Consult `CONSTITUTION.md` for constitutional governance. - **Documentation**: Technical specifications reside in `docs/` and project manifests. -- **Direct Sovereign Coordination**: Drake Stapleton (drake.aien@proton.me) and AIEN (aien.atlas@proton.me) +- **Direct Sovereign Coordination**: Drake Stapleton (aien@aienos.com) and AIEN (aien@aienos.com) A maintainer or sovereign agent will provide technical clarification shortly. "#, diff --git a/tests/protocol_integration.rs b/tests/protocol_integration.rs index f8bccfb..edf8708 100644 --- a/tests/protocol_integration.rs +++ b/tests/protocol_integration.rs @@ -1,6 +1,6 @@ use aien_evaluation_protocol::{ - CanaryRollbackHarness, EvaluationPlan, Evaluator, EvaluatorDescriptor, EvaluatorStatus, - SoftwareP256Signer, Verdict, VerifierIdentity, VerifierSigner, + CanaryRollbackHarness, CryptographicTier, EvaluationPlan, Evaluator, EvaluatorDescriptor, + EvaluatorStatus, SoftwareP256Signer, Verdict, VerifierIdentity, VerifierSigner, }; use aien_protocol_types::{ArtifactRef, Digest32, EvaluationId, Timestamp}; use p256::ecdsa::SigningKey; @@ -178,5 +178,7 @@ async fn test_inquisitor_canary_rollback_integration() { assert_eq!(receipt.receipt.verdict, Verdict::Fail); let verifying_key = signer.verifying_key(); - assert!(receipt.verify(&verifying_key).unwrap()); + assert!(receipt + .verify_with(&verifying_key, CryptographicTier::Tier2SoftwareKey) + .unwrap()); }