requisition-aws 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 (153) hide show
  1. requisition_aws-0.1.0/.gitignore +8 -0
  2. requisition_aws-0.1.0/LICENSE +202 -0
  3. requisition_aws-0.1.0/NOTICE +9 -0
  4. requisition_aws-0.1.0/PKG-INFO +299 -0
  5. requisition_aws-0.1.0/README.md +283 -0
  6. requisition_aws-0.1.0/THIRD-PARTY.md +13 -0
  7. requisition_aws-0.1.0/bin/export_chain.sh +37 -0
  8. requisition_aws-0.1.0/bin/vendor/LICENSE.mldsa +10 -0
  9. requisition_aws-0.1.0/bin/vendor/VENDORED.md +57 -0
  10. requisition_aws-0.1.0/bin/vendor/ed25519_rfc8032.py +88 -0
  11. requisition_aws-0.1.0/bin/vendor/mldsa.py +443 -0
  12. requisition_aws-0.1.0/bin/verify_chain.py +670 -0
  13. requisition_aws-0.1.0/bin/verify_offline.py +953 -0
  14. requisition_aws-0.1.0/demo/airgap/probe.py +28 -0
  15. requisition_aws-0.1.0/demo/airgap/tamper.py +38 -0
  16. requisition_aws-0.1.0/demo/present.py +64 -0
  17. requisition_aws-0.1.0/demo/rehearse.sh +109 -0
  18. requisition_aws-0.1.0/demo/rollback/serve_scratch.exs +34 -0
  19. requisition_aws-0.1.0/demo/run_airgap.py +50 -0
  20. requisition_aws-0.1.0/demo/run_demo.py +188 -0
  21. requisition_aws-0.1.0/demo/run_interceptor_local.py +151 -0
  22. requisition_aws-0.1.0/demo/run_rollback_local.py +461 -0
  23. requisition_aws-0.1.0/demo/run_target_local.py +91 -0
  24. requisition_aws-0.1.0/deploy/gateway/capture_tools_list.py +103 -0
  25. requisition_aws-0.1.0/deploy/gateway/g12-change-set.sh +151 -0
  26. requisition_aws-0.1.0/deploy/lambda/interceptor_entry.py +113 -0
  27. requisition_aws-0.1.0/deploy/registration/README.md +51 -0
  28. requisition_aws-0.1.0/deploy/registration/aws_demo_v2.INCOMPLETE.json +89 -0
  29. requisition_aws-0.1.0/deploy/registration/fill_gateway_digest.py +75 -0
  30. requisition_aws-0.1.0/deploy/target/Dockerfile +34 -0
  31. requisition_aws-0.1.0/deploy/target/requirements.txt +136 -0
  32. requisition_aws-0.1.0/pyproject.toml +46 -0
  33. requisition_aws-0.1.0/requisition_aws/__init__.py +3 -0
  34. requisition_aws-0.1.0/requisition_aws/caller.py +165 -0
  35. requisition_aws-0.1.0/requisition_aws/canonical.py +641 -0
  36. requisition_aws-0.1.0/requisition_aws/catalog.py +138 -0
  37. requisition_aws-0.1.0/requisition_aws/client.py +435 -0
  38. requisition_aws-0.1.0/requisition_aws/demo_flow.py +270 -0
  39. requisition_aws-0.1.0/requisition_aws/fence.py +93 -0
  40. requisition_aws-0.1.0/requisition_aws/gate.py +500 -0
  41. requisition_aws-0.1.0/requisition_aws/interceptor.py +605 -0
  42. requisition_aws-0.1.0/requisition_aws/keys.py +364 -0
  43. requisition_aws-0.1.0/requisition_aws/mcp_target.py +619 -0
  44. requisition_aws-0.1.0/requisition_aws/pq.py +57 -0
  45. requisition_aws-0.1.0/requisition_aws/registry.py +71 -0
  46. requisition_aws-0.1.0/requisition_aws/scripted_model.py +51 -0
  47. requisition_aws-0.1.0/requisition_aws/store.py +316 -0
  48. requisition_aws-0.1.0/requisition_aws/strands_hook.py +255 -0
  49. requisition_aws-0.1.0/requisition_aws/target_flow.py +158 -0
  50. requisition_aws-0.1.0/tests/__init__.py +2 -0
  51. requisition_aws-0.1.0/tests/canonical_v4_verifier_runner.py +91 -0
  52. requisition_aws-0.1.0/tests/conftest.py +74 -0
  53. requisition_aws-0.1.0/tests/fake_requisition.py +605 -0
  54. requisition_aws-0.1.0/tests/fake_server_main.py +66 -0
  55. requisition_aws-0.1.0/tests/fixtures/elixir_differential/PROVENANCE.md +19 -0
  56. requisition_aws-0.1.0/tests/fixtures/elixir_differential/diff.exs +12 -0
  57. requisition_aws-0.1.0/tests/fixtures/elixir_differential/enc_cases.json +1 -0
  58. requisition_aws-0.1.0/tests/fixtures/elixir_differential/enc_out.json +1 -0
  59. requisition_aws-0.1.0/tests/fixtures/elixir_differential/redact_cases.json +1 -0
  60. requisition_aws-0.1.0/tests/fixtures/elixir_differential/redact_out.json +1 -0
  61. requisition_aws-0.1.0/tests/fixtures/interceptor/request_http_target.json +20 -0
  62. requisition_aws-0.1.0/tests/fixtures/interceptor/request_initialize.json +37 -0
  63. requisition_aws-0.1.0/tests/fixtures/interceptor/request_notification_initialized.json +28 -0
  64. requisition_aws-0.1.0/tests/fixtures/interceptor/request_resources_read.json +32 -0
  65. requisition_aws-0.1.0/tests/fixtures/interceptor/request_tools_call_no_headers.json +33 -0
  66. requisition_aws-0.1.0/tests/fixtures/interceptor/request_tools_call_refund.json +40 -0
  67. requisition_aws-0.1.0/tests/fixtures/interceptor/request_tools_call_unregistered.json +36 -0
  68. requisition_aws-0.1.0/tests/fixtures/interceptor/request_tools_list.json +30 -0
  69. requisition_aws-0.1.0/tests/fixtures/interceptor/response_phase_tools_list.json +43 -0
  70. requisition_aws-0.1.0/tests/fixtures/kms_lab_key/PROVENANCE.md +12 -0
  71. requisition_aws-0.1.0/tests/fixtures/kms_lab_key/ed25519-public-key.json +9 -0
  72. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/PROVENANCE.md +56 -0
  73. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/aws-instance/20261109T213617Z/statement.json +14 -0
  74. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/aws-instance/20261109T213617Z/v0-4.json +14 -0
  75. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/aws-instance/20261109T214355Z/statement.json +14 -0
  76. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/aws-instance/20261109T214355Z/v0-6.json +14 -0
  77. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/aws-instance/instance-lab-keys.json +32 -0
  78. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/1-strands/01-statement.record.json +14 -0
  79. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/1-strands/02-decision.record.json +14 -0
  80. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/1-strands/03-outcome.record.json +14 -0
  81. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/1-strands/04-decision.record.json +14 -0
  82. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/2-interceptor/01-decision.record.json +14 -0
  83. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/2-interceptor/02-decision.record.json +14 -0
  84. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/3-target/01-statement.record.json +14 -0
  85. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/3-target/02-decision.record.json +14 -0
  86. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/3-target/03-outcome.record.json +14 -0
  87. requisition_aws-0.1.0/tests/fixtures/real_lab_chain/dress-1/lab-keys.json +32 -0
  88. requisition_aws-0.1.0/tests/fixtures/requisition/PROVENANCE.md +14 -0
  89. requisition_aws-0.1.0/tests/fixtures/requisition/bench/holytrinity-v2/verifier/verify_receipt.py +1315 -0
  90. requisition_aws-0.1.0/tests/fixtures/requisition/bin/lab-verify +901 -0
  91. requisition_aws-0.1.0/tests/fixtures/seed/PROVENANCE.md +15 -0
  92. requisition_aws-0.1.0/tests/fixtures/seed/aws_demo.v1.json +79 -0
  93. requisition_aws-0.1.0/tests/fixtures/verify_receipt_r4/PROVENANCE.md +12 -0
  94. requisition_aws-0.1.0/tests/fixtures/verify_receipt_r4/verify_receipt.py +491 -0
  95. requisition_aws-0.1.0/tests/key_rule_harness.py +56 -0
  96. requisition_aws-0.1.0/tests/otp/mldsa87_verify.escript +20 -0
  97. requisition_aws-0.1.0/tests/otp/otp_28.5.0.8_openssl-3.5.9_results.txt +236 -0
  98. requisition_aws-0.1.0/tests/test_airgap.py +86 -0
  99. requisition_aws-0.1.0/tests/test_approval_wording.py +80 -0
  100. requisition_aws-0.1.0/tests/test_canonical.py +326 -0
  101. requisition_aws-0.1.0/tests/test_canonical_v4.py +340 -0
  102. requisition_aws-0.1.0/tests/test_catalog_binding.py +494 -0
  103. requisition_aws-0.1.0/tests/test_catalog_marks.py +257 -0
  104. requisition_aws-0.1.0/tests/test_cli_strict_json.py +125 -0
  105. requisition_aws-0.1.0/tests/test_client_store_gate.py +290 -0
  106. requisition_aws-0.1.0/tests/test_cosign.py +496 -0
  107. requisition_aws-0.1.0/tests/test_credential_refresh.py +353 -0
  108. requisition_aws-0.1.0/tests/test_demo_flow.py +162 -0
  109. requisition_aws-0.1.0/tests/test_demo_scripts.py +148 -0
  110. requisition_aws-0.1.0/tests/test_ed25519_material.py +195 -0
  111. requisition_aws-0.1.0/tests/test_elixir_differential.py +31 -0
  112. requisition_aws-0.1.0/tests/test_fake_float_refused.py +84 -0
  113. requisition_aws-0.1.0/tests/test_fence.py +491 -0
  114. requisition_aws-0.1.0/tests/test_gate_rules.py +366 -0
  115. requisition_aws-0.1.0/tests/test_gateway_change_set.py +94 -0
  116. requisition_aws-0.1.0/tests/test_input_rules.py +336 -0
  117. requisition_aws-0.1.0/tests/test_intake_vectors.py +66 -0
  118. requisition_aws-0.1.0/tests/test_interceptor.py +242 -0
  119. requisition_aws-0.1.0/tests/test_key_policy.py +216 -0
  120. requisition_aws-0.1.0/tests/test_key_rule.py +200 -0
  121. requisition_aws-0.1.0/tests/test_lambda_entry.py +99 -0
  122. requisition_aws-0.1.0/tests/test_licence_headers.py +100 -0
  123. requisition_aws-0.1.0/tests/test_mcp_target.py +394 -0
  124. requisition_aws-0.1.0/tests/test_mldsa_vendored.py +187 -0
  125. requisition_aws-0.1.0/tests/test_newer_routes.py +197 -0
  126. requisition_aws-0.1.0/tests/test_no_machine_paths.py +252 -0
  127. requisition_aws-0.1.0/tests/test_packaged_layout.py +60 -0
  128. requisition_aws-0.1.0/tests/test_reader_bounds.py +62 -0
  129. requisition_aws-0.1.0/tests/test_rollback_demo.py +154 -0
  130. requisition_aws-0.1.0/tests/test_rollback_guards.py +302 -0
  131. requisition_aws-0.1.0/tests/test_rollback_scratch_server.py +85 -0
  132. requisition_aws-0.1.0/tests/test_stateless_interceptor.py +666 -0
  133. requisition_aws-0.1.0/tests/test_stateless_target.py +129 -0
  134. requisition_aws-0.1.0/tests/test_strands_hook.py +173 -0
  135. requisition_aws-0.1.0/tests/test_tool_call_reader.py +229 -0
  136. requisition_aws-0.1.0/tests/test_verifier_wording.py +68 -0
  137. requisition_aws-0.1.0/tests/test_verify_chain.py +477 -0
  138. requisition_aws-0.1.0/tests/test_verify_chain_vendored.py +65 -0
  139. requisition_aws-0.1.0/tests/test_verify_offline.py +318 -0
  140. requisition_aws-0.1.0/tests/test_verify_offline_checkpoint.py +97 -0
  141. requisition_aws-0.1.0/tests/test_verify_offline_kms.py +141 -0
  142. requisition_aws-0.1.0/tests/vectors/canonical_v4/PROVENANCE.md +14 -0
  143. requisition_aws-0.1.0/tests/vectors/canonical_v4/negative/cases.jsonl +34 -0
  144. requisition_aws-0.1.0/tests/vectors/canonical_v4/vectors.jsonl +342 -0
  145. requisition_aws-0.1.0/tests/vectors/intake/PROVENANCE.md +15 -0
  146. requisition_aws-0.1.0/tests/vectors/intake/intake.json +721 -0
  147. requisition_aws-0.1.0/tests/vectors/key_rule_vectors.v1.json +756 -0
  148. requisition_aws-0.1.0/tests/vectors/mldsa87/LICENSE.nist-acvp-server +12 -0
  149. requisition_aws-0.1.0/tests/vectors/mldsa87/LICENSE.wycheproof +202 -0
  150. requisition_aws-0.1.0/tests/vectors/mldsa87/PROVENANCE.md +34 -0
  151. requisition_aws-0.1.0/tests/vectors/mldsa87/acvp_sigver_mldsa87_pure_external.json +184 -0
  152. requisition_aws-0.1.0/tests/vectors/mldsa87/wycheproof_mldsa_87_verify_test.json +2949 -0
  153. requisition_aws-0.1.0/uv.lock +1179 -0
