obaaf 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. obaaf-0.1.0/LICENSE +202 -0
  2. obaaf-0.1.0/LICENSE-docs +317 -0
  3. obaaf-0.1.0/PKG-INFO +123 -0
  4. obaaf-0.1.0/README.md +102 -0
  5. obaaf-0.1.0/pyproject.toml +50 -0
  6. obaaf-0.1.0/setup.cfg +4 -0
  7. obaaf-0.1.0/src/obaaf/__init__.py +6 -0
  8. obaaf-0.1.0/src/obaaf/__main__.py +3 -0
  9. obaaf-0.1.0/src/obaaf/assess.py +344 -0
  10. obaaf-0.1.0/src/obaaf/attest/__init__.py +6 -0
  11. obaaf-0.1.0/src/obaaf/attest/agentrecord.py +67 -0
  12. obaaf-0.1.0/src/obaaf/attest/common.py +111 -0
  13. obaaf-0.1.0/src/obaaf/attest/manifest.py +143 -0
  14. obaaf-0.1.0/src/obaaf/attest/proposal.py +516 -0
  15. obaaf-0.1.0/src/obaaf/attest/records.py +283 -0
  16. obaaf-0.1.0/src/obaaf/attest/snapshot.py +226 -0
  17. obaaf-0.1.0/src/obaaf/catalog.py +235 -0
  18. obaaf-0.1.0/src/obaaf/checker/__init__.py +150 -0
  19. obaaf-0.1.0/src/obaaf/checker/repo.py +193 -0
  20. obaaf-0.1.0/src/obaaf/checker/report.py +125 -0
  21. obaaf-0.1.0/src/obaaf/checker/rules.py +546 -0
  22. obaaf-0.1.0/src/obaaf/checker/workflow.py +587 -0
  23. obaaf-0.1.0/src/obaaf/cli.py +659 -0
  24. obaaf-0.1.0/src/obaaf/data/__init__.py +0 -0
  25. obaaf-0.1.0/src/obaaf/data/agent_controls.yaml +276 -0
  26. obaaf-0.1.0/src/obaaf/data/assessment.yaml +373 -0
  27. obaaf-0.1.0/src/obaaf/data/compromises.yaml +220 -0
  28. obaaf-0.1.0/src/obaaf/data/detection.yaml +151 -0
  29. obaaf-0.1.0/src/obaaf/data/frameworks.yaml +48 -0
  30. obaaf-0.1.0/src/obaaf/data/profile.yaml +619 -0
  31. obaaf-0.1.0/src/obaaf/data/rules.yaml +371 -0
  32. obaaf-0.1.0/src/obaaf/data/schemas/agent-approval.schema.json +39 -0
  33. obaaf-0.1.0/src/obaaf/data/schemas/agent-run.schema.json +361 -0
  34. obaaf-0.1.0/src/obaaf/data/schemas/build-record.schema.json +82 -0
  35. obaaf-0.1.0/src/obaaf/form_template.html +347 -0
  36. obaaf-0.1.0/src/obaaf/predicates.py +21 -0
  37. obaaf-0.1.0/src/obaaf/render.py +339 -0
  38. obaaf-0.1.0/src/obaaf/verify/__init__.py +14 -0
  39. obaaf-0.1.0/src/obaaf/verify/dsse.py +135 -0
  40. obaaf-0.1.0/src/obaaf/verify/policy.py +104 -0
  41. obaaf-0.1.0/src/obaaf/verify/release.py +671 -0
  42. obaaf-0.1.0/src/obaaf/yamlutil.py +96 -0
  43. obaaf-0.1.0/src/obaaf.egg-info/PKG-INFO +123 -0
  44. obaaf-0.1.0/src/obaaf.egg-info/SOURCES.txt +60 -0
  45. obaaf-0.1.0/src/obaaf.egg-info/dependency_links.txt +1 -0
  46. obaaf-0.1.0/src/obaaf.egg-info/entry_points.txt +2 -0
  47. obaaf-0.1.0/src/obaaf.egg-info/requires.txt +5 -0
  48. obaaf-0.1.0/src/obaaf.egg-info/top_level.txt +1 -0
  49. obaaf-0.1.0/tests/test_cli.py +73 -0
  50. obaaf-0.1.0/tests/test_docs.py +102 -0
  51. obaaf-0.1.0/tests/test_fr01_profile.py +87 -0
  52. obaaf-0.1.0/tests/test_fr02_assessment.py +218 -0
  53. obaaf-0.1.0/tests/test_fr03_untrusted_lane.py +91 -0
  54. obaaf-0.1.0/tests/test_fr04_release_isolation.py +127 -0
  55. obaaf-0.1.0/tests/test_fr05_build_record.py +162 -0
  56. obaaf-0.1.0/tests/test_fr06_verifier.py +550 -0
  57. obaaf-0.1.0/tests/test_fr07_agent_lane.py +165 -0
  58. obaaf-0.1.0/tests/test_fr08_effect_lane.py +345 -0
  59. obaaf-0.1.0/tests/test_fr09_instructions.py +125 -0
  60. obaaf-0.1.0/tests/test_fr10_agent_record.py +122 -0
  61. obaaf-0.1.0/tests/test_fr11_keys.py +60 -0
  62. obaaf-0.1.0/tests/test_fr12_checker.py +372 -0
