flux-sim-engine 0.2.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 (185) hide show
  1. flux_sim_engine-0.2.0/LICENSE +202 -0
  2. flux_sim_engine-0.2.0/NOTICE +10 -0
  3. flux_sim_engine-0.2.0/PKG-INFO +108 -0
  4. flux_sim_engine-0.2.0/README.md +65 -0
  5. flux_sim_engine-0.2.0/flux_engine/__init__.py +22 -0
  6. flux_sim_engine-0.2.0/flux_engine/_links.py +55 -0
  7. flux_sim_engine-0.2.0/flux_engine/_vendor/__init__.py +5 -0
  8. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/NOTICE +19 -0
  9. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/VENDOR-NOTES.md +104 -0
  10. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/__init__.py +9 -0
  11. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/bundle.py +410 -0
  12. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/enforce.py +316 -0
  13. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-enforcement-0.5.0.json +121 -0
  14. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-manifest-0.5.0.json +153 -0
  15. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-schema-0.2.0.json +465 -0
  16. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-schema-0.3.0.json +876 -0
  17. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-schema-0.4.0.json +1601 -0
  18. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-schema-0.4.1.json +1668 -0
  19. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-schema-0.5.0.json +1669 -0
  20. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-schema-latest.json +1669 -0
  21. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-ui-hints-0.4.0.json +795 -0
  22. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-ui-hints-0.4.1.json +852 -0
  23. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/schema/flux-ui-hints-0.5.0.json +852 -0
  24. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/validate.py +537 -0
  25. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/vectors/enforcement-vectors.json +935 -0
  26. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/vendor/fluid/fluid-schema-0.7.3.json +5234 -0
  27. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/vendor/fluid/fluid-schema-0.7.4.json +5437 -0
  28. flux_sim_engine-0.2.0/flux_engine/_vendor/flux_spec/vendor/fluid/fluid-schema-0.7.5.json +5498 -0
  29. flux_sim_engine-0.2.0/flux_engine/_vocabulary.py +141 -0
  30. flux_sim_engine-0.2.0/flux_engine/accuracy/__init__.py +5 -0
  31. flux_sim_engine-0.2.0/flux_engine/accuracy/_scoring/__init__.py +24 -0
  32. flux_sim_engine-0.2.0/flux_engine/accuracy/accuracy_record.py +96 -0
  33. flux_sim_engine-0.2.0/flux_engine/accuracy/policy.py +158 -0
  34. flux_sim_engine-0.2.0/flux_engine/accuracy/records.py +264 -0
  35. flux_sim_engine-0.2.0/flux_engine/accuracy/store.py +169 -0
  36. flux_sim_engine-0.2.0/flux_engine/api/__init__.py +163 -0
  37. flux_sim_engine-0.2.0/flux_engine/api/accuracy.py +209 -0
  38. flux_sim_engine-0.2.0/flux_engine/api/agentic.py +134 -0
  39. flux_sim_engine-0.2.0/flux_engine/api/calibration.py +125 -0
  40. flux_sim_engine-0.2.0/flux_engine/api/claims.py +93 -0
  41. flux_sim_engine-0.2.0/flux_engine/api/digests.py +73 -0
  42. flux_sim_engine-0.2.0/flux_engine/api/emit.py +78 -0
  43. flux_sim_engine-0.2.0/flux_engine/api/expressions.py +72 -0
  44. flux_sim_engine-0.2.0/flux_engine/api/fidelity.py +110 -0
  45. flux_sim_engine-0.2.0/flux_engine/api/lineage.py +78 -0
  46. flux_sim_engine-0.2.0/flux_engine/api/stages.py +242 -0
  47. flux_sim_engine-0.2.0/flux_engine/api/verdict.py +108 -0
  48. flux_sim_engine-0.2.0/flux_engine/calibrate/__init__.py +5 -0
  49. flux_sim_engine-0.2.0/flux_engine/calibrate/declared.py +253 -0
  50. flux_sim_engine-0.2.0/flux_engine/calibrate/provenance.py +113 -0
  51. flux_sim_engine-0.2.0/flux_engine/cli/__init__.py +2146 -0
  52. flux_sim_engine-0.2.0/flux_engine/cli/__main__.py +17 -0
  53. flux_sim_engine-0.2.0/flux_engine/cli/_documents.py +226 -0
  54. flux_sim_engine-0.2.0/flux_engine/cli/_hints.py +118 -0
  55. flux_sim_engine-0.2.0/flux_engine/cli/_init.py +152 -0
  56. flux_sim_engine-0.2.0/flux_engine/cli/_progress.py +124 -0
  57. flux_sim_engine-0.2.0/flux_engine/concordance/__init__.py +127 -0
  58. flux_sim_engine-0.2.0/flux_engine/concordance/boundary/__init__.py +78 -0
  59. flux_sim_engine-0.2.0/flux_engine/concordance/boundary/merkle.py +287 -0
  60. flux_sim_engine-0.2.0/flux_engine/concordance/boundary/slice.py +429 -0
  61. flux_sim_engine-0.2.0/flux_engine/concordance/boundary/statistic.py +561 -0
  62. flux_sim_engine-0.2.0/flux_engine/concordance/boundary/store.py +334 -0
  63. flux_sim_engine-0.2.0/flux_engine/concordance/boundary/vault.py +357 -0
  64. flux_sim_engine-0.2.0/flux_engine/concordance/compiler.py +542 -0
  65. flux_sim_engine-0.2.0/flux_engine/concordance/errors.py +189 -0
  66. flux_sim_engine-0.2.0/flux_engine/concordance/gate.py +525 -0
  67. flux_sim_engine-0.2.0/flux_engine/concordance/predicate.py +1217 -0
  68. flux_sim_engine-0.2.0/flux_engine/concordance/record.py +554 -0
  69. flux_sim_engine-0.2.0/flux_engine/concordance/verifier.py +583 -0
  70. flux_sim_engine-0.2.0/flux_engine/core/__init__.py +5 -0
  71. flux_sim_engine-0.2.0/flux_engine/core/artifact.py +99 -0
  72. flux_sim_engine-0.2.0/flux_engine/core/canonical.py +369 -0
  73. flux_sim_engine-0.2.0/flux_engine/core/clock.py +437 -0
  74. flux_sim_engine-0.2.0/flux_engine/core/digest.py +288 -0
  75. flux_sim_engine-0.2.0/flux_engine/core/errors.py +277 -0
  76. flux_sim_engine-0.2.0/flux_engine/core/fixedpoint.py +929 -0
  77. flux_sim_engine-0.2.0/flux_engine/core/lrm.py +158 -0
  78. flux_sim_engine-0.2.0/flux_engine/core/rng.py +736 -0
  79. flux_sim_engine-0.2.0/flux_engine/core/seedtree.py +891 -0
  80. flux_sim_engine-0.2.0/flux_engine/core/trace.py +423 -0
  81. flux_sim_engine-0.2.0/flux_engine/describe.py +207 -0
  82. flux_sim_engine-0.2.0/flux_engine/engine.py +257 -0
  83. flux_sim_engine-0.2.0/flux_engine/evidence/__init__.py +5 -0
  84. flux_sim_engine-0.2.0/flux_engine/evidence/pack.py +411 -0
  85. flux_sim_engine-0.2.0/flux_engine/evidence/report.py +243 -0
  86. flux_sim_engine-0.2.0/flux_engine/expr/__init__.py +133 -0
  87. flux_sim_engine-0.2.0/flux_engine/expr/ast.py +312 -0
  88. flux_sim_engine-0.2.0/flux_engine/expr/attrs.py +386 -0
  89. flux_sim_engine-0.2.0/flux_engine/expr/check.py +278 -0
  90. flux_sim_engine-0.2.0/flux_engine/expr/compile.py +322 -0
  91. flux_sim_engine-0.2.0/flux_engine/expr/errors.py +256 -0
  92. flux_sim_engine-0.2.0/flux_engine/expr/lexer.py +297 -0
  93. flux_sim_engine-0.2.0/flux_engine/expr/parser.py +313 -0
  94. flux_sim_engine-0.2.0/flux_engine/expr/types.py +177 -0
  95. flux_sim_engine-0.2.0/flux_engine/generator/__init__.py +97 -0
  96. flux_sim_engine-0.2.0/flux_engine/generator/families.py +325 -0
  97. flux_sim_engine-0.2.0/flux_engine/generator/paths.py +227 -0
  98. flux_sim_engine-0.2.0/flux_engine/generator/rows.py +918 -0
  99. flux_sim_engine-0.2.0/flux_engine/generator/statistics.py +524 -0
  100. flux_sim_engine-0.2.0/flux_engine/governance/__init__.py +87 -0
  101. flux_sim_engine-0.2.0/flux_engine/governance/audit.py +307 -0
  102. flux_sim_engine-0.2.0/flux_engine/governance/gate.py +334 -0
  103. flux_sim_engine-0.2.0/flux_engine/governance/skills.py +220 -0
  104. flux_sim_engine-0.2.0/flux_engine/governance/sovereignty.py +251 -0
  105. flux_sim_engine-0.2.0/flux_engine/lineage/__init__.py +5 -0
  106. flux_sim_engine-0.2.0/flux_engine/lineage/emitter.py +398 -0
  107. flux_sim_engine-0.2.0/flux_engine/py.typed +0 -0
  108. flux_sim_engine-0.2.0/flux_engine/runtime/__init__.py +153 -0
  109. flux_sim_engine-0.2.0/flux_engine/runtime/campaign.py +407 -0
  110. flux_sim_engine-0.2.0/flux_engine/runtime/cast.py +283 -0
  111. flux_sim_engine-0.2.0/flux_engine/runtime/detector.py +222 -0
  112. flux_sim_engine-0.2.0/flux_engine/runtime/errors.py +58 -0
  113. flux_sim_engine-0.2.0/flux_engine/runtime/experiment.py +311 -0
  114. flux_sim_engine-0.2.0/flux_engine/runtime/journey.py +383 -0
  115. flux_sim_engine-0.2.0/flux_engine/runtime/jurisdiction.py +72 -0
  116. flux_sim_engine-0.2.0/flux_engine/runtime/payloads.py +124 -0
  117. flux_sim_engine-0.2.0/flux_engine/runtime/signals.py +334 -0
  118. flux_sim_engine-0.2.0/flux_engine/runtime/temperature.py +156 -0
  119. flux_sim_engine-0.2.0/flux_engine/seam/__init__.py +5 -0
  120. flux_sim_engine-0.2.0/flux_engine/seam/attest.py +290 -0
  121. flux_sim_engine-0.2.0/flux_engine/seam/conform.py +448 -0
  122. flux_sim_engine-0.2.0/flux_engine/seam/contract.py +605 -0
  123. flux_sim_engine-0.2.0/flux_engine/seam/emit.py +488 -0
  124. flux_sim_engine-0.2.0/flux_engine/seam/mapping.py +299 -0
  125. flux_sim_engine-0.2.0/flux_engine/seam/resolve.py +1087 -0
  126. flux_sim_engine-0.2.0/flux_engine/seam/sinks.py +157 -0
  127. flux_sim_engine-0.2.0/flux_engine/spec/__init__.py +134 -0
  128. flux_sim_engine-0.2.0/flux_engine/spec/bundle.py +25 -0
  129. flux_sim_engine-0.2.0/flux_engine/spec/enforce.py +31 -0
  130. flux_sim_engine-0.2.0/flux_engine/spec/validate.py +28 -0
  131. flux_sim_engine-0.2.0/flux_engine/stages/__init__.py +30 -0
  132. flux_sim_engine-0.2.0/flux_engine/stages/apply.py +447 -0
  133. flux_sim_engine-0.2.0/flux_engine/stages/errors.py +315 -0
  134. flux_sim_engine-0.2.0/flux_engine/stages/layout.py +292 -0
  135. flux_sim_engine-0.2.0/flux_engine/stages/pipeline.py +600 -0
  136. flux_sim_engine-0.2.0/flux_engine/stages/plan.py +241 -0
  137. flux_sim_engine-0.2.0/flux_engine/stages/replay.py +83 -0
  138. flux_sim_engine-0.2.0/flux_engine/stages/run.py +208 -0
  139. flux_sim_engine-0.2.0/flux_engine/stages/ship.py +934 -0
  140. flux_sim_engine-0.2.0/flux_engine/stages/validate.py +93 -0
  141. flux_sim_engine-0.2.0/flux_engine/stages/verify.py +1129 -0
  142. flux_sim_engine-0.2.0/flux_engine/starter/__init__.py +161 -0
  143. flux_sim_engine-0.2.0/flux_engine/starter/bundle/detector.flux.yml +15 -0
  144. flux_sim_engine-0.2.0/flux_engine/starter/bundle/journey.flux.yml +23 -0
  145. flux_sim_engine-0.2.0/flux_engine/starter/bundle/module.flux.yml +16 -0
  146. flux_sim_engine-0.2.0/flux_engine/starter/bundle/payment-recovery.fluid.yml +30 -0
  147. flux_sim_engine-0.2.0/flux_engine/starter/bundle/persona.flux.yml +26 -0
  148. flux_sim_engine-0.2.0/flux_engine/starter/bundle/signal.flux.yml +13 -0
  149. flux_sim_engine-0.2.0/flux_engine/starter/bundle/simulation.flux.yml +29 -0
  150. flux_sim_engine-0.2.0/flux_engine/starter/bundle/taxonomy.flux.yml +17 -0
  151. flux_sim_engine-0.2.0/flux_engine/starter/bundle/treatment.flux.yml +13 -0
  152. flux_sim_engine-0.2.0/flux_engine/starter/bundle/world.flux.yml +20 -0
  153. flux_sim_engine-0.2.0/flux_engine/verticals/__init__.py +85 -0
  154. flux_sim_engine-0.2.0/flux_engine/verticals/telco.py +89 -0
  155. flux_sim_engine-0.2.0/flux_engine/world/__init__.py +89 -0
  156. flux_sim_engine-0.2.0/flux_engine/world/derived.py +195 -0
  157. flux_sim_engine-0.2.0/flux_engine/world/errors.py +41 -0
  158. flux_sim_engine-0.2.0/flux_engine/world/families.py +260 -0
  159. flux_sim_engine-0.2.0/flux_engine/world/population.py +602 -0
  160. flux_sim_engine-0.2.0/flux_engine/world/tracing.py +66 -0
  161. flux_sim_engine-0.2.0/flux_engine/world/values.py +121 -0
  162. flux_sim_engine-0.2.0/flux_sim_engine.egg-info/PKG-INFO +108 -0
  163. flux_sim_engine-0.2.0/flux_sim_engine.egg-info/SOURCES.txt +340 -0
  164. flux_sim_engine-0.2.0/flux_sim_engine.egg-info/dependency_links.txt +1 -0
  165. flux_sim_engine-0.2.0/flux_sim_engine.egg-info/entry_points.txt +2 -0
  166. flux_sim_engine-0.2.0/flux_sim_engine.egg-info/requires.txt +24 -0
  167. flux_sim_engine-0.2.0/flux_sim_engine.egg-info/top_level.txt +1 -0
  168. flux_sim_engine-0.2.0/pyproject.toml +429 -0
  169. flux_sim_engine-0.2.0/setup.cfg +4 -0
  170. flux_sim_engine-0.2.0/tests/test_architecture.py +390 -0
  171. flux_sim_engine-0.2.0/tests/test_artifact_envelope.py +80 -0
  172. flux_sim_engine-0.2.0/tests/test_check_proof_material.py +684 -0
  173. flux_sim_engine-0.2.0/tests/test_cli.py +116 -0
  174. flux_sim_engine-0.2.0/tests/test_cli_envelope_contract.py +82 -0
  175. flux_sim_engine-0.2.0/tests/test_community_files.py +273 -0
  176. flux_sim_engine-0.2.0/tests/test_describe.py +167 -0
  177. flux_sim_engine-0.2.0/tests/test_distribution_name.py +67 -0
  178. flux_sim_engine-0.2.0/tests/test_first_run_script.py +216 -0
  179. flux_sim_engine-0.2.0/tests/test_flux_examples_gate.py +136 -0
  180. flux_sim_engine-0.2.0/tests/test_register_lint.py +290 -0
  181. flux_sim_engine-0.2.0/tests/test_spec_modules.py +74 -0
  182. flux_sim_engine-0.2.0/tests/test_spec_shim.py +172 -0
  183. flux_sim_engine-0.2.0/tests/test_startup_budget.py +37 -0
  184. flux_sim_engine-0.2.0/tests/test_third_party_licenses.py +106 -0
  185. flux_sim_engine-0.2.0/tests/test_workflow_pins.py +78 -0
