mitos-adr 0.17.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 (150) hide show
  1. mitos_adr-0.17.1/LICENSE +201 -0
  2. mitos_adr-0.17.1/MANIFEST.in +5 -0
  3. mitos_adr-0.17.1/PKG-INFO +132 -0
  4. mitos_adr-0.17.1/README.md +99 -0
  5. mitos_adr-0.17.1/SETUP.md +563 -0
  6. mitos_adr-0.17.1/docker-compose.yml +26 -0
  7. mitos_adr-0.17.1/mitos/__init__.py +41 -0
  8. mitos_adr-0.17.1/mitos/__main__.py +6 -0
  9. mitos_adr-0.17.1/mitos/_agent_block.py +165 -0
  10. mitos_adr-0.17.1/mitos/_update.py +153 -0
  11. mitos_adr-0.17.1/mitos/check.py +1569 -0
  12. mitos_adr-0.17.1/mitos/cli.py +6336 -0
  13. mitos_adr-0.17.1/mitos/config.py +743 -0
  14. mitos_adr-0.17.1/mitos/conflict.py +1210 -0
  15. mitos_adr-0.17.1/mitos/conflict_judgment.py +264 -0
  16. mitos_adr-0.17.1/mitos/cutover.py +1112 -0
  17. mitos_adr-0.17.1/mitos/display.py +469 -0
  18. mitos_adr-0.17.1/mitos/divergence.py +695 -0
  19. mitos_adr-0.17.1/mitos/embeddings.py +265 -0
  20. mitos_adr-0.17.1/mitos/env.py +277 -0
  21. mitos_adr-0.17.1/mitos/errors.py +579 -0
  22. mitos_adr-0.17.1/mitos/format-spec.md +124 -0
  23. mitos_adr-0.17.1/mitos/identity.py +322 -0
  24. mitos_adr-0.17.1/mitos/importer.py +332 -0
  25. mitos_adr-0.17.1/mitos/lexical.py +215 -0
  26. mitos_adr-0.17.1/mitos/mcp_server.py +1430 -0
  27. mitos_adr-0.17.1/mitos/migrations.py +855 -0
  28. mitos_adr-0.17.1/mitos/models.py +84 -0
  29. mitos_adr-0.17.1/mitos/overview.py +468 -0
  30. mitos_adr-0.17.1/mitos/parser.py +1454 -0
  31. mitos_adr-0.17.1/mitos/protocols.py +396 -0
  32. mitos_adr-0.17.1/mitos/recall.py +652 -0
  33. mitos_adr-0.17.1/mitos/registry.py +558 -0
  34. mitos_adr-0.17.1/mitos/renderer.py +481 -0
  35. mitos_adr-0.17.1/mitos/replay.py +119 -0
  36. mitos_adr-0.17.1/mitos/restore.py +265 -0
  37. mitos_adr-0.17.1/mitos/routing.py +433 -0
  38. mitos_adr-0.17.1/mitos/store.py +3180 -0
  39. mitos_adr-0.17.1/mitos/sync.py +3702 -0
  40. mitos_adr-0.17.1/mitos/telemetry.py +1194 -0
  41. mitos_adr-0.17.1/mitos/vector_store.py +533 -0
  42. mitos_adr-0.17.1/mitos_adr.egg-info/PKG-INFO +132 -0
  43. mitos_adr-0.17.1/mitos_adr.egg-info/SOURCES.txt +148 -0
  44. mitos_adr-0.17.1/mitos_adr.egg-info/dependency_links.txt +1 -0
  45. mitos_adr-0.17.1/mitos_adr.egg-info/entry_points.txt +2 -0
  46. mitos_adr-0.17.1/mitos_adr.egg-info/requires.txt +10 -0
  47. mitos_adr-0.17.1/mitos_adr.egg-info/top_level.txt +1 -0
  48. mitos_adr-0.17.1/pyproject.toml +127 -0
  49. mitos_adr-0.17.1/setup.cfg +4 -0
  50. mitos_adr-0.17.1/tests/test_adversarial_importer.py +105 -0
  51. mitos_adr-0.17.1/tests/test_adversarial_invariants.py +500 -0
  52. mitos_adr-0.17.1/tests/test_adversarial_mcp.py +188 -0
  53. mitos_adr-0.17.1/tests/test_adversarial_rendering.py +215 -0
  54. mitos_adr-0.17.1/tests/test_agent_block.py +230 -0
  55. mitos_adr-0.17.1/tests/test_check_cli.py +588 -0
  56. mitos_adr-0.17.1/tests/test_check_engine.py +1109 -0
  57. mitos_adr-0.17.1/tests/test_check_hardening.py +875 -0
  58. mitos_adr-0.17.1/tests/test_check_hook_recipe.py +487 -0
  59. mitos_adr-0.17.1/tests/test_check_probe.py +905 -0
  60. mitos_adr-0.17.1/tests/test_check_screen.py +324 -0
  61. mitos_adr-0.17.1/tests/test_check_staged.py +987 -0
  62. mitos_adr-0.17.1/tests/test_check_sweep.py +663 -0
  63. mitos_adr-0.17.1/tests/test_cli.py +238 -0
  64. mitos_adr-0.17.1/tests/test_cli_additions.py +714 -0
  65. mitos_adr-0.17.1/tests/test_cli_pathologies.py +495 -0
  66. mitos_adr-0.17.1/tests/test_cli_selector.py +1467 -0
  67. mitos_adr-0.17.1/tests/test_collection_absence_live.py +539 -0
  68. mitos_adr-0.17.1/tests/test_collection_derivation.py +667 -0
  69. mitos_adr-0.17.1/tests/test_config.py +714 -0
  70. mitos_adr-0.17.1/tests/test_conflict_closeout.py +711 -0
  71. mitos_adr-0.17.1/tests/test_conflict_constants.py +167 -0
  72. mitos_adr-0.17.1/tests/test_conflict_facade.py +469 -0
  73. mitos_adr-0.17.1/tests/test_conflict_faults.py +575 -0
  74. mitos_adr-0.17.1/tests/test_conflict_gather.py +557 -0
  75. mitos_adr-0.17.1/tests/test_conflict_judgment.py +442 -0
  76. mitos_adr-0.17.1/tests/test_conflict_judgment_executor.py +454 -0
  77. mitos_adr-0.17.1/tests/test_conflict_modifier_surfacing.py +139 -0
  78. mitos_adr-0.17.1/tests/test_conflict_screen.py +321 -0
  79. mitos_adr-0.17.1/tests/test_conflict_sync.py +802 -0
  80. mitos_adr-0.17.1/tests/test_corpus_provenance.py +1167 -0
  81. mitos_adr-0.17.1/tests/test_covering_write_gate.py +739 -0
  82. mitos_adr-0.17.1/tests/test_cutover.py +1174 -0
  83. mitos_adr-0.17.1/tests/test_description_budget.py +146 -0
  84. mitos_adr-0.17.1/tests/test_directory_global.py +378 -0
  85. mitos_adr-0.17.1/tests/test_display_emitters.py +207 -0
  86. mitos_adr-0.17.1/tests/test_display_encoding.py +198 -0
  87. mitos_adr-0.17.1/tests/test_divergence.py +730 -0
  88. mitos_adr-0.17.1/tests/test_doc_reconciliation.py +48 -0
  89. mitos_adr-0.17.1/tests/test_dogfood_self_parse.py +185 -0
  90. mitos_adr-0.17.1/tests/test_edge_catalog.py +518 -0
  91. mitos_adr-0.17.1/tests/test_embedding_seed.py +395 -0
  92. mitos_adr-0.17.1/tests/test_embeddings.py +155 -0
  93. mitos_adr-0.17.1/tests/test_env_resolution.py +781 -0
  94. mitos_adr-0.17.1/tests/test_env_routing.py +1135 -0
  95. mitos_adr-0.17.1/tests/test_genai_log_filter.py +41 -0
  96. mitos_adr-0.17.1/tests/test_global_keys.py +178 -0
  97. mitos_adr-0.17.1/tests/test_identity.py +573 -0
  98. mitos_adr-0.17.1/tests/test_importer.py +149 -0
  99. mitos_adr-0.17.1/tests/test_init.py +639 -0
  100. mitos_adr-0.17.1/tests/test_integration_live.py +428 -0
  101. mitos_adr-0.17.1/tests/test_judgment_recorded.py +173 -0
  102. mitos_adr-0.17.1/tests/test_letter_payload.py +84 -0
  103. mitos_adr-0.17.1/tests/test_lexical_fallback.py +750 -0
  104. mitos_adr-0.17.1/tests/test_lineage_and_cycles.py +424 -0
  105. mitos_adr-0.17.1/tests/test_list_decisions.py +421 -0
  106. mitos_adr-0.17.1/tests/test_live_floor.py +138 -0
  107. mitos_adr-0.17.1/tests/test_live_helpers.py +490 -0
  108. mitos_adr-0.17.1/tests/test_mcp.py +113 -0
  109. mitos_adr-0.17.1/tests/test_mcp_selector.py +1355 -0
  110. mitos_adr-0.17.1/tests/test_mcp_stdio_harness.py +1056 -0
  111. mitos_adr-0.17.1/tests/test_mechanisms.py +393 -0
  112. mitos_adr-0.17.1/tests/test_migration_snapshot.py +589 -0
  113. mitos_adr-0.17.1/tests/test_migrations.py +1070 -0
  114. mitos_adr-0.17.1/tests/test_modifier_surfacing.py +1200 -0
  115. mitos_adr-0.17.1/tests/test_neighbor_review.py +1622 -0
  116. mitos_adr-0.17.1/tests/test_oneline_tier.py +214 -0
  117. mitos_adr-0.17.1/tests/test_oq_state.py +466 -0
  118. mitos_adr-0.17.1/tests/test_packaging.py +314 -0
  119. mitos_adr-0.17.1/tests/test_parser.py +1316 -0
  120. mitos_adr-0.17.1/tests/test_pathologies_live.py +433 -0
  121. mitos_adr-0.17.1/tests/test_payload_economy.py +222 -0
  122. mitos_adr-0.17.1/tests/test_polish_pass.py +113 -0
  123. mitos_adr-0.17.1/tests/test_projects_verb.py +284 -0
  124. mitos_adr-0.17.1/tests/test_rebuild.py +681 -0
  125. mitos_adr-0.17.1/tests/test_reconcile_embeddings.py +355 -0
  126. mitos_adr-0.17.1/tests/test_record_decision.py +1049 -0
  127. mitos_adr-0.17.1/tests/test_registry.py +766 -0
  128. mitos_adr-0.17.1/tests/test_relations_and_adjacency.py +806 -0
  129. mitos_adr-0.17.1/tests/test_renderer.py +404 -0
  130. mitos_adr-0.17.1/tests/test_repair_door.py +1450 -0
  131. mitos_adr-0.17.1/tests/test_restore_source.py +609 -0
  132. mitos_adr-0.17.1/tests/test_routing.py +806 -0
  133. mitos_adr-0.17.1/tests/test_scenarios_live.py +627 -0
  134. mitos_adr-0.17.1/tests/test_scopes.py +382 -0
  135. mitos_adr-0.17.1/tests/test_signals.py +475 -0
  136. mitos_adr-0.17.1/tests/test_status_deep_report.py +1311 -0
  137. mitos_adr-0.17.1/tests/test_status_overflow_verbosity.py +172 -0
  138. mitos_adr-0.17.1/tests/test_status_overview.py +1015 -0
  139. mitos_adr-0.17.1/tests/test_status_overview_live.py +380 -0
  140. mitos_adr-0.17.1/tests/test_status_readiness.py +448 -0
  141. mitos_adr-0.17.1/tests/test_store.py +1828 -0
  142. mitos_adr-0.17.1/tests/test_surface_confidence.py +1216 -0
  143. mitos_adr-0.17.1/tests/test_sync.py +1896 -0
  144. mitos_adr-0.17.1/tests/test_telemetry.py +1394 -0
  145. mitos_adr-0.17.1/tests/test_templates.py +347 -0
  146. mitos_adr-0.17.1/tests/test_update_check.py +90 -0
  147. mitos_adr-0.17.1/tests/test_v1a_closeout.py +546 -0
  148. mitos_adr-0.17.1/tests/test_v1b_closeout.py +553 -0
  149. mitos_adr-0.17.1/tests/test_vector_store.py +458 -0
  150. mitos_adr-0.17.1/tests/test_workspace_root_discipline.py +276 -0
