torve 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. torve-0.1.0/.gitignore +229 -0
  2. torve-0.1.0/CHANGELOG.md +1870 -0
  3. torve-0.1.0/LICENSE +21 -0
  4. torve-0.1.0/PKG-INFO +257 -0
  5. torve-0.1.0/README.md +193 -0
  6. torve-0.1.0/migrations/AGENTS.md +12 -0
  7. torve-0.1.0/migrations/substrate/FORZE_VERSION +1 -0
  8. torve-0.1.0/migrations/substrate/postgres/0001_durable.sql +42 -0
  9. torve-0.1.0/migrations/torve/postgres/0001_events.sql +40 -0
  10. torve-0.1.0/migrations/torve/postgres/0002_decisions.sql +16 -0
  11. torve-0.1.0/migrations/torve/postgres/README.md +4 -0
  12. torve-0.1.0/pyproject.toml +335 -0
  13. torve-0.1.0/skills/AGENTS.md +50 -0
  14. torve-0.1.0/skills/corpus-bootstrap/AGENTS.md +3 -0
  15. torve-0.1.0/skills/corpus-bootstrap/SKILL.md +128 -0
  16. torve-0.1.0/skills/corpus-bootstrap/fixtures/S-0001/decisions.yaml +45 -0
  17. torve-0.1.0/skills/corpus-bootstrap/fixtures/S-0001/document.yaml +56 -0
  18. torve-0.1.0/skills/corpus-bootstrap/fixtures/survey-report.json +359 -0
  19. torve-0.1.0/skills/corpus-bootstrap/references/doctrine.md +85 -0
  20. torve-0.1.0/skills/corpus-bootstrap/references/draft-template.md +74 -0
  21. torve-0.1.0/skills/corpus-bootstrap/references/workflow.md +93 -0
  22. torve-0.1.0/skills/flag-dont-flip/SKILL.md +166 -0
  23. torve-0.1.0/skills/ratchet-what-you-build/SKILL.md +66 -0
  24. torve-0.1.0/skills/ratchet-what-you-build/references/the-ladder.md +29 -0
  25. torve-0.1.0/skills/spec-writer/AGENTS.md +13 -0
  26. torve-0.1.0/skills/spec-writer/SKILL.md +191 -0
  27. torve-0.1.0/skills/spec-writer/references/authoring.md +59 -0
  28. torve-0.1.0/skills/spec-writer/references/spec-template.md +161 -0
  29. torve-0.1.0/skills/spec-writer/references/workflows.md +178 -0
  30. torve-0.1.0/skills/working-rules/AGENTS.md +54 -0
  31. torve-0.1.0/skills/working-rules/SKILL.md +137 -0
  32. torve-0.1.0/src/torve/AGENTS.md +39 -0
  33. torve-0.1.0/src/torve/__init__.py +10 -0
  34. torve-0.1.0/src/torve/_web/AGENTS.md +12 -0
  35. torve-0.1.0/src/torve/_web/assets/index-KQVC6uXc.css +1 -0
  36. torve-0.1.0/src/torve/_web/assets/index-Nc9hy-rB.js +70 -0
  37. torve-0.1.0/src/torve/_web/index.html +15 -0
  38. torve-0.1.0/src/torve/adapters/AGENTS.md +21 -0
  39. torve-0.1.0/src/torve/adapters/__init__.py +2 -0
  40. torve-0.1.0/src/torve/adapters/agent/AGENTS.md +212 -0
  41. torve-0.1.0/src/torve/adapters/agent/__init__.py +0 -0
  42. torve-0.1.0/src/torve/adapters/agent/fake.py +117 -0
  43. torve-0.1.0/src/torve/adapters/agent/harness.py +1971 -0
  44. torve-0.1.0/src/torve/adapters/broker/AGENTS.md +13 -0
  45. torve-0.1.0/src/torve/adapters/broker/__init__.py +36 -0
  46. torve-0.1.0/src/torve/adapters/broker/local.py +956 -0
  47. torve-0.1.0/src/torve/adapters/broker/none.py +57 -0
  48. torve-0.1.0/src/torve/adapters/eventstore/__init__.py +0 -0
  49. torve-0.1.0/src/torve/adapters/eventstore/document.py +73 -0
  50. torve-0.1.0/src/torve/adapters/notify/AGENTS.md +3 -0
  51. torve-0.1.0/src/torve/adapters/notify/__init__.py +12 -0
  52. torve-0.1.0/src/torve/adapters/notify/inert.py +26 -0
  53. torve-0.1.0/src/torve/adapters/notify/webhook.py +106 -0
  54. torve-0.1.0/src/torve/adapters/runtime/AGENTS.md +42 -0
  55. torve-0.1.0/src/torve/adapters/runtime/__init__.py +0 -0
  56. torve-0.1.0/src/torve/adapters/runtime/docker.py +357 -0
  57. torve-0.1.0/src/torve/adapters/runtime/opensandbox.py +439 -0
  58. torve-0.1.0/src/torve/adapters/store/__init__.py +0 -0
  59. torve-0.1.0/src/torve/adapters/store/durable.py +70 -0
  60. torve-0.1.0/src/torve/adapters/vcs/AGENTS.md +62 -0
  61. torve-0.1.0/src/torve/adapters/vcs/__init__.py +0 -0
  62. torve-0.1.0/src/torve/adapters/vcs/git.py +1200 -0
  63. torve-0.1.0/src/torve/adapters/workspace/AGENTS.md +27 -0
  64. torve-0.1.0/src/torve/adapters/workspace/__init__.py +0 -0
  65. torve-0.1.0/src/torve/adapters/workspace/git.py +377 -0
  66. torve-0.1.0/src/torve/application/AGENTS.md +1648 -0
  67. torve-0.1.0/src/torve/application/__init__.py +1 -0
  68. torve-0.1.0/src/torve/application/channel.py +152 -0
  69. torve-0.1.0/src/torve/application/colocation.py +475 -0
  70. torve-0.1.0/src/torve/application/contextpack.py +844 -0
  71. torve-0.1.0/src/torve/application/decisions.py +989 -0
  72. torve-0.1.0/src/torve/application/dispatch.py +710 -0
  73. torve-0.1.0/src/torve/application/divergence.py +571 -0
  74. torve-0.1.0/src/torve/application/enginelock.py +74 -0
  75. torve-0.1.0/src/torve/application/equipment.py +418 -0
  76. torve-0.1.0/src/torve/application/evals.py +626 -0
  77. torve-0.1.0/src/torve/application/eventlog.py +415 -0
  78. torve-0.1.0/src/torve/application/executors.py +143 -0
  79. torve-0.1.0/src/torve/application/feedback.py +126 -0
  80. torve-0.1.0/src/torve/application/fleet.py +256 -0
  81. torve-0.1.0/src/torve/application/forge.py +436 -0
  82. torve-0.1.0/src/torve/application/intake.py +2057 -0
  83. torve-0.1.0/src/torve/application/lane.py +1982 -0
  84. torve-0.1.0/src/torve/application/ledger.py +683 -0
  85. torve-0.1.0/src/torve/application/manager.py +767 -0
  86. torve-0.1.0/src/torve/application/migrate.py +224 -0
  87. torve-0.1.0/src/torve/application/notify.py +268 -0
  88. torve-0.1.0/src/torve/application/planner.py +1135 -0
  89. torve-0.1.0/src/torve/application/ports.py +660 -0
  90. torve-0.1.0/src/torve/application/projections.py +2158 -0
  91. torve-0.1.0/src/torve/application/reaper.py +514 -0
  92. torve-0.1.0/src/torve/application/residency.py +952 -0
  93. torve-0.1.0/src/torve/application/review.py +1283 -0
  94. torve-0.1.0/src/torve/application/reviewleg.py +1250 -0
  95. torve-0.1.0/src/torve/application/runner.py +1501 -0
  96. torve-0.1.0/src/torve/application/runstate.py +226 -0
  97. torve-0.1.0/src/torve/application/session.py +942 -0
  98. torve-0.1.0/src/torve/application/shadow.py +184 -0
  99. torve-0.1.0/src/torve/application/sizing.py +107 -0
  100. torve-0.1.0/src/torve/application/skills.py +91 -0
  101. torve-0.1.0/src/torve/application/specquality.py +928 -0
  102. torve-0.1.0/src/torve/application/standing.py +665 -0
  103. torve-0.1.0/src/torve/application/survey.py +230 -0
  104. torve-0.1.0/src/torve/application/taskstore.py +167 -0
  105. torve-0.1.0/src/torve/application/telemetry.py +1302 -0
  106. torve-0.1.0/src/torve/application/threads.py +107 -0
  107. torve-0.1.0/src/torve/application/worker.py +239 -0
  108. torve-0.1.0/src/torve/base/AGENTS.md +28 -0
  109. torve-0.1.0/src/torve/base/__init__.py +1 -0
  110. torve-0.1.0/src/torve/base/clock.py +49 -0
  111. torve-0.1.0/src/torve/base/model.py +14 -0
  112. torve-0.1.0/src/torve/base/naming.py +151 -0
  113. torve-0.1.0/src/torve/base/shell.py +149 -0
  114. torve-0.1.0/src/torve/cli/AGENTS.md +568 -0
  115. torve-0.1.0/src/torve/cli/__init__.py +9 -0
  116. torve-0.1.0/src/torve/cli/__main__.py +7 -0
  117. torve-0.1.0/src/torve/cli/assembly.py +231 -0
  118. torve-0.1.0/src/torve/cli/brief.py +183 -0
  119. torve-0.1.0/src/torve/cli/console.py +295 -0
  120. torve-0.1.0/src/torve/cli/context.py +458 -0
  121. torve-0.1.0/src/torve/cli/decisions.py +440 -0
  122. torve-0.1.0/src/torve/cli/doctor.py +988 -0
  123. torve-0.1.0/src/torve/cli/equip.py +184 -0
  124. torve-0.1.0/src/torve/cli/evals.py +559 -0
  125. torve-0.1.0/src/torve/cli/feedback.py +54 -0
  126. torve-0.1.0/src/torve/cli/fleet.py +215 -0
  127. torve-0.1.0/src/torve/cli/gates.py +288 -0
  128. torve-0.1.0/src/torve/cli/init.py +291 -0
  129. torve-0.1.0/src/torve/cli/intake.py +350 -0
  130. torve-0.1.0/src/torve/cli/ledger.py +327 -0
  131. torve-0.1.0/src/torve/cli/log.py +469 -0
  132. torve-0.1.0/src/torve/cli/main.py +164 -0
  133. torve-0.1.0/src/torve/cli/manager.py +1104 -0
  134. torve-0.1.0/src/torve/cli/mcp.py +179 -0
  135. torve-0.1.0/src/torve/cli/merge.py +438 -0
  136. torve-0.1.0/src/torve/cli/migrate.py +87 -0
  137. torve-0.1.0/src/torve/cli/night.py +244 -0
  138. torve-0.1.0/src/torve/cli/options.py +285 -0
  139. torve-0.1.0/src/torve/cli/plan.py +403 -0
  140. torve-0.1.0/src/torve/cli/review.py +744 -0
  141. torve-0.1.0/src/torve/cli/run.py +404 -0
  142. torve-0.1.0/src/torve/cli/sandbox.py +311 -0
  143. torve-0.1.0/src/torve/cli/serve.py +275 -0
  144. torve-0.1.0/src/torve/cli/shadow.py +205 -0
  145. torve-0.1.0/src/torve/cli/sources.py +245 -0
  146. torve-0.1.0/src/torve/cli/spec.py +1664 -0
  147. torve-0.1.0/src/torve/cli/status.py +248 -0
  148. torve-0.1.0/src/torve/cli/survey.py +245 -0
  149. torve-0.1.0/src/torve/cli/why.py +276 -0
  150. torve-0.1.0/src/torve/config/AGENTS.md +638 -0
  151. torve-0.1.0/src/torve/config/__init__.py +1 -0
  152. torve-0.1.0/src/torve/config/agents.py +713 -0
  153. torve-0.1.0/src/torve/config/equipment.py +165 -0
  154. torve-0.1.0/src/torve/config/fleet.py +187 -0
  155. torve-0.1.0/src/torve/config/layout.py +116 -0
  156. torve-0.1.0/src/torve/config/manifest.py +341 -0
  157. torve-0.1.0/src/torve/config/providers.py +374 -0
  158. torve-0.1.0/src/torve/config/runconfig.py +2025 -0
  159. torve-0.1.0/src/torve/config/sources.py +222 -0
  160. torve-0.1.0/src/torve/config/spec.py +1474 -0
  161. torve-0.1.0/src/torve/config/spec_emit.py +692 -0
  162. torve-0.1.0/src/torve/domain/AGENTS.md +317 -0
  163. torve-0.1.0/src/torve/domain/__init__.py +1 -0
  164. torve-0.1.0/src/torve/domain/attempt.py +87 -0
  165. torve-0.1.0/src/torve/domain/events.py +701 -0
  166. torve-0.1.0/src/torve/domain/source.py +111 -0
  167. torve-0.1.0/src/torve/domain/spec.py +769 -0
  168. torve-0.1.0/src/torve/domain/states.py +148 -0
  169. torve-0.1.0/src/torve/domain/task.py +232 -0
  170. torve-0.1.0/src/torve/domain/vocabulary.py +82 -0
  171. torve-0.1.0/src/torve/gates/AGENTS.md +269 -0
  172. torve-0.1.0/src/torve/gates/__init__.py +37 -0
  173. torve-0.1.0/src/torve/gates/acceptance.py +190 -0
  174. torve-0.1.0/src/torve/gates/context.py +309 -0
  175. torve-0.1.0/src/torve/gates/contract.py +41 -0
  176. torve-0.1.0/src/torve/gates/decisions_reported.py +487 -0
  177. torve-0.1.0/src/torve/gates/evidence.py +100 -0
  178. torve-0.1.0/src/torve/gates/no_test_tampering.py +52 -0
  179. torve-0.1.0/src/torve/gates/red_on_base.py +198 -0
  180. torve-0.1.0/src/torve/gates/runner.py +318 -0
  181. torve-0.1.0/src/torve/gates/sabotage.py +747 -0
  182. torve-0.1.0/src/torve/gates/scope.py +89 -0
  183. torve-0.1.0/src/torve/gates/secrets.py +111 -0
  184. torve-0.1.0/src/torve/gates/self_audit.py +44 -0
  185. torve-0.1.0/src/torve/gates/source_layout.py +58 -0
  186. torve-0.1.0/src/torve/gates/user_facing_text.py +157 -0
  187. torve-0.1.0/src/torve/py.typed +0 -0
  188. torve-0.1.0/uv.lock +2028 -0
