diff --git a/.machine_readable/agent_instructions/README.adoc b/.machine_readable/agent_instructions/README.adoc index 9bc2e24b..1cc7487e 100644 --- a/.machine_readable/agent_instructions/README.adoc +++ b/.machine_readable/agent_instructions/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Agent Instructions :toc: preamble diff --git a/AMBIENTOPS-ENHANCEMENT-PLAN.md b/AMBIENTOPS-ENHANCEMENT-PLAN.md index 0767f3c0..37e3887f 100644 --- a/AMBIENTOPS-ENHANCEMENT-PLAN.md +++ b/AMBIENTOPS-ENHANCEMENT-PLAN.md @@ -1,4 +1,4 @@ - + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index dbc0aad3..5daa49fe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ - + # Contributing to AmbientOps diff --git a/EXPLAINME.adoc b/EXPLAINME.adoc index 9ef2a341..ecd7e20d 100644 --- a/EXPLAINME.adoc +++ b/EXPLAINME.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = AmbientOps — Show Me The Receipts :toc: :icons: font diff --git a/LICENSE b/LICENSE index 4a7f1aa6..14e2f777 100644 --- a/LICENSE +++ b/LICENSE @@ -1,38 +1,3 @@ -SPDX-License-Identifier: MPL-2.0 -SPDX-FileCopyrightText: 2024-2026 Jonathan D.A. Jewell (hyperpolymath) - ------------------------------------------------------------------------- -PREFERRED LICENCE: Palimpsest License (MPL-2.0) ------------------------------------------------------------------------- - -This work is governed by the Palimpsest License (MPL-2.0) as -its primary intended licence. MPL-2.0 extends the Mozilla -Public License 2.0 (MPL-2.0) with additional provisions for ethical use, -post-quantum cryptographic provenance, and emotional lineage protection. -The canonical PMPL text and stewardship information are maintained at: - https://github.com/hyperpolymath/palimpsest-license - ------------------------------------------------------------------------- -FALLBACK LICENCE: Mozilla Public License 2.0 (MPL-2.0) ------------------------------------------------------------------------- - -Because MPL-2.0 is not yet recognised by the Open Source -Initiative (OSI) or equivalent bodies, this work also carries MPL-2.0 -as its legally-recognised fallback licence. - -In any jurisdiction, platform, or context where MPL-2.0 is -not accepted as a valid licence, or where an OSI-approved licence is -required, this work is instead governed by the Mozilla Public License, -Version 2.0. - -MPL-2.0 was chosen as the fallback because MPL-2.0 is -explicitly based on and extends MPL-2.0; it is therefore the closest -recognised equivalent to the intended licence. - -The complete MPL-2.0 text follows below. - ------------------------------------------------------------------------- - Mozilla Public License Version 2.0 ================================== @@ -70,7 +35,7 @@ Mozilla Public License Version 2.0 means any form of the work other than Source Code Form. 1.7. "Larger Work" - means a work that combines Covered Software with other material, in + means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" @@ -109,17 +74,17 @@ Mozilla Public License Version 2.0 means the form of the work preferred for making modifications. 1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under - this License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. - For the purposes of this definition, "control" means (a) the power, - direct or indirect, to cause the direction or management of such - entity, whether by contract or otherwise, or (b) ownership of more - than fifty percent (50%) of the outstanding shares or beneficial + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. 2. License Grants and Conditions ---------------------------------- +-------------------------------- 2.1. Grants @@ -144,11 +109,11 @@ distributes such Contribution. 2.3. Limitations on Grant Scope -The licenses granted in this Section 2 are the only rights granted -under this License. No additional rights or licenses will be implied -from the distribution or licensing of Covered Software under this -License. Notwithstanding Section 2.1(b) above, no patent license is -granted by a Contributor: +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: (a) for any code that a Contributor has removed from Covered Software; or @@ -158,19 +123,19 @@ granted by a Contributor: Contributions with other software (except as part of its Contributor Version); or -(c) under Patent Claims infringed by Covered Software in the absence - of its Contributions. +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. -This License does not grant any rights in the trademarks, service -marks, or logos of any Contributor (except as may be necessary to -comply with the notice requirements in Section 3.4). +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). 2.4. Subsequent Licenses No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License -(if permitted under the terms of Section 3.3). +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). 2.5. Representation @@ -186,11 +151,11 @@ equivalents. 2.7. Conditions -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses -granted in Section 2.1. +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. 3. Responsibilities --------------------- +------------------- 3.1. Distribution of Source Form @@ -207,10 +172,10 @@ Form. If You distribute Covered Software in Executable Form then: (a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients - of the Executable Form how they can obtain a copy of such Source - Code Form by reasonable means in a timely manner, at a charge no - more than the cost of distribution to the recipient; and + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the @@ -222,8 +187,8 @@ If You distribute Covered Software in Executable Form then: You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and -the Covered Software is not Incompatible With Secondary Licenses, this +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered @@ -241,28 +206,28 @@ the extent required to remedy known factual inaccuracies. 3.5. Application of Additional Terms You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of -Covered Software. However, You may do so only on Your own behalf, and -not on behalf of any Contributor. You must make it absolutely clear -that any such warranty, support, indemnity, or liability obligation is -offered by You alone, and You hereby agree to indemnify every -Contributor for any liability incurred by such Contributor as a result -of warranty, support, indemnity or liability terms You offer. You may -include additional disclaimers of warranty and limitations of liability -specific to any jurisdiction. +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. 4. Inability to Comply Due to Statute or Regulation ------------------------------------------------------ +--------------------------------------------------- If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description -must be placed in a text file included with all distributions of the -Covered Software under this License. Except to the extent prohibited -by statute or regulation, such description must be sufficiently -detailed for a recipient of ordinary skill to be able to understand it. +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. 5. Termination -------------- @@ -271,27 +236,27 @@ detailed for a recipient of ordinary skill to be able to understand it. if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on -an ongoing basis, if such Contributor fails to notify You of the +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is -the first time You have received notice of non-compliance with this -License from such Contributor, and You become compliant prior to 30 -days after Your receipt of the notice. +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. -5.2. If You initiate litigation against any entity by asserting a -patent infringement claim (excluding declaratory judgment actions, +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate. 5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) -which have been validly granted by You or Your distributors under this -License prior to termination shall survive termination. +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. ************************************************************************ * * @@ -346,7 +311,7 @@ Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims. 9. Miscellaneous ------------------ +---------------- This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be @@ -356,14 +321,14 @@ that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor. 10. Versions of the License ----------------------------- +--------------------------- 10.1. New Versions -Mozilla Foundation is the license steward. Except as provided in -Section 10.3, no one other than the license steward has the right to -modify or publish new versions of this License. Each version will be -given a distinguishing version number. +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. 10.2. Effect of New Versions @@ -396,13 +361,13 @@ Exhibit A - Source Code Form License Notice If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to -look for such a notice. +file in a relevant directory) where a recipient would be likely to look +for such a notice. You may add additional accurate notices of copyright ownership. Exhibit B - "Incompatible With Secondary Licenses" Notice ----------------------------------------------------------- +--------------------------------------------------------- This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index ec540b34..00000000 --- a/LICENSE.txt +++ /dev/null @@ -1,153 +0,0 @@ -SPDX-License-Identifier: MPL-2.0 -SPDX-FileCopyrightText: 2024-2025 Palimpsest Stewardship Council - -================================================================================ -PALIMPSEST-MPL LICENSE VERSION 1.0 -================================================================================ - -File-level copyleft with ethical use and quantum-safe provenance - -Based on Mozilla Public License 2.0 - --------------------------------------------------------------------------------- -PREAMBLE --------------------------------------------------------------------------------- - -This License extends the Mozilla Public License 2.0 (MPL-2.0) with provisions -for ethical use, post-quantum cryptographic provenance, and emotional lineage -protection. The base MPL-2.0 terms apply except where explicitly modified by -the Exhibits below. - -Like a palimpsest manuscript where each layer builds upon what came before, -this license recognizes that creative works carry history, context, and meaning -that transcend mere code or text. - --------------------------------------------------------------------------------- -SECTION 1: BASE LICENSE --------------------------------------------------------------------------------- - -This License incorporates the full text of Mozilla Public License 2.0 by -reference. The complete MPL-2.0 text is available at: -https://www.mozilla.org/en-US/MPL/2.0/ - -All terms, conditions, and definitions from MPL-2.0 apply except where -explicitly modified by the Exhibits in this License. - --------------------------------------------------------------------------------- -SECTION 2: ADDITIONAL DEFINITIONS --------------------------------------------------------------------------------- - -2.1. "Emotional Lineage" - means the narrative, cultural, symbolic, and contextual meaning embedded - in Covered Software, including but not limited to: protest traditions, - cultural heritage, trauma narratives, and community stories. - -2.2. "Provenance Metadata" - means cryptographically signed attribution information attached to or - associated with Covered Software, including author identities, timestamps, - modification history, and lineage references. - -2.3. "Non-Interpretive System" - means any automated system that processes Covered Software without - preserving or considering its Emotional Lineage, including but not - limited to: AI training pipelines, content aggregators, and automated - summarization tools. - -2.4. "Quantum-Safe Signature" - means a cryptographic signature using algorithms resistant to attacks - by quantum computers, as specified in Exhibit B. - --------------------------------------------------------------------------------- -SECTION 3: ETHICAL USE REQUIREMENTS --------------------------------------------------------------------------------- - -In addition to the rights and obligations under MPL-2.0: - -3.1. Emotional Lineage Preservation - You must make reasonable efforts to preserve and communicate the - Emotional Lineage of Covered Software when distributing or creating - derivative works. This includes maintaining narrative context, cultural - attributions, and symbolic meaning where documented. - -3.2. Non-Interpretive System Notice - If You use Covered Software as input to a Non-Interpretive System, You - must: - (a) document such use in a publicly accessible manner; and - (b) not claim that outputs of such systems carry the Emotional Lineage - of the original work without explicit permission from Contributors. - -3.3. Ethical Use Declaration - Commercial use of Covered Software requires acknowledgment that You have - read and understood Exhibit A (Ethical Use Guidelines) and agree to act - in good faith accordance with its principles. - -See Exhibit A for complete Ethical Use Guidelines. - --------------------------------------------------------------------------------- -SECTION 4: PROVENANCE REQUIREMENTS --------------------------------------------------------------------------------- - -4.1. Metadata Preservation - You must not strip, alter, or obscure Provenance Metadata from Covered - Software except where technically necessary and with clear documentation - of any changes. - -4.2. Quantum-Safe Provenance (Optional) - Contributors may sign their Contributions using Quantum-Safe Signatures. - If Quantum-Safe Signatures are present, You must preserve them in all - distributions. - -4.3. Lineage Chain - When creating derivative works, You should extend the provenance chain - to include Your own contributions, maintaining cryptographic linkage to - prior Contributors where feasible. - -See Exhibit B for Quantum-Safe Provenance specifications. - --------------------------------------------------------------------------------- -SECTION 5: GOVERNANCE --------------------------------------------------------------------------------- - -5.1. Stewardship Council - This License is maintained by the Palimpsest Stewardship Council, which - may issue clarifications, interpretive guidance, and future versions. - -5.2. Version Selection - You may use Covered Software under this version of the License or any - later version published by the Palimpsest Stewardship Council. - -5.3. Dispute Resolution - Disputes regarding interpretation of Ethical Use Requirements (Section 3) - should first be submitted to the Palimpsest Stewardship Council for - non-binding guidance before pursuing legal remedies. - --------------------------------------------------------------------------------- -SECTION 6: COMPATIBILITY --------------------------------------------------------------------------------- - -6.1. MPL-2.0 Compatibility - Covered Software under this License may be combined with software under - MPL-2.0. The combined work must comply with both licenses. - -6.2. Secondary Licenses - The Secondary License provisions of MPL-2.0 Section 3.3 apply to this - License. - --------------------------------------------------------------------------------- -EXHIBITS --------------------------------------------------------------------------------- - -Exhibit A - Ethical Use Guidelines -Exhibit B - Quantum-Safe Provenance Specification - -See separate files: -- EXHIBIT-A-ETHICAL-USE.txt -- EXHIBIT-B-QUANTUM-SAFE.txt - --------------------------------------------------------------------------------- -END OF PALIMPSEST-MPL LICENSE VERSION 1.0 --------------------------------------------------------------------------------- - -For questions about this License: -- Repository: https://github.com/hyperpolymath/palimpsest-license -- Council: contact via repository Issues diff --git a/LICENSES/CC-BY-SA-4.0.txt b/LICENSES/CC-BY-SA-4.0.txt new file mode 100644 index 00000000..835a6836 --- /dev/null +++ b/LICENSES/CC-BY-SA-4.0.txt @@ -0,0 +1,170 @@ +Creative Commons Attribution-ShareAlike 4.0 International + + Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. + +Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors. + +Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. + +Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public. + +Creative Commons Attribution-ShareAlike 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + + a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. + + e. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. + + i. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights under this Public License. + + k. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. + +Section 2 – Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: + + A. reproduce and Share the Licensed Material, in whole or in part; and + + B. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. + + 3. Term. The term of this Public License is specified in Section 6(a). + + 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. + + 5. Downstream recipients. + + A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. + + B. Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. + + C. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. + + 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this Public License. + + 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. + +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified form), You must: + + A. retain the following if it is supplied by the Licensor with the Licensed Material: + + i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of warranties; + + v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; + + B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and + + C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. + + 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. + + b. ShareAlike.In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. + + 1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. + +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; + + b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and + + c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. + +Section 5 – Disclaimer of Warranties and Limitation of Liability. + + a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. + + b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. + + c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. + +Section 6 – Term and Termination. + + a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or + + 2. upon express reinstatement by the Licensor. + + c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. + + d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. + + e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. + +Section 7 – Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. + +Section 8 – Interpretation. + + a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. + + c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. + + d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. + +Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSES/PMPL-1.0-or-later.txt b/LICENSES/PMPL-1.0-or-later.txt deleted file mode 100644 index 711e372c..00000000 --- a/LICENSES/PMPL-1.0-or-later.txt +++ /dev/null @@ -1,162 +0,0 @@ -SPDX-License-Identifier: MPL-2.0 -SPDX-FileCopyrightText: 2025 Palimpsest Stewardship Council - -================================================================================ -PALIMPSEST-MPL LICENSE VERSION 1.0 -================================================================================ - -File-level copyleft with ethical use and quantum-safe provenance - -Based on Mozilla Public License 2.0 - --------------------------------------------------------------------------------- -PREAMBLE --------------------------------------------------------------------------------- - -This License extends the Mozilla Public License 2.0 (MPL-2.0) with provisions -for ethical use, post-quantum cryptographic provenance, and emotional lineage -protection. The base MPL-2.0 terms apply except where explicitly modified by -the Exhibits below. - -Like a palimpsest manuscript where each layer builds upon what came before, -this license recognizes that creative works carry history, context, and meaning -that transcend mere code or text. - --------------------------------------------------------------------------------- -SECTION 1: BASE LICENSE --------------------------------------------------------------------------------- - -This License incorporates the full text of Mozilla Public License 2.0 by -reference. The complete MPL-2.0 text is available at: -https://www.mozilla.org/en-US/MPL/2.0/ - -All terms, conditions, and definitions from MPL-2.0 apply except where -explicitly modified by the Exhibits in this License. - --------------------------------------------------------------------------------- -SECTION 2: ADDITIONAL DEFINITIONS --------------------------------------------------------------------------------- - -2.1. "Emotional Lineage" - means the narrative, cultural, symbolic, and contextual meaning embedded - in Covered Software, including but not limited to: protest traditions, - cultural heritage, trauma narratives, and community stories. - -2.2. "Provenance Metadata" - means cryptographically signed attribution information attached to or - associated with Covered Software, including author identities, timestamps, - modification history, and lineage references. - -2.3. "Non-Interpretive System" - means any automated system that processes Covered Software without - preserving or considering its Emotional Lineage, including but not - limited to: AI training pipelines, content aggregators, and automated - summarization tools. - -2.4. "Quantum-Safe Signature" - means a cryptographic signature using algorithms resistant to attacks - by quantum computers, as specified in Exhibit B. - --------------------------------------------------------------------------------- -SECTION 3: ETHICAL USE REQUIREMENTS --------------------------------------------------------------------------------- - -In addition to the rights and obligations under MPL-2.0: - -3.1. Emotional Lineage Preservation - You must make reasonable efforts to preserve and communicate the - Emotional Lineage of Covered Software when distributing or creating - derivative works. This includes maintaining narrative context, cultural - attributions, and symbolic meaning where documented. - -3.2. Non-Interpretive System Notice - If You use Covered Software as input to a Non-Interpretive System, You - must: - (a) document such use in a publicly accessible manner; and - (b) not claim that outputs of such systems carry the Emotional Lineage - of the original work without explicit permission from Contributors. - -3.3. Ethical Use Declaration - Commercial use of Covered Software requires acknowledgment that You have - read and understood Exhibit A (Ethical Use Guidelines) and agree to act - in good faith accordance with its principles. - -See Exhibit A for complete Ethical Use Guidelines. - --------------------------------------------------------------------------------- -SECTION 4: PROVENANCE REQUIREMENTS --------------------------------------------------------------------------------- - -4.1. Metadata Preservation - You must not strip, alter, or obscure Provenance Metadata from Covered - Software except where technically necessary and with clear documentation - of any changes. - -4.2. Quantum-Safe Provenance (Optional) - Contributors may sign their Contributions using Quantum-Safe Signatures. - If Quantum-Safe Signatures are present, You must preserve them in all - distributions. - -4.3. Lineage Chain - When creating derivative works, You should extend the provenance chain - to include Your own contributions, maintaining cryptographic linkage to - prior Contributors where feasible. - -See Exhibit B for Quantum-Safe Provenance specifications. - --------------------------------------------------------------------------------- -SECTION 5: GOVERNANCE --------------------------------------------------------------------------------- - -5.1. Stewardship Council - This License is maintained by the Palimpsest Stewardship Council, which - may issue clarifications, interpretive guidance, and future versions. - -5.2. Version Selection - You may use Covered Software under this version of the License or any - later version published by the Palimpsest Stewardship Council. - -5.3. Dispute Resolution - Disputes regarding interpretation of Ethical Use Requirements (Section 3) - should first be submitted to the Palimpsest Stewardship Council for - non-binding guidance before pursuing legal remedies. - --------------------------------------------------------------------------------- -SECTION 6: COMPATIBILITY --------------------------------------------------------------------------------- - -6.1. MPL-2.0 Compatibility - Covered Software under this License may be combined with software under - MPL-2.0. The combined work must comply with both licenses. - -6.2. Secondary Licenses - The Secondary License provisions of MPL-2.0 Section 3.3 apply to this - License. - --------------------------------------------------------------------------------- -EXHIBITS --------------------------------------------------------------------------------- - -Exhibit A - Ethical Use Guidelines -Exhibit B - Quantum-Safe Provenance Specification - -See separate files: -- EXHIBIT-A-ETHICAL-USE.txt -- EXHIBIT-B-QUANTUM-SAFE.txt - --------------------------------------------------------------------------------- -END OF PALIMPSEST-MPL-1.0 LICENSE TEXT --------------------------------------------------------------------------------- - -For exhibits, specifications, provenance rules, and governance: -https://github.com/hyperpolymath/palimpsest-license - -For legal frameworks and jurisdictional analysis: -See /legal/frameworks/ - -For provenance and audit tooling: -See /tools/ and /spec/PROVENANCE-SPEC.adoc - -For questions about this License: -- Repository: https://github.com/hyperpolymath/palimpsest-license -- Council: contact via repository Issues diff --git a/MAINTAINERS.adoc b/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/MAINTAINERS.adoc +++ b/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/PALIMPSEST.adoc b/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/PALIMPSEST.adoc +++ b/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/QUICKSTART-USER.adoc b/QUICKSTART-USER.adoc index 93b20fc7..00c17b40 100644 --- a/QUICKSTART-USER.adoc +++ b/QUICKSTART-USER.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = AmbientOps Quickstart :author: Jonathan D.A. Jewell diff --git a/README.adoc b/README.adoc index 0925786c..517b5abf 100644 --- a/README.adoc +++ b/README.adoc @@ -1,8 +1,8 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = AmbientOps -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://api.thegreenwebfoundation.org/greencheckimage/jewell.nexus[Green Hosting,link="https://www.thegreenwebfoundation.org/green-web-check/?url=jewell.nexus"] :toc: diff --git a/README.md b/README.md index c52b9c14..dee0a60e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ [![Sponsor](https://img.shields.io/badge/Sponsor-%E2%9D%A4-pink?logo=github)](https://github.com/sponsors/hyperpolymath) -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = AmbientOps -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://api.thegreenwebfoundation.org/greencheckimage/jewell.nexus[Green Hosting,link="https://www.thegreenwebfoundation.org/green-web-check/?url=jewell.nexus"] :toc: diff --git a/RSR_OUTLINE.adoc b/RSR_OUTLINE.adoc index 1d53f1d4..8a1d0c80 100644 --- a/RSR_OUTLINE.adoc +++ b/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/SECURITY.md b/SECURITY.md index 96014146..52bb8341 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,4 +1,4 @@ - + # Security Policy diff --git a/STATE.adoc b/STATE.adoc index 9e6601d2..147302bb 100644 --- a/STATE.adoc +++ b/STATE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = AmbientOps Project State :toc: preamble :icons: font diff --git a/TOPOLOGY.md b/TOPOLOGY.md index 03c749b7..80806347 100644 --- a/TOPOLOGY.md +++ b/TOPOLOGY.md @@ -1,4 +1,4 @@ - + diff --git a/_pathroot/.gitattributes b/_pathroot/.gitattributes index 634c65c2..e860a85c 100644 --- a/_pathroot/.gitattributes +++ b/_pathroot/.gitattributes @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PMPL-1.0 +# SPDX-License-Identifier: MPL-2.0 # RSR-compliant .gitattributes * text=auto eol=lf diff --git a/_pathroot/.github/FUNDING.yml b/_pathroot/.github/FUNDING.yml index e2d29717..688a442c 100644 --- a/_pathroot/.github/FUNDING.yml +++ b/_pathroot/.github/FUNDING.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Funding platforms for hyperpolymath projects # See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository diff --git a/_pathroot/.github/dependabot.yml b/_pathroot/.github/dependabot.yml index 7afafd7d..d5cd4e99 100644 --- a/_pathroot/.github/dependabot.yml +++ b/_pathroot/.github/dependabot.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dependabot configuration for RSR-compliant repositories # Covers common ecosystems - remove unused ones for your project diff --git a/_pathroot/.github/workflows/codeql.yml b/_pathroot/.github/workflows/codeql.yml index 2a783621..3512dbeb 100644 --- a/_pathroot/.github/workflows/codeql.yml +++ b/_pathroot/.github/workflows/codeql.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # diff --git a/_pathroot/.github/workflows/guix-nix-policy.yml b/_pathroot/.github/workflows/guix-nix-policy.yml index 28029bfc..b8e4d6f7 100644 --- a/_pathroot/.github/workflows/guix-nix-policy.yml +++ b/_pathroot/.github/workflows/guix-nix-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Guix/Nix Package Policy on: [push, pull_request] jobs: diff --git a/_pathroot/.github/workflows/instant-sync.yml b/_pathroot/.github/workflows/instant-sync.yml index 9f0785b9..00f9d6b7 100644 --- a/_pathroot/.github/workflows/instant-sync.yml +++ b/_pathroot/.github/workflows/instant-sync.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Instant Forge Sync - Triggers propagation to all forges on push/release name: Instant Sync diff --git a/_pathroot/.github/workflows/jekyll-gh-pages.yml b/_pathroot/.github/workflows/jekyll-gh-pages.yml index 199e1f33..1d224e21 100644 --- a/_pathroot/.github/workflows/jekyll-gh-pages.yml +++ b/_pathroot/.github/workflows/jekyll-gh-pages.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy Jekyll with GitHub Pages dependencies preinstalled diff --git a/_pathroot/.github/workflows/mirror.yml b/_pathroot/.github/workflows/mirror.yml index f2b3039e..13857123 100644 --- a/_pathroot/.github/workflows/mirror.yml +++ b/_pathroot/.github/workflows/mirror.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Mirror to GitLab and Bitbucket on: diff --git a/_pathroot/.github/workflows/quality.yml b/_pathroot/.github/workflows/quality.yml index b691f079..288f9465 100644 --- a/_pathroot/.github/workflows/quality.yml +++ b/_pathroot/.github/workflows/quality.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Code Quality on: [push, pull_request] diff --git a/_pathroot/.github/workflows/rsr-antipattern.yml b/_pathroot/.github/workflows/rsr-antipattern.yml index 7990edc7..d5f5d098 100644 --- a/_pathroot/.github/workflows/rsr-antipattern.yml +++ b/_pathroot/.github/workflows/rsr-antipattern.yml @@ -1,6 +1,6 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # RSR Anti-Pattern CI Check -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm # Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme diff --git a/_pathroot/.github/workflows/scorecard-enforcer.yml b/_pathroot/.github/workflows/scorecard-enforcer.yml index 37dd5cca..c0fe2675 100644 --- a/_pathroot/.github/workflows/scorecard-enforcer.yml +++ b/_pathroot/.github/workflows/scorecard-enforcer.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - runs OpenSSF Scorecard and fails on low scores name: OpenSSF Scorecard Enforcer diff --git a/_pathroot/.github/workflows/scorecard.yml b/_pathroot/.github/workflows/scorecard.yml index 72eafa56..becf6b40 100644 --- a/_pathroot/.github/workflows/scorecard.yml +++ b/_pathroot/.github/workflows/scorecard.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: OSSF Scorecard on: push: diff --git a/_pathroot/.github/workflows/secret-scanner.yml b/_pathroot/.github/workflows/secret-scanner.yml index d7ffaa9c..b2dcc860 100644 --- a/_pathroot/.github/workflows/secret-scanner.yml +++ b/_pathroot/.github/workflows/secret-scanner.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - scans for hardcoded secrets before they reach main name: Secret Scanner diff --git a/_pathroot/.github/workflows/security-policy.yml b/_pathroot/.github/workflows/security-policy.yml index 0a90b2b7..3d6e173a 100644 --- a/_pathroot/.github/workflows/security-policy.yml +++ b/_pathroot/.github/workflows/security-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Security Policy on: [push, pull_request] jobs: diff --git a/_pathroot/.github/workflows/wellknown-enforcement.yml b/_pathroot/.github/workflows/wellknown-enforcement.yml index 702f1e5a..9801bab5 100644 --- a/_pathroot/.github/workflows/wellknown-enforcement.yml +++ b/_pathroot/.github/workflows/wellknown-enforcement.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Well-Known Standards (RFC 9116 + RSR) on: push: diff --git a/_pathroot/.github/workflows/workflow-linter.yml b/_pathroot/.github/workflows/workflow-linter.yml index dafe8e7e..3bed9c5f 100644 --- a/_pathroot/.github/workflows/workflow-linter.yml +++ b/_pathroot/.github/workflows/workflow-linter.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - validates all workflows have proper security config name: Workflow Security Linter diff --git a/_pathroot/.gitignore b/_pathroot/.gitignore index 15b46a81..a79245bc 100644 --- a/_pathroot/.gitignore +++ b/_pathroot/.gitignore @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PMPL-1.0 +# SPDX-License-Identifier: MPL-2.0 # RSR-compliant .gitignore # OS & Editor diff --git a/_pathroot/.gitlab-ci.yml b/_pathroot/.gitlab-ci.yml index 273a9c7b..7309fa90 100644 --- a/_pathroot/.gitlab-ci.yml +++ b/_pathroot/.gitlab-ci.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Primary CI/CD - GitLab is the source of truth stages: diff --git a/_pathroot/CITATION.cff b/_pathroot/CITATION.cff index 335412ca..26c023c9 100644 --- a/_pathroot/CITATION.cff +++ b/_pathroot/CITATION.cff @@ -1,6 +1,6 @@ # CITATION.cff - Citation File Format for RSR-template-repo # https://citation-file-format.github.io/ -# SPDX-License-Identifier: PMPL-1.0 OR LicenseRef-Palimpsest-0.5 +# SPDX-License-Identifier: MPL-2.0 OR LicenseRef-Palimpsest-0.5 cff-version: 1.2.0 title: "RSR-template-repo" diff --git a/_pathroot/CONTRIBUTING.adoc b/_pathroot/CONTRIBUTING.adoc index a0f2f540..eb045d61 100644 --- a/_pathroot/CONTRIBUTING.adoc +++ b/_pathroot/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/_pathroot/LICENSE.txt b/_pathroot/LICENSE.txt index e0800e9b..674e4a68 100644 --- a/_pathroot/LICENSE.txt +++ b/_pathroot/LICENSE.txt @@ -1,8 +1,8 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 Mozilla Public License Version 2.0 ================================== -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 ──────────────────────────────────────────────────────────────────────────────── PALIMPSEST NOTICE diff --git a/_pathroot/MAINTAINERS.adoc b/_pathroot/MAINTAINERS.adoc index b5154a03..48d97817 100644 --- a/_pathroot/MAINTAINERS.adoc +++ b/_pathroot/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/_pathroot/ROADMAP.adoc b/_pathroot/ROADMAP.adoc index b54d974f..1d435301 100644 --- a/_pathroot/ROADMAP.adoc +++ b/_pathroot/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Roadmap This document outlines the security and development roadmap for this template repository. diff --git a/_pathroot/RSR_OUTLINE.adoc b/_pathroot/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/_pathroot/RSR_OUTLINE.adoc +++ b/_pathroot/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.adb b/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.adb index f5b6c2fd..9593ce25 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.adb +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.adb @@ -1,7 +1,7 @@ -- _pathroot TUI - Discovery Module Body -- Handles _pathroot file discovery across platforms -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Directories; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.ads b/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.ads index e629b7f7..80b55e81 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.ads +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-discovery.ads @@ -1,7 +1,7 @@ -- _pathroot TUI - Discovery Module Specification -- Handles _pathroot file discovery across platforms -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.adb b/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.adb index 98c4a5d8..831f8394 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.adb +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.adb @@ -1,7 +1,7 @@ -- _pathroot TUI - Envbase Module Body -- Handles _envbase JSON parsing and manipulation -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Directories; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.ads b/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.ads index 1436fa27..e7ad7b14 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.ads +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-envbase.ads @@ -1,7 +1,7 @@ -- _pathroot TUI - Envbase Module Specification -- Handles _envbase JSON parsing and manipulation -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-links.adb b/_pathroot/ada/tui/src/core/pathroot_tui-core-links.adb index 78cf4301..cf7cdc71 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-links.adb +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-links.adb @@ -1,7 +1,7 @@ -- _pathroot TUI - Symbolic Links Module Body -- Handles symbolic link creation and auditing -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Directories; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-links.ads b/_pathroot/ada/tui/src/core/pathroot_tui-core-links.ads index fe52395f..b9a5bffb 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-links.ads +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-links.ads @@ -1,7 +1,7 @@ -- _pathroot TUI - Symbolic Links Module Specification -- Handles symbolic link creation and auditing -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.adb b/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.adb index 2534c2b7..ec3a9a8e 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.adb +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.adb @@ -1,7 +1,7 @@ -- _pathroot TUI - PATH Environment Module Body -- Handles PATH environment variable operations -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Directories; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.ads b/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.ads index 28dea300..1ef4d438 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.ads +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-pathenv.ads @@ -1,7 +1,7 @@ -- _pathroot TUI - PATH Environment Module Specification -- Handles PATH environment variable operations -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.adb b/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.adb index 72852a04..22ce9847 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.adb +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.adb @@ -1,6 +1,6 @@ -- POSIX Symbolic Link Bindings - Implementation -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath package body Pathroot_TUI.Core.POSIX_Links is diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.ads b/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.ads index ee39074c..7f1052d2 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.ads +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-posix_links.ads @@ -1,7 +1,7 @@ -- POSIX Symbolic Link Bindings -- Thin bindings to POSIX readlink/symlink functions -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Interfaces.C; use Interfaces.C; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.adb b/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.adb index 8218e825..43e50817 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.adb +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.adb @@ -1,7 +1,7 @@ -- _pathroot TUI - Transaction Protocol Body -- Handles command-line transaction protocol for scripting -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Text_IO; use Ada.Text_IO; diff --git a/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.ads b/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.ads index 2892202b..8536771f 100644 --- a/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.ads +++ b/_pathroot/ada/tui/src/core/pathroot_tui-core-transactions.ads @@ -1,7 +1,7 @@ -- _pathroot TUI - Transaction Protocol Specification -- Handles command-line transaction protocol for scripting -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath package Pathroot_TUI.Core.Transactions is diff --git a/_pathroot/ada/tui/src/pathroot_tui.adb b/_pathroot/ada/tui/src/pathroot_tui.adb index ae6453de..ca259c00 100644 --- a/_pathroot/ada/tui/src/pathroot_tui.adb +++ b/_pathroot/ada/tui/src/pathroot_tui.adb @@ -1,7 +1,7 @@ -- _pathroot TUI - Main Package Body -- Ada-based Terminal User Interface for devtools environment management -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Text_IO; use Ada.Text_IO; diff --git a/_pathroot/ada/tui/src/pathroot_tui.ads b/_pathroot/ada/tui/src/pathroot_tui.ads index f4faf27a..a351f810 100644 --- a/_pathroot/ada/tui/src/pathroot_tui.ads +++ b/_pathroot/ada/tui/src/pathroot_tui.ads @@ -1,7 +1,7 @@ -- _pathroot TUI - Main Package Specification -- Ada-based Terminal User Interface for devtools environment management -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath package Pathroot_TUI is diff --git a/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.adb b/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.adb index 9a6bb20a..da3346d4 100644 --- a/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.adb +++ b/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.adb @@ -1,7 +1,7 @@ -- _pathroot TUI - UI Panels Body -- Terminal UI panel management (basic text-based implementation) -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Text_IO; use Ada.Text_IO; diff --git a/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.ads b/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.ads index 8a63c859..56e38295 100644 --- a/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.ads +++ b/_pathroot/ada/tui/src/ui/pathroot_tui-ui-panels.ads @@ -1,7 +1,7 @@ -- _pathroot TUI - UI Panels Specification -- Terminal UI panel management -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Pathroot_TUI.Core.Envbase; use Pathroot_TUI.Core.Envbase; diff --git a/_pathroot/contractiles/dust/Dustfile b/_pathroot/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/_pathroot/contractiles/dust/Dustfile +++ b/_pathroot/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/_pathroot/contractiles/k9/README.adoc b/_pathroot/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/_pathroot/contractiles/k9/README.adoc +++ b/_pathroot/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/_pathroot/contractiles/must/Mustfile b/_pathroot/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/_pathroot/contractiles/must/Mustfile +++ b/_pathroot/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/_pathroot/ffi/zig/build.zig b/_pathroot/ffi/zig/build.zig index b64bad85..4eb94354 100644 --- a/_pathroot/ffi/zig/build.zig +++ b/_pathroot/ffi/zig/build.zig @@ -1,6 +1,6 @@ // build.zig // Build system for pathroot ABI Zig FFI -// SPDX-License-Identifier: PMPL-1.0 +// SPDX-License-Identifier: MPL-2.0 const std = @import("std"); diff --git a/_pathroot/ffi/zig/src/symlink.zig b/_pathroot/ffi/zig/src/symlink.zig index e340a715..84edeb55 100644 --- a/_pathroot/ffi/zig/src/symlink.zig +++ b/_pathroot/ffi/zig/src/symlink.zig @@ -1,6 +1,6 @@ // symlink.zig // Pure Zig FFI implementation for POSIX symlink operations -// SPDX-License-Identifier: PMPL-1.0 +// SPDX-License-Identifier: MPL-2.0 const std = @import("std"); const os = std.os; diff --git a/_pathroot/flake.nix b/_pathroot/flake.nix index 7308bae1..bcbaa232 100644 --- a/_pathroot/flake.nix +++ b/_pathroot/flake.nix @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PMPL-1.0 +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # RSR-template-repo - Nix Flake (fallback for Guix) diff --git a/_pathroot/libs/ada-path-environment/path_environment.gpr b/_pathroot/libs/ada-path-environment/path_environment.gpr index 2d4e0f9e..fea7dae8 100644 --- a/_pathroot/libs/ada-path-environment/path_environment.gpr +++ b/_pathroot/libs/ada-path-environment/path_environment.gpr @@ -1,4 +1,4 @@ --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath project Path_Environment is diff --git a/_pathroot/libs/ada-path-environment/src/path_environment.adb b/_pathroot/libs/ada-path-environment/src/path_environment.adb index e432c805..8ca25a35 100644 --- a/_pathroot/libs/ada-path-environment/src/path_environment.adb +++ b/_pathroot/libs/ada-path-environment/src/path_environment.adb @@ -1,6 +1,6 @@ -- Path_Environment - Cross-platform PATH environment management for Ada -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Directories; diff --git a/_pathroot/libs/ada-path-environment/src/path_environment.ads b/_pathroot/libs/ada-path-environment/src/path_environment.ads index a354da10..93fbe760 100644 --- a/_pathroot/libs/ada-path-environment/src/path_environment.ads +++ b/_pathroot/libs/ada-path-environment/src/path_environment.ads @@ -3,7 +3,7 @@ -- This library provides a high-level interface for manipulating the PATH -- environment variable across Windows and POSIX platforms. -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; diff --git a/_pathroot/libs/ada-symlink-manager/src/symlink_manager.adb b/_pathroot/libs/ada-symlink-manager/src/symlink_manager.adb index 7669231a..50f92e0d 100644 --- a/_pathroot/libs/ada-symlink-manager/src/symlink_manager.adb +++ b/_pathroot/libs/ada-symlink-manager/src/symlink_manager.adb @@ -1,6 +1,6 @@ -- Symlink_Manager - Cross-platform symbolic link management for Ada -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Directories; diff --git a/_pathroot/libs/ada-symlink-manager/src/symlink_manager.ads b/_pathroot/libs/ada-symlink-manager/src/symlink_manager.ads index 6d1b4ccd..f48f8962 100644 --- a/_pathroot/libs/ada-symlink-manager/src/symlink_manager.ads +++ b/_pathroot/libs/ada-symlink-manager/src/symlink_manager.ads @@ -3,7 +3,7 @@ -- This library provides a high-level interface for creating, auditing, -- and managing symbolic links across Windows and POSIX platforms. -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; diff --git a/_pathroot/libs/ada-symlink-manager/symlink_manager.gpr b/_pathroot/libs/ada-symlink-manager/symlink_manager.gpr index 4e04357a..c2a28463 100644 --- a/_pathroot/libs/ada-symlink-manager/symlink_manager.gpr +++ b/_pathroot/libs/ada-symlink-manager/symlink_manager.gpr @@ -1,4 +1,4 @@ --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath project Symlink_Manager is diff --git a/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.adb b/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.adb index cb95aa8f..aeefb2bd 100644 --- a/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.adb +++ b/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.adb @@ -1,6 +1,6 @@ -- Terminal_ANSI - Lightweight ANSI terminal utilities for Ada -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Text_IO; diff --git a/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.ads b/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.ads index d8f6a420..0e7d2948 100644 --- a/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.ads +++ b/_pathroot/libs/ada-terminal-ansi/src/terminal_ansi.ads @@ -3,7 +3,7 @@ -- This library provides simple ANSI escape sequence handling for terminal -- applications without requiring ncurses or other heavy dependencies. -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath package Terminal_ANSI is diff --git a/_pathroot/libs/ada-terminal-ansi/terminal_ansi.gpr b/_pathroot/libs/ada-terminal-ansi/terminal_ansi.gpr index 0414d126..7e0e1e4a 100644 --- a/_pathroot/libs/ada-terminal-ansi/terminal_ansi.gpr +++ b/_pathroot/libs/ada-terminal-ansi/terminal_ansi.gpr @@ -1,4 +1,4 @@ --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath project Terminal_Ansi is diff --git a/_pathroot/license/MPL-2.0.txt b/_pathroot/license/MPL-2.0.txt index 7f89a90e..fe550361 100644 --- a/_pathroot/license/MPL-2.0.txt +++ b/_pathroot/license/MPL-2.0.txt @@ -1,7 +1,7 @@ Mozilla Public License Version 2.0 ================================== -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 ──────────────────────────────────────────────────────────────────────────────── PALIMPSEST NOTICE diff --git a/_pathroot/license/PMPL-1.0.txt b/_pathroot/license/PMPL-1.0.txt index 13d072a6..711e372c 100644 --- a/_pathroot/license/PMPL-1.0.txt +++ b/_pathroot/license/PMPL-1.0.txt @@ -1,4 +1,4 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 SPDX-FileCopyrightText: 2025 Palimpsest Stewardship Council ================================================================================ diff --git a/_pathroot/rsr-adapter.adb b/_pathroot/rsr-adapter.adb index 9333e072..aee989c4 100644 --- a/_pathroot/rsr-adapter.adb +++ b/_pathroot/rsr-adapter.adb @@ -1,7 +1,7 @@ -- RSR Adapter - Repository Starter/Customization Tool -- Provides interactive customization of repository templates -- --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 -- Copyright (C) 2025 Hyper Polymath with Ada.Text_IO; use Ada.Text_IO; diff --git a/_pathroot/src/abi/Symlink.idr b/_pathroot/src/abi/Symlink.idr index ede25f85..a167f512 100644 --- a/_pathroot/src/abi/Symlink.idr +++ b/_pathroot/src/abi/Symlink.idr @@ -1,6 +1,6 @@ -- Symlink.idr -- Idris2 ABI for POSIX symlink operations with formal verification --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 module Symlink diff --git a/_pathroot/src/abi/SymlinkTypes.idr b/_pathroot/src/abi/SymlinkTypes.idr index fc3e87b6..53f1ccc7 100644 --- a/_pathroot/src/abi/SymlinkTypes.idr +++ b/_pathroot/src/abi/SymlinkTypes.idr @@ -1,6 +1,6 @@ -- SymlinkTypes.idr -- Idris2 ABI definitions for POSIX symlink operations --- SPDX-License-Identifier: PMPL-1.0 +-- SPDX-License-Identifier: MPL-2.0 module SymlinkTypes diff --git a/ambulances/disk/.github/workflows/workflow-linter.yml b/ambulances/disk/.github/workflows/workflow-linter.yml index 9f224406..8fb98d80 100644 --- a/ambulances/disk/.github/workflows/workflow-linter.yml +++ b/ambulances/disk/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/ambulances/disk/MAINTAINERS.adoc b/ambulances/disk/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/ambulances/disk/MAINTAINERS.adoc +++ b/ambulances/disk/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/ambulances/disk/README.adoc b/ambulances/disk/README.adoc index f979ad18..e5167b57 100644 --- a/ambulances/disk/README.adoc +++ b/ambulances/disk/README.adoc @@ -4,7 +4,7 @@ :icons: font :source-highlighter: rouge -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Version-0.5.0-orange.svg[Version] image:https://img.shields.io/badge/Status-Alpha-yellow.svg[Status] diff --git a/ambulances/disk/ROADMAP.adoc b/ambulances/disk/ROADMAP.adoc index 78b08355..ddd0c8dd 100644 --- a/ambulances/disk/ROADMAP.adoc +++ b/ambulances/disk/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Disk Roadmap == Current Status diff --git a/ambulances/disk/RSR_OUTLINE.adoc b/ambulances/disk/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/ambulances/disk/RSR_OUTLINE.adoc +++ b/ambulances/disk/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/ambulances/disk/contractiles/dust/Dustfile b/ambulances/disk/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/ambulances/disk/contractiles/dust/Dustfile +++ b/ambulances/disk/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/ambulances/disk/contractiles/k9/README.adoc b/ambulances/disk/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/ambulances/disk/contractiles/k9/README.adoc +++ b/ambulances/disk/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/ambulances/disk/contractiles/must/Mustfile b/ambulances/disk/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/ambulances/disk/contractiles/must/Mustfile +++ b/ambulances/disk/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/ambulances/disk/contractiles/trust/Trustfile.hs b/ambulances/disk/contractiles/trust/Trustfile.hs index 60e68c2f..00b313fa 100644 --- a/ambulances/disk/contractiles/trust/Trustfile.hs +++ b/ambulances/disk/contractiles/trust/Trustfile.hs @@ -1,4 +1,4 @@ --- SPDX-License-Identifier: PLMP-1.0-or-later +-- SPDX-License-Identifier: MPL-2.0 -- Trustfile template - cryptographic and provenance verification module Trustfile where diff --git a/ambulances/performance/.github/workflows/workflow-linter.yml b/ambulances/performance/.github/workflows/workflow-linter.yml index 9f224406..8fb98d80 100644 --- a/ambulances/performance/.github/workflows/workflow-linter.yml +++ b/ambulances/performance/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/ambulances/performance/README.adoc b/ambulances/performance/README.adoc index f9238af2..bdb5af82 100644 --- a/ambulances/performance/README.adoc +++ b/ambulances/performance/README.adoc @@ -4,7 +4,7 @@ :icons: font :source-highlighter: rouge -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Version-1.0.0-success.svg[Version] image:https://img.shields.io/badge/Status-Production_Ready-brightgreen.svg[Status] diff --git a/ambulances/security/.github/workflows/workflow-linter.yml b/ambulances/security/.github/workflows/workflow-linter.yml index 9f224406..8fb98d80 100644 --- a/ambulances/security/.github/workflows/workflow-linter.yml +++ b/ambulances/security/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/ambulances/security/README.adoc b/ambulances/security/README.adoc index 8965bbea..e47f6cf0 100644 --- a/ambulances/security/README.adoc +++ b/ambulances/security/README.adoc @@ -4,7 +4,7 @@ :icons: font :source-highlighter: rouge -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Version-1.0.0-success.svg[Version] image:https://img.shields.io/badge/Status-Production_Ready-brightgreen.svg[Status] diff --git a/ambulances/security/contractiles/dust/Dustfile b/ambulances/security/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/ambulances/security/contractiles/dust/Dustfile +++ b/ambulances/security/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/ambulances/security/contractiles/k9/README.adoc b/ambulances/security/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/ambulances/security/contractiles/k9/README.adoc +++ b/ambulances/security/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/ambulances/security/contractiles/must/Mustfile b/ambulances/security/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/ambulances/security/contractiles/must/Mustfile +++ b/ambulances/security/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/ambulances/security/contractiles/trust/Trustfile.hs b/ambulances/security/contractiles/trust/Trustfile.hs index 60e68c2f..00b313fa 100644 --- a/ambulances/security/contractiles/trust/Trustfile.hs +++ b/ambulances/security/contractiles/trust/Trustfile.hs @@ -1,4 +1,4 @@ --- SPDX-License-Identifier: PLMP-1.0-or-later +-- SPDX-License-Identifier: MPL-2.0 -- Trustfile template - cryptographic and provenance verification module Trustfile where diff --git a/audits/audit-ffi-2026-05-26.md b/audits/audit-ffi-2026-05-26.md index c7ba4d79..4d46a9a7 100644 --- a/audits/audit-ffi-2026-05-26.md +++ b/audits/audit-ffi-2026-05-26.md @@ -1,5 +1,5 @@ diff --git a/broad-spectrum/.github/workflows/workflow-linter.yml b/broad-spectrum/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/broad-spectrum/.github/workflows/workflow-linter.yml +++ b/broad-spectrum/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/broad-spectrum/CHANGELOG.adoc b/broad-spectrum/CHANGELOG.adoc index 752314ec..6cea852f 100644 --- a/broad-spectrum/CHANGELOG.adoc +++ b/broad-spectrum/CHANGELOG.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Changelog All notable changes to this project will be documented in this file. diff --git a/broad-spectrum/CONTRIBUTING.adoc b/broad-spectrum/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/broad-spectrum/CONTRIBUTING.adoc +++ b/broad-spectrum/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/broad-spectrum/MAINTAINERS.adoc b/broad-spectrum/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/broad-spectrum/MAINTAINERS.adoc +++ b/broad-spectrum/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/broad-spectrum/README.adoc b/broad-spectrum/README.adoc index 978553fb..484e1a80 100644 --- a/broad-spectrum/README.adoc +++ b/broad-spectrum/README.adoc @@ -1,6 +1,6 @@ = Broad Spectrum - Website Auditor -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] A comprehensive CLI website auditor built with ReScript and Deno. Performs automated security, accessibility, performance, and SEO audits on websites. @@ -37,7 +37,7 @@ curl -fsSL https://deno.land/install.sh | sh ```bash = Visit https://nodejs.org/ or use nvm -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] nvm install --lts ``` @@ -51,23 +51,23 @@ npm install -g rescript ```bash = Clone the repository -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] git clone https://github.com/Hyperpolymath/broad-spectrum.git cd broad-spectrum = Install dependencies -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] npm install = Build the project -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] npm run build = Make the CLI executable -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] chmod +x src/main.ts ``` @@ -78,22 +78,22 @@ chmod +x src/main.ts ```bash = Audit a single website -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] deno task audit --url https://example.com = Audit multiple URLs from a file -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] deno task audit --file urls.txt = Specify output format -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] deno task audit --url https://example.com --format json = Save report to file -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] deno task audit --url https://example.com --format html > report.html ``` @@ -145,13 +145,13 @@ deno task audit --url https://example.com --format html > audit-report.html ```bash = Create urls.txt with one URL per line -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] echo "https://example.com" > urls.txt echo "https://example.org" >> urls.txt = Audit all URLs -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] deno task audit --file urls.txt --format markdown > audit-report.md ``` @@ -208,7 +208,7 @@ Documentation-friendly format: ```markdown = Website Audit Report -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] *URL:* https://example.com *Overall Score:* 87.5/100 diff --git a/broad-spectrum/ROADMAP.adoc b/broad-spectrum/ROADMAP.adoc index 50213e61..a5eee775 100644 --- a/broad-spectrum/ROADMAP.adoc +++ b/broad-spectrum/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Broad Spectrum Roadmap == Current Status diff --git a/broad-spectrum/RSR_OUTLINE.adoc b/broad-spectrum/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/broad-spectrum/RSR_OUTLINE.adoc +++ b/broad-spectrum/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/broad-spectrum/contractiles/dust/Dustfile b/broad-spectrum/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/broad-spectrum/contractiles/dust/Dustfile +++ b/broad-spectrum/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/broad-spectrum/contractiles/k9/README.adoc b/broad-spectrum/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/broad-spectrum/contractiles/k9/README.adoc +++ b/broad-spectrum/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/broad-spectrum/contractiles/must/Mustfile b/broad-spectrum/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/broad-spectrum/contractiles/must/Mustfile +++ b/broad-spectrum/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/broad-spectrum/src/FetcherImpl.res b/broad-spectrum/src/FetcherImpl.res index 03801461..70316dff 100644 --- a/broad-spectrum/src/FetcherImpl.res +++ b/broad-spectrum/src/FetcherImpl.res @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0 +// SPDX-License-Identifier: MPL-2.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell /** diff --git a/broad-spectrum/src/LinkChecker.res b/broad-spectrum/src/LinkChecker.res index ff821c1d..e34d6c13 100644 --- a/broad-spectrum/src/LinkChecker.res +++ b/broad-spectrum/src/LinkChecker.res @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0 +// SPDX-License-Identifier: MPL-2.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell /** diff --git a/broad-spectrum/src/SEO.res b/broad-spectrum/src/SEO.res index 803214a2..d8692811 100644 --- a/broad-spectrum/src/SEO.res +++ b/broad-spectrum/src/SEO.res @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0 +// SPDX-License-Identifier: MPL-2.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell /** diff --git a/cicada/.github/workflows/workflow-linter.yml b/cicada/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/cicada/.github/workflows/workflow-linter.yml +++ b/cicada/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/cicada/CHANGELOG.adoc b/cicada/CHANGELOG.adoc index ad3d4337..26de66eb 100644 --- a/cicada/CHANGELOG.adoc +++ b/cicada/CHANGELOG.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Changelog All notable changes to CIcaDA (Palimpsest Crypto Identity) will be documented in this file. diff --git a/cicada/CONTRIBUTING.adoc b/cicada/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/cicada/CONTRIBUTING.adoc +++ b/cicada/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/cicada/MAINTAINERS.adoc b/cicada/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/cicada/MAINTAINERS.adoc +++ b/cicada/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/cicada/PALIMPSEST.adoc b/cicada/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/cicada/PALIMPSEST.adoc +++ b/cicada/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/cicada/README.adoc b/cicada/README.adoc index 8d930b27..b8b0a64c 100644 --- a/cicada/README.adoc +++ b/cicada/README.adoc @@ -1,6 +1,6 @@ = CIcaDA - Crypto Identity -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] diff --git a/cicada/ROADMAP.adoc b/cicada/ROADMAP.adoc index 3d68b9db..6ac3136c 100644 --- a/cicada/ROADMAP.adoc +++ b/cicada/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Cicada Roadmap == Current Status diff --git a/cicada/RSR_OUTLINE.adoc b/cicada/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/cicada/RSR_OUTLINE.adoc +++ b/cicada/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/cicada/TOPOLOGY.md b/cicada/TOPOLOGY.md index eeaee104..2d32a6cc 100644 --- a/cicada/TOPOLOGY.md +++ b/cicada/TOPOLOGY.md @@ -1,4 +1,4 @@ - + # CIcaDA - TOPOLOGY ## System Architecture diff --git a/cicada/contractiles/dust/Dustfile b/cicada/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/cicada/contractiles/dust/Dustfile +++ b/cicada/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/cicada/contractiles/k9/README.adoc b/cicada/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/cicada/contractiles/k9/README.adoc +++ b/cicada/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/cicada/contractiles/must/Mustfile b/cicada/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/cicada/contractiles/must/Mustfile +++ b/cicada/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/cicada/docs/HANDOVER.adoc b/cicada/docs/HANDOVER.adoc index 6796bb2a..d3e7f219 100644 --- a/cicada/docs/HANDOVER.adoc +++ b/cicada/docs/HANDOVER.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = CIcaDA - Crypto Identity Project Handover Document Jonathan D.A. Jewell diff --git a/cicada/docs/INDEX.adoc b/cicada/docs/INDEX.adoc index 673a498e..82d43c24 100644 --- a/cicada/docs/INDEX.adoc +++ b/cicada/docs/INDEX.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = CIcaDA Documentation Index :toc: macro diff --git a/composer/.github/workflows/workflow-linter.yml b/composer/.github/workflows/workflow-linter.yml index 9f224406..8fb98d80 100644 --- a/composer/.github/workflows/workflow-linter.yml +++ b/composer/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/composer/PLAN.md b/composer/PLAN.md index 3bb87547..4582bda3 100644 --- a/composer/PLAN.md +++ b/composer/PLAN.md @@ -1,6 +1,6 @@ # Composer — Orchestration Engine Plan - + ## Status: Planned (Phase 5) diff --git a/contractiles/dust/Dustfile b/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/contractiles/dust/Dustfile +++ b/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/contractiles/k9/README.adoc b/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/contractiles/k9/README.adoc +++ b/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/contractiles/must/Mustfile b/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/contractiles/must/Mustfile +++ b/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/contracts/CONTRIBUTING.adoc b/contracts/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/contracts/CONTRIBUTING.adoc +++ b/contracts/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/contracts/MAINTAINERS.adoc b/contracts/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/contracts/MAINTAINERS.adoc +++ b/contracts/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/contracts/PALIMPSEST.adoc b/contracts/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/contracts/PALIMPSEST.adoc +++ b/contracts/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/contracts/README.adoc b/contracts/README.adoc index 9d1ddb27..1d17398b 100644 --- a/contracts/README.adoc +++ b/contracts/README.adoc @@ -1,6 +1,6 @@ = System Tools Contracts -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] :toc: diff --git a/contracts/WIRING.md b/contracts/WIRING.md index 836bd899..ba3e9a16 100644 --- a/contracts/WIRING.md +++ b/contracts/WIRING.md @@ -1,6 +1,6 @@ # Contract Schema Wiring - + How AmbientOps contract schemas connect producers to consumers. diff --git a/contracts/docs/LANGUAGE-POLICY.adoc b/contracts/docs/LANGUAGE-POLICY.adoc index 5dfa198d..169efb38 100644 --- a/contracts/docs/LANGUAGE-POLICY.adoc +++ b/contracts/docs/LANGUAGE-POLICY.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = AmbientOps Language Policy :toc: :toclevels: 3 diff --git a/contracts/docs/SCM-FILES-GUIDE.adoc b/contracts/docs/SCM-FILES-GUIDE.adoc index 99c04453..09e1984e 100644 --- a/contracts/docs/SCM-FILES-GUIDE.adoc +++ b/contracts/docs/SCM-FILES-GUIDE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = SCM Files Guide (STATE.scm, META.scm, ECOSYSTEM.scm) :toc: :toclevels: 3 @@ -77,7 +77,7 @@ STATE.scm must be pruned regularly to prevent staleness. [source,scheme] ---- -;; SPDX-License-Identifier: MPL-2.0 +;; SPDX-License-Identifier: CC-BY-SA-4.0 ;; STATE.scm - Current project state (define project-state @@ -153,7 +153,7 @@ META.scm captures _why_ decisions were made: [source,scheme] ---- -;; SPDX-License-Identifier: MPL-2.0 +;; SPDX-License-Identifier: CC-BY-SA-4.0 ;; META.scm - Project metadata and architectural decisions (define project-meta @@ -219,7 +219,7 @@ ECOSYSTEM.scm documents how this project relates to others: [source,scheme] ---- -;; SPDX-License-Identifier: MPL-2.0 +;; SPDX-License-Identifier: CC-BY-SA-4.0 ;; ECOSYSTEM.scm - Project ecosystem position (ecosystem diff --git a/czech-file-knife/.clusterfuzzlite/Containerfile b/czech-file-knife/.clusterfuzzlite/Containerfile index 97a51567..bc3c04ea 100644 --- a/czech-file-knife/.clusterfuzzlite/Containerfile +++ b/czech-file-knife/.clusterfuzzlite/Containerfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: AGPL-3.0-or-later +# SPDX-License-Identifier: MPL-2.0 # ClusterFuzzLite build environment for czech-file-knife FROM gcr.io/oss-fuzz-base/base-builder-rust@sha256:73c1d5648db54100639339d411a5d192cbc8bf413ee91e843a07cf6f0e319dc7 diff --git a/czech-file-knife/.clusterfuzzlite/project.yaml b/czech-file-knife/.clusterfuzzlite/project.yaml index e59669cf..77e9a190 100644 --- a/czech-file-knife/.clusterfuzzlite/project.yaml +++ b/czech-file-knife/.clusterfuzzlite/project.yaml @@ -1,3 +1,3 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # ClusterFuzzLite configuration for czech-file-knife language: rust diff --git a/czech-file-knife/.github/FUNDING.yml b/czech-file-knife/.github/FUNDING.yml index e2d29717..688a442c 100644 --- a/czech-file-knife/.github/FUNDING.yml +++ b/czech-file-knife/.github/FUNDING.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Funding platforms for hyperpolymath projects # See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository diff --git a/czech-file-knife/.github/workflows/cflite_batch.yml b/czech-file-knife/.github/workflows/cflite_batch.yml index 2f6842e3..23e06414 100644 --- a/czech-file-knife/.github/workflows/cflite_batch.yml +++ b/czech-file-knife/.github/workflows/cflite_batch.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: ClusterFuzzLite batch fuzzing on: schedule: diff --git a/czech-file-knife/.github/workflows/cflite_pr.yml b/czech-file-knife/.github/workflows/cflite_pr.yml index 8c949840..92a93813 100644 --- a/czech-file-knife/.github/workflows/cflite_pr.yml +++ b/czech-file-knife/.github/workflows/cflite_pr.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: ClusterFuzzLite PR fuzzing on: pull_request: diff --git a/czech-file-knife/.github/workflows/codeql.yml b/czech-file-knife/.github/workflows/codeql.yml index 86ca2596..6e603845 100644 --- a/czech-file-knife/.github/workflows/codeql.yml +++ b/czech-file-knife/.github/workflows/codeql.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: CodeQL Security Analysis on: diff --git a/czech-file-knife/.github/workflows/container.yml b/czech-file-knife/.github/workflows/container.yml index cc4841df..337c9c9c 100644 --- a/czech-file-knife/.github/workflows/container.yml +++ b/czech-file-knife/.github/workflows/container.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Container Build on: diff --git a/czech-file-knife/.github/workflows/ghcr-publish.yml b/czech-file-knife/.github/workflows/ghcr-publish.yml index 29117586..6ce37456 100644 --- a/czech-file-knife/.github/workflows/ghcr-publish.yml +++ b/czech-file-knife/.github/workflows/ghcr-publish.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Publish to GHCR permissions: read-all diff --git a/czech-file-knife/.github/workflows/guix-nix-policy.yml b/czech-file-knife/.github/workflows/guix-nix-policy.yml index 50e328b0..c09baad7 100644 --- a/czech-file-knife/.github/workflows/guix-nix-policy.yml +++ b/czech-file-knife/.github/workflows/guix-nix-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Guix/Nix Package Policy on: [push, pull_request] diff --git a/czech-file-knife/.github/workflows/instant-sync.yml b/czech-file-knife/.github/workflows/instant-sync.yml index 3c784538..228dc438 100644 --- a/czech-file-knife/.github/workflows/instant-sync.yml +++ b/czech-file-knife/.github/workflows/instant-sync.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Instant Forge Sync - Triggers propagation to all forges on push/release name: Instant Sync diff --git a/czech-file-knife/.github/workflows/mirror.yml b/czech-file-knife/.github/workflows/mirror.yml index 5b67c3c6..7af3b2f9 100644 --- a/czech-file-knife/.github/workflows/mirror.yml +++ b/czech-file-knife/.github/workflows/mirror.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell name: Mirror to Git Forges diff --git a/czech-file-knife/.github/workflows/npm-bun-blocker.yml b/czech-file-knife/.github/workflows/npm-bun-blocker.yml index e9dbcc31..158316ef 100644 --- a/czech-file-knife/.github/workflows/npm-bun-blocker.yml +++ b/czech-file-knife/.github/workflows/npm-bun-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: NPM/Bun Blocker on: [push, pull_request] diff --git a/czech-file-knife/.github/workflows/publish.yml b/czech-file-knife/.github/workflows/publish.yml index b313f59f..f264ca54 100644 --- a/czech-file-knife/.github/workflows/publish.yml +++ b/czech-file-knife/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 hyperpolymath # # Publish workspace crates to crates.io on release tags diff --git a/czech-file-knife/.github/workflows/quality.yml b/czech-file-knife/.github/workflows/quality.yml index b837d94b..81e5df38 100644 --- a/czech-file-knife/.github/workflows/quality.yml +++ b/czech-file-knife/.github/workflows/quality.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Code Quality on: [push, pull_request] diff --git a/czech-file-knife/.github/workflows/release.yml b/czech-file-knife/.github/workflows/release.yml index 0149ada4..f7fdb3c1 100644 --- a/czech-file-knife/.github/workflows/release.yml +++ b/czech-file-knife/.github/workflows/release.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 hyperpolymath name: Release diff --git a/czech-file-knife/.github/workflows/rsr-antipattern.yml b/czech-file-knife/.github/workflows/rsr-antipattern.yml index 641deeda..220fe316 100644 --- a/czech-file-knife/.github/workflows/rsr-antipattern.yml +++ b/czech-file-knife/.github/workflows/rsr-antipattern.yml @@ -1,6 +1,6 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # RSR Anti-Pattern CI Check -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm # Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme diff --git a/czech-file-knife/.github/workflows/scorecard-enforcer.yml b/czech-file-knife/.github/workflows/scorecard-enforcer.yml index e1a756eb..f329b096 100644 --- a/czech-file-knife/.github/workflows/scorecard-enforcer.yml +++ b/czech-file-knife/.github/workflows/scorecard-enforcer.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - runs OpenSSF Scorecard and fails on low scores name: OpenSSF Scorecard Enforcer diff --git a/czech-file-knife/.github/workflows/scorecard.yml b/czech-file-knife/.github/workflows/scorecard.yml index 9b5c8304..d50c271a 100644 --- a/czech-file-knife/.github/workflows/scorecard.yml +++ b/czech-file-knife/.github/workflows/scorecard.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: OSSF Scorecard on: push: diff --git a/czech-file-knife/.github/workflows/secret-scanner.yml b/czech-file-knife/.github/workflows/secret-scanner.yml index c0733ecc..b4a74683 100644 --- a/czech-file-knife/.github/workflows/secret-scanner.yml +++ b/czech-file-knife/.github/workflows/secret-scanner.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - scans for hardcoded secrets before they reach main name: Secret Scanner diff --git a/czech-file-knife/.github/workflows/security-policy.yml b/czech-file-knife/.github/workflows/security-policy.yml index 17d1a6ba..6ca34da5 100644 --- a/czech-file-knife/.github/workflows/security-policy.yml +++ b/czech-file-knife/.github/workflows/security-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Security Policy on: [push, pull_request] diff --git a/czech-file-knife/.github/workflows/ts-blocker.yml b/czech-file-knife/.github/workflows/ts-blocker.yml index dc48b3a2..617c2332 100644 --- a/czech-file-knife/.github/workflows/ts-blocker.yml +++ b/czech-file-knife/.github/workflows/ts-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: TypeScript/JavaScript Blocker on: [push, pull_request] diff --git a/czech-file-knife/.github/workflows/wellknown-enforcement.yml b/czech-file-knife/.github/workflows/wellknown-enforcement.yml index ab12c19e..946c3a3f 100644 --- a/czech-file-knife/.github/workflows/wellknown-enforcement.yml +++ b/czech-file-knife/.github/workflows/wellknown-enforcement.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Well-Known Standards (RFC 9116 + RSR) on: push: diff --git a/czech-file-knife/.github/workflows/workflow-linter.yml b/czech-file-knife/.github/workflows/workflow-linter.yml index 750c6cc3..fb8260bf 100644 --- a/czech-file-knife/.github/workflows/workflow-linter.yml +++ b/czech-file-knife/.github/workflows/workflow-linter.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # workflow-linter.yml - Validates GitHub workflows against RSR security standards # This workflow can be copied to other repos for consistent enforcement name: Workflow Security Linter diff --git a/czech-file-knife/CONTRIBUTING.adoc b/czech-file-knife/CONTRIBUTING.adoc index a0f2f540..eb045d61 100644 --- a/czech-file-knife/CONTRIBUTING.adoc +++ b/czech-file-knife/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/czech-file-knife/MAINTAINERS.adoc b/czech-file-knife/MAINTAINERS.adoc index b5154a03..48d97817 100644 --- a/czech-file-knife/MAINTAINERS.adoc +++ b/czech-file-knife/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/czech-file-knife/PALIMPSEST.adoc b/czech-file-knife/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/czech-file-knife/PALIMPSEST.adoc +++ b/czech-file-knife/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/czech-file-knife/RSR_OUTLINE.adoc b/czech-file-knife/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/czech-file-knife/RSR_OUTLINE.adoc +++ b/czech-file-knife/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/czech-file-knife/TESTING-REPORT.scm b/czech-file-knife/TESTING-REPORT.scm index aa6eca8b..13782276 100644 --- a/czech-file-knife/TESTING-REPORT.scm +++ b/czech-file-knife/TESTING-REPORT.scm @@ -1,4 +1,4 @@ -;; SPDX-License-Identifier: MPL-2.0-or-later +;; SPDX-License-Identifier: MPL-2.0 ;; Testing Report for czech-file-knife ;; Generated: 2025-12-29 diff --git a/czech-file-knife/contractiles/dust/Dustfile b/czech-file-knife/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/czech-file-knife/contractiles/dust/Dustfile +++ b/czech-file-knife/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/czech-file-knife/contractiles/k9/README.adoc b/czech-file-knife/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/czech-file-knife/contractiles/k9/README.adoc +++ b/czech-file-knife/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/czech-file-knife/contractiles/must/Mustfile b/czech-file-knife/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/czech-file-knife/contractiles/must/Mustfile +++ b/czech-file-knife/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/czech-file-knife/deny.toml b/czech-file-knife/deny.toml index 420392b7..90f29229 100644 --- a/czech-file-knife/deny.toml +++ b/czech-file-knife/deny.toml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # cargo-deny configuration for czech-file-knife # https://embarkstudios.github.io/cargo-deny/ diff --git a/czech-file-knife/fuzz/Cargo.toml b/czech-file-knife/fuzz/Cargo.toml index 432ba6e2..32d5d63e 100644 --- a/czech-file-knife/fuzz/Cargo.toml +++ b/czech-file-knife/fuzz/Cargo.toml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 [package] name = "czech-file-knife-fuzz" version = "0.0.0" diff --git a/czech-file-knife/guix.scm b/czech-file-knife/guix.scm index 12d3abcd..3fc9d369 100644 --- a/czech-file-knife/guix.scm +++ b/czech-file-knife/guix.scm @@ -1,4 +1,4 @@ -;; SPDX-License-Identifier: MPL-2.0-or-later +;; SPDX-License-Identifier: MPL-2.0 ;; SPDX-FileCopyrightText: 2025 hyperpolymath ;; ;; Guix package definition for czech-file-knife diff --git a/czech-file-knife/license/PMPL-1.0.txt b/czech-file-knife/license/PMPL-1.0.txt index 13d072a6..711e372c 100644 --- a/czech-file-knife/license/PMPL-1.0.txt +++ b/czech-file-knife/license/PMPL-1.0.txt @@ -1,4 +1,4 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 SPDX-FileCopyrightText: 2025 Palimpsest Stewardship Council ================================================================================ diff --git a/displace/README.adoc b/displace/README.adoc index f906b987..852896e2 100644 --- a/displace/README.adoc +++ b/displace/README.adoc @@ -2,7 +2,7 @@ image:https://img.shields.io/badge/Language-Rust-orange.svg[Rust] image:https://img.shields.io/badge/OS-Linux%7CMacOS%7CBSD%7CMinix%7CRISCV%7CUnix-blue.svg[OS Support] -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Verified%20Container-Protocol%20Compliant-green.svg[Verified Container Protocol Compliant] diff --git a/docs/ARCHITECTURE.adoc b/docs/ARCHITECTURE.adoc index c68c35df..a20c2f0a 100644 --- a/docs/ARCHITECTURE.adoc +++ b/docs/ARCHITECTURE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = AmbientOps Architecture :toc: :toclevels: 3 diff --git a/docs/tech-debt-2026-05-26.md b/docs/tech-debt-2026-05-26.md index 2bb9164e..0a8bd77e 100644 --- a/docs/tech-debt-2026-05-26.md +++ b/docs/tech-debt-2026-05-26.md @@ -1,5 +1,5 @@ diff --git a/emergency-button/.github/workflows/workflow-linter.yml b/emergency-button/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/emergency-button/.github/workflows/workflow-linter.yml +++ b/emergency-button/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/emergency-button/MAINTAINERS.adoc b/emergency-button/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/emergency-button/MAINTAINERS.adoc +++ b/emergency-button/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/emergency-button/MIGRATION.adoc b/emergency-button/MIGRATION.adoc index 131e993f..176fa9c7 100644 --- a/emergency-button/MIGRATION.adoc +++ b/emergency-button/MIGRATION.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Emergency Button — zig Deprecated (2026-04-12) :toc: diff --git a/emergency-button/PALIMPSEST.adoc b/emergency-button/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/emergency-button/PALIMPSEST.adoc +++ b/emergency-button/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/emergency-button/README.adoc b/emergency-button/README.adoc index f0355dee..03e6431e 100644 --- a/emergency-button/README.adoc +++ b/emergency-button/README.adoc @@ -1,6 +1,6 @@ = System Emergency Room (A&E) -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] diff --git a/emergency-button/RSR_OUTLINE.adoc b/emergency-button/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/emergency-button/RSR_OUTLINE.adoc +++ b/emergency-button/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/emergency-button/contractiles/dust/Dustfile b/emergency-button/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/emergency-button/contractiles/dust/Dustfile +++ b/emergency-button/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/emergency-button/contractiles/k9/README.adoc b/emergency-button/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/emergency-button/contractiles/k9/README.adoc +++ b/emergency-button/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/emergency-button/contractiles/must/Mustfile b/emergency-button/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/emergency-button/contractiles/must/Mustfile +++ b/emergency-button/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/emergency-button/src/MIGRATION.adoc b/emergency-button/src/MIGRATION.adoc index 00f3e44a..4855e916 100644 --- a/emergency-button/src/MIGRATION.adoc +++ b/emergency-button/src/MIGRATION.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Emergency Button — V→Zig Migration :toc: diff --git a/emergency-button/src/SIDELINED.adoc b/emergency-button/src/SIDELINED.adoc index c2abe1ca..75585b96 100644 --- a/emergency-button/src/SIDELINED.adoc +++ b/emergency-button/src/SIDELINED.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Emergency Room — zig Implementation SIDELINED :toc: diff --git a/emergency-room/MIGRATION.adoc b/emergency-room/MIGRATION.adoc index c0d446b4..7dc02856 100644 --- a/emergency-room/MIGRATION.adoc +++ b/emergency-room/MIGRATION.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Emergency Room — zig Deprecated (2026-04-12); Zig Port Complete (2026-04-17) :toc: diff --git a/emergency-room/src/SIDELINED.adoc b/emergency-room/src/SIDELINED.adoc index c2abe1ca..75585b96 100644 --- a/emergency-room/src/SIDELINED.adoc +++ b/emergency-room/src/SIDELINED.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Emergency Room — zig Implementation SIDELINED :toc: diff --git a/gui/src/tea/ambientops_gui.affine b/gui/src/tea/ambientops_gui.affine index e6eda623..05fdd00b 100644 --- a/gui/src/tea/ambientops_gui.affine +++ b/gui/src/tea/ambientops_gui.affine @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: MPL-2.0 // AmbientOps GUI — AffineScript TEA Interface // Underpinned by Cadre Router (Affine Stack Implementation) // diff --git a/hardware-crash-team/.github/workflows/workflow-linter.yml b/hardware-crash-team/.github/workflows/workflow-linter.yml index 9f224406..8fb98d80 100644 --- a/hardware-crash-team/.github/workflows/workflow-linter.yml +++ b/hardware-crash-team/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/hardware-crash-team/MAINTAINERS.adoc b/hardware-crash-team/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/hardware-crash-team/MAINTAINERS.adoc +++ b/hardware-crash-team/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/hardware-crash-team/README.adoc b/hardware-crash-team/README.adoc index d6195033..c4c3c33e 100644 --- a/hardware-crash-team/README.adoc +++ b/hardware-crash-team/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Hardware Crash Team :author: Jonathan D.A. Jewell :toc: diff --git a/hardware-crash-team/ROADMAP.adoc b/hardware-crash-team/ROADMAP.adoc index d6116cae..7b235dcf 100644 --- a/hardware-crash-team/ROADMAP.adoc +++ b/hardware-crash-team/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Hardware Crash Team Roadmap Part of the AmbientOps ecosystem (hospital model). The crash team diagnoses and remediates hardware-induced system crashes. diff --git a/hardware-crash-team/contractiles/dust/Dustfile b/hardware-crash-team/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/hardware-crash-team/contractiles/dust/Dustfile +++ b/hardware-crash-team/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/hardware-crash-team/contractiles/k9/README.adoc b/hardware-crash-team/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/hardware-crash-team/contractiles/k9/README.adoc +++ b/hardware-crash-team/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/hardware-crash-team/contractiles/must/Mustfile b/hardware-crash-team/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/hardware-crash-team/contractiles/must/Mustfile +++ b/hardware-crash-team/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/hybrid-automation-router/.github/workflows/workflow-linter.yml b/hybrid-automation-router/.github/workflows/workflow-linter.yml index 9f224406..8fb98d80 100644 --- a/hybrid-automation-router/.github/workflows/workflow-linter.yml +++ b/hybrid-automation-router/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/hybrid-automation-router/CHANGELOG.adoc b/hybrid-automation-router/CHANGELOG.adoc index d1095fd7..2a6c64f1 100644 --- a/hybrid-automation-router/CHANGELOG.adoc +++ b/hybrid-automation-router/CHANGELOG.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Changelog All notable changes to HAR (Hybrid Automation Router) will be documented in this file. diff --git a/hybrid-automation-router/CONTRIBUTING.adoc b/hybrid-automation-router/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/hybrid-automation-router/CONTRIBUTING.adoc +++ b/hybrid-automation-router/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/hybrid-automation-router/MAINTAINERS.adoc b/hybrid-automation-router/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/hybrid-automation-router/MAINTAINERS.adoc +++ b/hybrid-automation-router/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/hybrid-automation-router/PALIMPSEST.adoc b/hybrid-automation-router/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/hybrid-automation-router/PALIMPSEST.adoc +++ b/hybrid-automation-router/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/hybrid-automation-router/README.adoc b/hybrid-automation-router/README.adoc index ff0452bb..5ebbb9f3 100644 --- a/hybrid-automation-router/README.adoc +++ b/hybrid-automation-router/README.adoc @@ -1,7 +1,7 @@ = HAR - Hybrid Automation Router -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] -// SPDX-License-Identifier: MPL-2.0 +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell diff --git a/hybrid-automation-router/README.md b/hybrid-automation-router/README.md index 76023b93..d548ddf0 100644 --- a/hybrid-automation-router/README.md +++ b/hybrid-automation-router/README.md @@ -3,7 +3,7 @@ [![Hex.pm](https://img.shields.io/hexpm/v/har.svg)](https://hex.pm/packages/har) [![Hex Docs](https://img.shields.io/badge/hex-docs-blue.svg)](https://hexdocs.pm/har) [![CI](https://github.com/hyperpolymath/hybrid-automation-router/actions/workflows/ci.yml/badge.svg)](https://github.com/hyperpolymath/hybrid-automation-router/actions) -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] **Think BGP for infrastructure automation.** HAR treats configuration management like network packet routing - it parses configs from any IaC tool (Ansible, Salt, Terraform), extracts semantic operations, and routes/transforms them to any target format. diff --git a/hybrid-automation-router/docs/A2ML-EXPLAINED.adoc b/hybrid-automation-router/docs/A2ML-EXPLAINED.adoc index 4a878f1d..df159f5d 100644 --- a/hybrid-automation-router/docs/A2ML-EXPLAINED.adoc +++ b/hybrid-automation-router/docs/A2ML-EXPLAINED.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = A2ML Attestations: What They Are and Where They Help :toc: left diff --git a/hybrid-automation-router/docs/K9-SVC-EXPLAINED.adoc b/hybrid-automation-router/docs/K9-SVC-EXPLAINED.adoc index 616a7587..8e36d656 100644 --- a/hybrid-automation-router/docs/K9-SVC-EXPLAINED.adoc +++ b/hybrid-automation-router/docs/K9-SVC-EXPLAINED.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = K9-SVC: What It Actually Is, Through the Eyes of Someone Deploying It :toc: left diff --git a/immutable-linux-auditor/CODE_OF_CONDUCT.md b/immutable-linux-auditor/CODE_OF_CONDUCT.md index 1f1548ca..caeda1c6 100644 --- a/immutable-linux-auditor/CODE_OF_CONDUCT.md +++ b/immutable-linux-auditor/CODE_OF_CONDUCT.md @@ -1,4 +1,4 @@ - + # Contributor Covenant Code of Conduct ## Our Pledge diff --git a/immutable-linux-auditor/CONTRIBUTING.adoc b/immutable-linux-auditor/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/immutable-linux-auditor/CONTRIBUTING.adoc +++ b/immutable-linux-auditor/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/immutable-linux-auditor/MAINTAINERS.adoc b/immutable-linux-auditor/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/immutable-linux-auditor/MAINTAINERS.adoc +++ b/immutable-linux-auditor/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/immutable-linux-auditor/PALIMPSEST.adoc b/immutable-linux-auditor/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/immutable-linux-auditor/PALIMPSEST.adoc +++ b/immutable-linux-auditor/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/immutable-linux-auditor/README.adoc b/immutable-linux-auditor/README.adoc index 1ef1caac..eed72e8b 100644 --- a/immutable-linux-auditor/README.adoc +++ b/immutable-linux-auditor/README.adoc @@ -1,8 +1,8 @@ -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Immutable Linux Auditor :toc: macro diff --git a/immutable-linux-auditor/ROADMAP.adoc b/immutable-linux-auditor/ROADMAP.adoc index de2bee29..74186dc5 100644 --- a/immutable-linux-auditor/ROADMAP.adoc +++ b/immutable-linux-auditor/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Immutable Linux Auditor — Roadmap :toc: macro :toclevels: 2 diff --git a/monitoring/flare/MAINTAINERS.adoc b/monitoring/flare/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/monitoring/flare/MAINTAINERS.adoc +++ b/monitoring/flare/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/monitoring/observatory/.github/workflows/workflow-linter.yml b/monitoring/observatory/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/monitoring/observatory/.github/workflows/workflow-linter.yml +++ b/monitoring/observatory/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/monitoring/observatory/MAINTAINERS.adoc b/monitoring/observatory/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/monitoring/observatory/MAINTAINERS.adoc +++ b/monitoring/observatory/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/monitoring/observatory/PALIMPSEST.adoc b/monitoring/observatory/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/monitoring/observatory/PALIMPSEST.adoc +++ b/monitoring/observatory/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/monitoring/observatory/README.adoc b/monitoring/observatory/README.adoc index db3be5d4..6698bdcc 100644 --- a/monitoring/observatory/README.adoc +++ b/monitoring/observatory/README.adoc @@ -1,8 +1,8 @@ -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = System Observatory :toc: :toclevels: 3 diff --git a/monitoring/observatory/ROADMAP.adoc b/monitoring/observatory/ROADMAP.adoc index 3eb4c13d..45d6ddc4 100644 --- a/monitoring/observatory/ROADMAP.adoc +++ b/monitoring/observatory/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = System Observatory Roadmap :toc: :toclevels: 3 diff --git a/monitoring/systems-observatory/CONTRIBUTING.adoc b/monitoring/systems-observatory/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/monitoring/systems-observatory/CONTRIBUTING.adoc +++ b/monitoring/systems-observatory/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/monitoring/systems-observatory/README.adoc b/monitoring/systems-observatory/README.adoc index c22b92c4..9e49c551 100644 --- a/monitoring/systems-observatory/README.adoc +++ b/monitoring/systems-observatory/README.adoc @@ -1,6 +1,6 @@ = Juisys - Julia System Optimizer -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] *Privacy-First, GDPR-Compliant Application Auditing & Migration Planning Tool* @@ -13,24 +13,24 @@ Juisys helps you save money and protect privacy by finding FOSS (Free and Open S ```bash = 1. Install -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] git clone cd jusys julia --project=. -e 'using Pkg; Pkg.instantiate()' = 2. Compare an app (e.g., "Should I switch from Photoshop to GIMP?") -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. tools/compare_alternatives.jl Photoshop = 3. Generate visual report -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. tools/generate_html_report.jl = 4. Plan your migration -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. tools/migration_planner.jl ``` @@ -170,12 +170,12 @@ Side-by-side detailed comparison of any app. ```bash = Command-line -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. tools/compare_alternatives.jl "Microsoft Office" = Interactive mode -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. tools/compare_alternatives.jl > photoshop > list # Browse all apps @@ -198,7 +198,7 @@ Create beautiful, professional reports. julia --project=. tools/generate_html_report.jl = Opens in browser: juisys_report_[timestamp].html -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] ``` *Report Includes:* @@ -372,7 +372,7 @@ julia --project=. -e 'using Pkg; Pkg.instantiate()' ```bash = Should output: 62 -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. -e 'using JSON3; apps = JSON3.read(read("data/app_db.json")); println(length(apps))' ``` @@ -387,7 +387,7 @@ julia --project=. -e 'using JSON3; apps = JSON3.read(read("data/app_db.json")); julia --project=. tools/migration_planner.jl = Set cost_savings priority to 9-10 -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] ``` *"I'm concerned about privacy/tracking"* @@ -395,10 +395,10 @@ image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0, julia --project=. tools/migration_planner.jl = Set privacy priority to 10 -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] = Review critical/high privacy apps -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] ``` *"Should I switch from X to Y?"* @@ -412,19 +412,19 @@ julia --project=. tools/compare_alternatives.jl [AppName] ```bash = Generate stakeholder report -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. tools/generate_html_report.jl company_plan.html = Create migration plan -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. tools/migration_planner.jl = Choose by category (e.g., productivity) -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] = Export for tracking -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] ``` *"Validate performance for enterprise use"* @@ -432,7 +432,7 @@ image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0, julia --project=. benchmarks/benchmark_database.jl = Review throughput and scalability -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] ``` === Developers @@ -441,17 +441,17 @@ image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0, ```bash = Study examples -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. examples/example_advanced_analysis.jl = Run tests -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. test/test_database.jl = Benchmark performance -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. benchmarks/benchmark_database.jl ``` @@ -462,22 +462,22 @@ julia --project=. benchmarks/benchmark_database.jl ```bash = Run all tests -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. test/runtests.jl = Database validation -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. test/test_database.jl = Privacy compliance tests (critical!) -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. -e 'include("test/test_privacy.jl")' = With coverage -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. --code-coverage=user test/runtests.jl ``` @@ -492,23 +492,23 @@ Written in D for performance, maintaining same privacy guarantees. ```bash = Install D compiler -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] brew install ldc # macOS sudo apt install ldc # Linux = Build diagnostics library -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] cd src-diagnostics/d make release = Enable in Juisys (option 10 from main menu) -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] julia --project=. -e 'include("src/cli.jl"); CLI.run()' = Select: 10. Tech Diagnostics -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] ``` *Features:* diff --git a/nano-aider/.github/FUNDING.yml b/nano-aider/.github/FUNDING.yml index e2d29717..688a442c 100644 --- a/nano-aider/.github/FUNDING.yml +++ b/nano-aider/.github/FUNDING.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Funding platforms for hyperpolymath projects # See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository diff --git a/nano-aider/.github/dependabot.yml b/nano-aider/.github/dependabot.yml index 3c980f1d..396ddc73 100644 --- a/nano-aider/.github/dependabot.yml +++ b/nano-aider/.github/dependabot.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dependabot configuration for nano-aider (Ada project) # Note: Dependabot doesn't have native Ada/Alire support # This file configures GitHub Actions dependency updates only diff --git a/nano-aider/.github/workflows/ci.yml b/nano-aider/.github/workflows/ci.yml index 0082227c..290aeb3d 100644 --- a/nano-aider/.github/workflows/ci.yml +++ b/nano-aider/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: CI on: diff --git a/nano-aider/.github/workflows/codeql.yml b/nano-aider/.github/workflows/codeql.yml index 9f53ead4..91b7e419 100644 --- a/nano-aider/.github/workflows/codeql.yml +++ b/nano-aider/.github/workflows/codeql.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: CodeQL Security Analysis on: diff --git a/nano-aider/.github/workflows/guix-nix-policy.yml b/nano-aider/.github/workflows/guix-nix-policy.yml index bb72b231..c9da1349 100644 --- a/nano-aider/.github/workflows/guix-nix-policy.yml +++ b/nano-aider/.github/workflows/guix-nix-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Guix/Nix Package Policy on: [push, pull_request] diff --git a/nano-aider/.github/workflows/instant-sync.yml b/nano-aider/.github/workflows/instant-sync.yml index 9f0785b9..00f9d6b7 100644 --- a/nano-aider/.github/workflows/instant-sync.yml +++ b/nano-aider/.github/workflows/instant-sync.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Instant Forge Sync - Triggers propagation to all forges on push/release name: Instant Sync diff --git a/nano-aider/.github/workflows/jekyll-gh-pages.yml b/nano-aider/.github/workflows/jekyll-gh-pages.yml index 4ba6afa2..58616dca 100644 --- a/nano-aider/.github/workflows/jekyll-gh-pages.yml +++ b/nano-aider/.github/workflows/jekyll-gh-pages.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy Jekyll with GitHub Pages dependencies preinstalled diff --git a/nano-aider/.github/workflows/language-policy.yml b/nano-aider/.github/workflows/language-policy.yml index d1d87a86..eea681eb 100644 --- a/nano-aider/.github/workflows/language-policy.yml +++ b/nano-aider/.github/workflows/language-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Language Policy Enforcement on: [push, pull_request] diff --git a/nano-aider/.github/workflows/lock-scope-gates.yml b/nano-aider/.github/workflows/lock-scope-gates.yml index 1487b972..103b1cb1 100644 --- a/nano-aider/.github/workflows/lock-scope-gates.yml +++ b/nano-aider/.github/workflows/lock-scope-gates.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 hyperpolymath # # Lock Scope Safety Gates diff --git a/nano-aider/.github/workflows/mirror-to-gitlab.yml b/nano-aider/.github/workflows/mirror-to-gitlab.yml index 4a3329bc..860a3aca 100644 --- a/nano-aider/.github/workflows/mirror-to-gitlab.yml +++ b/nano-aider/.github/workflows/mirror-to-gitlab.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Mirror to GitLab on: diff --git a/nano-aider/.github/workflows/mirror-wiki-to-gitlab.yml b/nano-aider/.github/workflows/mirror-wiki-to-gitlab.yml index ab86c8c8..eb70e27b 100644 --- a/nano-aider/.github/workflows/mirror-wiki-to-gitlab.yml +++ b/nano-aider/.github/workflows/mirror-wiki-to-gitlab.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Mirror Wiki to GitLab on: diff --git a/nano-aider/.github/workflows/mirror.yml b/nano-aider/.github/workflows/mirror.yml index 1b3d9b64..90011ad3 100644 --- a/nano-aider/.github/workflows/mirror.yml +++ b/nano-aider/.github/workflows/mirror.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell name: Mirror to Git Forges diff --git a/nano-aider/.github/workflows/npm-bun-blocker.yml b/nano-aider/.github/workflows/npm-bun-blocker.yml index c29b3fc7..33c4d70a 100644 --- a/nano-aider/.github/workflows/npm-bun-blocker.yml +++ b/nano-aider/.github/workflows/npm-bun-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: NPM/Bun Blocker on: [push, pull_request] diff --git a/nano-aider/.github/workflows/quality.yml b/nano-aider/.github/workflows/quality.yml index 46992969..6c89d430 100644 --- a/nano-aider/.github/workflows/quality.yml +++ b/nano-aider/.github/workflows/quality.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Code Quality on: [push, pull_request] diff --git a/nano-aider/.github/workflows/rsr-antipattern.yml b/nano-aider/.github/workflows/rsr-antipattern.yml index 04d8b7db..adf7ea64 100644 --- a/nano-aider/.github/workflows/rsr-antipattern.yml +++ b/nano-aider/.github/workflows/rsr-antipattern.yml @@ -1,6 +1,6 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # RSR Anti-Pattern CI Check -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm # Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme diff --git a/nano-aider/.github/workflows/scorecard.yml b/nano-aider/.github/workflows/scorecard.yml index 8400e91b..476ed3f0 100644 --- a/nano-aider/.github/workflows/scorecard.yml +++ b/nano-aider/.github/workflows/scorecard.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: OSSF Scorecard on: push: diff --git a/nano-aider/.github/workflows/secret-scanner.yml b/nano-aider/.github/workflows/secret-scanner.yml index d7ffaa9c..b2dcc860 100644 --- a/nano-aider/.github/workflows/secret-scanner.yml +++ b/nano-aider/.github/workflows/secret-scanner.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - scans for hardcoded secrets before they reach main name: Secret Scanner diff --git a/nano-aider/.github/workflows/security-policy.yml b/nano-aider/.github/workflows/security-policy.yml index a3980e00..20061618 100644 --- a/nano-aider/.github/workflows/security-policy.yml +++ b/nano-aider/.github/workflows/security-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Security Policy on: [push, pull_request] diff --git a/nano-aider/.github/workflows/ts-blocker.yml b/nano-aider/.github/workflows/ts-blocker.yml index 1f4780f4..b5914ef6 100644 --- a/nano-aider/.github/workflows/ts-blocker.yml +++ b/nano-aider/.github/workflows/ts-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: TypeScript/JavaScript Blocker on: [push, pull_request] diff --git a/nano-aider/.github/workflows/wellknown-enforcement.yml b/nano-aider/.github/workflows/wellknown-enforcement.yml index 65255538..70b893e5 100644 --- a/nano-aider/.github/workflows/wellknown-enforcement.yml +++ b/nano-aider/.github/workflows/wellknown-enforcement.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Well-Known Standards (RFC 9116 + RSR) on: push: diff --git a/nano-aider/.github/workflows/workflow-linter.yml b/nano-aider/.github/workflows/workflow-linter.yml index ec18e086..ed15d7c5 100644 --- a/nano-aider/.github/workflows/workflow-linter.yml +++ b/nano-aider/.github/workflows/workflow-linter.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # workflow-linter.yml - Validates GitHub workflows against RSR security standards # This workflow can be copied to other repos for consistent enforcement name: Workflow Security Linter @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/nano-aider/CHANGELOG.adoc b/nano-aider/CHANGELOG.adoc index 49e9490e..e16f96d6 100644 --- a/nano-aider/CHANGELOG.adoc +++ b/nano-aider/CHANGELOG.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Changelog == [Unreleased] diff --git a/nano-aider/CONTRIBUTING.adoc b/nano-aider/CONTRIBUTING.adoc index a0f2f540..eb045d61 100644 --- a/nano-aider/CONTRIBUTING.adoc +++ b/nano-aider/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/nano-aider/LICENSES/PMPL-1.0.txt b/nano-aider/LICENSES/PMPL-1.0.txt index 3b102757..ec540b34 100644 --- a/nano-aider/LICENSES/PMPL-1.0.txt +++ b/nano-aider/LICENSES/PMPL-1.0.txt @@ -1,4 +1,4 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 SPDX-FileCopyrightText: 2024-2025 Palimpsest Stewardship Council ================================================================================ diff --git a/nano-aider/LOCK_SCOPE.md b/nano-aider/LOCK_SCOPE.md index 5bf17a89..8b5f9cf9 100644 --- a/nano-aider/LOCK_SCOPE.md +++ b/nano-aider/LOCK_SCOPE.md @@ -1,6 +1,6 @@ # LOCK_SCOPE.md - Immutable Constraints - + > **Lock Scope**: Defines what nano-aider will **NEVER** do. These constraints diff --git a/nano-aider/MAINTAINERS.adoc b/nano-aider/MAINTAINERS.adoc index b5154a03..48d97817 100644 --- a/nano-aider/MAINTAINERS.adoc +++ b/nano-aider/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/nano-aider/carectl/README.md b/nano-aider/carectl/README.md index 008929d5..f3d9b8cb 100644 --- a/nano-aider/carectl/README.md +++ b/nano-aider/carectl/README.md @@ -1,6 +1,6 @@ # CarecTL Profiles - + Audit-grade compliance profiles for nano-aider workflows. diff --git a/nano-aider/carectl/profiles/discovery-assist.yaml b/nano-aider/carectl/profiles/discovery-assist.yaml index 09e0feb5..34936f36 100644 --- a/nano-aider/carectl/profiles/discovery-assist.yaml +++ b/nano-aider/carectl/profiles/discovery-assist.yaml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 hyperpolymath # # CarecTL Profile: discovery-assist diff --git a/nano-aider/license/PMPL-1.0.txt b/nano-aider/license/PMPL-1.0.txt index 13d072a6..711e372c 100644 --- a/nano-aider/license/PMPL-1.0.txt +++ b/nano-aider/license/PMPL-1.0.txt @@ -1,4 +1,4 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 SPDX-FileCopyrightText: 2025 Palimpsest Stewardship Council ================================================================================ diff --git a/nano-aider/nano_aider.gpr b/nano-aider/nano_aider.gpr index ec1ec5db..bf9bc752 100644 --- a/nano-aider/nano_aider.gpr +++ b/nano-aider/nano_aider.gpr @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider GNAT Project File -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- with "ncursesada"; diff --git a/nano-aider/src/nano_aider-config.adb b/nano-aider/src/nano_aider-config.adb index 27ccdf4d..5025c924 100644 --- a/nano-aider/src/nano_aider-config.adb +++ b/nano-aider/src/nano_aider-config.adb @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Configuration File Management (Body) -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- with Ada.Text_IO; diff --git a/nano-aider/src/nano_aider-config.ads b/nano-aider/src/nano_aider-config.ads index 85caf1ef..11109100 100644 --- a/nano-aider/src/nano_aider-config.ads +++ b/nano-aider/src/nano_aider-config.ads @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Configuration File Management -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- package Nano_Aider.Config is diff --git a/nano-aider/src/nano_aider-options.adb b/nano-aider/src/nano_aider-options.adb index f2768583..93aa028b 100644 --- a/nano-aider/src/nano_aider-options.adb +++ b/nano-aider/src/nano_aider-options.adb @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Options Discovery and Management (Body) -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- with Ada.Text_IO; diff --git a/nano-aider/src/nano_aider-options.ads b/nano-aider/src/nano_aider-options.ads index a118f453..f4928b2e 100644 --- a/nano-aider/src/nano_aider-options.ads +++ b/nano-aider/src/nano_aider-options.ads @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Options Discovery and Management -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- package Nano_Aider.Options is diff --git a/nano-aider/src/nano_aider-profiles.adb b/nano-aider/src/nano_aider-profiles.adb index e41af275..aae64f58 100644 --- a/nano-aider/src/nano_aider-profiles.adb +++ b/nano-aider/src/nano_aider-profiles.adb @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Configuration Profiles (Body) -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- package body Nano_Aider.Profiles is diff --git a/nano-aider/src/nano_aider-profiles.ads b/nano-aider/src/nano_aider-profiles.ads index 29a1a253..4375a17a 100644 --- a/nano-aider/src/nano_aider-profiles.ads +++ b/nano-aider/src/nano_aider-profiles.ads @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Configuration Profiles -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- package Nano_Aider.Profiles is diff --git a/nano-aider/src/nano_aider-tui.adb b/nano-aider/src/nano_aider-tui.adb index 5572c329..e02a7e7f 100644 --- a/nano-aider/src/nano_aider-tui.adb +++ b/nano-aider/src/nano_aider-tui.adb @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - TUI Components (Body) -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- with Ada.Strings.Fixed; diff --git a/nano-aider/src/nano_aider-tui.ads b/nano-aider/src/nano_aider-tui.ads index a93e49f4..725d2cac 100644 --- a/nano-aider/src/nano_aider-tui.ads +++ b/nano-aider/src/nano_aider-tui.ads @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - TUI Components -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- with Terminal_Interface.Curses; diff --git a/nano-aider/src/nano_aider.adb b/nano-aider/src/nano_aider.adb index d225835f..78235443 100644 --- a/nano-aider/src/nano_aider.adb +++ b/nano-aider/src/nano_aider.adb @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Ada TUI for nano/micro Editor Configuration -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- with Ada.Text_IO; diff --git a/nano-aider/src/nano_aider.ads b/nano-aider/src/nano_aider.ads index 83669203..f5cb2731 100644 --- a/nano-aider/src/nano_aider.ads +++ b/nano-aider/src/nano_aider.ads @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Ada TUI for nano/micro Editor Configuration -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- -- -- nano-aider is a sophisticated Terminal User Interface (TUI) application diff --git a/nano-aider/tests/test_options.adb b/nano-aider/tests/test_options.adb index 0386f4dd..867a3ee3 100644 --- a/nano-aider/tests/test_options.adb +++ b/nano-aider/tests/test_options.adb @@ -1,7 +1,7 @@ ------------------------------------------------------------------------------- -- nano-aider - Options Test Suite -- Copyright (C) 2024-2025 Jonathan D.A. Jewell --- SPDX-License-Identifier: MIT OR MPL-2.0 +-- SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 ------------------------------------------------------------------------------- with Ada.Text_IO; diff --git a/nerdsafe-restart/.github/workflows/casket-pages.yml b/nerdsafe-restart/.github/workflows/casket-pages.yml index ed080401..f6d49797 100644 --- a/nerdsafe-restart/.github/workflows/casket-pages.yml +++ b/nerdsafe-restart/.github/workflows/casket-pages.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: GitHub Pages on: diff --git a/nerdsafe-restart/EMULATION-SCOPE.adoc b/nerdsafe-restart/EMULATION-SCOPE.adoc index e588353e..73b42182 100644 --- a/nerdsafe-restart/EMULATION-SCOPE.adoc +++ b/nerdsafe-restart/EMULATION-SCOPE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Emulation Scope: What nerdsafe-restart Validates :toc: macro diff --git a/nerdsafe-restart/MAINTAINERS.adoc b/nerdsafe-restart/MAINTAINERS.adoc index b5154a03..48d97817 100644 --- a/nerdsafe-restart/MAINTAINERS.adoc +++ b/nerdsafe-restart/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/nerdsafe-restart/README.adoc b/nerdsafe-restart/README.adoc index 09737339..78614a8f 100644 --- a/nerdsafe-restart/README.adoc +++ b/nerdsafe-restart/README.adoc @@ -1,5 +1,5 @@ image:https://img.shields.io/badge/License-MPL_2.0-blue.svg[MPL-2.0-or-later,link="https://opensource.org/licenses/MPL-2.0"] -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = nerdsafe-restart: Pre-Reboot Validation for Paranoid Sysadmins diff --git a/nerdsafe-restart/ROADMAP.adoc b/nerdsafe-restart/ROADMAP.adoc index 1ed58afa..dc1f67a8 100644 --- a/nerdsafe-restart/ROADMAP.adoc +++ b/nerdsafe-restart/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = nerdsafe-restart Roadmap :toc: macro :toclevels: 3 diff --git a/nerdsafe-restart/guix-channels.scm b/nerdsafe-restart/guix-channels.scm index 123781cc..5950be45 100644 --- a/nerdsafe-restart/guix-channels.scm +++ b/nerdsafe-restart/guix-channels.scm @@ -1,4 +1,4 @@ -;; SPDX-License-Identifier: MPL-2.0-or-later +;; SPDX-License-Identifier: MPL-2.0 ;; guix-channels.scm - Guix channels for nerdsafe-restart environment ;; ;; This defines the Guix channels needed to reproduce the validation diff --git a/nerdsafe-restart/guix-manifest.scm b/nerdsafe-restart/guix-manifest.scm index 2abb9c2e..5941907d 100644 --- a/nerdsafe-restart/guix-manifest.scm +++ b/nerdsafe-restart/guix-manifest.scm @@ -1,4 +1,4 @@ -;; SPDX-License-Identifier: MPL-2.0-or-later +;; SPDX-License-Identifier: MPL-2.0 ;; guix-manifest.scm - Reproducible shell validation environment ;; ;; This manifest captures the environment needed for nerdsafe-restart diff --git a/nerdsafe-restart/license/PMPL-1.0.txt b/nerdsafe-restart/license/PMPL-1.0.txt index 13d072a6..711e372c 100644 --- a/nerdsafe-restart/license/PMPL-1.0.txt +++ b/nerdsafe-restart/license/PMPL-1.0.txt @@ -1,4 +1,4 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 SPDX-FileCopyrightText: 2025 Palimpsest Stewardship Council ================================================================================ diff --git a/network-dashboard/PALIMPSEST.adoc b/network-dashboard/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/network-dashboard/PALIMPSEST.adoc +++ b/network-dashboard/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/network-dashboard/README.adoc b/network-dashboard/README.adoc index 8038474b..bdd870a8 100644 --- a/network-dashboard/README.adoc +++ b/network-dashboard/README.adoc @@ -1,8 +1,8 @@ -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Hyperpolymath = network-dashboard diff --git a/network-dashboard/ROADMAP.adoc b/network-dashboard/ROADMAP.adoc index 16a51394..b31b061f 100644 --- a/network-dashboard/ROADMAP.adoc +++ b/network-dashboard/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Network Dashboard Roadmap == Current Status diff --git a/network-orchestrator/README.adoc b/network-orchestrator/README.adoc index 541f9afd..5a96f7a6 100644 --- a/network-orchestrator/README.adoc +++ b/network-orchestrator/README.adoc @@ -4,7 +4,7 @@ :icons: font :source-highlighter: rouge -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Version-0.1.0-yellow.svg[Version] image:https://img.shields.io/badge/Status-Planning-orange.svg[Status] diff --git a/nick-shells/.github/workflows/workflow-linter.yml b/nick-shells/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/nick-shells/.github/workflows/workflow-linter.yml +++ b/nick-shells/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/nick-shells/CITATION.cff b/nick-shells/CITATION.cff index a58d0b41..2bcdbe0d 100644 --- a/nick-shells/CITATION.cff +++ b/nick-shells/CITATION.cff @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell cff-version: 1.2.0 diff --git a/nick-shells/CONTRIBUTING.adoc b/nick-shells/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/nick-shells/CONTRIBUTING.adoc +++ b/nick-shells/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/nick-shells/Justfile b/nick-shells/Justfile index 51d881ec..4f1eed5b 100644 --- a/nick-shells/Justfile +++ b/nick-shells/Justfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # nick-shells - Development Tasks # Integrates with must (hyperpolymath/mustfile) via Nickel diff --git a/nick-shells/MAINTAINERS.adoc b/nick-shells/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/nick-shells/MAINTAINERS.adoc +++ b/nick-shells/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/nick-shells/README.adoc b/nick-shells/README.adoc index b8e31037..a535fe2c 100644 --- a/nick-shells/README.adoc +++ b/nick-shells/README.adoc @@ -1,9 +1,9 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell = nick-shells -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] :toc: macro :toclevels: 3 :icons: font diff --git a/nick-shells/ROADMAP.adoc b/nick-shells/ROADMAP.adoc index 4b053980..866c1156 100644 --- a/nick-shells/ROADMAP.adoc +++ b/nick-shells/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell = nick-shells Roadmap diff --git a/nick-shells/docs/CITATIONS.adoc b/nick-shells/docs/CITATIONS.adoc index 1b44e2ee..f21c14ca 100644 --- a/nick-shells/docs/CITATIONS.adoc +++ b/nick-shells/docs/CITATIONS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell = nick-shells - Citation Guide diff --git a/nick-shells/must.ncl b/nick-shells/must.ncl index 45e5131b..23ad407d 100644 --- a/nick-shells/must.ncl +++ b/nick-shells/must.ncl @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Must Configuration for nick-shells diff --git a/nick-shells/nickel.version b/nick-shells/nickel.version index 36dd85d8..5fb9f4d3 100644 --- a/nick-shells/nickel.version +++ b/nick-shells/nickel.version @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Nickel Version Expectations diff --git a/nick-shells/shell/README.adoc b/nick-shells/shell/README.adoc index bdfe69a7..a26b3783 100644 --- a/nick-shells/shell/README.adoc +++ b/nick-shells/shell/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell = Known-Good Baseline Shell Configuration diff --git a/nick-shells/shell/apply.sh b/nick-shells/shell/apply.sh index f139f646..c53654de 100755 --- a/nick-shells/shell/apply.sh +++ b/nick-shells/shell/apply.sh @@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Apply baseline shell configuration diff --git a/nick-shells/shell/baseline.sh b/nick-shells/shell/baseline.sh index 5f4320e0..40f29fbb 100644 --- a/nick-shells/shell/baseline.sh +++ b/nick-shells/shell/baseline.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Known-Good Baseline Shell Configuration diff --git a/nick-shells/shell/config.ncl b/nick-shells/shell/config.ncl index 795d7368..1efab079 100644 --- a/nick-shells/shell/config.ncl +++ b/nick-shells/shell/config.ncl @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Shell Configuration Schema (Nickel) diff --git a/nick-shells/shell/examples/developer.sh b/nick-shells/shell/examples/developer.sh index 1957d8a3..72b497ec 100644 --- a/nick-shells/shell/examples/developer.sh +++ b/nick-shells/shell/examples/developer.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Developer Shell Configuration Example diff --git a/nick-shells/shell/examples/interactive.sh b/nick-shells/shell/examples/interactive.sh index 4a6e477c..47d9ec9a 100644 --- a/nick-shells/shell/examples/interactive.sh +++ b/nick-shells/shell/examples/interactive.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Interactive Shell Configuration Example diff --git a/nick-shells/shell/examples/minimal.sh b/nick-shells/shell/examples/minimal.sh index dfa7d178..3fb3f02b 100644 --- a/nick-shells/shell/examples/minimal.sh +++ b/nick-shells/shell/examples/minimal.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Minimal Shell Configuration Example diff --git a/nick-shells/shell/modules/aliases.sh b/nick-shells/shell/modules/aliases.sh index 255f8d13..05cce606 100644 --- a/nick-shells/shell/modules/aliases.sh +++ b/nick-shells/shell/modules/aliases.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Aliases Module diff --git a/nick-shells/shell/modules/behavior.sh b/nick-shells/shell/modules/behavior.sh index 1d7dcf68..4e472eb6 100644 --- a/nick-shells/shell/modules/behavior.sh +++ b/nick-shells/shell/modules/behavior.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Behavior Module diff --git a/nick-shells/shell/modules/dev.sh b/nick-shells/shell/modules/dev.sh index 4c6d706e..1a5a95d7 100644 --- a/nick-shells/shell/modules/dev.sh +++ b/nick-shells/shell/modules/dev.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Development Module diff --git a/nick-shells/shell/modules/editor.sh b/nick-shells/shell/modules/editor.sh index 633c874c..70c91663 100644 --- a/nick-shells/shell/modules/editor.sh +++ b/nick-shells/shell/modules/editor.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Editor Module diff --git a/nick-shells/shell/modules/history.sh b/nick-shells/shell/modules/history.sh index 755f6c7e..dd8a1f57 100644 --- a/nick-shells/shell/modules/history.sh +++ b/nick-shells/shell/modules/history.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # History Module diff --git a/nick-shells/shell/modules/locale.sh b/nick-shells/shell/modules/locale.sh index bc4198ea..2d71dbe5 100644 --- a/nick-shells/shell/modules/locale.sh +++ b/nick-shells/shell/modules/locale.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Locale Module diff --git a/nick-shells/shell/modules/path.sh b/nick-shells/shell/modules/path.sh index 60dd1020..86491c4b 100644 --- a/nick-shells/shell/modules/path.sh +++ b/nick-shells/shell/modules/path.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # PATH Module diff --git a/nick-shells/shell/modules/prompt.sh b/nick-shells/shell/modules/prompt.sh index e06b776f..3f496f08 100644 --- a/nick-shells/shell/modules/prompt.sh +++ b/nick-shells/shell/modules/prompt.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Prompt Module diff --git a/nick-shells/shell/modules/security.sh b/nick-shells/shell/modules/security.sh index be648a58..77dddb6c 100644 --- a/nick-shells/shell/modules/security.sh +++ b/nick-shells/shell/modules/security.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # Security Module diff --git a/nick-shells/shell/modules/xdg.sh b/nick-shells/shell/modules/xdg.sh index 638a4c14..2b115d44 100644 --- a/nick-shells/shell/modules/xdg.sh +++ b/nick-shells/shell/modules/xdg.sh @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MIT OR MPL-2.0 +# SPDX-License-Identifier: MPL-2.0 OR MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell # # XDG Module diff --git a/observatory/.github/workflows/workflow-linter.yml b/observatory/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/observatory/.github/workflows/workflow-linter.yml +++ b/observatory/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/observatory/PALIMPSEST.adoc b/observatory/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/observatory/PALIMPSEST.adoc +++ b/observatory/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/observatory/scripts/README.adoc b/observatory/scripts/README.adoc index 72c2c237..b4b609d0 100644 --- a/observatory/scripts/README.adoc +++ b/observatory/scripts/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Observatory Scripts :toc: diff --git a/panll/panels-needed.md b/panll/panels-needed.md index 2404383e..410b4fc4 100644 --- a/panll/panels-needed.md +++ b/panll/panels-needed.md @@ -1,4 +1,4 @@ - + diff --git a/panoptes/.clusterfuzzlite/Containerfile b/panoptes/.clusterfuzzlite/Containerfile index 8b713441..3f672e43 100644 --- a/panoptes/.clusterfuzzlite/Containerfile +++ b/panoptes/.clusterfuzzlite/Containerfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PMPL-1.0 +# SPDX-License-Identifier: MPL-2.0 FROM gcr.io/oss-fuzz-base/base-builder-rust@sha256:73c1d5648db54100639339d411a5d192cbc8bf413ee91e843a07cf6f0e319dc7 COPY . $SRC/panoptes diff --git a/panoptes/.clusterfuzzlite/build.sh b/panoptes/.clusterfuzzlite/build.sh index 488710d1..36cac122 100755 --- a/panoptes/.clusterfuzzlite/build.sh +++ b/panoptes/.clusterfuzzlite/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu -# SPDX-License-Identifier: PMPL-1.0 +# SPDX-License-Identifier: MPL-2.0 cd "$SRC"/panoptes cargo +nightly fuzz build for target in $(cargo +nightly fuzz list); do diff --git a/panoptes/.github/workflows/workflow-linter.yml b/panoptes/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/panoptes/.github/workflows/workflow-linter.yml +++ b/panoptes/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/panoptes/CHANGELOG.adoc b/panoptes/CHANGELOG.adoc index 1eb49686..267fda64 100644 --- a/panoptes/CHANGELOG.adoc +++ b/panoptes/CHANGELOG.adoc @@ -1,4 +1,4 @@ - + = Changelog diff --git a/panoptes/CHANGELOG.md b/panoptes/CHANGELOG.md index 31da9564..a13bf304 100644 --- a/panoptes/CHANGELOG.md +++ b/panoptes/CHANGELOG.md @@ -1,4 +1,4 @@ - + # Changelog diff --git a/panoptes/CLAUDE.adoc b/panoptes/CLAUDE.adoc index f68fbb90..3d52b0db 100644 --- a/panoptes/CLAUDE.adoc +++ b/panoptes/CLAUDE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D. A. Jewell = CLAUDE.adoc - AI Assistant Integration Guide @@ -110,7 +110,7 @@ Output: Renamed files based on AI-generated descriptions [source,rust] ---- // SPDX header required on all files -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Author // Use thiserror for custom errors diff --git a/panoptes/CODE_OF_CONDUCT.adoc b/panoptes/CODE_OF_CONDUCT.adoc index 697c1791..f9676792 100644 --- a/panoptes/CODE_OF_CONDUCT.adoc +++ b/panoptes/CODE_OF_CONDUCT.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D. A. Jewell = Contributor Covenant Code of Conduct diff --git a/panoptes/CODE_OF_CONDUCT.md b/panoptes/CODE_OF_CONDUCT.md index 1f1548ca..caeda1c6 100644 --- a/panoptes/CODE_OF_CONDUCT.md +++ b/panoptes/CODE_OF_CONDUCT.md @@ -1,4 +1,4 @@ - + # Contributor Covenant Code of Conduct ## Our Pledge diff --git a/panoptes/CONTRIBUTING.adoc b/panoptes/CONTRIBUTING.adoc index 690fcb12..cd761f30 100644 --- a/panoptes/CONTRIBUTING.adoc +++ b/panoptes/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D. A. Jewell = Contributing to Panoptes @@ -90,7 +90,7 @@ Open to all contributors: [source,rust] ---- -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Your Name // All Rust files must have SPDX headers diff --git a/panoptes/GOVERNANCE.adoc b/panoptes/GOVERNANCE.adoc index 73e9aaef..781678a4 100644 --- a/panoptes/GOVERNANCE.adoc +++ b/panoptes/GOVERNANCE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D. A. Jewell = Panoptes Governance diff --git a/panoptes/MAINTAINERS.adoc b/panoptes/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/panoptes/MAINTAINERS.adoc +++ b/panoptes/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/panoptes/MAINTAINERS.md b/panoptes/MAINTAINERS.md index d13ccbfd..45ec8c65 100644 --- a/panoptes/MAINTAINERS.md +++ b/panoptes/MAINTAINERS.md @@ -1,4 +1,4 @@ - + # Maintainers diff --git a/panoptes/README.adoc b/panoptes/README.adoc index 634ce26e..acd12e67 100644 --- a/panoptes/README.adoc +++ b/panoptes/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D. A. Jewell = Panoptes: Local AI File Scanner @@ -11,7 +11,7 @@ v1.0.0, 2025-11-27 :experimental: :sectanchors: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/RSR-Gold-gold.svg[RSR Gold Compliant] image:https://img.shields.io/badge/rust-1.75+-orange.svg[Rust 1.75+] diff --git a/panoptes/REVERSIBILITY.md b/panoptes/REVERSIBILITY.md index 56c8936e..d4d461a2 100644 --- a/panoptes/REVERSIBILITY.md +++ b/panoptes/REVERSIBILITY.md @@ -1,4 +1,4 @@ - + # Reversibility diff --git a/panoptes/SECURITY.md b/panoptes/SECURITY.md index 795ce955..fe80d632 100644 --- a/panoptes/SECURITY.md +++ b/panoptes/SECURITY.md @@ -1,4 +1,4 @@ - + # Security Policy diff --git a/panoptes/TESTING-REPORT.adoc b/panoptes/TESTING-REPORT.adoc index e3f7bcd3..0f12bdcf 100644 --- a/panoptes/TESTING-REPORT.adoc +++ b/panoptes/TESTING-REPORT.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 Jonathan D. A. Jewell = Panoptes Testing Report :author: Claude Code Autonomous Testing diff --git a/panoptes/fuzz/fuzz_targets/fuzz_input.rs b/panoptes/fuzz/fuzz_targets/fuzz_input.rs index f824c82a..aefae70e 100644 --- a/panoptes/fuzz/fuzz_targets/fuzz_input.rs +++ b/panoptes/fuzz/fuzz_targets/fuzz_input.rs @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0 +// SPDX-License-Identifier: MPL-2.0 //! Generic fuzz target for arbitrary input processing #![no_main] diff --git a/personal-sysadmin/.clusterfuzzlite/Containerfile b/personal-sysadmin/.clusterfuzzlite/Containerfile index 1cc52ce1..946a1e7a 100644 --- a/personal-sysadmin/.clusterfuzzlite/Containerfile +++ b/personal-sysadmin/.clusterfuzzlite/Containerfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PMPL-1.0 +# SPDX-License-Identifier: MPL-2.0 FROM gcr.io/oss-fuzz-base/base-builder-rust@sha256:73c1d5648db54100639339d411a5d192cbc8bf413ee91e843a07cf6f0e319dc7 COPY . $SRC/personal-sysadmin diff --git a/personal-sysadmin/.clusterfuzzlite/build.sh b/personal-sysadmin/.clusterfuzzlite/build.sh index 63e0aa07..ec51fd30 100755 --- a/personal-sysadmin/.clusterfuzzlite/build.sh +++ b/personal-sysadmin/.clusterfuzzlite/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -eu -# SPDX-License-Identifier: PMPL-1.0 +# SPDX-License-Identifier: MPL-2.0 cd "$SRC"/personal-sysadmin cargo +nightly fuzz build for target in $(cargo +nightly fuzz list); do diff --git a/personal-sysadmin/.clusterfuzzlite/project.yaml b/personal-sysadmin/.clusterfuzzlite/project.yaml index 1107456a..311ed3dc 100644 --- a/personal-sysadmin/.clusterfuzzlite/project.yaml +++ b/personal-sysadmin/.clusterfuzzlite/project.yaml @@ -1,2 +1,2 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 language: rust diff --git a/personal-sysadmin/.github/dependabot.yml b/personal-sysadmin/.github/dependabot.yml index 089a6f00..8627148c 100644 --- a/personal-sysadmin/.github/dependabot.yml +++ b/personal-sysadmin/.github/dependabot.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 version: 2 updates: - package-ecosystem: "github-actions" diff --git a/personal-sysadmin/.github/workflows/casket-pages.yml b/personal-sysadmin/.github/workflows/casket-pages.yml index b7bf0446..813f63c1 100644 --- a/personal-sysadmin/.github/workflows/casket-pages.yml +++ b/personal-sysadmin/.github/workflows/casket-pages.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: GitHub Pages on: diff --git a/personal-sysadmin/.github/workflows/cflite_batch.yml b/personal-sysadmin/.github/workflows/cflite_batch.yml index 173d740e..733d3945 100644 --- a/personal-sysadmin/.github/workflows/cflite_batch.yml +++ b/personal-sysadmin/.github/workflows/cflite_batch.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: ClusterFuzzLite batch fuzzing on: schedule: diff --git a/personal-sysadmin/.github/workflows/cflite_pr.yml b/personal-sysadmin/.github/workflows/cflite_pr.yml index 8c949840..92a93813 100644 --- a/personal-sysadmin/.github/workflows/cflite_pr.yml +++ b/personal-sysadmin/.github/workflows/cflite_pr.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: ClusterFuzzLite PR fuzzing on: pull_request: diff --git a/personal-sysadmin/.github/workflows/codeql.yml b/personal-sysadmin/.github/workflows/codeql.yml index 05a1143e..1492f65d 100644 --- a/personal-sysadmin/.github/workflows/codeql.yml +++ b/personal-sysadmin/.github/workflows/codeql.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: CodeQL Security Analysis on: diff --git a/personal-sysadmin/.github/workflows/ghcr-publish.yml b/personal-sysadmin/.github/workflows/ghcr-publish.yml index 3b1caeda..b3653b54 100644 --- a/personal-sysadmin/.github/workflows/ghcr-publish.yml +++ b/personal-sysadmin/.github/workflows/ghcr-publish.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Publish to GHCR permissions: read-all diff --git a/personal-sysadmin/.github/workflows/guix-nix-policy.yml b/personal-sysadmin/.github/workflows/guix-nix-policy.yml index b54669c3..ec3acb3b 100644 --- a/personal-sysadmin/.github/workflows/guix-nix-policy.yml +++ b/personal-sysadmin/.github/workflows/guix-nix-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Guix/Nix Package Policy on: [push, pull_request] diff --git a/personal-sysadmin/.github/workflows/mirror.yml b/personal-sysadmin/.github/workflows/mirror.yml index 5d449d4e..2fb45753 100644 --- a/personal-sysadmin/.github/workflows/mirror.yml +++ b/personal-sysadmin/.github/workflows/mirror.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell name: Mirror to Git Forges diff --git a/personal-sysadmin/.github/workflows/npm-bun-blocker.yml b/personal-sysadmin/.github/workflows/npm-bun-blocker.yml index f887b6d6..917ce454 100644 --- a/personal-sysadmin/.github/workflows/npm-bun-blocker.yml +++ b/personal-sysadmin/.github/workflows/npm-bun-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: NPM/Bun Blocker on: [push, pull_request] diff --git a/personal-sysadmin/.github/workflows/quality.yml b/personal-sysadmin/.github/workflows/quality.yml index bba4b8e0..691ea9e9 100644 --- a/personal-sysadmin/.github/workflows/quality.yml +++ b/personal-sysadmin/.github/workflows/quality.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Code Quality on: [push, pull_request] diff --git a/personal-sysadmin/.github/workflows/rsr-antipattern.yml b/personal-sysadmin/.github/workflows/rsr-antipattern.yml index 11bf819d..09217b79 100644 --- a/personal-sysadmin/.github/workflows/rsr-antipattern.yml +++ b/personal-sysadmin/.github/workflows/rsr-antipattern.yml @@ -1,6 +1,6 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # RSR Anti-Pattern CI Check -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm # Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme diff --git a/personal-sysadmin/.github/workflows/scorecard.yml b/personal-sysadmin/.github/workflows/scorecard.yml index 5bc13220..648b16a3 100644 --- a/personal-sysadmin/.github/workflows/scorecard.yml +++ b/personal-sysadmin/.github/workflows/scorecard.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: OSSF Scorecard on: push: diff --git a/personal-sysadmin/.github/workflows/secret-scanner.yml b/personal-sysadmin/.github/workflows/secret-scanner.yml index 1a2a9090..ffd2912b 100644 --- a/personal-sysadmin/.github/workflows/secret-scanner.yml +++ b/personal-sysadmin/.github/workflows/secret-scanner.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - scans for hardcoded secrets before they reach main name: Secret Scanner diff --git a/personal-sysadmin/.github/workflows/security-policy.yml b/personal-sysadmin/.github/workflows/security-policy.yml index 9e76e5d0..915cd4b5 100644 --- a/personal-sysadmin/.github/workflows/security-policy.yml +++ b/personal-sysadmin/.github/workflows/security-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Security Policy on: [push, pull_request] diff --git a/personal-sysadmin/.github/workflows/ts-blocker.yml b/personal-sysadmin/.github/workflows/ts-blocker.yml index c924ca85..c434f587 100644 --- a/personal-sysadmin/.github/workflows/ts-blocker.yml +++ b/personal-sysadmin/.github/workflows/ts-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: TypeScript/JavaScript Blocker on: [push, pull_request] diff --git a/personal-sysadmin/.github/workflows/wellknown-enforcement.yml b/personal-sysadmin/.github/workflows/wellknown-enforcement.yml index 1e5ead28..70168af9 100644 --- a/personal-sysadmin/.github/workflows/wellknown-enforcement.yml +++ b/personal-sysadmin/.github/workflows/wellknown-enforcement.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Well-Known Standards (RFC 9116 + RSR) on: push: diff --git a/personal-sysadmin/.github/workflows/workflow-linter.yml b/personal-sysadmin/.github/workflows/workflow-linter.yml index 7596bbea..455b9e3b 100644 --- a/personal-sysadmin/.github/workflows/workflow-linter.yml +++ b/personal-sysadmin/.github/workflows/workflow-linter.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # workflow-linter.yml - Validates GitHub workflows against RSR security standards # This workflow can be copied to other repos for consistent enforcement name: Workflow Security Linter @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/personal-sysadmin/CODE_OF_CONDUCT.md b/personal-sysadmin/CODE_OF_CONDUCT.md index 1f1548ca..caeda1c6 100644 --- a/personal-sysadmin/CODE_OF_CONDUCT.md +++ b/personal-sysadmin/CODE_OF_CONDUCT.md @@ -1,4 +1,4 @@ - + # Contributor Covenant Code of Conduct ## Our Pledge diff --git a/personal-sysadmin/CONTRIBUTING.adoc b/personal-sysadmin/CONTRIBUTING.adoc index a0f2f540..eb045d61 100644 --- a/personal-sysadmin/CONTRIBUTING.adoc +++ b/personal-sysadmin/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/personal-sysadmin/Cargo.toml b/personal-sysadmin/Cargo.toml index 5d97b0fd..26d2cb5a 100644 --- a/personal-sysadmin/Cargo.toml +++ b/personal-sysadmin/Cargo.toml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 [package] name = "personal-sysadmin" version = "1.2.0" diff --git a/personal-sysadmin/MAINTAINERS.adoc b/personal-sysadmin/MAINTAINERS.adoc index b5154a03..48d97817 100644 --- a/personal-sysadmin/MAINTAINERS.adoc +++ b/personal-sysadmin/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/personal-sysadmin/PALIMPSEST.adoc b/personal-sysadmin/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/personal-sysadmin/PALIMPSEST.adoc +++ b/personal-sysadmin/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/personal-sysadmin/README.adoc b/personal-sysadmin/README.adoc index 681ba92c..b3fb1de4 100644 --- a/personal-sysadmin/README.adoc +++ b/personal-sysadmin/README.adoc @@ -7,7 +7,7 @@ image:https://img.shields.io/badge/License-MPL_2.0-blue.svg[MPL-2.0-or-later,lin This project must declare **MPL-2.0-or-later** for platform/tooling compatibility. Philosophy: **Palimpsest**. The Palimpsest-MPL (PMPL) text is provided in `license/PMPL-1.0.txt`, and the canonical source is the palimpsest-license repository. -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2025 hyperpolymath diff --git a/personal-sysadmin/SECURITY.md b/personal-sysadmin/SECURITY.md index 60a5411b..159a0b7a 100644 --- a/personal-sysadmin/SECURITY.md +++ b/personal-sysadmin/SECURITY.md @@ -1,4 +1,4 @@ - + # Security Policy ## Supported Versions diff --git a/personal-sysadmin/fuzz/Cargo.toml b/personal-sysadmin/fuzz/Cargo.toml index 01a67cd1..74a7f8b3 100644 --- a/personal-sysadmin/fuzz/Cargo.toml +++ b/personal-sysadmin/fuzz/Cargo.toml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 [package] name = "personal_sysadmin-fuzz" version = "0.0.0" diff --git a/personal-sysadmin/fuzz/fuzz_targets/fuzz_input.rs b/personal-sysadmin/fuzz/fuzz_targets/fuzz_input.rs index f824c82a..aefae70e 100644 --- a/personal-sysadmin/fuzz/fuzz_targets/fuzz_input.rs +++ b/personal-sysadmin/fuzz/fuzz_targets/fuzz_input.rs @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: PMPL-1.0 +// SPDX-License-Identifier: MPL-2.0 //! Generic fuzz target for arbitrary input processing #![no_main] diff --git a/personal-sysadmin/gitvisor/config.example.yml b/personal-sysadmin/gitvisor/config.example.yml index f23b5a9a..583d0de9 100644 --- a/personal-sysadmin/gitvisor/config.example.yml +++ b/personal-sysadmin/gitvisor/config.example.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # git-hud configuration version: 1 diff --git a/personal-sysadmin/license/PMPL-1.0.txt b/personal-sysadmin/license/PMPL-1.0.txt index 13d072a6..711e372c 100644 --- a/personal-sysadmin/license/PMPL-1.0.txt +++ b/personal-sysadmin/license/PMPL-1.0.txt @@ -1,4 +1,4 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 SPDX-FileCopyrightText: 2025 Palimpsest Stewardship Council ================================================================================ diff --git a/personal-sysadmin/nerdctl-compose.yaml b/personal-sysadmin/nerdctl-compose.yaml index 40a74dbf..46af5914 100644 --- a/personal-sysadmin/nerdctl-compose.yaml +++ b/personal-sysadmin/nerdctl-compose.yaml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Personal Sysadmin - nerdctl compose configuration # # Usage: diff --git a/personal-sysadmin/scripts/github-admin/language-blocker.yml b/personal-sysadmin/scripts/github-admin/language-blocker.yml index 5da18653..f926b8a6 100644 --- a/personal-sysadmin/scripts/github-admin/language-blocker.yml +++ b/personal-sysadmin/scripts/github-admin/language-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: RSR Language Policy on: diff --git a/playbooks/TOPOLOGY.md b/playbooks/TOPOLOGY.md index a626af53..40178e35 100644 --- a/playbooks/TOPOLOGY.md +++ b/playbooks/TOPOLOGY.md @@ -1,4 +1,4 @@ - + diff --git a/project-cb/IDEAS.md b/project-cb/IDEAS.md index 7311997f..b32eb58b 100644 --- a/project-cb/IDEAS.md +++ b/project-cb/IDEAS.md @@ -1,4 +1,4 @@ - + # Comment Bank Project - Ideas diff --git a/project-cb/comment-bank.scm b/project-cb/comment-bank.scm index cfe7a399..1e743cd1 100644 --- a/project-cb/comment-bank.scm +++ b/project-cb/comment-bank.scm @@ -1,4 +1,4 @@ -;; SPDX-License-Identifier: MIT +;; SPDX-License-Identifier: MPL-2.0 ;; Comment Bank - Machine-Readable Format ;; ;; Structure optimised for: diff --git a/project-cb/comment-collector.html b/project-cb/comment-collector.html index bcf9e3b0..da5622bb 100644 --- a/project-cb/comment-collector.html +++ b/project-cb/comment-collector.html @@ -1,5 +1,5 @@ - + @@ -694,7 +694,7 @@