@@ -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,10 @@
1
+ FLUX Simulation Engine
2
+ Copyright 2026 Agentics Transformation Limited
3
+
4
+ This product includes a vendored fallback copy of `flux_spec`
5
+ (Apache License, Version 2.0; Copyright 2026 The FLUX Project authors)
6
+ under flux_engine/_vendor/flux_spec/ -- see that directory's own NOTICE
7
+ and VENDOR-NOTES.md for attribution details and the exact upstream
8
+ commit it was taken from.
9
+
10
+ Third-party dependency licenses are listed in THIRD_PARTY_LICENSES.md.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: flux-sim-engine
3
+ Version: 0.2.0
4
+ Summary: FLUX Simulation Engine: the runtime for FLUX bundles -- deterministic, governed simulation under a referenced FLUID contract.
5
+ Author: Agentics Transformation Ltd
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Repository, https://github.com/Agenticstiger/flux-engine
8
+ Keywords: FLUX,FLUID,simulation,synthetic data,data contracts
9
+ Classifier: Development Status :: 2 - Pre-Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Requires-Python: >=3.11
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ License-File: NOTICE
19
+ License-File: flux_engine/_vendor/flux_spec/NOTICE
20
+ Requires-Dist: numpy<3,>=1.26
21
+ Requires-Dist: pydantic<3,>=2.7
22
+ Requires-Dist: pyyaml>=6
23
+ Requires-Dist: jsonschema>=4.22
24
+ Requires-Dist: rfc8785>=0.1
25
+ Requires-Dist: cloudevents<3,>=1.10
26
+ Requires-Dist: cryptography>=42
27
+ Requires-Dist: flux-spec<0.6,>=0.5
28
+ Provides-Extra: lineage
29
+ Requires-Dist: openlineage-python>=1.20; extra == "lineage"
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest>=7.4; extra == "dev"
32
+ Requires-Dist: pytest-cov>=4.1; extra == "dev"
33
+ Requires-Dist: hypothesis>=6.100; extra == "dev"
34
+ Requires-Dist: mypy>=1.10; extra == "dev"
35
+ Requires-Dist: ruff>=0.5; extra == "dev"
36
+ Requires-Dist: black==26.10.1; extra == "dev"
37
+ Requires-Dist: import-linter>=2.0; extra == "dev"
38
+ Requires-Dist: pytest-xdist>=3.6; extra == "dev"
39
+ Requires-Dist: pytest-timeout>=2.3; extra == "dev"
40
+ Requires-Dist: sybil==10.1.0; extra == "dev"
41
+ Requires-Dist: reuse[charset-normalizer]==6.3.0; extra == "dev"
42
+ Dynamic: license-file
43
+
44
+ # FLUX Simulation Engine
45
+
46
+ Describe your customers and what they do in YAML, and this engine turns that into synthetic rows that follow a [FLUID](https://open-data-protocol.github.io/fluid/) data contract: the same rows every time, with a report that says plainly what the run does not show.
47
+
48
+ ## Try it
49
+
50
+ You need [uv](https://docs.astral.sh/uv/). (Until the package is on PyPI you also need a clone of this repository and `git`: run `uv build --wheel` in the clone and pass the wheel's path after `--from` instead of the package name.)
51
+
52
+ <!-- skip: next "the package is not on PyPI yet; the First run workflow runs these same commands from a built wheel" -->
53
+ ```bash
54
+ uvx --from flux-sim-engine fluxsim init demo && cd demo && uvx --from flux-sim-engine fluxsim run . --verify --ship -o out
55
+ ```
56
+
57
+ That writes a small project, runs a 500-customer simulation, checks the result and packs an evidence archive into `out/`, in a few seconds. With the command installed (`uv tool install flux-sim-engine`, or `pip install flux-sim-engine` in a virtual environment), the same two steps print this:
58
+
59
+ ```console
60
+ $ fluxsim init demo
61
+ created demo with a small FLUX bundle and its FLUID contract (10 files):
62
+ ...
63
+ $ cd demo
64
+ $ fluxsim run . --verify --ship -o out
65
+ ...
66
+ emitted payment_recovery_moment: 154 rows (scenario)
67
+ reproducible: not checked | validity: not asserted
68
+ ...
69
+ shipped out/demo.flux.tgz
70
+ run 8dec55892096169f complete; shipped to out
71
+ ```
72
+
73
+ Open `.flux/runs/<runId>/EVIDENCE.md` first: its last section, "What Was Not Proven", lists what the run does not show. The [tutorial](docs/tutorial/first-evidence-pack.md) goes through each step.
74
+
75
+ ## What it is
76
+
77
+ - **Repeatable.** The same bundle and the same seed give the same bytes on every system the project's CI checks (Linux and macOS, Python 3.11 to 3.13). `fluxsim replay` runs a recorded plan again and refuses unless it reaches the digest you give it.
78
+ - **Declarative.** A bundle is YAML documents for the world, the personas, the signals, the journeys and the treatments. It refers to a FLUID contract and never restates it, so the rows have the shape the contract expects.
79
+ - **Six steps, one command each.** `validate`, `plan`, `apply`, `run`, `verify`, `ship`. `ship` packs the bundle, the run and a manifest into one archive, writes two unsigned in-toto statements beside it, and the report inside always ends in a section called "What Was Not Proven".
80
+
81
+ ## What it is not
82
+
83
+ - **Not evidence about the real world.** The engine reproduces the scenario you describe. Whether the scenario matches reality is a separate question, and in this release the report answers it `validity: not asserted`.
84
+ - **Not a privacy or fairness tool.** The rows are made from the numbers you declare. The pack makes no claim about privacy, fairness or any model trained on the rows.
85
+ - **Not finished.** The agentic tier, the sweep executor for `fidelity: stochastic`, calibration with `pyabc`, synthesis with `synthcity` and an OpenLineage transport are absent, and the engine says so instead of degrading quietly. `fluxsim describe --self` says whether the libraries behind four of them (`agentic`, `calibrate_abc`, `synth`, `lineage_transport`) are installed, and a bundle that asks for `fidelity: stochastic` is refused with an error.
86
+
87
+ ## Where to go next
88
+
89
+ - [Tutorial](docs/tutorial/README.md): your first evidence pack in five minutes.
90
+ - [How-to guides](docs/how-to/README.md): model customers, add a journey, use the FLUID seam, calibrate from aggregates, ship with evidence.
91
+ - [Explanation](docs/explanation/README.md): the six-step loop, determinism and the seed tree, the seam, and what an evidence pack does not claim.
92
+ - [Reference](docs/reference/README.md): every command, every error code, the Python API and the schemas.
93
+ - The FLUX specification: [Agenticstiger/flux](https://github.com/Agenticstiger/flux).
94
+
95
+ ## Develop
96
+
97
+ See [CONTRIBUTING.md](CONTRIBUTING.md). The short version:
98
+
99
+ ```text
100
+ uv sync --extra dev
101
+ make check
102
+ ```
103
+
104
+ `make check` runs the static checks and the fast tests; `make ci-local` runs every check in `.github/workflows/ci.yml`. `make docs-test` runs every page of the documentation as a test, and `make docs-gen` rewrites the generated reference pages. The decisions behind the design are in [docs/adr/](docs/adr/).
105
+
106
+ ## License
107
+
108
+ Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). Third-party components are listed in [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
@@ -0,0 +1,65 @@
1
+ # FLUX Simulation Engine
2
+
3
+ Describe your customers and what they do in YAML, and this engine turns that into synthetic rows that follow a [FLUID](https://open-data-protocol.github.io/fluid/) data contract: the same rows every time, with a report that says plainly what the run does not show.
4
+
5
+ ## Try it
6
+
7
+ You need [uv](https://docs.astral.sh/uv/). (Until the package is on PyPI you also need a clone of this repository and `git`: run `uv build --wheel` in the clone and pass the wheel's path after `--from` instead of the package name.)
8
+
9
+ <!-- skip: next "the package is not on PyPI yet; the First run workflow runs these same commands from a built wheel" -->
10
+ ```bash
11
+ uvx --from flux-sim-engine fluxsim init demo && cd demo && uvx --from flux-sim-engine fluxsim run . --verify --ship -o out
12
+ ```
13
+
14
+ That writes a small project, runs a 500-customer simulation, checks the result and packs an evidence archive into `out/`, in a few seconds. With the command installed (`uv tool install flux-sim-engine`, or `pip install flux-sim-engine` in a virtual environment), the same two steps print this:
15
+
16
+ ```console
17
+ $ fluxsim init demo
18
+ created demo with a small FLUX bundle and its FLUID contract (10 files):
19
+ ...
20
+ $ cd demo
21
+ $ fluxsim run . --verify --ship -o out
22
+ ...
23
+ emitted payment_recovery_moment: 154 rows (scenario)
24
+ reproducible: not checked | validity: not asserted
25
+ ...
26
+ shipped out/demo.flux.tgz
27
+ run 8dec55892096169f complete; shipped to out
28
+ ```
29
+
30
+ Open `.flux/runs/<runId>/EVIDENCE.md` first: its last section, "What Was Not Proven", lists what the run does not show. The [tutorial](docs/tutorial/first-evidence-pack.md) goes through each step.
31
+
32
+ ## What it is
33
+
34
+ - **Repeatable.** The same bundle and the same seed give the same bytes on every system the project's CI checks (Linux and macOS, Python 3.11 to 3.13). `fluxsim replay` runs a recorded plan again and refuses unless it reaches the digest you give it.
35
+ - **Declarative.** A bundle is YAML documents for the world, the personas, the signals, the journeys and the treatments. It refers to a FLUID contract and never restates it, so the rows have the shape the contract expects.
36
+ - **Six steps, one command each.** `validate`, `plan`, `apply`, `run`, `verify`, `ship`. `ship` packs the bundle, the run and a manifest into one archive, writes two unsigned in-toto statements beside it, and the report inside always ends in a section called "What Was Not Proven".
37
+
38
+ ## What it is not
39
+
40
+ - **Not evidence about the real world.** The engine reproduces the scenario you describe. Whether the scenario matches reality is a separate question, and in this release the report answers it `validity: not asserted`.
41
+ - **Not a privacy or fairness tool.** The rows are made from the numbers you declare. The pack makes no claim about privacy, fairness or any model trained on the rows.
42
+ - **Not finished.** The agentic tier, the sweep executor for `fidelity: stochastic`, calibration with `pyabc`, synthesis with `synthcity` and an OpenLineage transport are absent, and the engine says so instead of degrading quietly. `fluxsim describe --self` says whether the libraries behind four of them (`agentic`, `calibrate_abc`, `synth`, `lineage_transport`) are installed, and a bundle that asks for `fidelity: stochastic` is refused with an error.
43
+
44
+ ## Where to go next
45
+
46
+ - [Tutorial](docs/tutorial/README.md): your first evidence pack in five minutes.
47
+ - [How-to guides](docs/how-to/README.md): model customers, add a journey, use the FLUID seam, calibrate from aggregates, ship with evidence.
48
+ - [Explanation](docs/explanation/README.md): the six-step loop, determinism and the seed tree, the seam, and what an evidence pack does not claim.
49
+ - [Reference](docs/reference/README.md): every command, every error code, the Python API and the schemas.
50
+ - The FLUX specification: [Agenticstiger/flux](https://github.com/Agenticstiger/flux).
51
+
52
+ ## Develop
53
+
54
+ See [CONTRIBUTING.md](CONTRIBUTING.md). The short version:
55
+
56
+ ```text
57
+ uv sync --extra dev
58
+ make check
59
+ ```
60
+
61
+ `make check` runs the static checks and the fast tests; `make ci-local` runs every check in `.github/workflows/ci.yml`. `make docs-test` runs every page of the documentation as a test, and `make docs-gen` rewrites the generated reference pages. The decisions behind the design are in [docs/adr/](docs/adr/).
62
+
63
+ ## License
64
+
65
+ Apache License 2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE). Third-party components are listed in [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
@@ -0,0 +1,22 @@
1
+ # Copyright 2026 Agentics Transformation Limited
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ """FLUX Simulation Engine -- the runtime for FLUX bundles.
6
+
7
+ The sibling of the FLUID standard and CLI (``fluid``, ``data-product-forge``):
8
+ FLUX is the "wind tunnel" that runs a declarative simulation bundle and emits,
9
+ under a referenced FLUID contract, the exact rows that contract will see in
10
+ production.
11
+ """
12
+
13
+ from __future__ import annotations
14
+
15
+ from importlib import metadata as _metadata
16
+
17
+ try:
18
+ __version__ = _metadata.version("flux-sim-engine")
19
+ except _metadata.PackageNotFoundError: # pragma: no cover - editable/dev tree, no metadata yet
20
+ __version__ = "0.2.0"
21
+
22
+ __all__ = ["__version__"]
@@ -0,0 +1,55 @@
1
+ # Copyright 2026 Agentics Transformation Limited
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ """Where the documentation lives, in one place.
6
+
7
+ Every URL the command line prints comes from here: the docs link at the foot of
8
+ ``--help``, the page a failing command points at, the support link. That is what
9
+ keeps a printed URL stable. It is a function of a code or a command name and
10
+ nothing else, so a page can be moved by changing one constant, and a test
11
+ (``tests/docs/test_generated_docs.py``) holds that every URL this module builds
12
+ names a page that exists in ``docs/``.
13
+
14
+ The layout it relies on, relative to the root of these docs::
15
+
16
+ reference/cli/README.md every command <base>reference/cli/
17
+ reference/cli/<command>.md one command <base>reference/cli/<command>.html
18
+ reference/errors/README.md every FLX code <base>reference/errors/
19
+ reference/errors/FLX-nnnn.md one code <base>reference/errors/FLX-nnnn.html
20
+
21
+ The base is the address these docs are published at. They are written in this
22
+ repository and join the FLUX specification's site as its ``engine/`` folder. That
23
+ site is built with VuePress at ``base: '/flux/'``, which its config locks because
24
+ every published schema ``$id`` depends on it, so ``docs/engine/reference/errors/FLX-nnnn.md``
25
+ there is served as ``/flux/engine/reference/errors/FLX-nnnn.html``. Until the pages
26
+ are in the site they are not reachable: printing the address early is deliberate,
27
+ because the address is what has to stay stable.
28
+
29
+ **These addresses are public.** Every released version prints them, and a printed
30
+ address cannot be recalled. Moving a page means leaving something behind at the
31
+ old address. ``test_the_published_addresses_do_not_move`` in
32
+ ``tests/docs/test_generated_docs.py`` holds the literal strings, so a change to
33
+ the base or to the layout above fails a test instead of passing quietly because
34
+ the page and the address moved together.
35
+ """
36
+
37
+ from __future__ import annotations
38
+
39
+ __all__ = ["DOCS_URL", "ISSUES_URL", "command_url", "error_url"]
40
+
41
+ #: The folder of the published site these docs live in. Ends with a slash.
42
+ DOCS_URL = "https://agenticstiger.github.io/flux/engine/"
43
+
44
+ #: Where a person reports a problem with the engine.
45
+ ISSUES_URL = "https://github.com/Agenticstiger/flux-engine/issues"
46
+
47
+
48
+ def error_url(code: str) -> str:
49
+ """The page that explains *code* (``FLX-nnnn``)."""
50
+ return f"{DOCS_URL}reference/errors/{code}.html"
51
+
52
+
53
+ def command_url(command: str = "") -> str:
54
+ """The reference page of one top-level command, or the index when *command* is empty."""
55
+ return f"{DOCS_URL}reference/cli/{command}.html" if command else f"{DOCS_URL}reference/cli/"
@@ -0,0 +1,5 @@
1
+ # Copyright 2026 Agentics Transformation Limited
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ """Vendored fallback copies of third-party packages flux_engine depends on."""
@@ -0,0 +1,19 @@
1
+ flux_spec (vendored copy)
2
+ Copyright 2026 The FLUX Project authors
3
+
4
+ This product includes software from the FLUX specification project
5
+ (https://github.com/Agenticstiger/flux), licensed under the Apache
6
+ License, Version 2.0. A copy of the License is available at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ See VENDOR-NOTES.md in this directory for the exact upstream commit this
11
+ copy was taken from and the minimal edits applied to make the validator,
12
+ enforcement gate, and bundler resolve their data paths from inside this
13
+ vendored package layout instead of a checked-out FLUX repository.
14
+
15
+ Unless required by applicable law or agreed to in writing, software
16
+ distributed under the License is distributed on an "AS IS" BASIS,
17
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ See the License for the specific language governing permissions and
19
+ limitations under the License.
@@ -0,0 +1,104 @@
1
+ # Vendor notes — `flux_engine/_vendor/flux_spec/`
2
+
3
+ ## Provenance
4
+
5
+ Copied verbatim (byte-for-byte, then edited as listed below) from
6
+ `Agenticstiger/flux`. The pinned commit below is the provenance; it is
7
+ reproducible from a clone of that repository anywhere.
8
+
9
+ **Upstream commit pinned:** `0181eeb21f35355c1f88bb8f06c8335493d94611`
10
+
11
+ Retrieved via `git show <commit>:<path>` rather than the working tree,
12
+ because the FLUX checkout had uncommitted, in-flight changes at copy time
13
+ (a `feat/flux-spec-package` branch already mid-refactor into a `flux_spec/`
14
+ package with `scripts/*.py` becoming compatibility shims — exactly the
15
+ public-distribution work owner decision 2 describes for a later
16
+ increment, W1). Pinning to the last commit keeps this vendor copy
17
+ reproducible and independent of that unmerged, unstable work.
18
+
19
+ Files copied, each verified byte-identical to the pinned blob before any
20
+ edit was applied:
21
+
22
+ | Vendored path | Upstream path (at the pinned commit) |
23
+ |---|---|
24
+ | `validate.py` | `scripts/validate.py` |
25
+ | `enforce.py` | `scripts/enforce.py` |
26
+ | `bundle.py` | `scripts/bundle.py` |
27
+ | `schema/*.json` (11 files) | `schema/*.json` |
28
+ | `vendor/fluid/*.json` (3 files) | `vendor/fluid/*.json` |
29
+ | `vectors/enforcement-vectors.json` | `tests/enforcement-vectors.json` |
30
+
31
+ `tests/test_regression.py` was read for context (not vendored — flux_engine
32
+ has its own test suite; `test_spec_shim.py` exercises this vendored copy
33
+ directly instead of re-running the upstream regression file).
34
+
35
+ ## Lines changed (minimal edits, path resolution only)
36
+
37
+ No logic, control flow, or behavior was changed. Every edit is a
38
+ `Path(__file__)`-relative constant, changed because this copy lives
39
+ directly inside the vendored package directory instead of two levels
40
+ below a repository root under `scripts/`.
41
+
42
+ ### `validate.py`
43
+
44
+ ```diff
45
+ -REPO = Path(__file__).resolve().parent.parent
46
+ +REPO = Path(__file__).resolve().parent
47
+ FLUX_SCHEMA_PATH = REPO / "schema" / "flux-schema-latest.json"
48
+ FLUID_VENDOR_DIR = REPO / "vendor" / "fluid"
49
+ ```
50
+
51
+ `FLUX_SCHEMA_PATH` and `FLUID_VENDOR_DIR` are unchanged — they already
52
+ resolve correctly once `REPO` points at this directory (which now itself
53
+ contains `schema/` and `vendor/fluid/`).
54
+
55
+ Left intentionally unfixed (inert in flux_engine's usage): `main()`'s
56
+ no-argument branch does `(REPO / "examples").iterdir()` to discover bundle
57
+ directories for the standalone `python3 scripts/validate.py` CLI. This
58
+ vendored copy has no `examples/` directory and `flux_engine.spec.validate`
59
+ never calls `main()` — only `Bundle`, `canonical_digest`,
60
+ `load_yaml_docs`, and `semver_satisfies` are imported by the shim
61
+ (`flux_engine/spec/validate.py`). If a future increment wants the
62
+ standalone CLI to work from this vendored copy, that branch needs its own
63
+ fix at that time.
64
+
65
+ ### `enforce.py`
66
+
67
+ ```diff
68
+ -REPO = Path(__file__).resolve().parent.parent
69
+ -DEFAULT_VECTORS = REPO / "tests" / "enforcement-vectors.json"
70
+ +REPO = Path(__file__).resolve().parent
71
+ +DEFAULT_VECTORS = REPO / "vectors" / "enforcement-vectors.json"
72
+ ```
73
+
74
+ The vectors file is vendored under `vectors/` (not `tests/`) per the task
75
+ spec, so the directory segment changed along with the `.parent` count.
76
+
77
+ ### `bundle.py`
78
+
79
+ ```diff
80
+ -REPO = Path(__file__).resolve().parent.parent
81
+ -sys.path.insert(0, str(REPO / "scripts"))
82
+ -from validate import Bundle, load_yaml_docs # noqa: E402
83
+ +REPO = Path(__file__).resolve().parent
84
+ +from .validate import Bundle, load_yaml_docs # noqa: E402
85
+ ```
86
+
87
+ `validate.py` is now a sibling module inside the same Python package
88
+ (`flux_engine._vendor.flux_spec`) rather than a same-directory *script*
89
+ next to `bundle.py` on `sys.path`, so the `sys.path.insert` + bare
90
+ top-level `import validate` becomes an ordinary package-relative import.
91
+ `import sys` was dropped from the top-of-file import block because the
92
+ removed `sys.path.insert` call was its only use in the module.
93
+
94
+ `SCHEMA_PATH`, `MANIFEST_SCHEMA_PATH`, and the `-o/--out` argparse default
95
+ (`REPO / "dist"`) are unchanged — all already resolve correctly under the
96
+ one-level-shallower `REPO`.
97
+
98
+ ## License
99
+
100
+ Apache License, Version 2.0. See `NOTICE` in this directory.
101
+
102
+ ## Provenance check (2026-09-06)
103
+
104
+ All vendored JSON files are byte-identical to `origin/main` (`35d979f`) of Agenticstiger/flux; the three Python modules are identical to `origin/main` except for the path edits listed above.
@@ -0,0 +1,9 @@
1
+ """Vendored fallback copy of the ``flux_spec`` distribution (Apache-2.0).
2
+
3
+ See ``NOTICE`` for attribution and ``VENDOR-NOTES.md`` for the upstream
4
+ commit this copy was taken from and every line changed to make it resolve
5
+ its data paths from inside this package instead of a checked-out FLUX
6
+ repository. ``flux_engine.spec`` is the only supported entry point into
7
+ this package from the rest of flux_engine — nothing else should import
8
+ ``flux_engine._vendor.flux_spec`` directly except to resolve a data path.
9
+ """