@@ -0,0 +1,8 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ .pytest_cache/
5
+ *.lock
6
+ !uv.lock
7
+ .store/
8
+ transcripts/
@@ -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,9 @@
1
+ requisition-aws
2
+ Copyright 2026 Sudo Apt Holdings LLC (Script Kitty OS & Labs)
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License"); see the file LICENSE.
5
+
6
+ This repository also contains third-party files under their own licences, listed in THIRD-PARTY.md.
7
+ The ML-DSA-87 test vectors in tests/vectors/mldsa87/acvp_sigver_mldsa87_pure_external.json come from the
8
+ National Institute of Standards and Technology (NIST), ACVP-Server release v1.1.0.43; the file is a subset of the
9
+ upstream file, made on 2026-11-09 as tests/vectors/mldsa87/PROVENANCE.md describes.
@@ -0,0 +1,299 @@
1
+ Metadata-Version: 2.4
2
+ Name: requisition-aws
3
+ Version: 0.1.0
4
+ Summary: AWS demo adapters for Requisition (Strands hook, AgentCore Gateway REQUEST interceptor, offline check).
5
+ Author: Sudo Apt Holdings LLC (Script Kitty OS & Labs)
6
+ License-Expression: Apache-2.0 AND (CC0-1.0 OR 0BSD)
7
+ License-File: LICENSE
8
+ License-File: NOTICE
9
+ License-File: bin/vendor/LICENSE.mldsa
10
+ Requires-Python: >=3.12
11
+ Requires-Dist: cryptography>=46
12
+ Provides-Extra: strands
13
+ Requires-Dist: botocore[crt]>=1.43.126; extra == 'strands'
14
+ Requires-Dist: strands-agents; extra == 'strands'
15
+ Description-Content-Type: text/markdown
16
+
17
+ # requisition-aws
18
+
19
+ AWS demo adapters for Requisition: a Strands Agents hook, an AgentCore Gateway REQUEST interceptor,
20
+ and an offline check. They let an agent's tool call run only on Requisition's signed `allow` for
21
+ that call's exact arguments.
22
+
23
+ Every Requisition feature these adapters use belongs to Requisition's evaluation environment: the
24
+ `/v1` API, the records it signs (Ed25519, with an ML-DSA-87 co-signature when one is configured,
25
+ under development keys or AWS KMS keys), and its single-use execute. A production release of
26
+ Requisition does not serve `/v1`, and it signs its own receipts with Ed25519 under a key it reads
27
+ from its environment.
28
+
29
+ **Licence:** Apache License 2.0 (`LICENSE`, `NOTICE`). Third-party files keep their own licences; they are
30
+ listed in `THIRD-PARTY.md`.
31
+
32
+ ## The pieces
33
+
34
+ | file | what it is |
35
+ |---|---|
36
+ | `requisition_aws/canonical.py` | A port of Requisition's `CanonicalPayload` v3 encoder and of `act_hash` (`sha384+canonical_payload.v3`: SHA-384 of v3 over the arguments with `act_type` put inside). It also ports the intake rules: a float anywhere in the arguments refused `float_refused` (with its path, before any other check), Unicode Cc/Cf/Zl/Zp refused, NFC required, and the redactor's patterns (`display_value_redactable`). Every refusal happens **before** anything is sent, never as a truncation. |
37
+ | `requisition_aws/client.py` | A stdlib HTTP client for the lab `/v1` API: propose, get request, execute, keys. It can also use a Unix socket. |
38
+ | `requisition_aws/store.py` | The idempotency store. It is a local JSON file with flock-guarded atomic conditional writes. It holds `request_id`s keyed on `act_hash`, the exact execute body bytes keyed on the call's idempotency key, and the hook's "tool ran" marks. |
39
+ | `requisition_aws/gate.py` | The flow both adapters share: deduplicated propose, the sanction read, idempotent execute, and a check of every signed record against what was sent. |
40
+ | `requisition_aws/strands_hook.py` | A Strands `HookProvider`. The flow is: propose, then `event.interrupt` with `{request_id, approval_url}`, then resume, then the hook re-reads the request, then execute, then the tool runs only on a signed allow. `AfterToolCallEvent` sets the "tool ran" mark. Every other outcome is `cancel_tool` (fail closed). |
41
+ | `requisition_aws/interceptor.py` | A Lambda handler for an AgentCore Gateway REQUEST interceptor on MCP targets. It is **not deployed**. |
42
+ | `requisition_aws/registry.py` | The tool to act type registry. An unregistered tool is denied. |
43
+ | `requisition_aws/scripted_model.py` | A Strands `Model` with no network, used by the tests and by `--scripted`. |
44
+ | `requisition_aws/demo_flow.py` | The demo's app loop: print the link, poll, resume, replay, verify, write the transcript. |
45
+ | `bin/verify_offline.py` | Stdlib plus one vendored file; run it with `python3 -I`. It recomputes `act_hash` and the arguments digest from the arguments the approvers were shown, compares them with the signed record, then runs Requisition's unchanged `bin/lab-verify`. For an ML-DSA-87 record, or a record's ML-DSA-87 co-signature, it checks the post-quantum signature itself. `--require-pq` makes that signature mandatory. |
46
+ | `bin/vendor/mldsa.py` | Filippo Valsorda's pure-Python ML-DSA verifier (PyPI `mldsa` 1.0.1, CC0-1.0 OR 0BSD), byte for byte, loaded by path under a pinned SHA-256. See `bin/vendor/VENDORED.md`. |
47
+ | `requisition_aws/mcp_target.py` | **Requisition as the AgentCore Gateway target.** An MCP server (Streamable HTTP; 2026-07-28 and the 2025 versions) that owns the refund tool and runs it only on a signed allow it has checked. It writes `REFUND SENT` to a local ledger, then reports the outcome. `deploy/target/Dockerfile` packages it for AgentCore Runtime (ARM64, `0.0.0.0:8000/mcp`). Not built for ARM64 and not deployed. |
48
+ | `requisition_aws/pq.py` | The package's loader for the vendored verifier. `keys.KeyRegistry` uses it for `mldsa87` key entries. |
49
+ | `requisition_aws/target_flow.py` | The target form's demo loop. It speaks MCP to the served target over HTTP, as a Gateway would. |
50
+ | `demo/run_demo.py` | The Strands demo (`--airgap`; `--require-pq`, default on, applies at run time and in the offline check; `REQUISITION_LAB_KEY_FILE` required and compared with `GET /v1/keys`). |
51
+ | `demo/run_interceptor_local.py` | The interceptor demo. |
52
+ | `demo/run_target_local.py` | The target-form demo. |
53
+ | `demo/run_airgap.py` | Re-checks a finished run's records in `docker run --rm --network none` after a network probe, then shows a one-character change FAIL. |
54
+ | `requisition_aws/fence.py` | **F1, the relying party's own memory.** Every signed record a form reads (statement, decision, outcome) is remembered by its signed `(chain_scope, sequence)`; a different record at a held position is refused `authority_equivocated` and both are kept as evidence. Before acting on an allow, every form claims the statement **and** the `approval_request_id` it names, so a re-minted statement for an approval already acted on is refused `approval_already_used`. `Store.admit` does all of it in one transaction, persisted before the effect. No ordering rule: the lab's chain is the whole account's, so gaps are normal. |
55
+ | `bin/verify_chain.py` | **F1b, a stranger's offline check** of one account chain export against held records (a relying party's position memory or evidence): `link_broken`, `sequence_gap`, `sequence_duplicate`, `export_not_from_genesis`, `held_record_differs`, `export_short`, `equivocation`, `signature_invalid`, `held_record_invalid`, `held_other_scope`, `pq_missing`. Stdlib plus two pinned vendored files: the Ed25519 routine copied from Requisition's `verify_receipt.py`, and `mldsa.py`. Active keys only: a chain with records under a rotated key FAILs `signature_invalid` for them. It judges the export it is given, not the live service. |
56
+ | `bin/export_chain.sh` | The read-only SQL export of one account chain (`psql`, a READ ONLY transaction, `COPY (SELECT ... ORDER BY sequence) TO STDOUT` as CSV; the scope only as a `psql` variable). Point it at a `bin/scratch-db` copy or the demo database. |
57
+ | `demo/run_rollback_local.py` | **The rollback demo, local only.** It runs inside Requisition's `bin/scratch-db` (a database created for the run and dropped after it) on a copy of the demo database, with a second server on another port (`demo/rollback/serve_scratch.exs`). The refund runs once; the database is restored to before the mint; the restored service re-mints and would allow again; the target refuses `authority_equivocated`; `verify_chain.py` FAILs the restored export. `--dry-run` checks the copy and the restore round trip without a server. Its claim, word for word: "If Requisition's database is rolled back, the same executor, with its own records intact, refuses to act again, and the rollback leaves two different records signed by the service's key at one chain position, which anyone can check offline. Lab profile, lab key. (when nothing was appended between the snapshot and the mint; step 7 checks this and stops otherwise)." |
58
+ | `demo/rehearse.sh` | The one-command dress rehearsal: the Strands demo, the interceptor, the target, then the airgap check. Each step prints a short transcript through `demo/present.py`, with credentials elided. `REHEARSE_DRY=1` runs all four against a local fake. |
59
+
60
+ ## Install
61
+
62
+ The package is `requisition_aws`; its one dependency outside the standard library is `cryptography`. The wheel also
63
+ carries the vendored ML-DSA verifier (`bin/vendor/mldsa.py`) inside the package. From PyPI:
64
+
65
+ ```sh
66
+ python3 -m pip install requisition-aws==0.1.0
67
+ ```
68
+
69
+ On a machine without network access, use the release's offline bundle: the wheel, the wheel of every dependency,
70
+ and a `requirements.txt` that pins each of them by SHA-256. In the unpacked bundle:
71
+
72
+ ```sh
73
+ python3 -m venv .venv
74
+ .venv/bin/pip install --no-index --find-links wheels --require-hashes -r requirements.txt
75
+ ```
76
+
77
+ pip installs only files whose SHA-256 is listed, and `--no-index` keeps it off the network. The bundle's `README.md`
78
+ says how to check the bundle itself before installing. The scripts in `bin/` and `demo/` are not in the wheel; they
79
+ are in the source archive and in this repository.
80
+
81
+ ## Tests
82
+
83
+ ```sh
84
+ uv sync
85
+ uv run pytest -q
86
+ ```
87
+
88
+ The tests run against an in-process fake of `/v1` (`tests/fake_requisition.py`). The fake follows the
89
+ cited code's rules: nonce claims and exact retry by body digest, a single spend, and Ed25519-signed
90
+ lab records. The tests never write to a running Requisition, and they need no Requisition checkout: what they
91
+ use of Requisition is committed under `tests/fixtures/`, each folder with a `PROVENANCE.md` that names its source
92
+ and sha256:
93
+
94
+ - **`tests/fixtures/requisition/`**: Requisition's `bin/lab-verify` and the `verify_receipt.py` it runs, byte for
95
+ byte, with their sha256 in that folder's `PROVENANCE.md`. The real `bin/lab-verify` checks records that the fake signed.
96
+ - **`tests/fixtures/seed/`**: the lab seed whose `display_schema` is compared with the test copy.
97
+ - **`tests/fixtures/verify_receipt_r4/`**: the source of the vendored Ed25519 routine.
98
+
99
+ What compares this repository with Requisition's own files (that the copies above are still Requisition's, the
100
+ key-rule texts and vector file, the act hash over Requisition's vectors V1 and V2, which are **never copied here**
101
+ because their arguments are effector material, and the published kit's record) runs in Requisition's test suite,
102
+ where both trees are present.
103
+
104
+ The ML-DSA-87 verifier is checked against these vectors (provenance in `tests/vectors/mldsa87/PROVENANCE.md`):
105
+
106
+ - NIST ACVP sigVer, ML-DSA-87 pure external, at ACVP-Server `975de31e`.
107
+ - All 241 Wycheproof ML-DSA-87 verify vectors at `d17cc89f`. They include tcId 21, the repeated hint (the class of CVE-2026-24850).
108
+
109
+ It is also compared with two other implementations:
110
+
111
+ - `cryptography`'s ML-DSA-87, live.
112
+ - Erlang/OTP 28.5.0.8 `:crypto` over OpenSSL 3.5.9. The run is recorded in `tests/otp/` and re-run when that toolchain is present.
113
+
114
+ The fake also produces four shapes that the Requisition version it follows (of 2026-10-26) does not have (the co-signature, the outcome record, the act_hash lookup and the propose idempotency key), behind `newer_routes=True` and `cosign=...`, and the tests label them that way.
115
+
116
+ `tests/fixtures/elixir_differential/` holds answers from the compiled Requisition modules:
117
+ 4,010 redactor strings and 1,500 encoder terms. `PROVENANCE.md` there records how they were made:
118
+ plain `elixir -pa`, so no app started and no database was opened.
119
+
120
+ ## Running the demo
121
+
122
+ Preconditions are on the demo database (`autonomous_agency_aws_demo`, server on `127.0.0.1:4103`):
123
+
124
+ 1. `payments.refund_send` is registered from `lab/seed/aws_demo.v1.json`.
125
+ 2. A caller grant covers that act type at class `high` or above, with scope `propose_execute`.
126
+ 3. You have that grant's credential and principal.
127
+
128
+ ```sh
129
+ cd requisition-aws
130
+ export REQUISITION_DEMO_DIR=/path/to/demo # required: req/ is a Requisition checkout; transcripts go to log/
131
+ # export REQUISITION_LOAD_WRAPPER=/path/to/cmd # optional: a command placed before docker (--airgap)
132
+ export REQUISITION_URL=http://127.0.0.1:4103
133
+ export REQUISITION_CRED='rqc_...' # never printed; elided from the transcript
134
+ export REQUISITION_PRINCIPAL='rqp_...'
135
+ # export REQUISITION_SOCKET=/path.sock # only if the server runs with REQUISITION_LAB_SOCKET=true
136
+ uv run python demo/run_demo.py --scripted \
137
+ --transcript "$REQUISITION_DEMO_DIR/log/demo-scripted.txt" # no model
138
+ uv run python demo/run_demo.py \
139
+ --transcript "$REQUISITION_DEMO_DIR/log/demo-live.txt" # Bedrock
140
+ ```
141
+
142
+ What each mode uses:
143
+
144
+ - **Live mode** uses Amazon Bedrock `openai.gpt-oss-120b-1:0` in `us-east-1` through the AWS
145
+ profile named by `AWS_PROFILE` (boto3's default chain when unset), with synthetic prompts only.
146
+ - **`--scripted`** calls no model. It drives the same hook path, with the same interrupt and resume.
147
+
148
+ When the agent's tool call is held, the run prints `APPROVE AT http://127.0.0.1:4103/approvals`. Two
149
+ approver accounts approve in the console. The app polls `GET /v1/sanction-requests/<id>`, resumes,
150
+ and the stub prints `REFUND SENT` only on a signed allow. The run then executes the same statement
151
+ under a fresh nonce, which is a signed deny `statement_spent`. Finally it checks every record
152
+ offline. Records, the pinned `GET /v1/keys` file and the store go to `<transcript>-records/`.
153
+
154
+ Check before the live run:
155
+
156
+ - **Time limits.** The statement expires 300 s after the second approval. A row with
157
+ `sanctioners_required >= 2` takes the first time line (`vocabulary.ex:40`, `:86-87`). An allow's
158
+ `exec_not_after` is at most 60 s after the decision (`execute.ex:601-605`).
159
+ - **The key file.** `cmp <records>/lab-keys.json "$REQUISITION_LAB_KEY_FILE"` must report the same
160
+ bytes.
161
+ - **The model.** Whether gpt-oss calls tools through Strands' Bedrock provider is unverified.
162
+ The model may also write a `reason` that the redactor refuses, such as anything containing `sk-`
163
+ (`task-`, `disk-`) or "secret". The hook then cancels with the code, and nothing is proposed.
164
+
165
+ ## The dress rehearsal
166
+
167
+ ```sh
168
+ export REQUISITION_DEMO_DIR=/path/to/demo # as above; REQUISITION_LOAD_WRAPPER too, if you use one
169
+ # required: demo/rehearse.sh has no default and stops without it
170
+ export REQUISITION_URL=http://127.0.0.1:4103 REQUISITION_CRED='rqc_...' REQUISITION_PRINCIPAL='rqp_...'
171
+ export REQUISITION_LAB_KEY_FILE=... # required: steps 1 and 3 refuse unless GET /v1/keys serves these bytes;
172
+ # step 2 checks every signature against this file
173
+ demo/rehearse.sh # STRANDS_MODE=scripted to skip Bedrock
174
+ # REQUIRE_PQ=0 against a server without co-signatures: with 1 (the default)
175
+ # all three forms refuse, AT RUN TIME, any record without a checked
176
+ # ML-DSA-87 signature, and the offline and airgap checks fail it
177
+ REHEARSE_DRY=1 demo/rehearse.sh # a dry run: a local fake /v1 that auto-approves; no lab, no Bedrock
178
+ ```
179
+
180
+ What each part does:
181
+
182
+ - Each step stops at `APPROVE AT` until two approver accounts approve.
183
+ - Full transcripts and records go to `$OUT`, by default `$REQUISITION_DEMO_DIR/log/rehearsal-<UTC>/`.
184
+ - Step 4 runs docker after `REQUISITION_LOAD_WRAPPER` when it is set.
185
+
186
+ ## Requisition as the Gateway target (not deployed)
187
+
188
+ **Why an MCP server target on AgentCore Runtime, not a Lambda target** (AWS docs, fetched 2026-11-09, cited in
189
+ `mcp_target.py`):
190
+
191
+ - **Lambda target.** It receives only the tool arguments, plus gateway, target and request ids. AWS does not
192
+ document how a returned error reaches the agent.
193
+ - **MCP server target.** It returns its own `CallToolResult`, so "awaiting approval", a signed deny and
194
+ "Requisition unavailable" each reach the agent as `isError` results.
195
+ - **Outbound auth.** On Runtime the target takes IAM (SigV4) outbound auth, so the hop from the Gateway to the
196
+ tool needs no stored secret.
197
+
198
+ The tool runs **only** on a checked allow, before its `exec_not_after`, and **at most once per statement**:
199
+
200
+ - The run is claimed in the store first.
201
+ - A Gateway retry of the same invocation returns the stored result. The tool does not run again.
202
+ - A crash mid-run leaves the claim. The call then fails closed and the tool does not run twice.
203
+
204
+ ## The interceptor's configuration (not deployed)
205
+
206
+ | variable | meaning |
207
+ |---|---|
208
+ | `REQUISITION_URL`, `REQUISITION_CRED`, `REQUISITION_PRINCIPAL` | The `/v1` caller. |
209
+ | `REQUISITION_GATEWAY_ID` | This gateway's id, set at deploy. It is used instead of `GATEWAY_ARN`, which is documented for HTTP targets only. |
210
+ | `REQUISITION_TOOLS` | JSON mapping `{"<target>___<tool>": "<act type>"}`. AWS's tool naming is `${target_name}___${tool_name}`. A v2 act type that pins several tool digests takes `{"act_type": ..., "tool_digest": "<this gateway's digest>"}` (G2). |
211
+ | `REQUISITION_CALLER_SOURCE` | `legacy_session` (the default, the pre-G1 behaviour), `sigv4` (the SigV4 access-key id of the forwarded `Authorization`), or `jwt` (with `REQUISITION_JWT_ISSUER`, `REQUISITION_JWT_JWKS_FILE`, and `REQUISITION_JWT_AUDIENCE` and/or `REQUISITION_JWT_CLIENTS`). Any other value refuses to start. See `requisition_aws/caller.py`. |
212
+ | `REQUISITION_SEED` | The lab seed file holding each act type's `display_schema`. |
213
+ | `REQUISITION_STORE` | The idempotency store path. |
214
+ | `REQUISITION_AGENT` | The `agent` member of the arguments object. |
215
+ | `REQUISITION_APPROVAL_BASE` | The console base URL used in approval links. |
216
+ | `REQUISITION_KEYS_FILE` | **Required.** The pinned lab key file. Without it the handler refuses every call. Every statement and decision signature is checked against it, and an allow whose signature was not checked is never passed through. |
217
+ | `REQUISITION_REQUIRE_PQ` | Default `1`: every record must carry an ML-DSA-87 signature checked here (the record's own, or its co-signature). Set `0` only against a server without co-signatures. |
218
+ | `REQUISITION_ALLOW_PLAINTEXT_PRIVATE` | `1` allows `http://` to a private or link-local IP literal (the VPC case). Otherwise `REQUISITION_URL` must be `https`, unless the host is loopback. |
219
+
220
+ The interceptor needs `passRequestHeaders: true`. Without the caller's header (`Mcp-Session-Id` under
221
+ `legacy_session`, `Authorization` under `sigv4` or `jwt`), it refuses every `tools/call` with
222
+ `caller_identity_absent`, fail closed.
223
+
224
+ Every `tools/call` logs the names of the request's headers, never their values. Whether the Gateway
225
+ forwards the SigV4 `Authorization` under AWS_IAM has not been measured yet. One live call shows it,
226
+ and until then the default stays `legacy_session`.
227
+
228
+ Methods are denied by default. Only `initialize`, `ping`, `notifications/*`, `tools/list` and
229
+ `server/discover` pass through. Every other method gets JSON-RPC -32601, including `resources/*`, `prompts/*`,
230
+ `completion/complete`, `subscriptions/listen` and `logging/setLevel`.
231
+
232
+ Each method on it is one an agent needs in order to call a
233
+ gated tool, and none of them reaches an effect. The cost: a 2026-07-28 client cannot subscribe to `list_changed`
234
+ notifications through this Gateway (`subscriptions/listen`), so it has to list again.
235
+
236
+ For a v2 act type that pins tool digests (G2, `requisition_aws/catalog.py`):
237
+
238
+ - The RESPONSE interception point on `tools/list` withholds a drifted tool and marks it. The mark is keyed by
239
+ gateway id, tool and pin, so a re-pin (a new registration, which two approver accounts approve) is not blocked
240
+ by the old pin's mark.
241
+ - A later call to a marked tool is refused. A marked tool is also withheld from every later listing.
242
+ - Only the operator clears a mark: `python -m requisition_aws.catalog --clear-mark <gateway-id> <tool> --store PATH`
243
+ Each clear is appended to `catalog_marks_cleared` as `<mark key>:<n>` and never overwritten.
244
+ Clearing approves nothing. The tool waits as `catalog_recheck_pending`, and calls are refused, until the next
245
+ `tools/list` re-checks it: a tool still drifted is re-marked, and the registered definition is served.
246
+ - The deployed gateway has no RESPONSE point yet. Adding it is part of
247
+ `deploy/gateway/g12-change-set.sh`, run by the operator of the Gateway's stack.
248
+
249
+ The fixtures under `tests/fixtures/interceptor/` are each labelled "AWS documented shape, fetched
250
+ 2026-11-09, not a live Gateway", with their source URLs.
251
+
252
+ ## Limits, stated
253
+
254
+ - **Authorization, not execution.** The record proves the act was **authorized once**. It does not
255
+ prove that it ran.
256
+ - **The key.** The demo key is a **lab key** served by the lab. It is not a trust root:
257
+ `bin/lab-verify` says `DEGRADED (lab)`, `verdict_code: lab_dev_key`, exit 5.
258
+ - **The hook form.** The Strands hook runs **in the agent's own process**, so a compromised agent
259
+ can skip it. The interceptor and target forms do not have this weakness.
260
+ - **Spend before effect.** A statement spent in a REQUEST interceptor stays spent even if AgentCore
261
+ Policy then denies or the target fails. Only the target form binds the spend to the effect.
262
+ - **At most one pass-through per statement, always.** The interceptor writes a durable "passed" mark per statement before it passes a call
263
+ through. Any later invocation that resolves to the same statement is refused with "this approval
264
+ was already used; a new call needs a new approval": a client reusing its JSON-RPC id, a Gateway
265
+ retry, anything. Requisition answers an exact execute retry with the stored allow and no spend
266
+ check (`execute.ex:606-642`), so this mark is what stops a replay.
267
+ - **A Gateway retry after a timed-out first pass-through is therefore refused** (fail closed). The
268
+ approval may be lost and the agent must file again. Only the target form binds the spend to the
269
+ effect.
270
+ - `exec_not_after` is checked on every allow, replayed or not.
271
+ - **Removing the interceptor.** Anyone with `UpdateGateway` can remove the interceptor, and then
272
+ calls leave no record at all. Detecting the absence rests on the outcome record (`POST /v1/outcomes`).
273
+ - **The store.** The idempotency store is one local file:
274
+ - the single-use claims (the interceptor's "passed" mark, the hook's and the target's "ran"
275
+ claims, each taken before the effect) are per host;
276
+ - a Lambda's `/tmp` is per execution environment;
277
+ - a deployment on AWS needs a durable conditional-write store; none is built here.
278
+ - **Approvers.** The demos' acts are approved by two separate accounts ("two approver accounts"), held by one
279
+ person in the lab (the signed records' `hands` member says so). Web sign-in has no second factor.
280
+ - **Single use.** In Requisition's evaluation environment, where its execute API runs, single use holds
281
+ within one database, not across a restore or clone, and that stays open at Requisition. F1 (`fence.py`) adds a refusal by **the executor
282
+ that already acted, with its store intact**: after a rollback the restored service re-mints the approval under a new statement id, and that
283
+ executor refuses it (`authority_equivocated` when the re-mint lands at a position it holds,
284
+ `approval_already_used` otherwise). Not covered:
285
+ - **a different executor** with its own store never saw the first use (open until decisions name their one
286
+ audience);
287
+ - **the deployed Lambda interceptor and the AgentCore Runtime target make NO rollback claim**: their
288
+ store is `/tmp`, per execution environment or microVM, so the memory is lost with it (until their
289
+ store is durable). The claim holds for the Strands hook and the local
290
+ target and interceptor runs, whose store survives;
291
+ - the evidence is two records signed by **the lab key** at one position: it shows that the holder of
292
+ that key signed two histories (lab profile), not a general proof of rollback.
293
+ - **The outcome record.** The outcome record is **the caller's report, not proof** that the effect happened.
294
+ The target form is the one that binds the effect to the allow, because the tool runs inside the target.
295
+ - **The ML-DSA-87 check.** The vendored verifier checks only ML-DSA-87, pure, with an empty context. Both of
296
+ the lab's keys are dev keys, not trust roots.
297
+ - **The approval link.** `GET /v1/sanction-requests/:id` does not return the approval request id
298
+ while a request is pending (`sanction_requests.ex:492`). Until the statement exists, the link is
299
+ the console's `/approvals` list.