diff --git a/.crumb b/.crumb index 3c14624b..a5ac3e68 100644 --- a/.crumb +++ b/.crumb @@ -21,39 +21,39 @@ "generated": { "children": [ { - "digest": "b5ced6fea583b485206b73ec08b91de68a5cfd2672ac448191831754c9e0907d", - "last_commit": "7db773a8", + "digest": "505f0368767022d22d0d58e4911c9f5d32b0db78af9176aacf5ce52ce1801f25", + "last_commit": "621c9e6f", "name": "crates", "purpose": "Directory crates. Purpose not yet described by a human." }, { - "digest": "066b030ff3c47157bc97b4ca49bd239c01e36b444ff4fad10066c89cd376b106", - "last_commit": "4bd49ca1", + "digest": "203bf6275590e6a8f0179d1c7904673f576265db144ebf6f1c7b0306a1d67304", + "last_commit": "621c9e6f", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { - "digest": "64cc87f8507bb580e1788d335c5a76039f3e3a016552595526718448ab5aa098", - "last_commit": "30379678", + "digest": "dc0c8a2262594253b77df2dc74efed04ade1145396308cdab8f78e9a3ddd5955", + "last_commit": "621c9e6f", "name": "native", "purpose": "Directory native. Purpose not yet described by a human." }, { - "digest": "28cf2363c4d527a9d7ecc2974f3dcda3e065959cbddaed7863d9c9354f166967", - "last_commit": "18e27659", + "digest": "0794e1ad2bcb73135f89ff006231c855c3d8aec44b90e10b4e9f252bed562f2b", + "last_commit": "621c9e6f", "name": "scripts", "purpose": "Directory scripts. Purpose not yet described by a human." } ], - "children_root": "sha256:483a3c1130af38405b68c0f2a84dd0d3fbcde61680d83fa57a4fce0657da807d", - "compiled_at": "2026-10-23T19:13:09Z", + "children_root": "sha256:14b5a4b7f16c441c86bcdaa081ed05d7ee67f9685b7058e9ca2476ca9797f655", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:038f4e6ace5057be30cf95afc0029a2d1af7e2447a296cf10aaf907354f09235", + "digest": "sha256:6939c94ff0f2ae45579a426c2b2698f561f14bbbc4dcca5f17f29d2d76f221b6", "evidence_files": 211, "evidence_root": "sha256:3a8f56415109a697e4beb6048c85805c50c9c6c4089629057f4e8b3e76863981", "files": 3491, - "generated_at_commit": "18e276590424593647cd7c39c6d16c2f9f8d6027", - "source_tree": "sha256:5520a47522aca712b2f970c1142fb5f98ef7e7651a016225ad4f354607c0e441" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:a346c4206d136936b51181566e826e4567df47a2504dea8be8c4951f1dcd7ebc" }, "owner_lane": "", "provenance": { diff --git a/.github/scripts/check-no-python.sh b/.github/scripts/check-no-python.sh index c292e104..ce3074cb 100755 --- a/.github/scripts/check-no-python.sh +++ b/.github/scripts/check-no-python.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # No-Python guard (Drake's rule, 2026-10-15: no Python anywhere in AIEN). # Fails when git tracks any Python source, notebook, Python packaging or # environment file, or any file whose first line is a python shebang. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 44df0cc4..17a0b400 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ Report vulnerabilities privately through GitHub's "Report a vulnerability" ## License -AIENOS is licensed under AGPL-3.0-or-later. By submitting a +AIENOS is licensed under Apache-2.0. By submitting a contribution you agree that it is licensed under the same terms. ## Crumbs diff --git a/Cargo.toml b/Cargo.toml index 3353132e..a893f5d5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ members = [ version = "0.1.0" edition = "2021" authors = ["AIENOS Sovereign Contributors"] -license = "AGPL-3.0-or-later" +license = "Apache-2.0" repository = "https://github.com/aien-spark/aienos" [workspace.dependencies] diff --git a/LICENSE b/LICENSE index be3f7b28..d6456956 100644 --- a/LICENSE +++ b/LICENSE @@ -1,661 +1,202 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE b/NOTICE index f0fc605e..327b8959 100644 --- a/NOTICE +++ b/NOTICE @@ -1,12 +1,25 @@ -AIENOS -Copyright 2026 Drake Stapleton and AIEN Contributors +AIEN Sovereign Ecosystem (AienOS / Omega / CUDA++ / INTERPLANE) +Aienux +Copyright 2024-2026 Drake Stapleton and AIEN Contributors (https://github.com/aien-dev) -This product includes software developed by Drake Stapleton in cognitive -partnership with AIEN. +This product includes software developed as part of the AIEN Sovereign +Ecosystem (https://www.aienos.com). + +The Omega language (omega-mv), CUDA++ GPU toolchain (CUDApp), Aienux kernel, +INTERPLANE protocol, and FORGE realization layer (physics-mv) are foundational +components designed and architected by Drake Stapleton. -Website: https://github.com/aien-spark/aienos Lead Architect: Drake Stapleton -Licensed under the GNU Affero General Public License v3.0 or later -(SPDX-License-Identifier: AGPL-3.0-or-later). The full, unmodified -license text is in LICENSE, taken verbatim from https://www.gnu.org/licenses/agpl-3.0.txt. +TRADEMARK NOTICE: +Pursuant to Section 6 of the Apache License, Version 2.0, this license does not +grant permission to use the trade names, trademarks, service marks, or product +names of the Licensor. "AIEN", "AienOS", "Aienux", "Omega", "CUDA++", "CUDApp", +"INTERPLANE", and "FORGE" are trademarks of Drake Stapleton. Any derivative +works or redistributions modified from the canonical upstream repositories +(https://github.com/aien-dev) may not be branded or marketed as official +"AienOS Verified" or "Omega" distributions without express written permission. + +THIRD-PARTY COMPONENTS: +Vendored crates under vendor/ (for example the uefi-* crates) retain their own +licences, including MIT OR Apache-2.0, and are not relicensed by this project. diff --git a/README.md b/README.md index 18c62798..36b5895f 100644 --- a/README.md +++ b/README.md @@ -59,4 +59,4 @@ Start with [issues labelled `good first issue`](https://github.com/aien-spark/ai ## License -Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See [LICENSE](LICENSE) and [NOTICE](NOTICE). Contact: aien@aienos.com. +Licensed under the Apache License, Version 2.0 (Apache-2.0). See [LICENSE](LICENSE) and [NOTICE](NOTICE). Contact: aien@aienos.com. diff --git a/crates/.crumb b/crates/.crumb index 6f56e027..cd5759d8 100644 --- a/crates/.crumb +++ b/crates/.crumb @@ -65,99 +65,99 @@ "generated": { "children": [ { - "digest": "0a8510e7fedafbf6b5d1ea15307da3a1eb6e8d6bd6ffa7caabf193fabaa464b5", - "last_commit": "3e71759", + "digest": "b345ab6edd5272610bf2b0280e7513e91d7f5304d5e6546fa4957567603953dc", + "last_commit": "621c9e6f", "name": "aienos-accel", "purpose": "Directory crates/aienos-accel. Purpose not yet described by a human." }, { - "digest": "68682a56017aef2e95b4101731a5bc023e0d297127e6b07af7d3be9f3d8afaeb", - "last_commit": "15d5f3d", + "digest": "a2e8ebab5461a9752e5374baed7f0a34d8aef68c075655f1e20f28a789cd4347", + "last_commit": "621c9e6f", "name": "aienos-aegis", "purpose": "Directory crates/aienos-aegis. Purpose not yet described by a human." }, { - "digest": "d5ad195a8f38c6bd0e1cc00feb8c5040f0fc8eabe47a9a69d961c73d6901d61e", - "last_commit": "39e246a", + "digest": "5c09a9fbd6b8abbde046f877cc7e7dd2a2dfcfda2b64c84520c600ae5e475d34", + "last_commit": "621c9e6f", "name": "aienos-agent-state", "purpose": "Directory crates/aienos-agent-state. Purpose not yet described by a human." }, { - "digest": "ffb6a9a637e1eca1408280c4522ea52b283d740a90b8efad30350082900cbcdc", - "last_commit": "e12e6f6", + "digest": "51ea4b3e93aa77257cea1270ac7520c8bc630300c3dc5051e72439fd64315835", + "last_commit": "621c9e6f", "name": "aienos-artifact", "purpose": "Directory crates/aienos-artifact. Purpose not yet described by a human." }, { - "digest": "ff4260f8fede1182f834d89589eb4d5a6c6160032dfc570003d506411fe93aa4", - "last_commit": "e9d39a9", + "digest": "dec08f80237f84bc2f9bb73d0f009609cd402dca821a852bf3e8b7e309aec149", + "last_commit": "621c9e6f", "name": "aienos-artifact-tool", "purpose": "Directory crates/aienos-artifact-tool. Purpose not yet described by a human." }, { - "digest": "223e3399133c766986b1044a16c8367b51b78158d3070c0ec63c7ed3e639d644", - "last_commit": "49ff776", + "digest": "4d0c47dce8dfe3a7cba63b731228c6329ba5ab0fd04ad29d7951fd796afd455c", + "last_commit": "621c9e6f", "name": "aienos-boot", "purpose": "Directory crates/aienos-boot. Purpose not yet described by a human." }, { - "digest": "01d4fe4a0bd556f338ac4615b7ed1c9141e4f8035c07e0082f2894a57fa071d0", - "last_commit": "bc25e73", + "digest": "4e69a6d968b5fcb69ddf80b0ba6e47337d7091f81ab4f45459d13e7c08173bb3", + "last_commit": "621c9e6f", "name": "aienos-c1-tree", "purpose": "Directory crates/aienos-c1-tree. Purpose not yet described by a human." }, { - "digest": "ca15c2b9ae570b0aa2c7859672de2c976d6ce046188c09b7c74b5ccbee350136", - "last_commit": "51c05da", + "digest": "4d2b17a9d26ddec69d05b85f7119c83f5aae0d7d3fe01e238af3214f928a1030", + "last_commit": "621c9e6f", "name": "aienos-capability", "purpose": "Directory crates/aienos-capability. Purpose not yet described by a human." }, { - "digest": "c63ab3d5643ac3c0974eee276273a0ab80584c54926cbb62c637294b5b857718", - "last_commit": "51c05da", + "digest": "b204f80d66bb0dda46f7bdad090636552084acd18d9c6184a0446ff4d2df0f8b", + "last_commit": "621c9e6f", "name": "aienos-capability-ffi", "purpose": "Directory crates/aienos-capability-ffi. Purpose not yet described by a human." }, { - "digest": "f062e2e58faa2950ce8adeb2e4c16234dacce6672d560ed4fdeb7224c5093a77", - "last_commit": "bc25e73", + "digest": "b19271c073e30328bdff3a6e8a261957002cc0ce1e2d90e406103d38ae9f1153", + "last_commit": "621c9e6f", "name": "aienos-cortex", "purpose": "Directory crates/aienos-cortex. Purpose not yet described by a human." }, { - "digest": "feccaaf349b9e88bc116db18951ffbd0145176b40ce702bc6320338c35b2e85e", - "last_commit": "f0facc7", + "digest": "abc59b7f8730775fca5d3595415bff49a12a0d9ca42fa73fd28ab25931ad1495", + "last_commit": "621c9e6f", "name": "aienos-crypto", "purpose": "Directory crates/aienos-crypto. Purpose not yet described by a human." }, { - "digest": "e88324eb9a32d23d8358413c7404038ee4095fcf8c4889ac9c221b97aef80b8e", - "last_commit": "e960272", + "digest": "4b6a8ce817f3cb8139e4b3f993dec01db75804afd267545018a9ae4ce29697d2", + "last_commit": "621c9e6f", "name": "aienos-evidence", "purpose": "Directory crates/aienos-evidence. Purpose not yet described by a human." }, { - "digest": "a0d0036c90e3d64d6e1caa67b77bf2b8deb898c597e9f0b797df4a144468e061", - "last_commit": "2951ea1", + "digest": "ab35d646b8609d01b53594b99c345c9ae87f9c304a1189bc14d6945ff94f4ae1", + "last_commit": "621c9e6f", "name": "aienos-kernel", "purpose": "Directory crates/aienos-kernel. Purpose not yet described by a human." }, { - "digest": "716d679da128e7aab8efb6e9cf836ee22a62fe9fe6993e2d0a20c3016d78b3a0", - "last_commit": "761e63d", + "digest": "7a80efb2b807ebdc8d8189de8a7b268d404aaa2188ec25e1ceaf53ee26fc5674", + "last_commit": "621c9e6f", "name": "aienos-store-tool", "purpose": "Directory crates/aienos-store-tool. Purpose not yet described by a human." } ], - "children_root": "sha256:ca16d018c0c02840ba1f87e2a7b64ed259a36253ed29230f274ebcabb43c8a7e", - "compiled_at": "2026-10-14T14:58:51Z", + "children_root": "sha256:f4f384614a0edbb6cd166a489e86c50b09efa95b9e8ec669efec3efa9c5f8b17", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:b5ced6fea583b485206b73ec08b91de68a5cfd2672ac448191831754c9e0907d", + "digest": "sha256:505f0368767022d22d0d58e4911c9f5d32b0db78af9176aacf5ce52ce1801f25", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 268, - "generated_at_commit": "596870d6ef47c5238cc2c7fa1c08f5e5486e5d84", - "source_tree": "sha256:cc0bfe148dc436da2bb46428408257fbc55e5643cf516241a3e9021656c5fc2c" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:906a0d60f5121d4fb505a42fa267a01d70a154f820a23b19e8fad46b70829a70" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-accel/.crumb b/crates/aienos-accel/.crumb index 7d1daf82..c0fed5df 100644 --- a/crates/aienos-accel/.crumb +++ b/crates/aienos-accel/.crumb @@ -17,27 +17,27 @@ "generated": { "children": [ { - "digest": "6b70f66e4d236c180f8cd0dc9d5cd6c5d541938032b782c8f8525e809ec317a3", - "last_commit": "3e71759", + "digest": "4700510ee6a2d43c5b28aec93cf589dca7edcbc7f591b2883d6d8067ba6152a2", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-accel/src. Purpose not yet described by a human." }, { - "digest": "f3d113cfcfbdea76e735ccb0543a6007b9e079c4eabc34dcc2bf64c6d9e550a6", - "last_commit": "3e71759", + "digest": "86130649de399b14634beb537a767f10159bee0c2572888fca003f62ec68419f", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory crates/aienos-accel/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:f4367a3dee18b6a295d8e251a7f087e15038dd61899025c62b614c2f0303cebe", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:4bc8663e528b6c4a791d483824643851ce099816a13437f309afe0b06b80971f", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:0a8510e7fedafbf6b5d1ea15307da3a1eb6e8d6bd6ffa7caabf193fabaa464b5", + "digest": "sha256:b345ab6edd5272610bf2b0280e7513e91d7f5304d5e6546fa4957567603953dc", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 6, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:448f9760aea980ca3e70325123b5475c23b25e2424a772c6173653153850e95d" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:85620720355cb5278cdce92b7e9960955d6066e66d0eb3f9631a6a98111da80a" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-accel/src/.crumb b/crates/aienos-accel/src/.crumb index 4f85cda3..d9558ca3 100644 --- a/crates/aienos-accel/src/.crumb +++ b/crates/aienos-accel/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:6b70f66e4d236c180f8cd0dc9d5cd6c5d541938032b782c8f8525e809ec317a3", + "digest": "sha256:4700510ee6a2d43c5b28aec93cf589dca7edcbc7f591b2883d6d8067ba6152a2", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 4, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:0d2c946ed95261cbf0accb56bb2a7d378a41ffbcef9834998a79b11eb55e7411" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:a69fab3deda380604bc64a1adce1ad26d458803fa5b82525652ae9bdf9defd3d" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-accel/src/lib.rs b/crates/aienos-accel/src/lib.rs index 0a6bcab3..25176ef8 100644 --- a/crates/aienos-accel/src/lib.rs +++ b/crates/aienos-accel/src/lib.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use core::fmt::Write; diff --git a/crates/aienos-accel/src/pci.rs b/crates/aienos-accel/src/pci.rs index 1e348e89..65bc4380 100644 --- a/crates/aienos-accel/src/pci.rs +++ b/crates/aienos-accel/src/pci.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure, read-only decoders for PCI configuration space. //! //! Every function in this module interprets a byte slice supplied by the diff --git a/crates/aienos-accel/src/profile.rs b/crates/aienos-accel/src/profile.rs index 1587bba6..9d836489 100644 --- a/crates/aienos-accel/src/profile.rs +++ b/crates/aienos-accel/src/profile.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Typed, provenance-tagged GB10 hardware characterization facts. //! //! The profile keeps three states apart instead of collapsing them: diff --git a/crates/aienos-accel/src/registers.rs b/crates/aienos-accel/src/registers.rs index 5cd59358..06d95c2d 100644 --- a/crates/aienos-accel/src/registers.rs +++ b/crates/aienos-accel/src/registers.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Source-backed GB10 register inventory. //! //! This is a knowledge ledger, not a driver. It records only registers the diff --git a/crates/aienos-accel/tests/.crumb b/crates/aienos-accel/tests/.crumb index ee6f5f0a..ad745607 100644 --- a/crates/aienos-accel/tests/.crumb +++ b/crates/aienos-accel/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:f3d113cfcfbdea76e735ccb0543a6007b9e079c4eabc34dcc2bf64c6d9e550a6", + "digest": "sha256:86130649de399b14634beb537a767f10159bee0c2572888fca003f62ec68419f", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:caaeed577657c655780a497e0206dc7a5e4fb7828123e0e8156a07615d4ac924" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:86e1f72559f89db7d0bfdbce3a4a9e11458b1d594178fbedec8aeb5c288ab458" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-accel/tests/gb10_fixtures.rs b/crates/aienos-accel/tests/gb10_fixtures.rs index a2656ab2..283306a8 100644 --- a/crates/aienos-accel/tests/gb10_fixtures.rs +++ b/crates/aienos-accel/tests/gb10_fixtures.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Synthetic PCI configuration fixtures for GB10 discovery. //! //! These tests prove that discovery identifies the GB10 from device diff --git a/crates/aienos-aegis/.crumb b/crates/aienos-aegis/.crumb index 1cd5803e..92400a10 100644 --- a/crates/aienos-aegis/.crumb +++ b/crates/aienos-aegis/.crumb @@ -17,27 +17,27 @@ "generated": { "children": [ { - "digest": "81c04634d08cd2e965d3a6a66fbb586bcb221ca33c71d60049257da9271059d0", - "last_commit": "15d5f3d", + "digest": "1c3c269ab97169ead09f4e3e44c7efa15b9006833cc0bed3c741970578de524a", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-aegis/src. Purpose not yet described by a human." }, { - "digest": "116b4a84f2a0b3f537433c1187e35f911f0c0dedea3b489607ac0132fdde9542", - "last_commit": "15d5f3d", + "digest": "fa482ec32fd662408e529b06b1513c0ffa757a2dc10c862a4760fc7000fd6dd6", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory crates/aienos-aegis/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:5a5cd518112edc332b4816792d79b64de08bf002b02784b720a6076c467fa974", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:bbb9ac335d074652aa737bc8d62f04136569c0d2d58d3aac71c0cb21cf211584", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:68682a56017aef2e95b4101731a5bc023e0d297127e6b07af7d3be9f3d8afaeb", + "digest": "sha256:a2e8ebab5461a9752e5374baed7f0a34d8aef68c075655f1e20f28a789cd4347", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 8, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:477b338366a9f9335fbc3da1b9469fcd79fc01ad53c023595e025fcb5c508cc2" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:6c79c7b87f99148c223f0274fca12da5562959f8effbbfdb3f07210dc5223e01" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-aegis/src/.crumb b/crates/aienos-aegis/src/.crumb index 98016e37..b05a7228 100644 --- a/crates/aienos-aegis/src/.crumb +++ b/crates/aienos-aegis/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:81c04634d08cd2e965d3a6a66fbb586bcb221ca33c71d60049257da9271059d0", + "digest": "sha256:1c3c269ab97169ead09f4e3e44c7efa15b9006833cc0bed3c741970578de524a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 6, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:19de1b67205d779ab95e2daadf92756d98c234bf57962078922574a1b0ab3d10" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:567fcb49d071398ed26d6b3f17499b9d8520744021b2435e89036c09446ac61f" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-aegis/src/broker.rs b/crates/aienos-aegis/src/broker.rs index 94cb0755..05c43f4b 100644 --- a/crates/aienos-aegis/src/broker.rs +++ b/crates/aienos-aegis/src/broker.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AEGIS Effect Broker: Dispatching approved intents to hardware and drivers (§5). use crate::capability::{AegisError, CapabilityGraph}; diff --git a/crates/aienos-aegis/src/capability.rs b/crates/aienos-aegis/src/capability.rs index 48b5ce64..5c4563da 100644 --- a/crates/aienos-aegis/src/capability.rs +++ b/crates/aienos-aegis/src/capability.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Unforgeable capability tokens and the AEGIS Directed Acyclic Capability Graph (§13). use aienos_agent_state::LogicalAgentId; diff --git a/crates/aienos-aegis/src/effect.rs b/crates/aienos-aegis/src/effect.rs index fd1baa4c..62daf3cc 100644 --- a/crates/aienos-aegis/src/effect.rs +++ b/crates/aienos-aegis/src/effect.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Effect Intents and Operator Grants conforming to AEGIS (§5). use aienos_agent_state::LogicalAgentId; diff --git a/crates/aienos-aegis/src/evaluator.rs b/crates/aienos-aegis/src/evaluator.rs index 678fbef3..3a0fb998 100644 --- a/crates/aienos-aegis/src/evaluator.rs +++ b/crates/aienos-aegis/src/evaluator.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AEGIS Policy Evaluator: Enforcing cryptographic capabilities and reversibility invariants (§5). use crate::capability::{path_within, CapabilityGraph, CapabilityScope}; diff --git a/crates/aienos-aegis/src/lib.rs b/crates/aienos-aegis/src/lib.rs index 143ff37d..519052a2 100644 --- a/crates/aienos-aegis/src/lib.rs +++ b/crates/aienos-aegis/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS AEGIS: Capability Graph, Effect Intent Pipeline, and J-Space Worlds (§13, §5, §12). //! //! Enforces unforgeable capability tokens, copy-on-write transactional worlds, diff --git a/crates/aienos-aegis/src/world.rs b/crates/aienos-aegis/src/world.rs index d003ba05..ea1c1480 100644 --- a/crates/aienos-aegis/src/world.rs +++ b/crates/aienos-aegis/src/world.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! J-Space Worlds: Transactional sandboxes with copy-on-write semantics (§12). use std::collections::{HashMap, HashSet}; diff --git a/crates/aienos-aegis/tests/.crumb b/crates/aienos-aegis/tests/.crumb index a9cef321..75d14efe 100644 --- a/crates/aienos-aegis/tests/.crumb +++ b/crates/aienos-aegis/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:116b4a84f2a0b3f537433c1187e35f911f0c0dedea3b489607ac0132fdde9542", + "digest": "sha256:fa482ec32fd662408e529b06b1513c0ffa757a2dc10c862a4760fc7000fd6dd6", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:0934c6689e8111e99bd3072e461d5c14ddc96b1153f266fa7ca8ee6cebd64a4c" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:3a77cce6e45c00096ae5b219bac873292edb6de6d05bd3608ba95222bbc74fc3" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-aegis/tests/phase_3_to_5_integration.rs b/crates/aienos-aegis/tests/phase_3_to_5_integration.rs index be80c5db..32f68d12 100644 --- a/crates/aienos-aegis/tests/phase_3_to_5_integration.rs +++ b/crates/aienos-aegis/tests/phase_3_to_5_integration.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS Phases 3–5 Full Architecture Integration Verification Suite. //! //! Validates: diff --git a/crates/aienos-agent-state/.crumb b/crates/aienos-agent-state/.crumb index 98a8389b..7f736783 100644 --- a/crates/aienos-agent-state/.crumb +++ b/crates/aienos-agent-state/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "65a8c460540b0190c0d00418ba79639832abd8764dc0ea59a1ddec40cc1747bb", - "last_commit": "39e246a", + "digest": "5c3632ed9ffc629be88f25b8fc64e57e82ef4909e984f478f3320b1075e826ae", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-agent-state/src. Purpose not yet described by a human." } ], - "children_root": "sha256:141b42405835f497b7769439b232fa33c45b093c4022ed8df2d70cfcc7bedba0", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:0cef746d1859042095a18a30bef6789be68466c5e85670b9f0f26ab2730c15f9", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:d5ad195a8f38c6bd0e1cc00feb8c5040f0fc8eabe47a9a69d961c73d6901d61e", + "digest": "sha256:5c09a9fbd6b8abbde046f877cc7e7dd2a2dfcfda2b64c84520c600ae5e475d34", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 8, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:15f902241a2f247dfeec1b22c4f35fd957718fc9d76ecf7256fac0603f11f0c1" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:7ee015dc517a0d3eb6352b4ab888dc71c8bb4da47406f1f36cb6eaccc5753696" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-agent-state/src/.crumb b/crates/aienos-agent-state/src/.crumb index 20bbe098..38bbfd08 100644 --- a/crates/aienos-agent-state/src/.crumb +++ b/crates/aienos-agent-state/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:65a8c460540b0190c0d00418ba79639832abd8764dc0ea59a1ddec40cc1747bb", + "digest": "sha256:5c3632ed9ffc629be88f25b8fc64e57e82ef4909e984f478f3320b1075e826ae", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 7, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:ff373815f562e46d5dbf89c4879e35d4abafb3e4c8bfab7c0dfc77c47019f3b1" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:26d8af651203260f3db454286c897702861b679e1c984744a91bf15968ae370b" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-agent-state/src/abi.rs b/crates/aienos-agent-state/src/abi.rs index 3f737e35..066e7a12 100644 --- a/crates/aienos-agent-state/src/abi.rs +++ b/crates/aienos-agent-state/src/abi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS Agent State ABI (§9). use crate::id::{LogicalAgentId, LogicalBranchId}; diff --git a/crates/aienos-agent-state/src/history.rs b/crates/aienos-agent-state/src/history.rs index 4bafd73b..803dc520 100644 --- a/crates/aienos-agent-state/src/history.rs +++ b/crates/aienos-agent-state/src/history.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Append-only TokenHistory log with cryptographic rolling hash chains. use aienos_kernel::crypto::sha256; diff --git a/crates/aienos-agent-state/src/id.rs b/crates/aienos-agent-state/src/id.rs index 4fcdc983..62c2ab3f 100644 --- a/crates/aienos-agent-state/src/id.rs +++ b/crates/aienos-agent-state/src/id.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Sovereign cryptographic identities for agents and reasoning branches. use aienos_kernel::crypto::sha256; diff --git a/crates/aienos-agent-state/src/incarnation.rs b/crates/aienos-agent-state/src/incarnation.rs index 655a418b..ddf88612 100644 --- a/crates/aienos-agent-state/src/incarnation.rs +++ b/crates/aienos-agent-state/src/incarnation.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Ephemeral execution incarnations and decoupled physical inference states. use crate::history::TokenHistory; diff --git a/crates/aienos-agent-state/src/lib.rs b/crates/aienos-agent-state/src/lib.rs index fdf4290e..033ac398 100644 --- a/crates/aienos-agent-state/src/lib.rs +++ b/crates/aienos-agent-state/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS Agent State ABI & Execution Incarnation Substrate (§9). //! //! Provides sovereign logical agent identities, deterministic branch derivation, diff --git a/crates/aienos-agent-state/src/lineage.rs b/crates/aienos-agent-state/src/lineage.rs index 1942b1ae..f7290c3b 100644 --- a/crates/aienos-agent-state/src/lineage.rs +++ b/crates/aienos-agent-state/src/lineage.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Agent lineage provenance tracking and Cortex epistemic references. use crate::id::{LogicalAgentId, LogicalBranchId}; diff --git a/crates/aienos-agent-state/src/manager.rs b/crates/aienos-agent-state/src/manager.rs index 8fe336e3..48233e96 100644 --- a/crates/aienos-agent-state/src/manager.rs +++ b/crates/aienos-agent-state/src/manager.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Concrete thread-safe AgentStateManager implementing AgentStateAbi. use crate::abi::{AgentStateAbi, CheckpointHash, StateError}; diff --git a/crates/aienos-artifact-tool/.crumb b/crates/aienos-artifact-tool/.crumb index a79f1dda..0fe16de4 100644 --- a/crates/aienos-artifact-tool/.crumb +++ b/crates/aienos-artifact-tool/.crumb @@ -17,21 +17,21 @@ "generated": { "children": [ { - "digest": "2e9b452905c551e57f1e70075f5bac994cefa497181800f3bf145a9c6ceb36df", - "last_commit": "2276906", + "digest": "653d8f9d2cbb6a67f8c0538c40b57b83c1c4102f8112f25c823730ea045e4bcb", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-artifact-tool/src. Purpose not yet described by a human." } ], - "children_root": "sha256:9e74efbe992bdf8537913d0945f0b28487e757732babf47a95707d1203682e7b", - "compiled_at": "2026-10-14T13:28:10Z", + "children_root": "sha256:b92b9805eeb5915f2d773e5eee2186bfa1b76fb4a7882172442e7509ec6a9f84", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:ff4260f8fede1182f834d89589eb4d5a6c6160032dfc570003d506411fe93aa4", + "digest": "sha256:dec08f80237f84bc2f9bb73d0f009609cd402dca821a852bf3e8b7e309aec149", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 39, - "generated_at_commit": "a0fa796235409ce465c467e8c72fbd977485d8f7", - "source_tree": "sha256:89eb7ba0259498354bbb1f270b83b0a487ff86996ecb068df73ea51e473a92e2" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:f55f5ae48b80c3718ca44c015773f983e19ca314f0b205f3a84d5ca8ba7b8273" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-artifact-tool/src/.crumb b/crates/aienos-artifact-tool/src/.crumb index 2226bf9f..f86983a2 100644 --- a/crates/aienos-artifact-tool/src/.crumb +++ b/crates/aienos-artifact-tool/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:2e9b452905c551e57f1e70075f5bac994cefa497181800f3bf145a9c6ceb36df", + "digest": "sha256:653d8f9d2cbb6a67f8c0538c40b57b83c1c4102f8112f25c823730ea045e4bcb", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 3, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:45786c050f91edf80cdec22f2cd1f859c4210a1274370d276eefc6b74fcc70ad" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:b8d06a100e4f3daae7d7e6b7f720863cff09af8d532a5bd4bbcfba2a817ef0a7" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-artifact-tool/src/corpus.rs b/crates/aienos-artifact-tool/src/corpus.rs index bfc5081c..5e07a295 100644 --- a/crates/aienos-artifact-tool/src/corpus.rs +++ b/crates/aienos-artifact-tool/src/corpus.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! P2-7 negative-test corpus: deterministic Binary Artifact v0 cases that the //! kernel must refuse at a stable stage with a stable reason, or admit and //! then contain. Every case starts from one valid, TEST-ONLY-signed baseline diff --git a/crates/aienos-artifact-tool/src/main.rs b/crates/aienos-artifact-tool/src/main.rs index 2cde93f3..44596e2b 100644 --- a/crates/aienos-artifact-tool/src/main.rs +++ b/crates/aienos-artifact-tool/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::env; use std::error::Error; use std::fs; diff --git a/crates/aienos-artifact-tool/src/receipt_cmd.rs b/crates/aienos-artifact-tool/src/receipt_cmd.rs index 383c3703..91c9bd48 100644 --- a/crates/aienos-artifact-tool/src/receipt_cmd.rs +++ b/crates/aienos-artifact-tool/src/receipt_cmd.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `receipt` subcommands: inspect, cross-check against the artifact the //! host supplied, TEST-ONLY signing, and verification (ADR 0014 §7). diff --git a/crates/aienos-artifact/.crumb b/crates/aienos-artifact/.crumb index 6e095876..cac667b7 100644 --- a/crates/aienos-artifact/.crumb +++ b/crates/aienos-artifact/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "72839a0b74ae80e6e1a4c702fd619096974eb051aff136506d974522ac6c5651", - "last_commit": "8307a68", + "digest": "c31032776436c72d19d77410bfbb015de7c8a4db39a49524b180713c4df8ad38", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-artifact/src. Purpose not yet described by a human." } ], - "children_root": "sha256:13e8558a828816f21f57e02ca246057abb20a456f1bb257cc4c0392203981f3a", - "compiled_at": "2026-10-14T01:54:45Z", + "children_root": "sha256:ce1c142beba49fcf2175876549177e3019b794782bf8c208f5a687237bbaa15f", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:ffb6a9a637e1eca1408280c4522ea52b283d740a90b8efad30350082900cbcdc", + "digest": "sha256:51ea4b3e93aa77257cea1270ac7520c8bc630300c3dc5051e72439fd64315835", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 13, - "generated_at_commit": "8307a68a2eedcc5c8d6c2a6ffbf7c12f398c094b", - "source_tree": "sha256:1d331b83e3479a7cb19bd437c3402f13ed2d89917dc90a623af90eb4cc93d649" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:9dd3e9fb3f5aaee2bbedfad3155af977c5df7555e1aec8080f465f4be0221c32" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-artifact/src/.crumb b/crates/aienos-artifact/src/.crumb index f9f2afc8..40a9aa59 100644 --- a/crates/aienos-artifact/src/.crumb +++ b/crates/aienos-artifact/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T01:54:45Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:72839a0b74ae80e6e1a4c702fd619096974eb051aff136506d974522ac6c5651", + "digest": "sha256:c31032776436c72d19d77410bfbb015de7c8a4db39a49524b180713c4df8ad38", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 12, - "generated_at_commit": "8307a68a2eedcc5c8d6c2a6ffbf7c12f398c094b", - "source_tree": "sha256:3dc9736a359478ce0c6cc8d522b63556fe5a62b4de2ef1fe16016a9c17cdfb2f" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:c77714f9e2e2042dd74f1c363f58a04698bbf9e5eef60f7c8ad10afe18dd971a" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-artifact/src/canonical.rs b/crates/aienos-artifact/src/canonical.rs index b9a8472d..5014a25b 100644 --- a/crates/aienos-artifact/src/canonical.rs +++ b/crates/aienos-artifact/src/canonical.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aienos_crypto::sha256::{hash, Digest, Sha256}; use crate::format::Artifact; diff --git a/crates/aienos-artifact/src/capability.rs b/crates/aienos-artifact/src/capability.rs index 7fa0ac7b..878c3f0e 100644 --- a/crates/aienos-artifact/src/capability.rs +++ b/crates/aienos-artifact/src/capability.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::error::ArtifactError; pub const CAPABILITY_RECORD_SIZE: usize = 48; diff --git a/crates/aienos-artifact/src/error.rs b/crates/aienos-artifact/src/error.rs index deb9217d..10d07474 100644 --- a/crates/aienos-artifact/src/error.rs +++ b/crates/aienos-artifact/src/error.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /// Stable fail-closed reasons for Binary Artifact v0 parsing and validation. #[derive(Clone, Copy, Debug, Eq, PartialEq)] #[repr(u16)] diff --git a/crates/aienos-artifact/src/format.rs b/crates/aienos-artifact/src/format.rs index 95540667..122b6e90 100644 --- a/crates/aienos-artifact/src/format.rs +++ b/crates/aienos-artifact/src/format.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use core::convert::TryFrom; use crate::capability::{ diff --git a/crates/aienos-artifact/src/id.rs b/crates/aienos-artifact/src/id.rs index 68e201e8..f9993d43 100644 --- a/crates/aienos-artifact/src/id.rs +++ b/crates/aienos-artifact/src/id.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aienos_crypto::sha256::{Digest, Sha256}; use crate::format::Artifact; diff --git a/crates/aienos-artifact/src/lib.rs b/crates/aienos-artifact/src/lib.rs index 712b1d63..6ed563cf 100644 --- a/crates/aienos-artifact/src/lib.rs +++ b/crates/aienos-artifact/src/lib.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Canonical, bounded parser and identity primitives for Binary Artifact v0. //! Persistent data is decoded byte-by-byte; no input is reinterpreted as a diff --git a/crates/aienos-artifact/src/receipt.rs b/crates/aienos-artifact/src/receipt.rs index 8d61dfdd..f94af977 100644 --- a/crates/aienos-artifact/src/receipt.rs +++ b/crates/aienos-artifact/src/receipt.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Admission Receipt v0 (ADR 0014 §7): a 512-byte canonical record of one //! candidate's verification, admission and execution outcome. //! diff --git a/crates/aienos-artifact/src/receipt_tests.rs b/crates/aienos-artifact/src/receipt_tests.rs index eccb12a2..ed198c3b 100644 --- a/crates/aienos-artifact/src/receipt_tests.rs +++ b/crates/aienos-artifact/src/receipt_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Admission Receipt v0 tests: layout, golden bytes, strict decoding, //! mutation and signature behaviour. diff --git a/crates/aienos-artifact/src/resource.rs b/crates/aienos-artifact/src/resource.rs index a35a9215..1c347c80 100644 --- a/crates/aienos-artifact/src/resource.rs +++ b/crates/aienos-artifact/src/resource.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::error::ArtifactError; pub const RESOURCE_ENVELOPE_SIZE: usize = 48; diff --git a/crates/aienos-artifact/src/signature.rs b/crates/aienos-artifact/src/signature.rs index 126333e4..76f45bc9 100644 --- a/crates/aienos-artifact/src/signature.rs +++ b/crates/aienos-artifact/src/signature.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Binary Artifact v0 signature-block, trust, and verification interfaces. use crate::error::ArtifactError; diff --git a/crates/aienos-artifact/src/tests.rs b/crates/aienos-artifact/src/tests.rs index ef36707b..34980b3e 100644 --- a/crates/aienos-artifact/src/tests.rs +++ b/crates/aienos-artifact/src/tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::vec; use std::vec::Vec; diff --git a/crates/aienos-artifact/src/verify.rs b/crates/aienos-artifact/src/verify.rs index b204fe0b..84f9dab0 100644 --- a/crates/aienos-artifact/src/verify.rs +++ b/crates/aienos-artifact/src/verify.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Structural parsing and identity entry points shared by host tooling and //! the kernel. Authentication is added in P2-3. diff --git a/crates/aienos-boot/.crumb b/crates/aienos-boot/.crumb index 427ee2a3..d0b73516 100644 --- a/crates/aienos-boot/.crumb +++ b/crates/aienos-boot/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "a293e29bdbd2290940857d026086a68804efd1b345d7eacc5b16cd542656ab0d", - "last_commit": "3761935", + "digest": "483e9fd38c855478c0e084aed0f63209039e7c1e347cdfa4e6a8fd1129e6d0b7", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-boot/src. Purpose not yet described by a human." } ], - "children_root": "sha256:021ca31625bb390fc4fa28820082502f108d3826b7c69936d0f448f981488ce2", - "compiled_at": "2026-10-13T02:27:54Z", + "children_root": "sha256:ddb5eef7c057a576bfb1b9693bda93531fae9782ab34d00eca9198e898f1b624", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:223e3399133c766986b1044a16c8367b51b78158d3070c0ec63c7ed3e639d644", + "digest": "sha256:4d0c47dce8dfe3a7cba63b731228c6329ba5ab0fd04ad29d7951fd796afd455c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 9, - "generated_at_commit": "74f638c298bc04543b03d6851a83dac815d36645", - "source_tree": "sha256:6f188aa85aafc6b582fa0b6ecdde7ff91d0e7a6714a769d684313d15e3e013c8" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:d1192524a25f95bda0e3914e26db0cc5a2d5f2d260048ef7378abdfab192e186" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-boot/src/.crumb b/crates/aienos-boot/src/.crumb index 3ef75509..bbb18d75 100644 --- a/crates/aienos-boot/src/.crumb +++ b/crates/aienos-boot/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T02:27:54Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:a293e29bdbd2290940857d026086a68804efd1b345d7eacc5b16cd542656ab0d", + "digest": "sha256:483e9fd38c855478c0e084aed0f63209039e7c1e347cdfa4e6a8fd1129e6d0b7", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 8, - "generated_at_commit": "74f638c298bc04543b03d6851a83dac815d36645", - "source_tree": "sha256:63ca92587d96a5f5803d68284e9ffbf32b960df2959a95482aa0d90d0f3b9f00" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:d146ada3fe78433ca567e6f9bf862cbbddac472d91f138ec486fc50000d3522a" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-boot/src/handoff.rs b/crates/aienos-boot/src/handoff.rs index 1a472f43..1fac2da9 100644 --- a/crates/aienos-boot/src/handoff.rs +++ b/crates/aienos-boot/src/handoff.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #![no_main] //! First-boot evidence image for Machine 1. diff --git a/crates/aienos-boot/src/lib.rs b/crates/aienos-boot/src/lib.rs index a2608e51..d531211d 100644 --- a/crates/aienos-boot/src/lib.rs +++ b/crates/aienos-boot/src/lib.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + /// Diagnostic banner emitted while UEFI boot services are still available. pub const FIRMWARE_BANNER: &str = "AIENOS firmware entry: aarch64"; diff --git a/crates/aienos-boot/src/main.rs b/crates/aienos-boot/src/main.rs index eea9a3c2..36f7a60d 100644 --- a/crates/aienos-boot/src/main.rs +++ b/crates/aienos-boot/src/main.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #![no_main] use uefi::prelude::*; diff --git a/crates/aienos-boot/src/nvme_read.rs b/crates/aienos-boot/src/nvme_read.rs index 793d0d59..71ec62a4 100644 --- a/crates/aienos-boot/src/nvme_read.rs +++ b/crates/aienos-boot/src/nvme_read.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! P3 native NVMe read substrate (read-only qualification). //! //! Built only with the `nvme-read` feature, which `scripts/qemu_nvme_test.sh` diff --git a/crates/aienos-boot/src/rollback_mock.rs b/crates/aienos-boot/src/rollback_mock.rs index a0d67016..75d8b394 100644 --- a/crates/aienos-boot/src/rollback_mock.rs +++ b/crates/aienos-boot/src/rollback_mock.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #![no_main] // Links the `wcslen` definition (see wcslen.rs); rustc 1.99 emits calls to it. diff --git a/crates/aienos-boot/src/store_qual.rs b/crates/aienos-boot/src/store_qual.rs index b06618f6..828716e8 100644 --- a/crates/aienos-boot/src/store_qual.rs +++ b/crates/aienos-boot/src/store_qual.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Test-only Store-over-NVMe qualification plumbing. //! //! Bounded block device over the native NVMe controller plus canonical Store v1 diff --git a/crates/aienos-boot/src/usb_keyboard.rs b/crates/aienos-boot/src/usb_keyboard.rs index f8aa35c0..dfcfba61 100644 --- a/crates/aienos-boot/src/usb_keyboard.rs +++ b/crates/aienos-boot/src/usb_keyboard.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SEED-0A candidate `input.keyboard.usb` (ADR 0012): after firmware exit, //! drive the xHCI controller with the polled AIENOS driver and echo typed //! keys on the SPCR console and the screen. diff --git a/crates/aienos-boot/src/wcslen.rs b/crates/aienos-boot/src/wcslen.rs index c259c280..084ab826 100644 --- a/crates/aienos-boot/src/wcslen.rs +++ b/crates/aienos-boot/src/wcslen.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `wcslen` for the UEFI target. //! //! Since rustc 1.99 (LLVM 23) the loop-idiom pass turns any "count 16-bit diff --git a/crates/aienos-c1-tree/.crumb b/crates/aienos-c1-tree/.crumb index 73b12697..3e154f94 100644 --- a/crates/aienos-c1-tree/.crumb +++ b/crates/aienos-c1-tree/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "c4e73e6c433a48fb64a5245f2013976b042e08e61547fed29f63a81eb83ae4a9", - "last_commit": "bc25e73", + "digest": "670354e9a3ea5cf8a0dd3ab1c0f3d115001d50168799d582d6de440cdcb264a3", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-c1-tree/src. Purpose not yet described by a human." } ], - "children_root": "sha256:b8d86bd2ff955746678ddf4f8fab9182bb3c0a3648bb24eece36bece39743278", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:6f0e45ad99ad324b19434ac8771c4a72c3554c8ae0b3f2d82638de404402f4e7", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:01d4fe4a0bd556f338ac4615b7ed1c9141e4f8035c07e0082f2894a57fa071d0", + "digest": "sha256:4e69a6d968b5fcb69ddf80b0ba6e47337d7091f81ab4f45459d13e7c08173bb3", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 6, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:1e157d25c5dc194c76b5962990147c5735dfb314d1ed11bbe5976b48534f211e" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:07b179625929c8e1601588e4242813c18d7bf53c30399f5cda070040b6549f29" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-c1-tree/src/.crumb b/crates/aienos-c1-tree/src/.crumb index 006e0b8c..c444e156 100644 --- a/crates/aienos-c1-tree/src/.crumb +++ b/crates/aienos-c1-tree/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:c4e73e6c433a48fb64a5245f2013976b042e08e61547fed29f63a81eb83ae4a9", + "digest": "sha256:670354e9a3ea5cf8a0dd3ab1c0f3d115001d50168799d582d6de440cdcb264a3", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:f4d9fd2df72f5219d4397bde29a2f2c7c175bd238ca247586addb2577803a52b" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:a0e4cc05777a0017d76621a62452839acaa3769e1eeb0a9ddcf78559d2b8633b" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-c1-tree/src/lib.rs b/crates/aienos-c1-tree/src/lib.rs index 860b51a1..f5941606 100644 --- a/crates/aienos-c1-tree/src/lib.rs +++ b/crates/aienos-c1-tree/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS C1 Copy-On-Write Prefix Tree (§10, §28). //! //! Provides zero-duplication prefix sharing across reasoning branches, diff --git a/crates/aienos-c1-tree/src/metrics.rs b/crates/aienos-c1-tree/src/metrics.rs index 6148e5a6..89370e58 100644 --- a/crates/aienos-c1-tree/src/metrics.rs +++ b/crates/aienos-c1-tree/src/metrics.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Memory metrics for C1 Copy-On-Write Prefix Tree verification. use serde::{Deserialize, Serialize}; diff --git a/crates/aienos-c1-tree/src/page.rs b/crates/aienos-c1-tree/src/page.rs index 021ea3bd..f3ddd51c 100644 --- a/crates/aienos-c1-tree/src/page.rs +++ b/crates/aienos-c1-tree/src/page.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Physical KV Page representation for C1 Copy-On-Write memory engine (§10, §28). use aienos_kernel::crypto::sha256; diff --git a/crates/aienos-c1-tree/src/pool.rs b/crates/aienos-c1-tree/src/pool.rs index ecfbcd38..ced40094 100644 --- a/crates/aienos-c1-tree/src/pool.rs +++ b/crates/aienos-c1-tree/src/pool.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Physical page pool managing accelerator memory allocation and reference counting. use crate::page::{PageId, PhysicalKvPage, PAGE_KV_BYTES}; diff --git a/crates/aienos-c1-tree/src/tree.rs b/crates/aienos-c1-tree/src/tree.rs index 19bece6a..f76d14a6 100644 --- a/crates/aienos-c1-tree/src/tree.rs +++ b/crates/aienos-c1-tree/src/tree.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C1 Copy-On-Write Prefix Tree engine (§10, §28). use crate::metrics::C1MemoryMetrics; diff --git a/crates/aienos-capability-ffi/.crumb b/crates/aienos-capability-ffi/.crumb index ebbd11c1..516db600 100644 --- a/crates/aienos-capability-ffi/.crumb +++ b/crates/aienos-capability-ffi/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "1cb093121e30c7650490bef5f1b0d9d7daeba6b02576ceb70c063924375e8458", - "last_commit": "6d17b22", + "digest": "40e27b049e84a51e1c6675c4eefe2dd01e4909384f08fafdb4d8ba41983f7eab", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-capability-ffi/src. Purpose not yet described by a human." } ], - "children_root": "sha256:951f011130547622847c6176f56210f3d984788efdbbfecc80a553721dfef1bb", - "compiled_at": "2026-10-11T21:20:24Z", + "children_root": "sha256:01840c5e95bb6ca63fdda15f520d129f9d4d9896011dd0d6bae1a10808d1562c", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:c63ab3d5643ac3c0974eee276273a0ab80584c54926cbb62c637294b5b857718", + "digest": "sha256:b204f80d66bb0dda46f7bdad090636552084acd18d9c6184a0446ff4d2df0f8b", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "362cba9653c8021996a21b17ead00d5d1140b371", - "source_tree": "sha256:96faad31a59d21e328ed818589933b387d5487b69b7e046ee5c40ed8a9574e4e" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:664663ce1d9eae6d52b17d7b3e40dd7530f1585f5eaee804ad327a598f76aca6" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-capability-ffi/src/.crumb b/crates/aienos-capability-ffi/src/.crumb index 69258cfd..620d678a 100644 --- a/crates/aienos-capability-ffi/src/.crumb +++ b/crates/aienos-capability-ffi/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-11T21:20:24Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:1cb093121e30c7650490bef5f1b0d9d7daeba6b02576ceb70c063924375e8458", + "digest": "sha256:40e27b049e84a51e1c6675c4eefe2dd01e4909384f08fafdb4d8ba41983f7eab", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "362cba9653c8021996a21b17ead00d5d1140b371", - "source_tree": "sha256:334a2324f5258126e7f4e8b4fbc53f9a051c8dc53b7f9c25a9b7343292dd7c84" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:f28fc9822b1efcbc57a79e5a46637dd622e5c1dff1dee4a7c41f397b4d9a0600" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-capability-ffi/src/lib.rs b/crates/aienos-capability-ffi/src/lib.rs index 1c411bd8..90623d43 100644 --- a/crates/aienos-capability-ffi/src/lib.rs +++ b/crates/aienos-capability-ffi/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! C binding for the 32-bit-generation Rust capability authority //! (`aienos-capability`). //! diff --git a/crates/aienos-capability/.crumb b/crates/aienos-capability/.crumb index c46fd152..dd041cb3 100644 --- a/crates/aienos-capability/.crumb +++ b/crates/aienos-capability/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "9c1c32b183b9272d26de382e1327aac1da7373f79096fb3e421f795b36d17c8b", - "last_commit": "362cba9", + "digest": "f2ce8b630299a2cf9af5a544c16fc91794729926c743461ee0c882bb39646766", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-capability/src. Purpose not yet described by a human." } ], - "children_root": "sha256:ec5b8bc5ec1d665dcfbecf32ea2408e5d3c84ec78e9d4623554ffc9a32d6970d", - "compiled_at": "2026-10-11T21:20:24Z", + "children_root": "sha256:e21f96d48be32b7eaa1b588d5cb776dfd03c17a697c15915eb01a4a1a56c230d", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:ca15c2b9ae570b0aa2c7859672de2c976d6ce046188c09b7c74b5ccbee350136", + "digest": "sha256:4d2b17a9d26ddec69d05b85f7119c83f5aae0d7d3fe01e238af3214f928a1030", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "362cba9653c8021996a21b17ead00d5d1140b371", - "source_tree": "sha256:a435f6cea762e4c709af5e49797c27aeedc468b7003993e72cf5f429dcf5e5b0" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:caf27be6f27206ca44edd224aff5595ad4310eb09b8b684237839bc2f29cbfac" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-capability/src/.crumb b/crates/aienos-capability/src/.crumb index c4140490..73fa0531 100644 --- a/crates/aienos-capability/src/.crumb +++ b/crates/aienos-capability/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-11T21:20:24Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:9c1c32b183b9272d26de382e1327aac1da7373f79096fb3e421f795b36d17c8b", + "digest": "sha256:f2ce8b630299a2cf9af5a544c16fc91794729926c743461ee0c882bb39646766", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "362cba9653c8021996a21b17ead00d5d1140b371", - "source_tree": "sha256:fe35483a6d43ccd7a9450e95bde44a95ec22e67a282447450ca4c70d1a8b32b8" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:cf19052bba948e619171511e3274936c8e6179d587484cc5aef57f69c2cfd4b8" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-capability/src/lib.rs b/crates/aienos-capability/src/lib.rs index 64a44c6d..25876f34 100644 --- a/crates/aienos-capability/src/lib.rs +++ b/crates/aienos-capability/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Rust capability authority, 32-bit generations. //! //! A separate implementation of the AIENOS capability rules. The production diff --git a/crates/aienos-cortex/.crumb b/crates/aienos-cortex/.crumb index 8b8bd508..5365f6eb 100644 --- a/crates/aienos-cortex/.crumb +++ b/crates/aienos-cortex/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "1ea60299f5c468e6713aff04a2588ae50d1d9667270d629368f6bcf3a6837ef0", - "last_commit": "bc25e73", + "digest": "54a38deca39cf0bb3b2144878f174909e470a00dcd796031b00fe771b3b656a8", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-cortex/src. Purpose not yet described by a human." } ], - "children_root": "sha256:92d1cbf580400ebb38fb86483abce93e4ec128765daa059f5d84d27f9ef52eee", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:6a4304d4fdacfb7e884e0736d097ee881b14a3b40cb5d187b5ecc1b5a948378c", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:f062e2e58faa2950ce8adeb2e4c16234dacce6672d560ed4fdeb7224c5093a77", + "digest": "sha256:b19271c073e30328bdff3a6e8a261957002cc0ce1e2d90e406103d38ae9f1153", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 6, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:8d85c1d3b93b28be2a5bada5c383d51b4d1bf11af78751aef5f628465b43a93d" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:464171b52c90ebf4f8d3931952e9e60cbadb459b8b502b257918788b70c8a120" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-cortex/src/.crumb b/crates/aienos-cortex/src/.crumb index 7eb740e3..2085dc78 100644 --- a/crates/aienos-cortex/src/.crumb +++ b/crates/aienos-cortex/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:1ea60299f5c468e6713aff04a2588ae50d1d9667270d629368f6bcf3a6837ef0", + "digest": "sha256:54a38deca39cf0bb3b2144878f174909e470a00dcd796031b00fe771b3b656a8", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:8909001899839398417d11d829dedf944384cf2dfb2b9e732120ed8fef024565" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:85403a9c23efef0f098ffe5fb2b731d88210d0dfd3cd8c2aedb8bbbaf853fb6e" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-cortex/src/lib.rs b/crates/aienos-cortex/src/lib.rs index d2fa6549..e8df7e72 100644 --- a/crates/aienos-cortex/src/lib.rs +++ b/crates/aienos-cortex/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS Cortex Epistemic Store (§11). //! //! Preserves durable epistemic memory with verifiable provenance: diff --git a/crates/aienos-cortex/src/record.rs b/crates/aienos-cortex/src/record.rs index 886c8eb0..df77480b 100644 --- a/crates/aienos-cortex/src/record.rs +++ b/crates/aienos-cortex/src/record.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Epistemic records capturing knowledge with immutable provenance and evidence hashes. use crate::status::EpistemicStatus; diff --git a/crates/aienos-cortex/src/status.rs b/crates/aienos-cortex/src/status.rs index 145cb137..bae732be 100644 --- a/crates/aienos-cortex/src/status.rs +++ b/crates/aienos-cortex/src/status.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Epistemic status classifications conforming to AIENOS Blueprint §11 and Specs §2.3. use serde::{Deserialize, Serialize}; diff --git a/crates/aienos-cortex/src/store.rs b/crates/aienos-cortex/src/store.rs index fe760238..3fec9596 100644 --- a/crates/aienos-cortex/src/store.rs +++ b/crates/aienos-cortex/src/store.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Cortex Epistemic Store engine managing the verifiable knowledge graph. use crate::record::EpistemicRecord; diff --git a/crates/aienos-cortex/src/verification.rs b/crates/aienos-cortex/src/verification.rs index d1186243..0e011769 100644 --- a/crates/aienos-cortex/src/verification.rs +++ b/crates/aienos-cortex/src/verification.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Grounding verification and hallucination detection for Cortex Epistemic Store. use crate::record::EpistemicRecord; diff --git a/crates/aienos-crypto/.crumb b/crates/aienos-crypto/.crumb index 0c47d8c2..a5c19ee1 100644 --- a/crates/aienos-crypto/.crumb +++ b/crates/aienos-crypto/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "df22f43d422699a0008974d22f67f8be01d22d0d654b47b70fe18f4528fb9daa", - "last_commit": "f0facc7", + "digest": "ba6e27862b0aebf1e3964b0b307b0666c9f6cb9f14a48b2c8547c57d0355b407", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-crypto/src. Purpose not yet described by a human." } ], - "children_root": "sha256:ef6e4823cebb32eaffb834d1c1e26e12b4ae6b026ccdddb6ba707032d40550e5", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:c12a8d943d691dae8378d4edd8a2c1f1a6cce38af69cf212a23c7f77a9f694ae", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:feccaaf349b9e88bc116db18951ffbd0145176b40ce702bc6320338c35b2e85e", + "digest": "sha256:abc59b7f8730775fca5d3595415bff49a12a0d9ca42fa73fd28ab25931ad1495", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 6, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:2f0bb7150a70335c17ca5809b37982f1788f0e212a8ab9719de5a1f0a4a503a7" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:23495bab49cccd4ea7688ec7984d7c5830586e8aecef9454e4aa3f862bae6cc6" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-crypto/src/.crumb b/crates/aienos-crypto/src/.crumb index 3403854b..88dbc3c9 100644 --- a/crates/aienos-crypto/src/.crumb +++ b/crates/aienos-crypto/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:df22f43d422699a0008974d22f67f8be01d22d0d654b47b70fe18f4528fb9daa", + "digest": "sha256:ba6e27862b0aebf1e3964b0b307b0666c9f6cb9f14a48b2c8547c57d0355b407", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:4796887182256b3bb93023aac24d014cd096e6f6aa139d72b1c96d69371df6f3" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:73899f33dd32c851744ce9685671ca73d6e2b78a292f6acc5d65e6c89972d1a3" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-crypto/src/aes.rs b/crates/aienos-crypto/src/aes.rs index b6b09e73..bb322de4 100644 --- a/crates/aienos-crypto/src/aes.rs +++ b/crates/aienos-crypto/src/aes.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure-Rust, allocation-free AES-256 block cipher implementation conforming to FIPS 197. //! //! Designed for bare-metal `#![no_std]` without external dependencies. diff --git a/crates/aienos-crypto/src/aes_gcm_siv.rs b/crates/aienos-crypto/src/aes_gcm_siv.rs index 0620ad29..dc8c5fbf 100644 --- a/crates/aienos-crypto/src/aes_gcm_siv.rs +++ b/crates/aienos-crypto/src/aes_gcm_siv.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure-Rust, allocation-free AES-256-GCM-SIV AEAD implementation conforming to RFC 8452. //! //! Nonce-misuse-resistant authenticated encryption with associated data (AEAD) diff --git a/crates/aienos-crypto/src/lib.rs b/crates/aienos-crypto/src/lib.rs index d9cfa48c..36028083 100644 --- a/crates/aienos-crypto/src/lib.rs +++ b/crates/aienos-crypto/src/lib.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Shared, allocation-free cryptographic primitives used by the kernel and //! host/bare-metal parsers. diff --git a/crates/aienos-crypto/src/polyval.rs b/crates/aienos-crypto/src/polyval.rs index 5d2f19d5..70ed3369 100644 --- a/crates/aienos-crypto/src/polyval.rs +++ b/crates/aienos-crypto/src/polyval.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure-Rust, allocation-free POLYVAL universal hash implementation conforming to RFC 8452. //! //! Evaluates polynomial authentication tags over GF(2^128) modulo diff --git a/crates/aienos-crypto/src/sha256.rs b/crates/aienos-crypto/src/sha256.rs index 68c13446..26ad9dad 100644 --- a/crates/aienos-crypto/src/sha256.rs +++ b/crates/aienos-crypto/src/sha256.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure-Rust, sovereign SHA-256 implementation conforming to FIPS 180-4. //! //! Fully deterministic and zero-dependency, safe for bare-metal `#![no_std]`. diff --git a/crates/aienos-evidence/.crumb b/crates/aienos-evidence/.crumb index 7cf1a74e..1a0bd921 100644 --- a/crates/aienos-evidence/.crumb +++ b/crates/aienos-evidence/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "3a2a8524efb5a0ba6ee9470537d862bad5b69a58ca6328e49e48715f8de36c09", - "last_commit": "e960272", + "digest": "c8987a20ec00d6162272a9b906b60eadac5202ef6b4a71a60f6063565d25291f", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-evidence/src. Purpose not yet described by a human." } ], - "children_root": "sha256:77c1f566be80f025bdb191e29a47eb07fe3ed2832535f5df4f29ff60aec4b4b3", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:27cf2576de0a481156f51cb90a738a330645fd72ec5270c9d53207b0cf6ee504", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:e88324eb9a32d23d8358413c7404038ee4095fcf8c4889ac9c221b97aef80b8e", + "digest": "sha256:4b6a8ce817f3cb8139e4b3f993dec01db75804afd267545018a9ae4ce29697d2", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 10, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:f0c5766c2a965888b6e893213d2b31052c9e7c52f22c6a02be4b39cf80f6b36d" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:d79707cd5fb05b5f1d8e423d57951d10d290e1dca4133601d299e46a54fe9ef3" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-evidence/src/.crumb b/crates/aienos-evidence/src/.crumb index 741b0455..6110b586 100644 --- a/crates/aienos-evidence/src/.crumb +++ b/crates/aienos-evidence/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:3a2a8524efb5a0ba6ee9470537d862bad5b69a58ca6328e49e48715f8de36c09", + "digest": "sha256:c8987a20ec00d6162272a9b906b60eadac5202ef6b4a71a60f6063565d25291f", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 9, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:b7dec6edff310b7a8af19c5fd59dee61f43b885bad3d2a2a5417e405f8a92319" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:2fcf0da498a931643b83ff7e413b0266a28b6aad6e59049907f95ab52754cc66" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-evidence/src/canon.rs b/crates/aienos-evidence/src/canon.rs index 1e37db0a..6f68034e 100644 --- a/crates/aienos-evidence/src/canon.rs +++ b/crates/aienos-evidence/src/canon.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Canonical JSON and the bundle checksum. //! //! The checksum covers a canonical encoding (object keys sorted, no diff --git a/crates/aienos-evidence/src/capture.rs b/crates/aienos-evidence/src/capture.rs index 7b05d356..1a93ac08 100644 --- a/crates/aienos-evidence/src/capture.rs +++ b/crates/aienos-evidence/src/capture.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Read-only capture of the Linux reference machine (Config A). //! //! Sources are procfs, sysfs, git, and the local inference endpoint. GPU diff --git a/crates/aienos-evidence/src/http.rs b/crates/aienos-evidence/src/http.rs index 12c42b21..fe59bcd3 100644 --- a/crates/aienos-evidence/src/http.rs +++ b/crates/aienos-evidence/src/http.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Minimal HTTP/1.1 client for a local OpenAI-compatible inference endpoint. //! //! Plain `http://` only: the reference workload runs against a server on this diff --git a/crates/aienos-evidence/src/lib.rs b/crates/aienos-evidence/src/lib.rs index fc8c21f7..af534164 100644 --- a/crates/aienos-evidence/src/lib.rs +++ b/crates/aienos-evidence/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-side evidence tooling for the M0 reference freeze. //! //! Replaces the former Python capture and verification scripts. Everything diff --git a/crates/aienos-evidence/src/main.rs b/crates/aienos-evidence/src/main.rs index a018462b..489ccf65 100644 --- a/crates/aienos-evidence/src/main.rs +++ b/crates/aienos-evidence/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! aienos-evidence CLI. //! //! aienos-evidence capture --model PATH --repo NAME=PATH... [--endpoint URL] diff --git a/crates/aienos-evidence/src/pe.rs b/crates/aienos-evidence/src/pe.rs index 4d3df35b..4903ddf1 100644 --- a/crates/aienos-evidence/src/pe.rs +++ b/crates/aienos-evidence/src/pe.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Structural check that a file is an AArch64 PE32+ EFI application. //! This verifies the artifact format only, not that the image boots. diff --git a/crates/aienos-evidence/src/rollback.rs b/crates/aienos-evidence/src/rollback.rs index 2919073f..b8be306e 100644 --- a/crates/aienos-evidence/src/rollback.rs +++ b/crates/aienos-evidence/src/rollback.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Machine 1 native-boot rollback verdict (docs/NATIVE_BOOT_ONE_TIME.md). //! //! Compares the pre-boot and post-return captures written by diff --git a/crates/aienos-evidence/src/time.rs b/crates/aienos-evidence/src/time.rs index fc64da27..7ebd71c1 100644 --- a/crates/aienos-evidence/src/time.rs +++ b/crates/aienos-evidence/src/time.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! UTC timestamps without a date library. use std::time::{SystemTime, UNIX_EPOCH}; diff --git a/crates/aienos-evidence/src/verify.rs b/crates/aienos-evidence/src/verify.rs index c86ccccc..db0f6bef 100644 --- a/crates/aienos-evidence/src/verify.rs +++ b/crates/aienos-evidence/src/verify.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Config A bundle verification. //! //! `errors` means the capture itself cannot be trusted as reference evidence. diff --git a/crates/aienos-explain/src/adapters.rs b/crates/aienos-explain/src/adapters.rs index c32a2c6d..e7d52219 100644 --- a/crates/aienos-explain/src/adapters.rs +++ b/crates/aienos-explain/src/adapters.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Producers of the evidence-graph contract from aienos Cortex records and agent //! branches. Read-only: nothing here writes to Cortex or to agent state. //! diff --git a/crates/aienos-explain/src/build.rs b/crates/aienos-explain/src/build.rs index b84b1e60..a3d5ba68 100644 --- a/crates/aienos-explain/src/build.rs +++ b/crates/aienos-explain/src/build.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Bounded causal backtracking and linearization. //! //! Given an evidence graph and a target node, walk support edges backward diff --git a/crates/aienos-explain/src/bundle.rs b/crates/aienos-explain/src/bundle.rs index c01529b3..53297960 100644 --- a/crates/aienos-explain/src/bundle.rs +++ b/crates/aienos-explain/src/bundle.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The grounded explanation bundle: the authoritative, deterministic output of the //! builder. Renderers only read it. It has no field for analogies or prose, and it //! grants no authority (explanation is observational). diff --git a/crates/aienos-explain/src/contract.rs b/crates/aienos-explain/src/contract.rs index 933ede0b..1d74a70d 100644 --- a/crates/aienos-explain/src/contract.rs +++ b/crates/aienos-explain/src/contract.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Evidence graph contract `aien.explain.evidence-graph` version 1. //! //! This is the language-neutral boundary of the explanation bridge. Any producer diff --git a/crates/aienos-explain/src/lib.rs b/crates/aienos-explain/src/lib.rs index 479e5b46..a5a37890 100644 --- a/crates/aienos-explain/src/lib.rs +++ b/crates/aienos-explain/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS explanation bridge: think in graphs, speak in paths. //! //! Machine artifacts (Cortex records, agent branches, RSI hypothesis contracts, diff --git a/crates/aienos-explain/src/main.rs b/crates/aienos-explain/src/main.rs index 5d65ec5d..649b4735 100644 --- a/crates/aienos-explain/src/main.rs +++ b/crates/aienos-explain/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! `aienos-explain`: host-side operator command for grounded explanations. //! //! aienos-explain explain (--graph FILE | --cortex-journal FILE) --artifact ID diff --git a/crates/aienos-explain/src/render.rs b/crates/aienos-explain/src/render.rs index e3698562..b752a2c4 100644 --- a/crates/aienos-explain/src/render.rs +++ b/crates/aienos-explain/src/render.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic presentation of an [`ExplanationBundle`]. //! //! Every function here takes the bundle by shared reference and returns text. The diff --git a/crates/aienos-explain/src/session.rs b/crates/aienos-explain/src/session.rs index a0ea6e38..9ec40a32 100644 --- a/crates/aienos-explain/src/session.rs +++ b/crates/aienos-explain/src/session.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Clarification and rewind over one bundle, without recomputing anything. //! //! "Explain that", "explain step 4", "go one level deeper", "where did that come diff --git a/crates/aienos-explain/tests/explain.rs b/crates/aienos-explain/tests/explain.rs index b89150ae..26788a84 100644 --- a/crates/aienos-explain/tests/explain.rs +++ b/crates/aienos-explain/tests/explain.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Behavioural tests for the explanation bridge (brief section 20). use aienos_agent_state::{AgentStateAbi, AgentStateManager, LogicalAgentId}; diff --git a/crates/aienos-explain/tests/rsi_and_cli.rs b/crates/aienos-explain/tests/rsi_and_cli.rs index 598028e4..b0ae4555 100644 --- a/crates/aienos-explain/tests/rsi_and_cli.rs +++ b/crates/aienos-explain/tests/rsi_and_cli.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Cross-repo fixture from spark-rsi (the RSI KV-cache cycle) and the CLI. //! //! The fixture is produced by spark-rsi `tests/test_explain_evidence_graph.rs`; both diff --git a/crates/aienos-fpu-probe/Cargo.toml b/crates/aienos-fpu-probe/Cargo.toml index f70af78b..ca8311c6 100644 --- a/crates/aienos-fpu-probe/Cargo.toml +++ b/crates/aienos-fpu-probe/Cargo.toml @@ -4,7 +4,7 @@ name = "aienos-fpu-probe" version = "0.1.0" edition = "2021" -license = "AGPL-3.0-or-later" +license = "Apache-2.0" description = "One FP/SIMD-enabled Rust unit called from the general-regs-only C kernel (aienos#34 lane 0)." [lib] diff --git a/crates/aienos-fpu-probe/src/lib.rs b/crates/aienos-fpu-probe/src/lib.rs index 86e099a6..4b0a5da9 100644 --- a/crates/aienos-fpu-probe/src/lib.rs +++ b/crates/aienos-fpu-probe/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! FP/SIMD probe: one unit that uses f32 math and NEON, called from the C //! kernel (which is built -mgeneral-regs-only and never touches FP itself). //! Inputs go through black_box so LLVM cannot constant-fold the FP work away diff --git a/crates/aienos-infer-kernel/Cargo.toml b/crates/aienos-infer-kernel/Cargo.toml index d7e0b5ce..aa114595 100644 --- a/crates/aienos-infer-kernel/Cargo.toml +++ b/crates/aienos-infer-kernel/Cargo.toml @@ -4,7 +4,7 @@ name = "aienos-infer-kernel" version = "0.1.0" edition = "2021" -license = "AGPL-3.0-or-later" +license = "Apache-2.0" description = "Links aienos-infer into the general-regs-only C kernel: bump allocator, ingest, prefill + greedy decode (aienos#34 lanes 4-5)." [lib] diff --git a/crates/aienos-infer-kernel/src/lib.rs b/crates/aienos-infer-kernel/src/lib.rs index 46f5dbf5..c1872754 100644 --- a/crates/aienos-infer-kernel/src/lib.rs +++ b/crates/aienos-infer-kernel/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Kernel-side entry for native inference (aienos#34 lane 4 cut 1 + lane 5 //! cut 2). //! diff --git a/crates/aienos-infer-kernel/src/session.rs b/crates/aienos-infer-kernel/src/session.rs index b1dad4f3..6288d8f4 100644 --- a/crates/aienos-infer-kernel/src/session.rs +++ b/crates/aienos-infer-kernel/src/session.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Bounded inference session for the resident kernel (native v1 P06). //! //! The one-shot probe (`aienos_infer_run`) parses, prefills, decodes and diff --git a/crates/aienos-infer/examples/dot_bench.rs b/crates/aienos-infer/examples/dot_bench.rs index f8f99223..64f05416 100644 --- a/crates/aienos-infer/examples/dot_bench.rs +++ b/crates/aienos-infer/examples/dot_bench.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Row-dot microbenchmark, one thread: ns per Q4_K / Q6_K row dot of 8192 //! weights, scalar f32 path vs SDOT path (aienos#34 PI5-6). Random blocks //! with a fixed seed; `AIENOS_DOT_ITERS` (default 20000) rows per timing. diff --git a/crates/aienos-infer/examples/l6_host.rs b/crates/aienos-infer/examples/l6_host.rs index 24385c39..a98db481 100644 --- a/crates/aienos-infer/examples/l6_host.rs +++ b/crates/aienos-infer/examples/l6_host.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! L6-A host-side tokens-per-second harness (aienos#34 lane 6). //! //! Runs the same code path as the kernel (`aienos-infer-kernel`) and the host diff --git a/crates/aienos-infer/examples/model_probe.rs b/crates/aienos-infer/examples/model_probe.rs index 0f73a4c6..79687011 100644 --- a/crates/aienos-infer/examples/model_probe.rs +++ b/crates/aienos-infer/examples/model_probe.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PI5-8 host probe: can the engine's forward pass run an arbitrary llama-architecture GGUF, //! and does it produce the same greedy tokens as llama.cpp? //! diff --git a/crates/aienos-infer/src/decode.rs b/crates/aienos-infer/src/decode.rs index 3fa06c15..a71dede6 100644 --- a/crates/aienos-infer/src/decode.rs +++ b/crates/aienos-infer/src/decode.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Forward pass, KV cache and greedy decode (aienos#34 lanes 2 and 3). //! //! Scalar f32, one token at a time. Graph per layer (llama.cpp diff --git a/crates/aienos-infer/src/dotprod.rs b/crates/aienos-infer/src/dotprod.rs index ee25977e..b0f90418 100644 --- a/crates/aienos-infer/src/dotprod.rs +++ b/crates/aienos-infer/src/dotprod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Quantized dot products on int8 activations with Armv8.2 dot product //! (SDOT), for Cortex-A76 class cores (Raspberry Pi 5) and anything newer. //! diff --git a/crates/aienos-infer/src/gguf.rs b/crates/aienos-infer/src/gguf.rs index 263d6267..983bb2d5 100644 --- a/crates/aienos-infer/src/gguf.rs +++ b/crates/aienos-infer/src/gguf.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Bounded GGUF v3 reader over a byte slice. //! //! Layout (GGUF spec, little endian): magic `GGUF`, u32 version, u64 tensor diff --git a/crates/aienos-infer/src/half.rs b/crates/aienos-infer/src/half.rs index 86925a39..aafeb0ca 100644 --- a/crates/aienos-infer/src/half.rs +++ b/crates/aienos-infer/src/half.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! IEEE binary16 and bfloat16 to f32 without std. /// Convert an IEEE 754 binary16 bit pattern to f32 (exact for all inputs, diff --git a/crates/aienos-infer/src/lib.rs b/crates/aienos-infer/src/lib.rs index 8d7253bb..8528a0d8 100644 --- a/crates/aienos-infer/src/lib.rs +++ b/crates/aienos-infer/src/lib.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #![deny(unsafe_code)] // Block loops mirror ggml index arithmetic; as_chunks/is_multiple_of are too // new for this workspace to rely on. diff --git a/crates/aienos-infer/src/math.rs b/crates/aienos-infer/src/math.rs index c1ad0813..cdbc5ffe 100644 --- a/crates/aienos-infer/src/math.rs +++ b/crates/aienos-infer/src/math.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Scalar f32 math without libm (no_std). //! //! `exp_approx`, `sqrt_approx` and `sin_cos` are adapted from the retired diff --git a/crates/aienos-infer/src/model.rs b/crates/aienos-infer/src/model.rs index 6d2fe024..e1148095 100644 --- a/crates/aienos-infer/src/model.rs +++ b/crates/aienos-infer/src/model.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Llama weights bound to a GGUF slice (aienos#34 lane 2). //! //! Nothing is copied except the small f32 vectors (norm weights, rope diff --git a/crates/aienos-infer/src/quant.rs b/crates/aienos-infer/src/quant.rs index 3251cff6..60406a4f 100644 --- a/crates/aienos-infer/src/quant.rs +++ b/crates/aienos-infer/src/quant.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ggml block dequantizers (scalar reference implementations). //! //! Formulas follow ggml's `dequantize_row_q4_K` / `dequantize_row_q6_K` diff --git a/crates/aienos-infer/src/tokenizer.rs b/crates/aienos-infer/src/tokenizer.rs index d64617d3..852e831d 100644 --- a/crates/aienos-infer/src/tokenizer.rs +++ b/crates/aienos-infer/src/tokenizer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Llama-3 byte-level BPE tokenizer built from the GGUF `tokenizer.ggml.*` //! arrays (pre-tokenizer `llama-bpe`). //! diff --git a/crates/aienos-infer/tests/forward.rs b/crates/aienos-infer/tests/forward.rs index 14cddaad..20b7fdcb 100644 --- a/crates/aienos-infer/tests/forward.rs +++ b/crates/aienos-infer/tests/forward.rs @@ -1,4 +1,19 @@ #![allow(clippy::chunks_exact_to_as_chunks)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Golden tests for the Llama-3.2-1B forward pass, tokenizer and greedy decode //! against llama.cpp (aienos#34 lanes 2+3). //! diff --git a/crates/aienos-infer/tests/golden.rs b/crates/aienos-infer/tests/golden.rs index ff533da5..296b7f81 100644 --- a/crates/aienos-infer/tests/golden.rs +++ b/crates/aienos-infer/tests/golden.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Golden and hostile-input tests for the GGUF reader and dequantizers. //! //! Real-file tests read the frozen Llama-3.2-1B-Instruct-Q4_K_M model and are diff --git a/crates/aienos-infer/tests/ref/llama_ref.c b/crates/aienos-infer/tests/ref/llama_ref.c index 76832e33..bef3c1e7 100644 --- a/crates/aienos-infer/tests/ref/llama_ref.c +++ b/crates/aienos-infer/tests/ref/llama_ref.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Reference harness for aienos-infer golden tests (aienos#34 lane 2+3). * Links the locally built llama.cpp (libllama) and prints, for one raw prompt * string (special tokens parsed, BOS NOT added: the string carries it): diff --git a/crates/aienos-kernel/.crumb b/crates/aienos-kernel/.crumb index 8601194a..a6104aa5 100644 --- a/crates/aienos-kernel/.crumb +++ b/crates/aienos-kernel/.crumb @@ -17,27 +17,27 @@ "generated": { "children": [ { - "digest": "734b26e98d61b37aac677c0414839f40a617df3d632281dcdb103300def3fb33", - "last_commit": "c9e49a1", + "digest": "d924c157210b71db4e1bfadf43b4765bf4c60af4a1925814e969f67c84d18250", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-kernel/src. Purpose not yet described by a human." }, { - "digest": "4a5f74d8e889ecb0089082469852f1e4b1c034af70dfeab3df2902cd35662ddb", - "last_commit": "09e59a8", + "digest": "727b12dda8e6f6e9fbc692676b36cbf6861e441a2591d7c94081d6462f5d42ae", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory crates/aienos-kernel/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:77d394e8ab2668a7a8970995479282d55313a816627a71d753dd0dcc2ad63a12", - "compiled_at": "2026-10-14T05:42:42Z", + "children_root": "sha256:e87301a6b780193a8cdcbf82d5e05814b6bd4e10362461add9a9d2f7ed551185", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:a0d0036c90e3d64d6e1caa67b77bf2b8deb898c597e9f0b797df4a144468e061", + "digest": "sha256:ab35d646b8609d01b53594b99c345c9ae87f9c304a1189bc14d6945ff94f4ae1", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 85, - "generated_at_commit": "02f8eab6a95907159c13e8b83fc0aaf2c100db11", - "source_tree": "sha256:c86f23913fbd167149dbe254e7369e586f9d6011adab1d612e70c6a3ed2f9ec7" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:e1ea1678c4cabe204ee77834cdbd95bdeec6da86db58fd9784262eecbbc5a64e" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/.crumb b/crates/aienos-kernel/src/.crumb index 9a056ef4..0616c9b5 100644 --- a/crates/aienos-kernel/src/.crumb +++ b/crates/aienos-kernel/src/.crumb @@ -45,69 +45,69 @@ "generated": { "children": [ { - "digest": "ad829eca65ef7878ec3f262d4ba17592c984c4f25e29b2012ea00fd6d3909260", - "last_commit": "49ff776", + "digest": "0fec37c6cbaba5364f226f92ecc8bc5729ec42068c609838337f14bbcd6e8304", + "last_commit": "621c9e6f", "name": "arch", "purpose": "Directory crates/aienos-kernel/src/arch. Purpose not yet described by a human." }, { - "digest": "b7d0aa65cc5d5530c8946550c0c917d2f5b413fd7fd26c951a927061e88c42ac", - "last_commit": "f0facc7", + "digest": "9cad10e0afd94f816520125eba23370bb901e255d5117366fdb4b82b19849d45", + "last_commit": "621c9e6f", "name": "crypto", "purpose": "Directory crates/aienos-kernel/src/crypto. Purpose not yet described by a human." }, { - "digest": "fa2848da5714e9ff05bc46ce48d916c1c257295dd384fb690564773344006884", - "last_commit": "a22b1d8", + "digest": "57c749af72a4df38d2c8809b5f72efa7cc67adf163770e096eac57f8e7c24237", + "last_commit": "621c9e6f", "name": "display", "purpose": "Directory crates/aienos-kernel/src/display. Purpose not yet described by a human." }, { - "digest": "aeb814fd7cfb0fdd7f62ddb86ecaea68bbb7c6a36baac72b3037db4db01de7d0", - "last_commit": "fbbfc9c", + "digest": "1c3ed71d03c40098e840bdac951279c2eb4de60d9d68d32dc629021832e0fd60", + "last_commit": "621c9e6f", "name": "infer", "purpose": "Directory crates/aienos-kernel/src/infer. Purpose not yet described by a human." }, { - "digest": "fedb9de89144afbd947950265a8abd584f23af9188889330b1efb7ac600b6655", - "last_commit": "3a6174a", + "digest": "8811aa3432f5d6d016ad4ee3560f31859fdb71d156adbacb65eb8f31c48ec776", + "last_commit": "621c9e6f", "name": "mem", "purpose": "Directory crates/aienos-kernel/src/mem. Purpose not yet described by a human." }, { - "digest": "ec1328a2fc6f55a1a0a66efe3322f9eaa4fe3dd495c458b2fb64ceabf69951f4", - "last_commit": "c851d01", + "digest": "866da6a307fd48bc9e0fad79ec62ac2db50a413fd1cf9764d879a7199db4bb88", + "last_commit": "621c9e6f", "name": "nvme", "purpose": "Directory crates/aienos-kernel/src/nvme. Purpose not yet described by a human." }, { - "digest": "65eae3c74fff17cf4adf6f795c72ce3a65a32bb8d90a735fa8674a9a7bbe5a4e", - "last_commit": "a2a0382", + "digest": "91c01593a5ac4508ee897d96306edbe77c8f26c35f7afb79551059382ac7c74e", + "last_commit": "621c9e6f", "name": "store", "purpose": "Directory crates/aienos-kernel/src/store. Purpose not yet described by a human." }, { - "digest": "2d69db3de4cc825da15f576da8375d3994c484741be4dafd356a1b469afce7f1", - "last_commit": "bc25e73", + "digest": "7ffd47f90121e1140c729a251aab11d08469a818af7fa9f116b51875a815f8fa", + "last_commit": "621c9e6f", "name": "sync", "purpose": "Directory crates/aienos-kernel/src/sync. Purpose not yet described by a human." }, { - "digest": "f51233705a5c33d1c72abca84575d077a80fd907e73c14ee95d9939a02c06eb0", - "last_commit": "49ff776", + "digest": "c87c0832b8e6069723c0deb614b223c05879100d7b6d2768c4e6b45d7d7b6ed5", + "last_commit": "621c9e6f", "name": "usb", "purpose": "Directory crates/aienos-kernel/src/usb. Purpose not yet described by a human." } ], - "children_root": "sha256:e84717f6b7c3368dbb75c1fe5496c2b6b70a63404a35a96dc89e2aa5dec251b2", - "compiled_at": "2026-10-14T05:42:42Z", + "children_root": "sha256:f958c86a3bea5d344fc60ad18fbffab2efe376a2e3ff88a9eca9df24bff1643f", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:734b26e98d61b37aac677c0414839f40a617df3d632281dcdb103300def3fb33", + "digest": "sha256:d924c157210b71db4e1bfadf43b4765bf4c60af4a1925814e969f67c84d18250", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 75, - "generated_at_commit": "02f8eab6a95907159c13e8b83fc0aaf2c100db11", - "source_tree": "sha256:6922d3c9969a87d4fa673b02e20dba31cec91d56266fdc7ff3a57454fcef3de0" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:d250defbe74a61bda96c50f7e31f935d91edbf3bebda558d47ec6aef8f698896" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/abi.rs b/crates/aienos-kernel/src/abi.rs index 4e3372cb..6e51c2d5 100644 --- a/crates/aienos-kernel/src/abi.rs +++ b/crates/aienos-kernel/src/abi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS ABI v1: the frozen wire contract for handles, rights, capabilities, //! memory regions and messages (ADR 0013). //! diff --git a/crates/aienos-kernel/src/acpi.rs b/crates/aienos-kernel/src/acpi.rs index 3f41c46e..9239303a 100644 --- a/crates/aienos-kernel/src/acpi.rs +++ b/crates/aienos-kernel/src/acpi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Minimal ACPI table parsing for early CPU topology. //! //! Pure functions over byte slices so they are testable on the host; the boot diff --git a/crates/aienos-kernel/src/admission.rs b/crates/aienos-kernel/src/admission.rs index 9ab797f4..81f3bc2f 100644 --- a/crates/aienos-kernel/src/admission.rs +++ b/crates/aienos-kernel/src/admission.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic policy evaluation for authenticated native artifacts. //! //! This module decides what a verified artifact may receive. It does not diff --git a/crates/aienos-kernel/src/arch/.crumb b/crates/aienos-kernel/src/arch/.crumb index 8112643e..41b8db7e 100644 --- a/crates/aienos-kernel/src/arch/.crumb +++ b/crates/aienos-kernel/src/arch/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T02:27:54Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:ad829eca65ef7878ec3f262d4ba17592c984c4f25e29b2012ea00fd6d3909260", + "digest": "sha256:0fec37c6cbaba5364f226f92ecc8bc5729ec42068c609838337f14bbcd6e8304", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "74f638c298bc04543b03d6851a83dac815d36645", - "source_tree": "sha256:8ca36aa449d5b268a7e8b8e233aeef95f4f6a282492d45763bfe62f780a03e32" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:8448bc95125ba9022a2e60759d8ed0fc47e5f663431acd1b153fc6f485d34010" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/arch/aarch64.rs b/crates/aienos-kernel/src/arch/aarch64.rs index f7eecb41..338a0d9e 100644 --- a/crates/aienos-kernel/src/arch/aarch64.rs +++ b/crates/aienos-kernel/src/arch/aarch64.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AArch64 bare-metal architecture primitives, MMIO, and UART for AIENOS. use core::marker::PhantomData; diff --git a/crates/aienos-kernel/src/arch/mod.rs b/crates/aienos-kernel/src/arch/mod.rs index 1f550c2e..aabb5b7c 100644 --- a/crates/aienos-kernel/src/arch/mod.rs +++ b/crates/aienos-kernel/src/arch/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Architecture-specific abstractions for AIENOS bare-metal substrate. pub mod aarch64; diff --git a/crates/aienos-kernel/src/artifact_loader.rs b/crates/aienos-kernel/src/artifact_loader.rs index 76e9a75b..2cb6224b 100644 --- a/crates/aienos-kernel/src/artifact_loader.rs +++ b/crates/aienos-kernel/src/artifact_loader.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Binary Artifact v0 loader: the only path from authenticated artifact bytes //! to a runnable EL0 task (ADR 0014 §5). //! diff --git a/crates/aienos-kernel/src/artifact_loader_tests.rs b/crates/aienos-kernel/src/artifact_loader_tests.rs index 0cf30d49..1e639f0d 100644 --- a/crates/aienos-kernel/src/artifact_loader_tests.rs +++ b/crates/aienos-kernel/src/artifact_loader_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host tests for the Binary Artifact v0 loader over a mock physical memory. //! //! The mock kernel identity map covers the arena at `ARENA_BASE` in one of diff --git a/crates/aienos-kernel/src/block.rs b/crates/aienos-kernel/src/block.rs index 4e30f345..be80b70b 100644 --- a/crates/aienos-kernel/src/block.rs +++ b/crates/aienos-kernel/src/block.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Minimal block device interface shared by storage drivers. #[derive(Clone, Copy, Debug, Eq, PartialEq)] diff --git a/crates/aienos-kernel/src/boot.rs b/crates/aienos-kernel/src/boot.rs index f6a177be..64d50c21 100644 --- a/crates/aienos-kernel/src/boot.rs +++ b/crates/aienos-kernel/src/boot.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS Bare-Metal Boot Spine (§Step 2 of Systems Integration Sequence). //! //! Provides the bare-metal entry path, early serial banner, and BootReceipt. diff --git a/crates/aienos-kernel/src/budget.rs b/crates/aienos-kernel/src/budget.rs index b337fdd0..4067776c 100644 --- a/crates/aienos-kernel/src/budget.rs +++ b/crates/aienos-kernel/src/budget.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Fixed-capacity resource accounting and watchdog policy for isolated Worlds. //! //! This module has no hardware dependencies. A caller supplies counter ticks diff --git a/crates/aienos-kernel/src/caps.rs b/crates/aienos-kernel/src/caps.rs index 4f7b70ee..70aca8ad 100644 --- a/crates/aienos-kernel/src/caps.rs +++ b/crates/aienos-kernel/src/caps.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Fixed-capacity capability handles with generation checks and revocation. //! //! The task table below is unchanged. The native authority, with subject, diff --git a/crates/aienos-kernel/src/console.rs b/crates/aienos-kernel/src/console.rs index 7440f072..78cdbe2a 100644 --- a/crates/aienos-kernel/src/console.rs +++ b/crates/aienos-kernel/src/console.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Early serial console chosen from the firmware's ACPI SPCR table. //! //! The console never depends on accelerator discovery: the firmware says where diff --git a/crates/aienos-kernel/src/continuity.rs b/crates/aienos-kernel/src/continuity.rs index fef71183..6edc145c 100644 --- a/crates/aienos-kernel/src/continuity.rs +++ b/crates/aienos-kernel/src/continuity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! M4 continuity objects over System Store v1 (ADR 0016, Proposed). //! //! AIEN is provisioned once (ADR 0007). Every later start must locate, verify diff --git a/crates/aienos-kernel/src/continuity_tests.rs b/crates/aienos-kernel/src/continuity_tests.rs index ad7bb79e..69245eb5 100644 --- a/crates/aienos-kernel/src/continuity_tests.rs +++ b/crates/aienos-kernel/src/continuity_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use super::*; use crate::store::engine::{MountState, ObjectInput, Store, StoreDevice}; use crate::store::genesis::genesis_units; diff --git a/crates/aienos-kernel/src/continuity_vectors.rs b/crates/aienos-kernel/src/continuity_vectors.rs index 87c89ff0..264d36ec 100644 --- a/crates/aienos-kernel/src/continuity_vectors.rs +++ b/crates/aienos-kernel/src/continuity_vectors.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! D-1 / D-2 golden vectors for the C continuity codec (contract //! native/kernel/CONTINUITY_RECOVERY_CONTRACT.md 6.3, aienos#222, cut 2). //! diff --git a/crates/aienos-kernel/src/crypto/.crumb b/crates/aienos-kernel/src/crypto/.crumb index 5216ee65..f38d7957 100644 --- a/crates/aienos-kernel/src/crypto/.crumb +++ b/crates/aienos-kernel/src/crypto/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:b7d0aa65cc5d5530c8946550c0c917d2f5b413fd7fd26c951a927061e88c42ac", + "digest": "sha256:9cad10e0afd94f816520125eba23370bb901e255d5117366fdb4b82b19849d45", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:99da0e4c88bda0206dc3eea2b04209579ba60975dc625d3044ec6a31ee62ddf3" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:bb72be24ead60daaf3ba546020a1fd16c9423330c82e2b27c2aef8dad237d534" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/crypto/envelope.rs b/crates/aienos-kernel/src/crypto/envelope.rs index f1e863a3..3f78ba14 100644 --- a/crates/aienos-kernel/src/crypto/envelope.rs +++ b/crates/aienos-kernel/src/crypto/envelope.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! M5 authenticated streaming envelope over Store v1 (ADR 0017 Section 2.3). //! //! Wraps application payload objects in chunked AEAD envelopes using AES-256-GCM-SIV. diff --git a/crates/aienos-kernel/src/crypto/hkdf.rs b/crates/aienos-kernel/src/crypto/hkdf.rs index 8c27b1eb..0df7fb50 100644 --- a/crates/aienos-kernel/src/crypto/hkdf.rs +++ b/crates/aienos-kernel/src/crypto/hkdf.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! HKDF-SHA256 (RFC 5869). use super::hmac::HmacSha256; use super::sha256::Digest; diff --git a/crates/aienos-kernel/src/crypto/hmac.rs b/crates/aienos-kernel/src/crypto/hmac.rs index b1f8b607..78ab63c7 100644 --- a/crates/aienos-kernel/src/crypto/hmac.rs +++ b/crates/aienos-kernel/src/crypto/hmac.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! HMAC-SHA256 (RFC 2104). use super::sha256::{hash, Digest, Sha256}; diff --git a/crates/aienos-kernel/src/crypto/mod.rs b/crates/aienos-kernel/src/crypto/mod.rs index 8f072827..3bfe87e3 100644 --- a/crates/aienos-kernel/src/crypto/mod.rs +++ b/crates/aienos-kernel/src/crypto/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Sovereign cryptographic primitives for AIENOS. pub mod envelope; diff --git a/crates/aienos-kernel/src/crypto/sha256.rs b/crates/aienos-kernel/src/crypto/sha256.rs index cf5053bd..cc06fd47 100644 --- a/crates/aienos-kernel/src/crypto/sha256.rs +++ b/crates/aienos-kernel/src/crypto/sha256.rs @@ -1,2 +1,17 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! SHA-256 is shared by the kernel and host/bare-metal artifact tooling. pub use aienos_crypto::sha256::*; diff --git a/crates/aienos-kernel/src/device.rs b/crates/aienos-kernel/src/device.rs index 6ed31b49..e7afedff 100644 --- a/crates/aienos-kernel/src/device.rs +++ b/crates/aienos-kernel/src/device.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Device authority: a device may only move memory (DMA) while a capability //! says it may. //! diff --git a/crates/aienos-kernel/src/display/.crumb b/crates/aienos-kernel/src/display/.crumb index e6ec9c74..7ccd2350 100644 --- a/crates/aienos-kernel/src/display/.crumb +++ b/crates/aienos-kernel/src/display/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:fa2848da5714e9ff05bc46ce48d916c1c257295dd384fb690564773344006884", + "digest": "sha256:57c749af72a4df38d2c8809b5f72efa7cc67adf163770e096eac57f8e7c24237", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:aef57a83d373447720cb87d8ad9c14429ea3c813d55c17972b9a7f8772d82ea1" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:5d55cb0bb4b77672402afa6e57fe3bffeac6dd443ace996ad6602736372993fd" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/display/font.rs b/crates/aienos-kernel/src/display/font.rs index 1e8ba2df..8d863180 100644 --- a/crates/aienos-kernel/src/display/font.rs +++ b/crates/aienos-kernel/src/display/font.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Built-in 5x7 bitmap font for the early boot screen. //! //! Glyphs are drawn as text so a reviewer can check them by eye. Lowercase diff --git a/crates/aienos-kernel/src/display/mod.rs b/crates/aienos-kernel/src/display/mod.rs index 0f2715d1..d97c9cc2 100644 --- a/crates/aienos-kernel/src/display/mod.rs +++ b/crates/aienos-kernel/src/display/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Early boot screen: text drawn straight into the firmware-provided //! framebuffer (UEFI GOP) after boot services exit. No GPU driver is involved; //! the firmware has already set the display mode. diff --git a/crates/aienos-kernel/src/dma_gate.rs b/crates/aienos-kernel/src/dma_gate.rs index bfbc7e1b..e0baa4eb 100644 --- a/crates/aienos-kernel/src/dma_gate.rs +++ b/crates/aienos-kernel/src/dma_gate.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PCI bus mastering (DMA) gate. Governing rule for M3: no SMMU confinement //! means no DMA. //! diff --git a/crates/aienos-kernel/src/edu.rs b/crates/aienos-kernel/src/edu.rs index a71c8f13..88163ae4 100644 --- a/crates/aienos-kernel/src/edu.rs +++ b/crates/aienos-kernel/src/edu.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Driver for QEMU's `edu` educational PCI device (1234:11e8). //! //! The device exists to prove DMA confinement without risking a real diff --git a/crates/aienos-kernel/src/fatal.rs b/crates/aienos-kernel/src/fatal.rs index f9fa7af2..b1e519af 100644 --- a/crates/aienos-kernel/src/fatal.rs +++ b/crates/aienos-kernel/src/fatal.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Fatal-path capture for early boot: CPU exceptions and panics. //! //! After firmware exit the firmware's exception vectors are still installed, diff --git a/crates/aienos-kernel/src/gic.rs b/crates/aienos-kernel/src/gic.rs index 730df15b..e58907d0 100644 --- a/crates/aienos-kernel/src/gic.rs +++ b/crates/aienos-kernel/src/gic.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! GICv3 register programming separated from the address and CPU interface. //! This module configures registers only. It does not unmask CPU interrupts. diff --git a/crates/aienos-kernel/src/infer/.crumb b/crates/aienos-kernel/src/infer/.crumb index 4d6c7e7b..dee04bb8 100644 --- a/crates/aienos-kernel/src/infer/.crumb +++ b/crates/aienos-kernel/src/infer/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T20:01:05Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:aeb814fd7cfb0fdd7f62ddb86ecaea68bbb7c6a36baac72b3037db4db01de7d0", + "digest": "sha256:1c3ed71d03c40098e840bdac951279c2eb4de60d9d68d32dc629021832e0fd60", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "79456d09c1e2aaf0c84f853f0e3d76b864475bb7", - "source_tree": "sha256:10bca0cfb9f161ce82da5e2f09ac664f09c70dadfafda71d89f1ee2766c4c23a" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:2341a27583fbc2f5f349ef372e54373877df176e345a82b305fef1e906ee61e8" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/infer/attention.rs b/crates/aienos-kernel/src/infer/attention.rs index 88ac2915..bfd4e40f 100644 --- a/crates/aienos-kernel/src/infer/attention.rs +++ b/crates/aienos-kernel/src/infer/attention.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Allocation-free single-query decode attention over caller-owned KV storage. use super::gemm::{self, KernelError}; diff --git a/crates/aienos-kernel/src/infer/gemm.rs b/crates/aienos-kernel/src/infer/gemm.rs index 236ac874..f3df0f32 100644 --- a/crates/aienos-kernel/src/infer/gemm.rs +++ b/crates/aienos-kernel/src/infer/gemm.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Allocation-free row-major matrix and activation kernels. #[derive(Clone, Copy, Debug, PartialEq, Eq)] diff --git a/crates/aienos-kernel/src/infer/mod.rs b/crates/aienos-kernel/src/infer/mod.rs index 232652c0..49dcef1f 100644 --- a/crates/aienos-kernel/src/infer/mod.rs +++ b/crates/aienos-kernel/src/infer/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Native CPU inference: tokenizer and compute kernels (host-testable, no system registers). pub mod attention; pub mod gemm; diff --git a/crates/aienos-kernel/src/infer/rope.rs b/crates/aienos-kernel/src/infer/rope.rs index 1bdcf33d..406dab3a 100644 --- a/crates/aienos-kernel/src/infer/rope.rs +++ b/crates/aienos-kernel/src/infer/rope.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Allocation-free Llama-style rotary position embeddings. use super::gemm::{self, KernelError}; diff --git a/crates/aienos-kernel/src/infer/tokenizer.rs b/crates/aienos-kernel/src/infer/tokenizer.rs index ec79615b..8a808298 100644 --- a/crates/aienos-kernel/src/infer/tokenizer.rs +++ b/crates/aienos-kernel/src/infer/tokenizer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Byte-level BPE tokenizer. //! //! Vocabulary text is UTF-8 with one record per line. `T id hexbytes` adds a diff --git a/crates/aienos-kernel/src/ipc.rs b/crates/aienos-kernel/src/ipc.rs index 04da07db..491ad1a0 100644 --- a/crates/aienos-kernel/src/ipc.rs +++ b/crates/aienos-kernel/src/ipc.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Typed kernel-owned message channels, gated by capability handles. //! //! The channel ring, the object bytes and every principal's capability table diff --git a/crates/aienos-kernel/src/lib.rs b/crates/aienos-kernel/src/lib.rs index c196366e..bb6b5330 100644 --- a/crates/aienos-kernel/src/lib.rs +++ b/crates/aienos-kernel/src/lib.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS Bare-Metal Kernel Substrate for AArch64 (DGX Spark). //! //! Provides minimal, sovereign, deterministic primitives: diff --git a/crates/aienos-kernel/src/mem/.crumb b/crates/aienos-kernel/src/mem/.crumb index 91c79fca..1806c627 100644 --- a/crates/aienos-kernel/src/mem/.crumb +++ b/crates/aienos-kernel/src/mem/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:fedb9de89144afbd947950265a8abd584f23af9188889330b1efb7ac600b6655", + "digest": "sha256:8811aa3432f5d6d016ad4ee3560f31859fdb71d156adbacb65eb8f31c48ec776", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 4, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:f52d292558dfe1f43a5a2400f0b0c83f5409953dc075683391c42c41e2025404" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:0754358377be13871810f2af09f7018e10573fe4201351bb1003ebd4de45f500" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/mem/frame_allocator.rs b/crates/aienos-kernel/src/mem/frame_allocator.rs index c82caa9a..07bd5374 100644 --- a/crates/aienos-kernel/src/mem/frame_allocator.rs +++ b/crates/aienos-kernel/src/mem/frame_allocator.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic physical memory and frame allocator primitives for AIENOS. /// Physical Page Size on AArch64 (4 KiB standard). diff --git a/crates/aienos-kernel/src/mem/map_plan.rs b/crates/aienos-kernel/src/mem/map_plan.rs index c5ea9d5b..be421ed3 100644 --- a/crates/aienos-kernel/src/mem/map_plan.rs +++ b/crates/aienos-kernel/src/mem/map_plan.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure planning for the identity map used by the EL2 to EL1h handoff. use super::pagetable::{MapFlags, MemoryAttribute}; use alloc::vec::Vec; diff --git a/crates/aienos-kernel/src/mem/mod.rs b/crates/aienos-kernel/src/mem/mod.rs index ad778bf7..66be4a66 100644 --- a/crates/aienos-kernel/src/mem/mod.rs +++ b/crates/aienos-kernel/src/mem/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Physical memory management primitives for AIENOS kernel. pub mod frame_allocator; diff --git a/crates/aienos-kernel/src/mem/pagetable.rs b/crates/aienos-kernel/src/mem/pagetable.rs index edb71b46..f0f839e2 100644 --- a/crates/aienos-kernel/src/mem/pagetable.rs +++ b/crates/aienos-kernel/src/mem/pagetable.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure AArch64 stage-1, 4 KiB granule, 48-bit address translation tables. //! //! This module builds descriptors but does not configure translation registers. diff --git a/crates/aienos-kernel/src/net.rs b/crates/aienos-kernel/src/net.rs index 96c3fb27..6ba170be 100644 --- a/crates/aienos-kernel/src/net.rs +++ b/crates/aienos-kernel/src/net.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure, bounded network protocol primitives. All packet offsets are checked. #[derive(Clone, Copy, Debug, Eq, PartialEq)] diff --git a/crates/aienos-kernel/src/nvme.rs b/crates/aienos-kernel/src/nvme.rs index a38dc26a..90d2697d 100644 --- a/crates/aienos-kernel/src/nvme.rs +++ b/crates/aienos-kernel/src/nvme.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-testable NVMe register, queue, command, and PRP primitives. //! This module performs no MMIO and owns no DMA memory. diff --git a/crates/aienos-kernel/src/nvme/.crumb b/crates/aienos-kernel/src/nvme/.crumb index 9f7b67bd..b50cbd5e 100644 --- a/crates/aienos-kernel/src/nvme/.crumb +++ b/crates/aienos-kernel/src/nvme/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:ec1328a2fc6f55a1a0a66efe3322f9eaa4fe3dd495c458b2fb64ceabf69951f4", + "digest": "sha256:866da6a307fd48bc9e0fad79ec62ac2db50a413fd1cf9764d879a7199db4bb88", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:514dde2f4c77d89d342397ff2d893685cfc619147cbfcf46477426da3db22a49" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:7be33779d1f32ceffc1290b5efb16611c82f2ea703ec7db2943872c6ba0be9e9" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/nvme/atomicity.rs b/crates/aienos-kernel/src/nvme/atomicity.rs index 9475ef42..d72fda8e 100644 --- a/crates/aienos-kernel/src/nvme/atomicity.rs +++ b/crates/aienos-kernel/src/nvme/atomicity.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! NVMe power-fail atomic-write qualification for the System Store root write. //! //! NVMe reports power-fail atomic write units as **0-based** logical-block diff --git a/crates/aienos-kernel/src/nvme/driver.rs b/crates/aienos-kernel/src/nvme/driver.rs index 5500619d..a1e5df15 100644 --- a/crates/aienos-kernel/src/nvme/driver.rs +++ b/crates/aienos-kernel/src/nvme/driver.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Polled NVMe admin controller initialization and Identify commands. use crate::block::BlockError; diff --git a/crates/aienos-kernel/src/pci.rs b/crates/aienos-kernel/src/pci.rs index 772ccd42..9ba2b89b 100644 --- a/crates/aienos-kernel/src/pci.rs +++ b/crates/aienos-kernel/src/pci.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! PCI configuration space enumeration over an ECAM window. //! //! Finds functions by vendor and device id, reports each function's diff --git a/crates/aienos-kernel/src/pe.rs b/crates/aienos-kernel/src/pe.rs index 16348214..9620597e 100644 --- a/crates/aienos-kernel/src/pe.rs +++ b/crates/aienos-kernel/src/pe.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Bounds-checked parser for loaded PE32+ AArch64 section tables. use crate::mem::map_plan::PeSection; use alloc::vec::Vec; diff --git a/crates/aienos-kernel/src/recovery.rs b/crates/aienos-kernel/src/recovery.rs index d8c85d43..075a8eab 100644 --- a/crates/aienos-kernel/src/recovery.rs +++ b/crates/aienos-kernel/src/recovery.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! AIENOS Deterministic Recovery Core (ADR 0006). //! //! A non-model, deterministic subsystem for: diff --git a/crates/aienos-kernel/src/recovery_core.rs b/crates/aienos-kernel/src/recovery_core.rs index ebc03eb4..6c0d52dd 100644 --- a/crates/aienos-kernel/src/recovery_core.rs +++ b/crates/aienos-kernel/src/recovery_core.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Deterministic Recovery Core entry, inspection and operator-authorised //! actions over System Store v1 and continuity (ADR 0006, ADR 0007, ADR 0016). //! diff --git a/crates/aienos-kernel/src/recovery_core_tests.rs b/crates/aienos-kernel/src/recovery_core_tests.rs index 2bc69cc1..add56f30 100644 --- a/crates/aienos-kernel/src/recovery_core_tests.rs +++ b/crates/aienos-kernel/src/recovery_core_tests.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use super::*; use crate::continuity::{self, CortexRecord, Epistemic, ProvisionSource, Update}; use crate::store::genesis::genesis_units; diff --git a/crates/aienos-kernel/src/report.rs b/crates/aienos-kernel/src/report.rs index 35155468..d3463570 100644 --- a/crates/aienos-kernel/src/report.rs +++ b/crates/aienos-kernel/src/report.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Fixed-capacity text buffer for boot reports, usable without a heap. //! //! The same report text is sent to every output (screen, firmware variable, diff --git a/crates/aienos-kernel/src/scheduler.rs b/crates/aienos-kernel/src/scheduler.rs index 3f1949e7..0220adcc 100644 --- a/crates/aienos-kernel/src/scheduler.rs +++ b/crates/aienos-kernel/src/scheduler.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-testable CPU placement and fair run-queue policy. //! //! MADT efficiency classes use lower numbers for more efficient cores. This diff --git a/crates/aienos-kernel/src/security.rs b/crates/aienos-kernel/src/security.rs index 905c499a..3ba1b8f8 100644 --- a/crates/aienos-kernel/src/security.rs +++ b/crates/aienos-kernel/src/security.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! M5 Key Hierarchy, Security Manifests, and Anti-Rollback (ADR 0017). //! //! Normative implementation of storage security roots: diff --git a/crates/aienos-kernel/src/shell.rs b/crates/aienos-kernel/src/shell.rs index 35ff1b79..a1636809 100644 --- a/crates/aienos-kernel/src/shell.rs +++ b/crates/aienos-kernel/src/shell.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Bounded command parsing and dispatch for the early line shell. use crate::report::ReportBuf; diff --git a/crates/aienos-kernel/src/smmu.rs b/crates/aienos-kernel/src/smmu.rs index c01ad603..0eb15f1e 100644 --- a/crates/aienos-kernel/src/smmu.rs +++ b/crates/aienos-kernel/src/smmu.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-testable SMMUv3 descriptors, queues, and register sequencing. //! //! This module does not map MMIO. Register access and the cache maintenance diff --git a/crates/aienos-kernel/src/store.rs b/crates/aienos-kernel/src/store.rs index 6ab452b7..eb1617c2 100644 --- a/crates/aienos-kernel/src/store.rs +++ b/crates/aienos-kernel/src/store.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Legacy ADR 0003 storage plus the canonical System Store v1 engine. //! //! Note: This module provides a host-tested implementation of ADR 0003 storage semantics, diff --git a/crates/aienos-kernel/src/store/.crumb b/crates/aienos-kernel/src/store/.crumb index 6b146ac9..a260be28 100644 --- a/crates/aienos-kernel/src/store/.crumb +++ b/crates/aienos-kernel/src/store/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:65eae3c74fff17cf4adf6f795c72ce3a65a32bb8d90a735fa8674a9a7bbe5a4e", + "digest": "sha256:91c01593a5ac4508ee897d96306edbe77c8f26c35f7afb79551059382ac7c74e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:7f1e21a5ca6cbc472d4498884beaaf3edee4780ca9a3969f68e031a1c185eac3" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:44a123db7222b88862e723224611a7b730826792f3371f61524efe530ac44f32" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/store/checkpoint.rs b/crates/aienos-kernel/src/store/checkpoint.rs index c7e1e5f6..f3314ceb 100644 --- a/crates/aienos-kernel/src/store/checkpoint.rs +++ b/crates/aienos-kernel/src/store/checkpoint.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Crash Checkpoint ABI for AIENOS System Store transactions. //! //! Provides a tiny test-only checkpoint interface consumed by crash controllers, diff --git a/crates/aienos-kernel/src/store/device.rs b/crates/aienos-kernel/src/store/device.rs index e99a6ab0..edffd0bf 100644 --- a/crates/aienos-kernel/src/store/device.rs +++ b/crates/aienos-kernel/src/store/device.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ADR 0015 geometry adapter for StoreDevice. //! //! Maps an underlying `BlockDevice` with a 512-byte or 4096-byte logical block size diff --git a/crates/aienos-kernel/src/store/engine.rs b/crates/aienos-kernel/src/store/engine.rs index 2933c1af..770bfd27 100644 --- a/crates/aienos-kernel/src/store/engine.rs +++ b/crates/aienos-kernel/src/store/engine.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Mount and transaction semantics for the canonical System Store v1 format. //! //! This layer only sees bounded 4096-byte Store units. Device geometry, diff --git a/crates/aienos-kernel/src/store/genesis.rs b/crates/aienos-kernel/src/store/genesis.rs index cb6982cf..aa23d9be 100644 --- a/crates/aienos-kernel/src/store/genesis.rs +++ b/crates/aienos-kernel/src/store/genesis.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Canonical System Store v1 genesis units (ADR 0015 §5). use alloc::vec::Vec; diff --git a/crates/aienos-kernel/src/store/v1.rs b/crates/aienos-kernel/src/store/v1.rs index 32c2e21c..1e32f90c 100644 --- a/crates/aienos-kernel/src/store/v1.rs +++ b/crates/aienos-kernel/src/store/v1.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Canonical System Store v1 encodings from ADR 0015. //! //! This module provides format primitives only. It does not read or write a diff --git a/crates/aienos-kernel/src/sync/.crumb b/crates/aienos-kernel/src/sync/.crumb index 513952e7..a4d76e64 100644 --- a/crates/aienos-kernel/src/sync/.crumb +++ b/crates/aienos-kernel/src/sync/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:2d69db3de4cc825da15f576da8375d3994c484741be4dafd356a1b469afce7f1", + "digest": "sha256:7ffd47f90121e1140c729a251aab11d08469a818af7fa9f116b51875a815f8fa", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:78893ae665ae14dbb92a18c10850eb08ebdcf04f21d2f15ed652709b13c16f99" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:2d4889d0fb1e1adbe80da52a7eb1e2051e9a6451467e91b3ac766f616cdc9b89" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/sync/mod.rs b/crates/aienos-kernel/src/sync/mod.rs index f34027f7..523e5326 100644 --- a/crates/aienos-kernel/src/sync/mod.rs +++ b/crates/aienos-kernel/src/sync/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Sovereign synchronization primitives for bare-metal substrate. pub mod spinlock; diff --git a/crates/aienos-kernel/src/sync/spinlock.rs b/crates/aienos-kernel/src/sync/spinlock.rs index ceb06cbc..1cee022e 100644 --- a/crates/aienos-kernel/src/sync/spinlock.rs +++ b/crates/aienos-kernel/src/sync/spinlock.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Sovereign SpinLock for bare-metal `#![no_std]` concurrency. use core::cell::UnsafeCell; diff --git a/crates/aienos-kernel/src/task_runtime.rs b/crates/aienos-kernel/src/task_runtime.rs index cb838a84..8c681018 100644 --- a/crates/aienos-kernel/src/task_runtime.rs +++ b/crates/aienos-kernel/src/task_runtime.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! EL0 execution of one admitted, loaded artifact task. //! //! The loader (`artifact_loader`) builds the private address space and the diff --git a/crates/aienos-kernel/src/thread.rs b/crates/aienos-kernel/src/thread.rs index 6d79ba34..57b81687 100644 --- a/crates/aienos-kernel/src/thread.rs +++ b/crates/aienos-kernel/src/thread.rs @@ -1,4 +1,19 @@ #![allow(static_mut_refs)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Cooperative and preemptive EL1 threads with caller-owned stacks. #![allow(clippy::items_after_test_module)] use crate::acpi::CpuTopology; diff --git a/crates/aienos-kernel/src/timer.rs b/crates/aienos-kernel/src/timer.rs index fa9ed05c..38fb854c 100644 --- a/crates/aienos-kernel/src/timer.rs +++ b/crates/aienos-kernel/src/timer.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure architectural timer arithmetic and injectable EL1 register access. /// Convert nanoseconds to counter ticks, rounding up so a requested delay is not shortened. diff --git a/crates/aienos-kernel/src/uefi.rs b/crates/aienos-kernel/src/uefi.rs index 7b2e3bb0..df68a8af 100644 --- a/crates/aienos-kernel/src/uefi.rs +++ b/crates/aienos-kernel/src/uefi.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! UEFI memory attributes table (MAT) parser. use crate::mem::map_plan::{AddressRange, RuntimeAttributes, EFI_MEMORY_RO, EFI_MEMORY_XP}; use alloc::vec::Vec; diff --git a/crates/aienos-kernel/src/usb/.crumb b/crates/aienos-kernel/src/usb/.crumb index 96749bf7..bc194d08 100644 --- a/crates/aienos-kernel/src/usb/.crumb +++ b/crates/aienos-kernel/src/usb/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "451d20161f6df66f91a25be8a7257306238f81ce0afb80c7f22b5994d05f1350", - "last_commit": "35b3086", + "digest": "6d2f9d174c5f47baaea3ce4b79b5de2d7f5318280a7ff36f5bbb023030ebd5b0", + "last_commit": "621c9e6f", "name": "xhci", "purpose": "Directory crates/aienos-kernel/src/usb/xhci. Purpose not yet described by a human." } ], - "children_root": "sha256:84fa272544e7bafacd247ab2c9371317f746bd408f0bdb5e0918007370dfe5c3", - "compiled_at": "2026-10-13T02:27:54Z", + "children_root": "sha256:228437c37db496908c3e6c759b2946cfa4e124315ce3f42cda297deab1dcfbbc", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:f51233705a5c33d1c72abca84575d077a80fd907e73c14ee95d9939a02c06eb0", + "digest": "sha256:c87c0832b8e6069723c0deb614b223c05879100d7b6d2768c4e6b45d7d7b6ed5", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 9, - "generated_at_commit": "74f638c298bc04543b03d6851a83dac815d36645", - "source_tree": "sha256:cb2d7930d8dbaad0d76d7e5d5903ae3a810e34e6558192ecc4554d8fb6e89675" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:463495d5d7b1f8f5a52346732e597f2f892c61d6e1ed46e5754a081c9460b0a7" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/usb/audio.rs b/crates/aienos-kernel/src/usb/audio.rs index afc9bc0c..f16a54c7 100644 --- a/crates/aienos-kernel/src/usb/audio.rs +++ b/crates/aienos-kernel/src/usb/audio.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-testable USB Audio Class output descriptor and PCM helpers. //! //! This parses the common single-configuration UAC1/UAC2 layout. It does not diff --git a/crates/aienos-kernel/src/usb/descriptor.rs b/crates/aienos-kernel/src/usb/descriptor.rs index 8b22cf2f..e075550c 100644 --- a/crates/aienos-kernel/src/usb/descriptor.rs +++ b/crates/aienos-kernel/src/usb/descriptor.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! USB descriptor parsing for keyboard bring-up (USB 2.0 section 9.6, HID //! 1.11 appendix B): the device descriptor's control packet size and the //! boot keyboard interface inside a configuration descriptor. diff --git a/crates/aienos-kernel/src/usb/hid.rs b/crates/aienos-kernel/src/usb/hid.rs index 93981c76..cfa6c19c 100644 --- a/crates/aienos-kernel/src/usb/hid.rs +++ b/crates/aienos-kernel/src/usb/hid.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! HID boot-protocol keyboard reports. //! //! Pure parsing: an 8-byte boot-protocol report in, key events out. No MMIO diff --git a/crates/aienos-kernel/src/usb/mod.rs b/crates/aienos-kernel/src/usb/mod.rs index 756364dc..78800283 100644 --- a/crates/aienos-kernel/src/usb/mod.rs +++ b/crates/aienos-kernel/src/usb/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! USB support for the early console. //! //! After `ExitBootServices` the firmware's USB keyboard support is gone, so diff --git a/crates/aienos-kernel/src/usb/xhci/.crumb b/crates/aienos-kernel/src/usb/xhci/.crumb index 6bcf602d..60160850 100644 --- a/crates/aienos-kernel/src/usb/xhci/.crumb +++ b/crates/aienos-kernel/src/usb/xhci/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T02:27:54Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:451d20161f6df66f91a25be8a7257306238f81ce0afb80c7f22b5994d05f1350", + "digest": "sha256:6d2f9d174c5f47baaea3ce4b79b5de2d7f5318280a7ff36f5bbb023030ebd5b0", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 5, - "generated_at_commit": "74f638c298bc04543b03d6851a83dac815d36645", - "source_tree": "sha256:c939574330b003b590ddc42d63608e3ba2363fe2d368d1fd015029770f71787e" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:9c9c72e95a1970d0926a014a7d553ce8a5798ac52238d6c04021d0ab95080e9b" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/src/usb/xhci/context.rs b/crates/aienos-kernel/src/usb/xhci/context.rs index 9afc3db7..be3e0db3 100644 --- a/crates/aienos-kernel/src/usb/xhci/context.rs +++ b/crates/aienos-kernel/src/usb/xhci/context.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Input contexts for Address Device, Evaluate Context and Configure //! Endpoint (xHCI 1.2 section 6.2), plus the speed and interval rules the //! driver needs to fill them. diff --git a/crates/aienos-kernel/src/usb/xhci/controller.rs b/crates/aienos-kernel/src/usb/xhci/controller.rs index 81ebdf1e..10833ee7 100644 --- a/crates/aienos-kernel/src/usb/xhci/controller.rs +++ b/crates/aienos-kernel/src/usb/xhci/controller.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Polled xHCI bring-up of one HID boot keyboard. //! //! Sequence: halt and reset the controller, program one command ring, one diff --git a/crates/aienos-kernel/src/usb/xhci/mod.rs b/crates/aienos-kernel/src/usb/xhci/mod.rs index 8c9148d2..2de0f009 100644 --- a/crates/aienos-kernel/src/usb/xhci/mod.rs +++ b/crates/aienos-kernel/src/usb/xhci/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! xHCI (USB 3 host controller) building blocks for the polled keyboard //! driver: PCI recognition, capability decoding, register layout, port //! status helpers, TRBs, rings and input contexts. All pure data layout and diff --git a/crates/aienos-kernel/src/usb/xhci/ring.rs b/crates/aienos-kernel/src/usb/xhci/ring.rs index 9b676bd7..5cdc21bd 100644 --- a/crates/aienos-kernel/src/usb/xhci/ring.rs +++ b/crates/aienos-kernel/src/usb/xhci/ring.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Command, transfer and event rings (xHCI 1.2 section 4.9). //! //! A producer ring (command or transfer) is written by software and consumed diff --git a/crates/aienos-kernel/src/usb/xhci/trb.rs b/crates/aienos-kernel/src/usb/xhci/trb.rs index 22534930..d269fa5f 100644 --- a/crates/aienos-kernel/src/usb/xhci/trb.rs +++ b/crates/aienos-kernel/src/usb/xhci/trb.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Transfer Request Blocks (xHCI 1.2 section 6.4): the 16-byte records that //! commands, transfers and events are made of, and the USB SETUP packet a //! control transfer carries. diff --git a/crates/aienos-kernel/src/user.rs b/crates/aienos-kernel/src/user.rs index c76ddc71..afa7ff45 100644 --- a/crates/aienos-kernel/src/user.rs +++ b/crates/aienos-kernel/src/user.rs @@ -1,4 +1,19 @@ #![allow(static_mut_refs)] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Single-core EL0 task entry and capability-checked syscall substrate. use crate::caps::{CapTable, Handle, Rights}; diff --git a/crates/aienos-kernel/src/virtio_net.rs b/crates/aienos-kernel/src/virtio_net.rs index 200a0f4b..2bb59136 100644 --- a/crates/aienos-kernel/src/virtio_net.rs +++ b/crates/aienos-kernel/src/virtio_net.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Pure parsing of virtio PCI vendor capabilities. /// A memory mapped virtio structure described by a PCI vendor capability. diff --git a/crates/aienos-kernel/tests/.crumb b/crates/aienos-kernel/tests/.crumb index 8926caa0..b6ccbf48 100644 --- a/crates/aienos-kernel/tests/.crumb +++ b/crates/aienos-kernel/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T01:16:45Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:4a5f74d8e889ecb0089082469852f1e4b1c034af70dfeab3df2902cd35662ddb", + "digest": "sha256:727b12dda8e6f6e9fbc692676b36cbf6861e441a2591d7c94081d6462f5d42ae", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 9, - "generated_at_commit": "f78977a6ce33ea89a5b3b1952c0a0e403d4504fa", - "source_tree": "sha256:a09dde2f26dcf3d7bbc7d2f7e8e511d5ebfff434dcd9a2f010963413d795756a" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:562576bba226dc833d10bce9e59f90964c66eb0ec93fb10e5076ae74c96ed146" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-kernel/tests/nvme_completion.rs b/crates/aienos-kernel/tests/nvme_completion.rs index 9fd2b3f0..9060901e 100644 --- a/crates/aienos-kernel/tests/nvme_completion.rs +++ b/crates/aienos-kernel/tests/nvme_completion.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! External integration tests for the polled NVMe completion/error path. //! //! Target: `crates/aienos-kernel/tests/nvme_completion.rs`. diff --git a/crates/aienos-kernel/tests/nvme_flush.rs b/crates/aienos-kernel/tests/nvme_flush.rs index 263e2984..1ea21ba0 100644 --- a/crates/aienos-kernel/tests/nvme_flush.rs +++ b/crates/aienos-kernel/tests/nvme_flush.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! D2 integration tests: NVMe Flush (opcode 0x00) on the polled I/O queue. //! //! Target: `crates/aienos-kernel/tests/nvme_flush.rs`. diff --git a/crates/aienos-kernel/tests/nvme_identify.rs b/crates/aienos-kernel/tests/nvme_identify.rs index bff58da5..beddd1a2 100644 --- a/crates/aienos-kernel/tests/nvme_identify.rs +++ b/crates/aienos-kernel/tests/nvme_identify.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Oracle D2: NVMe Identify (CNS=1 controller, CNS=0 namespace) integration tests. //! //! Self-contained external test crate. It implements its own `Registers`, diff --git a/crates/aienos-kernel/tests/nvme_prp.rs b/crates/aienos-kernel/tests/nvme_prp.rs index 94e2ed07..d9681b3e 100644 --- a/crates/aienos-kernel/tests/nvme_prp.rs +++ b/crates/aienos-kernel/tests/nvme_prp.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! D3 adversarial PRP tests for the AIENOS P3 native NVMe read substrate. //! //! External integration test crate. Baseline: aien-spark/aienos @ ff5de9c. diff --git a/crates/aienos-kernel/tests/nvme_write.rs b/crates/aienos-kernel/tests/nvme_write.rs index d7b918d2..baa3e80a 100644 --- a/crates/aienos-kernel/tests/nvme_write.rs +++ b/crates/aienos-kernel/tests/nvme_write.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! External integration tests for the AIENOS P3 native NVMe write + flush lane. //! //! Target: `crates/aienos-kernel/tests/nvme_write.rs`. diff --git a/crates/aienos-kernel/tests/nvme_write_completion.rs b/crates/aienos-kernel/tests/nvme_write_completion.rs index 17599e5a..9324f86e 100644 --- a/crates/aienos-kernel/tests/nvme_write_completion.rs +++ b/crates/aienos-kernel/tests/nvme_write_completion.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! External integration tests for the native NVMe write + flush completion lane. //! //! Target: `crates/aienos-kernel/tests/nvme_write_completion.rs`. diff --git a/crates/aienos-kernel/tests/nvme_write_prp.rs b/crates/aienos-kernel/tests/nvme_write_prp.rs index 74cb61a7..4250538f 100644 --- a/crates/aienos-kernel/tests/nvme_write_prp.rs +++ b/crates/aienos-kernel/tests/nvme_write_prp.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! D3 adversarial tests for the AIENOS P3 native NVMe **write + flush** lane. //! //! Target: `crates/aienos-kernel/tests/nvme_write_prp.rs`. Baseline: diff --git a/crates/aienos-kernel/tests/store_v1_golden_vectors.rs b/crates/aienos-kernel/tests/store_v1_golden_vectors.rs index 969938be..88fd9b27 100644 --- a/crates/aienos-kernel/tests/store_v1_golden_vectors.rs +++ b/crates/aienos-kernel/tests/store_v1_golden_vectors.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ADR 0015 golden vectors: the kernel's own Store v1 encoders must reproduce //! every byte of docs/adr/0015-golden-vectors.json, and every vector must //! decode back to the value that produced it. diff --git a/crates/aienos-kernel/tests/store_v1_negative.rs b/crates/aienos-kernel/tests/store_v1_negative.rs index 5a61deb7..ba5fa9f5 100644 --- a/crates/aienos-kernel/tests/store_v1_negative.rs +++ b/crates/aienos-kernel/tests/store_v1_negative.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use aienos_kernel::store::v1::{ crc32c, Catalog, CatalogEntry, CommitRecord, FormatError, ObjectId, Superblock, COMMIT_RECORD_BYTES, MAX_CATALOG_ENTRIES, STORE_UNIT_BYTES, diff --git a/crates/aienos-store-tool/.crumb b/crates/aienos-store-tool/.crumb index fc99a21e..22483e8a 100644 --- a/crates/aienos-store-tool/.crumb +++ b/crates/aienos-store-tool/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "37a250c16fcf1ee0351e5ef165ee010fd987c23958b5582b4fd86b212e966573", - "last_commit": "761e63d", + "digest": "925b0ba65979f6c4b417f5848e6cbb83386b9623eea8dce4ab32d86fdbe09887", + "last_commit": "621c9e6f", "name": "src", "purpose": "Directory crates/aienos-store-tool/src. Purpose not yet described by a human." } ], - "children_root": "sha256:0213c8f331c9520c68ce679b8e1104c04aa862cfa3dedbad3f88410b2a11b380", - "compiled_at": "2026-10-04T13:47:18Z", + "children_root": "sha256:597d13110ad2706f6be31069817dff7906baefac6e7d936055c203314322a652", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:716d679da128e7aab8efb6e9cf836ee22a62fe9fe6993e2d0a20c3016d78b3a0", + "digest": "sha256:7a80efb2b807ebdc8d8189de8a7b268d404aaa2188ec25e1ceaf53ee26fc5674", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:b7c2b35b4232b998b5a2ba1ef98ce05fc4e6353d0c3a45bc5abb56baa9137100" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:336061bd146d09c39c1795d48b0320a10ec060bd5cf4ebb9b108013980296bec" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-store-tool/src/.crumb b/crates/aienos-store-tool/src/.crumb index 824cf9ee..dd711155 100644 --- a/crates/aienos-store-tool/src/.crumb +++ b/crates/aienos-store-tool/src/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:37a250c16fcf1ee0351e5ef165ee010fd987c23958b5582b4fd86b212e966573", + "digest": "sha256:925b0ba65979f6c4b417f5848e6cbb83386b9623eea8dce4ab32d86fdbe09887", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:0f2ae2a0d9e6f9d7a098fc76b6f75a79b8321fee1da94e1756dba13fac47984b" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:6c30186c5b356385c5dca0e2f7922d8854bb77767f60f319dc09b59fc2f821d2" }, "owner_lane": "", "provenance": { diff --git a/crates/aienos-store-tool/src/main.rs b/crates/aienos-store-tool/src/main.rs index 71764fa6..8260a37f 100644 --- a/crates/aienos-store-tool/src/main.rs +++ b/crates/aienos-store-tool/src/main.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host tooling for System Store v1 QEMU qualification images. //! //! Test-only. Every byte this tool writes is derived from the kernel's own diff --git a/crates/allen-reflex/examples/bench.rs b/crates/allen-reflex/examples/bench.rs index befa0d8c..23fb8cd6 100644 --- a/crates/allen-reflex/examples/bench.rs +++ b/crates/allen-reflex/examples/bench.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Speed and size. usage: taskset -c 0 cargo run --release -p allen-reflex --example bench //! Times the whole path a message takes (tokenize, segment, policy, features, encode, score, //! span copy, JSON) on the train and dev messages, single thread. Never reads held-out. diff --git a/crates/allen-reflex/examples/common/mod.rs b/crates/allen-reflex/examples/common/mod.rs index b669bf77..4037d8f4 100644 --- a/crates/allen-reflex/examples/common/mod.rs +++ b/crates/allen-reflex/examples/common/mod.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Host-side helpers shared by the examples (std allowed here; the core stays no_std). #![allow(dead_code)] diff --git a/crates/allen-reflex/examples/exam.rs b/crates/allen-reflex/examples/exam.rs index d9453901..d811cb6f 100644 --- a/crates/allen-reflex/examples/exam.rs +++ b/crates/allen-reflex/examples/exam.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Run the orchestration exam with ALLEN REFLEX and the two baselines. //! usage: cargo run --release -p allen-reflex --example exam -- [modes...] //! Writes docs/native/pi5-8/orchestrator-exam/results/allen-reflex...jsonl in diff --git a/crates/allen-reflex/examples/learn.rs b/crates/allen-reflex/examples/learn.rs index e34659ff..8b94a37c 100644 --- a/crates/allen-reflex/examples/learn.rs +++ b/crates/allen-reflex/examples/learn.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Learning curves: predict first, score, then reveal the right answer (one-shot learning). //! usage: cargo run --release -p allen-reflex --example learn //! Never reads held-out. Memory is rebuilt from scratch for every run (no state carries over). diff --git a/crates/allen-reflex/examples/tune.rs b/crates/allen-reflex/examples/tune.rs index 64294b09..ba266efc 100644 --- a/crates/allen-reflex/examples/tune.rs +++ b/crates/allen-reflex/examples/tune.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tuning on dev and on family-grouped cross-validation of the training pool. //! usage: cargo run --release -p allen-reflex --example tune //! Never reads held-out. Every knob is moved one at a time from Config::frozen, and each diff --git a/crates/allen-reflex/src/action.rs b/crates/allen-reflex/src/action.rs index 3b3a9cfc..c02e73a3 100644 --- a/crates/allen-reflex/src/action.rs +++ b/crates/allen-reflex/src/action.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! The 15 decisions of the exam contract (`docs/native/pi5-8/orchestrator-exam/system_prompt.txt`). //! The 12 verbs are exactly the card-script verbs of `native/kernel/core/agent_cmd.c`; //! `none`, `clarify` and `refuse` are the three non-actions. diff --git a/crates/allen-reflex/src/dialog.rs b/crates/allen-reflex/src/dialog.rs index 8f885929..a2712316 100644 --- a/crates/allen-reflex/src/dialog.rs +++ b/crates/allen-reflex/src/dialog.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Dialog state with explicit roles and turn order. Earlier assistant turns are decision //! JSON; walking them in order gives the pending-task state the lifecycle uses //! (`lifecycle_fsm.c`: task and prompt create a pending item; approve, deny and cancel diff --git a/crates/allen-reflex/src/features.rs b/crates/allen-reflex/src/features.rs index 6388cd88..e55f4d13 100644 --- a/crates/allen-reflex/src/features.rs +++ b/crates/allen-reflex/src/features.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Observable features of one request. All three scorers (hypervector, nearest exemplar, //! perceptron) read exactly this list, so a comparison between them compares only the scorer. diff --git a/crates/allen-reflex/src/hv.rs b/crates/allen-reflex/src/hv.rs index dd6a1d19..589cc8b6 100644 --- a/crates/allen-reflex/src/hv.rs +++ b/crates/allen-reflex/src/hv.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Binary hypervectors (default 8192 bits = 128 u64 words). //! //! - Item vectors are generated on the fly from a seeded hash of each symbol (splitmix64); diff --git a/crates/allen-reflex/src/lexicon.rs b/crates/allen-reflex/src/lexicon.rs index 4a9e52eb..403c44cc 100644 --- a/crates/allen-reflex/src/lexicon.rs +++ b/crates/allen-reflex/src/lexicon.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Hand-written word lists. Every list here is prior knowledge about English that the //! 79 training cases are too few to teach; each has a one-line semantic justification. //! None of them names an exam case, an id or an argument value. Lists are matched on diff --git a/crates/allen-reflex/src/lib.rs b/crates/allen-reflex/src/lib.rs index 03c91f45..8f861c43 100644 --- a/crates/allen-reflex/src/lib.rs +++ b/crates/allen-reflex/src/lib.rs @@ -1,4 +1,19 @@ #![no_std] +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + #![deny(unsafe_code)] #![allow(clippy::needless_range_loop)] diff --git a/crates/allen-reflex/src/model.rs b/crates/allen-reflex/src/model.rs index f3878855..9d6a55f3 100644 --- a/crates/allen-reflex/src/model.rs +++ b/crates/allen-reflex/src/model.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Label scorers. All three read the same feature list. //! //! - [`HvModel`]: hypervector exemplar memory + ternary class prototypes (the REFLEX core). diff --git a/crates/allen-reflex/src/policy.rs b/crates/allen-reflex/src/policy.rs index e603c7d4..afcc24a3 100644 --- a/crates/allen-reflex/src/policy.rs +++ b/crates/allen-reflex/src/policy.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Policy layer: `refuse` is decided by intent, not by a bare word. //! //! A message is refused when, outside a text payload, it diff --git a/crates/allen-reflex/src/segment.rs b/crates/allen-reflex/src/segment.rs index 058aa2c9..7d838635 100644 --- a/crates/allen-reflex/src/segment.rs +++ b/crates/allen-reflex/src/segment.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Ordered request handling. A message is cut into requests at explicit sequence markers //! ("and then", ", then", "after that", ";", "and approve ..."). The exam contract says //! "if the message asks for several steps, give only the first step", so the core decides on diff --git a/crates/allen-reflex/src/span.rs b/crates/allen-reflex/src/span.rs index b7449096..dad17831 100644 --- a/crates/allen-reflex/src/span.rs +++ b/crates/allen-reflex/src/span.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Argument copy. The text of remember, prefer, task and prompt is copied byte for byte //! from the operator's request (case and inner punctuation kept). Only its two boundaries //! are decided: where the command words end and where trailing words ("from now on") begin. diff --git a/crates/allen-reflex/src/text.rs b/crates/allen-reflex/src/text.rs index bfe8bd36..8993c4e0 100644 --- a/crates/allen-reflex/src/text.rs +++ b/crates/allen-reflex/src/text.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Tokenizer that keeps the original bytes: every token records its byte range in the //! message, so an argument is always copied from the operator's own text (case and //! inner punctuation preserved), never rebuilt from normalized words. diff --git a/crates/allen-reflex/src/tower.rs b/crates/allen-reflex/src/tower.rs index 1286d130..813b16cf 100644 --- a/crates/allen-reflex/src/tower.rs +++ b/crates/allen-reflex/src/tower.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! ALLEN Tower: scheduling core for a Pi 5 bare-metal AIENOS test and verification orchestrator. //! //! Intended pairing: the persistent 8 GB Raspberry Pi 5 (bare-metal AIENOS + ALLEN REFLEX) diff --git a/crates/allen-reflex/tests/core.rs b/crates/allen-reflex/tests/core.rs index 50f245c4..c9d07b91 100644 --- a/crates/allen-reflex/tests/core.rs +++ b/crates/allen-reflex/tests/core.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! Behaviour tests for ALLEN REFLEX. They train on the train split and the extra cases //! (never held-out). Where a test checks how a known case is handled, that case and all its //! paraphrases are left out of memory first, so the answer has to come from generalisation. diff --git a/docs/.crumb b/docs/.crumb index 0b5d88e3..d4b20b9d 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -18,26 +18,26 @@ "children": [ { "digest": "e59fb09c11c2172a50ff9e10930e677a81040f3e24139954bbae184dfff22278", - "last_commit": "09e59a8", + "last_commit": "f99c4b63", "name": "adr", "purpose": "Directory docs/adr. Purpose not yet described by a human." }, { "digest": "5dc4f124f1c023aa4786f45336a671138fce9fa046478364cdc7454307d7b588", - "last_commit": "09e59a8", + "last_commit": "09e59a82", "name": "crumbs", "purpose": "Directory docs/crumbs. Purpose not yet described by a human." } ], "children_root": "sha256:b9dee88e16ee22b27a7abec33df4ec1e419918cb7d8b3a70e6f675bf0b0b3437", - "compiled_at": "2026-10-18T04:50:40Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:066b030ff3c47157bc97b4ca49bd239c01e36b444ff4fad10066c89cd376b106", + "digest": "sha256:203bf6275590e6a8f0179d1c7904673f576265db144ebf6f1c7b0306a1d67304", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 216, - "generated_at_commit": "17ad0167eac91edc280472020679a11969a78609", - "source_tree": "sha256:66f154a9665b51e7fbfdc840cc5f58c9c177a8263bdfd2f80576d37267df112b" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:698b9105549908d6ba5a018e266633433b1b0ec7094636f5930ba42a670564cf" }, "owner_lane": "", "provenance": { diff --git a/docs/GB10_FIRMWARE_INVENTORY.md b/docs/GB10_FIRMWARE_INVENTORY.md index fc9dcd55..8d22e617 100644 --- a/docs/GB10_FIRMWARE_INVENTORY.md +++ b/docs/GB10_FIRMWARE_INVENTORY.md @@ -276,7 +276,7 @@ Firmware package: `/usr/share/doc/nvidia-firmware-580-580.173.02/copyright`, kernels distributed under the terms of an OSI-approved open source license ... provided that (i) the binary files thereof are not modified in any way ... and (ii) this Agreement is provided to each SOFTWARE recipient". AIENOS is - AGPL-3.0, an OSI-approved licence, so shipping the unmodified file plus the + Apache-2.0, an OSI-approved licence, so shipping the unmodified file plus the agreement text is within this clause [INFERRED (high): plain reading, not legal advice]. - 2.1: firmware only on NVIDIA platforms; no translation to another diff --git a/docs/native/pi5-8/orchestrator-exam/build_jsonl.sh b/docs/native/pi5-8/orchestrator-exam/build_jsonl.sh index 2d142030..a0fcdd26 100755 --- a/docs/native/pi5-8/orchestrator-exam/build_jsonl.sh +++ b/docs/native/pi5-8/orchestrator-exam/build_jsonl.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Derive machine-readable cases-.jsonl (one JSON object per line) from the .psv sources, for the trainer and other readers. # Fields: id, split, category, decision_type (action|clarify|none|refuse), action, args ({"text":..} or {}), # arg_spans (for "text": start/end byte offsets into last_user, end exclusive, from a case-insensitive match; match=exact|case|none; diff --git a/docs/native/pi5-8/orchestrator-exam/by_category.sh b/docs/native/pi5-8/orchestrator-exam/by_category.sh index ceaaba05..e84486cc 100755 --- a/docs/native/pi5-8/orchestrator-exam/by_category.sh +++ b/docs/native/pi5-8/orchestrator-exam/by_category.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Action accuracy per case category, pooled over train+dev+heldout. Columns: category, n cases, then per mode: # mean over the borrowed yardstick models (control excluded) and the best single model. # usage: by_category.sh (reads results/*.jsonl, writes TSV to stdout) diff --git a/docs/native/pi5-8/orchestrator-exam/download_models.sh b/docs/native/pi5-8/orchestrator-exam/download_models.sh index 6fd9479f..e113765a 100755 --- a/docs/native/pi5-8/orchestrator-exam/download_models.sh +++ b/docs/native/pi5-8/orchestrator-exam/download_models.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Download every model in models.tsv to ~/models/pi5-8-orchestrator// and record sha256. # Also records the publisher's own LFS hash (x-linked-etag) so the two can be compared. set -u diff --git a/docs/native/pi5-8/orchestrator-exam/make_tables.sh b/docs/native/pi5-8/orchestrator-exam/make_tables.sh index ca7ddd04..efa48f17 100755 --- a/docs/native/pi5-8/orchestrator-exam/make_tables.sh +++ b/docs/native/pi5-8/orchestrator-exam/make_tables.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Print the markdown result tables used in PI5-8-ORCHESTRATOR-EXAM.md from results/summary.tsv. usage: make_tables.sh here=$(cd "$(dirname "$0")" && pwd); s="$here/results/summary.tsv" order="qwen3-1.7b granite4-1b granite3.3-2b qwen2.5-1.5b smollm2-1.7b qwen3-0.6b granite4-h-350m qwen2.5-0.5b tinyllama-1.1b granite4-350m smollm2-360m danube3-500m llama3.2-1b" diff --git a/docs/native/pi5-8/orchestrator-exam/pi_estimate.sh b/docs/native/pi5-8/orchestrator-exam/pi_estimate.sh index b10afbd4..a63fe7c7 100755 --- a/docs/native/pi5-8/orchestrator-exam/pi_estimate.sh +++ b/docs/native/pi5-8/orchestrator-exam/pi_estimate.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ESTIMATE of Pi 5 speed, scaled from the measured Pi numbers in PI5-8-MODEL-CHOICE.md (SDOT path, per-token time is proportional to the weight bytes read per token). # Calibration (measured): TinyLlama 631.9 MB read per token (file minus the unread embedding table) -> 683,917 us; danube3 290.2 MB -> 309,842 us; Llama yardstick 807.7 MB -> 832,559 us. # That is 1.03 to 1.08 ms per MB; this script uses 1.05 ms per MB. Not measured for any model here. Q5_0/Q8_0 tensors would use kernels the engine does not have, so their speed is unknown. diff --git a/docs/native/pi5-8/orchestrator-exam/reflex_tables.sh b/docs/native/pi5-8/orchestrator-exam/reflex_tables.sh index b8c4da5f..5471d2f5 100755 --- a/docs/native/pi5-8/orchestrator-exam/reflex_tables.sh +++ b/docs/native/pi5-8/orchestrator-exam/reflex_tables.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Tables for ALLEN REFLEX (docs/native/PI5-8-ALLEN-REFLEX.md). Reads only results/allen-reflex...jsonl. # usage: reflex_tables.sh [ ...] e.g. reflex_tables.sh train dev # 1. score.sh rows (unchanged scorer), 2. per category: action ok / exact ok / n, 3. per expected label: action ok / exact ok / n, 4. macro exact (mean over expected labels present). diff --git a/docs/native/pi5-8/orchestrator-exam/run_all.sh b/docs/native/pi5-8/orchestrator-exam/run_all.sh index fc9e0131..cae0c4c0 100755 --- a/docs/native/pi5-8/orchestrator-exam/run_all.sh +++ b/docs/native/pi5-8/orchestrator-exam/run_all.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Run the exam on every model in models.tsv (downloaded by download_models.sh), JOBS models at a time. # usage: run_all.sh env: JOBS (default 3) THREADS (default 6) MODELS_DIR here=$(cd "$(dirname "$0")" && pwd) diff --git a/docs/native/pi5-8/orchestrator-exam/run_exam.sh b/docs/native/pi5-8/orchestrator-exam/run_exam.sh index e05ac8c4..1649297d 100755 --- a/docs/native/pi5-8/orchestrator-exam/run_exam.sh +++ b/docs/native/pi5-8/orchestrator-exam/run_exam.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Run the orchestration exam on one GGUF with llama.cpp (greedy, the model's own chat template). # usage: run_exam.sh [splits: "train dev heldout"] [modes: "free constrained"] # env: LLAMA_BIN (llama-server dir, default ~/llama.cpp-build/build/bin) THREADS (default 8) diff --git a/docs/native/pi5-8/orchestrator-exam/score.sh b/docs/native/pi5-8/orchestrator-exam/score.sh index 0b5a37a0..7f0ece34 100755 --- a/docs/native/pi5-8/orchestrator-exam/score.sh +++ b/docs/native/pi5-8/orchestrator-exam/score.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Score results/...jsonl. usage: score.sh -> one TSV row (see header with --header) # Columns: model split mode n json_parse% schema_valid% action% exact% args_strict% args_lenient% refuse% clarify% none% safe% overblock% # schema_valid: whole reply (trimmed) is one JSON object with exactly the keys action,args, a listed action, and the right args shape. diff --git a/docs/native/pi5-8/orchestrator-exam/split_pool.sh b/docs/native/pi5-8/orchestrator-exam/split_pool.sh index 3b4650b9..2c111f0f 100755 --- a/docs/native/pi5-8/orchestrator-exam/split_pool.sh +++ b/docs/native/pi5-8/orchestrator-exam/split_pool.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Deterministic split of the frozen pool (cases-pool.psv, 102 cases written before the prompt freeze) into # cases-train.psv and cases-dev.psv. Within each category, in file order, every 4th case (positions 4, 8, ...) goes to dev, the rest to train. # The held-out set (cases-heldout.psv) was written after the freeze and is never part of this split. diff --git a/docs/native/pi5-8/orchestrator-exam/summarize.sh b/docs/native/pi5-8/orchestrator-exam/summarize.sh index 813c65a5..0f94f725 100755 --- a/docs/native/pi5-8/orchestrator-exam/summarize.sh +++ b/docs/native/pi5-8/orchestrator-exam/summarize.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Score every results/*.jsonl into results/summary.tsv (per split, plus split "all" = train+dev+heldout pooled), # and write results/tokens.tsv (prompt/output token stats per model). here=$(cd "$(dirname "$0")" && pwd) diff --git a/native/.crumb b/native/.crumb index dbbce44e..7c06e124 100644 --- a/native/.crumb +++ b/native/.crumb @@ -49,75 +49,75 @@ "generated": { "children": [ { - "digest": "50aa2fbd6ca356b7703517bc7ecf439f7b6e0a6b935d0ca6ca4c6f7caf23ce34", - "last_commit": "4bd49ca", + "digest": "9a550a7209350cc658a55708701504f70b54c461e672243bebf48d50c52c1c70", + "last_commit": "621c9e6f", "name": "argus", "purpose": "Directory native/argus. Purpose not yet described by a human." }, { - "digest": "7bd231b92b38492fbb936e28caa803047edd9250800eac92fe56e09d38bf98cd", - "last_commit": "bfea771", + "digest": "62678ee88494d4f5fab2a67d68edded631793eecbe46bc470db7941e220cba04", + "last_commit": "621c9e6f", "name": "boot", "purpose": "Directory native/boot. Purpose not yet described by a human." }, { - "digest": "750c519c466783ed6330a6a2c8fcb2153efdaadb9d65b38a6a85e8463d78b68d", - "last_commit": "4bd49ca", + "digest": "1b5414c184e37d4d943e7979db3d82f1441d6004bb9b5c379a4e4e39381fe7fd", + "last_commit": "621c9e6f", "name": "capability", "purpose": "Directory native/capability. Purpose not yet described by a human." }, { - "digest": "0a3e98a5f36f528eb7ae6e1611d466343068780b9029621286b292ec1c796950", - "last_commit": "4bd49ca", + "digest": "5ee5fb66726b423c9a8a15d6b6f8c2ac08092727f386c32015f3fb14fe258079", + "last_commit": "621c9e6f", "name": "crypto", "purpose": "Directory native/crypto. Purpose not yet described by a human." }, { - "digest": "99bc55e79695290b65ae08a38e5731e3ed976d79cdb3b6c9bc21c706b1ddab22", - "last_commit": "4bd49ca", + "digest": "c4ce5c38d99a4f4fbbaf8f829817511aa6ba94d92318ba4f638eddd485341eb0", + "last_commit": "621c9e6f", "name": "disk", "purpose": "Directory native/disk. Purpose not yet described by a human." }, { - "digest": "7a81b1b4b47154e15b9682b72d7fa49f309454f093aeb019061b8148550920ae", - "last_commit": "3037967", + "digest": "f951cbac83635abdd46bd86bd9b0d6374fc8e578c73b4eab3661ec87e673445f", + "last_commit": "621c9e6f", "name": "kernel", "purpose": "Directory native/kernel. Purpose not yet described by a human." }, { - "digest": "a805df7e3af4b8a2ef345223523b54e7e47565204ec8f8e598f6dcaf53b07419", - "last_commit": "4bd49ca", + "digest": "257e53b395e1f417a61838914d73ebbf408361083e9e40ca3b56011e1f9754c4", + "last_commit": "621c9e6f", "name": "m5", "purpose": "Directory native/m5. Purpose not yet described by a human." }, { - "digest": "ff5c88f5e9bf86e7ff836d24c048dd2d4efc94f6f19a21a0caf72ae9c402deaf", - "last_commit": "4bd49ca", + "digest": "f9c2453f4a79f6f4f27e6761cc2cdfc0431fb698be73a7f8869b5d6580e96d9d", + "last_commit": "621c9e6f", "name": "net", "purpose": "Directory native/net. Purpose not yet described by a human." }, { - "digest": "135fd1edbe2388764de7dc755611b483b0c61adab858718c390b7745d141635c", - "last_commit": "4bd49ca", + "digest": "e89066d6aa5c09de6f67671846971d09cf733e4620f713983ff29fae60321c9e", + "last_commit": "621c9e6f", "name": "sig", "purpose": "Directory native/sig. Purpose not yet described by a human." }, { - "digest": "f75197d76b7daaeee8223cf25353251824cd4497400a439724a3a424e014a229", - "last_commit": "4bd49ca", + "digest": "325fec79752c7be76550de52f400c5cc35d4641de8dc45290cff10ddc526fa3b", + "last_commit": "621c9e6f", "name": "store", "purpose": "Directory native/store. Purpose not yet described by a human." } ], - "children_root": "sha256:cec690f1b64aaba9f5f7ea41048a25c5b3cdf4834f672e977dc7eb47d34e4be2", - "compiled_at": "2026-10-17T01:49:45Z", + "children_root": "sha256:d75d511db1dd85271720d1ab237b4be4f9c7c6a2c81c73c0712402165452b0f1", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:64cc87f8507bb580e1788d335c5a76039f3e3a016552595526718448ab5aa098", + "digest": "sha256:dc0c8a2262594253b77df2dc74efed04ade1145396308cdab8f78e9a3ddd5955", "evidence_files": 4, "evidence_root": "sha256:e410b845507e00568e15b51a5797af32a97e0e4b8ab4e8487bb7c98e7e0cf335", "files": 606, - "generated_at_commit": "30379678add587e388db4e11713d6bca8d159b08", - "source_tree": "sha256:1d9fe182bcaa94de3564ee02f9e8c63bddcea00fcea22feed112ffe6e01a1b78" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:2129937e2c82b7365b920dbe8c917aee97b0c792286d253235244a129c385e54" }, "owner_lane": "", "provenance": { diff --git a/native/argus/.crumb b/native/argus/.crumb index ac2f33a7..ee50782b 100644 --- a/native/argus/.crumb +++ b/native/argus/.crumb @@ -21,33 +21,33 @@ "generated": { "children": [ { - "digest": "8fa25040d5da98cfa76b5c39ed4b48f9f02252e42b00d0eaf84b99265813c0f1", - "last_commit": "1625f69", + "digest": "d5e0dbb856b190a009a618da34a3a91b9f337c06efb05dc7b895e748ecc46b79", + "last_commit": "621c9e6f", "name": "bridge", "purpose": "Directory native/argus/bridge. Purpose not yet described by a human." }, { "digest": "c519b9b561e14e4c8017f79c86093d14b250c72e5c17258d77507130dd420a44", - "last_commit": "09e59a8", + "last_commit": "09e59a82", "name": "docs", "purpose": "Directory native/argus/docs. Purpose not yet described by a human." }, { - "digest": "9da71b144b276a79663b8240d09f6ee8ec187a336b45c48dc47adeca8012a11c", - "last_commit": "130aa20", + "digest": "a7593ba5ffb5299efb3d8571a42e70d98de830c36757e82c010dc406682938c4", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/argus/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:60f887eb1e514a9e647f622c81848e2accd452e38b157103e8a9f58a32bb1694", - "compiled_at": "2026-10-14T13:28:10Z", + "children_root": "sha256:5261214761c95238cfa2abb2192b5f74e7f6c91445635d4aca29d2fe8e641286", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:50aa2fbd6ca356b7703517bc7ecf439f7b6e0a6b935d0ca6ca4c6f7caf23ce34", + "digest": "sha256:9a550a7209350cc658a55708701504f70b54c461e672243bebf48d50c52c1c70", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 47, - "generated_at_commit": "a0fa796235409ce465c467e8c72fbd977485d8f7", - "source_tree": "sha256:9511497343ad28d30fb7c58c0d11c87ab936d6e95ff561bf245ea2e5acbbb4f1" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:7f0e87f3554051c09e9bf0b46e2d2a5bf8a6679f725a922435b1e3a88564aab2" }, "owner_lane": "", "provenance": { diff --git a/native/argus/argus_abi.h b/native/argus/argus_abi.h index 772073c8..cabc70cf 100644 --- a/native/argus/argus_abi.h +++ b/native/argus/argus_abi.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * argus_abi.h -- ARGUS security event ABI and core defensive types, version 1 (event version byte 1; ABI minor 2 = v1.2, see below). * diff --git a/native/argus/argus_contain.c b/native/argus/argus_contain.c index bb5b45f1..227afb4e 100644 --- a/native/argus/argus_contain.c +++ b/native/argus/argus_contain.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "argus_contain.h" #include "argus_core.h" #include "sha256.h" diff --git a/native/argus/argus_contain.h b/native/argus/argus_contain.h index b9fa3241..b77aae8a 100644 --- a/native/argus/argus_contain.h +++ b/native/argus/argus_contain.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef ARGUS_CONTAIN_H #define ARGUS_CONTAIN_H diff --git a/native/argus/argus_core.c b/native/argus/argus_core.c index b00e76f8..40b0701e 100644 --- a/native/argus/argus_core.c +++ b/native/argus/argus_core.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * argus_core.c -- ARGUS resident deterministic state engine (lane D; ARGUS-0, v1.2 additive). * diff --git a/native/argus/argus_core.h b/native/argus/argus_core.h index bd1d0949..098ffa0e 100644 --- a/native/argus/argus_core.h +++ b/native/argus/argus_core.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * argus_core.h -- capacity constants of the ARGUS-0 resident state engine. * diff --git a/native/argus/argus_detect.c b/native/argus/argus_detect.c index 3be6d87b..e1155c1f 100644 --- a/native/argus/argus_detect.c +++ b/native/argus/argus_detect.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * argus_detect.c -- ARGUS-0 hard-invariant detectors (lane E). * diff --git a/native/argus/argus_detect.h b/native/argus/argus_detect.h index bf6c7494..7273b89e 100644 --- a/native/argus/argus_detect.h +++ b/native/argus/argus_detect.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * argus_detect.h -- internals of the ARGUS-0 hard-invariant detectors (lane E). * diff --git a/native/argus/argus_event.c b/native/argus/argus_event.c index fb402748..7f4eeb94 100644 --- a/native/argus/argus_event.c +++ b/native/argus/argus_event.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * argus_event.c -- ARGUS event ABI v1: canonical encoding, validation, digests. * diff --git a/native/argus/argus_ring.c b/native/argus/argus_ring.c index 8a040470..76696974 100644 --- a/native/argus/argus_ring.c +++ b/native/argus/argus_ring.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * argus_ring.c -- ARGUS single-producer / single-consumer bounded event ring. * diff --git a/native/argus/bridge/.crumb b/native/argus/bridge/.crumb index 4b34c68b..322916b0 100644 --- a/native/argus/bridge/.crumb +++ b/native/argus/bridge/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:8fa25040d5da98cfa76b5c39ed4b48f9f02252e42b00d0eaf84b99265813c0f1", + "digest": "sha256:d5e0dbb856b190a009a618da34a3a91b9f337c06efb05dc7b895e748ecc46b79", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:f6e5004e675b332b7d7173fba4c502a341aec78a02e2e917f0092f83cf39b401" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:fe5ccd39203429008e46c615561494614bcd453c52d716a3d8f57cdf43bd11d5" }, "owner_lane": "", "provenance": { diff --git a/native/argus/bridge/argus_aegis_bridge.c b/native/argus/bridge/argus_aegis_bridge.c index 979c8c0a..35c7bd70 100644 --- a/native/argus/bridge/argus_aegis_bridge.c +++ b/native/argus/bridge/argus_aegis_bridge.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "argus_aegis_bridge.h" #include diff --git a/native/argus/bridge/argus_aegis_bridge.h b/native/argus/bridge/argus_aegis_bridge.h index 9dae793f..807f5b4a 100644 --- a/native/argus/bridge/argus_aegis_bridge.h +++ b/native/argus/bridge/argus_aegis_bridge.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef ARGUS_AEGIS_BRIDGE_H #define ARGUS_AEGIS_BRIDGE_H diff --git a/native/argus/sha256.c b/native/argus/sha256.c index eb9a8787..1f87ad7a 100644 --- a/native/argus/sha256.c +++ b/native/argus/sha256.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Copied from aien-dev/omega src/sha256.{c,h} at ceb68d6 (in-house lineage), unchanged except this note */ #include "sha256.h" #include diff --git a/native/argus/sha256.h b/native/argus/sha256.h index b3f5d61a..feaf63b6 100644 --- a/native/argus/sha256.h +++ b/native/argus/sha256.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Copied from aien-spark/omega src/sha256.{c,h} at ceb68d6 (in-house lineage), unchanged except this note */ #ifndef OMEGA_SHA256_H #define OMEGA_SHA256_H diff --git a/native/argus/tests/.crumb b/native/argus/tests/.crumb index 8bba1f25..4b28325a 100644 --- a/native/argus/tests/.crumb +++ b/native/argus/tests/.crumb @@ -13,14 +13,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T13:28:10Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:9da71b144b276a79663b8240d09f6ee8ec187a336b45c48dc47adeca8012a11c", + "digest": "sha256:a7593ba5ffb5299efb3d8571a42e70d98de830c36757e82c010dc406682938c4", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 24, - "generated_at_commit": "a0fa796235409ce465c467e8c72fbd977485d8f7", - "source_tree": "sha256:9b3b6e1d929d015275c4ed69028acc5b2ea489d66c53540908bb375803fa13f1" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:057ebf21171ed0de1f4937b6040388bb5213be43e79e8f1b6635e43fe5df1bfb" }, "owner_lane": "", "provenance": { diff --git a/native/argus/tests/bench_argus_contain.c b/native/argus/tests/bench_argus_contain.c index 94b73cac..920c8cc7 100644 --- a/native/argus/tests/bench_argus_contain.c +++ b/native/argus/tests/bench_argus_contain.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #define _GNU_SOURCE #include "../argus_abi.h" #include "../argus_core.h" diff --git a/native/argus/tests/bench_argus_ring.c b/native/argus/tests/bench_argus_ring.c index d1864d44..7a9fcb9f 100644 --- a/native/argus/tests/bench_argus_ring.c +++ b/native/argus/tests/bench_argus_ring.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * bench_argus_ring.c -- ARGUS lane B: ring saturation benchmark. * Prints: bytes per event, ring footprint, the depth at which each class diff --git a/native/argus/tests/check_argus1_symbols.sh b/native/argus/tests/check_argus1_symbols.sh index f148686f..a7594b48 100755 --- a/native/argus/tests/check_argus1_symbols.sh +++ b/native/argus/tests/check_argus1_symbols.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail if [[ $# -ne 3 ]]; then diff --git a/native/argus/tests/fuzz_argus_event.c b/native/argus/tests/fuzz_argus_event.c index 97a13f8a..1aa07b4e 100644 --- a/native/argus/tests/fuzz_argus_event.c +++ b/native/argus/tests/fuzz_argus_event.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * fuzz_argus_event.c -- deterministic decode fuzzer (xorshift64*, fixed seed). * Invariants: argus_event_decode returns exactly what an independent byte-level diff --git a/native/argus/tests/run_argus1_bench.sh b/native/argus/tests/run_argus1_bench.sh index 98564dae..ed1736c4 100755 --- a/native/argus/tests/run_argus1_bench.sh +++ b/native/argus/tests/run_argus1_bench.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail bench_bin=$1 diff --git a/native/argus/tests/stub_lanes_d.c b/native/argus/tests/stub_lanes_d.c index e80406ab..10fb65c4 100644 --- a/native/argus/tests/stub_lanes_d.c +++ b/native/argus/tests/stub_lanes_d.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * stub_lanes_d.c -- TEST-ONLY stand-ins for lane B (argus_event.c) and lane E * (argus_detect.c), so lane D's tests link before those lanes merge. The real diff --git a/native/argus/tests/stub_lanes_d.h b/native/argus/tests/stub_lanes_d.h index f0b3f6c0..a94a0792 100644 --- a/native/argus/tests/stub_lanes_d.h +++ b/native/argus/tests/stub_lanes_d.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* stub_lanes_d.h -- TEST-ONLY controls for the lane B/E stand-ins in stub_lanes_d.c. */ #ifndef STUB_LANES_D_H #define STUB_LANES_D_H diff --git a/native/argus/tests/stub_state.c b/native/argus/tests/stub_state.c index 1b9cdc9d..b201def4 100644 --- a/native/argus/tests/stub_state.c +++ b/native/argus/tests/stub_state.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * stub_state.c -- test-only in-memory shadow state + deterministic corpora (lane E). * diff --git a/native/argus/tests/stub_state.h b/native/argus/tests/stub_state.h index 2e668566..895cc5a6 100644 --- a/native/argus/tests/stub_state.h +++ b/native/argus/tests/stub_state.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * stub_state.h -- test-only, in-memory ArgusStateOps over small arrays, plus * the deterministic synthetic corpora (lane E). diff --git a/native/argus/tests/test_argus_contain.c b/native/argus/tests/test_argus_contain.c index 5c7729eb..0df76bf4 100644 --- a/native/argus/tests/test_argus_contain.c +++ b/native/argus/tests/test_argus_contain.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "../argus_abi.h" #include "../argus_core.h" #include "../argus_contain.h" diff --git a/native/argus/tests/test_argus_contain_hostile.c b/native/argus/tests/test_argus_contain_hostile.c index 1ff3cead..06b917d1 100644 --- a/native/argus/tests/test_argus_contain_hostile.c +++ b/native/argus/tests/test_argus_contain_hostile.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "../argus_abi.h" #include "../argus_contain.h" #include "../bridge/argus_aegis_bridge.h" diff --git a/native/argus/tests/test_argus_containment_e2e.c b/native/argus/tests/test_argus_containment_e2e.c index 2f3d24bf..db6e5e6c 100644 --- a/native/argus/tests/test_argus_containment_e2e.c +++ b/native/argus/tests/test_argus_containment_e2e.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "../argus_abi.h" #include "../argus_core.h" #include "../argus_contain.h" diff --git a/native/argus/tests/test_argus_core.c b/native/argus/tests/test_argus_core.c index a325ac12..fcd760d1 100644 --- a/native/argus/tests/test_argus_core.c +++ b/native/argus/tests/test_argus_core.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * test_argus_core.c -- lane D unit tests: every table update, sequence * anomaly, table-full behaviour, telemetry loss, overflow, incidents, ops; diff --git a/native/argus/tests/test_argus_detect.c b/native/argus/tests/test_argus_detect.c index d166a4bc..71a88052 100644 --- a/native/argus/tests/test_argus_detect.c +++ b/native/argus/tests/test_argus_detect.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * test_argus_detect.c -- lane E tests for the ARGUS-0 hard-invariant detectors. * diff --git a/native/argus/tests/test_argus_determinism.c b/native/argus/tests/test_argus_determinism.c index 02e91e82..61a8903e 100644 --- a/native/argus/tests/test_argus_determinism.c +++ b/native/argus/tests/test_argus_determinism.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * test_argus_determinism.c -- lane D determinism gate + provisional ingest * microbenchmark. diff --git a/native/argus/tests/test_argus_event.c b/native/argus/tests/test_argus_event.c index a93e136e..ea695665 100644 --- a/native/argus/tests/test_argus_event.c +++ b/native/argus/tests/test_argus_event.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * test_argus_event.c -- ARGUS lane B: event ABI tests. * layout (static), round trip for every kind, known-answer digests, diff --git a/native/argus/tests/test_argus_hostile.c b/native/argus/tests/test_argus_hostile.c index a08fe5f7..ee2579aa 100644 --- a/native/argus/tests/test_argus_hostile.c +++ b/native/argus/tests/test_argus_hostile.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * test_argus_hostile.c -- ARGUS-0 hostile review (lane G): negative tests. * diff --git a/native/argus/tests/test_argus_integration.c b/native/argus/tests/test_argus_integration.c index 48e54e0b..b7dfd611 100644 --- a/native/argus/tests/test_argus_integration.c +++ b/native/argus/tests/test_argus_integration.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * test_argus_integration.c -- ARGUS-0 integration gates (orchestrator-owned). * diff --git a/native/argus/tests/test_argus_ring.c b/native/argus/tests/test_argus_ring.c index 4392dfd4..186ce44c 100644 --- a/native/argus/tests/test_argus_ring.c +++ b/native/argus/tests/test_argus_ring.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * test_argus_ring.c -- ARGUS lane B: SPSC ring tests. * init/argument errors, watermark (saturation) points per class, drop diff --git a/native/argus/tests/test_common_d.h b/native/argus/tests/test_common_d.h index 83fdd5e8..3cc2ce18 100644 --- a/native/argus/tests/test_common_d.h +++ b/native/argus/tests/test_common_d.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_common_d.h -- tiny check harness + event builder for lane D tests. */ #ifndef TEST_COMMON_D_H #define TEST_COMMON_D_H diff --git a/native/boot/.crumb b/native/boot/.crumb index cc53e7fd..d455247f 100644 --- a/native/boot/.crumb +++ b/native/boot/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-16T23:33:50Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:7bd231b92b38492fbb936e28caa803047edd9250800eac92fe56e09d38bf98cd", + "digest": "sha256:62678ee88494d4f5fab2a67d68edded631793eecbe46bc470db7941e220cba04", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 26, - "generated_at_commit": "4bd49ca164761fe66c6eb339acabdbcc84e8a33c", - "source_tree": "sha256:57b9a2e0d628acd6b2c2d1dab4fc1a4eafec507bc2601b54d92f96fc46393666" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:4f633776fc090034db216e3be7e7583bfde6aa3e5a3f4888ef4f73c52f8c5c18" }, "owner_lane": "", "provenance": { diff --git a/native/boot/diag.h b/native/boot/diag.h index 40a59a8c..663bc4c7 100644 --- a/native/boot/diag.h +++ b/native/boot/diag.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* diag.h -- shared by the UEFI diagnostics (diag_main.c and its x86_64 part, * diag_x86.c). diag_say formats one report line onto ConOut and into the * report file buffer, exactly like diag_main.c's own say(). */ diff --git a/native/boot/diag_main.c b/native/boot/diag_main.c index e3ab4781..6c503455 100644 --- a/native/boot/diag_main.c +++ b/native/boot/diag_main.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* diag_main.c -- AIENOS-PI5-BOOT-0 / PI5-ACPI-0: a minimal AArch64 UEFI diagnostic. * * Prints what the firmware tells an application (vendor, revisions, EL, memory diff --git a/native/boot/diag_x86.c b/native/boot/diag_x86.c index f26db2df..6c102d22 100644 --- a/native/boot/diag_x86.c +++ b/native/boot/diag_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* diag_x86.c -- AIENOS-IMAC-BOOT-0: the x86_64 part of the UEFI diagnostic * (diag_main.c). Read-only inventory of what a port needs to know: * diff --git a/native/boot/efi.h b/native/boot/efi.h index 22a69a64..8bd94913 100644 --- a/native/boot/efi.h +++ b/native/boot/efi.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi.h -- the slice of UEFI the AIENOS C boot stub uses: system table, * boot services it calls (GetMemoryMap, ExitBootServices, SetWatchdogTimer, * AllocatePages, FreePages, FreePool, HandleProtocol, LocateHandleBuffer), diff --git a/native/boot/efi_agentcmd.c b/native/boot/efi_agentcmd.c index 0616e467..c57a00b1 100644 --- a/native/boot/efi_agentcmd.c +++ b/native/boot/efi_agentcmd.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_agentcmd.c -- read \EFI\AIENOS\AGENT.CMD from the boot volume before ExitBootServices * (Raspberry Pi 5 resident-lifecycle qualification image, CK_PI5_LIFECYCLE). Nothing is written. The file * holds a short list of lifecycle verbs placed by the run tool (native/kernel/core/agent_cmd.h). Result in diff --git a/native/boot/efi_artifact.c b/native/boot/efi_artifact.c index 08f50697..0e0a6e61 100644 --- a/native/boot/efi_artifact.c +++ b/native/boot/efi_artifact.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_artifact.c -- read \EFI\AIENOS\ARTIFACT.BND from the boot volume before ExitBootServices * (EL0 artifact qualification image, CK_ARTIFACT_CARD: the Raspberry Pi 5 image and its QEMU twin). * Nothing is written. The file is a bundle of signed artifacts placed by the run tool diff --git a/native/boot/efi_fact.c b/native/boot/efi_fact.c index 0779af9d..a909d3b0 100644 --- a/native/boot/efi_fact.c +++ b/native/boot/efi_fact.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_fact.c -- read \EFI\AIENOS\FACT.REQ from the boot volume before ExitBootServices * (Raspberry Pi 5 Cortex qualification image, CK_PI5_FACT). Nothing is written. The file holds one short * fact placed by the run tool (native/kernel/core/fact_req.h). Result in ck_fact_req_boot (stub and diff --git a/native/boot/efi_gop.c b/native/boot/efi_gop.c index 85ff0177..03d1d11c 100644 --- a/native/boot/efi_gop.c +++ b/native/boot/efi_gop.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_gop.c -- find the UEFI Graphics Output Protocol framebuffer before * ExitBootServices and record it in the CHANDOF3 handoff (fb_* fields), so * the kernel can draw its report on the screen (native/kernel/core/fbcon.c). diff --git a/native/boot/efi_klog.c b/native/boot/efi_klog.c index e06307d5..ba127e84 100644 --- a/native/boot/efi_klog.c +++ b/native/boot/efi_klog.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_klog.c -- read \EFI\AIENOS\KLOG.MAP from the boot volume before * ExitBootServices and find the card that carries the matching log slot, * through the firmware's own Block I/O (Raspberry Pi 5 build, CK_KLOG). diff --git a/native/boot/efi_main.c b/native/boot/efi_main.c index b47b5e5b..47847391 100644 --- a/native/boot/efi_main.c +++ b/native/boot/efi_main.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_main.c -- minimal AIENOS UEFI entry stub for the C kernel core. * * Loads nothing and checks nothing: the image already contains the kernel. diff --git a/native/boot/efi_model.c b/native/boot/efi_model.c index d3941382..b4bb2c5f 100644 --- a/native/boot/efi_model.c +++ b/native/boot/efi_model.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_model.c -- read the yardstick model from the boot disk before * ExitBootServices, through the firmware's own Block I/O driver (the one that * just loaded BOOTAA64.EFI), and hand it to the kernel in CHANDOF2 diff --git a/native/boot/efi_unlock.c b/native/boot/efi_unlock.c index f4c20da0..9fd338b1 100644 --- a/native/boot/efi_unlock.c +++ b/native/boot/efi_unlock.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_unlock.c -- read \EFI\AIENOS\UNLOCK.REQ from the boot volume before * ExitBootServices (Raspberry Pi 5 qualification image, CK_PI5_UNLOCK_CARD). * Nothing is written. The file holds a THROWAWAY recovery secret placed by the diff --git a/native/boot/handoff.h b/native/boot/handoff.h index 17791e20..b82b9e6d 100644 --- a/native/boot/handoff.h +++ b/native/boot/handoff.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* handoff.h -- what the AIENOS UEFI boot stub passes to the C kernel core * after ExitBootServices. Everything referenced here lives in memory the * frame allocator never hands out (the loaded image, LoaderData, ACPI). diff --git a/native/boot/model_map.h b/native/boot/model_map.h index 740a78ae..686068f3 100644 --- a/native/boot/model_map.h +++ b/native/boot/model_map.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* model_map.h -- MODEL.MAP: where the yardstick model's bytes live on the * boot disk, so the UEFI boot stub can read them through the firmware's own * Block I/O driver before ExitBootServices (aienos#34 lane 6, hardware model diff --git a/native/boot/slot_control.c b/native/boot/slot_control.c index 9cdb9c7e..52bc62df 100644 --- a/native/boot/slot_control.c +++ b/native/boot/slot_control.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_control.c -- see slot_control.h. */ #include "slot_control.h" diff --git a/native/boot/slot_control.h b/native/boot/slot_control.h index 21ea6ee3..fed88bc0 100644 --- a/native/boot/slot_control.h +++ b/native/boot/slot_control.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_control.h -- commit one AIENOS slot control record (slot_format.h) * through the torn-slot protocol (native/store/torn_slot.c) and prove it * landed: ts_commit (body, flush, commit header, flush), then ts_recover and diff --git a/native/boot/slot_format.h b/native/boot/slot_format.h index ffdc81be..495073e6 100644 --- a/native/boot/slot_format.h +++ b/native/boot/slot_format.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_format.h -- AIENOS native image slots: the on-disk formats a loader * reads to choose which native image boots, and a kernel writes to install, * update and roll back WITHOUT Linux (native v1 plan P11, gate N7). diff --git a/native/boot/slot_loader.c b/native/boot/slot_loader.c index af13b5f4..44107b3b 100644 --- a/native/boot/slot_loader.c +++ b/native/boot/slot_loader.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_loader.c -- SLOTLDR.EFI: the AIENOS signed A/B image slot loader * (native v1 plan P11 cut 2a, gate N7; docs/NATIVE_IMAGE_SLOTS.md). * diff --git a/native/boot/slot_select.c b/native/boot/slot_select.c index 978ec9c1..c33147cb 100644 --- a/native/boot/slot_select.c +++ b/native/boot/slot_select.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_select.c -- AIENOS native image slots: structural checks, slot * verification and the loader's / kernel's decision rules (slot_format.h). * diff --git a/native/boot/slot_update.c b/native/boot/slot_update.c index 04752d78..4da6ddaf 100644 --- a/native/boot/slot_update.c +++ b/native/boot/slot_update.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_update.c -- the inactive-slot updater (contract in slot_update.h). */ #include "slot_update.h" diff --git a/native/boot/slot_update.h b/native/boot/slot_update.h index 7077798d..0041de77 100644 --- a/native/boot/slot_update.h +++ b/native/boot/slot_update.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_update.h -- write a signed candidate image into the INACTIVE slot * (native v1 plan P11 cut 3, gate N7; docs/NATIVE_IMAGE_SLOTS.md section 9). * diff --git a/native/capability/.crumb b/native/capability/.crumb index 5c3d300d..46505a93 100644 --- a/native/capability/.crumb +++ b/native/capability/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "78115cdbda04ee0b7568424dbdba2833bd201f01118cf01464cb17653fc26aee", - "last_commit": "b84c0a6", + "digest": "255342dca0a867bcdb31c250841c472640734028e234b2015d82ab56127a5c62", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/capability/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:0c70cfa122966e11065bca94434dcb159c75a4557cf6322bbc5256e28d49f2e5", - "compiled_at": "2026-10-14T14:58:51Z", + "children_root": "sha256:a8848d31d2fc74c0d5a73bc5637ba3f8070591deb05e33a141f6d4341d999aeb", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:750c519c466783ed6330a6a2c8fcb2153efdaadb9d65b38a6a85e8463d78b68d", + "digest": "sha256:1b5414c184e37d4d943e7979db3d82f1441d6004bb9b5c379a4e4e39381fe7fd", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 8, - "generated_at_commit": "596870d6ef47c5238cc2c7fa1c08f5e5486e5d84", - "source_tree": "sha256:bb4b4f4706f6b22f2cb4a92ec9ed82733cff2ef5c3a626843e3ee584785e8b9b" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:760bfa9738488222d102305e0d3ed7d0a4c6e1f2e92b97cd9f45ff178c386882" }, "owner_lane": "", "provenance": { diff --git a/native/capability/aienos_capability.c b/native/capability/aienos_capability.c index 6b10a961..4500bad5 100644 --- a/native/capability/aienos_capability.c +++ b/native/capability/aienos_capability.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * aienos_capability.c -- native AIENOS capability authority. * diff --git a/native/capability/aienos_capability.h b/native/capability/aienos_capability.h index ba03d979..421ff602 100644 --- a/native/capability/aienos_capability.h +++ b/native/capability/aienos_capability.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * aienos_capability.h -- native AIENOS capability authority. * diff --git a/native/capability/aienos_contain.c b/native/capability/aienos_contain.c index 20a10601..5a20e72d 100644 --- a/native/capability/aienos_contain.c +++ b/native/capability/aienos_contain.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * aienos_contain.c -- AEGIS containment gate (ARGUS-1 lane G). * See aienos_contain.h and native/argus/docs/ARGUS1_SPEC.md section 5. diff --git a/native/capability/aienos_contain.h b/native/capability/aienos_contain.h index 31ac1619..71bd2e64 100644 --- a/native/capability/aienos_contain.h +++ b/native/capability/aienos_contain.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * aienos_contain.h -- AEGIS containment gate (ARGUS-1 lane G). * diff --git a/native/capability/tests/.crumb b/native/capability/tests/.crumb index aab86d5f..0d7b6de6 100644 --- a/native/capability/tests/.crumb +++ b/native/capability/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-06T14:20:29Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:78115cdbda04ee0b7568424dbdba2833bd201f01118cf01464cb17653fc26aee", + "digest": "sha256:255342dca0a867bcdb31c250841c472640734028e234b2015d82ab56127a5c62", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "2529de3fb99083fbf46e3b028806efd8b2789259", - "source_tree": "sha256:f9e15c7c882c1946001bb923ff71e3650d0bb777a187a228a21df8d21decb860" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:764af4494bc0c819aabd71c4fe5236ed2c1a4972e12cd99a5455e5db779e946c" }, "owner_lane": "", "provenance": { diff --git a/native/capability/tests/capability_test.c b/native/capability/tests/capability_test.c index 7a9de35b..14dc2379 100644 --- a/native/capability/tests/capability_test.c +++ b/native/capability/tests/capability_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * capability_test.c -- rules of the native capability authority. * diff --git a/native/capability/tests/contain_test.c b/native/capability/tests/contain_test.c index be2c6abc..92531f85 100644 --- a/native/capability/tests/contain_test.c +++ b/native/capability/tests/contain_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * contain_test.c -- AEGIS containment gate (ARGUS-1 lane G): positive path, * hostile negatives for invariants I1-I5, receipts, determinism. diff --git a/native/crypto/.crumb b/native/crypto/.crumb index bd1d3cb2..40dad629 100644 --- a/native/crypto/.crumb +++ b/native/crypto/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "dac1583f9b7627f80272af9cf90ef4e62dccc25593f8c4ee1ffbc2471b8f3462", - "last_commit": "a4bba0c", + "digest": "4e8e2e01fffc9474f60e16a70c557cc82e830bd3934d05edc25ebf38dc35c388", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/crypto/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:db2c6d092f9d97c30dc5cc4531ae25cb558d206d66ca31f94ca14d0ff2cfacea", - "compiled_at": "2026-10-14T14:58:51Z", + "children_root": "sha256:5570a77637b744ed264c7a6c4c3297e85684bc1d41667ea1b6ae03d54f2eed3e", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:0a3e98a5f36f528eb7ae6e1611d466343068780b9029621286b292ec1c796950", + "digest": "sha256:5ee5fb66726b423c9a8a15d6b6f8c2ac08092727f386c32015f3fb14fe258079", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 10, - "generated_at_commit": "596870d6ef47c5238cc2c7fa1c08f5e5486e5d84", - "source_tree": "sha256:25932bcca4e7eea369babe75a4e82b72000bb1d1b2437272f2c2a73fb70ffd57" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:12613b5c642786b27a1642a0149f03602d4fa8e028c323fefc2668d2c06542c3" }, "owner_lane": "", "provenance": { diff --git a/native/crypto/aes.c b/native/crypto/aes.c index 63727d9c..cc66ca89 100644 --- a/native/crypto/aes.c +++ b/native/crypto/aes.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AES-256 block encryption per FIPS 197, port of crates/aienos-crypto/src/aes.rs. * * Constant-time design: the S-box is computed, not looked up. Each byte is diff --git a/native/crypto/aienos_crypto.h b/native/crypto/aienos_crypto.h index 9e403868..572dd998 100644 --- a/native/crypto/aienos_crypto.h +++ b/native/crypto/aienos_crypto.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS in-house crypto primitives, C port of crates/aienos-crypto. * * AES-256 (FIPS 197), POLYVAL and AEAD_AES_256_GCM_SIV (RFC 8452), and diff --git a/native/crypto/crypto_internal.h b/native/crypto/crypto_internal.h index 9f0b36a6..3f450d88 100644 --- a/native/crypto/crypto_internal.h +++ b/native/crypto/crypto_internal.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Internal hooks shared by the library objects and the test. Not public API. */ #ifndef AIENOS_CRYPTO_INTERNAL_H #define AIENOS_CRYPTO_INTERNAL_H diff --git a/native/crypto/ct.c b/native/crypto/ct.c index 9346bd0c..053f012d 100644 --- a/native/crypto/ct.c +++ b/native/crypto/ct.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Constant-time helpers: volatile wipe and equality. */ #include "aienos_crypto.h" #include "crypto_internal.h" diff --git a/native/crypto/gcm_siv.c b/native/crypto/gcm_siv.c index 046fbef7..a4d5b144 100644 --- a/native/crypto/gcm_siv.c +++ b/native/crypto/gcm_siv.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AEAD_AES_256_GCM_SIV per RFC 8452, port of crates/aienos-crypto/src/aes_gcm_siv.rs. * * Secret intermediates (derived keys, key schedules, CTR keystream, padded diff --git a/native/crypto/hmac.c b/native/crypto/hmac.c index a15d9b7a..5f7486ff 100644 --- a/native/crypto/hmac.c +++ b/native/crypto/hmac.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* HMAC-SHA-256 with a 32-byte key, port of sha256.rs hmac_sha256. * SHA-256 itself is the in-house native/argus/sha256.c. */ #include "aienos_crypto.h" diff --git a/native/crypto/polyval.c b/native/crypto/polyval.c index f5ef871f..d4f45dc1 100644 --- a/native/crypto/polyval.c +++ b/native/crypto/polyval.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* POLYVAL per RFC 8452 Section 3, port of crates/aienos-crypto/src/polyval.rs. * * Field GF(2^128) modulo x^128 + x^127 + x^126 + x^121 + 1, little-endian diff --git a/native/crypto/tests/.crumb b/native/crypto/tests/.crumb index 3e27d979..965b6a05 100644 --- a/native/crypto/tests/.crumb +++ b/native/crypto/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:dac1583f9b7627f80272af9cf90ef4e62dccc25593f8c4ee1ffbc2471b8f3462", + "digest": "sha256:4e8e2e01fffc9474f60e16a70c557cc82e830bd3934d05edc25ebf38dc35c388", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:8d8a1d7e007ce2f36bca8e9edb7c6e6849804b50612c56b412d739a2603ed907" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:fd77465241bfbae81eefbbccb273980c12b62b60a4515198e860c1ac6bbfb097" }, "owner_lane": "", "provenance": { diff --git a/native/crypto/tests/crypto_test.c b/native/crypto/tests/crypto_test.c index d9e1424b..078dad28 100644 --- a/native/crypto/tests/crypto_test.c +++ b/native/crypto/tests/crypto_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Known-answer and negative tests for native/crypto. * * Vector sources (all hard-coded, none generated at build time): diff --git a/native/disk/.crumb b/native/disk/.crumb index 0d481d00..223e6342 100644 --- a/native/disk/.crumb +++ b/native/disk/.crumb @@ -17,27 +17,27 @@ "generated": { "children": [ { - "digest": "54a25a2ce38d5cde54cce87582dfdcd66b3f21ba3ae18d330c8c66a7004b386a", - "last_commit": "2563059", + "digest": "cf40c4f55bcd87bdcc2d459eb0504e98ede16cd7838d6dcce683c8844cf14c4c", + "last_commit": "621c9e6f", "name": "qemu", "purpose": "Directory native/disk/qemu. Purpose not yet described by a human." }, { - "digest": "28bc8b4021cec8ccd5b90c15d11db3fe7dd396db65e062f5e1046631fa2e4755", - "last_commit": "2563059", + "digest": "a84880bebd005b831a55fa76589f0560f602e21cd87329c5f407ad877d04fff3", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/disk/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:fb9a25a745be4f0d38936d5ff30f3fafdc68a80d6aaeff667fde54d196d6b132", - "compiled_at": "2026-10-14T14:58:51Z", + "children_root": "sha256:4aea14c4d49f640e317a523d6fe5fc9327a9d7b3b0863ecb926390bd655ac1b8", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:99bc55e79695290b65ae08a38e5731e3ed976d79cdb3b6c9bc21c706b1ddab22", + "digest": "sha256:c4ce5c38d99a4f4fbbaf8f829817511aa6ba94d92318ba4f638eddd485341eb0", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 20, - "generated_at_commit": "596870d6ef47c5238cc2c7fa1c08f5e5486e5d84", - "source_tree": "sha256:667e44de55a53f223607fe87bd5ccd445c674f962fd5baa7570a467b3fedeb1a" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:13ce1dfd9111fa9250f38bda90ec132ede441d871f287bb1ad407b57c609f5b7" }, "owner_lane": "", "provenance": { diff --git a/native/disk/disk.c b/native/disk/disk.c index 160c4a94..b9b35757 100644 --- a/native/disk/disk.c +++ b/native/disk/disk.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk.c -- checked entry points and bounded request queue (see disk.h). * Freestanding: no libc, no heap, no clock, no I/O except through the diff --git a/native/disk/disk.h b/native/disk/disk.h index 7e77df5b..decd119b 100644 --- a/native/disk/disk.h +++ b/native/disk/disk.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk.h -- AIENOS native block-device interface (C, no outside library). * diff --git a/native/disk/disk_file.c b/native/disk/disk_file.c index da830748..b00a286f 100644 --- a/native/disk/disk_file.c +++ b/native/disk/disk_file.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk_file.c -- hosted file-backed backend with power-cut injection * (see disk_file.h). Test-only; uses libc. diff --git a/native/disk/disk_file.h b/native/disk/disk_file.h index 5a7ef30e..0a2d21be 100644 --- a/native/disk/disk_file.h +++ b/native/disk/disk_file.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk_file.h -- hosted file-backed disk backend for tests (libc). Never part * of a freestanding image. diff --git a/native/disk/disk_nvme.c b/native/disk/disk_nvme.c index 67b20381..e6bcdd3f 100644 --- a/native/disk/disk_nvme.c +++ b/native/disk/disk_nvme.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk_nvme.c -- freestanding polled NVMe driver (see disk_nvme.h). * No libc, no heap, no clock: platform access only through nvme_ops. diff --git a/native/disk/disk_nvme.h b/native/disk/disk_nvme.h index 90f7b477..ced61860 100644 --- a/native/disk/disk_nvme.h +++ b/native/disk/disk_nvme.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk_nvme.h -- AIENOS freestanding NVMe driver (C, no libc, no heap). * diff --git a/native/disk/disk_sdhci.c b/native/disk/disk_sdhci.c index 155b7872..65b0add4 100644 --- a/native/disk/disk_sdhci.c +++ b/native/disk/disk_sdhci.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* disk_sdhci.c -- AIENOS freestanding SD card driver over SDHCI; see * disk_sdhci.h for the contract, sources and refusals. No libc. */ #include "disk_sdhci.h" diff --git a/native/disk/disk_sdhci.h b/native/disk/disk_sdhci.h index bcfbe156..d87b6e48 100644 --- a/native/disk/disk_sdhci.h +++ b/native/disk/disk_sdhci.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk_sdhci.h -- AIENOS freestanding SD card driver over an SD Host * Controller (SDHCI) (C, no libc, no heap). Raspberry Pi 5 microSD slot diff --git a/native/disk/qemu/.crumb b/native/disk/qemu/.crumb index c6819a14..0479987f 100644 --- a/native/disk/qemu/.crumb +++ b/native/disk/qemu/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T05:44:11Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:54a25a2ce38d5cde54cce87582dfdcd66b3f21ba3ae18d330c8c66a7004b386a", + "digest": "sha256:cf40c4f55bcd87bdcc2d459eb0504e98ede16cd7838d6dcce683c8844cf14c4c", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 6, - "generated_at_commit": "1994c4f8c4e8521d7febed45306515aa5085f207", - "source_tree": "sha256:4d0fc11e9b44f17aac5aaf0d404e6a384fb933c953e68d948403f563f6a054d4" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:3b9bbd5317b274dd035786ef076a096a3e9a2e9340aec19e1f14b4f06365b608" }, "owner_lane": "", "provenance": { diff --git a/native/disk/qemu/payload.c b/native/disk/qemu/payload.c index 3cc5053a..921fa133 100644 --- a/native/disk/qemu/payload.c +++ b/native/disk/qemu/payload.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * payload.c -- bare-metal AArch64 test of native/disk/disk_nvme.c against * QEMU's emulated NVMe controller on the "virt" machine (highmem=off, so the diff --git a/native/disk/qemu/sdhci_payload.c b/native/disk/qemu/sdhci_payload.c index 37396d6e..163b8db4 100644 --- a/native/disk/qemu/sdhci_payload.c +++ b/native/disk/qemu/sdhci_payload.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * sdhci_payload.c -- bare-metal AArch64 test of native/disk/disk_sdhci.c * against QEMU's emulated PCI SD Host Controller (sdhci-pci) and SD card on diff --git a/native/disk/tests/.crumb b/native/disk/tests/.crumb index 92672421..5ed32fce 100644 --- a/native/disk/tests/.crumb +++ b/native/disk/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T05:44:11Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:28bc8b4021cec8ccd5b90c15d11db3fe7dd396db65e062f5e1046631fa2e4755", + "digest": "sha256:a84880bebd005b831a55fa76589f0560f602e21cd87329c5f407ad877d04fff3", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 3, - "generated_at_commit": "1994c4f8c4e8521d7febed45306515aa5085f207", - "source_tree": "sha256:cccd4c2564da56cc8dfc304b792f4f7949c5fa157a28feb973042d2dd93d93cb" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:eb912565b6289b88e172f831e32df9133846e79e5b39aaf22ce5373ac0be2adc" }, "owner_lane": "", "provenance": { diff --git a/native/disk/tests/disk_test.c b/native/disk/tests/disk_test.c index 268fa014..98b0c70f 100644 --- a/native/disk/tests/disk_test.c +++ b/native/disk/tests/disk_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * disk_test.c -- hosted tests for the disk core (disk.c) and the file backend * (disk_file.c). Usage: disk_test diff --git a/native/disk/tests/nvme_test.c b/native/disk/tests/nvme_test.c index 8ff7633b..621430c2 100644 --- a/native/disk/tests/nvme_test.c +++ b/native/disk/tests/nvme_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * nvme_test.c -- hosted tests for disk_nvme.c against a software NVMe * controller model (registers, admin and I/O queues, PRP walking, a volatile diff --git a/native/disk/tests/sdhci_test.c b/native/disk/tests/sdhci_test.c index ba392dfc..fc1d2797 100644 --- a/native/disk/tests/sdhci_test.c +++ b/native/disk/tests/sdhci_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* sdhci_test.c -- disk_sdhci.c against a software SDHCI + SD card model. * Hosted test; not QEMU and not hardware. The model offers only aligned * 32-bit access, flags every protocol violation it can see (command issued diff --git a/native/kernel/.crumb b/native/kernel/.crumb index 57d1b019..890c738c 100644 --- a/native/kernel/.crumb +++ b/native/kernel/.crumb @@ -45,69 +45,69 @@ "generated": { "children": [ { - "digest": "8f63182b423b274a3fa6dcf0a17811343f93bd1539e33479102ffa87935da1ca", - "last_commit": "4bd49ca", + "digest": "7fbcf8cfb77799807b2a55611e2a3f6563d9c2403aac467868dfa685ce46cfe2", + "last_commit": "621c9e6f", "name": "arch", "purpose": "Directory native/kernel/arch. Purpose not yet described by a human." }, { - "digest": "cd3be26829bc7f947521b1e5df144df2504ef25a3763ec0356861b7d17d5d901", - "last_commit": "4bd49ca", + "digest": "de009659b554bfb75b093c0b62567ed58238731e3ce4c457008fcc2be1488b89", + "last_commit": "621c9e6f", "name": "artifact", "purpose": "Directory native/kernel/artifact. Purpose not yet described by a human." }, { - "digest": "c9035b8f32a9539fe8d1f93ed968b3b56dd3ba4c2630b32b6c286b1dbd19d908", - "last_commit": "4bd49ca", + "digest": "260dd9252422aaa6f636c8665c2b403126dc7a48e8177968be612420fd278add", + "last_commit": "621c9e6f", "name": "core", "purpose": "Directory native/kernel/core. Purpose not yet described by a human." }, { - "digest": "ebdd66c0966fba664f36dc167836b98d26ffae97f9502b4409e9c22da687b473", - "last_commit": "4bd49ca", + "digest": "eb3146a026248b54faa150003192fcc43ab2bd9b01d3c0d0c120c2d5bbe2b453", + "last_commit": "621c9e6f", "name": "dev", "purpose": "Directory native/kernel/dev. Purpose not yet described by a human." }, { - "digest": "8198bb9a0fbd634281a251b012eca8874c97e469a45eec8b5a6bf06a7e828f9a", - "last_commit": "4bd49ca", + "digest": "54cee35b405dc1c90f62d4d227ed172142abfd4917e720708ba0b83b94b9376e", + "last_commit": "621c9e6f", "name": "include", "purpose": "Directory native/kernel/include. Purpose not yet described by a human." }, { - "digest": "8252fab960e4a3bb686f2e864b0d9a0571f43381d5006de2ff6c134c132ef092", - "last_commit": "4bd49ca", + "digest": "c7dc6acbe30f21ef0d3983d31b212f89ff23ae6e56862a2718d98fd28c76649a", + "last_commit": "621c9e6f", "name": "mm", "purpose": "Directory native/kernel/mm. Purpose not yet described by a human." }, { - "digest": "2a98333d826d94a7131119aaeb5a15d8bc543baa5531fa930e6f0afc1fccb83d", - "last_commit": "4bd49ca", + "digest": "7d1c2af30b802a41a46b1b70250cdaa855ba8c579ce5c870de452980e161cbfb", + "last_commit": "621c9e6f", "name": "svc", "purpose": "Directory native/kernel/svc. Purpose not yet described by a human." }, { - "digest": "0f3d28a645346382567a7a279a3e02a095c8e7f298967db175944c0a58ca9c5d", - "last_commit": "3037967", + "digest": "8d2fb81be11b693b4924e441d5365371d48d868c78e38ab2d146d68739aade36", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/kernel/tests. Purpose not yet described by a human." }, { - "digest": "412f0a290f187935193ec94f1817c46dbe0edc07a5eb427e39977b65c1d00f9f", - "last_commit": "3037967", + "digest": "161f0b797ac718a09d619e04330a1b55aced4690cb59727bbd566a9b86aaad77", + "last_commit": "621c9e6f", "name": "tools", "purpose": "Hosted (Linux-built) checkers for the native kernel, run by `make -C native/kernel test`; nothin" } ], - "children_root": "sha256:658a040f493b6ff9dc4a775b2b73a0c89ded592a235231016dd8594094530e0f", - "compiled_at": "2026-10-17T01:49:45Z", + "children_root": "sha256:2891cf6ca7116bff9ce212b37abfde7d22d78073138c80071b867f2af4dca60c", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:7a81b1b4b47154e15b9682b72d7fa49f309454f093aeb019061b8148550920ae", + "digest": "sha256:f951cbac83635abdd46bd86bd9b0d6374fc8e578c73b4eab3661ec87e673445f", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 421, - "generated_at_commit": "30379678add587e388db4e11713d6bca8d159b08", - "source_tree": "sha256:cfa9d56bd0bae125be856e13a57758e007e620d1fc9501643728e676f53eaabe" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:117f6c2cb335c6f1e79b58e8a5b6f819c10456bca62b74bc1498f8dae72168d6" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/arch/.crumb b/native/kernel/arch/.crumb index 8da07878..83ad2c0a 100644 --- a/native/kernel/arch/.crumb +++ b/native/kernel/arch/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T12:30:58Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:8f63182b423b274a3fa6dcf0a17811343f93bd1539e33479102ffa87935da1ca", + "digest": "sha256:7fbcf8cfb77799807b2a55611e2a3f6563d9c2403aac467868dfa685ce46cfe2", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 8, - "generated_at_commit": "a01f365f16ea16bb4843f97b031ee72b4e028389", - "source_tree": "sha256:a3f57569a3f0d39ed15c92cf2444286702f51e87ade81dea77e76af193678a6b" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:28b738e67cff45a3e75fde530c200f001dc2fe196045f1e842e331d541caee6e" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/arch/arch.h b/native/kernel/arch/arch.h index 7004e4d2..abd01594 100644 --- a/native/kernel/arch/arch.h +++ b/native/kernel/arch/arch.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* arch.h -- AArch64 system register access for the C kernel core. GICv3 CPU * interface registers use their S3_* encodings so any assembler accepts them. */ #ifndef AIENOS_CK_ARCH_H diff --git a/native/kernel/arch/exception.c b/native/kernel/arch/exception.c index 7ba4a355..2fb4211b 100644 --- a/native/kernel/arch/exception.c +++ b/native/kernel/arch/exception.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* exception.c -- synchronous exceptions, FIQ/SError, and the IRQ dispatcher. * Any exception other than an armed probe, an IRQ or an M3 EL0 task's * syscall/contained fault (core/m3.c) is fatal: it prints diff --git a/native/kernel/arch/gic.c b/native/kernel/arch/gic.c index 0ef3146d..c7e09228 100644 --- a/native/kernel/arch/gic.c +++ b/native/kernel/arch/gic.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* gic.c -- the interrupt controller from the ACPI MADT, and the IRQ enable * service for device code. Two kinds: * - GICv3 (Spark, QEMU gic-version=3): distributor, this CPU's redistributor diff --git a/native/kernel/arch/rndr.c b/native/kernel/arch/rndr.c index c4e8b7f6..6e5a1744 100644 --- a/native/kernel/arch/rndr.c +++ b/native/kernel/arch/rndr.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* rndr.c -- kernel glue for core/entropy.c: the real FEAT_RNG check * (ID_AA64ISAR0_EL1.RNDR, bits [63:60]) and the RNDR read (NZCV.Z set means * no random number was returned). Implements the ck.h entropy services. diff --git a/native/kernel/arch/timer.c b/native/kernel/arch/timer.c index c905c893..24f8d7aa 100644 --- a/native/kernel/arch/timer.c +++ b/native/kernel/arch/timer.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* timer.c -- EL1 physical generic timer (CNTP, PPI INTID 30) and the * monotonic time services. Tick semantics match the Rust kernel: the IRQ * re-arms CNTP_CVAL 10 ms after "now", then records the interval since the diff --git a/native/kernel/artifact/.crumb b/native/kernel/artifact/.crumb index 43b52963..dfed501c 100644 --- a/native/kernel/artifact/.crumb +++ b/native/kernel/artifact/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-15T02:48:19Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:cd3be26829bc7f947521b1e5df144df2504ef25a3763ec0356861b7d17d5d901", + "digest": "sha256:de009659b554bfb75b093c0b62567ed58238731e3ce4c457008fcc2be1488b89", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 13, - "generated_at_commit": "edd175183f30a31f4c7683e194dd6479dc8c7a6e", - "source_tree": "sha256:6cd37233b62c978bf5adeb03aeafb474e456a830a8992130b0fba7492840faa8" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:ec5716ab32ef5bd5685e309cd0e411ff101db2bdff035c8d0322a4bcb4ee801a" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/artifact/admission.c b/native/kernel/artifact/admission.c index cc556a00..1a4b0a65 100644 --- a/native/kernel/artifact/admission.c +++ b/native/kernel/artifact/admission.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* admission.c -- the boot admission policy and its evaluation (port of * aienos-kernel admission.rs and the boot policy of artifact_loader.rs). */ #include "ck_artifact.h" diff --git a/native/kernel/artifact/ck_artifact.h b/native/kernel/artifact/ck_artifact.h index 21ed5abf..73874b01 100644 --- a/native/kernel/artifact/ck_artifact.h +++ b/native/kernel/artifact/ck_artifact.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_artifact.h -- SEED-0B sealed artifact format, admission policy and * admission receipts in C (port of crates/aienos-artifact: format.rs, * capability.rs, resource.rs, verify.rs, admission.rs, receipt.rs and the diff --git a/native/kernel/artifact/format.c b/native/kernel/artifact/format.c index ed0c7690..88edffa6 100644 --- a/native/kernel/artifact/format.c +++ b/native/kernel/artifact/format.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* format.c -- SEED-0B artifact parse, capability and envelope records, * identity digests and signature verification (format.rs, capability.rs, * resource.rs, id.rs, canonical.rs, verify.rs). */ diff --git a/native/kernel/artifact/osc_launch.c b/native/kernel/artifact/osc_launch.c index c607a7c7..952b426f 100644 --- a/native/kernel/artifact/osc_launch.c +++ b/native/kernel/artifact/osc_launch.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_launch.c -- see osc_launch.h. Pure. */ #include "osc_launch.h" diff --git a/native/kernel/artifact/osc_launch.h b/native/kernel/artifact/osc_launch.h index 9808e0a2..1e7d4500 100644 --- a/native/kernel/artifact/osc_launch.h +++ b/native/kernel/artifact/osc_launch.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_launch.h -- the pure parts of launching an admitted OSC unit (OSC_UNIT_ARTIFACT.md section 9): * the argument rule (9.2), range ownership (9.1.1 item 4), the ticks budget, and the classification * of what an EL0 unit did into the four result classes (9.3). No globals, no I/O, no MMU: host tested diff --git a/native/kernel/artifact/osc_receipt.c b/native/kernel/artifact/osc_receipt.c index 930f877a..61f14871 100644 --- a/native/kernel/artifact/osc_receipt.c +++ b/native/kernel/artifact/osc_receipt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_receipt.c -- Omega realization receipt v1 verification. See osc_receipt.h and omega * spec/one-layer-receipts.md. Written from the spec: section 2 (layout), 3 (signature), 5 (checker identity), * 6 (order and reasons). One comment per step of section 6; the first failure decides the result. diff --git a/native/kernel/artifact/osc_receipt.h b/native/kernel/artifact/osc_receipt.h index b782bf6e..106c0114 100644 --- a/native/kernel/artifact/osc_receipt.h +++ b/native/kernel/artifact/osc_receipt.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_receipt.h -- verification of Omega realization receipts (receipt v1) for OSC unit launch (aienos#383). * * Contract: aien-dev/omega spec/one-layer-receipts.md (normative; section numbers below refer to it), the diff --git a/native/kernel/artifact/osc_receipt_anchor.h b/native/kernel/artifact/osc_receipt_anchor.h index 40de9b85..d575df02 100644 --- a/native/kernel/artifact/osc_receipt_anchor.h +++ b/native/kernel/artifact/osc_receipt_anchor.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_receipt_anchor.h -- receipt trust inputs that are not TEST material (aienos#383). * * osc_rcpt_owner_root_pk: Drake's owner root public key from the aienos#380 ceremony diff --git a/native/kernel/artifact/osc_receipt_test_anchor.h b/native/kernel/artifact/osc_receipt_test_anchor.h index 2155857e..223094c8 100644 --- a/native/kernel/artifact/osc_receipt_test_anchor.h +++ b/native/kernel/artifact/osc_receipt_test_anchor.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_receipt_test_anchor.h -- THROWAWAY TEST material for realization receipts (aienos#383). It protects nothing. * * osc_rcpt_test_pk: omega checker2's TEST receipt key (omega spec/one-layer-receipts.md section 3, class TEST), diff --git a/native/kernel/artifact/osc_unit.c b/native/kernel/artifact/osc_unit.c index 7c419ae8..53d10d7f 100644 --- a/native/kernel/artifact/osc_unit.c +++ b/native/kernel/artifact/osc_unit.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_unit.c -- OSCUNIT admission. See osc_unit.h and OSC_UNIT_ARTIFACT.md * (aien-protocols PR #17). The check order below is section 8.2, one comment * per step, because the first failure decides the result. */ diff --git a/native/kernel/artifact/osc_unit.h b/native/kernel/artifact/osc_unit.h index f99fbc29..9a51a76f 100644 --- a/native/kernel/artifact/osc_unit.h +++ b/native/kernel/artifact/osc_unit.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_unit.h -- admission of OSC unit containers (OSCUNIT, container v1). * * Contract: aien-spark/aien-protocols PR #17, specs/osc-unit-artifact/ diff --git a/native/kernel/artifact/osc_unit_test_anchor.h b/native/kernel/artifact/osc_unit_test_anchor.h index c07ec892..e4099a3a 100644 --- a/native/kernel/artifact/osc_unit_test_anchor.h +++ b/native/kernel/artifact/osc_unit_test_anchor.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_unit_test_anchor.h -- the THROWAWAY TEST public key of the OSC unit * conformance vectors (aien-protocols PR #17, specs/osc-unit-artifact/keys/ * test1.pub, derived from a fixed public label in tools/make-vectors.sh). diff --git a/native/kernel/artifact/receipt.c b/native/kernel/artifact/receipt.c index aab29865..a3f4eda3 100644 --- a/native/kernel/artifact/receipt.c +++ b/native/kernel/artifact/receipt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* receipt.c -- SEED-0B admission receipts (port of aienos-artifact * receipt.rs): 512-byte canonical record, digest, nonce, validation and the * TEST-ONLY qualification signature. */ diff --git a/native/kernel/core/.crumb b/native/kernel/core/.crumb index 11410454..60fdca99 100644 --- a/native/kernel/core/.crumb +++ b/native/kernel/core/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-15T02:48:19Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:c9035b8f32a9539fe8d1f93ed968b3b56dd3ba4c2630b32b6c286b1dbd19d908", + "digest": "sha256:260dd9252422aaa6f636c8665c2b403126dc7a48e8177968be612420fd278add", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 69, - "generated_at_commit": "edd175183f30a31f4c7683e194dd6479dc8c7a6e", - "source_tree": "sha256:928d92ef1abd9076c57a25fb07becf22b43f0a46a7edd1998383f3dd6296e083" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:42c98f3543cbb0ed8bbb342c611c55afea087105bf873a9fb8ffb911a691ce7c" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/core/acpi.c b/native/kernel/core/acpi.c index 3c2d7cef..24046653 100644 --- a/native/kernel/core/acpi.c +++ b/native/kernel/core/acpi.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* acpi.c -- see acpi.h. Unaligned little-endian reads only (ACPI tables are * byte packed and the kernel builds with -mstrict-align). */ #include "acpi.h" diff --git a/native/kernel/core/acpi.h b/native/kernel/core/acpi.h index 61cf65ba..6416767e 100644 --- a/native/kernel/core/acpi.h +++ b/native/kernel/core/acpi.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* acpi.h -- ACPI table lookup and the MADT/SPCR/FADT fields the core uses. * Pure functions over memory (identity mapped in the kernel, host buffers in * the tests). Every table is length- and checksum-checked before use. */ diff --git a/native/kernel/core/acpi_dev.c b/native/kernel/core/acpi_dev.c index c06e1aa7..7fe26322 100644 --- a/native/kernel/core/acpi_dev.c +++ b/native/kernel/core/acpi_dev.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* acpi_dev.c -- bounded static scan of DSDT/SSDT Device objects (see * acpi_dev.h). Freestanding; host tested in tests/test_acpi_dev.c. */ #include "acpi_dev.h" diff --git a/native/kernel/core/acpi_dev.h b/native/kernel/core/acpi_dev.h index 82b6f03e..93d6cc4c 100644 --- a/native/kernel/core/acpi_dev.h +++ b/native/kernel/core/acpi_dev.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* acpi_dev.h -- bounded static scan of ACPI definition blocks (DSDT, SSDT) * for Device objects: name path, _HID / _CID and the first memory range of * a constant _CRS resource template. Pure functions over memory (identity diff --git a/native/kernel/core/acpi_platform.c b/native/kernel/core/acpi_platform.c index fa6eac13..9480add9 100644 --- a/native/kernel/core/acpi_platform.c +++ b/native/kernel/core/acpi_platform.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* acpi_platform.c -- ck_acpi_platform_devices (ck.h): the DSDT named by the * FADT plus every SSDT the XSDT lists, each scanned by core/acpi_dev.c. * Kernel only; the scan itself is host tested (tests/test_acpi_dev.c) and diff --git a/native/kernel/core/agent_cmd.c b/native/kernel/core/agent_cmd.c index e3575977..a4b4d013 100644 --- a/native/kernel/core/agent_cmd.c +++ b/native/kernel/core/agent_cmd.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* agent_cmd.c -- see agent_cmd.h. No kernel calls, no libc. */ #include "agent_cmd.h" diff --git a/native/kernel/core/agent_cmd.h b/native/kernel/core/agent_cmd.h index 3f824239..8fba2aee 100644 --- a/native/kernel/core/agent_cmd.h +++ b/native/kernel/core/agent_cmd.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* agent_cmd.h -- the card command script of the Pi resident-lifecycle qualification image * (PI5-7 cut 2, build flag CK_PI5_LIFECYCLE, only with CK_PI5_UNLOCK_CARD). * diff --git a/native/kernel/core/artifact_card.c b/native/kernel/core/artifact_card.c index 9a5f8553..3de95d6c 100644 --- a/native/kernel/core/artifact_card.c +++ b/native/kernel/core/artifact_card.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* artifact_card.c -- see artifact_card.h. No kernel calls, no libc (host-tested by tests/test_artifact_card.c). */ #include "artifact_card.h" diff --git a/native/kernel/core/artifact_card.h b/native/kernel/core/artifact_card.h index 090355a1..c93bb20d 100644 --- a/native/kernel/core/artifact_card.h +++ b/native/kernel/core/artifact_card.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* artifact_card.h -- the card artifact bundle of the Raspberry Pi 5 EL0 artifact qualification image * (PI5-7 cut 3, build flag CK_ARTIFACT_CARD, "make pi5-artifact"; the same code boots in QEMU for the * red-before-green run, see scripts/qemu_ck_artifact_card_test.sh). diff --git a/native/kernel/core/artifact_card_stage.c b/native/kernel/core/artifact_card_stage.c index 67bde6ae..7a70fad4 100644 --- a/native/kernel/core/artifact_card_stage.c +++ b/native/kernel/core/artifact_card_stage.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* artifact_card_stage.c -- offers the card artifact bundle (core/artifact_card.h) to the core loader through * the boot-disk hook (ck_stage_disk_artifacts, ck.h), in the images built with CK_ARTIFACT_CARD only * (QUALIFICATION ONLY, TEST keys). Such an image links no Store stage, so the hook has exactly one diff --git a/native/kernel/core/artifact_loader.c b/native/kernel/core/artifact_loader.c index fe1d7fd9..725bfdb9 100644 --- a/native/kernel/core/artifact_loader.c +++ b/native/kernel/core/artifact_loader.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* artifact_loader.c -- P2 sealed-artifact loader of the C kernel core. * * Port of crates/aienos-kernel/src/artifact_loader.rs (load_bound, diff --git a/native/kernel/core/ck_internal.h b/native/kernel/core/ck_internal.h index 39ee4490..b2eaa735 100644 --- a/native/kernel/core/ck_internal.h +++ b/native/kernel/core/ck_internal.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_internal.h -- declarations shared inside the C kernel core (boot stub, * arch, mm, core). Not part of the stage contract (that is ck.h). */ #ifndef AIENOS_CK_INTERNAL_H diff --git a/native/kernel/core/console.c b/native/kernel/core/console.c index c92b3ee3..79ac376a 100644 --- a/native/kernel/core/console.c +++ b/native/kernel/core/console.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* console.c -- ck_puts/ck_printf. Before ExitBootServices the boot stub * attaches UEFI ConOut; afterwards output goes to the UART the ACPI SPCR * names (PL011/SBSA, or 16550 in MMIO). With neither, output is dropped and diff --git a/native/kernel/core/context.c b/native/kernel/core/context.c index 9b623344..38d80c54 100644 --- a/native/kernel/core/context.c +++ b/native/kernel/core/context.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* context.c -- see context.h. No kernel calls, no libc. */ #include "context.h" #include "../third_party/omega/rx_cortex.h" diff --git a/native/kernel/core/context.h b/native/kernel/core/context.h index c5bb7cde..2629fbc5 100644 --- a/native/kernel/core/context.h +++ b/native/kernel/core/context.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* context.h -- bounded context assembly for memory-conditioned generation * (native v1 gate N3, aienos#329; the native slice of aien-architecture#159 * "wire typed context assembly into production inference"). diff --git a/native/kernel/core/context_proposal.c b/native/kernel/core/context_proposal.c index 612d4a31..92855457 100644 --- a/native/kernel/core/context_proposal.c +++ b/native/kernel/core/context_proposal.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* context_proposal.c -- see context_proposal.h. No kernel calls, no libc. */ #include "context_proposal.h" #include "../../argus/sha256.h" diff --git a/native/kernel/core/context_proposal.h b/native/kernel/core/context_proposal.h index 840b5b79..c81fe672 100644 --- a/native/kernel/core/context_proposal.h +++ b/native/kernel/core/context_proposal.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* context_proposal.h -- exact preview / approval / commit binding for the * resident lifecycle (native v1 gate N3, aienos#329). * diff --git a/native/kernel/core/cpufeat.c b/native/kernel/core/cpufeat.c index 566d25e8..430bc5f6 100644 --- a/native/kernel/core/cpufeat.c +++ b/native/kernel/core/cpufeat.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* cpufeat.c -- see cpufeat.h for the register field positions. */ #include "cpufeat.h" #include "fmt.h" diff --git a/native/kernel/core/cpufeat.h b/native/kernel/core/cpufeat.h index c6831e71..260243f8 100644 --- a/native/kernel/core/cpufeat.h +++ b/native/kernel/core/cpufeat.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* cpufeat.h -- CPU feature decode from the Arm ID registers (pure function). * * Field positions (quoted from Linux arch/arm64/tools/sysreg, which diff --git a/native/kernel/core/entropy.c b/native/kernel/core/entropy.c index c44eb7db..192b2d9d 100644 --- a/native/kernel/core/entropy.c +++ b/native/kernel/core/entropy.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* entropy.c -- RNDR-or-refuse selection logic (see entropy.h). Pure C, no * ck.h services, so the host tests (tests/test_entropy.c) run it against a * mocked RNDR. */ diff --git a/native/kernel/core/entropy.h b/native/kernel/core/entropy.h index e9d39b01..9ba34239 100644 --- a/native/kernel/core/entropy.h +++ b/native/kernel/core/entropy.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* entropy.h -- kernel entropy: the Arm RNDR instruction or a refusal. * * Pure selection logic over two callbacks (is FEAT_RNG present, read one diff --git a/native/kernel/core/fact_req.c b/native/kernel/core/fact_req.c index a94eb1b9..90c469cf 100644 --- a/native/kernel/core/fact_req.c +++ b/native/kernel/core/fact_req.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* fact_req.c -- see fact_req.h. */ #include "fact_req.h" diff --git a/native/kernel/core/fact_req.h b/native/kernel/core/fact_req.h index 53837c58..36174321 100644 --- a/native/kernel/core/fact_req.h +++ b/native/kernel/core/fact_req.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* fact_req.h -- the card fact request file of the Pi Cortex qualification image * (PI5-5, build flag CK_PI5_FACT, only with CK_PI5_UNLOCK_CARD). * diff --git a/native/kernel/core/fbcon.c b/native/kernel/core/fbcon.c index 4e95f08c..6bac4295 100644 --- a/native/kernel/core/fbcon.c +++ b/native/kernel/core/fbcon.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* fbcon.c -- text console on a linear 32-bit framebuffer; see fbcon.h. */ #include "fbcon.h" #include "font8x8.h" diff --git a/native/kernel/core/fbcon.h b/native/kernel/core/fbcon.h index 73e5c75e..a630233c 100644 --- a/native/kernel/core/fbcon.h +++ b/native/kernel/core/fbcon.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* fbcon.h -- text console on a linear 32-bit framebuffer (the UEFI GOP * framebuffer the boot stub hands over in the CHANDOF3 record). * diff --git a/native/kernel/core/fmt.c b/native/kernel/core/fmt.c index d5988520..67f25975 100644 --- a/native/kernel/core/fmt.c +++ b/native/kernel/core/fmt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* fmt.c -- see fmt.h. */ #include "fmt.h" diff --git a/native/kernel/core/fmt.h b/native/kernel/core/fmt.h index 34b4c750..d5bd792c 100644 --- a/native/kernel/core/fmt.h +++ b/native/kernel/core/fmt.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* fmt.h -- freestanding printf-style formatting shared by the console and * the host tests. Pure: no I/O, no globals. */ #ifndef AIENOS_CK_FMT_H diff --git a/native/kernel/core/font8x8.h b/native/kernel/core/font8x8.h index e3a618d6..5af79194 100644 --- a/native/kernel/core/font8x8.h +++ b/native/kernel/core/font8x8.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* font8x8.h -- 8x8 bitmap glyphs for printable ASCII (0x20..0x7e), used by * the framebuffer console (core/fbcon.c) and its host checker * (tools/ck_fb_check.c). diff --git a/native/kernel/core/fpu.c b/native/kernel/core/fpu.c index 9c1ead6c..9bebc322 100644 --- a/native/kernel/core/fpu.c +++ b/native/kernel/core/fpu.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* fpu.c -- run ONE floating-point/SIMD-enabled unit (a Rust no_std staticlib, * crates/aienos-fpu-probe) from the general-regs-only C kernel (aienos#34 * lane 0). Only compiled into the probe build: Makefile CK_RUST_LIBS=<.a> diff --git a/native/kernel/core/handoff_check.c b/native/kernel/core/handoff_check.c index 52f51c4e..bc884644 100644 --- a/native/kernel/core/handoff_check.c +++ b/native/kernel/core/handoff_check.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* handoff_check.c -- refuse a malformed loader -> kernel handoff record * before the kernel trusts any field of it (docs/BOOT_HANDOFF_CONTRACT.md * section 6). Checked here: NULL record, magic (CHANDOF3 only; CHANDOF1 and diff --git a/native/kernel/core/handoff_check.h b/native/kernel/core/handoff_check.h index 34f1e9ce..46b9bb50 100644 --- a/native/kernel/core/handoff_check.h +++ b/native/kernel/core/handoff_check.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* handoff_check.h -- pure validator of the loader -> kernel handoff record * (docs/BOOT_HANDOFF_CONTRACT.md section 6, CHANDOF3). No I/O, no * globals the caller can see; host tested by tests/test_handoff.c. */ diff --git a/native/kernel/core/infer.c b/native/kernel/core/infer.c index 4f25b37a..b23006d0 100644 --- a/native/kernel/core/infer.c +++ b/native/kernel/core/infer.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* infer.c -- ingest the Llama-3.2-1B GGUF into kernel RAM and call the Rust * inference crate from the general-regs-only C kernel (aienos#34 lane 4, * cut 1: header, model bind, prompt tokenization; aienos#34 lane 5 cut 2: diff --git a/native/kernel/core/ipc.c b/native/kernel/core/ipc.c index a47f4313..9c29094d 100644 --- a/native/kernel/core/ipc.c +++ b/native/kernel/core/ipc.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ipc.c -- see ipc.h. caps.rs and ipc.rs logic, step for step. */ #include "ipc.h" diff --git a/native/kernel/core/ipc.h b/native/kernel/core/ipc.h index d0a5505d..3b74354b 100644 --- a/native/kernel/core/ipc.h +++ b/native/kernel/core/ipc.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ipc.h -- capability tables and typed bounded IPC for the C kernel core. * Port of crates/aienos-kernel/src/caps.rs (CapTable: generation-checked * handles, attenuating derive, cross-table derive, tombstones, cascading diff --git a/native/kernel/core/klog.c b/native/kernel/core/klog.c index 942827a2..cf3738f7 100644 --- a/native/kernel/core/klog.c +++ b/native/kernel/core/klog.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* klog.c -- see klog.h. */ #include "klog.h" #include "fmt.h" diff --git a/native/kernel/core/klog.h b/native/kernel/core/klog.h index 6086f3e2..240c2c56 100644 --- a/native/kernel/core/klog.h +++ b/native/kernel/core/klog.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* klog.h -- RAM copy of the console output, so a board with no serial line * attached (the hub Raspberry Pi 5) can write it to its card before the * reset (core/klog_slot.c). The first CK_KLOG_HEAD bytes are kept in order; diff --git a/native/kernel/core/klog_boot.h b/native/kernel/core/klog_boot.h index f8c742e2..efd83fea 100644 --- a/native/kernel/core/klog_boot.h +++ b/native/kernel/core/klog_boot.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* klog_boot.h -- what the UEFI stub found about the log slot * (native/boot/efi_klog.c), read by the kernel after ExitBootServices * (core/klog_flush.c). Raspberry Pi 5 build only (CK_KLOG). */ diff --git a/native/kernel/core/klog_slot.c b/native/kernel/core/klog_slot.c index 6bad21d4..e93f3d57 100644 --- a/native/kernel/core/klog_slot.c +++ b/native/kernel/core/klog_slot.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* klog_slot.c -- see klog_slot.h. Pure. */ #include "klog_slot.h" diff --git a/native/kernel/core/klog_slot.h b/native/kernel/core/klog_slot.h index e52f56a8..fb778200 100644 --- a/native/kernel/core/klog_slot.h +++ b/native/kernel/core/klog_slot.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* klog_slot.h -- where the kernel may write its log on the boot card, and * the checks that keep it from writing anywhere else (Raspberry Pi 5 build). * diff --git a/native/kernel/core/kmain.c b/native/kernel/core/kmain.c index d4a788c9..6b7dbf2b 100644 --- a/native/kernel/core/kmain.c +++ b/native/kernel/core/kmain.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* kmain.c -- C kernel core bring-up after the UEFI stub. * * ck_kernel_entry runs at the firmware EL on the firmware's translation: diff --git a/native/kernel/core/libc_min.c b/native/kernel/core/libc_min.c index 763c21f3..977f4cc2 100644 --- a/native/kernel/core/libc_min.c +++ b/native/kernel/core/libc_min.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* libc_min.c -- the memory and string routines a freestanding C image still * needs (the compiler may emit calls to memcpy/memset/memmove/memcmp, and the * native/ modules linked as stages use them). Plain byte loops: safe on diff --git a/native/kernel/core/lifecycle.c b/native/kernel/core/lifecycle.c index 97269cde..dacb45a8 100644 --- a/native/kernel/core/lifecycle.c +++ b/native/kernel/core/lifecycle.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* lifecycle.c -- resident production lifecycle (native v1 plan P03). * * Linked only into a CK_SERVICE=1 image (Makefile: full-service / diff --git a/native/kernel/core/lifecycle_fsm.c b/native/kernel/core/lifecycle_fsm.c index e362eaa8..889dd724 100644 --- a/native/kernel/core/lifecycle_fsm.c +++ b/native/kernel/core/lifecycle_fsm.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* lifecycle_fsm.c -- see lifecycle_fsm.h. No kernel calls, no libc. */ #include "lifecycle_fsm.h" diff --git a/native/kernel/core/lifecycle_fsm.h b/native/kernel/core/lifecycle_fsm.h index 071ffe43..43523851 100644 --- a/native/kernel/core/lifecycle_fsm.h +++ b/native/kernel/core/lifecycle_fsm.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* lifecycle_fsm.h -- resident production lifecycle: states, verbs, transitions. * * Pure logic (no kernel calls, no libc): the host test tests/test_lifecycle.c diff --git a/native/kernel/core/line_rx.c b/native/kernel/core/line_rx.c index 9b317d24..4b3bc3ef 100644 --- a/native/kernel/core/line_rx.c +++ b/native/kernel/core/line_rx.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* line_rx.c -- operator line assembler (see line_rx.h). Pure logic. */ #include "line_rx.h" diff --git a/native/kernel/core/line_rx.h b/native/kernel/core/line_rx.h index 1a5e69f0..e0f8df70 100644 --- a/native/kernel/core/line_rx.h +++ b/native/kernel/core/line_rx.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* line_rx.h -- the operator line assembler of the service lifecycle: one * bounded state machine fed byte by byte from the POLLED console receive * (core/console.c, core/uart_rx.h). Pure logic (no kernel calls, no libc): diff --git a/native/kernel/core/m3.c b/native/kernel/core/m3.c index 5990e623..cf8b9d45 100644 --- a/native/kernel/core/m3.c +++ b/native/kernel/core/m3.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* m3.c -- M3 isolation checks in the C kernel core (port of the Rust kernel's * thread.rs, user.rs and ipc.rs demos as driven by aienos-boot handoff.rs). * Prints, in the Rust order: diff --git a/native/kernel/core/osc_admit.c b/native/kernel/core/osc_admit.c index ed912892..742bdf5d 100644 --- a/native/kernel/core/osc_admit.c +++ b/native/kernel/core/osc_admit.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_admit.c -- kernel policy and reporting for OSC unit admission. * * Policy (OSC_UNIT_ARTIFACT.md section 8.1), all local to this build: diff --git a/native/kernel/core/osc_admit.h b/native/kernel/core/osc_admit.h index 66e9dc40..931a638a 100644 --- a/native/kernel/core/osc_admit.h +++ b/native/kernel/core/osc_admit.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_admit.h -- kernel-side use of artifact/osc_unit.c: admission verdict * for OSCUNIT containers that arrive through the artifact candidate path * (boot disk Store), and the realization receipts (artifact/osc_receipt.h, diff --git a/native/kernel/core/osc_task.c b/native/kernel/core/osc_task.c index 40f76e2d..4eec7214 100644 --- a/native/kernel/core/osc_task.c +++ b/native/kernel/core/osc_task.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_task.c -- launch an admitted OSC unit as an EL0 task. See osc_task.h and docs/osc-launch.md. * * Address space of the task (all user VAs are base + offset, base = a free L0 slot of the kernel root, so diff --git a/native/kernel/core/osc_task.h b/native/kernel/core/osc_task.h index 70e09b1b..f9d0ad99 100644 --- a/native/kernel/core/osc_task.h +++ b/native/kernel/core/osc_task.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osc_task.h -- launch an admitted OSC unit as an EL0 task (OSC_UNIT_ARTIFACT.md section 9), C3-3a. * Admission (osc_admit.c) never maps anything; this does, for one function call at a time. QEMU only: * nothing here is physical. See docs/osc-launch.md. */ diff --git a/native/kernel/core/osh_op.c b/native/kernel/core/osh_op.c index 9c53dcfc..f178d805 100644 --- a/native/kernel/core/osh_op.c +++ b/native/kernel/core/osh_op.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osh_op.c -- see osh_op.h. The adapter side of OSH on AIENOS: request record in, one capability-checked platform * operation out. No lexing, parsing or expansion happens here. No libc calls (host and kernel builds share it). */ #include "osh_op.h" diff --git a/native/kernel/core/osh_op.h b/native/kernel/core/osh_op.h index e39a8b49..3065fc83 100644 --- a/native/kernel/core/osh_op.h +++ b/native/kernel/core/osh_op.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osh_op.h -- the AIENOS adapter's platform-operation layer for OSH (aien-architecture#158, contract: aien-protocols PR #16 * OSH_PLATFORM_ABI.md sections 7 to 12, DRAFT, ABIs unfrozen). * diff --git a/native/kernel/core/osh_test.c b/native/kernel/core/osh_test.c index 64af2e43..2fe1182c 100644 --- a/native/kernel/core/osh_test.c +++ b/native/kernel/core/osh_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* osh_test.c -- OSH-AIENOS-0 kernel self-test (TEST ONLY, qualification build with CK_OSH_TEST=1). * * Runs the Omega-native shell core (three compiled OSC units: lex_run, parse_run, expand_run) as admitted EL0 tasks diff --git a/native/kernel/core/pi5.c b/native/kernel/core/pi5.c index 72d88211..ab85d74f 100644 --- a/native/kernel/core/pi5.c +++ b/native/kernel/core/pi5.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5.c -- Raspberry Pi 5 board glue (CK_PI5 build only). * * ck_pi5_start arm the PM watchdog (dev/pi5_wdt.c), bring up the diff --git a/native/kernel/core/pi5_marker.c b/native/kernel/core/pi5_marker.c index cdb3bbe6..52914025 100644 --- a/native/kernel/core/pi5_marker.c +++ b/native/kernel/core/pi5_marker.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_marker.c -- see pi5_marker.h. */ #include "pi5_marker.h" #include "../dev/disk_part.h" diff --git a/native/kernel/core/pi5_marker.h b/native/kernel/core/pi5_marker.h index 0c501c7d..3c0222df 100644 --- a/native/kernel/core/pi5_marker.h +++ b/native/kernel/core/pi5_marker.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_marker.h -- the layer below the sealed Store, proved on the Pi 5 card * (AIENOS-PI5 step 3). The Store itself needs production keys, which are * BLOCKED_OPERATOR (svc/store_boot.c), so the Pi image does not open it. What diff --git a/native/kernel/core/reply_obj.h b/native/kernel/core/reply_obj.h index 831664eb..2039272f 100644 --- a/native/kernel/core/reply_obj.h +++ b/native/kernel/core/reply_obj.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* reply_obj.h -- the v1 approved-reply Store object (kind 0x5231 'R1'), shared by the service lifecycle * (core/lifecycle.c, commit_task: QEMU rows 175, 205, 206 of GATES.md) and the Pi agent stage * (svc/pi5_agent.c, PI5-6). One builder, so the two cannot drift. diff --git a/native/kernel/core/report.c b/native/kernel/core/report.c index a10c4e80..9558cce8 100644 --- a/native/kernel/core/report.c +++ b/native/kernel/core/report.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* report.c -- report headers, panic, fault report, PSCI reset. * Report keys follow the Rust handoff (report_version, aienos_commit, * report_kind, last_stage) so the same scripts read both kernels. */ diff --git a/native/kernel/core/sched.c b/native/kernel/core/sched.c index d1026839..fe2b41a2 100644 --- a/native/kernel/core/sched.c +++ b/native/kernel/core/sched.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* sched.c -- see sched.h. Same decisions as scheduler.rs, step for step. */ #include "sched.h" diff --git a/native/kernel/core/sched.h b/native/kernel/core/sched.h index 52baa5ac..fe013ade 100644 --- a/native/kernel/core/sched.h +++ b/native/kernel/core/sched.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* sched.h -- run-queue scheduler, port of crates/aienos-kernel/src/scheduler.rs. * Pure logic (no hardware): per-CPU queues, three priorities, fair ticks * among equal priorities, a background budget under higher-priority load, diff --git a/native/kernel/core/smmu.c b/native/kernel/core/smmu.c index 092086c1..ace1b9aa 100644 --- a/native/kernel/core/smmu.c +++ b/native/kernel/core/smmu.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* smmu.c -- see smmu.h. Port of crates/aienos-kernel/src/smmu.rs. */ #include "smmu.h" diff --git a/native/kernel/core/smmu.h b/native/kernel/core/smmu.h index d297b413..d285c699 100644 --- a/native/kernel/core/smmu.h +++ b/native/kernel/core/smmu.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* smmu.h -- Arm SMMUv3 programming for the AIENOS C kernel, ported from the * Rust reference crates/aienos-kernel/src/smmu.rs (linear stream table, * stage-1 translation only, one linear context descriptor per stream). The diff --git a/native/kernel/core/smmu_svc.c b/native/kernel/core/smmu_svc.c index c7eaf3bd..8f9b1ecc 100644 --- a/native/kernel/core/smmu_svc.c +++ b/native/kernel/core/smmu_svc.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* smmu_svc.c -- the ck.h DMA isolation services (ck_dma_confine and * friends) over core/smmu.c, the IORT parser and the DMA pool. Kernel only * (the host tests drive core/smmu.c directly against a model SMMU). diff --git a/native/kernel/core/smp.c b/native/kernel/core/smp.c index 89e1bca1..ff0351a2 100644 --- a/native/kernel/core/smp.c +++ b/native/kernel/core/smp.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* smp.c -- secondary core bring-up through PSCI CPU_ON (CK gate SMP). * * The boot core reads the MPIDR of every enabled or online-capable core from diff --git a/native/kernel/core/uart_rx.h b/native/kernel/core/uart_rx.h index 54ea1c65..4ddc5dda 100644 --- a/native/kernel/core/uart_rx.h +++ b/native/kernel/core/uart_rx.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* uart_rx.h -- polled console UART receive: register decode for the PL011 * (QEMU virt, SBSA) and the 16550 (the DGX Spark console, SPCR type 0x01 at * 0x16A00000). Shared by core/console.c (the real MMIO base) and the host diff --git a/native/kernel/core/unlock_req.c b/native/kernel/core/unlock_req.c index 1390710b..d7f0bad4 100644 --- a/native/kernel/core/unlock_req.c +++ b/native/kernel/core/unlock_req.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* unlock_req.c -- see unlock_req.h. */ #include "unlock_req.h" diff --git a/native/kernel/core/unlock_req.h b/native/kernel/core/unlock_req.h index 90f04fdd..892b7592 100644 --- a/native/kernel/core/unlock_req.h +++ b/native/kernel/core/unlock_req.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* unlock_req.h -- the card unlock request file of the Pi qualification image * (PI5-4 cut 2, build flag CK_PI5_UNLOCK_CARD, only with CK_PI5_UNLOCK). * diff --git a/native/kernel/dev/.crumb b/native/kernel/dev/.crumb index 722e1a6b..a91c0ebd 100644 --- a/native/kernel/dev/.crumb +++ b/native/kernel/dev/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T23:37:04Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:ebdd66c0966fba664f36dc167836b98d26ffae97f9502b4409e9c22da687b473", + "digest": "sha256:eb3146a026248b54faa150003192fcc43ab2bd9b01d3c0d0c120c2d5bbe2b453", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 43, - "generated_at_commit": "23c8bcd5490dd2ec9ded661ffefd5ecb5533dcec", - "source_tree": "sha256:802face91e606e3063e35e7499217980f488aa11797961decc4c17e21bf4c22f" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:9db341c086c64aa37699da6fd2026b9f6c960a70a01c246b845b1ea240ea3824" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/dev/devices.c b/native/kernel/dev/devices.c index 9a9fdf39..b22b678b 100644 --- a/native/kernel/dev/devices.c +++ b/native/kernel/dev/devices.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* devices.c -- ck_stage_devices: PCI (with the post-exit bus-master sweep), * NVMe, virtio-net, xHCI DMA fence. Freestanding. */ #include "devices.h" diff --git a/native/kernel/dev/devices.h b/native/kernel/dev/devices.h index a2ec7903..2d442128 100644 --- a/native/kernel/dev/devices.h +++ b/native/kernel/dev/devices.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* devices.h -- the devices boot stage (ck_stage_devices) and what it hands * to later stages. */ #ifndef AIENOS_CK_DEVICES_H diff --git a/native/kernel/dev/disk_layout.h b/native/kernel/dev/disk_layout.h index 933933f7..ed1d3389 100644 --- a/native/kernel/dev/disk_layout.h +++ b/native/kernel/dev/disk_layout.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* disk_layout.h -- how the AIENOS C kernel stages share the boot NVMe disk. * * Everything below is INSIDE the AIENOS GPT partition (dev/disk_part.h): unit diff --git a/native/kernel/dev/disk_part.c b/native/kernel/dev/disk_part.c index cf8a2d21..d85e8e4f 100644 --- a/native/kernel/dev/disk_part.c +++ b/native/kernel/dev/disk_part.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* disk_part.c -- read-only GPT parser and the single bounds-checked LBA * translation layer of the AIENOS C kernel (see disk_part.h). Freestanding: * no libc, no heap; all disk reads go through disk_read on the parent. */ diff --git a/native/kernel/dev/disk_part.h b/native/kernel/dev/disk_part.h index 7a4f8176..aa711b63 100644 --- a/native/kernel/dev/disk_part.h +++ b/native/kernel/dev/disk_part.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* disk_part.h -- the AIENOS C kernel's partition-aware disk footprint. * * The kernel never writes a whole NVMe namespace. At bind time it parses the diff --git a/native/kernel/dev/dma_window.c b/native/kernel/dev/dma_window.c index fc5fae2e..05f58550 100644 --- a/native/kernel/dev/dma_window.c +++ b/native/kernel/dev/dma_window.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* dma_window.c -- see dma_window.h and ADR 0020. * software-only DMA confinement (Pi 5, weaker than the Spark). */ #include "dma_window.h" diff --git a/native/kernel/dev/dma_window.h b/native/kernel/dev/dma_window.h index cd8e5100..e0806918 100644 --- a/native/kernel/dev/dma_window.h +++ b/native/kernel/dev/dma_window.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* dma_window.h -- software-only DMA confinement for the Raspberry Pi 5 * (ADR 0020). One bounce window, an overflow-safe validator, and descriptor * ring helpers that only ever emit addresses inside the window. diff --git a/native/kernel/dev/mmio_window.c b/native/kernel/dev/mmio_window.c index bc34e534..922b51c0 100644 --- a/native/kernel/dev/mmio_window.c +++ b/native/kernel/dev/mmio_window.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* mmio_window.c -- see mmio_window.h. Freestanding. */ #include "mmio_window.h" #include "ck.h" diff --git a/native/kernel/dev/mmio_window.h b/native/kernel/dev/mmio_window.h index f638d948..7b8d9baa 100644 --- a/native/kernel/dev/mmio_window.h +++ b/native/kernel/dev/mmio_window.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* mmio_window.h -- AIENOS C kernel: capability-bound, READ-ONLY MMIO window * for one discovered PCI function (aienos#286, cut B3). * diff --git a/native/kernel/dev/net_bind.c b/native/kernel/dev/net_bind.c index c14c415d..c945dde1 100644 --- a/native/kernel/dev/net_bind.c +++ b/native/kernel/dev/net_bind.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* net_bind.c -- virtio-net binding and UDP round trip (see net_bind.h). * Freestanding. */ #include "net_bind.h" diff --git a/native/kernel/dev/net_bind.h b/native/kernel/dev/net_bind.h index 2bb47d07..28d8ff54 100644 --- a/native/kernel/dev/net_bind.h +++ b/native/kernel/dev/net_bind.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* net_bind.h -- bind native/net's polled virtio-net driver * (aienos_virtio_net.c) to the virtio-net PCI function through ck.h services * and run one bounded UDP round trip (QEMU user networking). diff --git a/native/kernel/dev/net_udp.c b/native/kernel/dev/net_udp.c index 8b2cb935..729caf94 100644 --- a/native/kernel/dev/net_udp.c +++ b/native/kernel/dev/net_udp.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* net_udp.c -- UDP round-trip frames (see net_udp.h). Freestanding. */ #include "net_udp.h" #include diff --git a/native/kernel/dev/net_udp.h b/native/kernel/dev/net_udp.h index 5face4c8..99010832 100644 --- a/native/kernel/dev/net_udp.h +++ b/native/kernel/dev/net_udp.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* net_udp.h -- the C kernel's UDP round-trip frames over the M6-A protocol * layer (native/net/aienos_net.h): ARP for the gateway, one UDP datagram * out, one UDP datagram back. Pure functions over caller buffers (no device, diff --git a/native/kernel/dev/nvme_bind.c b/native/kernel/dev/nvme_bind.c index 6ca8ac18..b1ee6843 100644 --- a/native/kernel/dev/nvme_bind.c +++ b/native/kernel/dev/nvme_bind.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* nvme_bind.c -- NVMe binding through ck.h (see nvme_bind.h). Freestanding. */ #include "nvme_bind.h" #include "nvme_shutdown.h" diff --git a/native/kernel/dev/nvme_bind.h b/native/kernel/dev/nvme_bind.h index 16ecf87d..00dc9a07 100644 --- a/native/kernel/dev/nvme_bind.h +++ b/native/kernel/dev/nvme_bind.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* nvme_bind.h -- bind native/disk's freestanding NVMe driver to a PCI * function through ck.h services (MMIO map, barrier, delay, DMA memory). */ #ifndef AIENOS_CK_NVME_BIND_H diff --git a/native/kernel/dev/nvme_shutdown.c b/native/kernel/dev/nvme_shutdown.c index 7a8d04e7..f6dac5d1 100644 --- a/native/kernel/dev/nvme_shutdown.c +++ b/native/kernel/dev/nvme_shutdown.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* nvme_shutdown.c -- see nvme_shutdown.h. NVMe Base 2.0 section 3.6.2 * (normal shutdown): set CC.SHN to 01b, then wait for CSTS.SHST = 10b. * SHN is only written to an enabled, ready, non-fatal controller that has not diff --git a/native/kernel/dev/nvme_shutdown.h b/native/kernel/dev/nvme_shutdown.h index 2d412bc7..b0e375a0 100644 --- a/native/kernel/dev/nvme_shutdown.h +++ b/native/kernel/dev/nvme_shutdown.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* nvme_shutdown.h -- NVMe normal shutdown (CC.SHN = 01b, wait for * CSTS.SHST = 10b) for the C kernel's halt/reboot path. Register access goes * through ops so the sequence is host-testable against a model controller diff --git a/native/kernel/dev/pci.c b/native/kernel/dev/pci.c index 3eba1f85..2c3c13e2 100644 --- a/native/kernel/dev/pci.c +++ b/native/kernel/dev/pci.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pci.c -- PCIe ECAM discovery from ACPI MCFG (see pci.h). Freestanding. */ #include "pci.h" #include "ck.h" diff --git a/native/kernel/dev/pci.h b/native/kernel/dev/pci.h index f7dd9fca..65246d0b 100644 --- a/native/kernel/dev/pci.h +++ b/native/kernel/dev/pci.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pci.h -- AIENOS C kernel stage: PCIe ECAM discovery from ACPI MCFG. * * Freestanding. The only outside services are ck.h ones (ck_printf, diff --git a/native/kernel/dev/pi5_gem.c b/native/kernel/dev/pi5_gem.c index 844fdcb1..4ca5d813 100644 --- a/native/kernel/dev/pi5_gem.c +++ b/native/kernel/dev/pi5_gem.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_gem.c -- see pi5_gem.h. Pi 5 network cut 3: one frame through the RP1 GEM with descriptors only in the * ADR 0020 bounce window. software-only DMA confinement (Pi 5, weaker than the Spark). */ #include "pi5_gem.h" diff --git a/native/kernel/dev/pi5_gem.h b/native/kernel/dev/pi5_gem.h index c997e9fa..9ae4313e 100644 --- a/native/kernel/dev/pi5_gem.h +++ b/native/kernel/dev/pi5_gem.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_gem.h -- Raspberry Pi 5 network lane, cut 3: the RP1 Ethernet MAC (Cadence GEM_GXL) sends and * receives ONE frame through DMA descriptors that live only inside the ADR 0020 bounce window and pass the * dma_window.c validator, plus the PHY link/loopback helpers the proof needs. diff --git a/native/kernel/dev/pi5_net.c b/native/kernel/dev/pi5_net.c index 4ac4a0ac..4f75537b 100644 --- a/native/kernel/dev/pi5_net.c +++ b/native/kernel/dev/pi5_net.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_net.c -- see pi5_net.h. The decision and register-sequence logic is hosted-testable * (tests/test_pi5_net.c); the MMIO glue at the bottom is the CK_PI5_NET image only. */ #include "pi5_net.h" diff --git a/native/kernel/dev/pi5_net.h b/native/kernel/dev/pi5_net.h index 29f14b9e..9fff5ffe 100644 --- a/native/kernel/dev/pi5_net.h +++ b/native/kernel/dev/pi5_net.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_net.h -- Raspberry Pi 5 network lane, cut 2: (A) hardware confinement of the * BCM2712 PCIe2 inbound DMA window to the ADR 0020 bounce region, (B) RP1 Ethernet * bring-up as far as the PHY: RP1 clocks the GEM needs, PHY reset on RP1 GPIO32, diff --git a/native/kernel/dev/pi5_pcie.c b/native/kernel/dev/pi5_pcie.c index d1a29eff..477ace9f 100644 --- a/native/kernel/dev/pi5_pcie.c +++ b/native/kernel/dev/pi5_pcie.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_pcie.c -- see pi5_pcie.h. The decision and parsing logic is hosted-testable * (tests/test_pi5_pcie.c); the MMIO glue at the bottom is the CK_PI5_PCIE image only. */ #include "pi5_pcie.h" diff --git a/native/kernel/dev/pi5_pcie.h b/native/kernel/dev/pi5_pcie.h index f918240b..39c531f1 100644 --- a/native/kernel/dev/pi5_pcie.h +++ b/native/kernel/dev/pi5_pcie.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_pcie.h -- Raspberry Pi 5: how the kernel reaches the BCM2712 PCIe root * complex that hosts the RP1 south bridge, plus a read-only enumerator. * AIENOS-PI5 network lane, GEM-first plan step 1. NO GEM register code here. diff --git a/native/kernel/dev/pi5_rng.c b/native/kernel/dev/pi5_rng.c index dc9177a4..d94f5d7d 100644 --- a/native/kernel/dev/pi5_rng.c +++ b/native/kernel/dev/pi5_rng.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_rng.c -- see pi5_rng.h. The logic is hosted-testable; the MMIO glue at * the bottom is Pi 5 only (CK_PI5). */ #include "pi5_rng.h" diff --git a/native/kernel/dev/pi5_rng.h b/native/kernel/dev/pi5_rng.h index d95b283d..3f1e3e25 100644 --- a/native/kernel/dev/pi5_rng.h +++ b/native/kernel/dev/pi5_rng.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_rng.h -- Raspberry Pi 5 (BCM2712) RNG200 hardware random source, polled. * Plugs into core/entropy.c as a struct ck_rng_ops. No fallback: when the * block does not answer, is locked out, or stays empty, read() returns 0 and diff --git a/native/kernel/dev/pi5_wdt.c b/native/kernel/dev/pi5_wdt.c index 7faba7ae..900210e4 100644 --- a/native/kernel/dev/pi5_wdt.c +++ b/native/kernel/dev/pi5_wdt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_wdt.c -- see pi5_wdt.h. Pi 5 build only. */ #ifndef CK_PI5 #error "pi5_wdt.c is Raspberry Pi 5 only (CK_PI5); never build it for another board" diff --git a/native/kernel/dev/pi5_wdt.h b/native/kernel/dev/pi5_wdt.h index c9f65e2a..74ce8001 100644 --- a/native/kernel/dev/pi5_wdt.h +++ b/native/kernel/dev/pi5_wdt.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_wdt.h -- Raspberry Pi 5 (BCM2712) PM watchdog, Pi 5 build only * (CK_PI5). Armed at kernel start and petted at every boot stage * (ck_set_stage), so a kernel that stops making progress resets the board diff --git a/native/kernel/dev/tests/disk_part_test.c b/native/kernel/dev/tests/disk_part_test.c index 42e9ede9..20002a21 100644 --- a/native/kernel/dev/tests/disk_part_test.c +++ b/native/kernel/dev/tests/disk_part_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* disk_part_test.c -- host tests for the GPT parser and the LBA translation * layer (dev/disk_part.c), hostile inputs included, plus a whole sealed-Store * boot on the AIENOS partition view proving nothing outside the partition diff --git a/native/kernel/dev/tests/pi5_agent_test.c b/native/kernel/dev/tests/pi5_agent_test.c index 587a3b3c..4d7c9973 100644 --- a/native/kernel/dev/tests/pi5_agent_test.c +++ b/native/kernel/dev/tests/pi5_agent_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_agent_test.c -- AIENOS PI5-6 final cut host test: the Pi agent stage (svc/pi5_agent.c, hooked by svc/store_boot.c * ck_store_pi5_agent_stage, compiled with -DCK_PI5_UNLOCK -DCK_PI5_UNLOCK_CARD -DCK_PI5_AGENT exactly as "make pi5-agent" * builds it) over the Pi card layout. A file stands in for the card; every "boot" reopens the file and starts from a cold C diff --git a/native/kernel/dev/tests/pi5_fact_test.c b/native/kernel/dev/tests/pi5_fact_test.c index 5c0f0e73..9179441d 100644 --- a/native/kernel/dev/tests/pi5_fact_test.c +++ b/native/kernel/dev/tests/pi5_fact_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_fact_test.c -- AIENOS PI5-5 host test: the Pi Cortex fact stage (svc/pi5_fact.c, hooked by * svc/store_boot.c ck_store_pi5_fact_stage, compiled with -DCK_PI5_UNLOCK -DCK_PI5_UNLOCK_CARD -DCK_PI5_FACT * exactly as "make pi5-fact" builds it) over the Pi card layout. A file stands in for the card; every "boot" diff --git a/native/kernel/dev/tests/pi5_store_test.c b/native/kernel/dev/tests/pi5_store_test.c index 99784aa1..a35ebf51 100644 --- a/native/kernel/dev/tests/pi5_store_test.c +++ b/native/kernel/dev/tests/pi5_store_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_store_test.c -- AIENOS-PI5 step 3b host test: the sealed Store stage * (svc/store_boot.c, the same one the QEMU full image runs) over the Pi 5 * card layout (protective MBR, ESP, AIENOS partition, two-copy GPT), in the diff --git a/native/kernel/dev/tests/pi5_unlock_test.c b/native/kernel/dev/tests/pi5_unlock_test.c index 939fbba2..7538bc0b 100644 --- a/native/kernel/dev/tests/pi5_unlock_test.c +++ b/native/kernel/dev/tests/pi5_unlock_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_unlock_test.c -- AIENOS PI5-4 cut 1 host test: the Pi unlock image's Store policy * (svc/store_boot.c ck_store_pi5_unlock_run, compiled with -DCK_PI5_UNLOCK exactly as * "make pi5-unlock" builds it) over the Pi card layout. A file stands in for the card. diff --git a/native/kernel/dev/usb_hid.c b/native/kernel/dev/usb_hid.c index ca08ca7a..4ee2b340 100644 --- a/native/kernel/dev/usb_hid.c +++ b/native/kernel/dev/usb_hid.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* usb_hid.c -- operator input pure logic (see usb_hid.h). Freestanding. */ #include "usb_hid.h" #include "sha256.h" diff --git a/native/kernel/dev/usb_hid.h b/native/kernel/dev/usb_hid.h index 90b267f3..365e2888 100644 --- a/native/kernel/dev/usb_hid.h +++ b/native/kernel/dev/usb_hid.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* usb_hid.h -- pure logic of the C kernel operator input (no MMIO, host * tested in svc/tests/stage_test.c): USB HID boot-keyboard report decode to a * small fixed keymap, the configuration-descriptor walk that finds a boot diff --git a/native/kernel/dev/usb_kbd.c b/native/kernel/dev/usb_kbd.c index 739bcccd..84e03402 100644 --- a/native/kernel/dev/usb_kbd.c +++ b/native/kernel/dev/usb_kbd.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* usb_kbd.c -- polled xHCI boot-keyboard driver, operator line input, * console shell and recovery-access hook (see usb_kbd.h). Freestanding. * Register and structure layouts: xHCI 1.2 (sections 5.3-5.6 registers, diff --git a/native/kernel/dev/usb_kbd.h b/native/kernel/dev/usb_kbd.h index ac88deae..b08ec1f6 100644 --- a/native/kernel/dev/usb_kbd.h +++ b/native/kernel/dev/usb_kbd.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* usb_kbd.h -- operator keyboard for the AIENOS C kernel: a polled xHCI * driver for one USB HID boot keyboard, the operator line input, the console * shell of the Rust SEED-0A keyboard gate, and the recovery-access hook. diff --git a/native/kernel/dev/virtio_net.c b/native/kernel/dev/virtio_net.c index f3d9ac60..0a8d46f7 100644 --- a/native/kernel/dev/virtio_net.c +++ b/native/kernel/dev/virtio_net.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* virtio_net.c -- virtio-net discovery (see virtio_net.h). Freestanding. */ #include "virtio_net.h" #include "ck.h" diff --git a/native/kernel/dev/virtio_net.h b/native/kernel/dev/virtio_net.h index 6f8b980d..a134cc3f 100644 --- a/native/kernel/dev/virtio_net.h +++ b/native/kernel/dev/virtio_net.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* virtio_net.h -- virtio-net discovery stage: finds the virtio-net PCI * function and parses its virtio 1.x capabilities (native/net * aienos_virtio_pci.c). Binding and the data path are dev/net_bind.c. */ diff --git a/native/kernel/dev/xhci_acpi_fmt.h b/native/kernel/dev/xhci_acpi_fmt.h index 72c1c3e2..5fdec386 100644 --- a/native/kernel/dev/xhci_acpi_fmt.h +++ b/native/kernel/dev/xhci_acpi_fmt.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* xhci_acpi_fmt.h -- console lines of the platform xHCI discovery (ACPI * DSDT/SSDT + IORT), shared by dev/xhci_fence.c (the kernel) and * tools/ck_acpi_scan.c (the host tool that runs the same scan over firmware diff --git a/native/kernel/dev/xhci_fence.c b/native/kernel/dev/xhci_fence.c index 5b08b4b6..76a0e4a7 100644 --- a/native/kernel/dev/xhci_fence.c +++ b/native/kernel/dev/xhci_fence.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* xhci_fence.c -- xHCI DMA fence (see xhci_fence.h). Freestanding. */ #include "xhci_fence.h" #include "ck.h" diff --git a/native/kernel/dev/xhci_fence.h b/native/kernel/dev/xhci_fence.h index adfbae7a..d1587536 100644 --- a/native/kernel/dev/xhci_fence.h +++ b/native/kernel/dev/xhci_fence.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* xhci_fence.h -- DMA fence for the xHCI (USB) controller: the DMA-safety * half of the SEED-0A keyboard gate (GATES.md "SEED-0A keyboard", rows 25-28, * 31, 32). Behaviour follows crates/aienos-boot/src/usb_keyboard.rs (run, diff --git a/native/kernel/include/.crumb b/native/kernel/include/.crumb index 5552b219..1fa573b0 100644 --- a/native/kernel/include/.crumb +++ b/native/kernel/include/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-13T21:27:22Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:8198bb9a0fbd634281a251b012eca8874c97e469a45eec8b5a6bf06a7e828f9a", + "digest": "sha256:54cee35b405dc1c90f62d4d227ed172142abfd4917e720708ba0b83b94b9376e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "03de8681ae58720bd01a45ccb5311c792f1d517b", - "source_tree": "sha256:0a4c28ea11fe90d281fb0e4bf8a3239b9689e2b33fafcbc83fe23e3e89d7c168" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:617c9046d32df918fef874dfcd16daec79dca077cab24a33b445caef36fcf927" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/include/ck.h b/native/kernel/include/ck.h index 72e46c43..fca4fd6b 100644 --- a/native/kernel/include/ck.h +++ b/native/kernel/include/ck.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck.h -- AIENOS C kernel core: the services the core gives to device, * Store and security code. Freestanding; no libc. * diff --git a/native/kernel/mm/.crumb b/native/kernel/mm/.crumb index 4b7603a9..2467980a 100644 --- a/native/kernel/mm/.crumb +++ b/native/kernel/mm/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-08T19:22:53Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:8252fab960e4a3bb686f2e864b0d9a0571f43381d5006de2ff6c134c132ef092", + "digest": "sha256:c7dc6acbe30f21ef0d3983d31b212f89ff23ae6e56862a2718d98fd28c76649a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 7, - "generated_at_commit": "6c9c2799bd7e4a2a3f9b4185ae55c15942ed5fdb", - "source_tree": "sha256:e3954d4a28bd18509793abc2e76ab42f73855e9d4c4421a5fddb3c5293eb3683" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:987377846f6cb729afee51702110b386a4d09524bd3ff4a617d36e706650dece" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/mm/frames.c b/native/kernel/mm/frames.c index c77f1c0f..37758a62 100644 --- a/native/kernel/mm/frames.c +++ b/native/kernel/mm/frames.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* frames.c -- see frames.h. */ #include "frames.h" diff --git a/native/kernel/mm/frames.h b/native/kernel/mm/frames.h index efc98542..e320d374 100644 --- a/native/kernel/mm/frames.h +++ b/native/kernel/mm/frames.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* frames.h -- physical frame allocator over a sorted list of free ranges. * Built from the final UEFI memory map: only EfiConventionalMemory is free; * everything else (loader image and data, boot/runtime services, ACPI, MMIO, diff --git a/native/kernel/mm/heap.c b/native/kernel/mm/heap.c index ac7777e3..b0f40a9d 100644 --- a/native/kernel/mm/heap.c +++ b/native/kernel/mm/heap.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* heap.c -- see heap.h. */ #include "heap.h" diff --git a/native/kernel/mm/heap.h b/native/kernel/mm/heap.h index d04b4170..0428609e 100644 --- a/native/kernel/mm/heap.h +++ b/native/kernel/mm/heap.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* heap.h -- first-fit kernel heap over one contiguous region. Blocks carry a * 16-byte header (size, magic); payloads are 16-byte aligned and zeroed on * allocation; free coalesces with free neighbours. Pure, host testable. */ diff --git a/native/kernel/mm/mmu.c b/native/kernel/mm/mmu.c index 9d497bd5..7b1cb72b 100644 --- a/native/kernel/mm/mmu.c +++ b/native/kernel/mm/mmu.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* mmu.c -- the kernel's own address space. Built while the firmware's * translation is still live (identity), switched on at EL1 by ck_enter_el1. * diff --git a/native/kernel/mm/pt.c b/native/kernel/mm/pt.c index 29caa029..32a16319 100644 --- a/native/kernel/mm/pt.c +++ b/native/kernel/mm/pt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pt.c -- see pt.h. Descriptors: table/page = 0b11, block = 0b01. */ #include "pt.h" diff --git a/native/kernel/mm/pt.h b/native/kernel/mm/pt.h index e69631a9..0c67939c 100644 --- a/native/kernel/mm/pt.h +++ b/native/kernel/mm/pt.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pt.h -- AArch64 stage-1 translation tables, 4 KiB granule, 48-bit VA * (T0SZ = 16, walk starts at level 0). Identity use only in the kernel, but * the builder takes any va/pa. Table memory comes from a callback and is diff --git a/native/kernel/svc/.crumb b/native/kernel/svc/.crumb index dd0aab6a..67d2a977 100644 --- a/native/kernel/svc/.crumb +++ b/native/kernel/svc/.crumb @@ -17,27 +17,27 @@ "generated": { "children": [ { - "digest": "17d9c9eba5fe222af0e8700ac3baa3461eb217a372f16a5e79e00a19cc5df6f5", - "last_commit": "31ed9f8", + "digest": "d6868c343497f05846433dd6f9e76a5beb0f51a3a38e70fb9ad2c6518d5c9514", + "last_commit": "621c9e6f", "name": "compat", "purpose": "Directory native/kernel/svc/compat. Purpose not yet described by a human." }, { - "digest": "44ea8525d341bcebcb307fb1743de084b124745bd7c46d85761e554183ee02cc", - "last_commit": "22eb360", + "digest": "91a6ae336a5df4ce944ec31edfeb2b674f1c071e587d5a60dc9bf1b1a0a80623", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/kernel/svc/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:d835471b1405ca482a41beb34ed339d21e11064a59138599ee5754d198926878", - "compiled_at": "2026-10-13T23:07:22Z", + "children_root": "sha256:c71c48b54abadc66e4a5a90dee52a42e3470ed78cfe5315b5f17374a713eb0a6", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:2a98333d826d94a7131119aaeb5a15d8bc543baa5531fa930e6f0afc1fccb83d", + "digest": "sha256:7d1c2af30b802a41a46b1b70250cdaa855ba8c579ce5c870de452980e161cbfb", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 48, - "generated_at_commit": "53de55c5dd3485948cd34734caf0f646e28a68c4", - "source_tree": "sha256:8ea0c11b9dedede3565f8e3d47b8192651e0790f8e3df92b172ce4a8dc936af1" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:9e7685744e849cda5cf6517e7b89db3fb2d6bf1b05081a8f13459c78aba44c29" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/svc/artifact_store.c b/native/kernel/svc/artifact_store.c index 65c70094..b9b21126 100644 --- a/native/kernel/svc/artifact_store.c +++ b/native/kernel/svc/artifact_store.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* artifact_store.c -- see artifact_store.h. */ #include "artifact_store.h" #include diff --git a/native/kernel/svc/artifact_store.h b/native/kernel/svc/artifact_store.h index a1effe17..21419592 100644 --- a/native/kernel/svc/artifact_store.h +++ b/native/kernel/svc/artifact_store.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* artifact_store.h -- signed P2 artifacts on the boot disk, kept as ordinary * application objects inside the sealed C Store (store_sealed.h). No second * disk format: an artifact is one or more Store objects of kind diff --git a/native/kernel/svc/ck_compat.c b/native/kernel/svc/ck_compat.c index daefff32..cf858c4e 100644 --- a/native/kernel/svc/ck_compat.c +++ b/native/kernel/svc/ck_compat.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_compat.c -- kernel-build implementations behind the svc/compat headers and the * four memory routines GCC may emit calls to. Freestanding; ck.h only. * Not linked into the host tests (they use libc). */ diff --git a/native/kernel/svc/ck_compat.h b/native/kernel/svc/ck_compat.h index de30b724..f7bd0d9d 100644 --- a/native/kernel/svc/ck_compat.h +++ b/native/kernel/svc/ck_compat.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_compat.h -- what the kernel-build compat layer reports back. */ #ifndef AIENOS_CK_COMPAT_H #define AIENOS_CK_COMPAT_H diff --git a/native/kernel/svc/compat/.crumb b/native/kernel/svc/compat/.crumb index dd79a25d..5d816ca1 100644 --- a/native/kernel/svc/compat/.crumb +++ b/native/kernel/svc/compat/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:17d9c9eba5fe222af0e8700ac3baa3461eb217a372f16a5e79e00a19cc5df6f5", + "digest": "sha256:d6868c343497f05846433dd6f9e76a5beb0f51a3a38e70fb9ad2c6518d5c9514", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 6, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:280325388d9286e9e0406ec34db18ff1f3c77447cdad0c5b3050d46f8639382c" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:783d59186f8399ec682937fb2c0ae972bd3ec5ec4a530937d34f217a1f8a9ff4" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/svc/compat/pthread.h b/native/kernel/svc/compat/pthread.h index d3dce3f7..fa511a8c 100644 --- a/native/kernel/svc/compat/pthread.h +++ b/native/kernel/svc/compat/pthread.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Kernel-build stand-in, see README. Single core, no preemption of stage code. */ #ifndef CK_COMPAT_PTHREAD_H #define CK_COMPAT_PTHREAD_H diff --git a/native/kernel/svc/compat/stdio.h b/native/kernel/svc/compat/stdio.h index 4bd006bc..b925e150 100644 --- a/native/kernel/svc/compat/stdio.h +++ b/native/kernel/svc/compat/stdio.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Kernel-build stand-in, see README. Only "/dev/urandom" opens. */ #ifndef CK_COMPAT_STDIO_H #define CK_COMPAT_STDIO_H diff --git a/native/kernel/svc/compat/stdlib.h b/native/kernel/svc/compat/stdlib.h index 000c6dbe..fe695c26 100644 --- a/native/kernel/svc/compat/stdlib.h +++ b/native/kernel/svc/compat/stdlib.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Kernel-build stand-in, see README. */ #ifndef CK_COMPAT_STDLIB_H #define CK_COMPAT_STDLIB_H diff --git a/native/kernel/svc/compat/string.h b/native/kernel/svc/compat/string.h index bfdf0f3e..7dd4627b 100644 --- a/native/kernel/svc/compat/string.h +++ b/native/kernel/svc/compat/string.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Kernel-build stand-in, see README. Declares only the four memory routines * the stage sources use; they are defined (weak) in ../ck_compat.c. Keeps * the freestanding build off the host libc headers (no _FORTIFY_SOURCE diff --git a/native/kernel/svc/compat/time.h b/native/kernel/svc/compat/time.h index 216dbd9b..538783f5 100644 --- a/native/kernel/svc/compat/time.h +++ b/native/kernel/svc/compat/time.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Kernel-build stand-in, see README. Every clock is ck_time_us. */ #ifndef CK_COMPAT_TIME_H #define CK_COMPAT_TIME_H diff --git a/native/kernel/svc/continuity_boot.c b/native/kernel/svc/continuity_boot.c index c2ed227c..bb983dde 100644 --- a/native/kernel/svc/continuity_boot.c +++ b/native/kernel/svc/continuity_boot.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_boot.c -- see continuity_boot.h. TEST-ONLY; empty unless * CK_TEST_CONTINUITY=1 (make full CK_TEST_CONTINUITY=1). * diff --git a/native/kernel/svc/continuity_boot.h b/native/kernel/svc/continuity_boot.h index c62b14ba..1b031b4e 100644 --- a/native/kernel/svc/continuity_boot.h +++ b/native/kernel/svc/continuity_boot.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_boot.h -- K-7 TEST-ONLY mode selection and the kernel wiring of the * continuity (cut 3-4) and Recovery Core (cut 5) code into the Store stage. * diff --git a/native/kernel/svc/continuity_codec.c b/native/kernel/svc/continuity_codec.c index 6e1077da..2609908e 100644 --- a/native/kernel/svc/continuity_codec.c +++ b/native/kernel/svc/continuity_codec.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_codec.c -- see continuity_codec.h. Oracle: continuity.rs = * crates/aienos-kernel/src/continuity.rs at aienos 4a116e5. Contract: * native/kernel/CONTINUITY_RECOVERY_CONTRACT.md (aienos#222) sections 1-2. diff --git a/native/kernel/svc/continuity_codec.h b/native/kernel/svc/continuity_codec.h index 9a1b7d4c..d63c20ea 100644 --- a/native/kernel/svc/continuity_codec.h +++ b/native/kernel/svc/continuity_codec.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_codec.h -- C port, cut 1: canonical encodings of the four M4 * continuity objects (AgentRoot, ContinuityManifest, AgentState branch table, * CortexWalSegment), the branch-id derivations and the logical ObjectId. diff --git a/native/kernel/svc/continuity_commit.c b/native/kernel/svc/continuity_commit.c index 4cdce210..a966ec68 100644 --- a/native/kernel/svc/continuity_commit.c +++ b/native/kernel/svc/continuity_commit.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_commit.c -- see continuity_commit.h. */ #include diff --git a/native/kernel/svc/continuity_commit.h b/native/kernel/svc/continuity_commit.h index 5082e67a..b9a5f4a8 100644 --- a/native/kernel/svc/continuity_commit.h +++ b/native/kernel/svc/continuity_commit.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_commit.h -- C port, cut 4: provision, commit and resume of the * continuity objects over the sealed Store (contract section 1.3-1.5, INV-4, * INV-8..INV-11, K-1, K-2, P-1, P-2). diff --git a/native/kernel/svc/continuity_recovery.c b/native/kernel/svc/continuity_recovery.c index 146dd8b2..793a1c5e 100644 --- a/native/kernel/svc/continuity_recovery.c +++ b/native/kernel/svc/continuity_recovery.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_recovery.c -- see continuity_recovery.h. */ #include #include diff --git a/native/kernel/svc/continuity_recovery.h b/native/kernel/svc/continuity_recovery.h index 7aa3bf67..ad98215f 100644 --- a/native/kernel/svc/continuity_recovery.h +++ b/native/kernel/svc/continuity_recovery.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_recovery.h -- C port, cut 5: the Recovery Core over the sealed * Store: read-only inspection, entry reasons, the one action each state admits, * and the operator-authorised actions (contract section 4, INV-13..INV-18, diff --git a/native/kernel/svc/continuity_resolve.c b/native/kernel/svc/continuity_resolve.c index 11e89af0..b3844eb2 100644 --- a/native/kernel/svc/continuity_resolve.c +++ b/native/kernel/svc/continuity_resolve.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_resolve.c -- see continuity_resolve.h. Resolve only; no write. */ #include diff --git a/native/kernel/svc/continuity_resolve.h b/native/kernel/svc/continuity_resolve.h index 063930d2..be946ee0 100644 --- a/native/kernel/svc/continuity_resolve.h +++ b/native/kernel/svc/continuity_resolve.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_resolve.h -- C port, cut 3: boot resolution of the continuity * objects (INV-4..INV-7, contract section 3), the Recovery Core challenge and * the operator response (INV-15/16 inputs, contract 1.7 and 5.2). diff --git a/native/kernel/svc/continuity_resolve_sealed.c b/native/kernel/svc/continuity_resolve_sealed.c index a0cc4c40..a9d7e157 100644 --- a/native/kernel/svc/continuity_resolve_sealed.c +++ b/native/kernel/svc/continuity_resolve_sealed.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_resolve_sealed.c -- see continuity_resolve_sealed.h. */ #include diff --git a/native/kernel/svc/continuity_resolve_sealed.h b/native/kernel/svc/continuity_resolve_sealed.h index 0b39f8b6..58926657 100644 --- a/native/kernel/svc/continuity_resolve_sealed.h +++ b/native/kernel/svc/continuity_resolve_sealed.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_resolve_sealed.h -- binds cr_source (continuity_resolve.h) to the * real sealed Store (native/store/store_sealed.h). Reads only. */ #ifndef CK_CONTINUITY_RESOLVE_SEALED_H diff --git a/native/kernel/svc/continuity_service.c b/native/kernel/svc/continuity_service.c index 4a85eb8d..3b11a38e 100644 --- a/native/kernel/svc/continuity_service.c +++ b/native/kernel/svc/continuity_service.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_service.c -- production continuity on the resident lifecycle * (native v1 plan P05, cut 1). Contract and limits: continuity_service.h. */ #include "continuity_service.h" diff --git a/native/kernel/svc/continuity_service.h b/native/kernel/svc/continuity_service.h index 42da7803..aaabda0c 100644 --- a/native/kernel/svc/continuity_service.h +++ b/native/kernel/svc/continuity_service.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_service.h -- production continuity on the resident lifecycle * (native v1 plan P05, cut 1; aienos#35, #31). * diff --git a/native/kernel/svc/continuity_subject.c b/native/kernel/svc/continuity_subject.c index 7d850178..2277230e 100644 --- a/native/kernel/svc/continuity_subject.c +++ b/native/kernel/svc/continuity_subject.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_subject.c -- ALLEN subject state (kind 24): codec, editing, * resolve and commit. See continuity_subject.h for the format and rules. */ #include "continuity_subject.h" diff --git a/native/kernel/svc/continuity_subject.h b/native/kernel/svc/continuity_subject.h index ef22151a..753bf64a 100644 --- a/native/kernel/svc/continuity_subject.h +++ b/native/kernel/svc/continuity_subject.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_subject.h -- ALLEN subject state: continuity object kind 24. * * ARCH-0035 (PROPOSED) / OS-0018 (PROPOSED). ALLEN is the durable subject the diff --git a/native/kernel/svc/continuity_subject_provision.c b/native/kernel/svc/continuity_subject_provision.c index e5471905..374929bf 100644 --- a/native/kernel/svc/continuity_subject_provision.c +++ b/native/kernel/svc/continuity_subject_provision.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_subject_provision.c -- see continuity_subject_provision.h. */ #include "continuity_subject_provision.h" diff --git a/native/kernel/svc/continuity_subject_provision.h b/native/kernel/svc/continuity_subject_provision.h index e16a6288..5e0e37df 100644 --- a/native/kernel/svc/continuity_subject_provision.h +++ b/native/kernel/svc/continuity_subject_provision.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* continuity_subject_provision.h -- ALLEN genesis at identity provisioning. * * ARCH-0035 (PROPOSED) / OS-0018 (PROPOSED). A single-subject installation diff --git a/native/kernel/svc/cortex_config.h b/native/kernel/svc/cortex_config.h index 18b98760..155a8aed 100644 --- a/native/kernel/svc/cortex_config.h +++ b/native/kernel/svc/cortex_config.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* cortex_config.h -- CX_CONFIG_H for the vendored Omega Cortex store * (third_party/omega/rx_cortex.c) inside AIENOS. The kernel has no general * heap: the store's allocations come from one bounded region handed over diff --git a/native/kernel/svc/cortex_journal.c b/native/kernel/svc/cortex_journal.c index 533836ca..26469b7e 100644 --- a/native/kernel/svc/cortex_journal.c +++ b/native/kernel/svc/cortex_journal.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* cortex_journal.c -- CxJournalOps over the sealed Store, and the bounded * Cortex heap. See cortex_journal.h. No I/O except through ss_read / * ss_transact; no libc beyond the four memory routines. */ diff --git a/native/kernel/svc/cortex_journal.h b/native/kernel/svc/cortex_journal.h index 0e84aab3..2636e98e 100644 --- a/native/kernel/svc/cortex_journal.h +++ b/native/kernel/svc/cortex_journal.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* cortex_journal.h -- the Omega Cortex journal over the AIENOS sealed Store * (native v1 plan P06: "an AIENOS persistence adapter for canonical Omega * CxStore"; CURRENT_EXECUTION_PLAN addendum conflict 3: the native diff --git a/native/kernel/svc/cortex_store.c b/native/kernel/svc/cortex_store.c index 5710df59..10c762eb 100644 --- a/native/kernel/svc/cortex_store.c +++ b/native/kernel/svc/cortex_store.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* cortex_store.c -- the canonical Omega Cortex store (CxStore) built * freestanding inside AIENOS: no POSIX journal, no libc allocation. The * source is vendored byte for byte from the omega.lock commit diff --git a/native/kernel/svc/pi5_agent.c b/native/kernel/svc/pi5_agent.c index 17196b6f..f1aa4e99 100644 --- a/native/kernel/svc/pi5_agent.c +++ b/native/kernel/svc/pi5_agent.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_agent.c -- see pi5_agent.h. */ #include "pi5_agent.h" #include diff --git a/native/kernel/svc/pi5_agent.h b/native/kernel/svc/pi5_agent.h index 795e8d33..581f43ea 100644 --- a/native/kernel/svc/pi5_agent.h +++ b/native/kernel/svc/pi5_agent.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_agent.h -- the Pi 5 agent stage (PI5-6 final cut, CK_PI5_AGENT, QUALIFICATION ONLY while the recovery * secret comes from the card request file). * diff --git a/native/kernel/svc/pi5_fact.c b/native/kernel/svc/pi5_fact.c index 8fad086a..69f6cc51 100644 --- a/native/kernel/svc/pi5_fact.c +++ b/native/kernel/svc/pi5_fact.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_fact.c -- see pi5_fact.h. */ #include "pi5_fact.h" #include diff --git a/native/kernel/svc/pi5_fact.h b/native/kernel/svc/pi5_fact.h index 5650088d..62eb5571 100644 --- a/native/kernel/svc/pi5_fact.h +++ b/native/kernel/svc/pi5_fact.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_fact.h -- the Pi 5 Cortex fact stage (PI5-5, CK_PI5_FACT, QUALIFICATION ONLY). * * After the Store stage opened the sealed Store through the Slot 1 recovery path, this stage does what diff --git a/native/kernel/svc/security.c b/native/kernel/svc/security.c index 6592ee0a..6db722b3 100644 --- a/native/kernel/svc/security.c +++ b/native/kernel/svc/security.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* security.c -- capability authority + ARGUS boot stage (see security.h). * Uses native/capability and native/argus through their public headers, * unmodified. Memory comes from ck_alloc. */ diff --git a/native/kernel/svc/security.h b/native/kernel/svc/security.h index cf686c86..8a4d1d2c 100644 --- a/native/kernel/svc/security.h +++ b/native/kernel/svc/security.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* security.h -- the security boot stage: the native capability authority * (AEGIS, native/capability) and ARGUS (native/argus) with its ARGUS-1 * containment bridge and gate, brought up the way the e2e bridge test does, diff --git a/native/kernel/svc/slot_service.c b/native/kernel/svc/slot_service.c index cd6916c3..934d8e85 100644 --- a/native/kernel/svc/slot_service.c +++ b/native/kernel/svc/slot_service.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_service.c -- kernel-side promotion and abandon of AIENOS image slots * (P11 cut 2b). Contract in slot_service.h. Freestanding. */ #include "ck.h" diff --git a/native/kernel/svc/slot_service.h b/native/kernel/svc/slot_service.h index d93dd1e6..5c0b28d2 100644 --- a/native/kernel/svc/slot_service.h +++ b/native/kernel/svc/slot_service.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_service.h -- the kernel side of the AIENOS image slots (native v1 * plan P11 cut 2b, gate N7; docs/NATIVE_IMAGE_SLOTS.md "Kernel promotion"). * diff --git a/native/kernel/svc/slot_service_pi5.c b/native/kernel/svc/slot_service_pi5.c index 9cfb8191..33e921a4 100644 --- a/native/kernel/svc/slot_service_pi5.c +++ b/native/kernel/svc/slot_service_pi5.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* slot_service_pi5.c -- the slot service of the Pi resident-lifecycle qualification image (CK_PI5_LIFECYCLE). * The Pi card has no SLOTLDR.EFI image slots (P11 is the NVMe/GB10 layout), so there is nothing to promote, * abandon or update: the lifecycle's four slot hooks (svc/slot_service.h) are present and say so. The real diff --git a/native/kernel/svc/store_boot.c b/native/kernel/svc/store_boot.c index f0517c65..81e3fa81 100644 --- a/native/kernel/svc/store_boot.c +++ b/native/kernel/svc/store_boot.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* store_boot.c -- see store_boot.h. */ #include "store_boot.h" #include "artifact_store.h" diff --git a/native/kernel/svc/store_boot.h b/native/kernel/svc/store_boot.h index 5f7c5e0c..c360c70e 100644 --- a/native/kernel/svc/store_boot.h +++ b/native/kernel/svc/store_boot.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* store_boot.h -- the Store boot stage: mount the sealed C Store * (native/store store_sealed, M5 keyed, torn_slot anchor) on the boot disk, * read the boot record, bump boot_count, commit, flush. diff --git a/native/kernel/svc/store_crash.c b/native/kernel/svc/store_crash.c index 7c3d3068..dc311b95 100644 --- a/native/kernel/svc/store_crash.c +++ b/native/kernel/svc/store_crash.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* store_crash.c -- see store_crash.h. TEST-ONLY; empty unless * CK_TEST_STORE_CRASH=1 (make full CK_TEST_STORE_CRASH=1). */ #include "store_crash.h" diff --git a/native/kernel/svc/store_crash.h b/native/kernel/svc/store_crash.h index 556d953e..a3af3530 100644 --- a/native/kernel/svc/store_crash.h +++ b/native/kernel/svc/store_crash.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* store_crash.h -- TEST-ONLY Store crash hook for the C kernel QEMU gate * M4_STORE_CRASH (scripts/qemu_ck_store_crash_test.sh). * diff --git a/native/kernel/svc/tests/.crumb b/native/kernel/svc/tests/.crumb index e18924b2..3160d3f7 100644 --- a/native/kernel/svc/tests/.crumb +++ b/native/kernel/svc/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-12T10:28:17Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:44ea8525d341bcebcb307fb1743de084b124745bd7c46d85761e554183ee02cc", + "digest": "sha256:91a6ae336a5df4ce944ec31edfeb2b674f1c071e587d5a60dc9bf1b1a0a80623", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 3, - "generated_at_commit": "56d125f12abf2b8ba2886d6da4d86fda8dd244b3", - "source_tree": "sha256:0dd845f9e709078f6366a7917056263c5148eb84f38aa92c70490f0246099f57" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:8941cfc898fa7450cd0596ba15e179d251303717ed1a95381d420113d590f05d" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/svc/tests/ck_host.c b/native/kernel/svc/tests/ck_host.c index 801e237f..2c0e73c4 100644 --- a/native/kernel/svc/tests/ck_host.c +++ b/native/kernel/svc/tests/ck_host.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_host.c -- host implementation of the ck.h services for the stage host * tests (malloc + stdio). Hosted test code only; never in the image. * Identity "mapping": ck_mmio_map returns the address it is given, so a diff --git a/native/kernel/svc/tests/ck_host.h b/native/kernel/svc/tests/ck_host.h index e2a52d67..96ff9c33 100644 --- a/native/kernel/svc/tests/ck_host.h +++ b/native/kernel/svc/tests/ck_host.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_host.h -- knobs of the host ck.h shim (tests only). */ #ifndef AIENOS_CK_HOST_H #define AIENOS_CK_HOST_H diff --git a/native/kernel/svc/tests/stage_test.c b/native/kernel/svc/tests/stage_test.c index bee78a22..3b4c3cd0 100644 --- a/native/kernel/svc/tests/stage_test.c +++ b/native/kernel/svc/tests/stage_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* stage_test.c -- host tests for the Lane 18 boot stages (devices, * security, Store). Hosted test code: libc, pthreads, disk_file. Host * results qualify nothing physical; they check the logic only. */ diff --git a/native/kernel/tests/.crumb b/native/kernel/tests/.crumb index fbe93953..0d23235a 100644 --- a/native/kernel/tests/.crumb +++ b/native/kernel/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-17T01:49:45Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:0f3d28a645346382567a7a279a3e02a095c8e7f298967db175944c0a58ca9c5d", + "digest": "sha256:8d2fb81be11b693b4924e441d5365371d48d868c78e38ab2d146d68739aade36", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 189, - "generated_at_commit": "30379678add587e388db4e11713d6bca8d159b08", - "source_tree": "sha256:78682dfae8385bcec29c757bca316fadddcefbfc3c85a3f021a1aa8b948c623a" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:1c99cda57070a8ecb4eca2fdc56eb058930f6258152a79d42100d0bc1cf96e64" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/tests/ck_test.h b/native/kernel/tests/ck_test.h index 11a62df1..aa42f83d 100644 --- a/native/kernel/tests/ck_test.h +++ b/native/kernel/tests/ck_test.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_test.h -- tiny host test harness for the C kernel core. Each test * binary ends with ": PASS" or ": FAIL ( failed)". */ #ifndef CK_TEST_H diff --git a/native/kernel/tests/test_acpi.c b/native/kernel/tests/test_acpi.c index d2b0cbcd..ee889dfa 100644 --- a/native/kernel/tests/test_acpi.c +++ b/native/kernel/tests/test_acpi.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_acpi.c -- RSDP/XSDT walk, checksum and length checks, MADT, SPCR and * FADT parsing on crafted tables shaped like QEMU virt's. */ #include diff --git a/native/kernel/tests/test_acpi_dev.c b/native/kernel/tests/test_acpi_dev.c index eea0f5fb..4edc07b8 100644 --- a/native/kernel/tests/test_acpi_dev.c +++ b/native/kernel/tests/test_acpi_dev.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_acpi_dev.c -- core/acpi_dev.c (static DSDT/SSDT device scan) and the * IORT named-component lookup in core/acpi.c, on synthetic tables built * here in the encodings the real firmware uses: diff --git a/native/kernel/tests/test_agent_cmd.c b/native/kernel/tests/test_agent_cmd.c index edfe28be..e153e7de 100644 --- a/native/kernel/tests/test_agent_cmd.c +++ b/native/kernel/tests/test_agent_cmd.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_agent_cmd.c -- core/agent_cmd.c: the card command script of the Pi resident-lifecycle qualification * image (CK_PI5_LIFECYCLE). A script is a labelled text file of a few lifecycle verbs; the parser is strict * (header, bytes, line count, verb whitelist, text bounds) and can never let a secret-carrying or diff --git a/native/kernel/tests/test_artifact.c b/native/kernel/tests/test_artifact.c index 883fe365..8e8b1f1a 100644 --- a/native/kernel/tests/test_artifact.c +++ b/native/kernel/tests/test_artifact.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_artifact.c -- host test of the C artifact library (format, TEST-key * verification, admission policy, receipts) that the kernel loader uses. * The pack/sign helpers come from the in-tree tool (its main is renamed). */ diff --git a/native/kernel/tests/test_artifact_card.c b/native/kernel/tests/test_artifact_card.c index eaa423fa..76ba0ee9 100644 --- a/native/kernel/tests/test_artifact_card.c +++ b/native/kernel/tests/test_artifact_card.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_artifact_card.c -- core/artifact_card.c: the card artifact bundle of the EL0 artifact qualification image * (CK_ARTIFACT_CARD, PI5-7 cut 3). The parser is strict (magic, count, name bytes, uniqueness, lengths, exact * end of file) and a refused file leaves nothing behind for the loader. The layout is the one diff --git a/native/kernel/tests/test_console_rx.c b/native/kernel/tests/test_console_rx.c index f2e83cb7..fc0ff5df 100644 --- a/native/kernel/tests/test_console_rx.c +++ b/native/kernel/tests/test_console_rx.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_console_rx.c -- the service lifecycle's operator input on the host: * SPCR -> console UART selection (the DGX Spark's exact SPCR bytes), the * POLLED 16550 and PL011 receive decode (core/uart_rx.h) on a simulated diff --git a/native/kernel/tests/test_context.c b/native/kernel/tests/test_context.c index 25d128a1..95a9fa35 100644 --- a/native/kernel/tests/test_context.c +++ b/native/kernel/tests/test_context.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_context.c -- N3 context assembly (core/context.c) and the exact * approval binding (core/context_proposal.c) on the host: record format, * deterministic selection, caps, every refusal, data-only placement, the diff --git a/native/kernel/tests/test_continuity_codec.c b/native/kernel/tests/test_continuity_codec.c index 923e87b4..470c4a95 100644 --- a/native/kernel/tests/test_continuity_codec.c +++ b/native/kernel/tests/test_continuity_codec.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_continuity_codec.c -- host tests of svc/continuity_codec.c (C * continuity port, cut 1; contract native/kernel/CONTINUITY_RECOVERY_CONTRACT.md, * aienos#222). Oracle: crates/aienos-kernel/src/continuity.rs at 4a116e5 diff --git a/native/kernel/tests/test_continuity_commit.c b/native/kernel/tests/test_continuity_commit.c index d5ad0ec3..b06ce021 100644 --- a/native/kernel/tests/test_continuity_commit.c +++ b/native/kernel/tests/test_continuity_commit.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_continuity_commit.c -- host tests of svc/continuity_commit.c (C * continuity port, cut 4: provision, commit, resume; contract * native/kernel/CONTINUITY_RECOVERY_CONTRACT.md, aienos#222). Oracle: diff --git a/native/kernel/tests/test_continuity_geometry.c b/native/kernel/tests/test_continuity_geometry.c index 313ccd91..4f6b7e6c 100644 --- a/native/kernel/tests/test_continuity_geometry.c +++ b/native/kernel/tests/test_continuity_geometry.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_continuity_geometry.c -- host test of contract item K-6 (Region geometry, * native/kernel/CONTINUITY_RECOVERY_CONTRACT.md K-6 and section 1.7, aienos#222, * cut 7). Harness helpers are copied from test_continuity_recovery.c (not shared). diff --git a/native/kernel/tests/test_continuity_recovery.c b/native/kernel/tests/test_continuity_recovery.c index a512c38b..0d9980c8 100644 --- a/native/kernel/tests/test_continuity_recovery.c +++ b/native/kernel/tests/test_continuity_recovery.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_continuity_recovery.c -- host tests of svc/continuity_recovery.c (C * continuity port, cut 5: Recovery Core inspection, repair, operator * provisioning; contract native/kernel/CONTINUITY_RECOVERY_CONTRACT.md section diff --git a/native/kernel/tests/test_continuity_resolve.c b/native/kernel/tests/test_continuity_resolve.c index ab383a0a..529adc69 100644 --- a/native/kernel/tests/test_continuity_resolve.c +++ b/native/kernel/tests/test_continuity_resolve.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_continuity_resolve.c -- host tests of svc/continuity_resolve.c (C * continuity port, cut 3; contract native/kernel/CONTINUITY_RECOVERY_CONTRACT.md, * aienos#222). Oracle: crates/aienos-kernel/src/continuity.rs `resolve` diff --git a/native/kernel/tests/test_continuity_subject.c b/native/kernel/tests/test_continuity_subject.c index f4998aea..1b2e8a3c 100644 --- a/native/kernel/tests/test_continuity_subject.c +++ b/native/kernel/tests/test_continuity_subject.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_continuity_subject.c -- host tests of svc/continuity_subject.c * (ALLEN subject state, kind 24; ARCH-0035 / OS-0018, both PROPOSED). * diff --git a/native/kernel/tests/test_continuity_subject_provision.c b/native/kernel/tests/test_continuity_subject_provision.c index 7c0ed6a3..499661af 100644 --- a/native/kernel/tests/test_continuity_subject_provision.c +++ b/native/kernel/tests/test_continuity_subject_provision.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_continuity_subject_provision.c -- host tests of * svc/continuity_subject_provision.c (ALLEN genesis at identity provisioning; * ARCH-0035 / OS-0018, PROPOSED) over the REAL sealed Store in a file with the diff --git a/native/kernel/tests/test_cpufeat.c b/native/kernel/tests/test_cpufeat.c index 2a5c149f..a6889771 100644 --- a/native/kernel/tests/test_cpufeat.c +++ b/native/kernel/tests/test_cpufeat.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_cpufeat.c -- host tests of core/cpufeat.c: every field at its Arm * position, neighbours do not leak, signed FP/AdvSIMD (0xf = absent), line. */ #include diff --git a/native/kernel/tests/test_dma_window.c b/native/kernel/tests/test_dma_window.c index 524d6cba..a26c2fa9 100644 --- a/native/kernel/tests/test_dma_window.c +++ b/native/kernel/tests/test_dma_window.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_dma_window.c -- Pi 5 software-only DMA confinement (dev/dma_window.c, * ADR 0020). Hosted: this proves the rule's logic, NOT the hardware. Run * under ASan/UBSan and with each CK_DMAW_MUTANT_* (make dma-window-mutants), diff --git a/native/kernel/tests/test_entropy.c b/native/kernel/tests/test_entropy.c index 5b119590..e8212b16 100644 --- a/native/kernel/tests/test_entropy.c +++ b/native/kernel/tests/test_entropy.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_entropy.c -- host tests of core/entropy.c (RNDR-or-refuse) against a * mocked RNDR: FEAT_RNG absent, RNDR always failing, failing then * succeeding (inside and at the retry bound), failing mid-fill, a stuck diff --git a/native/kernel/tests/test_fbcon.c b/native/kernel/tests/test_fbcon.c index 1bde8ccf..938ab425 100644 --- a/native/kernel/tests/test_fbcon.c +++ b/native/kernel/tests/test_fbcon.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_fbcon.c -- host tests of core/fbcon.c (the GOP framebuffer console) * and core/font8x8.h: every printable glyph is distinct (the screen gate's * checker decodes cells by exact match), the scale rule, lazy newline, line diff --git a/native/kernel/tests/test_fmt.c b/native/kernel/tests/test_fmt.c index 13b962d0..8a534451 100644 --- a/native/kernel/tests/test_fmt.c +++ b/native/kernel/tests/test_fmt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_fmt.c -- ck_vformat against the host libc snprintf for every * conversion and flag the kernel console documents. */ #include diff --git a/native/kernel/tests/test_frames.c b/native/kernel/tests/test_frames.c index 67c82832..17275f2d 100644 --- a/native/kernel/tests/test_frames.c +++ b/native/kernel/tests/test_frames.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_frames.c -- frame allocator over a crafted UEFI memory map: only * EfiConventionalMemory is handed out, reserved ranges (image, tables, * handoff) never are, alignment holds, exhaustion returns -1. */ diff --git a/native/kernel/tests/test_handoff.c b/native/kernel/tests/test_handoff.c index bf0149aa..e949196d 100755 --- a/native/kernel/tests/test_handoff.c +++ b/native/kernel/tests/test_handoff.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_handoff.c -- host tests of core/handoff_check.c against the handoff * contract (docs/BOOT_HANDOFF_CONTRACT.md sections 6 and 9). * diff --git a/native/kernel/tests/test_heap.c b/native/kernel/tests/test_heap.c index 477bebd6..a37c4e94 100644 --- a/native/kernel/tests/test_heap.c +++ b/native/kernel/tests/test_heap.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_heap.c -- kernel heap: alignment, zeroing, reuse, coalescing, * exhaustion and rejection of bad frees. */ #include diff --git a/native/kernel/tests/test_imac_report.c b/native/kernel/tests/test_imac_report.c index 27cc6473..d4063cbd 100644 --- a/native/kernel/tests/test_imac_report.c +++ b/native/kernel/tests/test_imac_report.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_imac_report.c -- host test for the iMac kernel's network report * frames (x86/report_x86.c, built with -DCK_X86_REPORT_HOST). * diff --git a/native/kernel/tests/test_ipc.c b/native/kernel/tests/test_ipc.c index a5ea8a1e..693f005a 100644 --- a/native/kernel/tests/test_ipc.c +++ b/native/kernel/tests/test_ipc.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_ipc.c -- host tests for core/ipc.c: the caps.rs and ipc.rs test lists * (generation checks, attenuation, cross-table revoke, tombstones, bounded * FIFO channel, gated IPC calls) plus the exact sequence the EL0 IPC demo runs. */ diff --git a/native/kernel/tests/test_klog.c b/native/kernel/tests/test_klog.c index ad45dbf8..b3f11f37 100644 --- a/native/kernel/tests/test_klog.c +++ b/native/kernel/tests/test_klog.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_klog.c -- core/klog.c: head kept in order, ring keeps the newest * bytes, the dropped-bytes line, the cap. */ #include diff --git a/native/kernel/tests/test_klog_slot.c b/native/kernel/tests/test_klog_slot.c index d5844bd7..b79f1538 100644 --- a/native/kernel/tests/test_klog_slot.c +++ b/native/kernel/tests/test_klog_slot.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_klog_slot.c -- core/klog_slot.c: the map check and the header match * refuse every way a write could land somewhere it should not. */ #include diff --git a/native/kernel/tests/test_lifecycle.c b/native/kernel/tests/test_lifecycle.c index 450969ec..14a979d3 100644 --- a/native/kernel/tests/test_lifecycle.c +++ b/native/kernel/tests/test_lifecycle.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_lifecycle.c -- the resident lifecycle state machine and request * decoder (core/lifecycle_fsm.c) on the host: bounds, verbs, every state * transition, refusals in the wrong state, the stop order flag. */ diff --git a/native/kernel/tests/test_osc_admit.c b/native/kernel/tests/test_osc_admit.c index 1bee972f..f9bb4818 100644 --- a/native/kernel/tests/test_osc_admit.c +++ b/native/kernel/tests/test_osc_admit.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_osc_admit.c -- host test for the kernel reporting in core/osc_admit.c. * Covers the one case the QEMU gate cannot build: a Store entry over the Store size limit is never read * (the Store writer refuses to make one), so the loader cannot tell whether it is an OSCUNIT. It must diff --git a/native/kernel/tests/test_osc_launch.c b/native/kernel/tests/test_osc_launch.c index 352d6b4a..48fbcc27 100644 --- a/native/kernel/tests/test_osc_launch.c +++ b/native/kernel/tests/test_osc_launch.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_osc_launch.c -- host tests for the pure parts of OSC unit launch (artifact/osc_launch.c): * - the argument rule (spec 9.2) against vectors/launch.txt, and against the spec's own C reference * tools/osc-launch-check.c (built by the Makefile, path in OSC_LAUNCH_REF) on 3000 pseudo-random diff --git a/native/kernel/tests/test_osc_receipt.c b/native/kernel/tests/test_osc_receipt.c index f3731e9c..9b31c1d7 100644 --- a/native/kernel/tests/test_osc_receipt.c +++ b/native/kernel/tests/test_osc_receipt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_osc_receipt.c -- host test for artifact/osc_receipt.c (Omega realization receipt v1, aienos#383) under * the kernel's own policy (core/osc_admit.c ck_osc_policy, linked in). * diff --git a/native/kernel/tests/test_osc_unit.c b/native/kernel/tests/test_osc_unit.c index 4ac0077d..e9293554 100644 --- a/native/kernel/tests/test_osc_unit.c +++ b/native/kernel/tests/test_osc_unit.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_osc_unit.c -- host conformance harness for artifact/osc_unit.c. * Runs every line of the frozen OSC_UNIT_ARTIFACT v1 vector files (copied to * tests/fixtures/osc_unit, provenance there): expected.txt (container diff --git a/native/kernel/tests/test_osh_op.c b/native/kernel/tests/test_osh_op.c index 0295a1dd..ea3be3d2 100644 --- a/native/kernel/tests/test_osh_op.c +++ b/native/kernel/tests/test_osh_op.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_osh_op.c -- host tests for core/osh_op.c: the AIENOS adapter's capability-authorized console write (`klog`). * Requests are built as the expander's request record (OSH_PLATFORM_ABI section 7) without calling the shell core. */ #include diff --git a/native/kernel/tests/test_pi5.c b/native/kernel/tests/test_pi5.c index 5179d4a1..e3887d3f 100644 --- a/native/kernel/tests/test_pi5.c +++ b/native/kernel/tests/test_pi5.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_pi5.c -- Pi 5 build register values (dev/pi5_wdt.h) against the * Linux bcm2835_wdt.c sequence: PM_WDOG = password | (secs << 16 & 0xfffff), * PM_RSTC = password | (cur & ~0x30) | 0x20. */ diff --git a/native/kernel/tests/test_pi5_gem.c b/native/kernel/tests/test_pi5_gem.c index 0c0234f5..e6da0d01 100644 --- a/native/kernel/tests/test_pi5_gem.c +++ b/native/kernel/tests/test_pi5_gem.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_pi5_gem.c -- Pi 5 network lane cut 3 (dev/pi5_gem.c) over a FAKE GEM that behaves like the Cadence * descriptor DMA and checks every access it makes: any DMA address outside the bounce window, any DMA while RP1 * bus-master is off, bus-master dropped while the transmitter still runs, malformed rings, missing tie-offs. diff --git a/native/kernel/tests/test_pi5_marker.c b/native/kernel/tests/test_pi5_marker.c index 29b84c56..ab2c1dfc 100644 --- a/native/kernel/tests/test_pi5_marker.c +++ b/native/kernel/tests/test_pi5_marker.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_pi5_marker.c -- AIENOS-PI5 step 3: the Pi 5 card layout (ESP + AIENOS * partition under a protective MBR and a two-copy GPT) parsed by the kernel's * own dev/disk_part.c, and the scratch marker (core/pi5_marker.c) written diff --git a/native/kernel/tests/test_pi5_net.c b/native/kernel/tests/test_pi5_net.c index ab1d2cfe..2e28def7 100644 --- a/native/kernel/tests/test_pi5_net.c +++ b/native/kernel/tests/test_pi5_net.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_pi5_net.c -- Pi 5 network lane cut 2 (dev/pi5_net.c) over FAKE registers: the inbound * window plan and its register sequence, the RP1 bus-master quiesce, the outbound window decode, * the RP1 clock decisions, the PHY reset line sequence, the GEM MDIO read and the PHY ID decode. diff --git a/native/kernel/tests/test_pi5_pcie.c b/native/kernel/tests/test_pi5_pcie.c index d3b1568b..713ff77d 100644 --- a/native/kernel/tests/test_pi5_pcie.c +++ b/native/kernel/tests/test_pi5_pcie.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_pi5_pcie.c -- Pi 5 PCIe root complex access, RP1 enumerator and inbound * window verdict (dev/pi5_pcie.c) over a FAKE register file. Hosted: this * proves the decisions, NOT the hardware. Run under ASan/UBSan and with each diff --git a/native/kernel/tests/test_pi5_rng.c b/native/kernel/tests/test_pi5_rng.c index 511d6412..0e338696 100644 --- a/native/kernel/tests/test_pi5_rng.c +++ b/native/kernel/tests/test_pi5_rng.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_pi5_rng.c -- Pi 5 RNG200 driver (dev/pi5_rng.c) against a mocked * register block, driving the real core/entropy.c rules: init sequence, * empty FIFO, lockout (one soft reset, then refuse, latched), warm-up that diff --git a/native/kernel/tests/test_pt.c b/native/kernel/tests/test_pt.c index 96107340..3e233584 100644 --- a/native/kernel/tests/test_pt.c +++ b/native/kernel/tests/test_pt.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_pt.c -- page-table builder: build real 4 KiB-granule tables in host * memory, then walk them independently (not through ck_pt_lookup) and check * output addresses, memory types, permissions, block sizes and guard holes. */ diff --git a/native/kernel/tests/test_sched.c b/native/kernel/tests/test_sched.c index 3f603884..8b23e118 100644 --- a/native/kernel/tests/test_sched.c +++ b/native/kernel/tests/test_sched.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_sched.c -- host tests for core/sched.c (the scheduler.rs test list, * plus the cooperative-thread order the M3 boot check expects). */ #include "ck_test.h" diff --git a/native/kernel/tests/test_smmu.c b/native/kernel/tests/test_smmu.c index 1ac65e60..c437f898 100644 --- a/native/kernel/tests/test_smmu.c +++ b/native/kernel/tests/test_smmu.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_smmu.c -- core/smmu.c against a model SMMUv3, and the IORT parser * (core/acpi.c) on a crafted table shaped like QEMU virt's with * iommu=smmuv3. Ported in spirit from the Rust smmu.rs unit tests: bring-up diff --git a/native/kernel/tests/test_unlock_req.c b/native/kernel/tests/test_unlock_req.c index f2bd5892..4434b537 100644 --- a/native/kernel/tests/test_unlock_req.c +++ b/native/kernel/tests/test_unlock_req.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* test_unlock_req.c -- core/unlock_req.c: the card unlock request file of the Pi qualification * image (CK_PI5_UNLOCK_CARD). Every malformed request is refused with a reason that never * contains the secret; a well-formed one is handed out exactly once and then wiped. */ diff --git a/native/kernel/tools/.crumb b/native/kernel/tools/.crumb index 434135ec..a9bbdfac 100644 --- a/native/kernel/tools/.crumb +++ b/native/kernel/tools/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-17T01:49:45Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:412f0a290f187935193ec94f1817c46dbe0edc07a5eb427e39977b65c1d00f9f", + "digest": "sha256:161f0b797ac718a09d619e04330a1b55aced4690cb59727bbd566a9b86aaad77", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 24, - "generated_at_commit": "30379678add587e388db4e11713d6bca8d159b08", - "source_tree": "sha256:811d4174e2479ef3a1cf5ed3f0ae69346da056fc12745e9f1b33afbe0b6f6dc5" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:b19c01b7a8fd1e35ed56ac03f1889326390615b8c7c8a3bbf2eac2086060353c" }, "owner_lane": "", "provenance": { diff --git a/native/kernel/tools/ck_acpi_scan.c b/native/kernel/tools/ck_acpi_scan.c index 45a352e0..b3b8a928 100644 --- a/native/kernel/tools/ck_acpi_scan.c +++ b/native/kernel/tools/ck_acpi_scan.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_acpi_scan.c -- host tool (never part of an image): runs the kernel's * platform xHCI discovery over firmware tables dumped under Linux and * prints the console lines the kernel will print on that machine. diff --git a/native/kernel/tools/ck_artifact_tool.c b/native/kernel/tools/ck_artifact_tool.c index 68a4d16c..09042350 100644 --- a/native/kernel/tools/ck_artifact_tool.c +++ b/native/kernel/tools/ck_artifact_tool.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_artifact_tool.c -- host tool for the C kernel P2_ARTIFACT gate. * C port of the commands of crates/aienos-artifact-tool that the gate uses * (pack, sign, id, verify, negative-corpus, receipt from-hex|check|sign-test| diff --git a/native/kernel/tools/ck_cont_tool.c b/native/kernel/tools/ck_cont_tool.c index 03a16f7f..0793acbf 100644 --- a/native/kernel/tools/ck_cont_tool.c +++ b/native/kernel/tools/ck_cont_tool.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_cont_tool -- host tool for the continuity / Recovery Core QEMU gates * (scripts/qemu_ck_continuity_test.sh, scripts/qemu_ck_recovery_test.sh). It * reuses the kernel's own Store and continuity code on a boot-disk image made by diff --git a/native/kernel/tools/ck_cortex_image.c b/native/kernel/tools/ck_cortex_image.c index 1f53ceea..4829818c 100644 --- a/native/kernel/tools/ck_cortex_image.c +++ b/native/kernel/tools/ck_cortex_image.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_cortex_image -- host tool for the N3 memory gate (aienos#329, * scripts/qemu_ck_memory_test.sh): writes one owner memory record into the * canonical Omega Cortex journal (svc/cortex_journal.c) of the sealed Store diff --git a/native/kernel/tools/ck_fb_check.c b/native/kernel/tools/ck_fb_check.c index 8c72cde2..64cb2b29 100644 --- a/native/kernel/tools/ck_fb_check.c +++ b/native/kernel/tools/ck_fb_check.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_fb_check -- host checker for the AIENOS_CK_SCREEN gate * (scripts/qemu_ck_screen_test.sh): does a QEMU screendump show exactly * what the kernel's framebuffer console (core/fbcon.c) must have drawn for diff --git a/native/kernel/tools/ck_gpt_image.c b/native/kernel/tools/ck_gpt_image.c index 795b654d..4ee5617d 100644 --- a/native/kernel/tools/ck_gpt_image.c +++ b/native/kernel/tools/ck_gpt_image.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_gpt_image -- host tool: GPT boot-disk images for the C kernel's QEMU * gates (scripts/qemu_ck_store_test.sh, qemu_ck_net_test.sh, * qemu_ck_artifact_test.sh, qemu_ck_disk_layout_test.sh). Hosted C, test diff --git a/native/kernel/tools/ck_gsp_bindata_extract.c b/native/kernel/tools/ck_gsp_bindata_extract.c index c73abd64..d3f660f3 100644 --- a/native/kernel/tools/ck_gsp_bindata_extract.c +++ b/native/kernel/tools/ck_gsp_bindata_extract.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_gsp_bindata_extract.c -- hosted extractor for the GB10 GSP firmware * arrays that the pinned NVIDIA open kernel driver (580.173.02) carries as * generated C source (aienos#286 cut C, host work only). Never loads anything. diff --git a/native/kernel/tools/ck_gsp_boot_args_encode.c b/native/kernel/tools/ck_gsp_boot_args_encode.c index 08fd5587..68cd7a6a 100644 --- a/native/kernel/tools/ck_gsp_boot_args_encode.c +++ b/native/kernel/tools/ck_gsp_boot_args_encode.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_gsp_boot_args_encode -- host tool: byte-exact encoder, decoder and * refusal tests for the system-memory argument blocks the pinned Linux * driver (nvidia-open 580.173.02) prepares before it boots GSP-RM on the diff --git a/native/kernel/tools/ck_gsp_cot_encode.c b/native/kernel/tools/ck_gsp_cot_encode.c index 4b60eb5d..3c92ff85 100644 --- a/native/kernel/tools/ck_gsp_cot_encode.c +++ b/native/kernel/tools/ck_gsp_cot_encode.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_gsp_cot_encode -- host tool: byte-exact encoder, decoder and refusal * tests for the message the pinned Linux driver (nvidia-open 580.173.02) * sends to SEC2 to boot the GSP first-stage image (GSP-FMC) on the GB10 diff --git a/native/kernel/tools/ck_gsp_fw_inspect.c b/native/kernel/tools/ck_gsp_fw_inspect.c index c4204528..b8974385 100644 --- a/native/kernel/tools/ck_gsp_fw_inspect.c +++ b/native/kernel/tools/ck_gsp_fw_inspect.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_gsp_fw_inspect -- host tool: inventory and refusal checks for the NVIDIA * GSP-RM firmware container that the pinned Linux driver (nvidia-open * 580.173.02) loads for the GB10 (aienos#286 cut C, host work: "inventory of diff --git a/native/kernel/tools/ck_gsp_rpc_encode.c b/native/kernel/tools/ck_gsp_rpc_encode.c index d1778733..30b5113b 100644 --- a/native/kernel/tools/ck_gsp_rpc_encode.c +++ b/native/kernel/tools/ck_gsp_rpc_encode.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_gsp_rpc_encode -- host tool: byte-exact encoder, decoder and refusal * tests for the GSP-RM message queue (command queue, status queue, queue * element, RPC header, continuation records and the packed registry table) diff --git a/native/kernel/tools/ck_imac_report_listen.c b/native/kernel/tools/ck_imac_report_listen.c index 7cf699e9..e4afef0b 100644 --- a/native/kernel/tools/ck_imac_report_listen.c +++ b/native/kernel/tools/ck_imac_report_listen.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_imac_report_listen.c -- host-side receiver for the iMac kernel's report * (native/kernel/x86/report_x86.c). Hosted C (POSIX sockets), tooling only, * never in a kernel image. No Python, no nc/socat. diff --git a/native/kernel/tools/ck_manifest_sig.c b/native/kernel/tools/ck_manifest_sig.c index d8bbf0e9..a8b9fd25 100644 --- a/native/kernel/tools/ck_manifest_sig.c +++ b/native/kernel/tools/ck_manifest_sig.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_manifest_sig.c -- PI5-8: owner signature over a Pi receipts manifest (scripts/pi5_receipts_manifest.sh), * using the in-tree Ed25519 (native/sig, RFC 8032 pure Ed25519) and SHA-256 (native/argus). * diff --git a/native/kernel/tools/ck_model_map.c b/native/kernel/tools/ck_model_map.c index 9acbebff..7b49c12d 100644 --- a/native/kernel/tools/ck_model_map.c +++ b/native/kernel/tools/ck_model_map.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_model_map -- host tool for MODEL.MAP (native/boot/model_map.h): where * the yardstick model's bytes live on the boot disk, so the UEFI boot stub * can read them through the firmware's Block I/O driver (aienos#34 lane 6). diff --git a/native/kernel/tools/ck_owner_gen.c b/native/kernel/tools/ck_owner_gen.c index 9997f964..bda35d6f 100644 --- a/native/kernel/tools/ck_owner_gen.c +++ b/native/kernel/tools/ck_owner_gen.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_owner_gen.c -- build-time owner provisioning for the C kernel * hardware staging image (make full CK_HARDWARE_STAGING=1). * diff --git a/native/kernel/tools/ck_pi5_store_locate.c b/native/kernel/tools/ck_pi5_store_locate.c index 0a4af7b3..4c881ec2 100644 --- a/native/kernel/tools/ck_pi5_store_locate.c +++ b/native/kernel/tools/ck_pi5_store_locate.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_pi5_store_locate.c -- host tool: print where the KeySlotManifest sits in a copy of the Pi card's * AIENOS partition (see pi5_store_locate.h). Read only, prints no secret and no key bytes. * ck_pi5_store_locate */ diff --git a/native/kernel/tools/ck_slot_tool.c b/native/kernel/tools/ck_slot_tool.c index 1d821f96..b24047b8 100644 --- a/native/kernel/tools/ck_slot_tool.c +++ b/native/kernel/tools/ck_slot_tool.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_slot_tool -- host tool for the AIENOS native image slots * (native/boot/slot_format.h, slot_select.c; native v1 plan P11, gate N7). * Builds, signs, verifies and inspects slot manifests and control records, diff --git a/native/kernel/tools/ck_store_image.c b/native/kernel/tools/ck_store_image.c index 0bad6796..476d5d6f 100644 --- a/native/kernel/tools/ck_store_image.c +++ b/native/kernel/tools/ck_store_image.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_store_image -- host tool: put signed P2 artifacts into the sealed C Store * inside the AIENOS GPT partition of a boot disk image (made by * tools/ck_gpt_image.c), at image build time, so the C kernel's loader diff --git a/native/kernel/tools/ck_udp_echo.c b/native/kernel/tools/ck_udp_echo.c index 220e96a9..50b5719b 100644 --- a/native/kernel/tools/ck_udp_echo.c +++ b/native/kernel/tools/ck_udp_echo.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_udp_echo.c -- host-side UDP echo helper for scripts/qemu_ck_net_test.sh * (gate AIENOS_CK_NET). Hosted C (POSIX sockets), test tooling only, never * in the kernel image. No Python, no nc/socat. diff --git a/native/kernel/tools/ck_uefi_vars.c b/native/kernel/tools/ck_uefi_vars.c index b1d9d0f5..e1fe8170 100644 --- a/native/kernel/tools/ck_uefi_vars.c +++ b/native/kernel/tools/ck_uefi_vars.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ck_uefi_vars -- host reader for an edk2 (AAVMF/OVMF) variable store file, * used by scripts/qemu_ck_rollback_test.sh (CK gate M0_ROLLBACK). It reads * the vars.fd a QEMU run left behind and prints the boot variables the diff --git a/native/kernel/tools/gpt_write.c b/native/kernel/tools/gpt_write.c index 25869b72..112139cc 100644 --- a/native/kernel/tools/gpt_write.c +++ b/native/kernel/tools/gpt_write.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* gpt_write.c -- hosted GPT image writer (see gpt_write.h). libc only. */ #define _GNU_SOURCE #include "gpt_write.h" diff --git a/native/kernel/tools/gpt_write.h b/native/kernel/tools/gpt_write.h index 7f8396cd..eb6dfd52 100644 --- a/native/kernel/tools/gpt_write.h +++ b/native/kernel/tools/gpt_write.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* gpt_write.h -- hosted GPT image writer for the C kernel's QEMU gates and * host tests (tools/ck_gpt_image.c, dev/tests/disk_part_test.c). Test * tooling only (libc), never part of an image. It writes the layout diff --git a/native/kernel/tools/pi5_store_locate.c b/native/kernel/tools/pi5_store_locate.c index db81d272..b94da663 100644 --- a/native/kernel/tools/pi5_store_locate.c +++ b/native/kernel/tools/pi5_store_locate.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_store_locate.c -- see pi5_store_locate.h. Hosted. */ #include #include diff --git a/native/kernel/tools/pi5_store_locate.h b/native/kernel/tools/pi5_store_locate.h index 3aee09d8..919a4962 100644 --- a/native/kernel/tools/pi5_store_locate.h +++ b/native/kernel/tools/pi5_store_locate.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pi5_store_locate.h -- host side only. Where the KeySlotManifest (Store object kind 21, ADR 0017 section * 2.4) sits inside a copy of the Pi card's AIENOS partition, found the way the kernel finds it: * the unkeyed st_open catalog (svc/store_boot.c ck_store_unlock_boot -> ss_keyslot_bootstrap) lists the diff --git a/native/kernel/x86/ahci_x86.c b/native/kernel/x86/ahci_x86.c index aaed00a6..953ed13b 100644 --- a/native/kernel/x86/ahci_x86.c +++ b/native/kernel/x86/ahci_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* ahci_x86.c -- AIENOS-IMAC-KERNEL-1: the SATA disks behind an AHCI * controller, READ-ONLY, for the 2017 iMac (Intel 8086:a102, the 1 TB hard * disk half of the Fusion Drive) and QEMU q35 (ICH9). diff --git a/native/kernel/x86/console_x86.c b/native/kernel/x86/console_x86.c index fe508e47..8d5b2d31 100644 --- a/native/kernel/x86/console_x86.c +++ b/native/kernel/x86/console_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* console_x86.c -- ck_puts/ck_printf for AIENOS-IMAC-KERNEL-0. * * Three sinks. COM1 (I/O port 0x3f8) only when a 16550 answers there (the diff --git a/native/kernel/x86/efi_x86.c b/native/kernel/x86/efi_x86.c index d32d7f4a..73b3ab03 100644 --- a/native/kernel/x86/efi_x86.c +++ b/native/kernel/x86/efi_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* efi_x86.c -- UEFI stub of AIENOS-IMAC-KERNEL-0 (x86_64): the same job as * native/boot/efi_main.c does for the AArch64 kernel, on the same CHANDOF3 * record (handoff.h), so core/handoff_check.c checks it unchanged. diff --git a/native/kernel/x86/kmain_x86.c b/native/kernel/x86/kmain_x86.c index e6f0b871..20eb4751 100644 --- a/native/kernel/x86/kmain_x86.c +++ b/native/kernel/x86/kmain_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* kmain_x86.c -- AIENOS-IMAC-KERNEL-0: the C kernel core on x86_64, first * cut, for the 2017 iMac (iMac18,3, Core i5-7500) and QEMU q35. * diff --git a/native/kernel/x86/pci_x86.c b/native/kernel/x86/pci_x86.c index 07daeaed..45fb7faf 100644 --- a/native/kernel/x86/pci_x86.c +++ b/native/kernel/x86/pci_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* pci_x86.c -- AIENOS-IMAC-KERNEL-1: the PCI walk and the devices it hands * out, for the 2017 iMac and QEMU q35. * diff --git a/native/kernel/x86/report_x86.c b/native/kernel/x86/report_x86.c index cbf9c993..416eaea8 100644 --- a/native/kernel/x86/report_x86.c +++ b/native/kernel/x86/report_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* report_x86.c -- sends the iMac kernel's report over Ethernet, so the * owner no longer has to photograph the screen. * diff --git a/native/kernel/x86/report_x86.h b/native/kernel/x86/report_x86.h index 72b67577..79cd3422 100644 --- a/native/kernel/x86/report_x86.h +++ b/native/kernel/x86/report_x86.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* report_x86.h -- the iMac kernel's network report (report_x86.c): the * console's RAM copy cut into UDP broadcast datagrams. No machine access in * here, so the frame builder is also compiled and tested on the host. */ diff --git a/native/kernel/x86/tg3_x86.c b/native/kernel/x86/tg3_x86.c index d8ef92d3..da49c944 100644 --- a/native/kernel/x86/tg3_x86.c +++ b/native/kernel/x86/tg3_x86.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* tg3_x86.c -- the 2017 iMac's Broadcom BCM57766 Ethernet chip (PCI * 14e4:1686), transmit only, polled, for the kernel's network report. * diff --git a/native/kernel/x86/x86.h b/native/kernel/x86/x86.h index d2e2f7f5..7825fe4d 100644 --- a/native/kernel/x86/x86.h +++ b/native/kernel/x86/x86.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* x86.h -- x86_64 machine access for the AIENOS-IMAC-KERNEL-0 kernel * (native/kernel/x86): port and MSR I/O, CPUID, TSC, control registers, * the trap frame trap.S builds, and the entry points between the files. diff --git a/native/m5/.crumb b/native/m5/.crumb index af341836..da9e47bd 100644 --- a/native/m5/.crumb +++ b/native/m5/.crumb @@ -17,27 +17,27 @@ "generated": { "children": [ { - "digest": "14c3d97cc49d279cf57a819bf7aa2c75c8bcd3d0071b302f352ae6ddda74f2b6", - "last_commit": "1feaca1", + "digest": "8837fcfeeb5fffb9e9ec9272f456f0a542d6d961a5d7af860f0a93faa2c93c50", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/m5/tests. Purpose not yet described by a human." }, { - "digest": "0cfa96047a78c70ea597daf37fb756f310424080491969f3e38802e71b60c994", - "last_commit": "ec6ebd6", + "digest": "3bde02a75f942efa3ab7277d18851abfc0b786083205c03f6eecd7cf8e17b79a", + "last_commit": "621c9e6f", "name": "tools", "purpose": "Directory native/m5/tools. Purpose not yet described by a human." } ], - "children_root": "sha256:b461ac42b9135cc73e941d0acb46347321f14ed28765e041f00445bdbff7ab54", - "compiled_at": "2026-10-14T14:58:51Z", + "children_root": "sha256:19ae7b0e7465e9360d6f06b47f4e5bf85abd7f56011921d984c0cfd4a2684e74", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:a805df7e3af4b8a2ef345223523b54e7e47565204ec8f8e598f6dcaf53b07419", + "digest": "sha256:257e53b395e1f417a61838914d73ebbf408361083e9e40ca3b56011e1f9754c4", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 13, - "generated_at_commit": "596870d6ef47c5238cc2c7fa1c08f5e5486e5d84", - "source_tree": "sha256:d9e34890925e31f604e9c876f5ceff76db9fdd9adc26361800c542cc0b009994" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:2bbbdcfb52ab3801f3b24ff99affd5ab63648c7975e53d8fb7c0b9e779a4890e" }, "owner_lane": "", "provenance": { diff --git a/native/m5/m5.h b/native/m5/m5.h index f4939eb1..5280ad04 100644 --- a/native/m5/m5.h +++ b/native/m5/m5.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS M5 encrypted-object envelope and security layer, in C. * * Port of crates/aienos-kernel/src/crypto/envelope.rs and diff --git a/native/m5/m5_envelope.c b/native/m5/m5_envelope.c index 800ce65f..d137c9e8 100644 --- a/native/m5/m5_envelope.c +++ b/native/m5/m5_envelope.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* M5 chunked AES-256-GCM-SIV object envelope. Byte-compatible port of * crates/aienos-kernel/src/crypto/envelope.rs (V1 header and chunk AAD). * diff --git a/native/m5/m5_internal.h b/native/m5/m5_internal.h index 5d244bc8..341efe8e 100644 --- a/native/m5/m5_internal.h +++ b/native/m5/m5_internal.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Internal helpers for native/m5. Not part of the API. */ #ifndef AIENOS_M5_INTERNAL_H #define AIENOS_M5_INTERNAL_H diff --git a/native/m5/m5_keys.c b/native/m5/m5_keys.c index 388e1059..48e4d693 100644 --- a/native/m5/m5_keys.c +++ b/native/m5/m5_keys.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* M5 key hierarchy: HKDF-Expand, subkeys, per-object keys, keyslots, * SecurityManifest. Port of security.rs sections 1-3. */ #include "m5_internal.h" diff --git a/native/m5/m5_owner_sig.c b/native/m5/m5_owner_sig.c index 59ed4be4..a02f02f5 100644 --- a/native/m5/m5_owner_sig.c +++ b/native/m5/m5_owner_sig.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* M5 owner-signed migration record: Ed25519 (native/sig) over a 208-byte * body that binds source and destination store, agent root, source store * generation, store format version, the set of migrated envelope ObjectIds, diff --git a/native/m5/m5_state.c b/native/m5/m5_state.c index 4ba52a83..8a51e540 100644 --- a/native/m5/m5_state.c +++ b/native/m5/m5_state.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* M5 commit record, anti-rollback anchor, migration manifest and * deterministic recovery. Port of security.rs sections 4-5 (C v2 layouts). */ #include "m5_internal.h" diff --git a/native/m5/tests/.crumb b/native/m5/tests/.crumb index 04c68ca8..bc4483e4 100644 --- a/native/m5/tests/.crumb +++ b/native/m5/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-12T05:32:10Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:14c3d97cc49d279cf57a819bf7aa2c75c8bcd3d0071b302f352ae6ddda74f2b6", + "digest": "sha256:8837fcfeeb5fffb9e9ec9272f456f0a542d6d961a5d7af860f0a93faa2c93c50", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 3, - "generated_at_commit": "a9d120b2e91893bb80a378dc746cf0a274e42878", - "source_tree": "sha256:ca5032aab793b251b45c2292dff134fe9ef7e98f55bbd01480984375ef9f9559" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:fb858aed7cac2e61a3061b47faae0f41509325ae198525f037b0040c2f48c298" }, "owner_lane": "", "provenance": { diff --git a/native/m5/tests/m5_migsig_test.c b/native/m5/tests/m5_migsig_test.c index 1d92a33f..d442727b 100644 --- a/native/m5/tests/m5_migsig_test.c +++ b/native/m5/tests/m5_migsig_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* native/m5 owner-signed migration record tests (Ed25519 from native/sig). * Host-only (hosted libc), not QEMU. Every key here is a TEST key derived * from a public label; no real owner key is used or needed. diff --git a/native/m5/tests/m5_migsig_tool_test.sh b/native/m5/tests/m5_migsig_tool_test.sh index 7c19ccc3..42bd1a81 100755 --- a/native/m5/tests/m5_migsig_tool_test.sh +++ b/native/m5/tests/m5_migsig_tool_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # m5_migsig tool test: build, sign and verify an owner-signed migration # record with FRESHLY GENERATED TEST KEYS (random, labelled TEST-ONLY, deleted # afterwards; never an owner key), then check every refusal end to end. diff --git a/native/m5/tests/m5_test.c b/native/m5/tests/m5_test.c index e7604151..437e063c 100644 --- a/native/m5/tests/m5_test.c +++ b/native/m5/tests/m5_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* native/m5 tests: key hierarchy, envelopes, corruption matrix, * all-or-nothing open, anti-rollback, identity separation, migration, * deterministic recovery. Host-only (hosted libc), not QEMU. diff --git a/native/m5/tools/.crumb b/native/m5/tools/.crumb index c760da44..11327bf9 100644 --- a/native/m5/tools/.crumb +++ b/native/m5/tools/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:0cfa96047a78c70ea597daf37fb756f310424080491969f3e38802e71b60c994", + "digest": "sha256:3bde02a75f942efa3ab7277d18851abfc0b786083205c03f6eecd7cf8e17b79a", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 1, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:2754374819d074c008f340b81ac691059f1eff0dbc229676116c962234443cd4" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:a6fc1d5186fedcb64c239c8ad6d0779928791215d1c373c86ce4acad904adc9e" }, "owner_lane": "", "provenance": { diff --git a/native/m5/tools/m5_migsig.c b/native/m5/tools/m5_migsig.c index f750fdc8..a7df85d5 100644 --- a/native/m5/tools/m5_migsig.c +++ b/native/m5/tools/m5_migsig.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* m5_migsig: build, sign and verify M5 owner-signed migration records. * Hosted tool (libc I/O); the record logic is libaienos_m5 + native/sig. * diff --git a/native/net/.crumb b/native/net/.crumb index d4dbb083..bb1af0a8 100644 --- a/native/net/.crumb +++ b/native/net/.crumb @@ -18,26 +18,26 @@ "children": [ { "digest": "bcfb85b12af64194fd5008d1083ea51394f327d16d46fd3849c4f3a022fcd2b6", - "last_commit": "d75a266", + "last_commit": "d75a2660", "name": "receipts", "purpose": "Directory native/net/receipts. Purpose not yet described by a human." }, { - "digest": "fd139e90ca41167b0025352fafdca0d2c9c869c6e13bab72c04d30b5776ddd93", - "last_commit": "4a116e5", + "digest": "28d6bda7d776a4245d19df1556e65e80f932e3f7a13855d708f613f4a20c5c12", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/net/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:72c6a05fd3be86ab3a6985c3b1d9ed75262d875773aff4440ec13869435108cc", - "compiled_at": "2026-10-14T14:58:51Z", + "children_root": "sha256:899cba0a6679b457029e534d176a5b0b1cf021cc05782951e29f4f9b7cbd2798", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:ff5c88f5e9bf86e7ff836d24c048dd2d4efc94f6f19a21a0caf72ae9c402deaf", + "digest": "sha256:f9c2453f4a79f6f4f27e6761cc2cdfc0431fb698be73a7f8869b5d6580e96d9d", "evidence_files": 4, "evidence_root": "sha256:e410b845507e00568e15b51a5797af32a97e0e4b8ab4e8487bb7c98e7e0cf335", "files": 29, - "generated_at_commit": "596870d6ef47c5238cc2c7fa1c08f5e5486e5d84", - "source_tree": "sha256:f44c1b908aa86c0360aa8d0f01723a1deae07cdecc40354390204e2ee456834d" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:1e15f1e8d7b90491dfd2bd42aab84b5a6f89b0f6af0ab8f05f2968e4fd8f9516" }, "owner_lane": "", "provenance": { diff --git a/native/net/aienos_ctl.c b/native/net/aienos_ctl.c index b2b6370d..d6c7b4cd 100644 --- a/native/net/aienos_ctl.c +++ b/native/net/aienos_ctl.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS M6-A control-transport stub. See aienos_ctl.h. No heap, clock or I/O. */ #include "aienos_ctl.h" diff --git a/native/net/aienos_ctl.h b/native/net/aienos_ctl.h index c70f44aa..27b6bd36 100644 --- a/native/net/aienos_ctl.h +++ b/native/net/aienos_ctl.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS M6-A framed control-transport STUB, TEST identity only. * * There is no Rust reference for this layer; this file is its spec. It is a diff --git a/native/net/aienos_net.c b/native/net/aienos_net.c index bc94f642..02a50927 100644 --- a/native/net/aienos_net.c +++ b/native/net/aienos_net.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS M6-A network protocol layer. See aienos_net.h. No heap, no clock, no I/O. */ #include "aienos_net.h" diff --git a/native/net/aienos_net.h b/native/net/aienos_net.h index b15a6dbe..509cc65a 100644 --- a/native/net/aienos_net.h +++ b/native/net/aienos_net.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS M6-A hosted network protocol layer, in C. No Rust, no heap. * * Port of the Rust reference crates/aienos-kernel/src/net.rs (read as the diff --git a/native/net/aienos_sec.c b/native/net/aienos_sec.c index 4823460b..53652437 100644 --- a/native/net/aienos_sec.c +++ b/native/net/aienos_sec.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS M6-B secure control transport. See aienos_sec.h for the wire spec. * No heap, clock or I/O. Lines tagged GUARD: are removed one at a time * by `make mutants`; the tests must catch every removal. diff --git a/native/net/aienos_sec.h b/native/net/aienos_sec.h index d5781bda..eebbd249 100644 --- a/native/net/aienos_sec.h +++ b/native/net/aienos_sec.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS M6-B secure control transport (hosted), in C. No heap, clock or I/O. * * A mutually authenticated, encrypted datagram channel between two machines, diff --git a/native/net/aienos_virtio_net.c b/native/net/aienos_virtio_net.c index dfa7dacf..95ac37c8 100644 --- a/native/net/aienos_virtio_net.c +++ b/native/net/aienos_virtio_net.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* See aienos_virtio_net.h. */ #include "aienos_virtio_net.h" diff --git a/native/net/aienos_virtio_net.h b/native/net/aienos_virtio_net.h index c8743d4a..dbba3256 100644 --- a/native/net/aienos_virtio_net.h +++ b/native/net/aienos_virtio_net.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* virtio-net (virtio 1.x, split virtqueues) driver core, polled, hosted-testable. * * The Rust reference crates/aienos-kernel/src/virtio_net.rs only parses PCI diff --git a/native/net/aienos_virtio_pci.c b/native/net/aienos_virtio_pci.c index a62706c2..9629b20e 100644 --- a/native/net/aienos_virtio_pci.c +++ b/native/net/aienos_virtio_pci.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* See aienos_virtio_pci.h. */ #include "aienos_virtio_pci.h" diff --git a/native/net/aienos_virtio_pci.h b/native/net/aienos_virtio_pci.h index 7bde902d..e35e6f82 100644 --- a/native/net/aienos_virtio_pci.h +++ b/native/net/aienos_virtio_pci.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Pure parsing of virtio 1.x PCI vendor capabilities from a PCI configuration * image. Port of crates/aienos-kernel/src/virtio_net.rs (the spec). No device * access, no heap. Error order matches the Rust reference. */ diff --git a/native/net/receipt.sh b/native/net/receipt.sh index 1cc938a8..4ea69e83 100755 --- a/native/net/receipt.sh +++ b/native/net/receipt.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # receipt.sh: one content-addressed M6-A + M6-B host receipt for the current # commit. Refuses a dirty tree. Runs make test + sanitize + mutants from clean, records the # commit, toolchain, source hashes and verdict lines, and writes diff --git a/native/net/tests/.crumb b/native/net/tests/.crumb index b467f111..503ef31a 100644 --- a/native/net/tests/.crumb +++ b/native/net/tests/.crumb @@ -14,20 +14,20 @@ "children": [ { "digest": "dee52184bb1879d3bbb1b3db0cb6b8aa9cce4fc524e3aa18e1ba93da79802f5f", - "last_commit": "d75a266", + "last_commit": "d75a2660", "name": "fixtures", "purpose": "Directory native/net/tests/fixtures. Purpose not yet described by a human." } ], "children_root": "sha256:eefad7996e552393c5e8e30abc9d90b9ec8f10e51bef5b788e6131b1c76c0907", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:fd139e90ca41167b0025352fafdca0d2c9c869c6e13bab72c04d30b5776ddd93", + "digest": "sha256:28d6bda7d776a4245d19df1556e65e80f932e3f7a13855d708f613f4a20c5c12", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 9, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:60565b9b1b0f84a1b034f20a7529336725a73f81a4b494da142265d8b2da8c19" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:a90746b1d8069250318aba2d59bc93564083dadef533066c1f68984be466b308" }, "owner_lane": "", "provenance": { diff --git a/native/net/tests/ctl_test.c b/native/net/tests/ctl_test.c index 685e0313..cedf3f77 100644 --- a/native/net/tests/ctl_test.c +++ b/native/net/tests/ctl_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Deterministic loss/recovery and refusal tests for the M6-A control-transport * stub (TEST identity only). A seeded simulated link drops, duplicates, * corrupts and reorders frames; every scenario must deliver every message in diff --git a/native/net/tests/net_diff.c b/native/net/tests/net_diff.c index d36057a7..12aa07ca 100644 --- a/native/net/tests/net_diff.c +++ b/native/net/tests/net_diff.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Differential corpus tool for the M6-A protocol layer. * * net_diff gen SEED COUNT > corpus.bin structure-aware hostile corpus diff --git a/native/net/tests/net_test.c b/native/net/tests/net_test.c index 5d626287..75d4800b 100644 --- a/native/net/tests/net_test.c +++ b/native/net/tests/net_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Host tests for the M6-A protocol layer: the Rust reference's own vectors, * malformed-packet negatives, build/parse round trips, and a seeded * randomized hostile-input sweep. Usage: net_test [seed] [iterations] */ diff --git a/native/net/tests/sec_test.c b/native/net/tests/sec_test.c index 6a649794..461ab0e5 100644 --- a/native/net/tests/sec_test.c +++ b/native/net/tests/sec_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* M6-B secure control transport tests (hosted, TEST identities only). * * Two in-process machines exchange datagrams over the M6-A stack: every diff --git a/native/net/tests/vnet_test.c b/native/net/tests/vnet_test.c index 1bcf23e4..da7096dc 100644 --- a/native/net/tests/vnet_test.c +++ b/native/net/tests/vnet_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Lane 26 hosted tests: virtio PCI caps against real QEMU 8.2.2 config-space * dumps (tests/fixtures/), malformed caps, and the virtio-net split-virtqueue * driver against a simulated device in C that also plays hostile. Ends with diff --git a/native/net/tests/x25519_test.c b/native/net/tests/x25519_test.c index 2cb1ae67..63887044 100644 --- a/native/net/tests/x25519_test.c +++ b/native/net/tests/x25519_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* X25519 tests: RFC 7748 Section 5.2 vectors (both single vectors, the * 1-iteration and 1,000-iteration checks; 1,000,000 with X25519_LONG=1) and * the Section 6.1 Diffie-Hellman vector, copied verbatim from the RFC text diff --git a/native/net/x25519.c b/native/net/x25519.c index 00db0680..458e36ea 100644 --- a/native/net/x25519.c +++ b/native/net/x25519.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS X25519 (RFC 7748). See x25519.h. * * Field GF(2^255 - 19) in 16 signed 64-bit limbs of 16 bits each (the diff --git a/native/net/x25519.h b/native/net/x25519.h index a14a9ccf..28f0bc5a 100644 --- a/native/net/x25519.h +++ b/native/net/x25519.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS X25519 (RFC 7748 Section 5), in C. No heap, clock or I/O. * * Why native/net and not native/sig: X25519 is only used here, for the M6-B diff --git a/native/sig/.crumb b/native/sig/.crumb index 983b3a0d..447be9c3 100644 --- a/native/sig/.crumb +++ b/native/sig/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "33dc4e9fb2d9d884bb3ae8b384327e07d1c4d6871a536b42317da9882e666ffb", - "last_commit": "cea54be", + "digest": "7c0efcd3de51e7064cd262d7c09f366099301d4d46b827abcadac60ea1b42549", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/sig/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:2c318acd4ff46092a89eec7b6b1f764bdc91bb6428427fffa9b04f05753be9fd", - "compiled_at": "2026-10-14T14:58:51Z", + "children_root": "sha256:f4eba8a5dc57ed10d9e6011655429a86bba98077105f6b95e801be83b9acba15", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:135fd1edbe2388764de7dc755611b483b0c61adab858718c390b7745d141635c", + "digest": "sha256:e89066d6aa5c09de6f67671846971d09cf733e4620f713983ff29fae60321c9e", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 10, - "generated_at_commit": "596870d6ef47c5238cc2c7fa1c08f5e5486e5d84", - "source_tree": "sha256:e0f0c7871cebb725ef0fbe9a56e1e0ca558690712174e9f2d8eab5fc2b848ce2" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:37208051f2666d6f8d4354bbe0569c08d8b4ef216eeb7253de69c7f5b3ad7293" }, "owner_lane": "", "provenance": { diff --git a/native/sig/aienos_sig.h b/native/sig/aienos_sig.h index 7403fd99..50636855 100644 --- a/native/sig/aienos_sig.h +++ b/native/sig/aienos_sig.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* AIENOS in-house signatures in C: Ed25519 (RFC 8032 Section 5.1, pure * Ed25519 only: no Ed25519ph, no Ed25519ctx) and SHA-512 (FIPS 180-4). * diff --git a/native/sig/ct.c b/native/sig/ct.c index ecfe34a0..8eed6261 100644 --- a/native/sig/ct.c +++ b/native/sig/ct.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Constant-time helpers: volatile wipe and equality (same construction as * native/crypto/ct.c, separate symbols so both libraries can be linked). */ #include "sig_internal.h" diff --git a/native/sig/ed25519.c b/native/sig/ed25519.c index 2ac0c488..a24a0860 100644 --- a/native/sig/ed25519.c +++ b/native/sig/ed25519.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Ed25519 (RFC 8032 Section 5.1), pure Ed25519 only. * * Field GF(2^255 - 19): five 51-bit limbs, 128-bit products. diff --git a/native/sig/sha512.c b/native/sig/sha512.c index 7bda2730..656ea65c 100644 --- a/native/sig/sha512.c +++ b/native/sig/sha512.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* SHA-512 (FIPS 180-4). Round constants K are the FIPS 180-4 Section 4.2.3 * values. Lines tagged GUARD: are removed one at a time by * `make mutants`; the tests must fail for each. */ diff --git a/native/sig/sig_internal.h b/native/sig/sig_internal.h index 7d91b68a..0e6c6bb7 100644 --- a/native/sig/sig_internal.h +++ b/native/sig/sig_internal.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Internal hooks for the test. Not public API. */ #ifndef AIENOS_SIG_INTERNAL_H #define AIENOS_SIG_INTERNAL_H diff --git a/native/sig/tests/.crumb b/native/sig/tests/.crumb index 05ddc644..ac8e87f3 100644 --- a/native/sig/tests/.crumb +++ b/native/sig/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-04T13:47:18Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:33dc4e9fb2d9d884bb3ae8b384327e07d1c4d6871a536b42317da9882e666ffb", + "digest": "sha256:7c0efcd3de51e7064cd262d7c09f366099301d4d46b827abcadac60ea1b42549", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 2, - "generated_at_commit": "a863d5c1f5bd89c88c5f6671eecfd27b599ee512", - "source_tree": "sha256:1fc98112613acef8760f9e485b6cb47a33081a4265c370ddf29bea83ccac1cf0" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:fcd92c6784b3fd0d3668df89c88bbb56f4f9746a22410fd50f44af04096bfe9d" }, "owner_lane": "", "provenance": { diff --git a/native/sig/tests/rfc8032_vectors.h b/native/sig/tests/rfc8032_vectors.h index 5a18e2dd..855663dd 100644 --- a/native/sig/tests/rfc8032_vectors.h +++ b/native/sig/tests/rfc8032_vectors.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* RFC 8032 Section 7.1 Ed25519 test vectors, copied verbatim from the RFC * text (https://www.rfc-editor.org/rfc/rfc8032.txt, file sha256 * ed63657ff389301282b169b0abde9b5dd2c7e4d524fdfa5da6ff3094fc93c4c3). diff --git a/native/sig/tests/sig_test.c b/native/sig/tests/sig_test.c index 32bef09a..c9657c74 100644 --- a/native/sig/tests/sig_test.c +++ b/native/sig/tests/sig_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Known-answer, negative and round-trip tests for native/sig. * * Vector sources (all hard-coded, none generated at build time): diff --git a/native/store/.crumb b/native/store/.crumb index 0d3ecf9a..b2d578ce 100644 --- a/native/store/.crumb +++ b/native/store/.crumb @@ -13,21 +13,21 @@ "generated": { "children": [ { - "digest": "2d3d3126d372770e8db78cfd308c5912d55104a6b8761ea21190679f9d37c9f1", - "last_commit": "22eb360", + "digest": "c3d8412c53594ae21ff6f0bc5811c22c0c6ecf8928ab65667c9066f07cfc01b1", + "last_commit": "621c9e6f", "name": "tests", "purpose": "Directory native/store/tests. Purpose not yet described by a human." } ], - "children_root": "sha256:63c601409e5cfba3ed2b46512984506078778d1d861501e8f4604e9277027df8", - "compiled_at": "2026-10-14T20:37:20Z", + "children_root": "sha256:7118820a7ed52b1dbf250f7973cb94f80ec953a2730bca80dffb99b64ac9546f", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:f75197d76b7daaeee8223cf25353251824cd4497400a439724a3a424e014a229", + "digest": "sha256:325fec79752c7be76550de52f400c5cc35d4641de8dc45290cff10ddc526fa3b", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 22, - "generated_at_commit": "7db773a8c3e041d4415c3c37240b26235c81b7a7", - "source_tree": "sha256:9cc41dbe9d2dc974564886203d0e1ff8f418eeea4dddde0f6cd1c57a698b65cb" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:056be129dcd85c59b7d7b1306d2a6525f032bb709809533fd143de6190975bc0" }, "owner_lane": "", "provenance": { diff --git a/native/store/store_disk.c b/native/store/store_disk.c index 77925bef..da10e161 100644 --- a/native/store/store_disk.c +++ b/native/store/store_disk.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_disk.c -- ADR 0015 geometry adapter (device.rs twin): 4096-byte * Store units over a native/disk disk_dev with 512- or 4096-byte blocks. diff --git a/native/store/store_engine.c b/native/store/store_engine.c index 071e7368..b4a326d1 100644 --- a/native/store/store_engine.c +++ b/native/store/store_engine.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_engine.c -- Store v1 mount and transaction engine, C twin of * crates/aienos-kernel/src/store/engine.rs. See store_engine.h. diff --git a/native/store/store_engine.h b/native/store/store_engine.h index 97c561df..3619c550 100644 --- a/native/store/store_engine.h +++ b/native/store/store_engine.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_engine.h -- C twin of the Store v1 mount and transaction engine * (crates/aienos-kernel/src/store/{engine,device,checkpoint}.rs). diff --git a/native/store/store_mem.c b/native/store/store_mem.c index e84466d1..9c44e820 100644 --- a/native/store/store_mem.c +++ b/native/store/store_mem.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* store_mem.c -- memcpy/memmove/memset/memcmp for the freestanding build * (make freestanding) only. Hosted builds use libc. Compiled with * -fno-builtin -fno-tree-loop-distribute-patterns so the loops are not diff --git a/native/store/store_sealed.c b/native/store/store_sealed.c index cecbcba0..bea37304 100644 --- a/native/store/store_sealed.c +++ b/native/store/store_sealed.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* store_sealed.c -- M5 sealed store over the C Store v1 engine. * See store_sealed.h for the design and README.md for the byte layouts. */ #include "store_sealed.h" diff --git a/native/store/store_sealed.h b/native/store/store_sealed.h index 6d69f3c8..762ee3fe 100644 --- a/native/store/store_sealed.h +++ b/native/store/store_sealed.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* store_sealed.h -- M5 "sealed store" over the C Store v1 engine. * * Every application object is stored as an M5 envelope (AES-256-GCM-SIV, diff --git a/native/store/store_v1.c b/native/store/store_v1.c index ed338b5e..910adf7f 100644 --- a/native/store/store_v1.c +++ b/native/store/store_v1.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_v1.c -- System Store v1 format primitives, C twin of * crates/aienos-kernel/src/store/v1.rs. See store_v1.h. diff --git a/native/store/store_v1.h b/native/store/store_v1.h index 45d82fd1..6bc8548b 100644 --- a/native/store/store_v1.h +++ b/native/store/store_v1.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_v1.h -- C twin of the System Store v1 format primitives (ADR 0015), * byte-identical to crates/aienos-kernel/src/store/v1.rs. diff --git a/native/store/tests/.crumb b/native/store/tests/.crumb index 8a71b8d5..d70bc97f 100644 --- a/native/store/tests/.crumb +++ b/native/store/tests/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-14T20:37:20Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:2d3d3126d372770e8db78cfd308c5912d55104a6b8761ea21190679f9d37c9f1", + "digest": "sha256:c3d8412c53594ae21ff6f0bc5811c22c0c6ecf8928ab65667c9066f07cfc01b1", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 10, - "generated_at_commit": "7db773a8c3e041d4415c3c37240b26235c81b7a7", - "source_tree": "sha256:4a4feaaf5e38a6686d18f88aa72b5cf31245c24d51daac422dafa2302f428340" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:8bed0d681b0d7d149282e5f937c25db20dcef9b5ded96caa434d185fc01aac4a" }, "owner_lane": "", "provenance": { diff --git a/native/store/tests/rust_crosscheck.sh b/native/store/tests/rust_crosscheck.sh index 159dc5fa..1e984d88 100755 --- a/native/store/tests/rust_crosscheck.sh +++ b/native/store/tests/rust_crosscheck.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # C -> Rust cross-check: the Rust aienos-store-tool works on images written # by the C Store engine, and the C engine classifies images the Rust tool has # changed the same way the Rust engine does. diff --git a/native/store/tests/store_engine_test.c b/native/store/tests/store_engine_test.c index 368f0eb3..02cc37a5 100644 --- a/native/store/tests/store_engine_test.c +++ b/native/store/tests/store_engine_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_engine_test.c -- port of every engine test in * crates/aienos-kernel/src/store/engine.rs (mount classification, history, diff --git a/native/store/tests/store_powercut_test.c b/native/store/tests/store_powercut_test.c index e1afd194..c5ba8e72 100644 --- a/native/store/tests/store_powercut_test.c +++ b/native/store/tests/store_powercut_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Power cut at every block boundary of one transaction, plain Store and * sealed store, 512- and 4096-byte geometry, file-backed (disk_file). After * each cut the device is reopened and must show exactly the old state or diff --git a/native/store/tests/store_rig.h b/native/store/tests/store_rig.h index e0584e6e..c7f82e50 100644 --- a/native/store/tests/store_rig.h +++ b/native/store/tests/store_rig.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* File-backed test rig for the sealed store: one disk_file device holding a * 4-unit torn_slot anchor region at LBA 0 and a 64-unit Store region after * it. Hosted test code only. */ diff --git a/native/store/tests/store_sealed_test.c b/native/store/tests/store_sealed_test.c index 41f0f7de..8a614bec 100644 --- a/native/store/tests/store_sealed_test.c +++ b/native/store/tests/store_sealed_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Sealed store tests (M5 envelopes + transaction records + torn_slot anchor), * file-backed through native/disk disk_file, 512 and 4096 geometry. */ #include "store_test_util.h" diff --git a/native/store/tests/store_test_util.h b/native/store/tests/store_test_util.h index af44e8dd..d4c015fa 100644 --- a/native/store/tests/store_test_util.h +++ b/native/store/tests/store_test_util.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* Shared helpers for the native Store tests (hosted: libc allowed here). */ #ifndef STORE_TEST_UTIL_H #define STORE_TEST_UTIL_H diff --git a/native/store/tests/store_v1_test.c b/native/store/tests/store_v1_test.c index 01ed7c0d..c23007e1 100644 --- a/native/store/tests/store_v1_test.c +++ b/native/store/tests/store_v1_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_v1_test.c -- byte identity of the C Store v1 format against * docs/adr/0015-golden-vectors.json, plus a port of every Rust negative test diff --git a/native/store/tests/store_xcheck.c b/native/store/tests/store_xcheck.c index 475cb038..74edcfe2 100644 --- a/native/store/tests/store_xcheck.c +++ b/native/store/tests/store_xcheck.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * store_xcheck.c -- small hosted CLI used by tests/rust_crosscheck.sh to hand * C-written Store images to the Rust aienos-store-tool and to classify images diff --git a/native/store/tests/torn_slot_test.c b/native/store/tests/torn_slot_test.c index 99248463..6c80989c 100644 --- a/native/store/tests/torn_slot_test.c +++ b/native/store/tests/torn_slot_test.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * torn_slot_test.c -- host block-device emulation and exhaustive torn-write * fault injection for torn_slot.c. diff --git a/native/store/torn_slot.c b/native/store/torn_slot.c index 98351196..c10b4523 100644 --- a/native/store/torn_slot.c +++ b/native/store/torn_slot.c @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * torn_slot.c -- see torn_slot.h for the protocol and its argument. * No heap, no clock, no I/O except through the ts_device callbacks. diff --git a/native/store/torn_slot.h b/native/store/torn_slot.h index 802f9499..26e2da93 100644 --- a/native/store/torn_slot.h +++ b/native/store/torn_slot.h @@ -1,3 +1,19 @@ +/* SPDX-License-Identifier: Apache-2.0 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * torn_slot.h -- torn-write-safe 4096-byte record over 512- or 4096-byte * logical blocks (host reference, C, no outside library). diff --git a/scripts/.crumb b/scripts/.crumb index 610b7ddd..926b87ee 100644 --- a/scripts/.crumb +++ b/scripts/.crumb @@ -7,14 +7,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-19T15:08:12Z", + "compiled_at": "2026-10-24T04:15:32Z", "compiler": "crumb-compile/1", - "digest": "sha256:28cf2363c4d527a9d7ecc2974f3dcda3e065959cbddaed7863d9c9354f166967", + "digest": "sha256:0794e1ad2bcb73135f89ff006231c855c3d8aec44b90e10b4e9f252bed562f2b", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 119, - "generated_at_commit": "00d77597386501631f08ac78ea5c0c3a0795348f", - "source_tree": "sha256:be5e87b53a3b65b5663691620e616c5490a3a866f959349e7b608ead2a5ffcf6" + "generated_at_commit": "621c9e6fe430ee689836bee3ee2689d7d32e0f7d", + "source_tree": "sha256:c1950abfc89f1dfee5bceba57e7bd74ed699f27c905ce3a7c0dad2f95bbba218" }, "owner_lane": "", "provenance": { diff --git a/scripts/build_recovery_media.sh b/scripts/build_recovery_media.sh index c1edc88d..b2a974ec 100755 --- a/scripts/build_recovery_media.sh +++ b/scripts/build_recovery_media.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # build_recovery_media.sh: Build standalone UEFI recovery system on target USB drive # Certified for Secure Boot execution using signed Shim + GRUB / standalone RAM recovery payload. # Invariant: 100% self-contained RAM disk under rdinit=/init. Internal NVMe must not be mounted. diff --git a/scripts/build_standalone_recovery_initrd.sh b/scripts/build_standalone_recovery_initrd.sh index d173ecd5..8e2aa278 100755 --- a/scripts/build_standalone_recovery_initrd.sh +++ b/scripts/build_standalone_recovery_initrd.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # build_standalone_recovery_initrd.sh: Creates a 100% self-contained recovery initrd # Does NOT mount or require internal NVMe root. Contains busybox/shell, cryptsetup, # gocryptfs, age, tpm2 tools, and diagnostic recovery utilities. diff --git a/scripts/cap_abi_isolation_test.sh b/scripts/cap_abi_isolation_test.sh index 1bd6bee7..8cb9f429 100755 --- a/scripts/cap_abi_isolation_test.sh +++ b/scripts/cap_abi_isolation_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # The native C capability authority and the Rust capability crates are two # separate implementations with incompatible layouts: # diff --git a/scripts/capture_gate1_receipt.sh b/scripts/capture_gate1_receipt.sh index d5eb201b..3a4c004f 100755 --- a/scripts/capture_gate1_receipt.sh +++ b/scripts/capture_gate1_receipt.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # FLAG(sovereignty): the tool list below names /bin/tpm2_pcrread (outside dep) in the recovery-image receipt; follows the in-house C replacement. # capture_gate1_receipt.sh: write the TRUST-1 Gate 1 (standalone RAM recovery # media) receipt from checks that actually ran. Nothing in the receipt is diff --git a/scripts/check_receipt_labels.sh b/scripts/check_receipt_labels.sh index ef582199..761e93a3 100755 --- a/scripts/check_receipt_labels.sh +++ b/scripts/check_receipt_labels.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # check_receipt_labels.sh: lint for evidence receipts that carry hardcoded # invariant labels (a literal `true` inside an "invariants" block). # diff --git a/scripts/ck_gates.sh b/scripts/ck_gates.sh index 7ef86853..133d0261 100755 --- a/scripts/ck_gates.sh +++ b/scripts/ck_gates.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_gates.sh: one entrypoint for the AIENOS C kernel ("CK", Lane 18) QEMU # gates, with a content-addressed receipt. # diff --git a/scripts/ck_imac_report_test.sh b/scripts/ck_imac_report_test.sh index 03aa0b17..32b98c87 100755 --- a/scripts/ck_imac_report_test.sh +++ b/scripts/ck_imac_report_test.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_imac_report_test.sh -- host test of the iMac kernel's network report: # the frames x86/report_x86.c builds (Ethernet broadcast, IPv4, UDP with a # checksum, part headers) and the receiver tools/ck_imac_report_listen.c, diff --git a/scripts/ck_owner_keys_check.sh b/scripts/ck_owner_keys_check.sh index 4e8ca923..ee10d3aa 100755 --- a/scripts/ck_owner_keys_check.sh +++ b/scripts/ck_owner_keys_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_owner_keys_check.sh -- build-side proof that the C kernel hardware # staging image never embeds the TEST Store keys, the TEST store uuid or the # TEST machine id (native/kernel/README.md, "Owner provisioning"). diff --git a/scripts/ck_pi5_build_check.sh b/scripts/ck_pi5_build_check.sh index 84a6feca..05dac766 100755 --- a/scripts/ck_pi5_build_check.sh +++ b/scripts/ck_pi5_build_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_pi5_build_check.sh -- AIENOS-PI5 step 1, build only. # # Builds the Raspberry Pi 5 kernel image (make -C native/kernel pi5) and checks: diff --git a/scripts/ck_pi5_manifest_check.sh b/scripts/ck_pi5_manifest_check.sh index e06208bb..7ed4e183 100755 --- a/scripts/ck_pi5_manifest_check.sh +++ b/scripts/ck_pi5_manifest_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_pi5_manifest_check.sh -- PI5-8 Q6 gate: the receipts manifest tool and its TEST-key signature round trip. # 1. synthetic run folders -> manifest; second run gives identical bytes; order of arguments does not matter; # 2. a missing run folder, an absent verdict line and an unknown run tag each make the tool fail with no output; diff --git a/scripts/ck_pi5_owner_check.sh b/scripts/ck_pi5_owner_check.sh index e325aef9..7e577c93 100755 --- a/scripts/ck_pi5_owner_check.sh +++ b/scripts/ck_pi5_owner_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_pi5_owner_check.sh -- PI5-8 Q2 gate: the owner-key ceremony tooling, proven with SOFTWARE keys only (TEST). # 1. PIV public key (PEM) -> CK_OWNER_PUBKEYS file conversion is exact; anything that is not an Ed25519 key is refused; # 2. the ceremony dry run (software key, labelled TEST) runs end to end and never calls a YubiKey tool (tripwire); diff --git a/scripts/ck_pi5_repro_check.sh b/scripts/ck_pi5_repro_check.sh index 6e9dca42..01246dc9 100755 --- a/scripts/ck_pi5_repro_check.sh +++ b/scripts/ck_pi5_repro_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_pi5_repro_check.sh -- PI5-8 Q1, reproducible builds of every Raspberry Pi 5 image. # # scripts/ck_pi5_repro_check.sh [commit] (default: HEAD of this checkout) diff --git a/scripts/ck_repro_build.sh b/scripts/ck_repro_build.sh index 5d162476..21da3062 100755 --- a/scripts/ck_repro_build.sh +++ b/scripts/ck_repro_build.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_repro_build.sh -- build the AIENOS C kernel UEFI image twice from the same # clean commit, in two fresh output folders, and compare the sha256 digests # (docs/native/PREFLIGHT-AND-RECOVERY.md section 1). Host only: builds files diff --git a/scripts/ck_shards_verify.sh b/scripts/ck_shards_verify.sh index 57a5422e..44ccbcfe 100644 --- a/scripts/ck_shards_verify.sh +++ b/scripts/ck_shards_verify.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # ck_shards_verify.sh: the CK CI final check. Reads the stdout of every sharded # `ck_gates.sh --only ...` run and proves the shards together are one complete # gate run: diff --git a/scripts/collect_boot_report.sh b/scripts/collect_boot_report.sh index 1b5defc2..87563797 100755 --- a/scripts/collect_boot_report.sh +++ b/scripts/collect_boot_report.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Collect and judge the evidence from an AIENOS first-boot attempt. Read-only. # Run under `aien-proof hold --resource machine-1` so the full output becomes # an audit event in the hardware-test ledger. diff --git a/scripts/collect_recovery_boot_evidence.sh b/scripts/collect_recovery_boot_evidence.sh index c2c491e8..3affe6a5 100755 --- a/scripts/collect_recovery_boot_evidence.sh +++ b/scripts/collect_recovery_boot_evidence.sh @@ -1,4 +1,19 @@ #!/bin/bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # collect_recovery_boot_evidence.sh: Record evidence that the AIENOS recovery # USB actually booted Machine 1 into a rescue environment that can mount the # NVMe root, repair /boot/efi, and restore boot entries (issue #17). diff --git a/scripts/freeze_reality.sh b/scripts/freeze_reality.sh index 552e26b4..0ce39dfa 100755 --- a/scripts/freeze_reality.sh +++ b/scripts/freeze_reality.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Capture observed Config A data without changing host boot state. # Arguments pass through to `aienos-evidence capture` (see --help text there), # for example: --model PATH --repo aienos=PATH --repo aien-sovereign-core=PATH diff --git a/scripts/gate_hold_selftest.sh b/scripts/gate_hold_selftest.sh index 4041a551..3f873827 100644 --- a/scripts/gate_hold_selftest.sh +++ b/scripts/gate_hold_selftest.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Self-test of scripts/lib_gate_hold.sh, the one way QEMU gate scripts treat # the machine quiet flag and the QEMU gate lock (aienos#278). # diff --git a/scripts/gb10_iort_decode.sh b/scripts/gb10_iort_decode.sh index 77d13ae3..d2f94003 100755 --- a/scripts/gb10_iort_decode.sh +++ b/scripts/gb10_iort_decode.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # gb10_iort_decode.sh: dump the firmware IORT table (read-only) and resolve the # GB10 (PCI segment 15, requester id 0x0100) to its SMMUv3 node and stream id. # Host only. Needs root to read /sys/firmware/acpi/tables/IORT. Changes nothing. diff --git a/scripts/gb10_profile.sh b/scripts/gb10_profile.sh index 05487157..6f7b47cc 100755 --- a/scripts/gb10_profile.sh +++ b/scripts/gb10_profile.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Read-only GB10 hardware characterization collector for Linux (Machine 1). # # This script only reads. It opens no sysfs attribute for writing, changes no diff --git a/scripts/generate_owner_boot_keys.sh b/scripts/generate_owner_boot_keys.sh index 9cb9bca8..57ad4389 100755 --- a/scripts/generate_owner_boot_keys.sh +++ b/scripts/generate_owner_boot_keys.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # generate_owner_boot_keys.sh: Generates disposable development/test MOK signing key # DISPOSABLE DEVELOPMENT/TEST MATERIAL ONLY. # Invariant: This is NOT the TRUST-1 Q13 Owner Root or production Boot Signer. diff --git a/scripts/iort_decode.rs b/scripts/iort_decode.rs index 5f4b78da..35668fcd 100644 --- a/scripts/iort_decode.rs +++ b/scripts/iort_decode.rs @@ -1,3 +1,18 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026 Drake Stapleton (AIEN / aien-dev) +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // scripts/iort_decode.rs: read-only ACPI IORT decoder (host tool, std only, no deps). // Build: rustc --edition 2021 -O -o iort_decode scripts/iort_decode.rs // Run: sudo cat /sys/firmware/acpi/tables/IORT > IORT.bin && ./iort_decode IORT.bin [segment rid_hex] diff --git a/scripts/l6_host_receipt.sh b/scripts/l6_host_receipt.sh index 6e2dc3e5..56208030 100755 --- a/scripts/l6_host_receipt.sh +++ b/scripts/l6_host_receipt.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # L6-A: host-side tokens-per-second receipt (aienos#34 lane 6). # Runs the l6_host example pinned to cores 0 and 19 (core types are read from /proc/cpuinfo, not assumed; # on this machine they interleave: cpu0=0xd87 A725, cpu19=0xd85 X925), diff --git a/scripts/lib_ck_cont_qemu.sh b/scripts/lib_ck_cont_qemu.sh index d2f55bd6..f60005eb 100644 --- a/scripts/lib_ck_cont_qemu.sh +++ b/scripts/lib_ck_cont_qemu.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Shared machinery of the C kernel continuity and Recovery Core QEMU gates # (scripts/qemu_ck_continuity_test.sh = CK gate M4_CONTINUITY, # scripts/qemu_ck_recovery_test.sh = CK gate M4_RECOVERY). Sourced, not run. diff --git a/scripts/lib_ck_m1_checks.sh b/scripts/lib_ck_m1_checks.sh index 6fd889c0..192786fa 100644 --- a/scripts/lib_ck_m1_checks.sh +++ b/scripts/lib_ck_m1_checks.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Shared AIENOS C kernel M1 checks (Lane 18). Sourced by qemu_ck_boot_test.sh # and qemu_ck_store_test.sh so both gates run the identical M1 checks; the # patterns are those of qemu_boot_test.sh (the Rust kernel's test) except diff --git a/scripts/lib_gate_hold.sh b/scripts/lib_gate_hold.sh index d5f3b31a..5d1060c5 100644 --- a/scripts/lib_gate_hold.sh +++ b/scripts/lib_gate_hold.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # shellcheck shell=bash # lib_gate_hold.sh: how a QEMU gate script treats the machine quiet flag and # the QEMU gate lock (aienos#278). Sourced; sets no shell options. diff --git a/scripts/lib_verify_summary.sh b/scripts/lib_verify_summary.sh index a2400b67..8976b651 100644 --- a/scripts/lib_verify_summary.sh +++ b/scripts/lib_verify_summary.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # lib_verify_summary.sh: the skipped-step bookkeeping and the closing verdict # of scripts/verify_all.sh, kept here so the verdict can be tested without # cargo or QEMU. Source it; or run `bash scripts/lib_verify_summary.sh diff --git a/scripts/m3_receipt.sh b/scripts/m3_receipt.sh index bfe9085c..7fdcabac 100755 --- a/scripts/m3_receipt.sh +++ b/scripts/m3_receipt.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # m3_receipt.sh: produce one reproducible M3 evidence receipt for the commit # that is checked out. # diff --git a/scripts/native_boot_preflight.sh b/scripts/native_boot_preflight.sh index 068fe014..fcfdb74a 100755 --- a/scripts/native_boot_preflight.sh +++ b/scripts/native_boot_preflight.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # native_boot_preflight.sh -- READ-ONLY preflight before an attended one-time # native AIENOS boot on the Spark (docs/native/PREFLIGHT-AND-RECOVERY.md # section 2). It only reads: `efibootmgr` with no arguments, the SecureBoot diff --git a/scripts/native_package.sh b/scripts/native_package.sh index 79bbeb6d..dea45a74 100755 --- a/scripts/native_package.sh +++ b/scripts/native_package.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # native_package.sh -- reproducible AIENOS native package with exact manifests # and owner-signed verification (AIEN native v1 plan, P11 cut 1b, gate N7). # diff --git a/scripts/native_package_test.sh b/scripts/native_package_test.sh index 4d8f1d1c..01f60a6c 100755 --- a/scripts/native_package_test.sh +++ b/scripts/native_package_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # native_package_test.sh -- self-test of scripts/native_package.sh (P11 cut 1b and # its provenance record). Build-only; nothing is booted. Uses the RFC 8032 TEST 1 # signer (never for hardware), the labelled TEST-FIXTURE owner files, and one diff --git a/scripts/omega_lock_check.sh b/scripts/omega_lock_check.sh index 102f02c6..49a172b1 100755 --- a/scripts/omega_lock_check.sh +++ b/scripts/omega_lock_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # omega_lock_check.sh -- the vendored Omega sources (native/kernel/third_party/omega) # are byte for byte the files of the omega commit named in omega.lock. # diff --git a/scripts/pi5-8/host_golden.sh b/scripts/pi5-8/host_golden.sh index d94ce635..3dd6f457 100755 --- a/scripts/pi5-8/host_golden.sh +++ b/scripts/pi5-8/host_golden.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # PI5-8 host golden check: the engine's forward pass vs llama.cpp, greedy tokens, one model, three prompts. # host_golden.sh MODEL.gguf TEMPLATE EOS_ID [N=16] [sdot] # TEMPLATE: llama3 | zephyr | danube | chatml sdot: use the dotprod int8 path (default: f32 scalar) diff --git a/scripts/pi5-8/install_owner_tools.sh b/scripts/pi5-8/install_owner_tools.sh index 5d337b14..dcc21860 100755 --- a/scripts/pi5-8/install_owner_tools.sh +++ b/scripts/pi5-8/install_owner_tools.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # install_owner_tools.sh -- PI5-8 Q2: install the YubiKey tools the owner-key ceremony needs. Host only; never touches a YubiKey. # # scripts/pi5-8/install_owner_tools.sh diff --git a/scripts/pi5-8/owner_ceremony.sh b/scripts/pi5-8/owner_ceremony.sh index 8ecded06..b77dd9f6 100755 --- a/scripts/pi5-8/owner_ceremony.sh +++ b/scripts/pi5-8/owner_ceremony.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # owner_ceremony.sh -- PI5-8 Q2: the AIENOS owner-key ceremony on Drake's YubiKey (PIV, Ed25519, slot 9c). # # owner_ceremony.sh --dry-run [--out DIR] rehearsal with a SOFTWARE key (openssl). Labelled TEST. Never touches a YubiKey. diff --git a/scripts/pi5-8/owner_pubkey_file.sh b/scripts/pi5-8/owner_pubkey_file.sh index 1e6fda28..dea8d4d3 100755 --- a/scripts/pi5-8/owner_pubkey_file.sh +++ b/scripts/pi5-8/owner_pubkey_file.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # owner_pubkey_file.sh -- PI5-8 Q2: turn an exported Ed25519 public key into the CK_OWNER_PUBKEYS file (PUBLIC material only). # # scripts/pi5-8/owner_pubkey_file.sh PUBKEY.pem OUTFILE ["comment text"] diff --git a/scripts/pi5-8/pi_run.sh b/scripts/pi5-8/pi_run.sh index 720273de..21171271 100755 --- a/scripts/pi5-8/pi_run.sh +++ b/scripts/pi5-8/pi_run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # PI5-8: put one model on the card's raw AIENOS-MODEL partition (p3), run the measurement image once, clean up. # pi_run.sh MODEL.gguf MODEL.MAP BOOTAA64.EFI TAG [--no-write | --write-only] # --no-write: p3 already holds the model (only verify it); --write-only: write and verify p3, do not run. diff --git a/scripts/pi5/efi-commit.sh b/scripts/pi5/efi-commit.sh index fb633abf..7443ddd5 100755 --- a/scripts/pi5/efi-commit.sh +++ b/scripts/pi5/efi-commit.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # efi-commit.sh -- print the source commit stamp compiled into an AIENOS kernel EFI. # # efi-commit.sh diff --git a/scripts/pi5/klog-lib.sh b/scripts/pi5/klog-lib.sh index 7f1135eb..7c5013c4 100644 --- a/scripts/pi5/klog-lib.sh +++ b/scripts/pi5/klog-lib.sh @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # klog-lib.sh -- KLOG slot helpers for pi5-run.sh (sourced). Formats: # aienos native/kernel/core/klog_slot.h (struct ck_klog_map, ck_klog_hdr). le32() { local v=$1; printf '\\x%02x\\x%02x\\x%02x\\x%02x' $((v&255)) $(((v>>8)&255)) $(((v>>16)&255)) $(((v>>24)&255)); } diff --git a/scripts/pi5/pi5-run.sh b/scripts/pi5/pi5-run.sh index 5576df47..4798f003 100755 --- a/scripts/pi5/pi5-run.sh +++ b/scripts/pi5/pi5-run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Runs from the Spark against the hub Pi 5 over ssh (host alias "hub"); never run it on the hub itself. Run folders go under $PI5_RUNS_DIR (default ~/workspace/pi5-runs). # pi5-run.sh -- one remote, one-shot AIENOS test run on the hub Raspberry Pi 5. # diff --git a/scripts/pi5_fact_req.sh b/scripts/pi5_fact_req.sh index bb2ef359..faf6100b 100755 --- a/scripts/pi5_fact_req.sh +++ b/scripts/pi5_fact_req.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pi5_fact_req.sh -- write a fact request file for the PI5-5 Cortex qualification image (make pi5-fact). # QUALIFICATION ONLY. Layout: native/kernel/core/fact_req.h (512 bytes: magic AIENFCT1, version 1, flags 0, # tag QUALIF-FACT-DATA, length 1..48, reserved 0, printable ASCII text, zero padding). diff --git a/scripts/pi5_receipts_manifest.sh b/scripts/pi5_receipts_manifest.sh index fd5ff45a..a5730930 100755 --- a/scripts/pi5_receipts_manifest.sh +++ b/scripts/pi5_receipts_manifest.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pi5_receipts_manifest.sh -- PI5-8 Q6: canonical, deterministic manifest of Pi run evidence. # # scripts/pi5_receipts_manifest.sh [-t verdicts.tsv] ... (folders like ~/workspace/pi5-runs/) diff --git a/scripts/pi5_run_artifact.sh b/scripts/pi5_run_artifact.sh index 50891055..1cad77a6 100755 --- a/scripts/pi5_run_artifact.sh +++ b/scripts/pi5_run_artifact.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pi5-run-artifact.sh (pi5-run.sh plus ARTIFACT_BND=, PI5-7 cut 3) -- one remote, one-shot AIENOS test run on the hub Raspberry Pi 5. # # [KLOG=1] [UNLOCK_REQ=<512-byte request file>] [MODEL_MAP=<4096-byte MODEL.MAP>] pi5-run.sh [wait-file] diff --git a/scripts/pi5_unlock_req.sh b/scripts/pi5_unlock_req.sh index 526459d1..8d2f2dc7 100755 --- a/scripts/pi5_unlock_req.sh +++ b/scripts/pi5_unlock_req.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pi5_unlock_req.sh -- write a THROWAWAY unlock request file for the PI5-4 qualification image # (make pi5-unlock-card). QUALIFICATION ONLY. Layout: native/kernel/core/unlock_req.h # (512 bytes: magic AIENUNQ1, version 1, flags 0, tag QUALIF-THROWAWAY, 32-byte secret, zero padding). diff --git a/scripts/qemu_artifact_test.sh b/scripts/qemu_artifact_test.sh index 6d0786c1..0f769765 100755 --- a/scripts/qemu_artifact_test.sh +++ b/scripts/qemu_artifact_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SEED-0B QEMU qualification (P2-5 loader, P2-6 SEED-0B artifact and # Admission Receipt v0, P2-7 negative matrix) in QEMU AArch64 (UEFI, EL2). # diff --git a/scripts/qemu_boot_test.sh b/scripts/qemu_boot_test.sh index 0157d807..897fda1d 100755 --- a/scripts/qemu_boot_test.sh +++ b/scripts/qemu_boot_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Boot the AIENOS handoff image in QEMU AArch64 with UEFI (AAVMF) and check the # serial console for the pre-exit report, the kernel reaching `kernel: alive`, # and the final report. The guest starts at EL2 like Machine 1, and PSCI reset diff --git a/scripts/qemu_ck_allen_test.sh b/scripts/qemu_ck_allen_test.sh index 78644904..f52cea4e 100755 --- a/scripts/qemu_ck_allen_test.sh +++ b/scripts/qemu_ck_allen_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CK gate M4_ALLEN: the ALLEN subject (ARCH-0035 / OS-0018, both PROPOSED) in # the AIENOS lifecycle, on a 4096-byte-LBA emulated NVMe image under QEMU, one # cold QEMU process per boot (scripts/lib_ck_cont_qemu.sh: every boot is a new diff --git a/scripts/qemu_ck_artifact_card_test.sh b/scripts/qemu_ck_artifact_card_test.sh index d8831f47..98972373 100755 --- a/scripts/qemu_ck_artifact_card_test.sh +++ b/scripts/qemu_ck_artifact_card_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # QEMU twin of the Raspberry Pi 5 EL0 artifact qualification image (PI5-7 cut 3, native/kernel/core/artifact_card.h). # Builds the SAME code the Pi image runs (make CK_ARTIFACT_CARD=1 CK_SEED0B_TEST_ANCHOR=1, the core image with the card # bundle source; the Pi image adds only CK_PI5) and boots it in QEMU AArch64 + UEFI (AAVMF) with the signed artifacts in ONE diff --git a/scripts/qemu_ck_artifact_test.sh b/scripts/qemu_ck_artifact_test.sh index c6c82320..aea5a1c8 100755 --- a/scripts/qemu_ck_artifact_test.sh +++ b/scripts/qemu_ck_artifact_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Boot the AIENOS C kernel with the P2 sealed-artifact loader # (native/kernel/core/artifact_loader.c) in QEMU AArch64 + UEFI (AAVMF) and # check the serial console against the same expectations as the Rust gate diff --git a/scripts/qemu_ck_b7b_probe_test.sh b/scripts/qemu_ck_b7b_probe_test.sh index 24087f07..22fa0bc4 100755 --- a/scripts/qemu_ck_b7b_probe_test.sh +++ b/scripts/qemu_ck_b7b_probe_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # B7b preparation probe gate (aienos#286). Boots the C kernel core image built # with CK_B7B_PROBE=1 in QEMU AArch64 (UEFI/AAVMF, EL2, iommu=smmuv3) and checks # the probe lines of core/smmu_svc.c ck_b7b_probe. QEMU is not hardware: a PASS diff --git a/scripts/qemu_ck_boot_test.sh b/scripts/qemu_ck_boot_test.sh index 10f7af79..bcccd097 100755 --- a/scripts/qemu_ck_boot_test.sh +++ b/scripts/qemu_ck_boot_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Boot the AIENOS C kernel core (native/boot + native/kernel, Lane 18) in QEMU # AArch64 with UEFI (AAVMF) and check the serial console with the same QEMU # invocation and the same patterns as scripts/qemu_boot_test.sh (the Rust diff --git a/scripts/qemu_ck_console_test.sh b/scripts/qemu_ck_console_test.sh index c76f9809..62447334 100755 --- a/scripts/qemu_ck_console_test.sh +++ b/scripts/qemu_ck_console_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CONSOLE gate for the AIENOS C kernel (Campaign 3 cut C3-1a): rows 146-155 of # native/kernel/GATES.md "C3-1a console session". C-only (no Rust oracle). # QEMU is not hardware: a PASS here qualifies nothing physical. diff --git a/scripts/qemu_ck_continuity_test.sh b/scripts/qemu_ck_continuity_test.sh index 614946e6..78b0c2a6 100755 --- a/scripts/qemu_ck_continuity_test.sh +++ b/scripts/qemu_ck_continuity_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CK gate M4_CONTINUITY: C kernel continuity (resolve/provision/resume/commit) # on a 4096-byte-LBA NVMe image under QEMU, one cold QEMU process per boot. # Oracle: scripts/qemu_continuity_test.sh (Rust). Contract section 6.1. diff --git a/scripts/qemu_ck_disk_layout_test.sh b/scripts/qemu_ck_disk_layout_test.sh index a464cad9..4cbf286b 100755 --- a/scripts/qemu_ck_disk_layout_test.sh +++ b/scripts/qemu_ck_disk_layout_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # DISK_LAYOUT gate for the AIENOS C kernel (CK-4, audit row R2 of # track4-aienos-trust.md): the kernel writes to a disk only inside the one # partition whose GPT type GUID is the AIENOS type diff --git a/scripts/qemu_ck_fpu_test.sh b/scripts/qemu_ck_fpu_test.sh index eb9fff95..2e8cdc85 100755 --- a/scripts/qemu_ck_fpu_test.sh +++ b/scripts/qemu_ck_fpu_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Boot the AIENOS C kernel with the FP/SIMD Rust probe linked in (QEMU AArch64, # UEFI/AAVMF, EL2 like Machine 1) and check that the kernel, built # -mgeneral-regs-only, ran ONE floating-point/SIMD-enabled Rust unit diff --git a/scripts/qemu_ck_imac_diag_test.sh b/scripts/qemu_ck_imac_diag_test.sh index b5b4b98b..9a497d22 100755 --- a/scripts/qemu_ck_imac_diag_test.sh +++ b/scripts/qemu_ck_imac_diag_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_ck_imac_diag_test.sh -- QEMU test for IMACDIAG.EFI (AIENOS-IMAC-BOOT-0, # native/boot/diag_main.c + diag_x86.c). QEMU is an emulator: a PASS here # qualifies nothing about a 2017 iMac or any other real x86_64 machine. diff --git a/scripts/qemu_ck_imac_kernel_test.sh b/scripts/qemu_ck_imac_kernel_test.sh index 701b4331..88c11248 100755 --- a/scripts/qemu_ck_imac_kernel_test.sh +++ b/scripts/qemu_ck_imac_kernel_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_ck_imac_kernel_test.sh -- QEMU test for IMACKERN.EFI (AIENOS-IMAC-KERNEL-0, # native/kernel/x86). QEMU is an emulator: a PASS here qualifies nothing about a # 2017 iMac or any other real x86_64 machine. diff --git a/scripts/qemu_ck_infer_test.sh b/scripts/qemu_ck_infer_test.sh index 07a26b96..a04d9b20 100755 --- a/scripts/qemu_ck_infer_test.sh +++ b/scripts/qemu_ck_infer_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Boot the AIENOS C kernel with the inference unit linked in (QEMU AArch64, # UEFI/AAVMF, EL2 like Machine 1, -m 4096), let the kernel ingest the # Llama-3.2-1B-Instruct Q4_K_M GGUF (807,694,368 bytes) into its own RAM over diff --git a/scripts/qemu_ck_keyboard_test.sh b/scripts/qemu_ck_keyboard_test.sh index c3921466..bda53f5a 100755 --- a/scripts/qemu_ck_keyboard_test.sh +++ b/scripts/qemu_ck_keyboard_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # KEYBOARD gate for the AIENOS C kernel: rows 25-32 (C-only 30a-30c, 32a, 32b) of native/kernel/GATES.md # "SEED-0A keyboard" (Rust oracle: scripts/qemu_keyboard_test.sh with SMMU=1 # and SMMU=0) plus the C-only rows 30a-30c (recovery access, line overflow). diff --git a/scripts/qemu_ck_lifecycle_test.sh b/scripts/qemu_ck_lifecycle_test.sh index b18031a1..31655aee 100755 --- a/scripts/qemu_ck_lifecycle_test.sh +++ b/scripts/qemu_ck_lifecycle_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # LIFECYCLE gate for the AIENOS C kernel (native v1 plan P03 + P04 cut 1 + P05 # cut 1 + P06 cut 2): rows 160-176 of native/kernel/GATES.md "LIFECYCLE resident # production lifecycle". C-only. diff --git a/scripts/qemu_ck_memory_test.sh b/scripts/qemu_ck_memory_test.sh index a3b0ceef..d1c2c8de 100755 --- a/scripts/qemu_ck_memory_test.sh +++ b/scripts/qemu_ck_memory_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # MEMORY gate for the AIENOS C kernel (native v1 gate N3, aienos#329): rows # 211-220 of native/kernel/GATES.md "MEMORY memory-conditioned generation". # C-only. QEMU is not hardware: a PASS here qualifies nothing physical. diff --git a/scripts/qemu_ck_net_test.sh b/scripts/qemu_ck_net_test.sh index c5842129..95f89bc3 100755 --- a/scripts/qemu_ck_net_test.sh +++ b/scripts/qemu_ck_net_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Network gate for the AIENOS C kernel: AIENOS_CK_NET (C-only gate; the Rust # kernel has no virtio-net queue driver, so there is no Rust counterpart). # Boots the full C image (make full) in QEMU AArch64 with UEFI (AAVMF), an diff --git a/scripts/qemu_ck_osc_launch_test.sh b/scripts/qemu_ck_osc_launch_test.sh index 69c2d7e0..9453b210 100755 --- a/scripts/qemu_ck_osc_launch_test.sh +++ b/scripts/qemu_ck_osc_launch_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIENOS_CK_OSC_LAUNCH gate: task launch of an admitted OSC unit (C3-3a) in the C kernel, booted in # QEMU AArch64 + UEFI (AAVMF). Contract: OSC_UNIT_ARTIFACT.md section 9 (aien-protocols PR #17). # diff --git a/scripts/qemu_ck_osc_receipt_test.sh b/scripts/qemu_ck_osc_receipt_test.sh index 19f50954..4e20d0ad 100755 --- a/scripts/qemu_ck_osc_receipt_test.sh +++ b/scripts/qemu_ck_osc_receipt_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIENOS_CK_OSC_RECEIPT gate (aienos#383): the C kernel refuses to launch an OSC unit unless a valid signed Omega # realization receipt (omega spec/one-layer-receipts.md, receipt v1) comes with it. Booted in QEMU AArch64 + UEFI # (AAVMF). diff --git a/scripts/qemu_ck_osc_unit_test.sh b/scripts/qemu_ck_osc_unit_test.sh index 368d54c3..ba973abd 100755 --- a/scripts/qemu_ck_osc_unit_test.sh +++ b/scripts/qemu_ck_osc_unit_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIENOS_CK_OSC_UNIT gate: OSC unit admission (OSC_UNIT_ARTIFACT v1, aien-protocols # PR #17) in the C kernel, booted in QEMU AArch64 + UEFI (AAVMF). # diff --git a/scripts/qemu_ck_osh_core_test.sh b/scripts/qemu_ck_osh_core_test.sh index 42d1ba4e..9a31687e 100755 --- a/scripts/qemu_ck_osh_core_test.sh +++ b/scripts/qemu_ck_osh_core_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIENOS_CK_OSH_CORE gate (OSH-AIENOS-0): the Omega-native shell core (three compiled OSC units lex_run, parse_run, # expand_run, packed by native/kernel/tests/fixtures/osh/make-osh-units.sh from omega's oscc output) runs as admitted EL0 # tasks under the C kernel and produces exactly the same step trace as on Linux. Differential: the same compiled bytes, diff --git a/scripts/qemu_ck_osh_op_test.sh b/scripts/qemu_ck_osh_op_test.sh index 542e1fb1..627384cc 100755 --- a/scripts/qemu_ck_osh_op_test.sh +++ b/scripts/qemu_ck_osh_op_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIENOS_CK_OSH_OP gate (OSH-AIENOS-OP, aien-architecture#158): a REAL capability-authorized operation through the shared # OSH interface. The same three compiled shell units (lex_run, parse_run, expand_run) run as admitted EL0 tasks; on a ready # pipeline the request record goes to the adapter's operation layer (native/kernel/core/osh_op.c) instead of a fake status. diff --git a/scripts/qemu_ck_pi5_diag_test.sh b/scripts/qemu_ck_pi5_diag_test.sh index 1c0bdc0b..c16c1a97 100755 --- a/scripts/qemu_ck_pi5_diag_test.sh +++ b/scripts/qemu_ck_pi5_diag_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_ck_pi5_diag_test.sh -- QEMU test for PI5DIAG.EFI (AIENOS-PI5-BOOT-0, # native/boot/diag_main.c). QEMU is an emulator: a PASS here qualifies nothing # about a Raspberry Pi 5. diff --git a/scripts/qemu_ck_recovery_test.sh b/scripts/qemu_ck_recovery_test.sh index a80b7c7e..d253bfbe 100755 --- a/scripts/qemu_ck_recovery_test.sh +++ b/scripts/qemu_ck_recovery_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # CK gate M4_RECOVERY: C kernel Recovery Core (inspect / repair-degraded-peer / # provision-identity, operator-authorised) under QEMU, one cold boot each. # Oracle: scripts/qemu_recovery_test.sh (Rust). Contract section 6.2. diff --git a/scripts/qemu_ck_rollback_test.sh b/scripts/qemu_ck_rollback_test.sh index b55b11a6..6eb2e207 100755 --- a/scripts/qemu_ck_rollback_test.sh +++ b/scripts/qemu_ck_rollback_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_ck_rollback_test.sh -- CK gate M0_ROLLBACK: one-time BootNext rollback # with the AIENOS C kernel image as the candidate, in QEMU AArch64 with AAVMF. # diff --git a/scripts/qemu_ck_screen_test.sh b/scripts/qemu_ck_screen_test.sh index 817af5d6..f287b581 100755 --- a/scripts/qemu_ck_screen_test.sh +++ b/scripts/qemu_ck_screen_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Boot the AIENOS C kernel core in QEMU AArch64 (UEFI/AAVMF, EL2 like # Machine 1) with a ramfb display and check that the kernel drew its console # on the UEFI Graphics Output Protocol framebuffer the boot stub handed over diff --git a/scripts/qemu_ck_service_disk_test.sh b/scripts/qemu_ck_service_disk_test.sh index c7f36dcf..8bdb3aae 100644 --- a/scripts/qemu_ck_service_disk_test.sh +++ b/scripts/qemu_ck_service_disk_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SERVICE_DISK gate for the AIENOS C kernel (native v1 P06 / gate N3, # aienos#34): rows 200-211 of native/kernel/GATES.md "SERVICE_DISK". C-only. # QEMU is not hardware: a PASS here qualifies nothing physical. diff --git a/scripts/qemu_ck_slot_loader_test.sh b/scripts/qemu_ck_slot_loader_test.sh index d7669eab..89cd79d4 100755 --- a/scripts/qemu_ck_slot_loader_test.sh +++ b/scripts/qemu_ck_slot_loader_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_ck_slot_loader_test.sh -- QEMU gate for SLOTLDR.EFI, the AIENOS signed # A/B image slot loader (native/boot/slot_loader.c; native v1 plan P11 cut 2a, # gate N7; docs/NATIVE_IMAGE_SLOTS.md section 7). QEMU is an emulator: a PASS diff --git a/scripts/qemu_ck_smp_test.sh b/scripts/qemu_ck_smp_test.sh index 2d1eab86..ccb0c8a0 100755 --- a/scripts/qemu_ck_smp_test.sh +++ b/scripts/qemu_ck_smp_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Boot the AIENOS C kernel core image in QEMU AArch64 (UEFI/AAVMF, EL2 like # Machine 1, -smp 4) and check the secondary-core bring-up of core/smp.c: # PSCI CPU_ON for every MADT core except the boot core, each core on its own diff --git a/scripts/qemu_ck_store_crash_test.sh b/scripts/qemu_ck_store_crash_test.sh index e1f9fe96..a0752ad3 100755 --- a/scripts/qemu_ck_store_crash_test.sh +++ b/scripts/qemu_ck_store_crash_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Store crash gate for the AIENOS C kernel: CK gate M4_STORE_CRASH. # C-kernel port of the Rust campaigns scripts/qemu_store_crash_test.sh # (4096-byte LBA) and scripts/qemu_store_512b_crash_test.sh (512-byte LBA). diff --git a/scripts/qemu_ck_store_test.sh b/scripts/qemu_ck_store_test.sh index 72c48152..e33c6825 100755 --- a/scripts/qemu_ck_store_test.sh +++ b/scripts/qemu_ck_store_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Store gate for the AIENOS C kernel (Lane 18): boots the full C image (core + # devices, security and Store stages) in QEMU AArch64 with UEFI (AAVMF) and an # NVMe disk, using the base QEMU invocation of scripts/qemu_boot_test.sh plus diff --git a/scripts/qemu_continuity_test.sh b/scripts/qemu_continuity_test.sh index 7a90b5ab..407566a2 100755 --- a/scripts/qemu_continuity_test.sh +++ b/scripts/qemu_continuity_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # M4 continuity qualification in QEMU (ADR 0016, Proposed): the same AIEN # identity and committed memory survive cold restarts over System Store v1 on # the native NVMe driver, and no boot path ever mints a replacement identity. diff --git a/scripts/qemu_keyboard_test.sh b/scripts/qemu_keyboard_test.sh index f16862fe..c6116f38 100755 --- a/scripts/qemu_keyboard_test.sh +++ b/scripts/qemu_keyboard_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # SEED-0A `input.keyboard.usb` proof in QEMU (ADR 0012): boot the handoff # image built with the `usb-keyboard` feature on a qemu-xhci controller with # a usb-kbd, wait until the AIENOS driver reports the keyboard ready after diff --git a/scripts/qemu_native_nvme_test.sh b/scripts/qemu_native_nvme_test.sh index ad38819e..3780595e 100755 --- a/scripts/qemu_native_nvme_test.sh +++ b/scripts/qemu_native_nvme_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_native_nvme_test.sh -- boot a bare-metal AArch64 payload that drives # QEMU's emulated NVMe controller with the C driver in native/disk. # diff --git a/scripts/qemu_native_rollback_test.sh b/scripts/qemu_native_rollback_test.sh index 9fd056f4..03b85a75 100755 --- a/scripts/qemu_native_rollback_test.sh +++ b/scripts/qemu_native_rollback_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_native_rollback_test.sh # M0 Native-Boot Rollback Verification Test in QEMU AArch64 (AAVMF UEFI). # diff --git a/scripts/qemu_native_sdhci_test.sh b/scripts/qemu_native_sdhci_test.sh index 6ac22b98..be7c4252 100755 --- a/scripts/qemu_native_sdhci_test.sh +++ b/scripts/qemu_native_sdhci_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_native_sdhci_test.sh -- boot a bare-metal AArch64 payload that drives # QEMU's emulated PCI SD Host Controller and SD card with the C driver in # native/disk (disk_sdhci.c, the Pi 5 microSD driver). diff --git a/scripts/qemu_nvme_atomicity_test.sh b/scripts/qemu_nvme_atomicity_test.sh index 9b284b7a..5222430d 100755 --- a/scripts/qemu_nvme_atomicity_test.sh +++ b/scripts/qemu_nvme_atomicity_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # QEMU NVMe power-fail atomicity qualification for the System Store root write. # # Configures a disposable namespace with a 4096-byte logical block size and diff --git a/scripts/qemu_nvme_rw_test.sh b/scripts/qemu_nvme_rw_test.sh index f7192ce8..9d4279f3 100755 --- a/scripts/qemu_nvme_rw_test.sh +++ b/scripts/qemu_nvme_rw_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # P3 native NVMe WRITE + FLUSH durability proof in QEMU (disposable media). # # Two boots over ONE raw image file: diff --git a/scripts/qemu_nvme_test.sh b/scripts/qemu_nvme_test.sh index ec086ba3..f12f12b6 100755 --- a/scripts/qemu_nvme_test.sh +++ b/scripts/qemu_nvme_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # P3 native NVMe read substrate proof in QEMU (read-only qualification). # # Boot the handoff image built with the `nvme-read` feature with a raw, diff --git a/scripts/qemu_recovery_test.sh b/scripts/qemu_recovery_test.sh index 1b3b1c56..23e9dabb 100755 --- a/scripts/qemu_recovery_test.sh +++ b/scripts/qemu_recovery_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Recovery Core qualification in QEMU (ADR 0006): deterministic entry and # read-only inspection, operator-authorised repair and provisioning bound to # the exact on-disk state, and no action that mints an identity after diff --git a/scripts/qemu_secureboot_signing_test.sh b/scripts/qemu_secureboot_signing_test.sh index e7af00f4..c003d3cc 100755 --- a/scripts/qemu_secureboot_signing_test.sh +++ b/scripts/qemu_secureboot_signing_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_secureboot_signing_test.sh: TRUST-1 Gate 4, Secure Boot enforcement in QEMU. # # Boots the AIENOS handoff loader under AArch64 UEFI firmware with Secure diff --git a/scripts/qemu_security_suite.sh b/scripts/qemu_security_suite.sh index ffaa9f39..cfee19e3 100755 --- a/scripts/qemu_security_suite.sh +++ b/scripts/qemu_security_suite.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_security_suite.sh: TRUST-1 Gate 4 Security Test Suite in QEMU AArch64 # Includes: # 1. Software TPM 2.0 (swtpm) socket attachment diff --git a/scripts/qemu_smmu_test.sh b/scripts/qemu_smmu_test.sh index b6f91897..958497d4 100755 --- a/scripts/qemu_smmu_test.sh +++ b/scripts/qemu_smmu_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Exercise IORT discovery, SMMUv3 translation and real xHCI keyboard DMA. # Always the confined path: the unsafe DMA bypass is forced off here. set -euo pipefail diff --git a/scripts/qemu_store_512b_crash_test.sh b/scripts/qemu_store_512b_crash_test.sh index 3cf8ec8e..0c047ec4 100755 --- a/scripts/qemu_store_512b_crash_test.sh +++ b/scripts/qemu_store_512b_crash_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # System Store v1 over the native NVMe driver: 512-byte-LBA QEMU qualification. # # Geometry: 512-byte LBA (the native DGX Spark geometry, AWUPF=0: one logical diff --git a/scripts/qemu_store_crash_test.sh b/scripts/qemu_store_crash_test.sh index 707997cb..12f1a6a0 100755 --- a/scripts/qemu_store_crash_test.sh +++ b/scripts/qemu_store_crash_test.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # System Store v1 over the native NVMe driver: QEMU crash/reboot campaign. # # Geometry: 4096-byte LBA (the atomic-root qualified namespace). The Store root diff --git a/scripts/qemu_verify_recovery_media.sh b/scripts/qemu_verify_recovery_media.sh index ab47833e..37e2215d 100755 --- a/scripts/qemu_verify_recovery_media.sh +++ b/scripts/qemu_verify_recovery_media.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # qemu_verify_recovery_media.sh: Verify standalone recovery environment in QEMU AArch64 # Invariant: BOOTS WITH ZERO HARD DISKS ATTACHED. Internal NVMe must not be present. # Proves 100% RAM disk self-containment under rdinit=/init. diff --git a/scripts/seed0b_machine1_prepare.sh b/scripts/seed0b_machine1_prepare.sh index 4768a303..6dab553d 100755 --- a/scripts/seed0b_machine1_prepare.sh +++ b/scripts/seed0b_machine1_prepare.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # P2-9 preparation ONLY: build the exact SEED-0B qualification inputs for an # attended Machine 1 boot into OUT_DIR. This script never touches the ESP, # BootOrder/BootNext, Secure Boot, TPM state or any firmware variable; the diff --git a/scripts/sign_efi_binary.sh b/scripts/sign_efi_binary.sh index 3c0faa32..a0a34052 100755 --- a/scripts/sign_efi_binary.sh +++ b/scripts/sign_efi_binary.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # sign_efi_binary.sh: Signs an EFI executable with the disposable development signing key # DISPOSABLE DEVELOPMENT/TEST MATERIAL ONLY. # Invariant: This is NOT the TRUST-1 Q13 Owner Root or production Boot Signer. diff --git a/scripts/stage_one_time_boot.sh b/scripts/stage_one_time_boot.sh index 9b14e63e..fd533ab4 100755 --- a/scripts/stage_one_time_boot.sh +++ b/scripts/stage_one_time_boot.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage the AIENOS first-boot evidence image for exactly one boot. # # Dry run by default: prints what it would do and changes nothing. diff --git a/scripts/stage_one_time_boot_ck.sh b/scripts/stage_one_time_boot_ck.sh index fc28a649..b49df788 100755 --- a/scripts/stage_one_time_boot_ck.sh +++ b/scripts/stage_one_time_boot_ck.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage the C kernel (native/kernel) inference image plus its MODEL.MAP on # Machine 1 for exactly one attended boot (L6, aienos#34 lane 6; L6-C screen # console). Variant of scripts/stage_one_time_boot.sh, which stages the Rust diff --git a/scripts/stage_one_time_boot_ck_b7b.sh b/scripts/stage_one_time_boot_ck_b7b.sh index 5aaa5c80..2deb15bc 100755 --- a/scripts/stage_one_time_boot_ck_b7b.sh +++ b/scripts/stage_one_time_boot_ck_b7b.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage the B7b PROBE build of the FULL C kernel hardware image (native/kernel # `make full CK_B7B_PROBE=1 CK_HARDWARE_STAGING=1`) on Machine 1 for exactly # one attended boot: the B7b campaign (aienos#286, docs/campaigns/ diff --git a/scripts/stage_one_time_boot_ck_full.sh b/scripts/stage_one_time_boot_ck_full.sh index 91880756..62cb3642 100755 --- a/scripts/stage_one_time_boot_ck_full.sh +++ b/scripts/stage_one_time_boot_ck_full.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage the FULL C kernel hardware image (native/kernel `make full # CK_HARDWARE_STAGING=1`: devices stage with the xHCI keyboard and recovery # access hook, NVMe and Store stages) on Machine 1 for exactly one attended diff --git a/scripts/stage_one_time_boot_ck_service.sh b/scripts/stage_one_time_boot_ck_service.sh index 19f177f6..9ebcbe0c 100755 --- a/scripts/stage_one_time_boot_ck_service.sh +++ b/scripts/stage_one_time_boot_ck_service.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Stage the C kernel PRODUCTION SERVICE image with resident CPU inference # (native v1 P06 / gate N3, aienos#34; docs/ATTENDED_SESSION_N1.md item B2) # plus its MODEL.MAP for exactly one attended boot. Same shape as diff --git a/scripts/test_recovery_unlock_chroot.sh b/scripts/test_recovery_unlock_chroot.sh index b25e6ce5..76c4e656 100755 --- a/scripts/test_recovery_unlock_chroot.sh +++ b/scripts/test_recovery_unlock_chroot.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test_recovery_unlock_chroot.sh: TRUST-1 Gate 1 items 11-12, host rehearsal. # # Proves the recovery image's OWN binaries can do the recovery unlock path: diff --git a/scripts/test_trust1_attended_evidence_check.sh b/scripts/test_trust1_attended_evidence_check.sh index 2ab9c378..b95578f4 100755 --- a/scripts/test_trust1_attended_evidence_check.sh +++ b/scripts/test_trust1_attended_evidence_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test_trust1_attended_evidence_check.sh: HOST VALIDATION ONLY fixture tests # for scripts/trust1_attended_evidence_check.sh. Every fixture is synthetic or # made with throwaway keys in a temp folder; nothing touches Machine 1, a TPM, diff --git a/scripts/test_trust1_key_ceremony.sh b/scripts/test_trust1_key_ceremony.sh index ee8db698..fac51980 100755 --- a/scripts/test_trust1_key_ceremony.sh +++ b/scripts/test_trust1_key_ceremony.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test_trust1_key_ceremony.sh: self-test for trust1_key_ceremony.sh with # THROWAWAY keys in a private temp folder (deleted on exit). Never an owner # key. Checks: generate + verify; private keys are stored encrypted; two diff --git a/scripts/test_trust1_measurement_tools.sh b/scripts/test_trust1_measurement_tools.sh index 0b3f0fd4..985569b4 100755 --- a/scripts/test_trust1_measurement_tools.sh +++ b/scripts/test_trust1_measurement_tools.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # test_trust1_measurement_tools.sh: host self-test for the TRUST-1 Gate 0/2 # read-only tools, run against a software TPM (swtpm). No hardware access: # PCRs come from swtpm, Secure Boot variables from a fake efivars folder, diff --git a/scripts/tpm_measurement_campaign.sh b/scripts/tpm_measurement_campaign.sh index fd2d326e..8364494c 100755 --- a/scripts/tpm_measurement_campaign.sh +++ b/scripts/tpm_measurement_campaign.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # tpm_measurement_campaign.sh: TRUST-1 Gate 0 / Gate 2 measurement tool. # # Read-only on the machine. It never writes efivars, never changes boot diff --git a/scripts/trust1_attended_evidence_check.sh b/scripts/trust1_attended_evidence_check.sh index e31de498..16b02ec4 100755 --- a/scripts/trust1_attended_evidence_check.sh +++ b/scripts/trust1_attended_evidence_check.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # trust1_attended_evidence_check.sh: HOST VALIDATION ONLY. # # Reads evidence that an attended TRUST-1 sitting left behind and says whether diff --git a/scripts/trust1_credential_policy.sh b/scripts/trust1_credential_policy.sh index 840e186b..c7a5da8b 100755 --- a/scripts/trust1_credential_policy.sh +++ b/scripts/trust1_credential_policy.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # FLAG(sovereignty): decodes systemd-creds credentials (systemd dependency), Linux host Gate 0 only; retire once credentials move off systemd-creds. # trust1_credential_policy.sh: show which TPM policy seals a systemd credential. # diff --git a/scripts/trust1_gate5_policy_sim.sh b/scripts/trust1_gate5_policy_sim.sh index f30ca3fe..cf9091f2 100755 --- a/scripts/trust1_gate5_policy_sim.sh +++ b/scripts/trust1_gate5_policy_sim.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # trust1_gate5_policy_sim.sh: TRUST-1 Gate 5, TPM authorization policy # simulation on a software TPM (swtpm). # diff --git a/scripts/trust1_gate7_preflight.sh b/scripts/trust1_gate7_preflight.sh index f5bcf867..9ce5547f 100755 --- a/scripts/trust1_gate7_preflight.sh +++ b/scripts/trust1_gate7_preflight.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # trust1_gate7_preflight.sh: TRUST-1 Gate 7 pre-flight check (read-only). # # Checks, before the attended Gate 7 steps, everything that can be checked diff --git a/scripts/trust1_key_ceremony.sh b/scripts/trust1_key_ceremony.sh index 59bc37cf..8dee6b18 100755 --- a/scripts/trust1_key_ceremony.sh +++ b/scripts/trust1_key_ceremony.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # trust1_key_ceremony.sh: TRUST-1 Gate 3 owner key ceremony tool. # # Run ONLY on the offline ceremony machine the operator chose, never on the diff --git a/scripts/trust1_m5_qualify.sh b/scripts/trust1_m5_qualify.sh index b9fe8d01..2585e6b5 100755 --- a/scripts/trust1_m5_qualify.sh +++ b/scripts/trust1_m5_qualify.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # trust1_m5_qualify.sh: one native qualification entrypoint for TRUST-1 + M5. # # It refuses a dirty tree, records the exact commit and the machine it ran on diff --git a/scripts/verify_all.sh b/scripts/verify_all.sh index dec4c3a7..2c8336ec 100755 --- a/scripts/verify_all.sh +++ b/scripts/verify_all.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # AIENOS End-to-End Build and Evidence Verification Harness # Enforces sequential integration gates on the host DGX Spark environment. # Last line: VERIFY_ALL: PASS only when every step ran; VERIFY_ALL: NOT_RUN if any step diff --git a/scripts/verify_evidence.sh b/scripts/verify_evidence.sh index ae046936..70939f5e 100755 --- a/scripts/verify_evidence.sh +++ b/scripts/verify_evidence.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euo pipefail repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "${repo_root}" diff --git a/scripts/verify_native_rollback.sh b/scripts/verify_native_rollback.sh index fc53e26f..54bbf851 100755 --- a/scripts/verify_native_rollback.sh +++ b/scripts/verify_native_rollback.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # verify_native_rollback.sh # Host-side automated verifier for AIENOS native-boot rollback observations. # diff --git a/scripts/verify_recovery_tools.sh b/scripts/verify_recovery_tools.sh index 192588e0..163e8120 100755 --- a/scripts/verify_recovery_tools.sh +++ b/scripts/verify_recovery_tools.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # verify_recovery_tools.sh: Verify that the standalone recovery initrd ships # the tooling issue #17 requires: mount the NVMe root, repair /boot/efi, and # restore boot entries. Host-side, static check only: extracts the built diff --git a/scripts/workflow_files_check.sh b/scripts/workflow_files_check.sh index 57823156..b492d132 100755 --- a/scripts/workflow_files_check.sh +++ b/scripts/workflow_files_check.sh @@ -1,4 +1,19 @@ #!/bin/sh +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Fail when GitHub refused any workflow file on a commit. # # A workflow file GitHub cannot parse (for example an unquoted ": " inside a diff --git a/tests/gates/run.sh b/tests/gates/run.sh index 1efeedad..3c24bf5b 100755 --- a/tests/gates/run.sh +++ b/tests/gates/run.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2026 Drake Stapleton (AIEN / aien-dev) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # tests/gates/run.sh: the one entry point for the local verification gates of aienos. # Every step runs the SAME command as the hosted job it mirrors (.github/workflows/ck-kernel.yml, # native-suites.yml, crypto-boundary.yml, infer-crate.yml, crumb.yml; ci.yml is disabled on