📋 Collector

' "$INPUT")" # Generate SCM output cat > "$OUTPUT" << EOF -;; SPDX-License-Identifier: MIT +;; SPDX-License-Identifier: MPL-2.0 ;; Imported from AceText: $COLLECTION ;; Date: $DATE ;; Source: $INPUT diff --git a/project-cb/text-xray.html b/project-cb/text-xray.html index 66e33764..0864ead5 100644 --- a/project-cb/text-xray.html +++ b/project-cb/text-xray.html @@ -1,5 +1,5 @@ - + diff --git a/recovery/emergency-room/.github/workflows/workflow-linter.yml b/recovery/emergency-room/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/recovery/emergency-room/.github/workflows/workflow-linter.yml +++ b/recovery/emergency-room/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/recovery/emergency-room/MAINTAINERS.adoc b/recovery/emergency-room/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/recovery/emergency-room/MAINTAINERS.adoc +++ b/recovery/emergency-room/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/recovery/emergency-room/MIGRATION.adoc b/recovery/emergency-room/MIGRATION.adoc index 889f080b..8f238342 100644 --- a/recovery/emergency-room/MIGRATION.adoc +++ b/recovery/emergency-room/MIGRATION.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = recovery/emergency-room — zig Deprecated (2026-04-12) :toc: diff --git a/recovery/emergency-room/PALIMPSEST.adoc b/recovery/emergency-room/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/recovery/emergency-room/PALIMPSEST.adoc +++ b/recovery/emergency-room/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/recovery/emergency-room/README.adoc b/recovery/emergency-room/README.adoc index e18b92a6..69c9f1c6 100644 --- a/recovery/emergency-room/README.adoc +++ b/recovery/emergency-room/README.adoc @@ -1,6 +1,6 @@ = System Emergency Room (A&E) -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] diff --git a/recovery/emergency-room/src/SIDELINED.adoc b/recovery/emergency-room/src/SIDELINED.adoc index edf350bb..32d6725f 100644 --- a/recovery/emergency-room/src/SIDELINED.adoc +++ b/recovery/emergency-room/src/SIDELINED.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) = Emergency Room — zig Implementation SIDELINED :toc: diff --git a/recovery/emergency-room/src/zig/backup.zig b/recovery/emergency-room/src/zig/backup.zig deleted file mode 120000 index 0e845052..00000000 --- a/recovery/emergency-room/src/zig/backup.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/backup.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/backup.zig b/recovery/emergency-room/src/zig/backup.zig new file mode 100644 index 00000000..9be62888 --- /dev/null +++ b/recovery/emergency-room/src/zig/backup.zig @@ -0,0 +1,538 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// backup.zig — Quick-backup functionality with preview/dry-run mode. +// +// Ported from backup.v (2026-04-17). +// +// CRIT-002: Path validation prevents shell injection during backup operations. +// HIGH-006: Log writes go through atomicWriteFile. +// +// The backup is deliberately opt-in (only runs when --quick-backup is passed). +// Default is non-destructive and offline-first. + +const std = @import("std"); +const utils = @import("utils"); +const incident_mod = @import("incident"); + +// ============================================================================= +// FFI: proven_path_has_traversal from libzig_api / libproven_ffi +// ============================================================================= + +/// C ABI result type for boolean operations (matches ProvenBoolResult in proven.h). +const ProvenBoolResult = extern struct { + status: c_int, + value: bool, +}; + +const PROVEN_OK: c_int = 0; + +/// Check if a byte slice contains a directory traversal sequence (".."). +/// Linked via libzig_api (which transitively links libproven_ffi). +/// This is the formally-verified path-validation gate from proven. +extern fn proven_path_has_traversal(ptr: [*]const u8, len: usize) ProvenBoolResult; + +// ============================================================================= +// Path safety +// ============================================================================= + +/// Shell metacharacters that would enable injection attacks. +const shell_dangerous_chars = [_]u8{ + ';', '|', '&', '$', '`', '(', ')', '{', '}', + '[', ']', '<', '>', '\n', '\r', '*', '?', '~', + '!', '#', +}; + +/// CRIT-002: Validate that a path is safe for interpolation into shell commands. +/// Returns the normalised path on success. +/// +/// Checks: +/// 1. No empty paths +/// 2. No shell metacharacters (injection prevention) +/// 3. No directory traversal sequences ("..") via proven_path_has_traversal +pub fn validateSafePath( + allocator: std.mem.Allocator, + path: []const u8, +) ![]const u8 { + if (path.len == 0) return error.EmptyPath; + + // Gate 1: Shell character filtering. + for (shell_dangerous_chars) |bad| { + if (std.mem.indexOfScalar(u8, path, bad) != null) { + return error.DangerousChar; + } + } + + // Gate 2: Proven-backed traversal detection. + // proven_path_has_traversal is formally-verified; fail-closed on error. + const result = proven_path_has_traversal(path.ptr, path.len); + if (result.status != PROVEN_OK) { + return error.TraversalDetected; + } + if (result.value) { + // result.value == true means traversal detected → deny. + return error.TraversalDetected; + } + + // Resolve to absolute, normalised path for the caller's convenience. + var buf: [std.fs.max_path_bytes]u8 = undefined; + const normalised = std.fs.realpath(path, &buf) catch { + // If the path doesn't exist yet (e.g. backup dest), we've already + // validated no traversal via proven_path_has_traversal above. + return allocator.dupe(u8, path); + }; + + return allocator.dupe(u8, normalised); +} + +// ============================================================================= +// Types +// ============================================================================= + +pub const BackupItem = struct { + path: []const u8, + size: u64, + is_dir: bool, + will_backup: bool, +}; + +pub const BackupPlan = struct { + allocator: std.mem.Allocator, + source_dirs: []const []const u8, + dest_path: []const u8, + total_files: usize, + total_size: u64, + items: std.ArrayList(BackupItem), + + pub fn deinit(self: *BackupPlan) void { + for (self.items.items) |item| { + self.allocator.free(item.path); + } + self.items.deinit(self.allocator); + } +}; + +// ============================================================================= +// Public API +// ============================================================================= + +/// Entry point: validate destination, build plan, optionally execute. +pub fn runQuickBackup( + allocator: std.mem.Allocator, + incident: *const incident_mod.Incident, + config: incident_mod.Config, +) void { + const dest = config.quick_backup_dest; + const red = "\x1b[31m"; + const green = "\x1b[32m"; + const yellow = "\x1b[33m"; + const blue = "\x1b[34m"; + const cyan = "\x1b[36m"; + const reset = "\x1b[0m"; + + // Validate destination exists and is a directory. + std.fs.accessAbsolute(dest, .{}) catch { + std.debug.print( + "{s}[ERROR]{s} Backup destination does not exist: {s}\n", + .{ red, reset, dest }, + ); + std.debug.print( + "{s}[INFO]{s} Please create the directory first or mount the drive.\n", + .{ blue, reset }, + ); + utils.logError(allocator, incident.logs_path, "backup", "Destination does not exist", &.{ + .{ .key = "destination", .value = dest }, + }); + return; + }; + + { + var d = std.fs.openDirAbsolute(dest, .{}) catch { + std.debug.print( + "{s}[ERROR]{s} Backup destination is not a directory: {s}\n", + .{ red, reset, dest }, + ); + return; + }; + d.close(); + } + + // Determine home dir and default source directories. + const home = std.posix.getenv("HOME") orelse "/root"; + + const source_dirs = [_][]const u8{ + std.fs.path.join(allocator, &.{ home, "Documents" }) catch return, + std.fs.path.join(allocator, &.{ home, "Desktop" }) catch return, + std.fs.path.join(allocator, &.{ home, ".ssh" }) catch return, + std.fs.path.join(allocator, &.{ home, ".gnupg" }) catch return, + std.fs.path.join(allocator, &.{ home, ".config" }) catch return, + }; + defer for (source_dirs) |d| allocator.free(d); + + std.debug.print("\n{s}━━━ Quick Backup Preview ━━━{s}\n\n", .{ blue, reset }); + + var plan = createBackupPlan(allocator, &source_dirs, dest); + defer plan.deinit(); + + std.debug.print("Source directories:\n", .{}); + for (source_dirs) |dir| { + if (std.fs.accessAbsolute(dir, .{})) |_| { + std.debug.print(" {s}✓{s} {s}\n", .{ green, reset, dir }); + } else |_| { + std.debug.print(" {s}○{s} {s} (not found)\n", .{ yellow, reset, dir }); + } + } + std.debug.print("\nDestination: {s}\n", .{dest}); + std.debug.print("\nSummary:\n", .{}); + std.debug.print(" Files to backup: {d}\n", .{plan.total_files}); + + var size_buf: [32]u8 = undefined; + const size_str = formatSize(&size_buf, plan.total_size); + std.debug.print(" Estimated size: {s}\n\n", .{size_str}); + + logBackupPlan(allocator, incident, &plan, config); + + if (config.dry_run) { + std.debug.print( + "{s}[DRY-RUN]{s} Would perform backup of {d} files\n", + .{ cyan, reset, plan.total_files }, + ); + std.debug.print( + "{s}[DRY-RUN]{s} Backup log written to incident bundle\n", + .{ cyan, reset }, + ); + return; + } + + std.debug.print("{s}[INFO]{s} Starting backup...\n", .{ blue, reset }); + performBackup(allocator, &plan, incident, config); +} + +// ============================================================================= +// Plan creation +// ============================================================================= + +fn createBackupPlan( + allocator: std.mem.Allocator, + source_dirs: []const []const u8, + dest: []const u8, +) BackupPlan { + var plan = BackupPlan{ + .allocator = allocator, + .source_dirs = source_dirs, + .dest_path = dest, + .total_files = 0, + .total_size = 0, + .items = std.ArrayList(BackupItem).empty, + }; + + for (source_dirs) |dir| { + if (std.fs.accessAbsolute(dir, .{})) |_| { + scanDirectory(allocator, dir, &plan, 0); + } else |_| {} + } + + return plan; +} + +fn scanDirectory( + allocator: std.mem.Allocator, + path: []const u8, + plan: *BackupPlan, + depth: usize, +) void { + if (depth >= 10) return; + + var dir = std.fs.openDirAbsolute(path, .{ .iterate = true }) catch return; + defer dir.close(); + + var it = dir.iterate(); + while (it.next() catch null) |entry| { + if (std.mem.eql(u8, entry.name, ".git")) continue; + + const child_path = std.fs.path.join(allocator, &.{ path, entry.name }) catch continue; + + if (entry.kind == .directory) { + scanDirectory(allocator, child_path, plan, depth + 1); + allocator.free(child_path); + } else { + const f = std.fs.openFileAbsolute(child_path, .{}) catch { + allocator.free(child_path); + continue; + }; + const stat = f.stat() catch { + f.close(); + allocator.free(child_path); + continue; + }; + f.close(); + + plan.total_files += 1; + plan.total_size += stat.size; + plan.items.append(allocator, .{ + .path = child_path, + .size = stat.size, + .is_dir = false, + .will_backup = true, + }) catch { + allocator.free(child_path); + }; + } + } +} + +// ============================================================================= +// Execution +// ============================================================================= + +fn performBackup( + allocator: std.mem.Allocator, + plan: *const BackupPlan, + incident: *const incident_mod.Incident, + config: incident_mod.Config, +) void { + _ = config; + const red = "\x1b[31m"; + const green = "\x1b[32m"; + const yellow = "\x1b[33m"; + const reset = "\x1b[0m"; + + // CRIT-002: Validate destination. + const safe_dest = validateSafePath(allocator, plan.dest_path) catch |err| { + std.debug.print( + "{s}[ERROR]{s} Invalid backup destination path: {}\n", + .{ red, reset, err }, + ); + utils.logError(allocator, incident.logs_path, "backup", "Invalid destination path", &.{ + .{ .key = "path", .value = plan.dest_path }, + .{ .key = "error", .value = @errorName(err) }, + }); + return; + }; + defer allocator.free(safe_dest); + + // Build timestamped backup dir name. + var ts_buf: [16]u8 = undefined; + const ms = std.time.milliTimestamp(); + const secs: u64 = @intCast(@divTrunc(ms, 1000)); + const es = std.time.epoch.EpochSeconds{ .secs = secs }; + const yd = es.getEpochDay().calculateYearDay(); + const md = yd.calculateMonthDay(); + const ds = es.getDaySeconds(); + const ts = std.fmt.bufPrint(&ts_buf, "{d:0>4}{d:0>2}{d:0>2}-{d:0>2}{d:0>2}{d:0>2}", .{ + yd.year, + md.month.numeric(), + md.day_index + 1, + ds.getHoursIntoDay(), + ds.getMinutesIntoHour(), + ds.getSecondsIntoMinute(), + }) catch &ts_buf; + + const dir_name = std.fmt.allocPrint(allocator, "emergency-backup-{s}", .{ts}) catch return; + defer allocator.free(dir_name); + const backup_dir = std.fs.path.join(allocator, &.{ safe_dest, dir_name }) catch return; + defer allocator.free(backup_dir); + + std.fs.makeDirAbsolute(backup_dir) catch |err| { + std.debug.print( + "{s}[ERROR]{s} Failed to create backup directory: {}\n", + .{ red, reset, err }, + ); + utils.logError(allocator, incident.logs_path, "backup", "Failed to create backup dir", &.{ + .{ .key = "directory", .value = backup_dir }, + .{ .key = "error", .value = @errorName(err) }, + }); + return; + }; + + var copied: usize = 0; + var failed: usize = 0; + + for (plan.source_dirs) |dir| { + if (std.fs.accessAbsolute(dir, .{})) |_| {} else |_| continue; + + // CRIT-002: Validate source path. + const safe_source = validateSafePath(allocator, dir) catch |err| { + std.debug.print( + "{s}[WARN]{s} Skipping unsafe path: {s} ({})\n", + .{ yellow, reset, dir, err }, + ); + utils.logWarn(allocator, incident.logs_path, "backup", "Skipping unsafe source path"); + failed += 1; + continue; + }; + defer allocator.free(safe_source); + + const src_dir_name = std.fs.path.basename(safe_source); + const dest_dir = std.fs.path.join(allocator, &.{ backup_dir, src_dir_name }) catch { + failed += 1; + continue; + }; + defer allocator.free(dest_dir); + + const safe_dest_dir = validateSafePath(allocator, dest_dir) catch |err| { + std.debug.print( + "{s}[WARN]{s} Skipping invalid destination: {} \n", + .{ yellow, reset, err }, + ); + failed += 1; + continue; + }; + defer allocator.free(safe_dest_dir); + + // Use system copy: paths are validated. + const copy_argv: []const []const u8 = switch (@import("builtin").os.tag) { + .windows => &.{ "xcopy", "/E", "/I", "/H", "/Y", safe_source, safe_dest_dir }, + else => &.{ "cp", "-r", safe_source, safe_dest_dir }, + }; + + const result = std.process.Child.run(.{ + .allocator = allocator, + .argv = copy_argv, + }) catch { + failed += 1; + std.debug.print(" {s}✗{s} {s}\n", .{ red, reset, dir_name }); + continue; + }; + defer allocator.free(result.stdout); + defer allocator.free(result.stderr); + + if (result.term == .Exited and result.term.Exited == 0) { + copied += 1; + std.debug.print(" {s}✓{s} {s}\n", .{ green, reset, src_dir_name }); + } else { + failed += 1; + std.debug.print(" {s}✗{s} {s}\n", .{ red, reset, src_dir_name }); + } + } + + std.debug.print("\n", .{}); + if (failed == 0) { + std.debug.print("{s}[OK]{s} Backup complete: {s}\n", .{ green, reset, backup_dir }); + } else { + std.debug.print( + "{s}[WARN]{s} Backup completed with {d} errors\n", + .{ yellow, reset, failed }, + ); + } + + logBackupResult(allocator, incident, backup_dir, copied, failed); +} + +// ============================================================================= +// Logging helpers +// ============================================================================= + +fn logBackupPlan( + allocator: std.mem.Allocator, + incident: *const incident_mod.Incident, + plan: *const BackupPlan, + config: incident_mod.Config, +) void { + if (config.dry_run) { + std.debug.print("\x1b[36m[DRY-RUN]\x1b[0m Would write backup plan to logs\n", .{}); + return; + } + + const log_path = std.fs.path.join( + allocator, + &.{ incident.logs_path, "backup_plan.log" }, + ) catch return; + defer allocator.free(log_path); + + var size_buf: [32]u8 = undefined; + const size_str = formatSize(&size_buf, plan.total_size); + + var buf = std.ArrayList(u8).empty; + defer buf.deinit(allocator); + const w = buf.writer(allocator); + + w.print("schema_version: {s}\n\nQuick Backup Plan\n=================\n\n", .{utils.schema_version}) catch return; + w.print("Destination: {s}\n", .{plan.dest_path}) catch return; + w.print("Total files: {d}\n", .{plan.total_files}) catch return; + w.print("Total size: {s}\n\nSource directories:\n", .{size_str}) catch return; + for (plan.source_dirs) |dir| { + const exists = if (std.fs.accessAbsolute(dir, .{})) |_| "exists" else |_| "not found"; + w.print(" - {s} ({s})\n", .{ dir, exists }) catch {}; + } + w.print("\nDry run: {}\n", .{config.dry_run}) catch return; + + utils.atomicWriteFile(allocator, log_path, buf.items) catch |err| { + std.debug.print("\x1b[33m[WARN]\x1b[0m Could not write backup plan: {}\n", .{err}); + }; +} + +fn logBackupResult( + allocator: std.mem.Allocator, + incident: *const incident_mod.Incident, + backup_dir: []const u8, + copied: usize, + failed: usize, +) void { + const log_path = std.fs.path.join( + allocator, + &.{ incident.logs_path, "backup_result.log" }, + ) catch return; + defer allocator.free(log_path); + + const status = if (failed == 0) "SUCCESS" else "PARTIAL"; + const content = std.fmt.allocPrint( + allocator, + "schema_version: {s}\n\nBackup Result\n=============\n\nBackup directory: {s}\nDirectories copied: {d}\nDirectories failed: {d}\nStatus: {s}\n", + .{ utils.schema_version, backup_dir, copied, failed, status }, + ) catch return; + defer allocator.free(content); + + utils.atomicWriteFile(allocator, log_path, content) catch |err| { + std.debug.print("\x1b[33m[WARN]\x1b[0m Could not write backup result: {}\n", .{err}); + }; +} + +// ============================================================================= +// Size formatting +// ============================================================================= + +/// Format a byte count into a human-readable string. Writes into `buf` +/// and returns a slice of it; buf must be at least 16 bytes. +pub fn formatSize(buf: []u8, bytes: u64) []const u8 { + if (bytes >= 1_073_741_824) { + return std.fmt.bufPrint(buf, "{d:.1}G", .{@as(f64, @floatFromInt(bytes)) / 1_073_741_824.0}) catch "?"; + } else if (bytes >= 1_048_576) { + return std.fmt.bufPrint(buf, "{d:.1}M", .{@as(f64, @floatFromInt(bytes)) / 1_048_576.0}) catch "?"; + } else if (bytes >= 1024) { + return std.fmt.bufPrint(buf, "{d:.1}K", .{@as(f64, @floatFromInt(bytes)) / 1024.0}) catch "?"; + } + return std.fmt.bufPrint(buf, "{d}B", .{bytes}) catch "?"; +} + +// ============================================================================= +// Tests +// ============================================================================= + +test "validateSafePath rejects dangerous characters" { + const alloc = std.testing.allocator; + try std.testing.expectError(error.DangerousChar, validateSafePath(alloc, "/tmp/backup;rm -rf /")); + try std.testing.expectError(error.DangerousChar, validateSafePath(alloc, "/tmp/backup|cat")); +} + +test "validateSafePath rejects empty path" { + const alloc = std.testing.allocator; + try std.testing.expectError(error.EmptyPath, validateSafePath(alloc, "")); +} + +test "formatSize bytes" { + var buf: [32]u8 = undefined; + try std.testing.expectEqualStrings("512B", formatSize(&buf, 512)); +} + +test "formatSize kilobytes" { + var buf: [32]u8 = undefined; + const s = formatSize(&buf, 2048); + try std.testing.expect(std.mem.endsWith(u8, s, "K")); +} + +test "formatSize gigabytes" { + var buf: [32]u8 = undefined; + const s = formatSize(&buf, 2_000_000_000); + try std.testing.expect(std.mem.endsWith(u8, s, "G")); +} diff --git a/recovery/emergency-room/src/zig/capture.zig b/recovery/emergency-room/src/zig/capture.zig deleted file mode 120000 index 4fdd3520..00000000 --- a/recovery/emergency-room/src/zig/capture.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/capture.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/capture.zig b/recovery/emergency-room/src/zig/capture.zig new file mode 100644 index 00000000..acffb094 --- /dev/null +++ b/recovery/emergency-room/src/zig/capture.zig @@ -0,0 +1,511 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// capture.zig — Safe diagnostic capture modules. +// +// Ported from capture.v (2026-04-17). +// +// HIGH-004: PII redaction applied to every captured byte before writing. +// CRIT-004: Uses string matching (not regex) — same approach as the V original. +// HIGH-006: All file writes go through atomicWriteFile. +// +// All capture operations are best-effort and non-destructive. A failed +// capture module is logged and skipped; it never aborts the run. + +const std = @import("std"); +const utils = @import("utils"); +const incident_mod = @import("incident"); + +/// Result of running a single capture module. +pub const CaptureResult = struct { + name: []const u8, + success: bool, + output: []const u8, + error_msg: []const u8, + /// Duration in milliseconds. + duration_ms: i64, +}; + +/// A set of shell commands collected under one logical name. +pub const CaptureModule = struct { + name: []const u8, + display_name: []const u8, + commands: []const []const u8, +}; + +// ============================================================================= +// PII redaction +// ============================================================================= + +const sensitive_keys = [_][]const u8{ + "password", "passwd", "pwd", "secret", "token", + "api_key", "api-key", "apikey", + "auth_token", "auth-token", "authtoken", + "access_token", "access-token", "accesstoken", + "private_key", "private-key", "privatekey", + "aws_secret", "aws-secret", + "bearer", +}; + +const sensitive_prefixes = [_][]const u8{ + "akia", "abia", "acca", "asia", + "ghp_", "gho_", "ghu_", "ghs_", "ghr_", +}; + +/// Redact PII from the full `content` string. Returns an allocated copy. +pub fn redactPii(allocator: std.mem.Allocator, content: []const u8) ![]u8 { + var lines = std.ArrayList([]u8).empty; + defer { + for (lines.items) |l| allocator.free(l); + lines.deinit(allocator); + } + + var iter = std.mem.splitScalar(u8, content, '\n'); + while (iter.next()) |line| { + const redacted = try redactLine(allocator, line); + try lines.append(allocator, redacted); + } + + return std.mem.join(allocator, "\n", lines.items); +} + +fn redactLine(allocator: std.mem.Allocator, line: []const u8) ![]u8 { + var current = try allocator.dupe(u8, line); + + const lower = try std.ascii.allocLowerString(allocator, current); + defer allocator.free(lower); + + for (sensitive_keys) |key| { + if (std.mem.indexOf(u8, lower, key) != null) { + const tmp_eq = try redactAfterKey(allocator, current, key, '='); + allocator.free(current); + current = tmp_eq; + + const lower2 = try std.ascii.allocLowerString(allocator, current); + defer allocator.free(lower2); + const tmp_col = try redactAfterKey(allocator, current, key, ':'); + allocator.free(current); + current = tmp_col; + } + } + + const lower3 = try std.ascii.allocLowerString(allocator, current); + defer allocator.free(lower3); + for (sensitive_prefixes) |prefix| { + if (std.mem.indexOf(u8, lower3, prefix) != null) { + const tmp = try redactTokenPrefix(allocator, current, prefix); + allocator.free(current); + current = tmp; + } + } + + const lower4 = try std.ascii.allocLowerString(allocator, current); + defer allocator.free(lower4); + if (std.mem.indexOf(u8, lower4, "-----begin") != null and + std.mem.indexOf(u8, lower4, "private key") != null) + { + allocator.free(current); + current = try allocator.dupe(u8, "[REDACTED PRIVATE KEY BLOCK]"); + } + + const tmp_ssn = try redactSsn(allocator, current); + allocator.free(current); + current = tmp_ssn; + + const tmp_email = try redactEmails(allocator, current); + allocator.free(current); + current = tmp_email; + + return current; +} + +fn redactAfterKey( + allocator: std.mem.Allocator, + line: []const u8, + key: []const u8, + sep: u8, +) ![]u8 { + const lower = try std.ascii.allocLowerString(allocator, line); + defer allocator.free(lower); + + const key_pos = std.mem.indexOf(u8, lower, key) orelse return allocator.dupe(u8, line); + const rest = lower[key_pos + key.len ..]; + const sep_pos = std.mem.indexOfScalar(u8, rest, sep) orelse return allocator.dupe(u8, line); + + var value_start = key_pos + key.len + sep_pos + 1; + if (value_start >= line.len) return allocator.dupe(u8, line); + + while (value_start < line.len and (line[value_start] == ' ' or line[value_start] == '\t')) { + value_start += 1; + } + + var end = value_start; + while (end < line.len and line[end] != ' ' and line[end] != '\t' and + line[end] != '\n' and line[end] != '\r') + { + end += 1; + } + + if (end > value_start) { + return std.mem.concat(allocator, u8, &.{ line[0..value_start], "[REDACTED]", line[end..] }); + } + return allocator.dupe(u8, line); +} + +fn redactTokenPrefix( + allocator: std.mem.Allocator, + line: []const u8, + prefix: []const u8, +) ![]u8 { + const lower = try std.ascii.allocLowerString(allocator, line); + defer allocator.free(lower); + + const pos = std.mem.indexOf(u8, lower, prefix) orelse return allocator.dupe(u8, line); + var end = pos + prefix.len; + while (end < line.len) { + const c = line[end]; + const is_token_char = std.ascii.isAlphanumeric(c) or c == '_' or c == '-'; + if (!is_token_char) break; + end += 1; + } + if (end > pos + prefix.len) { + return std.mem.concat(allocator, u8, &.{ line[0..pos], "[REDACTED]", line[end..] }); + } + return allocator.dupe(u8, line); +} + +fn redactSsn(allocator: std.mem.Allocator, line: []const u8) ![]u8 { + if (line.len < 11) return allocator.dupe(u8, line); + var out = std.ArrayList(u8).empty; + defer out.deinit(allocator); + var i: usize = 0; + while (i + 10 < line.len) { + if (std.ascii.isDigit(line[i]) and + std.ascii.isDigit(line[i + 1]) and + std.ascii.isDigit(line[i + 2]) and + line[i + 3] == '-' and + std.ascii.isDigit(line[i + 4]) and + std.ascii.isDigit(line[i + 5]) and + line[i + 6] == '-' and + std.ascii.isDigit(line[i + 7]) and + std.ascii.isDigit(line[i + 8]) and + std.ascii.isDigit(line[i + 9]) and + std.ascii.isDigit(line[i + 10])) + { + try out.appendSlice(allocator, "[REDACTED-SSN]"); + i += 11; + } else { + try out.append(allocator, line[i]); + i += 1; + } + } + while (i < line.len) : (i += 1) try out.append(allocator, line[i]); + return out.toOwnedSlice(allocator); +} + +fn redactEmails(allocator: std.mem.Allocator, line: []const u8) ![]u8 { + const at_pos = std.mem.indexOfScalar(u8, line, '@') orelse return allocator.dupe(u8, line); + + var start = at_pos; + while (start > 0 and isEmailChar(line[start - 1])) { + start -= 1; + } + + var end = at_pos + 1; + var has_dot = false; + while (end < line.len) { + const c = line[end]; + if (c == '.') { + has_dot = true; + end += 1; + } else if (isEmailChar(c)) { + end += 1; + } else break; + } + + if (has_dot and end > at_pos + 3 and start < at_pos) { + return std.mem.concat(allocator, u8, &.{ line[0..start], "[REDACTED-EMAIL]", line[end..] }); + } + return allocator.dupe(u8, line); +} + +fn isEmailChar(c: u8) bool { + return std.ascii.isAlphanumeric(c) or c == '.' or c == '_' or + c == '-' or c == '+' or c == '%'; +} + +// ============================================================================= +// Platform-specific command lists +// ============================================================================= + +const builtin = @import("builtin"); + +fn getOsVersionCommands() []const []const u8 { + return switch (builtin.os.tag) { + .linux => &.{ + "cat /etc/os-release", + "uname -a", + "hostnamectl 2>/dev/null || true", + }, + .macos => &.{ "sw_vers", "uname -a" }, + .windows => &.{ + "systeminfo | findstr /B /C:\"OS\"", + "ver", + }, + else => &.{"uname -a"}, + }; +} + +fn getUptimeCommands() []const []const u8 { + return switch (builtin.os.tag) { + .linux => &.{ "uptime", "cat /proc/uptime" }, + .macos => &.{"uptime"}, + .windows => &.{"net statistics workstation | find \"Statistics\""}, + else => &.{"uptime"}, + }; +} + +fn getDiskCommands() []const []const u8 { + return switch (builtin.os.tag) { + .linux => &.{ + "df -h", + "df -i", + "lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT 2>/dev/null || true", + }, + .macos => &.{ "df -h", "diskutil list" }, + .windows => &.{"wmic logicaldisk get size,freespace,caption"}, + else => &.{"df -h"}, + }; +} + +fn getMemoryCommands() []const []const u8 { + return switch (builtin.os.tag) { + .linux => &.{ "free -h", "cat /proc/meminfo | head -20" }, + .macos => &.{ "vm_stat", "top -l 1 | head -10" }, + .windows => &.{"systeminfo | findstr Memory"}, + else => &.{}, + }; +} + +fn getNetworkCommands() []const []const u8 { + return switch (builtin.os.tag) { + .linux => &.{ + "ip addr show 2>/dev/null || ifconfig", + "ip route show 2>/dev/null || route -n", + "ss -tuln 2>/dev/null || netstat -tuln", + }, + .macos => &.{ + "ifconfig", + "netstat -rn", + "netstat -an | head -50", + }, + .windows => &.{ + "ipconfig /all", + "netstat -an | findstr LISTENING", + }, + else => &.{}, + }; +} + +fn getProcessCommands() []const []const u8 { + return switch (builtin.os.tag) { + .linux => &.{ + "ps aux --sort=-%mem | head -20", + "ps aux --sort=-%cpu | head -20", + }, + .macos => &.{ + "ps aux | head -20", + "top -l 1 -o mem | head -20", + }, + .windows => &.{"tasklist /V | findstr /V \"N/A\""}, + else => &.{"ps aux | head -20"}, + }; +} + +// ============================================================================= +// Capture execution +// ============================================================================= + +/// Run all capture modules and append CommandLog entries to `incident`. +pub fn captureDiagnostics( + allocator: std.mem.Allocator, + incident: *incident_mod.Incident, + config: incident_mod.Config, +) void { + const modules = [_]CaptureModule{ + .{ .name = "os_version", .display_name = "OS Version", .commands = getOsVersionCommands() }, + .{ .name = "uptime", .display_name = "System Uptime", .commands = getUptimeCommands() }, + .{ .name = "disk_free", .display_name = "Disk Space", .commands = getDiskCommands() }, + .{ .name = "memory", .display_name = "Memory Status", .commands = getMemoryCommands() }, + .{ .name = "network_summary", .display_name = "Network Summary", .commands = getNetworkCommands() }, + .{ .name = "process_summary", .display_name = "Process Summary", .commands = getProcessCommands() }, + }; + + for (modules) |mod| { + const result = runCaptureModule(allocator, mod, incident, config); + defer allocator.free(result.output); + defer allocator.free(result.error_msg); + + if (result.success) { + std.debug.print(" \x1b[32m✓\x1b[0m {s}\n", .{mod.display_name}); + } else { + std.debug.print(" \x1b[33m○\x1b[0m {s} (skipped)\n", .{mod.display_name}); + } + + var ts_buf: [32]u8 = undefined; + const now_ts = utils.formatRfc3339(std.time.milliTimestamp(), &ts_buf); + + const cmd_log = incident_mod.CommandLog{ + .name = allocator.dupe(u8, mod.name) catch continue, + .command = std.mem.join(allocator, " | ", mod.commands) catch continue, + .started_at = allocator.dupe(u8, now_ts) catch continue, + .ended_at = allocator.dupe(u8, now_ts) catch continue, + .exit_code = if (result.success) 0 else 1, + .output_len = result.output.len, + }; + incident.commands.append(allocator, cmd_log) catch continue; + } + + incident_mod.updateIncidentJson(incident, config); +} + +fn runCaptureModule( + allocator: std.mem.Allocator, + mod: CaptureModule, + incident: *const incident_mod.Incident, + config: incident_mod.Config, +) CaptureResult { + const start_ms = std.time.milliTimestamp(); + var outputs = std.ArrayList(u8).empty; + defer outputs.deinit(allocator); + var success = false; + + for (mod.commands) |cmd| { + if (config.dry_run) { + const line = std.fmt.allocPrint(allocator, "[DRY-RUN] Would execute: {s}\n", .{cmd}) catch continue; + defer allocator.free(line); + outputs.appendSlice(allocator, line) catch {}; + success = true; + continue; + } + + const result = std.process.Child.run(.{ + .allocator = allocator, + .argv = &.{ "/bin/sh", "-c", cmd }, + }) catch continue; + defer allocator.free(result.stdout); + defer allocator.free(result.stderr); + + if (result.term == .Exited and result.term.Exited == 0) { + const hdr = std.fmt.allocPrint(allocator, "=== {s} ===\n{s}\n\n", .{ cmd, result.stdout }) catch continue; + defer allocator.free(hdr); + outputs.appendSlice(allocator, hdr) catch {}; + success = true; + } + } + + const raw = outputs.toOwnedSlice(allocator) catch return CaptureResult{ + .name = mod.name, + .success = false, + .output = allocator.dupe(u8, "") catch "", + .error_msg = allocator.dupe(u8, "OOM in capture") catch "", + .duration_ms = 0, + }; + defer allocator.free(raw); + + // HIGH-004: Redact PII before writing or returning. + const output = redactPii(allocator, raw) catch allocator.dupe(u8, raw) catch ""; + + const duration_ms = std.time.milliTimestamp() - start_ms; + + // Write log file (best-effort). + if (!config.dry_run and output.len > 0) { + const log_name = std.fmt.allocPrint(allocator, "{s}.log", .{mod.name}) catch ""; + defer allocator.free(log_name); + if (log_name.len > 0) { + const log_path = std.fs.path.join(allocator, &.{ incident.logs_path, log_name }) catch ""; + defer allocator.free(log_path); + if (log_path.len > 0) { + utils.atomicWriteFile(allocator, log_path, output) catch |err| { + utils.logError(allocator, incident.logs_path, "capture", "Failed to write log", &.{ + .{ .key = "module", .value = mod.name }, + .{ .key = "error", .value = @errorName(err) }, + }); + return CaptureResult{ + .name = mod.name, + .success = false, + .output = allocator.dupe(u8, "") catch "", + .error_msg = std.fmt.allocPrint(allocator, "Failed to write log: {}", .{err}) catch "", + .duration_ms = duration_ms, + }; + }; + } + } + } + + return CaptureResult{ + .name = mod.name, + .success = success, + .output = output, + .error_msg = allocator.dupe(u8, "") catch "", + .duration_ms = duration_ms, + }; +} + +// ============================================================================= +// Tests +// ============================================================================= + +test "CaptureResult can be constructed" { + const r = CaptureResult{ + .name = "test", + .success = true, + .output = "hello", + .error_msg = "", + .duration_ms = 42, + }; + try std.testing.expect(r.success); + try std.testing.expectEqual(@as(i64, 42), r.duration_ms); +} + +test "redactPii removes known sensitive keys" { + const alloc = std.testing.allocator; + const input = "password=supersecret and more"; + const out = try redactPii(alloc, input); + defer alloc.free(out); + try std.testing.expect(std.mem.indexOf(u8, out, "supersecret") == null); + try std.testing.expect(std.mem.indexOf(u8, out, "[REDACTED]") != null); +} + +test "redactPii handles SSN pattern" { + const alloc = std.testing.allocator; + const input = "SSN: 123-45-6789 end"; + const out = try redactPii(alloc, input); + defer alloc.free(out); + try std.testing.expect(std.mem.indexOf(u8, out, "123-45-6789") == null); + try std.testing.expect(std.mem.indexOf(u8, out, "[REDACTED-SSN]") != null); +} + +test "redactPii redacts email addresses" { + const alloc = std.testing.allocator; + const input = "contact user@example.com now"; + const out = try redactPii(alloc, input); + defer alloc.free(out); + try std.testing.expect(std.mem.indexOf(u8, out, "user@example.com") == null); + try std.testing.expect(std.mem.indexOf(u8, out, "[REDACTED-EMAIL]") != null); +} + +test "os version commands non-empty" { + const cmds = getOsVersionCommands(); + try std.testing.expect(cmds.len > 0); +} + +test "uptime commands non-empty" { + const cmds = getUptimeCommands(); + try std.testing.expect(cmds.len > 0); +} + +test "process commands non-empty" { + const cmds = getProcessCommands(); + try std.testing.expect(cmds.len > 0); +} diff --git a/recovery/emergency-room/src/zig/capture_test.zig b/recovery/emergency-room/src/zig/capture_test.zig deleted file mode 120000 index d9b9608e..00000000 --- a/recovery/emergency-room/src/zig/capture_test.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/capture_test.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/capture_test.zig b/recovery/emergency-room/src/zig/capture_test.zig new file mode 100644 index 00000000..5905f295 --- /dev/null +++ b/recovery/emergency-room/src/zig/capture_test.zig @@ -0,0 +1,68 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// capture_test.zig — Tests for safe diagnostic capture modules. +// +// Ported from capture_test.v (2026-04-17). + +const std = @import("std"); +const capture = @import("capture"); + +test "CaptureResult success" { + const r = capture.CaptureResult{ + .name = "test_capture", + .success = true, + .output = "test output", + .error_msg = "", + .duration_ms = 100, + }; + try std.testing.expect(r.success); + try std.testing.expectEqualStrings("test output", r.output); + try std.testing.expectEqual(@as(i64, 100), r.duration_ms); +} + +test "CaptureResult failure" { + const r = capture.CaptureResult{ + .name = "failed_capture", + .success = false, + .output = "", + .error_msg = "Command not found", + .duration_ms = 50, + }; + try std.testing.expect(!r.success); + try std.testing.expectEqualStrings("Command not found", r.error_msg); +} + +test "CaptureModule creation" { + const cmds = [_][]const u8{ "uname -a", "cat /etc/os-release" }; + const mod = capture.CaptureModule{ + .name = "os_version", + .display_name = "OS Version", + .commands = &cmds, + }; + try std.testing.expectEqualStrings("os_version", mod.name); + try std.testing.expectEqualStrings("OS Version", mod.display_name); + try std.testing.expectEqual(@as(usize, 2), mod.commands.len); +} + +test "redactPii leaves clean content unchanged" { + const alloc = std.testing.allocator; + const input = "normal log line with no sensitive data"; + const out = try capture.redactPii(alloc, input); + defer alloc.free(out); + try std.testing.expectEqualStrings(input, out); +} + +test "redactPii removes token with secret key" { + const alloc = std.testing.allocator; + const out = try capture.redactPii(alloc, "token=abc123xyz"); + defer alloc.free(out); + try std.testing.expect(std.mem.indexOf(u8, out, "abc123xyz") == null); +} + +test "redactPii redacts GitHub token prefix" { + const alloc = std.testing.allocator; + const out = try capture.redactPii(alloc, "auth ghp_secretvalue"); + defer alloc.free(out); + try std.testing.expect(std.mem.indexOf(u8, out, "ghp_secretvalue") == null); +} diff --git a/recovery/emergency-room/src/zig/handoff.zig b/recovery/emergency-room/src/zig/handoff.zig deleted file mode 120000 index 17b57b1f..00000000 --- a/recovery/emergency-room/src/zig/handoff.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/handoff.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/handoff.zig b/recovery/emergency-room/src/zig/handoff.zig new file mode 100644 index 00000000..a11cd12a --- /dev/null +++ b/recovery/emergency-room/src/zig/handoff.zig @@ -0,0 +1,266 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// handoff.zig — Handoff to specialized tools (psa, big-up). +// +// Ported from handoff.v (2026-04-17). +// +// CRIT-001: Path validation prevents shell-injection via incident.path. +// COULD-001: Correlation ID forwarded to downstream tools. +// HIGH-006: Log writes go through atomicWriteFile. + +const std = @import("std"); +const utils = @import("utils"); +const incident_mod = @import("incident"); + +pub const HandoffTarget = struct { + name: []const u8, + command: []const u8, + /// Arguments passed to the tool, in order. + args: []const []const u8, + description: []const u8, +}; + +// ============================================================================= +// Path safety +// ============================================================================= + +/// CRIT-001: Returns true only when every character is alphanumeric, dash, +/// underscore, dot, or forward-slash, and the path contains no `..` traversal. +pub fn isPathSafe(path: []const u8) bool { + if (path.len == 0) return false; + if (std.mem.indexOf(u8, path, "..") != null) return false; + for (path) |c| { + const ok = std.ascii.isAlphanumeric(c) or + c == '-' or c == '_' or c == '.' or c == '/'; + if (!ok) return false; + } + return true; +} + +// ============================================================================= +// Tool discovery +// ============================================================================= + +/// Check whether `name` resolves in PATH (platform-aware). +fn toolExists(allocator: std.mem.Allocator, name: []const u8) bool { + const argv: []const []const u8 = switch (@import("builtin").os.tag) { + .windows => &.{ "where", name }, + else => &.{ "command", "-v", name }, + }; + + const result = std.process.Child.run(.{ + .allocator = allocator, + .argv = argv, + }) catch return false; + defer allocator.free(result.stdout); + defer allocator.free(result.stderr); + return result.term == .Exited and result.term.Exited == 0; +} + +// ============================================================================= +// Public API +// ============================================================================= + +/// Attempt to hand off to a specialized tool (psa, then big-up). +/// Logs the attempt to `logs/handoff.log` and spawns the tool synchronously. +pub fn handoff( + allocator: std.mem.Allocator, + incident: *const incident_mod.Incident, + config: incident_mod.Config, +) void { + // CRIT-001: Validate incident path. + if (!isPathSafe(incident.path)) { + const red = "\x1b[31m"; + const yellow = "\x1b[33m"; + const reset = "\x1b[0m"; + std.debug.print( + "{s}[ERROR]{s} Invalid incident path detected (possible injection attempt)\n", + .{ red, reset }, + ); + std.debug.print( + "{s}[INFO]{s} Path must contain only alphanumeric, dash, underscore, dot, slash\n", + .{ yellow, reset }, + ); + utils.logError(allocator, incident.logs_path, "handoff", "Invalid incident path", &.{ + .{ .key = "path", .value = incident.path }, + }); + return; + } + + // Build target list; args slices are stack-allocated here. + const psa_args = [_][]const u8{ + "crisis", + "--incident", + incident.path, + "--correlation-id", + incident.correlation_id, + }; + const bigup_args = [_][]const u8{ + "scan", + "--incident", + incident.path, + "--correlation-id", + incident.correlation_id, + }; + + const targets = [_]HandoffTarget{ + .{ + .name = "psa", + .command = "psa", + .args = &psa_args, + .description = "Personal Sysadmin crisis mode", + }, + .{ + .name = "big-up", + .command = "big-up", + .args = &bigup_args, + .description = "Advanced diagnostics (non-mutating)", + }, + }; + + var found: ?HandoffTarget = null; + for (targets) |target| { + if (toolExists(allocator, target.command)) { + found = target; + break; + } + } + + if (found) |target| { + const blue = "\x1b[34m"; + const reset = "\x1b[0m"; + const cyan = "\x1b[36m"; + const yellow = "\x1b[33m"; + + std.debug.print( + "{s}[HANDOFF]{s} Found {s}: {s}\n", + .{ blue, reset, target.name, target.description }, + ); + std.debug.print("\n", .{}); + + if (config.dry_run) { + var argv_str = std.ArrayList(u8).empty; + defer argv_str.deinit(allocator); + argv_str.appendSlice(allocator, target.command) catch {}; + for (target.args) |arg| { + argv_str.append(allocator, ' ') catch {}; + argv_str.appendSlice(allocator, arg) catch {}; + } + std.debug.print( + "{s}[DRY-RUN]{s} Would execute: {s}\n", + .{ cyan, reset, argv_str.items }, + ); + return; + } + + logHandoff(allocator, incident, target, config); + spawnTool(allocator, target, yellow, reset); + } else { + const yellow = "\x1b[33m"; + const blue = "\x1b[34m"; + const cyan = "\x1b[36m"; + const reset = "\x1b[0m"; + std.debug.print( + "{s}[INFO]{s} No specialized tools found (psa, big-up)\n", + .{ yellow, reset }, + ); + std.debug.print( + "{s}[INFO]{s} Incident bundle is ready for manual review\n", + .{ blue, reset }, + ); + std.debug.print("\n", .{}); + std.debug.print("{s}Suggested next steps:{s}\n", .{ cyan, reset }); + std.debug.print(" 1. Review logs in: {s}\n", .{incident.logs_path}); + std.debug.print(" 2. Install psa or big-up for enhanced diagnostics\n", .{}); + std.debug.print(" 3. Share the incident bundle for analysis\n", .{}); + } +} + +fn spawnTool( + allocator: std.mem.Allocator, + target: HandoffTarget, + yellow: []const u8, + reset: []const u8, +) void { + // Build argv: [command, ...args]. + var argv = std.ArrayList([]const u8).empty; + defer argv.deinit(allocator); + argv.append(allocator, target.command) catch return; + for (target.args) |arg| argv.append(allocator, arg) catch return; + + // Run synchronously. + const result = std.process.Child.run(.{ + .allocator = allocator, + .argv = argv.items, + }) catch return; + defer allocator.free(result.stdout); + defer allocator.free(result.stderr); + + if (result.term == .Exited and result.term.Exited != 0) { + std.debug.print( + "{s}[WARN]{s} {s} exited with code {d}\n", + .{ yellow, reset, target.name, result.term.Exited }, + ); + } +} + +fn logHandoff( + allocator: std.mem.Allocator, + incident: *const incident_mod.Incident, + target: HandoffTarget, + config: incident_mod.Config, +) void { + if (config.dry_run) return; + + const log_path = std.fs.path.join( + allocator, + &.{ incident.logs_path, "handoff.log" }, + ) catch return; + defer allocator.free(log_path); + + var args_str = std.ArrayList(u8).empty; + defer args_str.deinit(allocator); + for (target.args, 0..) |arg, i| { + if (i != 0) args_str.append(allocator, ' ') catch {}; + args_str.appendSlice(allocator, arg) catch {}; + } + + const content = std.fmt.allocPrint( + allocator, + "schema_version: {s}\n\nHandoff to: {s}\nCommand: {s} {s}\nDescription: {s}\n", + .{ + utils.schema_version, + target.name, + target.command, + args_str.items, + target.description, + }, + ) catch return; + defer allocator.free(content); + + utils.atomicWriteFile(allocator, log_path, content) catch |err| { + std.debug.print("\x1b[33m[WARN]\x1b[0m Could not write handoff log: {}\n", .{err}); + }; +} + +// ============================================================================= +// Tests +// ============================================================================= + +test "isPathSafe accepts safe paths" { + try std.testing.expect(isPathSafe("/tmp/valid-path")); + try std.testing.expect(isPathSafe("/home/user/incident-20260102")); +} + +test "isPathSafe rejects dangerous paths" { + try std.testing.expect(!isPathSafe("/tmp/path;rm -rf /")); + try std.testing.expect(!isPathSafe("/tmp/path|cat /etc/passwd")); + try std.testing.expect(!isPathSafe("/tmp/path`whoami`")); + try std.testing.expect(!isPathSafe("/tmp/path$(id)")); +} + +test "isPathSafe rejects path traversal and empty" { + try std.testing.expect(!isPathSafe("/tmp/../etc/passwd")); + try std.testing.expect(!isPathSafe("")); +} diff --git a/recovery/emergency-room/src/zig/incident.zig b/recovery/emergency-room/src/zig/incident.zig deleted file mode 120000 index 4d8abcf7..00000000 --- a/recovery/emergency-room/src/zig/incident.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/incident.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/incident.zig b/recovery/emergency-room/src/zig/incident.zig new file mode 100644 index 00000000..c746fddd --- /dev/null +++ b/recovery/emergency-room/src/zig/incident.zig @@ -0,0 +1,421 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// incident.zig — Incident-bundle creation and management. +// +// Ported from incident.v (2026-04-17). +// +// HIGH-005: Incident IDs embed nanoseconds + 4-hex random suffix to prevent +// collisions when the process is called in a tight loop. +// COULD-001: Correlation IDs (corr-XXXXXXXX) for cross-tool tracing. +// HIGH-006: All file writes go through atomicWriteFile. + +const std = @import("std"); +const utils = @import("utils"); + +/// Runtime configuration (mirrors V `Config` struct). +pub const Config = struct { + quick_backup_dest: []const u8 = "", + dry_run: bool = false, + verbose: bool = false, +}; + +/// Per-command execution log entry. +pub const CommandLog = struct { + name: []const u8, + command: []const u8, + started_at: []const u8, + ended_at: []const u8, + exit_code: i32, + output_len: usize, +}; + +/// Platform snapshot embedded in the envelope. +pub const PlatformInfo = struct { + os: []const u8, + arch: []const u8, + kernel: []const u8, +}; + +/// Trigger metadata embedded in the envelope. +pub const TriggerInfo = struct { + version: []const u8, + dry_run: bool, + args: []const u8, +}; + +/// Top-level JSON envelope written to `incident.json`. +pub const IncidentEnvelope = struct { + schema_version: []const u8, + id: []const u8, + correlation_id: []const u8, + created_at: []const u8, + hostname: []const u8, + username: []const u8, + working_dir: []const u8, + platform: PlatformInfo, + trigger: TriggerInfo, + commands: []const CommandLog, +}; + +/// Live incident state carried through the run. +/// Owns `id`, `correlation_id`, `path`, `logs_path` — caller must call deinit. +pub const Incident = struct { + allocator: std.mem.Allocator, + id: []const u8, + correlation_id: []const u8, + path: []const u8, + logs_path: []const u8, + created_at_ms: i64, + commands: std.ArrayList(CommandLog), + + pub fn deinit(self: *Incident) void { + self.allocator.free(self.id); + self.allocator.free(self.correlation_id); + self.allocator.free(self.path); + self.allocator.free(self.logs_path); + for (self.commands.items) |*cmd| { + self.allocator.free(cmd.name); + self.allocator.free(cmd.command); + self.allocator.free(cmd.started_at); + self.allocator.free(cmd.ended_at); + } + self.commands.deinit(self.allocator); + } +}; + +// ============================================================================= +// Public API +// ============================================================================= + +pub const CreateError = error{ + AlreadyExists, + MkdirFailed, + WriteFailed, + OutOfMemory, +}; + +/// Create the incident bundle directory tree and write the initial +/// `incident.json`. In dry-run mode the directory is *not* created. +pub fn createIncidentBundle( + allocator: std.mem.Allocator, + config: Config, +) CreateError!Incident { + const now_ms = std.time.milliTimestamp(); + const now_ns = std.time.nanoTimestamp(); + + var ts_buf: [16]u8 = undefined; + const ts = buildTimestampId(now_ms, &ts_buf); + + var rand_raw: [2]u8 = undefined; + std.crypto.random.bytes(&rand_raw); + const hex_suffix_arr = std.fmt.bytesToHex(rand_raw, .lower); + + const nanos_within_sec: u64 = @intCast(@rem(@abs(now_ns), 1_000_000_000)); + + const incident_id = std.fmt.allocPrint( + allocator, + "incident-{s}-{d:0>9}-{s}", + .{ ts, nanos_within_sec, hex_suffix_arr }, + ) catch return CreateError.OutOfMemory; + errdefer allocator.free(incident_id); + + var corr_raw: [4]u8 = undefined; + std.crypto.random.bytes(&corr_raw); + const correlation_id = std.fmt.allocPrint( + allocator, + "corr-{s}", + .{std.fmt.bytesToHex(corr_raw, .lower)}, + ) catch return CreateError.OutOfMemory; + errdefer allocator.free(correlation_id); + + var cwd_buf: [std.fs.max_path_bytes]u8 = undefined; + const cwd = std.process.getCwd(&cwd_buf) catch ""; + + const incident_path = std.fs.path.join(allocator, &.{ cwd, incident_id }) catch + return CreateError.OutOfMemory; + errdefer allocator.free(incident_path); + + const logs_path = std.fs.path.join(allocator, &.{ incident_path, "logs" }) catch + return CreateError.OutOfMemory; + errdefer allocator.free(logs_path); + + if (config.dry_run) { + const cyan = "\x1b[36m"; + const reset = "\x1b[0m"; + std.debug.print("{s}[DRY-RUN]{s} Would create: {s}\n", .{ cyan, reset, incident_path }); + std.debug.print("{s}[DRY-RUN]{s} Would create: {s}\n", .{ cyan, reset, logs_path }); + std.debug.print("{s}[DRY-RUN]{s} Correlation ID: {s}\n", .{ cyan, reset, correlation_id }); + return Incident{ + .allocator = allocator, + .id = incident_id, + .correlation_id = correlation_id, + .path = incident_path, + .logs_path = logs_path, + .created_at_ms = now_ms, + .commands = std.ArrayList(CommandLog).empty, + }; + } + + if (std.fs.accessAbsolute(incident_path, .{})) |_| { + return CreateError.AlreadyExists; + } else |_| {} + + std.fs.makeDirAbsolute(incident_path) catch return CreateError.MkdirFailed; + std.fs.makeDirAbsolute(logs_path) catch return CreateError.MkdirFailed; + + var incident = Incident{ + .allocator = allocator, + .id = incident_id, + .correlation_id = correlation_id, + .path = incident_path, + .logs_path = logs_path, + .created_at_ms = now_ms, + .commands = std.ArrayList(CommandLog).empty, + }; + + writeIncidentJson(&incident, config) catch return CreateError.WriteFailed; + return incident; +} + +/// (Re-)write `incident.json` with the current state of the incident. +pub fn writeIncidentJson(incident: *const Incident, config: Config) !void { + var ts_buf: [32]u8 = undefined; + const created_at = utils.formatRfc3339(incident.created_at_ms, &ts_buf); + + var hostname_buf: [std.posix.HOST_NAME_MAX]u8 = undefined; + const hostname = std.posix.gethostname(&hostname_buf) catch "unknown"; + + const username = std.posix.getenv("USER") orelse ""; + + var cwd_buf: [std.fs.max_path_bytes]u8 = undefined; + const cwd = std.process.getCwd(&cwd_buf) catch ""; + + var args_buf = std.ArrayList(u8).empty; + defer args_buf.deinit(incident.allocator); + var arg_iter = try std.process.argsWithAllocator(incident.allocator); + defer arg_iter.deinit(); + var first = true; + while (arg_iter.next()) |arg| { + if (!first) try args_buf.append(incident.allocator, ' '); + try args_buf.appendSlice(incident.allocator, arg); + first = false; + } + + const kernel = utils.getKernelVersion(incident.allocator); + defer incident.allocator.free(kernel); + + const envelope = IncidentEnvelope{ + .schema_version = utils.schema_version, + .id = incident.id, + .correlation_id = incident.correlation_id, + .created_at = created_at, + .hostname = hostname, + .username = username, + .working_dir = cwd, + .platform = .{ + .os = utils.getOsName(), + .arch = utils.getArch(), + .kernel = kernel, + }, + .trigger = .{ + .version = app_version, + .dry_run = config.dry_run, + .args = args_buf.items, + }, + .commands = incident.commands.items, + }; + + if (config.dry_run) { + std.debug.print("\x1b[36m[DRY-RUN]\x1b[0m Would write incident.json\n", .{}); + return; + } + + const json_path = try std.fs.path.join(incident.allocator, &.{ incident.path, "incident.json" }); + defer incident.allocator.free(json_path); + + const json_bytes = try std.json.Stringify.valueAlloc( + incident.allocator, + envelope, + .{ .whitespace = .indent_2 }, + ); + defer incident.allocator.free(json_bytes); + + try utils.atomicWriteFile(incident.allocator, json_path, json_bytes); +} + +/// Update `incident.json` in-place. Silently warns on failure. +pub fn updateIncidentJson(incident: *const Incident, config: Config) void { + if (config.dry_run) return; + writeIncidentJson(incident, config) catch |err| { + std.debug.print("\x1b[33m[WARN]\x1b[0m Could not update incident.json: {}\n", .{err}); + }; +} + +/// Write `receipt.adoc` into the incident bundle directory. +pub fn writeReceipt(incident: *const Incident, config: Config) !void { + const receipt_path = try std.fs.path.join( + incident.allocator, + &.{ incident.path, "receipt.adoc" }, + ); + defer incident.allocator.free(receipt_path); + + var buf = std.ArrayList(u8).empty; + defer buf.deinit(incident.allocator); + const w = buf.writer(incident.allocator); + + var ts_buf: [32]u8 = undefined; + const created_at = utils.formatRfc3339(incident.created_at_ms, &ts_buf); + + var hostname_buf: [std.posix.HOST_NAME_MAX]u8 = undefined; + const hostname = std.posix.gethostname(&hostname_buf) catch "unknown"; + + try w.writeAll( + \\= Incident Receipt + \\:icons: font + \\:toc: + \\ + \\== Summary + \\ + \\|=== + \\|Field |Value + \\ + \\ + ); + try w.print("|Incident ID\n|`{s}`\n\n", .{incident.id}); + try w.print("|Created\n|{s}\n\n", .{created_at}); + try w.print("|Hostname\n|{s}\n\n", .{hostname}); + try w.print("|Platform\n|{s} ({s})\n\n", .{ utils.getOsName(), utils.getArch() }); + try w.print("|Dry Run\n|{}\n|===\n\n", .{config.dry_run}); + + try w.writeAll("== Commands Executed\n\n"); + if (incident.commands.items.len == 0) { + try w.writeAll("_No commands logged._\n"); + } else { + try w.writeAll("|===\n|Command |Exit Code |Output Size\n\n"); + for (incident.commands.items) |cmd| { + try w.print("|{s}\n|{d}\n|{d} bytes\n\n", .{ cmd.name, cmd.exit_code, cmd.output_len }); + } + try w.writeAll("|===\n"); + } + + try w.writeAll("\n== Log Files\n\n"); + if (config.dry_run) { + try w.writeAll("_Dry run - no log files created._\n"); + } else { + var log_dir = std.fs.openDirAbsolute(incident.logs_path, .{ .iterate = true }) catch { + try w.writeAll("_No log files._\n"); + return writeReceiptFinish(&buf, receipt_path, config, incident.allocator); + }; + defer log_dir.close(); + var it = log_dir.iterate(); + var any = false; + while (it.next() catch null) |entry| { + try w.print("* `logs/{s}`\n", .{entry.name}); + any = true; + } + if (!any) try w.writeAll("_No log files._\n"); + } + + try w.writeAll( + \\ + \\== Next Steps + \\ + \\1. Review the captured diagnostics in the `logs/` directory + \\2. If issues persist, run specialized tools: + \\ - `psa crisis --incident ` + \\ - `big-up scan --incident ` + \\3. Report findings via feedback-o-tron + \\ + \\== License + \\ + \\MPL-2.0 + \\ + ); + + try writeReceiptFinish(&buf, receipt_path, config, incident.allocator); +} + +fn writeReceiptFinish( + buf: *std.ArrayList(u8), + receipt_path: []const u8, + config: Config, + allocator: std.mem.Allocator, +) !void { + if (config.dry_run) { + std.debug.print("\x1b[36m[DRY-RUN]\x1b[0m Would write receipt.adoc\n", .{}); + return; + } + try utils.atomicWriteFile(allocator, receipt_path, buf.items); + std.debug.print("\x1b[32m[OK]\x1b[0m Written receipt.adoc\n", .{}); +} + +// ============================================================================= +// Internal helpers +// ============================================================================= + +fn buildTimestampId(ms: i64, buf: []u8) []const u8 { + const secs: u64 = @intCast(@divTrunc(ms, 1000)); + const epoch_s = std.time.epoch.EpochSeconds{ .secs = secs }; + const year_day = epoch_s.getEpochDay().calculateYearDay(); + const month_day = year_day.calculateMonthDay(); + const day_secs = epoch_s.getDaySeconds(); + return std.fmt.bufPrint(buf, "{d:0>4}{d:0>2}{d:0>2}-{d:0>2}{d:0>2}{d:0>2}", .{ + year_day.year, + month_day.month.numeric(), + month_day.day_index + 1, + day_secs.getHoursIntoDay(), + day_secs.getMinutesIntoHour(), + day_secs.getSecondsIntoMinute(), + }) catch buf[0..0]; +} + +pub const app_version: []const u8 = "0.1.0"; +pub const app_name: []const u8 = "emergency-button"; + +// ============================================================================= +// Tests +// ============================================================================= + +test "incident id starts with 'incident-'" { + const alloc = std.testing.allocator; + const config = Config{ .dry_run = true }; + var incident = try createIncidentBundle(alloc, config); + defer incident.deinit(); + try std.testing.expect(std.mem.startsWith(u8, incident.id, "incident-")); +} + +test "correlation id starts with 'corr-' and is 13 chars" { + const alloc = std.testing.allocator; + const config = Config{ .dry_run = true }; + var incident = try createIncidentBundle(alloc, config); + defer incident.deinit(); + try std.testing.expect(std.mem.startsWith(u8, incident.correlation_id, "corr-")); + try std.testing.expectEqual(@as(usize, 13), incident.correlation_id.len); +} + +test "platform info values are non-empty" { + const os_name = utils.getOsName(); + const arch = utils.getArch(); + try std.testing.expect(os_name.len > 0); + try std.testing.expect(arch.len > 0); +} + +test "command log can be appended to incident" { + const alloc = std.testing.allocator; + const config = Config{ .dry_run = true }; + var incident = try createIncidentBundle(alloc, config); + defer incident.deinit(); + + const cmd = CommandLog{ + .name = try alloc.dupe(u8, "uname"), + .command = try alloc.dupe(u8, "uname -a"), + .started_at = try alloc.dupe(u8, "2026-01-02T20:00:00.000Z"), + .ended_at = try alloc.dupe(u8, "2026-01-02T20:00:01.000Z"), + .exit_code = 0, + .output_len = 128, + }; + try incident.commands.append(alloc, cmd); + try std.testing.expectEqual(@as(usize, 1), incident.commands.items.len); + try std.testing.expectEqual(@as(i32, 0), incident.commands.items[0].exit_code); +} diff --git a/recovery/emergency-room/src/zig/incident_test.zig b/recovery/emergency-room/src/zig/incident_test.zig deleted file mode 120000 index 2d419ba8..00000000 --- a/recovery/emergency-room/src/zig/incident_test.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/incident_test.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/incident_test.zig b/recovery/emergency-room/src/zig/incident_test.zig new file mode 100644 index 00000000..4ce8bb0b --- /dev/null +++ b/recovery/emergency-room/src/zig/incident_test.zig @@ -0,0 +1,102 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// incident_test.zig — Tests for incident bundle creation and management. +// +// Ported from incident_test.v (2026-04-17). + +const std = @import("std"); +const incident_mod = @import("incident"); +const utils = @import("utils"); + +test "incident envelope has required fields" { + const env = incident_mod.IncidentEnvelope{ + .schema_version = utils.schema_version, + .id = "incident-test-123", + .correlation_id = "corr-12345678", + .created_at = "2026-04-17T10:00:00.000Z", + .hostname = "test-host", + .username = "test-user", + .working_dir = "/tmp", + .platform = .{ .os = "Linux", .arch = "x86_64", .kernel = "6.0.0" }, + .trigger = .{ .version = "0.1.0", .dry_run = false, .args = "trigger" }, + .commands = &.{}, + }; + + try std.testing.expectEqualStrings(utils.schema_version, env.schema_version); + try std.testing.expect(std.mem.startsWith(u8, env.id, "incident-")); + try std.testing.expect(env.hostname.len > 0); + try std.testing.expect(env.platform.os.len > 0); +} + +test "platform info fields" { + const info = incident_mod.PlatformInfo{ + .os = "Linux", + .arch = "x86_64", + .kernel = "6.0.0-test", + }; + try std.testing.expectEqualStrings("Linux", info.os); + try std.testing.expectEqualStrings("x86_64", info.arch); + try std.testing.expectEqualStrings("6.0.0-test", info.kernel); +} + +test "trigger info dry run flag" { + const trigger = incident_mod.TriggerInfo{ + .version = "0.1.0", + .dry_run = true, + .args = "trigger --dry-run", + }; + try std.testing.expect(trigger.dry_run); + try std.testing.expect(std.mem.indexOf(u8, trigger.args, "--dry-run") != null); +} + +test "command log creation" { + const log = incident_mod.CommandLog{ + .name = "test_command", + .command = "echo hello", + .started_at = "2026-01-02T20:00:00.000Z", + .ended_at = "2026-01-02T20:00:01.000Z", + .exit_code = 0, + .output_len = 6, + }; + try std.testing.expectEqualStrings("test_command", log.name); + try std.testing.expectEqual(@as(i32, 0), log.exit_code); + try std.testing.expectEqual(@as(usize, 6), log.output_len); +} + +test "incident id format starts with incident-" { + const alloc = std.testing.allocator; + const config = incident_mod.Config{ .dry_run = true }; + var inc = try incident_mod.createIncidentBundle(alloc, config); + defer inc.deinit(); + try std.testing.expect(std.mem.startsWith(u8, inc.id, "incident-")); + try std.testing.expect(inc.id.len > 9); +} + +test "dry run config flags" { + const config = incident_mod.Config{ + .quick_backup_dest = "", + .dry_run = true, + .verbose = false, + }; + try std.testing.expect(config.dry_run); + try std.testing.expect(!config.verbose); + try std.testing.expectEqual(@as(usize, 0), config.quick_backup_dest.len); +} + +test "correlation id format is 13 chars starting with corr-" { + const alloc = std.testing.allocator; + const config = incident_mod.Config{ .dry_run = true }; + var inc = try incident_mod.createIncidentBundle(alloc, config); + defer inc.deinit(); + try std.testing.expect(std.mem.startsWith(u8, inc.correlation_id, "corr-")); + try std.testing.expectEqual(@as(usize, 13), inc.correlation_id.len); +} + +test "incident struct command list starts empty" { + const alloc = std.testing.allocator; + const config = incident_mod.Config{ .dry_run = true }; + var inc = try incident_mod.createIncidentBundle(alloc, config); + defer inc.deinit(); + try std.testing.expectEqual(@as(usize, 0), inc.commands.items.len); +} diff --git a/recovery/emergency-room/src/zig/integration_test.zig b/recovery/emergency-room/src/zig/integration_test.zig deleted file mode 120000 index a2eab1fe..00000000 --- a/recovery/emergency-room/src/zig/integration_test.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/integration_test.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/integration_test.zig b/recovery/emergency-room/src/zig/integration_test.zig new file mode 100644 index 00000000..45e724fe --- /dev/null +++ b/recovery/emergency-room/src/zig/integration_test.zig @@ -0,0 +1,131 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// integration_test.zig — Integration tests for full emergency-button workflow. +// +// Ported from integration_test.v (2026-04-17). + +const std = @import("std"); +const incident_mod = @import("incident"); +const handoff_mod = @import("handoff"); +const backup_mod = @import("backup"); +const utils = @import("utils"); + +test "incident bundle creation dry run" { + const alloc = std.testing.allocator; + const config = incident_mod.Config{ .dry_run = true }; + + var inc = try incident_mod.createIncidentBundle(alloc, config); + defer inc.deinit(); + + try std.testing.expect(std.mem.startsWith(u8, inc.id, "incident-")); + try std.testing.expect(std.mem.startsWith(u8, inc.correlation_id, "corr-")); + try std.testing.expectEqual(@as(usize, 13), inc.correlation_id.len); + try std.testing.expect(inc.path.len > 0); + try std.testing.expect(std.mem.indexOf(u8, inc.logs_path, "logs") != null); +} + +test "incident envelope JSON can be stringified" { + const alloc = std.testing.allocator; + + const env = incident_mod.IncidentEnvelope{ + .schema_version = utils.schema_version, + .id = "incident-test-integration-001", + .correlation_id = "corr-12345678", + .created_at = "2026-04-17T10:00:00.000Z", + .hostname = "test-host", + .username = "test-user", + .working_dir = "/tmp", + .platform = .{ .os = "Linux", .arch = "x86_64", .kernel = "6.0.0" }, + .trigger = .{ .version = incident_mod.app_version, .dry_run = true, .args = "trigger --dry-run" }, + .commands = &.{}, + }; + + const json_bytes = try std.json.Stringify.valueAlloc(alloc, env, .{}); + defer alloc.free(json_bytes); + + try std.testing.expect(std.mem.indexOf(u8, json_bytes, "schema_version") != null); + try std.testing.expect(std.mem.indexOf(u8, json_bytes, "correlation_id") != null); + try std.testing.expect(std.mem.indexOf(u8, json_bytes, "corr-12345678") != null); +} + +test "handoff targets include correlation ID" { + const alloc = std.testing.allocator; + const config = incident_mod.Config{ .dry_run = true }; + var inc = try incident_mod.createIncidentBundle(alloc, config); + defer inc.deinit(); + + // Verify the correlation ID format is correct for downstream use. + try std.testing.expect(std.mem.startsWith(u8, inc.correlation_id, "corr-")); + try std.testing.expectEqual(@as(usize, 13), inc.correlation_id.len); +} + +test "path validation rejects dangerous chars" { + try std.testing.expect(!handoff_mod.isPathSafe("/tmp/path;rm -rf /")); + try std.testing.expect(!handoff_mod.isPathSafe("/tmp/path|cat /etc/passwd")); + try std.testing.expect(!handoff_mod.isPathSafe("/tmp/path`whoami`")); + try std.testing.expect(!handoff_mod.isPathSafe("/tmp/path$(id)")); + try std.testing.expect(!handoff_mod.isPathSafe("/tmp/../etc/passwd")); + try std.testing.expect(!handoff_mod.isPathSafe("")); +} + +test "path validation accepts safe paths" { + try std.testing.expect(handoff_mod.isPathSafe("/tmp/valid-path")); + try std.testing.expect(handoff_mod.isPathSafe("/home/user/incident-20260102")); +} + +test "backup path validation rejects dangerous characters" { + const alloc = std.testing.allocator; + try std.testing.expectError(error.DangerousChar, backup_mod.validateSafePath(alloc, "/tmp/backup;rm -rf /")); + try std.testing.expectError(error.DangerousChar, backup_mod.validateSafePath(alloc, "/tmp/backup|cat /etc/passwd")); +} + +test "command log appended correctly" { + const alloc = std.testing.allocator; + const config = incident_mod.Config{ .dry_run = true }; + var inc = try incident_mod.createIncidentBundle(alloc, config); + defer inc.deinit(); + + const cmd = incident_mod.CommandLog{ + .name = try alloc.dupe(u8, "uname"), + .command = try alloc.dupe(u8, "uname -a"), + .started_at = try alloc.dupe(u8, "2026-04-17T10:00:00.000Z"), + .ended_at = try alloc.dupe(u8, "2026-04-17T10:00:01.000Z"), + .exit_code = 0, + .output_len = 128, + }; + try inc.commands.append(alloc, cmd); + try std.testing.expectEqual(@as(usize, 1), inc.commands.items.len); + try std.testing.expectEqual(@as(i32, 0), inc.commands.items[0].exit_code); +} + +test "schema version is set and semver" { + try std.testing.expect(utils.schema_version.len > 0); + try std.testing.expect(std.mem.indexOf(u8, utils.schema_version, ".") != null); +} + +test "platform detection returns known values" { + const os_name = utils.getOsName(); + const arch = utils.getArch(); + + const valid_os = [_][]const u8{ "Linux", "macOS", "Windows", "Unknown" }; + const valid_arch = [_][]const u8{ "x86_64", "arm64", "i386", "unknown" }; + + var os_ok = false; + for (valid_os) |v| { + if (std.mem.eql(u8, os_name, v)) { + os_ok = true; + break; + } + } + try std.testing.expect(os_ok); + + var arch_ok = false; + for (valid_arch) |v| { + if (std.mem.eql(u8, arch, v)) { + arch_ok = true; + break; + } + } + try std.testing.expect(arch_ok); +} diff --git a/recovery/emergency-room/src/zig/main.zig b/recovery/emergency-room/src/zig/main.zig deleted file mode 120000 index 50af716d..00000000 --- a/recovery/emergency-room/src/zig/main.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/main.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/main.zig b/recovery/emergency-room/src/zig/main.zig new file mode 100644 index 00000000..3d3fe3c1 --- /dev/null +++ b/recovery/emergency-room/src/zig/main.zig @@ -0,0 +1,211 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// main.zig — Emergency Button CLI entry-point. +// +// Ported from main.v (2026-04-17). +// +// Emergency system recovery launcher. +// Offline-first, non-destructive, idempotent. +// +// USAGE +// emergency-button trigger [OPTIONS] +// emergency-button help +// emergency-button version +// +// Options (for trigger): +// -b, --quick-backup Run quick backup to destination (opt-in) +// -n, --dry-run Preview actions without executing +// -V, --verbose Verbose output + +const std = @import("std"); +const incident_mod = @import("incident"); +const capture = @import("capture"); +const handoff = @import("handoff"); +const backup = @import("backup"); + +// Terminal colours. +const c_reset = "\x1b[0m"; +const c_bold = "\x1b[1m"; +const c_red = "\x1b[31m"; +const c_green = "\x1b[32m"; +const c_yellow = "\x1b[33m"; +const c_blue = "\x1b[34m"; +const c_cyan = "\x1b[36m"; + +pub fn main() !void { + var gpa = std.heap.GeneralPurposeAllocator(.{}){}; + defer _ = gpa.deinit(); + const allocator = gpa.allocator(); + + var args = try std.process.argsWithAllocator(allocator); + defer args.deinit(); + + // Skip executable name. + _ = args.next(); + + const subcommand = args.next() orelse { + showHelp(); + return; + }; + + if (std.mem.eql(u8, subcommand, "trigger")) { + try runTrigger(allocator, &args); + } else if (std.mem.eql(u8, subcommand, "help") or + std.mem.eql(u8, subcommand, "--help") or + std.mem.eql(u8, subcommand, "-h")) + { + showHelp(); + } else if (std.mem.eql(u8, subcommand, "version") or + std.mem.eql(u8, subcommand, "--version") or + std.mem.eql(u8, subcommand, "-v")) + { + std.debug.print("{s} {s}\n", .{ incident_mod.app_name, incident_mod.app_version }); + } else { + std.debug.print( + "{s}[ERROR]{s} Unknown command: {s}\n", + .{ c_red, c_reset, subcommand }, + ); + std.debug.print( + "Use \"{s} help\" for usage information.\n", + .{incident_mod.app_name}, + ); + std.process.exit(1); + } +} + +// ============================================================================= +// Subcommands +// ============================================================================= + +fn runTrigger( + allocator: std.mem.Allocator, + args: *std.process.ArgIterator, +) !void { + var quick_backup_dest: []const u8 = ""; + var dry_run = false; + var verbose = false; + + // Simple flag parser — same semantics as the V original. + while (args.next()) |arg| { + if (std.mem.eql(u8, arg, "--quick-backup") or std.mem.eql(u8, arg, "-b")) { + quick_backup_dest = args.next() orelse { + std.debug.print( + "{s}[ERROR]{s} --quick-backup requires a path argument\n", + .{ c_red, c_reset }, + ); + std.process.exit(1); + }; + } else if (std.mem.eql(u8, arg, "--dry-run") or std.mem.eql(u8, arg, "-n")) { + dry_run = true; + } else if (std.mem.eql(u8, arg, "--verbose") or std.mem.eql(u8, arg, "-V")) { + verbose = true; + } else { + std.debug.print( + "{s}[ERROR]{s} Unknown option: {s}\n", + .{ c_red, c_reset, arg }, + ); + std.process.exit(1); + } + } + + const config = incident_mod.Config{ + .quick_backup_dest = quick_backup_dest, + .dry_run = dry_run, + .verbose = verbose, + }; + + // Banner. + std.debug.print("\n", .{}); + std.debug.print("{s}╔══════════════════════════════════════════╗{s}\n", .{ c_blue, c_reset }); + std.debug.print("{s}║{s} {s}EMERGENCY BUTTON{s} {s}║{s}\n", .{ c_blue, c_reset, c_bold, c_reset, c_blue, c_reset }); + std.debug.print("{s}║{s} Safe • Offline • Idempotent {s}║{s}\n", .{ c_blue, c_reset, c_blue, c_reset }); + std.debug.print("{s}╚══════════════════════════════════════════╝{s}\n", .{ c_blue, c_reset }); + std.debug.print("\n", .{}); + + if (config.dry_run) { + std.debug.print("{s}[DRY-RUN]{s} Preview mode - no changes will be made\n\n", .{ c_yellow, c_reset }); + } + + // Create incident bundle. + var incident = incident_mod.createIncidentBundle(allocator, config) catch |err| { + std.debug.print( + "{s}[ERROR]{s} Failed to create incident bundle: {}\n", + .{ c_red, c_reset, err }, + ); + std.process.exit(1); + }; + defer incident.deinit(); + + std.debug.print("{s}[OK]{s} Created incident bundle: {s}\n", .{ c_green, c_reset, incident.path }); + std.debug.print("{s}[INFO]{s} Correlation ID: {s}\n\n", .{ c_blue, c_reset, incident.correlation_id }); + + // Capture diagnostics. + std.debug.print("{s}[INFO]{s} Capturing safe diagnostics...\n", .{ c_blue, c_reset }); + capture.captureDiagnostics(allocator, &incident, config); + + // Write receipt. + incident_mod.writeReceipt(&incident, config) catch |err| { + std.debug.print("{s}[WARN]{s} Could not write receipt: {}\n", .{ c_yellow, c_reset, err }); + }; + + // Optional quick backup. + if (config.quick_backup_dest.len > 0) { + std.debug.print("\n", .{}); + std.debug.print( + "{s}[INFO]{s} Quick backup requested to: {s}\n", + .{ c_blue, c_reset, config.quick_backup_dest }, + ); + backup.runQuickBackup(allocator, &incident, config); + } + + // Handoff. + std.debug.print("\n", .{}); + handoff.handoff(allocator, &incident, config); + + // Done banner. + std.debug.print("\n", .{}); + std.debug.print("{s}════════════════════════════════════════════{s}\n", .{ c_green, c_reset }); + std.debug.print("{s}[DONE]{s} Incident bundle ready: {s}\n", .{ c_green, c_reset, incident.path }); + std.debug.print("{s}════════════════════════════════════════════{s}\n", .{ c_green, c_reset }); +} + +fn showHelp() void { + std.debug.print( + \\{s}emergency-button{s} - Emergency system recovery launcher + \\ + \\{s}USAGE:{s} + \\ emergency-button trigger [OPTIONS] + \\ + \\{s}COMMANDS:{s} + \\ trigger Create incident bundle and capture diagnostics + \\ help Show this help message + \\ version Show version information + \\ + \\{s}OPTIONS (for trigger):{s} + \\ -b, --quick-backup Run quick backup to destination (opt-in) + \\ -n, --dry-run Preview actions without executing + \\ -V, --verbose Verbose output + \\ + \\{s}EXAMPLES:{s} + \\ emergency-button trigger + \\ emergency-button trigger --dry-run + \\ emergency-button trigger --quick-backup /mnt/backup + \\ + \\{s}SAFETY:{s} + \\ - Default action is non-destructive and offline-first + \\ - No silent downloads, no auto-fixes + \\ - Idempotent: pressing twice is safe + \\ - Everything logged to incident bundle + \\ + , + .{ + c_bold, c_reset, + c_bold, c_reset, + c_bold, c_reset, + c_bold, c_reset, + c_bold, c_reset, + c_bold, c_reset, + }, + ); +} diff --git a/recovery/emergency-room/src/zig/utils.zig b/recovery/emergency-room/src/zig/utils.zig deleted file mode 120000 index c74bcbc8..00000000 --- a/recovery/emergency-room/src/zig/utils.zig +++ /dev/null @@ -1 +0,0 @@ -../../../../emergency-button/src/zig/utils.zig \ No newline at end of file diff --git a/recovery/emergency-room/src/zig/utils.zig b/recovery/emergency-room/src/zig/utils.zig new file mode 100644 index 00000000..1853726e --- /dev/null +++ b/recovery/emergency-room/src/zig/utils.zig @@ -0,0 +1,301 @@ +// SPDX-License-Identifier: MPL-2.0 +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) +// +// utils.zig — Shared utilities for emergency-button. +// +// Ported from utils.v (2026-04-17). All public V functions have working +// equivalents here. +// +// HIGH-006: Atomic file writes use temp-file + rename so a mid-write crash +// cannot leave truncated data. +// HIGH-008: Structured logging to incident/logs/structured.log. + +const std = @import("std"); + +/// Schema version for all output envelopes. +pub const schema_version: []const u8 = "1.0.0"; + +// ============================================================================= +// Atomic file I/O +// ============================================================================= + +/// Write `content` to `path` atomically using a sibling temp file + rename. +/// Preserves the same-filesystem guarantee required for POSIX rename(2). +pub fn atomicWriteFile( + allocator: std.mem.Allocator, + path: []const u8, + content: []const u8, +) !void { + const dir_path = std.fs.path.dirname(path) orelse "."; + const base = std.fs.path.basename(path); + + var rand_bytes: [4]u8 = undefined; + std.crypto.random.bytes(&rand_bytes); + const hex = std.fmt.bytesToHex(rand_bytes, .lower); + + const temp_name = try std.fmt.allocPrint( + allocator, + ".{s}.{s}.tmp", + .{ base, hex }, + ); + defer allocator.free(temp_name); + + const temp_path = try std.fs.path.join(allocator, &.{ dir_path, temp_name }); + defer allocator.free(temp_path); + + { + const f = std.fs.createFileAbsolute(temp_path, .{}) catch |err| return err; + defer f.close(); + try f.writeAll(content); + } + + std.fs.renameAbsolute(temp_path, path) catch |err| { + std.fs.deleteFileAbsolute(temp_path) catch {}; + return err; + }; +} + +/// Read the existing file content (empty if absent), append `content`, +/// then atomic-write the result. +pub fn atomicAppendFile( + allocator: std.mem.Allocator, + path: []const u8, + content: []const u8, +) !void { + const existing_bytes = if (std.fs.openFileAbsolute(path, .{})) |f| blk: { + defer f.close(); + break :blk try f.readToEndAlloc(allocator, 64 * 1024 * 1024); + } else |_| try allocator.dupe(u8, ""); + defer allocator.free(existing_bytes); + + const combined = try std.mem.concat(allocator, u8, &.{ existing_bytes, content }); + defer allocator.free(combined); + + try atomicWriteFile(allocator, path, combined); +} + +// ============================================================================= +// Structured logging +// ============================================================================= + +pub const LogEntry = struct { + timestamp: []const u8, + level: []const u8, + component: []const u8, + message: []const u8, + context: []const KV, + + pub const KV = struct { key: []const u8, value: []const u8 }; +}; + +pub fn formatLogEntry(allocator: std.mem.Allocator, entry: LogEntry) ![]u8 { + var parts = std.ArrayList(u8).empty; + + try parts.appendSlice(allocator, "ts="); + try parts.appendSlice(allocator, entry.timestamp); + try parts.appendSlice(allocator, " level="); + try parts.appendSlice(allocator, entry.level); + try parts.appendSlice(allocator, " component="); + try parts.appendSlice(allocator, entry.component); + + const esc_msg = try escapeLogfmt(allocator, entry.message); + defer allocator.free(esc_msg); + + const msg_part = try std.fmt.allocPrint(allocator, " msg=\"{s}\"", .{esc_msg}); + defer allocator.free(msg_part); + try parts.appendSlice(allocator, msg_part); + + for (entry.context) |kv| { + const esc_val = try escapeLogfmt(allocator, kv.value); + defer allocator.free(esc_val); + const kv_part = try std.fmt.allocPrint(allocator, " {s}=\"{s}\"", .{ kv.key, esc_val }); + defer allocator.free(kv_part); + try parts.appendSlice(allocator, kv_part); + } + + return parts.toOwnedSlice(allocator); +} + +fn escapeLogfmt(allocator: std.mem.Allocator, s: []const u8) ![]u8 { + var out = std.ArrayList(u8).empty; + for (s) |c| { + switch (c) { + '"' => try out.appendSlice(allocator, "\\\""), + '\n' => try out.appendSlice(allocator, "\\n"), + else => try out.append(allocator, c), + } + } + return out.toOwnedSlice(allocator); +} + +pub fn logStructured( + allocator: std.mem.Allocator, + logs_path: []const u8, + level: []const u8, + component: []const u8, + message: []const u8, + context: []const LogEntry.KV, +) void { + logStructuredImpl(allocator, logs_path, level, component, message, context) catch {}; +} + +fn logStructuredImpl( + allocator: std.mem.Allocator, + logs_path: []const u8, + level: []const u8, + component: []const u8, + message: []const u8, + context: []const LogEntry.KV, +) !void { + var ts_buf: [32]u8 = undefined; + const ts = formatRfc3339(std.time.milliTimestamp(), &ts_buf); + + const entry = LogEntry{ + .timestamp = ts, + .level = level, + .component = component, + .message = message, + .context = context, + }; + + const line_text = try formatLogEntry(allocator, entry); + defer allocator.free(line_text); + + const with_newline = try std.mem.concat(allocator, u8, &.{ line_text, "\n" }); + defer allocator.free(with_newline); + + const log_file = try std.fs.path.join(allocator, &.{ logs_path, "structured.log" }); + defer allocator.free(log_file); + + try atomicAppendFile(allocator, log_file, with_newline); +} + +pub fn logInfo( + allocator: std.mem.Allocator, + logs_path: []const u8, + component: []const u8, + message: []const u8, +) void { + logStructured(allocator, logs_path, "info", component, message, &.{}); +} + +pub fn logWarn( + allocator: std.mem.Allocator, + logs_path: []const u8, + component: []const u8, + message: []const u8, +) void { + logStructured(allocator, logs_path, "warn", component, message, &.{}); +} + +pub fn logError( + allocator: std.mem.Allocator, + logs_path: []const u8, + component: []const u8, + message: []const u8, + context: []const LogEntry.KV, +) void { + logStructured(allocator, logs_path, "error", component, message, context); +} + +pub fn logDebug( + allocator: std.mem.Allocator, + logs_path: []const u8, + component: []const u8, + message: []const u8, +) void { + logStructured(allocator, logs_path, "debug", component, message, &.{}); +} + +// ============================================================================= +// Time formatting +// ============================================================================= + +pub fn formatRfc3339(ms: i64, buf: []u8) []const u8 { + const secs: u64 = @intCast(@divTrunc(ms, 1000)); + const millis: u32 = @intCast(@mod(@abs(ms), 1000)); + const epoch_s = std.time.epoch.EpochSeconds{ .secs = secs }; + const year_day = epoch_s.getEpochDay().calculateYearDay(); + const month_day = year_day.calculateMonthDay(); + const day_secs = epoch_s.getDaySeconds(); + + const written = std.fmt.bufPrint(buf, "{d:0>4}-{d:0>2}-{d:0>2}T{d:0>2}:{d:0>2}:{d:0>2}.{d:0>3}Z", .{ + year_day.year, + month_day.month.numeric(), + month_day.day_index + 1, + day_secs.getHoursIntoDay(), + day_secs.getMinutesIntoHour(), + day_secs.getSecondsIntoMinute(), + millis, + }) catch buf[0..0]; + return written; +} + +// ============================================================================= +// Platform detection +// ============================================================================= + +pub fn getOsName() []const u8 { + return switch (builtin.os.tag) { + .linux => "Linux", + .macos => "macOS", + .windows => "Windows", + else => "Unknown", + }; +} + +pub fn getArch() []const u8 { + return switch (builtin.cpu.arch) { + .x86_64 => "x86_64", + .aarch64 => "arm64", + .x86 => "i386", + else => "unknown", + }; +} + +/// Best-effort kernel version string. Returns "unknown" if the query fails. +/// Returned slice is allocated; caller must free. +pub fn getKernelVersion(allocator: std.mem.Allocator) []const u8 { + const cmd: []const []const u8 = switch (builtin.os.tag) { + .linux, .macos => &.{ "uname", "-r" }, + .windows => &.{ "cmd", "/c", "ver" }, + else => return allocator.dupe(u8, "unknown") catch "unknown", + }; + + const result = std.process.Child.run(.{ + .allocator = allocator, + .argv = cmd, + }) catch return allocator.dupe(u8, "unknown") catch "unknown"; + defer allocator.free(result.stdout); + defer allocator.free(result.stderr); + + if (result.term == .Exited and result.term.Exited == 0) { + const trimmed = std.mem.trim(u8, result.stdout, &std.ascii.whitespace); + return allocator.dupe(u8, trimmed) catch "unknown"; + } + return allocator.dupe(u8, "unknown") catch "unknown"; +} + +const builtin = @import("builtin"); + +// ============================================================================= +// Tests +// ============================================================================= + +test "schema_version is semver" { + try std.testing.expect(std.mem.count(u8, schema_version, ".") >= 1); +} + +test "formatRfc3339 produces ISO 8601 shape" { + var buf: [32]u8 = undefined; + const s = formatRfc3339(0, &buf); + try std.testing.expect(s.len >= 20); + try std.testing.expect(std.mem.indexOfScalar(u8, s, 'T') != null); +} + +test "escapeLogfmt escapes quotes and newlines" { + const alloc = std.testing.allocator; + const out = try escapeLogfmt(alloc, "say \"hello\"\nbye"); + defer alloc.free(out); + try std.testing.expectEqualStrings("say \\\"hello\\\"\\nbye", out); +} diff --git a/recovery/freeze-ejector/MAINTAINERS.adoc b/recovery/freeze-ejector/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/recovery/freeze-ejector/MAINTAINERS.adoc +++ b/recovery/freeze-ejector/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/recovery/operating-theatre/.github/workflows/workflow-linter.yml b/recovery/operating-theatre/.github/workflows/workflow-linter.yml index 9f224406..8fb98d80 100644 --- a/recovery/operating-theatre/.github/workflows/workflow-linter.yml +++ b/recovery/operating-theatre/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/recovery/operating-theatre/CODE_OF_CONDUCT.md b/recovery/operating-theatre/CODE_OF_CONDUCT.md index f98740a1..615b0f2d 100644 --- a/recovery/operating-theatre/CODE_OF_CONDUCT.md +++ b/recovery/operating-theatre/CODE_OF_CONDUCT.md @@ -1,4 +1,4 @@ - + # Contributor Covenant Code of Conduct diff --git a/recovery/operating-theatre/CONTRIBUTING.adoc b/recovery/operating-theatre/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/recovery/operating-theatre/CONTRIBUTING.adoc +++ b/recovery/operating-theatre/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/recovery/operating-theatre/MAINTAINERS.adoc b/recovery/operating-theatre/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/recovery/operating-theatre/MAINTAINERS.adoc +++ b/recovery/operating-theatre/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/recovery/operating-theatre/PALIMPSEST.adoc b/recovery/operating-theatre/PALIMPSEST.adoc index ebaa6d0c..b2d5c0bc 100644 --- a/recovery/operating-theatre/PALIMPSEST.adoc +++ b/recovery/operating-theatre/PALIMPSEST.adoc @@ -2,7 +2,7 @@ :toc: :toc-placement!: -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] toc::[] @@ -26,7 +26,7 @@ ethical-use, provenance, and lineage requirements. 1. Include the PMPL-1.0 license text in `LICENSE`. 2. Add SPDX headers to source files: - `SPDX-License-Identifier: MPL-2.0` + `SPDX-License-Identifier: CC-BY-SA-4.0` 3. Add a Palimpsest badge to your README (see `assets/badges/` and `embed/license-blocks/`). == Versioning diff --git a/recovery/operating-theatre/README.adoc b/recovery/operating-theatre/README.adoc index 121e388f..5cabc611 100644 --- a/recovery/operating-theatre/README.adoc +++ b/recovery/operating-theatre/README.adoc @@ -1,11 +1,11 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = System Operating Theatre :toc: :toclevels: 3 :icons: font :source-highlighter: rouge -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0,link="https://github.com/hyperpolymath/palimpsest-license"] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest,link="https://github.com/hyperpolymath/palimpsest-license"] A **plan-first** system management and hardening tool — designed as a free/open alternative to "optimizer" utilities that nag, exaggerate, or sell fear. diff --git a/recovery/operating-theatre/SECURITY.md b/recovery/operating-theatre/SECURITY.md index f7a39c89..d3300b6e 100644 --- a/recovery/operating-theatre/SECURITY.md +++ b/recovery/operating-theatre/SECURITY.md @@ -1,4 +1,4 @@ - + # Security Policy diff --git a/recovery/operating-theatre/docs/AMBIENT_UI.adoc b/recovery/operating-theatre/docs/AMBIENT_UI.adoc index aa2da501..3cdafee9 100644 --- a/recovery/operating-theatre/docs/AMBIENT_UI.adoc +++ b/recovery/operating-theatre/docs/AMBIENT_UI.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Ambient UI Design :toc: :toclevels: 3 diff --git a/recovery/operating-theatre/docs/ANTI-FEARWARE.adoc b/recovery/operating-theatre/docs/ANTI-FEARWARE.adoc index 06e2fda0..adc0edbc 100644 --- a/recovery/operating-theatre/docs/ANTI-FEARWARE.adoc +++ b/recovery/operating-theatre/docs/ANTI-FEARWARE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Anti-Fearware Design Principles :toc: :toclevels: 3 diff --git a/recovery/operating-theatre/docs/CLAIMS_POLICY.adoc b/recovery/operating-theatre/docs/CLAIMS_POLICY.adoc index ada19da8..6bb39a33 100644 --- a/recovery/operating-theatre/docs/CLAIMS_POLICY.adoc +++ b/recovery/operating-theatre/docs/CLAIMS_POLICY.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Claims Policy :toc: :toclevels: 3 diff --git a/recovery/operating-theatre/docs/MOSCOW-ECOSYSTEM.adoc b/recovery/operating-theatre/docs/MOSCOW-ECOSYSTEM.adoc index 4435beb4..2907d35f 100644 --- a/recovery/operating-theatre/docs/MOSCOW-ECOSYSTEM.adoc +++ b/recovery/operating-theatre/docs/MOSCOW-ECOSYSTEM.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = MoSCoW Analysis: AmbientOps Ecosystem :toc: :toclevels: 3 diff --git a/recovery/operating-theatre/docs/PACKS_AND_MODES.adoc b/recovery/operating-theatre/docs/PACKS_AND_MODES.adoc index 47e2b899..6fffc471 100644 --- a/recovery/operating-theatre/docs/PACKS_AND_MODES.adoc +++ b/recovery/operating-theatre/docs/PACKS_AND_MODES.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Packs and Modes :toc: :toclevels: 3 diff --git a/recovery/operating-theatre/docs/SEAM-ANALYSIS.adoc b/recovery/operating-theatre/docs/SEAM-ANALYSIS.adoc index 5c01f92d..360073fb 100644 --- a/recovery/operating-theatre/docs/SEAM-ANALYSIS.adoc +++ b/recovery/operating-theatre/docs/SEAM-ANALYSIS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = System Tools Ecosystem: Seam Analysis :toc: left :toclevels: 3 diff --git a/recovery/operating-theatre/docs/SEAMS-ANALYSIS.adoc b/recovery/operating-theatre/docs/SEAMS-ANALYSIS.adoc index 39689c3e..d526f472 100644 --- a/recovery/operating-theatre/docs/SEAMS-ANALYSIS.adoc +++ b/recovery/operating-theatre/docs/SEAMS-ANALYSIS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Seams Analysis: System Operating Theatre :toc: :toclevels: 3 diff --git a/recovery/operating-theatre/docs/WINDOWS_TECH_PACK_SCOPE.adoc b/recovery/operating-theatre/docs/WINDOWS_TECH_PACK_SCOPE.adoc index 7415741d..3d0ab18a 100644 --- a/recovery/operating-theatre/docs/WINDOWS_TECH_PACK_SCOPE.adoc +++ b/recovery/operating-theatre/docs/WINDOWS_TECH_PACK_SCOPE.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Windows Tech Support Pack Scope :toc: :toclevels: 3 diff --git a/slopctl/.github/CODEOWNERS b/slopctl/.github/CODEOWNERS index a2f47751..a4e8fd3b 100644 --- a/slopctl/.github/CODEOWNERS +++ b/slopctl/.github/CODEOWNERS @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: AGPL-3.0-or-later +# SPDX-License-Identifier: MPL-2.0 # CODEOWNERS - Defines code ownership for mandatory review requirements # # These owners will be requested for review when someone opens a pull request diff --git a/slopctl/CONTRIBUTING.adoc b/slopctl/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/slopctl/CONTRIBUTING.adoc +++ b/slopctl/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/slopctl/MAINTAINERS.adoc b/slopctl/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/slopctl/MAINTAINERS.adoc +++ b/slopctl/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/slopctl/contractiles/dust/Dustfile b/slopctl/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/slopctl/contractiles/dust/Dustfile +++ b/slopctl/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/slopctl/contractiles/k9/README.adoc b/slopctl/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/slopctl/contractiles/k9/README.adoc +++ b/slopctl/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/slopctl/contractiles/must/Mustfile b/slopctl/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/slopctl/contractiles/must/Mustfile +++ b/slopctl/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/total-recall/.github/workflows/workflow-linter.yml b/total-recall/.github/workflows/workflow-linter.yml index baef88d9..ed15d7c5 100644 --- a/total-recall/.github/workflows/workflow-linter.yml +++ b/total-recall/.github/workflows/workflow-linter.yml @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/total-recall/CONTRIBUTING.adoc b/total-recall/CONTRIBUTING.adoc index 1f34e602..eb045d61 100644 --- a/total-recall/CONTRIBUTING.adoc +++ b/total-recall/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/total-recall/MAINTAINERS.adoc b/total-recall/MAINTAINERS.adoc index a1c65443..48d97817 100644 --- a/total-recall/MAINTAINERS.adoc +++ b/total-recall/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/total-recall/RSR_OUTLINE.adoc b/total-recall/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/total-recall/RSR_OUTLINE.adoc +++ b/total-recall/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/total-recall/contractiles/dust/Dustfile b/total-recall/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/total-recall/contractiles/dust/Dustfile +++ b/total-recall/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/total-recall/contractiles/k9/README.adoc b/total-recall/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/total-recall/contractiles/k9/README.adoc +++ b/total-recall/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/total-recall/contractiles/must/Mustfile b/total-recall/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/total-recall/contractiles/must/Mustfile +++ b/total-recall/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/total-update/.github/FUNDING.yml b/total-update/.github/FUNDING.yml index e2d29717..688a442c 100644 --- a/total-update/.github/FUNDING.yml +++ b/total-update/.github/FUNDING.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Funding platforms for hyperpolymath projects # See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository diff --git a/total-update/.github/dependabot.yml b/total-update/.github/dependabot.yml index 7afafd7d..d5cd4e99 100644 --- a/total-update/.github/dependabot.yml +++ b/total-update/.github/dependabot.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dependabot configuration for RSR-compliant repositories # Covers common ecosystems - remove unused ones for your project diff --git a/total-update/.github/workflows/codeql.yml b/total-update/.github/workflows/codeql.yml index 9f53ead4..91b7e419 100644 --- a/total-update/.github/workflows/codeql.yml +++ b/total-update/.github/workflows/codeql.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: CodeQL Security Analysis on: diff --git a/total-update/.github/workflows/guix-nix-policy.yml b/total-update/.github/workflows/guix-nix-policy.yml index bb72b231..c9da1349 100644 --- a/total-update/.github/workflows/guix-nix-policy.yml +++ b/total-update/.github/workflows/guix-nix-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Guix/Nix Package Policy on: [push, pull_request] diff --git a/total-update/.github/workflows/instant-sync.yml b/total-update/.github/workflows/instant-sync.yml index 9f0785b9..00f9d6b7 100644 --- a/total-update/.github/workflows/instant-sync.yml +++ b/total-update/.github/workflows/instant-sync.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Instant Forge Sync - Triggers propagation to all forges on push/release name: Instant Sync diff --git a/total-update/.github/workflows/jekyll-gh-pages.yml b/total-update/.github/workflows/jekyll-gh-pages.yml index 11a2df49..98b5a255 100644 --- a/total-update/.github/workflows/jekyll-gh-pages.yml +++ b/total-update/.github/workflows/jekyll-gh-pages.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Sample workflow for building and deploying a Jekyll site to GitHub Pages name: Deploy Jekyll with GitHub Pages dependencies preinstalled diff --git a/total-update/.github/workflows/jekyll.yml b/total-update/.github/workflows/jekyll.yml index 038cf757..d737bc1b 100644 --- a/total-update/.github/workflows/jekyll.yml +++ b/total-update/.github/workflows/jekyll.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support diff --git a/total-update/.github/workflows/mirror.yml b/total-update/.github/workflows/mirror.yml index 1b3d9b64..90011ad3 100644 --- a/total-update/.github/workflows/mirror.yml +++ b/total-update/.github/workflows/mirror.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell name: Mirror to Git Forges diff --git a/total-update/.github/workflows/npm-bun-blocker.yml b/total-update/.github/workflows/npm-bun-blocker.yml index c29b3fc7..33c4d70a 100644 --- a/total-update/.github/workflows/npm-bun-blocker.yml +++ b/total-update/.github/workflows/npm-bun-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: NPM/Bun Blocker on: [push, pull_request] diff --git a/total-update/.github/workflows/quality.yml b/total-update/.github/workflows/quality.yml index 46992969..6c89d430 100644 --- a/total-update/.github/workflows/quality.yml +++ b/total-update/.github/workflows/quality.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Code Quality on: [push, pull_request] diff --git a/total-update/.github/workflows/rsr-antipattern.yml b/total-update/.github/workflows/rsr-antipattern.yml index 04d8b7db..adf7ea64 100644 --- a/total-update/.github/workflows/rsr-antipattern.yml +++ b/total-update/.github/workflows/rsr-antipattern.yml @@ -1,6 +1,6 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # RSR Anti-Pattern CI Check -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # # Enforces: No TypeScript, No Go, No Python (except SaltStack), No npm # Allows: ReScript, Deno, WASM, Rust, OCaml, Haskell, Guile/Scheme diff --git a/total-update/.github/workflows/scorecard-enforcer.yml b/total-update/.github/workflows/scorecard-enforcer.yml index 37dd5cca..c0fe2675 100644 --- a/total-update/.github/workflows/scorecard-enforcer.yml +++ b/total-update/.github/workflows/scorecard-enforcer.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - runs OpenSSF Scorecard and fails on low scores name: OpenSSF Scorecard Enforcer diff --git a/total-update/.github/workflows/scorecard.yml b/total-update/.github/workflows/scorecard.yml index 8400e91b..476ed3f0 100644 --- a/total-update/.github/workflows/scorecard.yml +++ b/total-update/.github/workflows/scorecard.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: OSSF Scorecard on: push: diff --git a/total-update/.github/workflows/secret-scanner.yml b/total-update/.github/workflows/secret-scanner.yml index d7ffaa9c..b2dcc860 100644 --- a/total-update/.github/workflows/secret-scanner.yml +++ b/total-update/.github/workflows/secret-scanner.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Prevention workflow - scans for hardcoded secrets before they reach main name: Secret Scanner diff --git a/total-update/.github/workflows/security-policy.yml b/total-update/.github/workflows/security-policy.yml index a3980e00..20061618 100644 --- a/total-update/.github/workflows/security-policy.yml +++ b/total-update/.github/workflows/security-policy.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Security Policy on: [push, pull_request] diff --git a/total-update/.github/workflows/ts-blocker.yml b/total-update/.github/workflows/ts-blocker.yml index 1f4780f4..b5914ef6 100644 --- a/total-update/.github/workflows/ts-blocker.yml +++ b/total-update/.github/workflows/ts-blocker.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: TypeScript/JavaScript Blocker on: [push, pull_request] diff --git a/total-update/.github/workflows/wellknown-enforcement.yml b/total-update/.github/workflows/wellknown-enforcement.yml index 65255538..70b893e5 100644 --- a/total-update/.github/workflows/wellknown-enforcement.yml +++ b/total-update/.github/workflows/wellknown-enforcement.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 name: Well-Known Standards (RFC 9116 + RSR) on: push: diff --git a/total-update/.github/workflows/workflow-linter.yml b/total-update/.github/workflows/workflow-linter.yml index ec18e086..ed15d7c5 100644 --- a/total-update/.github/workflows/workflow-linter.yml +++ b/total-update/.github/workflows/workflow-linter.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # workflow-linter.yml - Validates GitHub workflows against RSR security standards # This workflow can be copied to other repos for consistent enforcement name: Workflow Security Linter @@ -36,7 +36,7 @@ jobs: fi done if [ $failed -eq 1 ]; then - echo "Add '# SPDX-License-Identifier: PMPL-1.0' as first line" + echo "Add '# SPDX-License-Identifier: MPL-2.0' as first line" exit 1 fi echo "All workflows have SPDX headers" diff --git a/total-update/.gitlab-ci.yml b/total-update/.gitlab-ci.yml index 273a9c7b..7309fa90 100644 --- a/total-update/.gitlab-ci.yml +++ b/total-update/.gitlab-ci.yml @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: MPL-2.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Primary CI/CD - GitLab is the source of truth stages: diff --git a/total-update/CONTRIBUTING.adoc b/total-update/CONTRIBUTING.adoc index a0f2f540..eb045d61 100644 --- a/total-update/CONTRIBUTING.adoc +++ b/total-update/CONTRIBUTING.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Contributing Guide == Getting Started diff --git a/total-update/MAINTAINERS.adoc b/total-update/MAINTAINERS.adoc index b5154a03..48d97817 100644 --- a/total-update/MAINTAINERS.adoc +++ b/total-update/MAINTAINERS.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0-or-later +// SPDX-License-Identifier: CC-BY-SA-4.0 = Maintainers :toc: preamble diff --git a/total-update/RSR_OUTLINE.adoc b/total-update/RSR_OUTLINE.adoc index 3ce20ed8..8a229060 100644 --- a/total-update/RSR_OUTLINE.adoc +++ b/total-update/RSR_OUTLINE.adoc @@ -209,7 +209,7 @@ This template is part of: == License -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: CC-BY-SA-4.0 == Links diff --git a/total-update/contractiles/dust/Dustfile b/total-update/contractiles/dust/Dustfile index 6f93c6a9..314903cc 100644 --- a/total-update/contractiles/dust/Dustfile +++ b/total-update/contractiles/dust/Dustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Dustfile template - recovery and rollback semantics version: 1 diff --git a/total-update/contractiles/k9/README.adoc b/total-update/contractiles/k9/README.adoc index 9c3099fd..16107f14 100644 --- a/total-update/contractiles/k9/README.adoc +++ b/total-update/contractiles/k9/README.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = K9 Contractiles :toc: left :icons: font diff --git a/total-update/contractiles/must/Mustfile b/total-update/contractiles/must/Mustfile index dc2c6b6f..dc7b3be5 100644 --- a/total-update/contractiles/must/Mustfile +++ b/total-update/contractiles/must/Mustfile @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: PLMP-1.0-or-later +# SPDX-License-Identifier: MPL-2.0 # Mustfile - declarative state contract (template) # See: https://github.com/hyperpolymath/mustfile diff --git a/total-update/license/PMPL-1.0.txt b/total-update/license/PMPL-1.0.txt index 13d072a6..711e372c 100644 --- a/total-update/license/PMPL-1.0.txt +++ b/total-update/license/PMPL-1.0.txt @@ -1,4 +1,4 @@ -SPDX-License-Identifier: MPL-2.0-or-later +SPDX-License-Identifier: MPL-2.0 SPDX-FileCopyrightText: 2025 Palimpsest Stewardship Council ================================================================================ diff --git a/traffic-conditioner/README.adoc b/traffic-conditioner/README.adoc index 2fac04e3..bd96ef62 100644 --- a/traffic-conditioner/README.adoc +++ b/traffic-conditioner/README.adoc @@ -4,7 +4,7 @@ :icons: font :source-highlighter: rouge -image:https://img.shields.io/badge/License-PMPL--1.0-blue.svg[License: PMPL-1.0] +image:https://img.shields.io/badge/License-MPL--2.0-blue.svg[License: PMPL-1.0] image:https://img.shields.io/badge/Philosophy-Palimpsest-indigo.svg[Palimpsest] image:https://img.shields.io/badge/Status-Planning-yellow.svg[Status] diff --git a/traffic-conditioner/ROADMAP.adoc b/traffic-conditioner/ROADMAP.adoc index c5be8e8c..110bdf66 100644 --- a/traffic-conditioner/ROADMAP.adoc +++ b/traffic-conditioner/ROADMAP.adoc @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: MPL-2.0 +// SPDX-License-Identifier: CC-BY-SA-4.0 = Traffic Conditioner Roadmap == Current Status