openflowsheet 0.1.1__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.
- openflowsheet-0.1.1/LICENSE +202 -0
- openflowsheet-0.1.1/MANIFEST.in +3 -0
- openflowsheet-0.1.1/NOTICE +27 -0
- openflowsheet-0.1.1/PKG-INFO +101 -0
- openflowsheet-0.1.1/README.md +73 -0
- openflowsheet-0.1.1/pyproject.toml +109 -0
- openflowsheet-0.1.1/setup.cfg +4 -0
- openflowsheet-0.1.1/src/openflowsheet/__init__.py +16 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/benchmarks/k04/reference_values.yaml +540 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/benchmarks/syn001/reference_values.yaml +539 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/benchmarks/t08/numerical_policy_v2.yaml +184 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/api-error.schema.json +45 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/application-results.schema.json +577 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/attempt-context.schema.json +300 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/capability-reference.schema.json +93 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/change-set.schema.json +124 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/checkpoint.schema.json +196 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/compiled-problem-metadata.schema.json +145 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/component-record.schema.json +91 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/evaluation-result.schema.json +115 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/evidence-manifest.schema.json +118 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/execution-plan.schema.json +319 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/failure-bundle.schema.json +95 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/jacobian-result.schema.json +150 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/job-event.schema.json +155 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/job.schema.json +562 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/model-manifest.schema.json +285 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/process-revision.schema.json +177 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/project-policy.schema.json +44 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/quantity.schema.json +85 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/regularity-evidence.schema.json +124 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/replay-report.schema.json +99 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/requirements-ledger.schema.json +182 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/run-manifest.schema.json +199 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/run-result.schema.json +125 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/solution-certificate.schema.json +453 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/solution-state.schema.json +39 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/solve-event.schema.json +454 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/solve-plan.schema.json +184 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/solve-policy.schema.json +392 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/specification.schema.json +75 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/transaction-result.schema.json +134 -0
- openflowsheet-0.1.1/src/openflowsheet/_data/schemas/validation-report.schema.json +105 -0
- openflowsheet-0.1.1/src/openflowsheet/application/__init__.py +10 -0
- openflowsheet-0.1.1/src/openflowsheet/application/admission.py +285 -0
- openflowsheet-0.1.1/src/openflowsheet/application/authz.py +354 -0
- openflowsheet-0.1.1/src/openflowsheet/application/binding.py +1241 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/__init__.py +3 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/REVIEW.json +345 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/cancel_job.md +9 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/commit_change.md +20 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/diff_revisions.md +7 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/get_artifact.md +7 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/get_job.md +9 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/get_job_result.md +11 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/get_project.md +9 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/get_revision.md +7 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/inspect_structure.md +9 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/list_job_events.md +11 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/list_jobs.md +9 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/list_models.md +16 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/list_revisions.md +9 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/preview_change.md +16 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/submit_job.md +11 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/validate.md +11 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/descriptions/wait_job.md +9 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/http.py +481 -0
- openflowsheet-0.1.1/src/openflowsheet/application/bindings/mcp.py +296 -0
- openflowsheet-0.1.1/src/openflowsheet/application/cli.py +561 -0
- openflowsheet-0.1.1/src/openflowsheet/application/contract.py +194 -0
- openflowsheet-0.1.1/src/openflowsheet/application/jobs/__init__.py +7 -0
- openflowsheet-0.1.1/src/openflowsheet/application/jobs/executor.py +599 -0
- openflowsheet-0.1.1/src/openflowsheet/application/jobs/interrupt.py +92 -0
- openflowsheet-0.1.1/src/openflowsheet/application/jobs/model.py +280 -0
- openflowsheet-0.1.1/src/openflowsheet/application/jobs/runner.py +566 -0
- openflowsheet-0.1.1/src/openflowsheet/application/jobs/worker.py +210 -0
- openflowsheet-0.1.1/src/openflowsheet/application/local.py +1473 -0
- openflowsheet-0.1.1/src/openflowsheet/application/operations.py +571 -0
- openflowsheet-0.1.1/src/openflowsheet/application/policies.py +138 -0
- openflowsheet-0.1.1/src/openflowsheet/application/projection.py +317 -0
- openflowsheet-0.1.1/src/openflowsheet/application/revision_binding.py +1285 -0
- openflowsheet-0.1.1/src/openflowsheet/application/revision_run.py +778 -0
- openflowsheet-0.1.1/src/openflowsheet/application/revisions.py +121 -0
- openflowsheet-0.1.1/src/openflowsheet/application/serving.py +106 -0
- openflowsheet-0.1.1/src/openflowsheet/application/store.py +1143 -0
- openflowsheet-0.1.1/src/openflowsheet/application/transactions.py +294 -0
- openflowsheet-0.1.1/src/openflowsheet/application/types.py +1445 -0
- openflowsheet-0.1.1/src/openflowsheet/application/validation.py +995 -0
- openflowsheet-0.1.1/src/openflowsheet/canonical.py +599 -0
- openflowsheet-0.1.1/src/openflowsheet/compile/__init__.py +11 -0
- openflowsheet-0.1.1/src/openflowsheet/compile/casadi_backend.py +640 -0
- openflowsheet-0.1.1/src/openflowsheet/compile/reference.py +90 -0
- openflowsheet-0.1.1/src/openflowsheet/compile/spec.py +246 -0
- openflowsheet-0.1.1/src/openflowsheet/compiled.py +172 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/__init__.py +30 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/analysis.py +218 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/blocks.py +226 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/certificates.py +236 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/dof.py +141 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/matching.py +208 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/process.py +75 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/report.py +248 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/tear.py +404 -0
- openflowsheet-0.1.1/src/openflowsheet/graph/trace.py +521 -0
- openflowsheet-0.1.1/src/openflowsheet/ir/__init__.py +10 -0
- openflowsheet-0.1.1/src/openflowsheet/models/__init__.py +661 -0
- openflowsheet-0.1.1/src/openflowsheet/models/revision_flowsheet.py +849 -0
- openflowsheet-0.1.1/src/openflowsheet/models/rows.py +338 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/__init__.py +50 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/admission.py +74 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/bisection.py +74 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/blocks.py +224 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/component_separator.py +576 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/conversion_reactor.py +767 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/feed.py +304 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/flash.py +576 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/flowsheet.py +392 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/heat_exchanger.py +867 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/heater.py +498 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/kinetic_cstr.py +703 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/mixer.py +595 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/ph_flash.py +605 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/ph_kernel.py +693 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/pump.py +546 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/saturation_band.py +235 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/sink.py +148 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/splitter.py +340 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/tp_state.py +528 -0
- openflowsheet-0.1.1/src/openflowsheet/models/syn001/valve.py +414 -0
- openflowsheet-0.1.1/src/openflowsheet/numerics/__init__.py +14 -0
- openflowsheet-0.1.1/src/openflowsheet/numerics/anderson.py +507 -0
- openflowsheet-0.1.1/src/openflowsheet/numerics/linear.py +233 -0
- openflowsheet-0.1.1/src/openflowsheet/numerics/newton.py +892 -0
- openflowsheet-0.1.1/src/openflowsheet/numerics/ptc.py +759 -0
- openflowsheet-0.1.1/src/openflowsheet/numerics/scaling.py +187 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/__init__.py +14 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/attempts.py +595 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/budget.py +128 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/execution.py +861 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/executor.py +1096 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/homotopy.py +398 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/mass.py +450 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/merge.py +266 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/phase_contract.py +527 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/rank.py +251 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/recovery.py +85 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/region.py +2568 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/revision.py +409 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/roots.py +134 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/splits.py +526 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/tear.py +753 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/trace.py +826 -0
- openflowsheet-0.1.1/src/openflowsheet/orchestrator/warm_start.py +136 -0
- openflowsheet-0.1.1/src/openflowsheet/py.typed +0 -0
- openflowsheet-0.1.1/src/openflowsheet/resources.py +46 -0
- openflowsheet-0.1.1/src/openflowsheet/run/__init__.py +16 -0
- openflowsheet-0.1.1/src/openflowsheet/run/bundle.py +259 -0
- openflowsheet-0.1.1/src/openflowsheet/run/compare.py +767 -0
- openflowsheet-0.1.1/src/openflowsheet/run/identity.py +185 -0
- openflowsheet-0.1.1/src/openflowsheet/run/manifest.py +351 -0
- openflowsheet-0.1.1/src/openflowsheet/run/replay.py +344 -0
- openflowsheet-0.1.1/src/openflowsheet/run/session.py +140 -0
- openflowsheet-0.1.1/src/openflowsheet/run/solution_state.py +109 -0
- openflowsheet-0.1.1/src/openflowsheet/serialize.py +309 -0
- openflowsheet-0.1.1/src/openflowsheet/thermo/__init__.py +224 -0
- openflowsheet-0.1.1/src/openflowsheet/thermo/cache.py +339 -0
- openflowsheet-0.1.1/src/openflowsheet/thermo/syn001.py +423 -0
- openflowsheet-0.1.1/src/openflowsheet/units/__init__.py +601 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/__init__.py +221 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/certificate.py +1235 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/checks.py +930 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/failure.py +480 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/projection.py +199 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/regularity.py +486 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/saturation.py +253 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/table.py +1652 -0
- openflowsheet-0.1.1/src/openflowsheet/verify/zero_flow.py +240 -0
- openflowsheet-0.1.1/src/openflowsheet.egg-info/PKG-INFO +101 -0
- openflowsheet-0.1.1/src/openflowsheet.egg-info/SOURCES.txt +181 -0
- openflowsheet-0.1.1/src/openflowsheet.egg-info/dependency_links.txt +1 -0
- openflowsheet-0.1.1/src/openflowsheet.egg-info/entry_points.txt +2 -0
- openflowsheet-0.1.1/src/openflowsheet.egg-info/requires.txt +18 -0
- openflowsheet-0.1.1/src/openflowsheet.egg-info/top_level.txt +1 -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,27 @@
|
|
|
1
|
+
OpenFlowsheet — an agent-native open process simulator
|
|
2
|
+
|
|
3
|
+
Copyright 2026 E.A.J.F. Peters
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
6
|
+
use this file except in compliance with the License. You may obtain a copy of
|
|
7
|
+
the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
13
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
14
|
+
License for the specific language governing permissions and limitations under
|
|
15
|
+
the License.
|
|
16
|
+
|
|
17
|
+
The copyright line records the author's determination that this is scholarly
|
|
18
|
+
output. Eindhoven University of Technology's guidance distinguishes teaching
|
|
19
|
+
materials, whose copyright belongs to the university, from scholarly work such
|
|
20
|
+
as dissertations, articles and monographs, whose copyright belongs to the
|
|
21
|
+
creator; this software is of the second kind. Recorded here as the basis for
|
|
22
|
+
the line, not as a legal opinion.
|
|
23
|
+
|
|
24
|
+
This project distributes no third-party binaries. It depends on CasADi 3.8.0,
|
|
25
|
+
fetched by the installer from PyPI; that wheel's `_casadi.so` closure is
|
|
26
|
+
LGPL-3.0-or-later and its bytes are not redistributed here. See
|
|
27
|
+
docs/adr/0006-distribution-data-rights.md.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: openflowsheet
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: OpenFlowsheet: an agent-native open process simulator
|
|
5
|
+
Author-email: Frank Peters <e.a.j.f.peters@tue.nl>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Requires-Python: >=3.13
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: NOTICE
|
|
11
|
+
Requires-Dist: numpy==2.2.4
|
|
12
|
+
Requires-Dist: scipy==1.15.3
|
|
13
|
+
Requires-Dist: pyyaml==6.0.2
|
|
14
|
+
Requires-Dist: jsonschema==4.26.0
|
|
15
|
+
Requires-Dist: casadi==3.8.0
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest==8.3.5; extra == "dev"
|
|
18
|
+
Requires-Dist: mypy==1.15.0; extra == "dev"
|
|
19
|
+
Requires-Dist: ruff==0.12.11; extra == "dev"
|
|
20
|
+
Requires-Dist: types-PyYAML==6.0.12.20260906; extra == "dev"
|
|
21
|
+
Requires-Dist: types-jsonschema==4.26.0.20260518; extra == "dev"
|
|
22
|
+
Requires-Dist: mpmath==1.3.0; extra == "dev"
|
|
23
|
+
Provides-Extra: server
|
|
24
|
+
Requires-Dist: mcp==1.30.0; extra == "server"
|
|
25
|
+
Requires-Dist: starlette==1.7.0; extra == "server"
|
|
26
|
+
Requires-Dist: uvicorn==0.54.0; extra == "server"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# OpenFlowsheet
|
|
30
|
+
|
|
31
|
+
An agent-native open process-engineering runtime, in which models, equations, numerical strategies,
|
|
32
|
+
validity limits and evidence are explicit objects. Humans and coding agents work against the same
|
|
33
|
+
scientific contracts. The project owns solver orchestration and process-specific numerical methods,
|
|
34
|
+
and reuses established differentiation, linear-algebra and optimization infrastructure.
|
|
35
|
+
|
|
36
|
+
## Status
|
|
37
|
+
|
|
38
|
+
**Pre-release. Phase 0 is complete; no capability is released, and nothing here is validated against
|
|
39
|
+
experiment or an independent process simulator.**
|
|
40
|
+
|
|
41
|
+
| | |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| Complete | P00 repository and gate, P01 state semantics and the SYN-001 oracle, P02 matched backend spikes, P03 backend and distribution verdicts |
|
|
44
|
+
| In progress | K01 — the production `CompiledProblem` compiler on the selected backend |
|
|
45
|
+
| Established | Numerical verification against independent references: the P01 oracle agrees with 20-digit reference values to 7.1e-15 worst relative deviation, and P02's two backend routes agree with each other and with that reference inside every registered tolerance |
|
|
46
|
+
| **Not** established | Empirical validation against experiment or another simulator; optimality evidence; human numerical or process-modeling review — `review.numerical` and `review.process_model` are `pending` in every evidence manifest and no agent may set them |
|
|
47
|
+
|
|
48
|
+
What the project has and has not shown is recorded per package in `evidence/<ID>/<commit>/manifest.json`,
|
|
49
|
+
and the current position is `docs/progress.md`.
|
|
50
|
+
|
|
51
|
+
## Authorities
|
|
52
|
+
|
|
53
|
+
Read these before changing anything they cover.
|
|
54
|
+
|
|
55
|
+
| Document | Role |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `docs/blueprint-v3.1.md` | Architectural authority. Its SHA-256 is recorded in the implementation plan's header and checked by the test suite |
|
|
58
|
+
| `docs/implementation-plan.md` | Execution authority: work packages, order, acceptance evidence, gates |
|
|
59
|
+
| `docs/adr/` | Normative decisions. ADR 0001 state/units/zero-flow, 0003 backend, 0006 distribution, 0008 transient-extension readiness |
|
|
60
|
+
| `docs/decision-register.md` | What was chosen, what was rejected, and why — the index that makes the ADRs findable by the question they answer |
|
|
61
|
+
| `CLAUDE.md` | Working rules for the two coding agents that share this repository |
|
|
62
|
+
|
|
63
|
+
## Development
|
|
64
|
+
|
|
65
|
+
Requires Python 3.13.
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
make venv # create .venv and install with dev extras
|
|
69
|
+
make check # ruff, ruff format, mypy --strict, pytest
|
|
70
|
+
make lock # regenerate requirements.lock from the environment
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`make check` is the gate. It must be green before any merge, and a failed gate stays failed — it is
|
|
74
|
+
never relaxed, narrowed or worked around to let a change through.
|
|
75
|
+
|
|
76
|
+
## Third-party notices
|
|
77
|
+
|
|
78
|
+
This software uses **CasADi 3.8.0**, which is licensed under the **GNU Lesser General Public License,
|
|
79
|
+
version 3 or later (LGPL-3.0-or-later)**. CasADi is a separate work, obtained by the installer from
|
|
80
|
+
PyPI as a pinned dependency; this project distributes none of its bytes. It is used through its
|
|
81
|
+
Python API only — the interpreter loads the library at run time, nothing is compiled against its
|
|
82
|
+
headers or linked against it at build time, and a user may substitute their own build of CasADi
|
|
83
|
+
3.8.0 by replacing the installed package.
|
|
84
|
+
|
|
85
|
+
The full licence text ships inside the CasADi distribution at `casadi/LICENSE/LICENSE.txt` in the
|
|
86
|
+
installed package, together with notices for its bundled components at `casadi/include/licenses/`.
|
|
87
|
+
|
|
88
|
+
An exact inventory of what that distribution contains — every binary with its SHA-256, the bundled
|
|
89
|
+
plugin inventory including the bytes that cannot run, and the notices — is
|
|
90
|
+
**`docs/p03-binary-audit.md`**, with the machine-readable record in `spikes/p03/results/`. The terms
|
|
91
|
+
on which this project may and may not redistribute any of it are **`docs/adr/0006-distribution-data-rights.md`**.
|
|
92
|
+
Changing the CasADi pin re-runs that audit before the change merges.
|
|
93
|
+
|
|
94
|
+
Further attributions are in `NOTICE`.
|
|
95
|
+
|
|
96
|
+
## Licence
|
|
97
|
+
|
|
98
|
+
The core licence is **Apache-2.0**, declared in `pyproject.toml` and stated in `LICENSE` and
|
|
99
|
+
`NOTICE`. The maintainer confirmed the project's rights to distribute its contributions under it on
|
|
100
|
+
2026-09-23 (`120acb4`). Why Apache-2.0 rather than MIT is recorded in `docs/decision-register.md`
|
|
101
|
+
R-005.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# OpenFlowsheet
|
|
2
|
+
|
|
3
|
+
An agent-native open process-engineering runtime, in which models, equations, numerical strategies,
|
|
4
|
+
validity limits and evidence are explicit objects. Humans and coding agents work against the same
|
|
5
|
+
scientific contracts. The project owns solver orchestration and process-specific numerical methods,
|
|
6
|
+
and reuses established differentiation, linear-algebra and optimization infrastructure.
|
|
7
|
+
|
|
8
|
+
## Status
|
|
9
|
+
|
|
10
|
+
**Pre-release. Phase 0 is complete; no capability is released, and nothing here is validated against
|
|
11
|
+
experiment or an independent process simulator.**
|
|
12
|
+
|
|
13
|
+
| | |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| Complete | P00 repository and gate, P01 state semantics and the SYN-001 oracle, P02 matched backend spikes, P03 backend and distribution verdicts |
|
|
16
|
+
| In progress | K01 — the production `CompiledProblem` compiler on the selected backend |
|
|
17
|
+
| Established | Numerical verification against independent references: the P01 oracle agrees with 20-digit reference values to 7.1e-15 worst relative deviation, and P02's two backend routes agree with each other and with that reference inside every registered tolerance |
|
|
18
|
+
| **Not** established | Empirical validation against experiment or another simulator; optimality evidence; human numerical or process-modeling review — `review.numerical` and `review.process_model` are `pending` in every evidence manifest and no agent may set them |
|
|
19
|
+
|
|
20
|
+
What the project has and has not shown is recorded per package in `evidence/<ID>/<commit>/manifest.json`,
|
|
21
|
+
and the current position is `docs/progress.md`.
|
|
22
|
+
|
|
23
|
+
## Authorities
|
|
24
|
+
|
|
25
|
+
Read these before changing anything they cover.
|
|
26
|
+
|
|
27
|
+
| Document | Role |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| `docs/blueprint-v3.1.md` | Architectural authority. Its SHA-256 is recorded in the implementation plan's header and checked by the test suite |
|
|
30
|
+
| `docs/implementation-plan.md` | Execution authority: work packages, order, acceptance evidence, gates |
|
|
31
|
+
| `docs/adr/` | Normative decisions. ADR 0001 state/units/zero-flow, 0003 backend, 0006 distribution, 0008 transient-extension readiness |
|
|
32
|
+
| `docs/decision-register.md` | What was chosen, what was rejected, and why — the index that makes the ADRs findable by the question they answer |
|
|
33
|
+
| `CLAUDE.md` | Working rules for the two coding agents that share this repository |
|
|
34
|
+
|
|
35
|
+
## Development
|
|
36
|
+
|
|
37
|
+
Requires Python 3.13.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
make venv # create .venv and install with dev extras
|
|
41
|
+
make check # ruff, ruff format, mypy --strict, pytest
|
|
42
|
+
make lock # regenerate requirements.lock from the environment
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`make check` is the gate. It must be green before any merge, and a failed gate stays failed — it is
|
|
46
|
+
never relaxed, narrowed or worked around to let a change through.
|
|
47
|
+
|
|
48
|
+
## Third-party notices
|
|
49
|
+
|
|
50
|
+
This software uses **CasADi 3.8.0**, which is licensed under the **GNU Lesser General Public License,
|
|
51
|
+
version 3 or later (LGPL-3.0-or-later)**. CasADi is a separate work, obtained by the installer from
|
|
52
|
+
PyPI as a pinned dependency; this project distributes none of its bytes. It is used through its
|
|
53
|
+
Python API only — the interpreter loads the library at run time, nothing is compiled against its
|
|
54
|
+
headers or linked against it at build time, and a user may substitute their own build of CasADi
|
|
55
|
+
3.8.0 by replacing the installed package.
|
|
56
|
+
|
|
57
|
+
The full licence text ships inside the CasADi distribution at `casadi/LICENSE/LICENSE.txt` in the
|
|
58
|
+
installed package, together with notices for its bundled components at `casadi/include/licenses/`.
|
|
59
|
+
|
|
60
|
+
An exact inventory of what that distribution contains — every binary with its SHA-256, the bundled
|
|
61
|
+
plugin inventory including the bytes that cannot run, and the notices — is
|
|
62
|
+
**`docs/p03-binary-audit.md`**, with the machine-readable record in `spikes/p03/results/`. The terms
|
|
63
|
+
on which this project may and may not redistribute any of it are **`docs/adr/0006-distribution-data-rights.md`**.
|
|
64
|
+
Changing the CasADi pin re-runs that audit before the change merges.
|
|
65
|
+
|
|
66
|
+
Further attributions are in `NOTICE`.
|
|
67
|
+
|
|
68
|
+
## Licence
|
|
69
|
+
|
|
70
|
+
The core licence is **Apache-2.0**, declared in `pyproject.toml` and stated in `LICENSE` and
|
|
71
|
+
`NOTICE`. The maintainer confirmed the project's rights to distribute its contributions under it on
|
|
72
|
+
2026-09-23 (`120acb4`). Why Apache-2.0 rather than MIT is recorded in `docs/decision-register.md`
|
|
73
|
+
R-005.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
[project.scripts]
|
|
2
|
+
# Blueprint D15: local Python and CLI share one contract, and neither needs a network round
|
|
3
|
+
# trip. The console script is a thin wrapper over `openflowsheet.application.cli`.
|
|
4
|
+
openflowsheet = "openflowsheet.application.cli:main"
|
|
5
|
+
|
|
6
|
+
[build-system]
|
|
7
|
+
requires = ["setuptools>=78.1.1"]
|
|
8
|
+
build-backend = "setuptools.build_meta"
|
|
9
|
+
|
|
10
|
+
[project]
|
|
11
|
+
name = "openflowsheet"
|
|
12
|
+
version = "0.1.1"
|
|
13
|
+
description = "OpenFlowsheet: an agent-native open process simulator"
|
|
14
|
+
requires-python = ">=3.13"
|
|
15
|
+
readme = "README.md"
|
|
16
|
+
license = "Apache-2.0"
|
|
17
|
+
authors = [{ name = "Frank Peters", email = "e.a.j.f.peters@tue.nl" }]
|
|
18
|
+
dependencies = [
|
|
19
|
+
"numpy==2.2.4",
|
|
20
|
+
"scipy==1.15.3",
|
|
21
|
+
"pyyaml==6.0.2",
|
|
22
|
+
"jsonschema==4.26.0",
|
|
23
|
+
# The compiled backend selected by ADR 0003 on the P02/P03 evidence. Pinned exactly, because
|
|
24
|
+
# the [A10] audit in docs/p03-binary-audit.md is of these bytes and no others: changing this
|
|
25
|
+
# pin re-runs scripts/p03_binary_inventory.py before it merges (ADR 0006 D5.4). CasADi is
|
|
26
|
+
# LGPL-3.0-or-later and is used through its Python API only; see the third-party notice in
|
|
27
|
+
# README.md (ADR 0006 D5.1).
|
|
28
|
+
"casadi==3.8.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
dev = [
|
|
33
|
+
"pytest==8.3.5",
|
|
34
|
+
"mypy==1.15.0",
|
|
35
|
+
"ruff==0.12.11",
|
|
36
|
+
"types-PyYAML==6.0.12.20260906",
|
|
37
|
+
"types-jsonschema==4.26.0.20260518",
|
|
38
|
+
"mpmath==1.3.0", # derivation scripts under docs/derivations/scripts (P01 reference values)
|
|
39
|
+
]
|
|
40
|
+
# T07 §11.1: the HTTP and MCP bindings' libraries, optional so that the default install is
|
|
41
|
+
# unchanged. `mcp` is the latest 1.x that speaks protocol 2025-06-18 (`structuredContent`,
|
|
42
|
+
# `outputSchema`); starlette and uvicorn are the versions `mcp` resolves to, pinned exactly. The
|
|
43
|
+
# closure's transitive pins are in requirements.lock, and its licences are inventoried by
|
|
44
|
+
# scripts/t07_licence_inventory.py (gate G19).
|
|
45
|
+
server = [
|
|
46
|
+
"mcp==1.30.0",
|
|
47
|
+
"starlette==1.7.0",
|
|
48
|
+
"uvicorn==0.54.0",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
[tool.setuptools]
|
|
52
|
+
package-dir = { "" = "src" }
|
|
53
|
+
|
|
54
|
+
[tool.setuptools.packages.find]
|
|
55
|
+
where = ["src"]
|
|
56
|
+
|
|
57
|
+
[tool.setuptools.package-data]
|
|
58
|
+
# T08 W4.2: the runtime data the installed package reads (`openflowsheet.resources`). `_data/`
|
|
59
|
+
# holds symbolic links to the single repository copies, so the wheel carries their bytes and the
|
|
60
|
+
# checkout reads the originals; T08.A43's build check compares the two file by file.
|
|
61
|
+
openflowsheet = [
|
|
62
|
+
"py.typed",
|
|
63
|
+
"_data/schemas/*.schema.json",
|
|
64
|
+
"_data/benchmarks/k04/reference_values.yaml",
|
|
65
|
+
"_data/benchmarks/syn001/reference_values.yaml",
|
|
66
|
+
"_data/benchmarks/t08/numerical_policy_v2.yaml",
|
|
67
|
+
]
|
|
68
|
+
# The MCP tool descriptions and their review record are served text (T07 W6c, gate G15).
|
|
69
|
+
"openflowsheet.application.bindings" = ["descriptions/*.md", "descriptions/REVIEW.json"]
|
|
70
|
+
|
|
71
|
+
[tool.ruff]
|
|
72
|
+
line-length = 100
|
|
73
|
+
target-version = "py313"
|
|
74
|
+
|
|
75
|
+
[tool.ruff.lint]
|
|
76
|
+
select = ["E", "F", "I", "B", "UP", "N"]
|
|
77
|
+
|
|
78
|
+
[tool.ruff.lint.per-file-ignores]
|
|
79
|
+
# The SYN-001 oracle and its tests use the physical symbols of the derivation (T, P, K, V, L,
|
|
80
|
+
# F, Q_*, H_*) as identifiers. Those names are fixed by docs/derivations/SYN-001-oracle-spec.md
|
|
81
|
+
# §1, frozen per docs/interfaces-frozen.md, so pep8-naming's lowercase rules for arguments
|
|
82
|
+
# (N803), local variables (N806) and dataclass fields such as `sum_zK` (N815) are switched off
|
|
83
|
+
# for these three files only. No other check is relaxed anywhere.
|
|
84
|
+
"benchmarks/syn001/oracle.py" = ["N803", "N806", "N815"]
|
|
85
|
+
"tests/test_syn001_oracle.py" = ["N803", "N806"]
|
|
86
|
+
"tests/test_syn001_reference_values.py" = ["N803", "N806"]
|
|
87
|
+
|
|
88
|
+
[tool.mypy]
|
|
89
|
+
python_version = "3.13"
|
|
90
|
+
# `benchmarks` is type-checked as strictly as `src`: the SYN-001 oracle is an acceptance
|
|
91
|
+
# reference for K02-K04 and must not drift (P01).
|
|
92
|
+
files = ["src", "benchmarks"]
|
|
93
|
+
# Shadows the malformed stub CasADi 3.8.0 ships; see stubs/casadi/__init__.pyi for why.
|
|
94
|
+
mypy_path = ["stubs"]
|
|
95
|
+
strict = true
|
|
96
|
+
warn_unreachable = true
|
|
97
|
+
|
|
98
|
+
# SciPy ships no py.typed marker and no stub package is pinned, so its imports are untyped.
|
|
99
|
+
# This narrows *only* the missing-stub error for scipy; every other strict check still applies to
|
|
100
|
+
# the code that uses it, and no repository module is exempted.
|
|
101
|
+
[[tool.mypy.overrides]]
|
|
102
|
+
module = ["scipy.*"]
|
|
103
|
+
ignore_missing_imports = true
|
|
104
|
+
|
|
105
|
+
[tool.pytest.ini_options]
|
|
106
|
+
testpaths = ["tests"]
|
|
107
|
+
# The repository root on sys.path so `benchmarks.syn001.oracle` imports without installing it;
|
|
108
|
+
# the oracle is deliberately not part of the `openflowsheet` distribution.
|
|
109
|
+
pythonpath = ["."]
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Agent-native open process simulator, provisional import name ``openflowsheet``.
|
|
2
|
+
|
|
3
|
+
This distribution is the single installable package described in blueprint v3.1 §15: one
|
|
4
|
+
modular monorepo with logical layers rather than microservices. The subpackages ``ir``,
|
|
5
|
+
``units``, ``models``, ``thermo``, ``compile``, ``graph``, ``numerics``, ``orchestrator``,
|
|
6
|
+
and ``application`` correspond to the architectural boundaries of blueprint §3, and each one
|
|
7
|
+
states its own responsibility and the work package that will introduce its behavior. Later
|
|
8
|
+
layers (``studies``, ``adapters``, clients, and the web workbench) are deliberately absent
|
|
9
|
+
until their packages start, per implementation plan §2.
|
|
10
|
+
|
|
11
|
+
No functionality yet; introduced by package P00 (repository bootstrap only).
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
__version__ = "0.1.1"
|
|
15
|
+
|
|
16
|
+
__all__ = ["__version__"]
|