obaaf-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,317 @@
1
+ Creative Commons Attribution 4.0 International Public License
2
+
3
+ By exercising the Licensed Rights (defined below), You accept and agree
4
+ to be bound by the terms and conditions of this Creative Commons
5
+ Attribution 4.0 International Public License ("Public License"). To the
6
+ extent this Public License may be interpreted as a contract, You are
7
+ granted the Licensed Rights in consideration of Your acceptance of
8
+ these terms and conditions, and the Licensor grants You such rights in
9
+ consideration of benefits the Licensor receives from making the
10
+ Licensed Material available under these terms and conditions.
11
+
12
+
13
+ Section 1 -- Definitions.
14
+
15
+ a. Adapted Material means material subject to Copyright and Similar
16
+ Rights that is derived from or based upon the Licensed Material
17
+ and in which the Licensed Material is translated, altered,
18
+ arranged, transformed, or otherwise modified in a manner requiring
19
+ permission under the Copyright and Similar Rights held by the
20
+ Licensor. For purposes of this Public License, where the Licensed
21
+ Material is a musical work, performance, or sound recording,
22
+ Adapted Material is always produced where the Licensed Material is
23
+ synched in timed relation with a moving image.
24
+
25
+ b. Adapter's License means the license You apply to Your Copyright
26
+ and Similar Rights in Your contributions to Adapted Material in
27
+ accordance with the terms and conditions of this Public License.
28
+
29
+ c. Copyright and Similar Rights means copyright and/or similar rights
30
+ closely related to copyright including, without limitation,
31
+ performance, broadcast, sound recording, and Sui Generis Database
32
+ Rights, without regard to how the rights are labeled or
33
+ categorized. For purposes of this Public License, the rights
34
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
35
+ Rights.
36
+
37
+ d. Effective Technological Measures means those measures that, in the
38
+ absence of proper authority, may not be circumvented under laws
39
+ fulfilling obligations under Article 11 of the WIPO Copyright
40
+ Treaty adopted on December 20, 1996, and/or similar international
41
+ agreements.
42
+
43
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
44
+ any other exception or limitation to Copyright and Similar Rights
45
+ that applies to Your use of the Licensed Material.
46
+
47
+ f. Licensed Material means the artistic or literary work, database,
48
+ or other material to which the Licensor applied this Public
49
+ License.
50
+
51
+ g. Licensed Rights means the rights granted to You subject to the
52
+ terms and conditions of this Public License, which are limited to
53
+ all Copyright and Similar Rights that apply to Your use of the
54
+ Licensed Material and that the Licensor has authority to license.
55
+
56
+ h. Licensor means the individual(s) or entity(ies) granting rights
57
+ under this Public License.
58
+
59
+ i. Share means to provide material to the public by any means or
60
+ process that requires permission under the Licensed Rights, such
61
+ as reproduction, public display, public performance, distribution,
62
+ dissemination, communication, or importation, and to make material
63
+ available to the public including in ways that members of the
64
+ public may access the material from a place and at a time
65
+ individually chosen by them.
66
+
67
+ j. Sui Generis Database Rights means rights other than copyright
68
+ resulting from Directive 96/9/EC of the European Parliament and of
69
+ the Council of 11 March 1996 on the legal protection of databases,
70
+ as amended and/or succeeded, as well as other essentially
71
+ equivalent rights anywhere in the world.
72
+
73
+ k. You means the individual or entity exercising the Licensed Rights
74
+ under this Public License. Your has a corresponding meaning.
75
+
76
+
77
+ Section 2 -- Scope.
78
+
79
+ a. License grant.
80
+
81
+ 1. Subject to the terms and conditions of this Public License,
82
+ the Licensor hereby grants You a worldwide, royalty-free,
83
+ non-sublicensable, non-exclusive, irrevocable license to
84
+ exercise the Licensed Rights in the Licensed Material to:
85
+
86
+ a. reproduce and Share the Licensed Material, in whole or
87
+ in part; and
88
+
89
+ b. produce, reproduce, and Share Adapted Material.
90
+
91
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
92
+ Exceptions and Limitations apply to Your use, this Public
93
+ License does not apply, and You do not need to comply with
94
+ its terms and conditions.
95
+
96
+ 3. Term. The term of this Public License is specified in Section
97
+ 6(a).
98
+
99
+ 4. Media and formats; technical modifications allowed. The
100
+ Licensor authorizes You to exercise the Licensed Rights in
101
+ all media and formats whether now known or hereafter created,
102
+ and to make technical modifications necessary to do so. The
103
+ Licensor waives and/or agrees not to assert any right or
104
+ authority to forbid You from making technical modifications
105
+ necessary to exercise the Licensed Rights, including
106
+ technical modifications necessary to circumvent Effective
107
+ Technological Measures. For purposes of this Public License,
108
+ simply making modifications authorized by this Section 2(a)
109
+ (4) never produces Adapted Material.
110
+
111
+ 5. Downstream recipients.
112
+
113
+ a. Offer from the Licensor -- Licensed Material. Every
114
+ recipient of the Licensed Material automatically
115
+ receives an offer from the Licensor to exercise the
116
+ Licensed Rights under the terms and conditions of this
117
+ Public License.
118
+
119
+ b. No downstream restrictions. You may not offer or impose
120
+ any additional or different terms or conditions on, or
121
+ apply any Effective Technological Measures to, the
122
+ Licensed Material if doing so restricts exercise of the
123
+ Licensed Rights by any recipient of the Licensed
124
+ Material.
125
+
126
+ 6. No endorsement. Nothing in this Public License constitutes or
127
+ may be construed as permission to assert or imply that You
128
+ are, or that Your use of the Licensed Material is, connected
129
+ with, or sponsored, endorsed, or granted official status by,
130
+ the Licensor or others designated to receive attribution as
131
+ provided in Section 3(a)(1)(A)(i).
132
+
133
+ b. Other rights.
134
+
135
+ 1. Moral rights, such as the right of integrity, are not
136
+ licensed under this Public License, nor are publicity,
137
+ privacy, and/or other similar personality rights; however, to
138
+ the extent possible, the Licensor waives and/or agrees not to
139
+ assert any such rights held by the Licensor to the limited
140
+ extent necessary to allow You to exercise the Licensed
141
+ Rights, but not otherwise.
142
+
143
+ 2. Patent and trademark rights are not licensed under this
144
+ Public License.
145
+
146
+ 3. To the extent possible, the Licensor waives any right to
147
+ collect royalties from You for the exercise of the Licensed
148
+ Rights, whether directly or through a collecting society
149
+ under any voluntary or waivable statutory or compulsory
150
+ licensing scheme. In all other cases the Licensor expressly
151
+ reserves any right to collect such royalties.
152
+
153
+
154
+ Section 3 -- License Conditions.
155
+
156
+ Your exercise of the Licensed Rights is expressly made subject to the
157
+ following conditions.
158
+
159
+ a. Attribution.
160
+
161
+ 1. If You Share the Licensed Material (including in modified
162
+ form), You must:
163
+
164
+ a. retain the following if it is supplied by the Licensor
165
+ with the Licensed Material:
166
+
167
+ i. identification of the creator(s) of the Licensed
168
+ Material and any others designated to receive
169
+ attribution, in any reasonable manner requested by
170
+ the Licensor (including by pseudonym if
171
+ designated);
172
+
173
+ ii. a copyright notice;
174
+
175
+ iii. a notice that refers to this Public License;
176
+
177
+ iv. a notice that refers to the disclaimer of
178
+ warranties;
179
+
180
+ v. a URI or hyperlink to the Licensed Material to the
181
+ extent reasonably practicable;
182
+
183
+ b. indicate if You modified the Licensed Material and
184
+ retain an indication of any previous modifications; and
185
+
186
+ c. indicate the Licensed Material is licensed under this
187
+ Public License, and include the text of, or the URI or
188
+ hyperlink to, this Public License.
189
+
190
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
191
+ reasonable manner based on the medium, means, and context in
192
+ which You Share the Licensed Material. For example, it may be
193
+ reasonable to satisfy the conditions by providing a URI or
194
+ hyperlink to a resource that includes the required
195
+ information.
196
+
197
+ 3. If requested by the Licensor, You must remove any of the
198
+ information required by Section 3(a)(1)(A) to the extent
199
+ reasonably practicable.
200
+
201
+ 4. If You Share Adapted Material You produce, the Adapter's
202
+ License You apply must not prevent recipients of the Adapted
203
+ Material from complying with this Public License.
204
+
205
+
206
+ Section 4 -- Sui Generis Database Rights.
207
+
208
+ Where the Licensed Rights include Sui Generis Database Rights that
209
+ apply to Your use of the Licensed Material:
210
+
211
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
212
+ to extract, reuse, reproduce, and Share all or a substantial
213
+ portion of the contents of the database;
214
+
215
+ b. if You include all or a substantial portion of the database
216
+ contents in a database in which You have Sui Generis Database
217
+ Rights, then the database in which You have Sui Generis Database
218
+ Rights (but not its individual contents) is Adapted Material; and
219
+
220
+ c. You must comply with the conditions in Section 3(a) if You Share
221
+ all or a substantial portion of the contents of the database.
222
+
223
+ For the avoidance of doubt, this Section 4 supplements and does not
224
+ replace Your obligations under this Public License where the Licensed
225
+ Rights include other Copyright and Similar Rights.
226
+
227
+
228
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
229
+
230
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
231
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
232
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
233
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
234
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
235
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
236
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
237
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
238
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
239
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
240
+
241
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
242
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
243
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
244
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
245
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
246
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
247
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
248
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
249
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
250
+
251
+ c. The disclaimer of warranties and limitation of liability provided
252
+ above shall be interpreted in a manner that, to the extent
253
+ possible, most closely approximates an absolute disclaimer and
254
+ waiver of all liability.
255
+
256
+
257
+ Section 6 -- Term and Termination.
258
+
259
+ a. This Public License applies for the term of the Copyright and
260
+ Similar Rights licensed here. However, if You fail to comply with
261
+ this Public License, then Your rights under this Public License
262
+ terminate automatically.
263
+
264
+ b. Where Your right to use the Licensed Material has terminated under
265
+ Section 6(a), it reinstates:
266
+
267
+ 1. automatically as of the date the violation is cured, provided
268
+ it is cured within 30 days of Your discovery of the
269
+ violation; or
270
+
271
+ 2. upon express reinstatement by the Licensor.
272
+
273
+ For the avoidance of doubt, this Section 6(b) does not affect any
274
+ right the Licensor may have to seek remedies for Your violations
275
+ of this Public License.
276
+
277
+ c. For the avoidance of doubt, the Licensor may also offer the
278
+ Licensed Material under separate terms or conditions or stop
279
+ distributing the Licensed Material at any time; however, doing so
280
+ will not terminate this Public License.
281
+
282
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
283
+ License.
284
+
285
+
286
+ Section 7 -- Other Terms and Conditions.
287
+
288
+ a. The Licensor shall not be bound by any additional or different
289
+ terms or conditions communicated by You unless expressly agreed.
290
+
291
+ b. Any arrangements, understandings, or agreements regarding the
292
+ Licensed Material not stated herein are separate from and
293
+ independent of the terms and conditions of this Public License.
294
+
295
+
296
+ Section 8 -- Interpretation.
297
+
298
+ a. For the avoidance of doubt, this Public License does not, and
299
+ shall not be interpreted to, reduce, limit, restrict, or impose
300
+ conditions on any use of the Licensed Material that could lawfully
301
+ be made without permission under this Public License.
302
+
303
+ b. To the extent possible, if any provision of this Public License is
304
+ deemed unenforceable, it shall be automatically reformed to the
305
+ minimum extent necessary to make it enforceable. If the provision
306
+ cannot be reformed, it shall be severed from this Public License
307
+ without affecting the enforceability of the remaining terms and
308
+ conditions.
309
+
310
+ c. No term or condition of this Public License will be waived and no
311
+ failure to comply consented to unless expressly agreed to by the
312
+ Licensor.
313
+
314
+ d. Nothing in this Public License constitutes or may be interpreted
315
+ as a limitation upon, or waiver of, any privileges and immunities
316
+ that apply to the Licensor or You, including from the legal
317
+ processes of any jurisdiction or authority.
obaaf-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,123 @@
1
+ Metadata-Version: 2.4
2
+ Name: obaaf
3
+ Version: 0.1.0
4
+ Summary: Open Build and Agent Assurance Framework: build-pipeline and AI-agent assurance tools (draft)
5
+ Author: Ofonna Nweze, Osita Sean Keluo-Udeke
6
+ Maintainer: Ofonna Nweze, Osita Sean Keluo-Udeke
7
+ License-Expression: Apache-2.0 AND CC-BY-4.0
8
+ Classifier: Development Status :: 2 - Pre-Alpha
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Topic :: Security
11
+ Classifier: Topic :: Software Development :: Build Tools
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ License-File: LICENSE-docs
16
+ Requires-Dist: PyYAML>=6.0
17
+ Requires-Dist: jsonschema>=4.18
18
+ Provides-Extra: keys
19
+ Requires-Dist: cryptography>=42; extra == "keys"
20
+ Dynamic: license-file
21
+
22
+ # Open Build and Agent Assurance Framework (OBAAF)
23
+
24
+ OBAAF is intended to be a free, open framework for keeping malicious code out of the software updates people install. It secures the build pipelines that produce those updates, and the AI agents now connected to them. Version 1 starts with independent game studios, whose updates reach phones, PCs and consoles and whose teams rarely include security staff.
25
+
26
+ > **Status: version 0.1, public draft.** The checker has been exercised in a [limited GitHub Actions demonstration](docs/checker-demonstration.md); an independent studio pilot and broader platform validation remain pending. No license is granted yet. The maintainer authorized public repository access and website publication on October 10, 2026. This is not a production release or a research-paper submission. The specifications and tools are built only from public standards and public documentation. See [LICENSING.md](LICENSING.md).
27
+ >
28
+ > The draft awaits maintainer review. Proposed design decisions are tracked in [DECISIONS.md](DECISIONS.md).
29
+
30
+ ## What is here
31
+
32
+ | Component | What it does | Where |
33
+ | --- | --- | --- |
34
+ | Game-pipeline integrity profile | 28 requirements in nine control families that tailor NIST's SSDF and SLSA to game builds, each with a test and its mappings | [spec/profile.md](spec/profile.md) |
35
+ | Agent controls | Taint-bounded authority, eight requirements (R1–R8), a three-lane architecture and a signed record of each agent run | [spec/agent-controls.md](spec/agent-controls.md) |
36
+ | Self-assessment | 34 yes-or-no questions in four tiers that give a tier and a ranked list of fixes, on paper, in an offline form, or from the command line | [spec/self-assessment.md](spec/self-assessment.md), [offline form](assessment/obaaf-self-assessment.html) |
37
+ | Team resource site | A public resource introducing the framework, questionnaire, workflow demonstration, and adoption steps | [Build and preview instructions](site/README.md) |
38
+ | Reference pipeline templates | GitHub Actions workflows for four lanes: untrusted contributions, agents, approved changes and releases | [templates/github-actions](templates/github-actions/README.md) |
39
+ | Verification tools | A pipeline checker that flags risky workflow settings; a release verifier that blocks uploads without valid provenance, approvals and agent records; and checks on an agent's signed record and proposal before anything is applied | [spec/checker-rules.md](spec/checker-rules.md), `obaaf verify release`, `obaaf verify agent-run`, `obaaf proposal check` |
40
+
41
+ The profile, the agent controls and the self-assessment come from the author's two companion papers, both unpublished drafts:
42
+
43
+ - **Paper 1**, [*Untrusted Text, Trusted Tokens*](papers/OBAAF-Paper1-Agent-Assurance-LaTeX/README.md): agent assurance, the source of the agent controls.
44
+ - **Paper 2**, [*Securing the Game Build*](papers/OBAAF-Paper2-Build-Assurance-Games-LaTeX/README.md): build assurance for games, the source of the profile and the self-assessment.
45
+
46
+ Their machine-readable form in [`src/obaaf/data/`](src/obaaf/data/) is the single source of truth: the documents in `spec/` and the offline form are generated from it.
47
+
48
+ ## How it fits together
49
+
50
+ ```mermaid
51
+ flowchart LR
52
+ subgraph untrusted["Untrusted lane"]
53
+ PR["Pull requests,<br/>including partners' forks"] --> CI["Build and test<br/>no secrets, read-only"]
54
+ end
55
+ subgraph agent["Agent lane (level of its inputs)"]
56
+ EV["Issue or comment"] --> SN["Snapshot<br/>digests and labels"] --> AG["Agent<br/>read-only, no secrets"] --> PB["Proposal bundle"]
57
+ PB --> AT["Attestation step<br/>signs agent-run record"]
58
+ end
59
+ subgraph effect["Effect lane (Maintainer)"]
60
+ AP["Approval by someone<br/>other than the requester"] --> EF["Checks, then applies<br/>as a pull request"]
61
+ end
62
+ subgraph release["Release lane (Release)"]
63
+ BU["Isolated build from a tag<br/>Tier A or B, no shared cache"] --> PV["Signed provenance<br/>and build record"] --> VE["Verify from the default branch,<br/>then a person approves"] --> UP["Upload; a person<br/>sets it live"]
64
+ end
65
+ AT --> AP
66
+ EF --> PRV["Reviewed merge"] --> BU
67
+ ```
68
+
69
+ ## Quick start
70
+
71
+ OBAAF needs Python 3.10 or later.
72
+
73
+ ```bash
74
+ python -m pip install -e ".[keys]"
75
+ obaaf --help
76
+ ```
77
+
78
+ **Studios.** Start with the self-assessment. Open [the offline form](assessment/obaaf-self-assessment.html) in a browser, or:
79
+
80
+ ```bash
81
+ obaaf assess init --output answers.yaml # fill in yes, no or na
82
+ obaaf assess score answers.yaml # your tier and what to fix first
83
+ ```
84
+
85
+ Your answers never leave your machine. Then follow [the adoption guide](docs/adoption-guide.md).
86
+
87
+ **Build engineers.** Check your workflows, then install the templates:
88
+
89
+ ```bash
90
+ obaaf check path/to/your/repository
91
+ obaaf templates install --dest path/to/your/repository --obaaf-repo OWNER/obaaf --obaaf-sha <commit>
92
+ ```
93
+
94
+ **Reviewers.** Read [the architecture](docs/architecture.md), [the decisions log](DECISIONS.md), and [how each requirement is tested](docs/traceability.md).
95
+
96
+ ## Tests
97
+
98
+ ```bash
99
+ python -m unittest discover -s tests -v
100
+ obaaf docs build --check # the generated documents match the data
101
+ obaaf catalog # the data files agree with each other
102
+ ```
103
+
104
+ Each functional requirement of the specification (FR1–FR12) has an offline test module. Some acceptance criteria can only be shown on a real GitHub repository, such as a fork's pull request being denied secrets: for those, the offline tests check the templates and tools, and the [live acceptance tests](docs/live-acceptance-tests.md), which have not been run yet, check the platform. [Traceability](docs/traceability.md) gives the status of each requirement, including the ones version 0.1 meets only in part.
105
+
106
+ ## Project documents
107
+
108
+ - [DECISIONS.md](DECISIONS.md): every design decision, its reason and its status
109
+ - [CHANGELOG.md](CHANGELOG.md): changes by version
110
+ - [CONTRIBUTING.md](CONTRIBUTING.md): contribution rules and review responsibilities
111
+ - [SECURITY.md](SECURITY.md): how to report a vulnerability
112
+ - [GOVERNANCE.md](GOVERNANCE.md): project roles, decision-making, and how to become a maintainer
113
+ - [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md): expected conduct in the community
114
+ - [LICENSING.md](LICENSING.md): current licensing status and intended licenses
115
+
116
+ Software project attribution: [Ofonna Nweze](https://github.com/Ofonna-N) and [Osita Sean Keluo-Udeke](https://github.com/seanudeke).
117
+
118
+ Both contributors maintain the project. The Python package metadata credits both names.
119
+
120
+ Sean led the research. Ofonna handled implementation, testing, and GitHub
121
+ integration, with Sean contributing across the project.
122
+
123
+ The companion research papers are the independent work of Osita Sean Keluo-Udeke. The project does not imply endorsement by any government agency or by the research author's employer.