culsma 1.0.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.
Files changed (133) hide show
  1. culsma-1.0.1/LICENSE +201 -0
  2. culsma-1.0.1/PKG-INFO +160 -0
  3. culsma-1.0.1/README.md +140 -0
  4. culsma-1.0.1/THIRD_PARTY_NOTICES.md +14 -0
  5. culsma-1.0.1/pyproject.toml +46 -0
  6. culsma-1.0.1/setup.cfg +4 -0
  7. culsma-1.0.1/src/culsma/__init__.py +1 -0
  8. culsma-1.0.1/src/culsma/__main__.py +6 -0
  9. culsma-1.0.1/src/culsma/cli.py +403 -0
  10. culsma-1.0.1/src/culsma/common/__init__.py +1 -0
  11. culsma-1.0.1/src/culsma/common/diagnostics.py +35 -0
  12. culsma-1.0.1/src/culsma/common/source.py +15 -0
  13. culsma-1.0.1/src/culsma/driver/__init__.py +7 -0
  14. culsma-1.0.1/src/culsma/driver/base.py +34 -0
  15. culsma-1.0.1/src/culsma/driver/framework/__init__.py +20 -0
  16. culsma-1.0.1/src/culsma/driver/framework/capability.py +50 -0
  17. culsma-1.0.1/src/culsma/driver/framework/contracts.py +34 -0
  18. culsma-1.0.1/src/culsma/driver/framework/driver.py +105 -0
  19. culsma-1.0.1/src/culsma/driver/framework/mapping_core.py +124 -0
  20. culsma-1.0.1/src/culsma/driver/framework/models.py +33 -0
  21. culsma-1.0.1/src/culsma/driver/framework/registry.py +32 -0
  22. culsma-1.0.1/src/culsma/driver/human.py +5 -0
  23. culsma-1.0.1/src/culsma/driver/human_driver/__init__.py +15 -0
  24. culsma-1.0.1/src/culsma/driver/human_driver/backend_emitter.py +21 -0
  25. culsma-1.0.1/src/culsma/driver/human_driver/binding_resolver.py +74 -0
  26. culsma-1.0.1/src/culsma/driver/human_driver/driver.py +24 -0
  27. culsma-1.0.1/src/culsma/driver/human_driver/mapping_core.py +5 -0
  28. culsma-1.0.1/src/culsma/driver/human_driver/models.py +6 -0
  29. culsma-1.0.1/src/culsma/driver/human_driver/mutation_strategy.py +70 -0
  30. culsma-1.0.1/src/culsma/driver/human_driver/receipt_normalizer.py +15 -0
  31. culsma-1.0.1/src/culsma/driver/human_driver/registry.py +35 -0
  32. culsma-1.0.1/src/culsma/driver/human_driver/run_sheet.py +151 -0
  33. culsma-1.0.1/src/culsma/driver/human_driver/translators.py +278 -0
  34. culsma-1.0.1/src/culsma/driver/robot.py +5 -0
  35. culsma-1.0.1/src/culsma/driver/robot_driver/__init__.py +5 -0
  36. culsma-1.0.1/src/culsma/driver/robot_driver/backend_emitter.py +19 -0
  37. culsma-1.0.1/src/culsma/driver/robot_driver/binding_resolver.py +48 -0
  38. culsma-1.0.1/src/culsma/driver/robot_driver/driver.py +25 -0
  39. culsma-1.0.1/src/culsma/driver/robot_driver/receipt_normalizer.py +15 -0
  40. culsma-1.0.1/src/culsma/driver/robot_driver/registry.py +28 -0
  41. culsma-1.0.1/src/culsma/driver/robot_driver/translators.py +71 -0
  42. culsma-1.0.1/src/culsma/driver/stub.py +51 -0
  43. culsma-1.0.1/src/culsma/frontend/__init__.py +17 -0
  44. culsma-1.0.1/src/culsma/frontend/resolver.py +241 -0
  45. culsma-1.0.1/src/culsma/parser/__init__.py +9 -0
  46. culsma-1.0.1/src/culsma/parser/ast_nodes.py +350 -0
  47. culsma-1.0.1/src/culsma/parser/culsma.lark +210 -0
  48. culsma-1.0.1/src/culsma/parser/parser.py +142 -0
  49. culsma-1.0.1/src/culsma/parser/transformer.py +217 -0
  50. culsma-1.0.1/src/culsma/parser/transformer_rules.py +678 -0
  51. culsma-1.0.1/src/culsma/pipeline/__init__.py +1 -0
  52. culsma-1.0.1/src/culsma/pipeline/analysis.py +253 -0
  53. culsma-1.0.1/src/culsma/pipeline/compile/__init__.py +5 -0
  54. culsma-1.0.1/src/culsma/pipeline/compile/callable.py +149 -0
  55. culsma-1.0.1/src/culsma/pipeline/compile/compiler.py +92 -0
  56. culsma-1.0.1/src/culsma/pipeline/compile/context.py +157 -0
  57. culsma-1.0.1/src/culsma/pipeline/compile/expressions.py +179 -0
  58. culsma-1.0.1/src/culsma/pipeline/compile/schedule.py +622 -0
  59. culsma-1.0.1/src/culsma/pipeline/compile/statements.py +1099 -0
  60. culsma-1.0.1/src/culsma/pipeline/compile/targets.py +604 -0
  61. culsma-1.0.1/src/culsma/pipeline/component_expander.py +539 -0
  62. culsma-1.0.1/src/culsma/pipeline/ir_nodes.py +240 -0
  63. culsma-1.0.1/src/culsma/pipeline/operation_specs.py +86 -0
  64. culsma-1.0.1/src/culsma/pipeline/plan/__init__.py +96 -0
  65. culsma-1.0.1/src/culsma/pipeline/plan/context.py +57 -0
  66. culsma-1.0.1/src/culsma/pipeline/plan/gates.py +51 -0
  67. culsma-1.0.1/src/culsma/pipeline/plan/references.py +196 -0
  68. culsma-1.0.1/src/culsma/pipeline/plan/serialization.py +106 -0
  69. culsma-1.0.1/src/culsma/pipeline/plan/statements.py +618 -0
  70. culsma-1.0.1/src/culsma/pipeline/plan_nodes.py +52 -0
  71. culsma-1.0.1/src/culsma/pipeline/program_registry.py +426 -0
  72. culsma-1.0.1/src/culsma/pipeline/typecheck/__init__.py +81 -0
  73. culsma-1.0.1/src/culsma/pipeline/typecheck/context.py +42 -0
  74. culsma-1.0.1/src/culsma/pipeline/typecheck/expressions.py +857 -0
  75. culsma-1.0.1/src/culsma/pipeline/typecheck/statements.py +349 -0
  76. culsma-1.0.1/src/culsma/pipeline/validate/__init__.py +13 -0
  77. culsma-1.0.1/src/culsma/pipeline/validate/binding.py +275 -0
  78. culsma-1.0.1/src/culsma/pipeline/validate/constructors.py +328 -0
  79. culsma-1.0.1/src/culsma/pipeline/validate/context.py +65 -0
  80. culsma-1.0.1/src/culsma/pipeline/validate/environment.py +159 -0
  81. culsma-1.0.1/src/culsma/pipeline/validate/expression_contracts.py +249 -0
  82. culsma-1.0.1/src/culsma/pipeline/validate/groups.py +157 -0
  83. culsma-1.0.1/src/culsma/pipeline/validate/operations.py +93 -0
  84. culsma-1.0.1/src/culsma/pipeline/validate/programs.py +200 -0
  85. culsma-1.0.1/src/culsma/pipeline/validate/resolution.py +110 -0
  86. culsma-1.0.1/src/culsma/pipeline/validate/statement_contracts.py +592 -0
  87. culsma-1.0.1/src/culsma/pipeline/validate/statements.py +915 -0
  88. culsma-1.0.1/src/culsma/pipeline/validate/validator.py +52 -0
  89. culsma-1.0.1/src/culsma/runtime/__init__.py +2 -0
  90. culsma-1.0.1/src/culsma/runtime/event_log.py +39 -0
  91. culsma-1.0.1/src/culsma/runtime/executor.py +217 -0
  92. culsma-1.0.1/src/culsma/runtime/finalize.py +72 -0
  93. culsma-1.0.1/src/culsma/runtime/gates.py +32 -0
  94. culsma-1.0.1/src/culsma/runtime/material_compute.py +1230 -0
  95. culsma-1.0.1/src/culsma/runtime/observation.py +414 -0
  96. culsma-1.0.1/src/culsma/runtime/protocol_outputs.py +48 -0
  97. culsma-1.0.1/src/culsma/runtime/references.py +185 -0
  98. culsma-1.0.1/src/culsma/runtime/replay.py +77 -0
  99. culsma-1.0.1/src/culsma/runtime/session.py +143 -0
  100. culsma-1.0.1/src/culsma/runtime/state.py +49 -0
  101. culsma-1.0.1/src/culsma/runtime/steps.py +562 -0
  102. culsma-1.0.1/src/culsma/runtime/user_result.py +705 -0
  103. culsma-1.0.1/src/culsma/runtime/values.py +808 -0
  104. culsma-1.0.1/src/culsma/stdlib/current_stdlib.culs +98 -0
  105. culsma-1.0.1/src/culsma.egg-info/PKG-INFO +160 -0
  106. culsma-1.0.1/src/culsma.egg-info/SOURCES.txt +131 -0
  107. culsma-1.0.1/src/culsma.egg-info/dependency_links.txt +1 -0
  108. culsma-1.0.1/src/culsma.egg-info/entry_points.txt +2 -0
  109. culsma-1.0.1/src/culsma.egg-info/requires.txt +4 -0
  110. culsma-1.0.1/src/culsma.egg-info/top_level.txt +1 -0
  111. culsma-1.0.1/tests/test_cli.py +224 -0
  112. culsma-1.0.1/tests/test_compile_statement_lifecycle.py +270 -0
  113. culsma-1.0.1/tests/test_driver_framework.py +189 -0
  114. culsma-1.0.1/tests/test_frontend_resolver.py +251 -0
  115. culsma-1.0.1/tests/test_human_driver.py +290 -0
  116. culsma-1.0.1/tests/test_ir_compiler.py +1000 -0
  117. culsma-1.0.1/tests/test_ir_compiler_container_content.py +56 -0
  118. culsma-1.0.1/tests/test_kernel_plan.py +691 -0
  119. culsma-1.0.1/tests/test_kernel_runtime.py +2005 -0
  120. culsma-1.0.1/tests/test_kernel_typecheck.py +240 -0
  121. culsma-1.0.1/tests/test_kernel_typecheck_container_content.py +38 -0
  122. culsma-1.0.1/tests/test_kernel_validate.py +772 -0
  123. culsma-1.0.1/tests/test_kernel_validate_container_content.py +192 -0
  124. culsma-1.0.1/tests/test_material_compute.py +539 -0
  125. culsma-1.0.1/tests/test_material_container_content.py +132 -0
  126. culsma-1.0.1/tests/test_paper_appendix_a.py +39 -0
  127. culsma-1.0.1/tests/test_parser.py +1151 -0
  128. culsma-1.0.1/tests/test_parser_rule_conversion.py +222 -0
  129. culsma-1.0.1/tests/test_plan_statement_lifecycle.py +253 -0
  130. culsma-1.0.1/tests/test_robot_driver.py +66 -0
  131. culsma-1.0.1/tests/test_typecheck_statement_lifecycle.py +251 -0
  132. culsma-1.0.1/tests/test_validate_statement_lifecycle.py +285 -0
  133. culsma-1.0.1/third_party/licenses/Orbitron-OFL-1.1.txt +91 -0