@@ -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 [yyyy] [name of copyright owner]
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.
@@ -0,0 +1,5 @@
1
+ include mitos/format-spec.md
2
+ include README.md
3
+ include SETUP.md
4
+ include LICENSE
5
+ include docker-compose.yml
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.4
2
+ Name: mitos-adr
3
+ Version: 0.17.1
4
+ Summary: Architectural decision memory for LLM-native workflows — markdown for humans, a graph for agents.
5
+ Author-email: Vinga Luksaite <vinga@skyforge.sh>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/dovahkiin-v/mitos
8
+ Project-URL: Repository, https://github.com/dovahkiin-v/mitos
9
+ Project-URL: Documentation, https://github.com/dovahkiin-v/mitos#readme
10
+ Project-URL: Issues, https://github.com/dovahkiin-v/mitos/issues
11
+ Keywords: adr,architectural-decisions,decision-records,llm,ai-agents,mcp,knowledge-graph,qdrant
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Topic :: Software Development :: Documentation
16
+ Classifier: Operating System :: POSIX
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Requires-Python: >=3.13
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: filelock>=3.0.0
24
+ Requires-Dist: google-genai>=1.66.0
25
+ Requires-Dist: anthropic<1,>=0.84.0
26
+ Requires-Dist: mcp<2,>=1.26.0
27
+ Requires-Dist: requests>=2.0.0
28
+ Provides-Extra: test
29
+ Requires-Dist: pytest>=8.0; extra == "test"
30
+ Requires-Dist: pytest-asyncio>=1.0; extra == "test"
31
+ Requires-Dist: pytest-xdist>=3.8; extra == "test"
32
+ Dynamic: license-file
33
+
34
+ # Mitos
35
+
36
+ ![Status: Alpha](https://img.shields.io/badge/status-alpha-orange) ![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue) ![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)
37
+
38
+ > 🔧 **Early release** — actively developed
39
+
40
+ When you build software with AI assistants over months, the *reasoning* behind your decisions gets lost. The assistant forgets why you chose one approach, re-suggests options you already rejected, and your design notes drift out of sync with what was actually decided. Mitos is a memory layer for those decisions: it records each decision, the alternatives you ruled out, and how later decisions replace earlier ones — then feeds that history back to your AI assistant in a compact, trustworthy form.
41
+
42
+ The result: your AI collaborator stays consistent with the calls you've actually made — it stops contradicting a past decision or re-opening a settled question, and your decision record never silently rots.
43
+
44
+ Under the hood: markdown for humans (`decisions.md` is the source of truth you can always read and grep), a typed graph for the agents (SQLite + a local Qdrant for semantic recall), and an MCP server so agents check precedent before deciding and record decisions as they make them.
45
+
46
+ ---
47
+
48
+ ## Fastest install: hand it to your agent
49
+
50
+ If you work with an AI coding agent (Claude Code, Cursor, Gemini CLI, …), the easiest path is to let it do the setup. In the project you want mitos in, give your agent:
51
+
52
+ ```text
53
+ Read https://github.com/dovahkiin-v/mitos/blob/main/SETUP.md and set up mitos
54
+ for this project. When done, run `mitos status .` from the project directory
55
+ and report the result.
56
+ ```
57
+
58
+ What your agent will end up doing — the same steps a human follows, all in [SETUP.md](SETUP.md) where you can read them first:
59
+
60
+ - install the `mitos` CLI via pipx, from this repository;
61
+ - start a local Qdrant container (`qdrant/qdrant` on port `7333`, isolated from any Qdrant you already run);
62
+ - register the MCP server once for the whole machine, if it isn't registered already;
63
+ - initialize the project workspace, which also registers the project by name;
64
+ - ask you to set your API keys yourself (`mitos set-key`) — a Gemini key (required), and an Anthropic key for the conflict-audit layer (strongly recommended); the setup guide tells agents not to handle key values.
65
+
66
+ How much your agent asks along the way is governed by your own agent's settings, not by this prompt.
67
+
68
+ ## Manual setup
69
+
70
+ The same steps by hand — full detail in **[SETUP.md](SETUP.md)**:
71
+
72
+ 1. **Install** (once per machine): `pipx install git+https://github.com/dovahkiin-v/mitos`
73
+ 2. **Start Qdrant** (once per machine, shared by all projects): `docker compose up -d` from this repo — mitos runs its own instance on `:7333`, so it never touches a Qdrant you use for other work.
74
+ 3. **Register the MCP server** (once per machine, recommended for agents): `claude mcp add --scope user mitos -- mitos serve`. One registration serves every project — see [SETUP.md](SETUP.md) for what it costs, for other harnesses, and for why a leftover per-project `.mcp.json` entry has to go.
75
+ 4. **Per project**: `mitos init` from the project root, then `mitos set-key --global <your-Gemini-key>` (one key covers everything; get it at <https://aistudio.google.com/app/apikey>). Gemini is the tested embedding provider today; a multi-provider abstraction is on the roadmap.
76
+ 5. **Verify**: `mitos status .` → `READY ✓`.
77
+
78
+ `mitos status .` is the compass throughout: it says exactly what's done, what's missing, and what to do next for that project. With no project named, `mitos status` answers the other question — what does this machine have — listing every registered project and checking Qdrant.
79
+
80
+ **Every command names its project.** There is no default target: `mitos init` registers the project by name, and from then on each verb takes `-p <name>`, `-p <absolute path>`, or `-p .` from the project root (agents pass the same thing as a `project` argument). `mitos projects` lists what's registered. That is what lets one install and one MCP server serve every project on the machine without a call ever landing in the wrong corpus.
81
+
82
+ ## How it runs
83
+
84
+ Mitos is **per-project** — each project gets its own decision graph and its own Qdrant collection. Day to day, three verbs carry the loop (as MCP tools for agents, with identical CLI twins):
85
+
86
+ | Verb | When |
87
+ |---|---|
88
+ | `surface_decisions` (`mitos surface`) | *Before* deciding — is there precedent? Every hit carries the alternatives that were already rejected and why. |
89
+ | `record_decision` (`mitos record`) | The moment something is settled — the decision, the rejected paths, and how it relates to prior decisions (supersedes, amends, …). |
90
+ | `query_decisions` (`mitos query`) | Looking something up — by meaning or by exact handle. |
91
+
92
+ A few properties worth knowing:
93
+
94
+ - **The markdown is the source of truth.** Every decision lands in `decisions.md`, human-readable and greppable; the graph and the search index are derived from it and can always be rebuilt (`mitos rebuild`).
95
+ - **Decisions are never edited or deleted — they're superseded.** State (active / superseded / amended) is computed from typed relations between decisions, so the history of *why* always survives.
96
+ - **It fails safe.** If the search index or the embedding API is down, recording still works and search degrades to an honest text-match over the markdown — nothing blocks, nothing is lost, and degraded output says it's degraded.
97
+ - **It audits itself.** The corpus sweep (`mitos check -p .`) finds decisions that silently contradict each other, and `--staged` gates new entries as a pre-commit or CI step — see [SETUP.md](SETUP.md) for the hook, CI and cron recipes, which name their project three different ways.
98
+
99
+ Explore the rest with `mitos --help` — the help text doubles as the API reference.
100
+
101
+ ## Why it exists
102
+
103
+ Building software through intensive LLM design reviews produces architectural decisions faster than a person can track. One month of that working style produced close to 900 decision records in a single markdown file — no longer greppable, readable, or manageable by hand. Existing ADR tools are built for human teams logging the occasional decision; mitos is built for a solo developer whose AI assistants generate and consume decisions continuously.
104
+
105
+ If that's your way of working, project size doesn't matter much — the higher the decision volume, the faster mitos moves from comfort to necessity.
106
+
107
+ ## Development
108
+
109
+ ```bash
110
+ pip install -e '.[test]'
111
+ MITOS_NO_LIVE_TESTS=1 pytest -m "not packaging" -n auto # offline suite, parallel (~50s)
112
+ pytest -m "not packaging" # adds the live tier — serial only
113
+ pytest -m packaging # real-install check: fresh venv + pip install
114
+ ```
115
+
116
+ `-n auto` is safe for the offline suite and **not** for the live tier: the test-collection
117
+ sweep is session-scoped, so parallel workers delete each other's Qdrant collections and
118
+ the affected tests degrade to skips rather than failures.
119
+
120
+ The `*_live.py` suites and golden Layer B make **real Gemini and Anthropic API calls**
121
+ against your own keys, and need Qdrant on `:7333`. They skip when no key is resolvable,
122
+ so a fresh clone runs the fast path by default.
123
+
124
+ Keys resolve from the environment, a repo-root `.env`, or `~/.config/mitos/.env` — so if
125
+ you already *use* mitos, a test run can pick up your personal key and spend against it.
126
+ Opt out explicitly:
127
+
128
+ ```bash
129
+ MITOS_NO_LIVE_TESTS=1 PYTHONPATH=. pytest -m "not packaging"
130
+ ```
131
+
132
+ The canonical decision format lives in [`mitos/format-spec.md`](mitos/format-spec.md). License: [Apache 2.0](LICENSE).
@@ -0,0 +1,99 @@
1
+ # Mitos
2
+
3
+ ![Status: Alpha](https://img.shields.io/badge/status-alpha-orange) ![Python 3.13+](https://img.shields.io/badge/python-3.13+-blue) ![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)
4
+
5
+ > 🔧 **Early release** — actively developed
6
+
7
+ When you build software with AI assistants over months, the *reasoning* behind your decisions gets lost. The assistant forgets why you chose one approach, re-suggests options you already rejected, and your design notes drift out of sync with what was actually decided. Mitos is a memory layer for those decisions: it records each decision, the alternatives you ruled out, and how later decisions replace earlier ones — then feeds that history back to your AI assistant in a compact, trustworthy form.
8
+
9
+ The result: your AI collaborator stays consistent with the calls you've actually made — it stops contradicting a past decision or re-opening a settled question, and your decision record never silently rots.
10
+
11
+ Under the hood: markdown for humans (`decisions.md` is the source of truth you can always read and grep), a typed graph for the agents (SQLite + a local Qdrant for semantic recall), and an MCP server so agents check precedent before deciding and record decisions as they make them.
12
+
13
+ ---
14
+
15
+ ## Fastest install: hand it to your agent
16
+
17
+ If you work with an AI coding agent (Claude Code, Cursor, Gemini CLI, …), the easiest path is to let it do the setup. In the project you want mitos in, give your agent:
18
+
19
+ ```text
20
+ Read https://github.com/dovahkiin-v/mitos/blob/main/SETUP.md and set up mitos
21
+ for this project. When done, run `mitos status .` from the project directory
22
+ and report the result.
23
+ ```
24
+
25
+ What your agent will end up doing — the same steps a human follows, all in [SETUP.md](SETUP.md) where you can read them first:
26
+
27
+ - install the `mitos` CLI via pipx, from this repository;
28
+ - start a local Qdrant container (`qdrant/qdrant` on port `7333`, isolated from any Qdrant you already run);
29
+ - register the MCP server once for the whole machine, if it isn't registered already;
30
+ - initialize the project workspace, which also registers the project by name;
31
+ - ask you to set your API keys yourself (`mitos set-key`) — a Gemini key (required), and an Anthropic key for the conflict-audit layer (strongly recommended); the setup guide tells agents not to handle key values.
32
+
33
+ How much your agent asks along the way is governed by your own agent's settings, not by this prompt.
34
+
35
+ ## Manual setup
36
+
37
+ The same steps by hand — full detail in **[SETUP.md](SETUP.md)**:
38
+
39
+ 1. **Install** (once per machine): `pipx install git+https://github.com/dovahkiin-v/mitos`
40
+ 2. **Start Qdrant** (once per machine, shared by all projects): `docker compose up -d` from this repo — mitos runs its own instance on `:7333`, so it never touches a Qdrant you use for other work.
41
+ 3. **Register the MCP server** (once per machine, recommended for agents): `claude mcp add --scope user mitos -- mitos serve`. One registration serves every project — see [SETUP.md](SETUP.md) for what it costs, for other harnesses, and for why a leftover per-project `.mcp.json` entry has to go.
42
+ 4. **Per project**: `mitos init` from the project root, then `mitos set-key --global <your-Gemini-key>` (one key covers everything; get it at <https://aistudio.google.com/app/apikey>). Gemini is the tested embedding provider today; a multi-provider abstraction is on the roadmap.
43
+ 5. **Verify**: `mitos status .` → `READY ✓`.
44
+
45
+ `mitos status .` is the compass throughout: it says exactly what's done, what's missing, and what to do next for that project. With no project named, `mitos status` answers the other question — what does this machine have — listing every registered project and checking Qdrant.
46
+
47
+ **Every command names its project.** There is no default target: `mitos init` registers the project by name, and from then on each verb takes `-p <name>`, `-p <absolute path>`, or `-p .` from the project root (agents pass the same thing as a `project` argument). `mitos projects` lists what's registered. That is what lets one install and one MCP server serve every project on the machine without a call ever landing in the wrong corpus.
48
+
49
+ ## How it runs
50
+
51
+ Mitos is **per-project** — each project gets its own decision graph and its own Qdrant collection. Day to day, three verbs carry the loop (as MCP tools for agents, with identical CLI twins):
52
+
53
+ | Verb | When |
54
+ |---|---|
55
+ | `surface_decisions` (`mitos surface`) | *Before* deciding — is there precedent? Every hit carries the alternatives that were already rejected and why. |
56
+ | `record_decision` (`mitos record`) | The moment something is settled — the decision, the rejected paths, and how it relates to prior decisions (supersedes, amends, …). |
57
+ | `query_decisions` (`mitos query`) | Looking something up — by meaning or by exact handle. |
58
+
59
+ A few properties worth knowing:
60
+
61
+ - **The markdown is the source of truth.** Every decision lands in `decisions.md`, human-readable and greppable; the graph and the search index are derived from it and can always be rebuilt (`mitos rebuild`).
62
+ - **Decisions are never edited or deleted — they're superseded.** State (active / superseded / amended) is computed from typed relations between decisions, so the history of *why* always survives.
63
+ - **It fails safe.** If the search index or the embedding API is down, recording still works and search degrades to an honest text-match over the markdown — nothing blocks, nothing is lost, and degraded output says it's degraded.
64
+ - **It audits itself.** The corpus sweep (`mitos check -p .`) finds decisions that silently contradict each other, and `--staged` gates new entries as a pre-commit or CI step — see [SETUP.md](SETUP.md) for the hook, CI and cron recipes, which name their project three different ways.
65
+
66
+ Explore the rest with `mitos --help` — the help text doubles as the API reference.
67
+
68
+ ## Why it exists
69
+
70
+ Building software through intensive LLM design reviews produces architectural decisions faster than a person can track. One month of that working style produced close to 900 decision records in a single markdown file — no longer greppable, readable, or manageable by hand. Existing ADR tools are built for human teams logging the occasional decision; mitos is built for a solo developer whose AI assistants generate and consume decisions continuously.
71
+
72
+ If that's your way of working, project size doesn't matter much — the higher the decision volume, the faster mitos moves from comfort to necessity.
73
+
74
+ ## Development
75
+
76
+ ```bash
77
+ pip install -e '.[test]'
78
+ MITOS_NO_LIVE_TESTS=1 pytest -m "not packaging" -n auto # offline suite, parallel (~50s)
79
+ pytest -m "not packaging" # adds the live tier — serial only
80
+ pytest -m packaging # real-install check: fresh venv + pip install
81
+ ```
82
+
83
+ `-n auto` is safe for the offline suite and **not** for the live tier: the test-collection
84
+ sweep is session-scoped, so parallel workers delete each other's Qdrant collections and
85
+ the affected tests degrade to skips rather than failures.
86
+
87
+ The `*_live.py` suites and golden Layer B make **real Gemini and Anthropic API calls**
88
+ against your own keys, and need Qdrant on `:7333`. They skip when no key is resolvable,
89
+ so a fresh clone runs the fast path by default.
90
+
91
+ Keys resolve from the environment, a repo-root `.env`, or `~/.config/mitos/.env` — so if
92
+ you already *use* mitos, a test run can pick up your personal key and spend against it.
93
+ Opt out explicitly:
94
+
95
+ ```bash
96
+ MITOS_NO_LIVE_TESTS=1 PYTHONPATH=. pytest -m "not packaging"
97
+ ```
98
+
99
+ The canonical decision format lives in [`mitos/format-spec.md`](mitos/format-spec.md). License: [Apache 2.0](LICENSE).