torve-0.1.0/.gitignore ADDED
@@ -0,0 +1,229 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ # Anchored to the root, all of them. These are the Python packaging
12
+ # conventions and unanchored they reach every directory in the tree: `lib/`
13
+ # swallowed the dsh scope-guard plugin's only source file, and the commit
14
+ # shipped a package.json pointing at a file that was not in it (T-0394). The
15
+ # siblings had the same reach — `dist/` and `build/` are where a JavaScript
16
+ # package puts exactly the same thing.
17
+ /build/
18
+ /develop-eggs/
19
+ /dist/
20
+ /downloads/
21
+ /eggs/
22
+ /.eggs/
23
+ /lib/
24
+ /lib64/
25
+ /parts/
26
+ /sdist/
27
+ /var/
28
+ /wheels/
29
+ share/python-wheels/
30
+ *.egg-info/
31
+ .installed.cfg
32
+ *.egg
33
+ MANIFEST
34
+
35
+ # PyInstaller
36
+ # Usually these files are written by a python script from a template
37
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
38
+ *.manifest
39
+ *.spec
40
+
41
+ # Installer logs
42
+ pip-log.txt
43
+ pip-delete-this-directory.txt
44
+
45
+ # Unit test / coverage reports
46
+ htmlcov/
47
+ .tox/
48
+ .nox/
49
+ .coverage
50
+ .coverage.*
51
+ .cache
52
+ nosetests.xml
53
+ coverage.xml
54
+ *.cover
55
+ *.py.cover
56
+ .hypothesis/
57
+ .pytest_cache/
58
+ cover/
59
+
60
+ # Translations
61
+ *.mo
62
+ *.pot
63
+
64
+ # Django stuff:
65
+ *.log
66
+ local_settings.py
67
+ db.sqlite3
68
+ db.sqlite3-journal
69
+
70
+ # Flask stuff:
71
+ instance/
72
+ .webassets-cache
73
+
74
+ # Scrapy stuff:
75
+ .scrapy
76
+
77
+ # Sphinx documentation
78
+ docs/_build/
79
+
80
+ # PyBuilder
81
+ .pybuilder/
82
+ target/
83
+
84
+ # Jupyter Notebook
85
+ .ipynb_checkpoints
86
+
87
+ # IPython
88
+ profile_default/
89
+ ipython_config.py
90
+
91
+ # pyenv
92
+ # For a library or package, you might want to ignore these files since the code is
93
+ # intended to run in multiple environments; otherwise, check them in:
94
+ # .python-version
95
+
96
+ # pipenv
97
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
98
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
99
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
100
+ # install all needed dependencies.
101
+ # Pipfile.lock
102
+
103
+ # UV
104
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # uv.lock
108
+
109
+ # poetry
110
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
111
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
112
+ # commonly ignored for libraries.
113
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
114
+ # poetry.lock
115
+ # poetry.toml
116
+
117
+ # pdm
118
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
119
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
120
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
121
+ # pdm.lock
122
+ # pdm.toml
123
+ .pdm-python
124
+ .pdm-build/
125
+
126
+ # pixi
127
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
128
+ # pixi.lock
129
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
130
+ # in the .venv directory. It is recommended not to include this directory in version control.
131
+ .pixi
132
+
133
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
134
+ __pypackages__/
135
+
136
+ # Celery stuff
137
+ celerybeat-schedule
138
+ celerybeat.pid
139
+
140
+ # Redis
141
+ *.rdb
142
+ *.aof
143
+ *.pid
144
+
145
+ # RabbitMQ
146
+ mnesia/
147
+ rabbitmq/
148
+ rabbitmq-data/
149
+
150
+ # ActiveMQ
151
+ activemq-data/
152
+
153
+ # SageMath parsed files
154
+ *.sage.py
155
+
156
+ # Environments
157
+ .env
158
+ .envrc
159
+ .venv
160
+ env/
161
+ venv/
162
+ ENV/
163
+ env.bak/
164
+ venv.bak/
165
+
166
+ # Spyder project settings
167
+ .spyderproject
168
+ .spyproject
169
+
170
+ # Rope project settings
171
+ .ropeproject
172
+
173
+ # mkdocs documentation
174
+ /site
175
+
176
+ # mypy
177
+ .mypy_cache/
178
+ .dmypy.json
179
+ dmypy.json
180
+
181
+ # Pyre type checker
182
+ .pyre/
183
+
184
+ # pytype static type analyzer
185
+ .pytype/
186
+
187
+ # Cython debug symbols
188
+ cython_debug/
189
+
190
+ # PyCharm
191
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
192
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
193
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
194
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
195
+ # .idea/
196
+
197
+ # Abstra
198
+ # Abstra is an AI-powered process automation framework.
199
+ # Ignore directories containing user credentials, local state, and settings.
200
+ # Learn more at https://abstra.io/docs
201
+ .abstra/
202
+
203
+ # Visual Studio Code
204
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
205
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
206
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
207
+ # you could uncomment the following to ignore the entire vscode folder
208
+ # .vscode/
209
+ # Temporary file for partial code execution
210
+ tempCodeRunnerFile.py
211
+
212
+ # Ruff stuff:
213
+ .ruff_cache/
214
+
215
+ # PyPI configuration file
216
+ .pypirc
217
+
218
+ # Marimo
219
+ marimo/_static/
220
+ marimo/_lsp/
221
+ __marimo__/
222
+
223
+ # Streamlit
224
+ .streamlit/secrets.toml
225
+
226
+ .wt/
227
+ .repowise/
228
+ .claude/CLAUDE.md
229
+ pages/site/