culsma-1.0.1/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Culsma contributors
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
culsma-1.0.1/PKG-INFO ADDED
@@ -0,0 +1,160 @@
1
+ Metadata-Version: 2.4
2
+ Name: culsma
3
+ Version: 1.0.1
4
+ Summary: Public execution-kernel release boundary for the current Culsma reference implementation
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://culsma.dev/
7
+ Project-URL: Documentation, https://culsma.dev/
8
+ Project-URL: Source, https://github.com/culsma/culsma
9
+ Project-URL: Issues, https://github.com/culsma/culsma/issues
10
+ Project-URL: Changelog, https://github.com/culsma/culsma/blob/main/CHANGELOG.md
11
+ Requires-Python: >=3.11
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ License-File: THIRD_PARTY_NOTICES.md
15
+ License-File: third_party/licenses/Orbitron-OFL-1.1.txt
16
+ Requires-Dist: lark>=1.1.0
17
+ Provides-Extra: dev
18
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
19
+ Dynamic: license-file
20
+
21
+ <p align="center">
22
+ <img src="https://raw.githubusercontent.com/culsma/culsma/main/docs/assets/culsma-wordmark.png" alt="Culsma" width="720">
23
+ </p>
24
+
25
+ Culsma is the public reference implementation of the current Culsma language and execution stack.
26
+ The public release is distributed as a Python-based CLI.
27
+
28
+ This repository intentionally contains only the executable core:
29
+
30
+ - `src/culsma/parser/`
31
+ - `src/culsma/pipeline/`
32
+ - `src/culsma/runtime/`
33
+ - `src/culsma/driver/`
34
+ - `src/culsma/stdlib/`
35
+ - minimal public `examples/`
36
+ - `tests/`
37
+
38
+ It intentionally leaves out manuscript sources, MCP tooling, editor
39
+ integrations, and internal design-workspace documents.
40
+
41
+ ## Install
42
+
43
+ For the current public release, install from PyPI:
44
+
45
+ ```bash
46
+ python -m pip install culsma
47
+ ```
48
+
49
+ You can also install directly from the `v1.0.1` tag:
50
+
51
+ ```bash
52
+ python -m pip install "culsma @ git+https://github.com/culsma/culsma.git@v1.0.1"
53
+ ```
54
+
55
+ Release notes are in [CHANGELOG.md](CHANGELOG.md).
56
+
57
+ The public language reference is maintained in the companion
58
+ `culsma-reference` repository/worktree.
59
+
60
+ ## Repository Layout
61
+
62
+ ```text
63
+ src/culsma/parser/ grammar, AST, and source loading
64
+ src/culsma/pipeline/ compile, validate, typecheck, and plan lowering
65
+ src/culsma/runtime/ execution state, events, and material compute
66
+ src/culsma/driver/ backend boundary and concrete drivers
67
+ src/culsma/stdlib/ bundled standard-library source
68
+ examples/ minimal current-surface examples
69
+ tests/ regression and runtime tests
70
+ ```
71
+
72
+ ## Quick Run
73
+
74
+ ```bash
75
+ culsma examples/minimal/public_minimal.culs
76
+ ```
77
+
78
+ This runs the protocol and prints a compact terminal result, including the
79
+ returned tube/container state.
80
+
81
+ The explicit run form is equivalent:
82
+
83
+ ```bash
84
+ culsma run examples/minimal/public_minimal.culs
85
+ ```
86
+
87
+ If you want the machine-readable run output on stdout:
88
+
89
+ ```bash
90
+ culsma run examples/minimal/public_minimal.culs --json
91
+ ```
92
+
93
+ The run output separates the protocol return from the generated lab report:
94
+ `returns` is the program output, while `report` is the execution/reporting
95
+ summary.
96
+
97
+ If you want to save the machine-readable run output explicitly:
98
+
99
+ ```bash
100
+ culsma run examples/minimal/public_minimal.culs --output tmp/result.json
101
+ ```
102
+
103
+ If you want intermediate and debug artifacts as well:
104
+
105
+ ```bash
106
+ culsma run \
107
+ examples/minimal/public_minimal.culs \
108
+ --artifacts-dir tmp/run
109
+ ```
110
+
111
+ If you are running from a source checkout without the console entrypoint on
112
+ `PATH`, use:
113
+
114
+ ```bash
115
+ python -m culsma examples/minimal/public_minimal.culs
116
+ ```
117
+
118
+ You can also replay a saved run artifact:
119
+
120
+ ```bash
121
+ culsma replay --run-json tmp/run/run.json --out tmp/replayed_state.json
122
+ ```
123
+
124
+ ## Run Tests
125
+
126
+ ```bash
127
+ python -m pytest -q
128
+ ```
129
+
130
+ ## More
131
+
132
+ - Documentation: [culsma.dev](https://culsma.dev/)
133
+ - Paper and citation: [culsma.dev/paper-and-citation](https://culsma.dev/paper-and-citation)
134
+ (arXiv preprint forthcoming)
135
+ - Software DOI: [10.5281/zenodo.20059616](https://doi.org/10.5281/zenodo.20059616)
136
+ (latest/versioned software archive)
137
+ - Culsma v1.0.1 DOI: [10.5281/zenodo.20059617](https://doi.org/10.5281/zenodo.20059617)
138
+ - Reference DOI: [10.5281/zenodo.20059696](https://doi.org/10.5281/zenodo.20059696)
139
+ (latest/versioned language reference archive)
140
+ - Culsma Reference v1.0.1 DOI: [10.5281/zenodo.20059697](https://doi.org/10.5281/zenodo.20059697)
141
+ - GitHub Releases: [github.com/culsma/culsma/releases](https://github.com/culsma/culsma/releases)
142
+ - Changelog: [CHANGELOG.md](CHANGELOG.md)
143
+ - Support policy: [SUPPORT.md](SUPPORT.md)
144
+
145
+ ## Release Boundary
146
+
147
+ - This repository is the public code boundary for Culsma v1.0.x.
148
+ - The `examples/` directory contains small runnable CLI examples used for
149
+ public smoke validation.
150
+ - This repository is licensed under Apache-2.0. See `LICENSE`.
151
+
152
+ ## Support and Maintenance Policy
153
+
154
+ Culsma is a public open-source reference implementation of the Culsma language
155
+ and execution stack.
156
+
157
+ The repository is published as-is. Maintainer review is limited to narrowly
158
+ scoped, reproducible defects in the current public baseline. General support,
159
+ custom integration help, roadmap requests, and broad feature requests are out
160
+ of scope for the public issue tracker.
culsma-1.0.1/README.md ADDED
@@ -0,0 +1,140 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/culsma/culsma/main/docs/assets/culsma-wordmark.png" alt="Culsma" width="720">
3
+ </p>
4
+
5
+ Culsma is the public reference implementation of the current Culsma language and execution stack.
6
+ The public release is distributed as a Python-based CLI.
7
+
8
+ This repository intentionally contains only the executable core:
9
+
10
+ - `src/culsma/parser/`
11
+ - `src/culsma/pipeline/`
12
+ - `src/culsma/runtime/`
13
+ - `src/culsma/driver/`
14
+ - `src/culsma/stdlib/`
15
+ - minimal public `examples/`
16
+ - `tests/`
17
+
18
+ It intentionally leaves out manuscript sources, MCP tooling, editor
19
+ integrations, and internal design-workspace documents.
20
+
21
+ ## Install
22
+
23
+ For the current public release, install from PyPI:
24
+
25
+ ```bash
26
+ python -m pip install culsma
27
+ ```
28
+
29
+ You can also install directly from the `v1.0.1` tag:
30
+
31
+ ```bash
32
+ python -m pip install "culsma @ git+https://github.com/culsma/culsma.git@v1.0.1"
33
+ ```
34
+
35
+ Release notes are in [CHANGELOG.md](CHANGELOG.md).
36
+
37
+ The public language reference is maintained in the companion
38
+ `culsma-reference` repository/worktree.
39
+
40
+ ## Repository Layout
41
+
42
+ ```text
43
+ src/culsma/parser/ grammar, AST, and source loading
44
+ src/culsma/pipeline/ compile, validate, typecheck, and plan lowering
45
+ src/culsma/runtime/ execution state, events, and material compute
46
+ src/culsma/driver/ backend boundary and concrete drivers
47
+ src/culsma/stdlib/ bundled standard-library source
48
+ examples/ minimal current-surface examples
49
+ tests/ regression and runtime tests
50
+ ```
51
+
52
+ ## Quick Run
53
+
54
+ ```bash
55
+ culsma examples/minimal/public_minimal.culs
56
+ ```
57
+
58
+ This runs the protocol and prints a compact terminal result, including the
59
+ returned tube/container state.
60
+
61
+ The explicit run form is equivalent:
62
+
63
+ ```bash
64
+ culsma run examples/minimal/public_minimal.culs
65
+ ```
66
+
67
+ If you want the machine-readable run output on stdout:
68
+
69
+ ```bash
70
+ culsma run examples/minimal/public_minimal.culs --json
71
+ ```
72
+
73
+ The run output separates the protocol return from the generated lab report:
74
+ `returns` is the program output, while `report` is the execution/reporting
75
+ summary.
76
+
77
+ If you want to save the machine-readable run output explicitly:
78
+
79
+ ```bash
80
+ culsma run examples/minimal/public_minimal.culs --output tmp/result.json
81
+ ```
82
+
83
+ If you want intermediate and debug artifacts as well:
84
+
85
+ ```bash
86
+ culsma run \
87
+ examples/minimal/public_minimal.culs \
88
+ --artifacts-dir tmp/run
89
+ ```
90
+
91
+ If you are running from a source checkout without the console entrypoint on
92
+ `PATH`, use:
93
+
94
+ ```bash
95
+ python -m culsma examples/minimal/public_minimal.culs
96
+ ```
97
+
98
+ You can also replay a saved run artifact:
99
+
100
+ ```bash
101
+ culsma replay --run-json tmp/run/run.json --out tmp/replayed_state.json
102
+ ```
103
+
104
+ ## Run Tests
105
+
106
+ ```bash
107
+ python -m pytest -q
108
+ ```
109
+
110
+ ## More
111
+
112
+ - Documentation: [culsma.dev](https://culsma.dev/)
113
+ - Paper and citation: [culsma.dev/paper-and-citation](https://culsma.dev/paper-and-citation)
114
+ (arXiv preprint forthcoming)
115
+ - Software DOI: [10.5281/zenodo.20059616](https://doi.org/10.5281/zenodo.20059616)
116
+ (latest/versioned software archive)
117
+ - Culsma v1.0.1 DOI: [10.5281/zenodo.20059617](https://doi.org/10.5281/zenodo.20059617)
118
+ - Reference DOI: [10.5281/zenodo.20059696](https://doi.org/10.5281/zenodo.20059696)
119
+ (latest/versioned language reference archive)
120
+ - Culsma Reference v1.0.1 DOI: [10.5281/zenodo.20059697](https://doi.org/10.5281/zenodo.20059697)
121
+ - GitHub Releases: [github.com/culsma/culsma/releases](https://github.com/culsma/culsma/releases)
122
+ - Changelog: [CHANGELOG.md](CHANGELOG.md)
123
+ - Support policy: [SUPPORT.md](SUPPORT.md)
124
+
125
+ ## Release Boundary
126
+
127
+ - This repository is the public code boundary for Culsma v1.0.x.
128
+ - The `examples/` directory contains small runnable CLI examples used for
129
+ public smoke validation.
130
+ - This repository is licensed under Apache-2.0. See `LICENSE`.
131
+
132
+ ## Support and Maintenance Policy
133
+
134
+ Culsma is a public open-source reference implementation of the Culsma language
135
+ and execution stack.
136
+
137
+ The repository is published as-is. Maintainer review is limited to narrowly
138
+ scoped, reproducible defects in the current public baseline. General support,
139
+ custom integration help, roadmap requests, and broad feature requests are out
140
+ of scope for the public issue tracker.
@@ -0,0 +1,14 @@
1
+ # Third-Party Notices
2
+
3
+ ## Orbitron Font
4
+
5
+ Culsma uses a wordmark asset derived from Orbitron-style brand typography.
6
+
7
+ - Upstream: https://fonts.google.com/specimen/Orbitron
8
+ - Source archive: https://github.com/google/fonts/tree/main/ofl/orbitron
9
+ - License: SIL Open Font License, Version 1.1
10
+ - Local license copy: [third_party/licenses/Orbitron-OFL-1.1.txt](third_party/licenses/Orbitron-OFL-1.1.txt)
11
+
12
+ The SIL Open Font License permits use, embedding, redistribution, and
13
+ bundling of the font with software and documentation assets, subject to
14
+ the license terms.
@@ -0,0 +1,46 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0.3", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "culsma"
7
+ version = "1.0.1"
8
+ description = "Public execution-kernel release boundary for the current Culsma reference implementation"
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "Apache-2.0"
12
+ license-files = [
13
+ "LICENSE",
14
+ "THIRD_PARTY_NOTICES.md",
15
+ "third_party/licenses/*.txt",
16
+ ]
17
+ dependencies = [
18
+ "lark>=1.1.0",
19
+ ]
20
+
21
+ [project.urls]
22
+ Homepage = "https://culsma.dev/"
23
+ Documentation = "https://culsma.dev/"
24
+ Source = "https://github.com/culsma/culsma"
25
+ Issues = "https://github.com/culsma/culsma/issues"
26
+ Changelog = "https://github.com/culsma/culsma/blob/main/CHANGELOG.md"
27
+
28
+ [project.optional-dependencies]
29
+ dev = [
30
+ "pytest>=7.0.0",
31
+ ]
32
+
33
+ [project.scripts]
34
+ culsma = "culsma.cli:main"
35
+
36
+ [tool.setuptools.package-dir]
37
+ "" = "src"
38
+
39
+ [tool.setuptools.packages.find]
40
+ where = ["src"]
41
+ include = ["culsma", "culsma.*"]
42
+
43
+ [tool.setuptools.package-data]
44
+ "culsma" = ["stdlib/*.culs"]
45
+ "culsma.pipeline" = ["operation_catalog.json"]
46
+ "culsma.parser" = ["culsma.lark"]
culsma-1.0.1/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1 @@
1
+ """Culsma package root."""
@@ -0,0 +1,6 @@
1
+ from culsma.cli import main
2
+
3
+
4
+ if __name__ == "__main__":
5
+ main()
6
+