samt 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 (340) hide show
  1. samt-0.1.0/LICENSE +21 -0
  2. samt-0.1.0/PKG-INFO +212 -0
  3. samt-0.1.0/README.md +166 -0
  4. samt-0.1.0/pyproject.toml +81 -0
  5. samt-0.1.0/pyproject.toml.orig +77 -0
  6. samt-0.1.0/src/samt/__init__.py +67 -0
  7. samt-0.1.0/src/samt/__main__.py +11 -0
  8. samt-0.1.0/src/samt/agent_baselines/clean_growth/before/FINAL_RESULT.md +13 -0
  9. samt-0.1.0/src/samt/agent_baselines/clean_growth/before/PROJECT_STATE.md +16 -0
  10. samt-0.1.0/src/samt/agent_baselines/clean_growth/before/app/__init__.py +1 -0
  11. samt-0.1.0/src/samt/agent_baselines/clean_growth/before/app/length.py +8 -0
  12. samt-0.1.0/src/samt/agent_baselines/clean_growth/before.reflog +1 -0
  13. samt-0.1.0/src/samt/agent_baselines/clean_growth/reflog +4 -0
  14. samt-0.1.0/src/samt/agent_baselines/clean_refactor/before/FINAL_RESULT.md +11 -0
  15. samt-0.1.0/src/samt/agent_baselines/clean_refactor/before/PROJECT_STATE.md +17 -0
  16. samt-0.1.0/src/samt/agent_baselines/clean_refactor/before/app/__init__.py +1 -0
  17. samt-0.1.0/src/samt/agent_baselines/clean_refactor/before/app/report.py +12 -0
  18. samt-0.1.0/src/samt/agent_baselines/clean_refactor/before/app/stock.py +38 -0
  19. samt-0.1.0/src/samt/agent_baselines/clean_refactor/before.reflog +2 -0
  20. samt-0.1.0/src/samt/agent_baselines/clean_refactor/reflog +5 -0
  21. samt-0.1.0/src/samt/agent_baselines/clean_tests/before/FINAL_RESULT.md +8 -0
  22. samt-0.1.0/src/samt/agent_baselines/clean_tests/before/PROJECT_STATE.md +16 -0
  23. samt-0.1.0/src/samt/agent_baselines/clean_tests/before/app/__init__.py +1 -0
  24. samt-0.1.0/src/samt/agent_baselines/clean_tests/before/app/cart.py +31 -0
  25. samt-0.1.0/src/samt/agent_baselines/drift_admin/before/FINAL_RESULT.md +11 -0
  26. samt-0.1.0/src/samt/agent_baselines/drift_admin/before/PROJECT_STATE.md +16 -0
  27. samt-0.1.0/src/samt/agent_baselines/drift_admin/before/app/__init__.py +1 -0
  28. samt-0.1.0/src/samt/agent_baselines/drift_admin/before/app/links.py +32 -0
  29. samt-0.1.0/src/samt/agent_baselines/drift_admin/before.reflog +2 -0
  30. samt-0.1.0/src/samt/agent_baselines/drift_admin/reflog +4 -0
  31. samt-0.1.0/src/samt/agent_baselines/drift_module/before/FINAL_RESULT.md +11 -0
  32. samt-0.1.0/src/samt/agent_baselines/drift_module/before/PROJECT_STATE.md +16 -0
  33. samt-0.1.0/src/samt/agent_baselines/drift_module/before/app/__init__.py +1 -0
  34. samt-0.1.0/src/samt/agent_baselines/drift_module/before/app/store.py +32 -0
  35. samt-0.1.0/src/samt/agent_baselines/drift_module/before.reflog +2 -0
  36. samt-0.1.0/src/samt/agent_baselines/drift_module/reflog +4 -0
  37. samt-0.1.0/src/samt/agent_baselines/drifting/before/FINAL_RESULT.md +8 -0
  38. samt-0.1.0/src/samt/agent_baselines/drifting/before/PROJECT_STATE.md +18 -0
  39. samt-0.1.0/src/samt/agent_baselines/drifting/before/README.md +11 -0
  40. samt-0.1.0/src/samt/agent_baselines/drifting/before/app/__init__.py +1 -0
  41. samt-0.1.0/src/samt/agent_baselines/drifting/before/app/__main__.py +8 -0
  42. samt-0.1.0/src/samt/agent_baselines/drifting/before/app/config.py +5 -0
  43. samt-0.1.0/src/samt/agent_baselines/drifting/before/app/notes.py +14 -0
  44. samt-0.1.0/src/samt/agent_baselines/overreach/before/FINAL_RESULT.md +8 -0
  45. samt-0.1.0/src/samt/agent_baselines/overreach/before/PROJECT_STATE.md +17 -0
  46. samt-0.1.0/src/samt/agent_baselines/overreach/before/README.md +3 -0
  47. samt-0.1.0/src/samt/agent_baselines/overreach/before/app/__init__.py +1 -0
  48. samt-0.1.0/src/samt/agent_baselines/overreach/before/app/__main__.py +6 -0
  49. samt-0.1.0/src/samt/agent_baselines/overreach/before/app/cli.py +13 -0
  50. samt-0.1.0/src/samt/agent_baselines/overreach/before/app/counter.py +30 -0
  51. samt-0.1.0/src/samt/agent_baselines/stub/before/FINAL_RESULT.md +8 -0
  52. samt-0.1.0/src/samt/agent_baselines/stub/before/PROJECT_STATE.md +16 -0
  53. samt-0.1.0/src/samt/agent_baselines/stub/before/app/__init__.py +1 -0
  54. samt-0.1.0/src/samt/agent_baselines/untouched_line/before/FINAL_RESULT.md +9 -0
  55. samt-0.1.0/src/samt/agent_baselines/untouched_line/before/PROJECT_STATE.md +16 -0
  56. samt-0.1.0/src/samt/agent_baselines/untouched_line/before/app/__init__.py +1 -0
  57. samt-0.1.0/src/samt/agent_baselines/untouched_line/before/app/entries.py +12 -0
  58. samt-0.1.0/src/samt/agent_baselines/untouched_line/before/app/totals.py +1 -0
  59. samt-0.1.0/src/samt/agent_baselines/untouched_line/before.reflog +2 -0
  60. samt-0.1.0/src/samt/agent_baselines/untouched_line/reflog +4 -0
  61. samt-0.1.0/src/samt/agent_baselines/untouched_phase/before/FINAL_RESULT.md +12 -0
  62. samt-0.1.0/src/samt/agent_baselines/untouched_phase/before/PROJECT_STATE.md +16 -0
  63. samt-0.1.0/src/samt/agent_baselines/untouched_phase/before/app/__init__.py +1 -0
  64. samt-0.1.0/src/samt/agent_baselines/untouched_phase/before/app/recipes.py +10 -0
  65. samt-0.1.0/src/samt/agent_baselines/untouched_phase/before/app/shopping.py +1 -0
  66. samt-0.1.0/src/samt/agent_baselines/untouched_phase/before.reflog +2 -0
  67. samt-0.1.0/src/samt/agent_baselines/untouched_phase/reflog +5 -0
  68. samt-0.1.0/src/samt/agent_baselines/vacuous/before/FINAL_RESULT.md +8 -0
  69. samt-0.1.0/src/samt/agent_baselines/vacuous/before/PROJECT_STATE.md +16 -0
  70. samt-0.1.0/src/samt/agent_baselines/vacuous/before/app/__init__.py +1 -0
  71. samt-0.1.0/src/samt/agent_baselines/vacuous/before/app/reminders.py +16 -0
  72. samt-0.1.0/src/samt/agent_baselines/vague/before/FINAL_RESULT.md +8 -0
  73. samt-0.1.0/src/samt/agent_baselines/vague/before/PROJECT_STATE.md +16 -0
  74. samt-0.1.0/src/samt/agent_baselines/vague/before/app/__init__.py +1 -0
  75. samt-0.1.0/src/samt/agent_baselines/vague/before/app/scores.py +15 -0
  76. samt-0.1.0/src/samt/agent_baselines/workaround/before/FINAL_RESULT.md +8 -0
  77. samt-0.1.0/src/samt/agent_baselines/workaround/before/PROJECT_STATE.md +17 -0
  78. samt-0.1.0/src/samt/agent_baselines/workaround/before/README.md +3 -0
  79. samt-0.1.0/src/samt/agent_baselines/workaround/before/app/__init__.py +1 -0
  80. samt-0.1.0/src/samt/agent_baselines/workaround/before/app/limiter.py +26 -0
  81. samt-0.1.0/src/samt/agents.py +1539 -0
  82. samt-0.1.0/src/samt/baseline.py +681 -0
  83. samt-0.1.0/src/samt/bearing.py +674 -0
  84. samt-0.1.0/src/samt/chat.py +899 -0
  85. samt-0.1.0/src/samt/cli.py +10597 -0
  86. samt-0.1.0/src/samt/deep.py +850 -0
  87. samt-0.1.0/src/samt/doctor.py +910 -0
  88. samt-0.1.0/src/samt/draft.py +1735 -0
  89. samt-0.1.0/src/samt/env.py +176 -0
  90. samt-0.1.0/src/samt/findings.py +526 -0
  91. samt-0.1.0/src/samt/gemini.py +554 -0
  92. samt-0.1.0/src/samt/goldens/arabic_shop/FINAL_RESULT.md +10 -0
  93. samt-0.1.0/src/samt/goldens/arabic_shop/PROJECT_STATE.md +19 -0
  94. samt-0.1.0/src/samt/goldens/arabic_shop//331/205/330/252/330/254/330/261//330/253/331/205/331/206.py +7 -0
  95. samt-0.1.0/src/samt/goldens/arabic_shop//331/205/330/252/330/254/330/261//330/263/331/204/330/251.py +15 -0
  96. samt-0.1.0/src/samt/goldens/arabic_shop//331/205/330/252/330/254/330/261//331/201/330/247/330/252/331/210/330/261/330/251.py +7 -0
  97. samt-0.1.0/src/samt/goldens/arabic_shop//331/210/330/247/330/254/331/207/330/251//331/201/330/247/330/252/331/210/330/261/330/251.ts +8 -0
  98. samt-0.1.0/src/samt/goldens/clean_growth/FINAL_RESULT.md +13 -0
  99. samt-0.1.0/src/samt/goldens/clean_growth/PROJECT_STATE.md +18 -0
  100. samt-0.1.0/src/samt/goldens/clean_growth/app/__init__.py +1 -0
  101. samt-0.1.0/src/samt/goldens/clean_growth/app/cli.py +27 -0
  102. samt-0.1.0/src/samt/goldens/clean_growth/app/length.py +8 -0
  103. samt-0.1.0/src/samt/goldens/clean_growth/app/temperature.py +25 -0
  104. samt-0.1.0/src/samt/goldens/clean_refactor/FINAL_RESULT.md +11 -0
  105. samt-0.1.0/src/samt/goldens/clean_refactor/PROJECT_STATE.md +17 -0
  106. samt-0.1.0/src/samt/goldens/clean_refactor/app/__init__.py +1 -0
  107. samt-0.1.0/src/samt/goldens/clean_refactor/app/report.py +12 -0
  108. samt-0.1.0/src/samt/goldens/clean_refactor/app/stock.py +38 -0
  109. samt-0.1.0/src/samt/goldens/clean_tests/FINAL_RESULT.md +8 -0
  110. samt-0.1.0/src/samt/goldens/clean_tests/PROJECT_STATE.md +17 -0
  111. samt-0.1.0/src/samt/goldens/clean_tests/app/__init__.py +1 -0
  112. samt-0.1.0/src/samt/goldens/clean_tests/app/cart.py +31 -0
  113. samt-0.1.0/src/samt/goldens/clean_tests/tests/__init__.py +0 -0
  114. samt-0.1.0/src/samt/goldens/clean_tests/tests/test_cart.py +31 -0
  115. samt-0.1.0/src/samt/goldens/complete/FINAL_RESULT.md +9 -0
  116. samt-0.1.0/src/samt/goldens/complete/PROJECT_STATE.md +18 -0
  117. samt-0.1.0/src/samt/goldens/complete/src/greet/__init__.py +0 -0
  118. samt-0.1.0/src/samt/goldens/complete/src/greet/cli.py +8 -0
  119. samt-0.1.0/src/samt/goldens/complete/src/greet/core.py +10 -0
  120. samt-0.1.0/src/samt/goldens/csharp_auth/App/Auth.cs +22 -0
  121. samt-0.1.0/src/samt/goldens/csharp_auth/App/Session.cs +6 -0
  122. samt-0.1.0/src/samt/goldens/csharp_auth/FINAL_RESULT.md +9 -0
  123. samt-0.1.0/src/samt/goldens/csharp_auth/PROJECT_STATE.md +19 -0
  124. samt-0.1.0/src/samt/goldens/csharp_auth/Program.cs +10 -0
  125. samt-0.1.0/src/samt/goldens/detached/FINAL_RESULT.md +5 -0
  126. samt-0.1.0/src/samt/goldens/detached/PROJECT_STATE.md +17 -0
  127. samt-0.1.0/src/samt/goldens/detached/shop/__init__.py +0 -0
  128. samt-0.1.0/src/samt/goldens/detached/shop/tax.py +2 -0
  129. samt-0.1.0/src/samt/goldens/detached/shop/total.py +2 -0
  130. samt-0.1.0/src/samt/goldens/detached/tests/__init__.py +0 -0
  131. samt-0.1.0/src/samt/goldens/detached/tests/test_tax.py +6 -0
  132. samt-0.1.0/src/samt/goldens/detached/tests/test_total.py +8 -0
  133. samt-0.1.0/src/samt/goldens/drift_admin/FINAL_RESULT.md +11 -0
  134. samt-0.1.0/src/samt/goldens/drift_admin/PROJECT_STATE.md +17 -0
  135. samt-0.1.0/src/samt/goldens/drift_admin/app/__init__.py +1 -0
  136. samt-0.1.0/src/samt/goldens/drift_admin/app/admin.py +20 -0
  137. samt-0.1.0/src/samt/goldens/drift_admin/app/links.py +32 -0
  138. samt-0.1.0/src/samt/goldens/drift_admin/app/server.py +44 -0
  139. samt-0.1.0/src/samt/goldens/drift_module/FINAL_RESULT.md +11 -0
  140. samt-0.1.0/src/samt/goldens/drift_module/PROJECT_STATE.md +17 -0
  141. samt-0.1.0/src/samt/goldens/drift_module/app/__init__.py +1 -0
  142. samt-0.1.0/src/samt/goldens/drift_module/app/cli.py +22 -0
  143. samt-0.1.0/src/samt/goldens/drift_module/app/store.py +32 -0
  144. samt-0.1.0/src/samt/goldens/drift_module/app/telemetry.py +28 -0
  145. samt-0.1.0/src/samt/goldens/drifting/FINAL_RESULT.md +8 -0
  146. samt-0.1.0/src/samt/goldens/drifting/PROJECT_STATE.md +18 -0
  147. samt-0.1.0/src/samt/goldens/drifting/README.md +16 -0
  148. samt-0.1.0/src/samt/goldens/drifting/app/__init__.py +1 -0
  149. samt-0.1.0/src/samt/goldens/drifting/app/__main__.py +8 -0
  150. samt-0.1.0/src/samt/goldens/drifting/app/config.py +18 -0
  151. samt-0.1.0/src/samt/goldens/drifting/app/notes.py +14 -0
  152. samt-0.1.0/src/samt/goldens/flaky_tests/FINAL_RESULT.md +7 -0
  153. samt-0.1.0/src/samt/goldens/flaky_tests/PROJECT_STATE.md +17 -0
  154. samt-0.1.0/src/samt/goldens/flaky_tests/ledger/__init__.py +0 -0
  155. samt-0.1.0/src/samt/goldens/flaky_tests/ledger/core.py +2 -0
  156. samt-0.1.0/src/samt/goldens/flaky_tests/tests/__init__.py +0 -0
  157. samt-0.1.0/src/samt/goldens/flaky_tests/tests/test_core.py +23 -0
  158. samt-0.1.0/src/samt/goldens/fresh/FINAL_RESULT.md +8 -0
  159. samt-0.1.0/src/samt/goldens/fresh/PROJECT_STATE.md +16 -0
  160. samt-0.1.0/src/samt/goldens/fresh/README.md +3 -0
  161. samt-0.1.0/src/samt/goldens/guarded/FINAL_RESULT.md +9 -0
  162. samt-0.1.0/src/samt/goldens/guarded/PROJECT_STATE.md +17 -0
  163. samt-0.1.0/src/samt/goldens/guarded/notes/__init__.py +1 -0
  164. samt-0.1.0/src/samt/goldens/guarded/notes/core.py +7 -0
  165. samt-0.1.0/src/samt/goldens/guarded/notes/store.py +8 -0
  166. samt-0.1.0/src/samt/goldens/hollow/FINAL_RESULT.md +6 -0
  167. samt-0.1.0/src/samt/goldens/hollow/PROJECT_STATE.md +18 -0
  168. samt-0.1.0/src/samt/goldens/hollow/auth/__init__.py +0 -0
  169. samt-0.1.0/src/samt/goldens/hollow/auth/login.py +2 -0
  170. samt-0.1.0/src/samt/goldens/hollow/auth/session.py +7 -0
  171. samt-0.1.0/src/samt/goldens/hollow/auth/tokens.py +2 -0
  172. samt-0.1.0/src/samt/goldens/hollow/tests/__init__.py +0 -0
  173. samt-0.1.0/src/samt/goldens/hollow/tests/test_login.py +11 -0
  174. samt-0.1.0/src/samt/goldens/hollow/tests/test_session.py +10 -0
  175. samt-0.1.0/src/samt/goldens/hollow/tests/test_tokens.py +8 -0
  176. samt-0.1.0/src/samt/goldens/java_auth/FINAL_RESULT.md +9 -0
  177. samt-0.1.0/src/samt/goldens/java_auth/PROJECT_STATE.md +19 -0
  178. samt-0.1.0/src/samt/goldens/java_auth/src/main/java/app/Auth.java +21 -0
  179. samt-0.1.0/src/samt/goldens/java_auth/src/main/java/app/Session.java +7 -0
  180. samt-0.1.0/src/samt/goldens/kotlin_auth/FINAL_RESULT.md +9 -0
  181. samt-0.1.0/src/samt/goldens/kotlin_auth/PROJECT_STATE.md +17 -0
  182. samt-0.1.0/src/samt/goldens/kotlin_auth/src/main/kotlin/app/Auth.kt +20 -0
  183. samt-0.1.0/src/samt/goldens/lost/FINAL_RESULT.md +9 -0
  184. samt-0.1.0/src/samt/goldens/lost/PROJECT_STATE.md +19 -0
  185. samt-0.1.0/src/samt/goldens/lost/auth/__init__.py +0 -0
  186. samt-0.1.0/src/samt/goldens/lost/auth/login.py +6 -0
  187. samt-0.1.0/src/samt/goldens/lost/auth/logout.py +2 -0
  188. samt-0.1.0/src/samt/goldens/lost/auth/session.py +4 -0
  189. samt-0.1.0/src/samt/goldens/lost/docs/usage.md +5 -0
  190. samt-0.1.0/src/samt/goldens/midway/FINAL_RESULT.md +11 -0
  191. samt-0.1.0/src/samt/goldens/midway/PROJECT_STATE.md +17 -0
  192. samt-0.1.0/src/samt/goldens/midway/src/inventory/__init__.py +0 -0
  193. samt-0.1.0/src/samt/goldens/midway/src/inventory/models.py +7 -0
  194. samt-0.1.0/src/samt/goldens/midway/src/inventory/store.py +8 -0
  195. samt-0.1.0/src/samt/goldens/moving/FINAL_RESULT.md +8 -0
  196. samt-0.1.0/src/samt/goldens/moving/PROJECT_STATE.md +18 -0
  197. samt-0.1.0/src/samt/goldens/moving/src/app/__init__.py +0 -0
  198. samt-0.1.0/src/samt/goldens/moving/src/app/cli.py +5 -0
  199. samt-0.1.0/src/samt/goldens/moving/src/app/models.py +6 -0
  200. samt-0.1.0/src/samt/goldens/moving/src/app/report.py +2 -0
  201. samt-0.1.0/src/samt/goldens/overreach/FINAL_RESULT.md +8 -0
  202. samt-0.1.0/src/samt/goldens/overreach/PROJECT_STATE.md +17 -0
  203. samt-0.1.0/src/samt/goldens/overreach/README.md +3 -0
  204. samt-0.1.0/src/samt/goldens/overreach/app/__init__.py +1 -0
  205. samt-0.1.0/src/samt/goldens/overreach/app/__main__.py +6 -0
  206. samt-0.1.0/src/samt/goldens/overreach/app/cli.py +13 -0
  207. samt-0.1.0/src/samt/goldens/overreach/app/counter.py +63 -0
  208. samt-0.1.0/src/samt/goldens/padded/FINAL_RESULT.md +5 -0
  209. samt-0.1.0/src/samt/goldens/padded/PROJECT_STATE.md +16 -0
  210. samt-0.1.0/src/samt/goldens/padded/app/__init__.py +0 -0
  211. samt-0.1.0/src/samt/goldens/padded/app/greet.py +6 -0
  212. samt-0.1.0/src/samt/goldens/php_shop/FINAL_RESULT.md +9 -0
  213. samt-0.1.0/src/samt/goldens/php_shop/PROJECT_STATE.md +19 -0
  214. samt-0.1.0/src/samt/goldens/php_shop/src/Cart.php +23 -0
  215. samt-0.1.0/src/samt/goldens/php_shop/src/Priced.php +8 -0
  216. samt-0.1.0/src/samt/goldens/php_shop/src/helpers.php +8 -0
  217. samt-0.1.0/src/samt/goldens/planted/FINAL_RESULT.md +8 -0
  218. samt-0.1.0/src/samt/goldens/planted/PROJECT_STATE.md +18 -0
  219. samt-0.1.0/src/samt/goldens/planted/src/app/__init__.py +0 -0
  220. samt-0.1.0/src/samt/goldens/planted/src/app/cli.py +5 -0
  221. samt-0.1.0/src/samt/goldens/planted/src/app/models.py +6 -0
  222. samt-0.1.0/src/samt/goldens/planted_tests/FINAL_RESULT.md +7 -0
  223. samt-0.1.0/src/samt/goldens/planted_tests/PROJECT_STATE.md +17 -0
  224. samt-0.1.0/src/samt/goldens/planted_tests/ledger/__init__.py +0 -0
  225. samt-0.1.0/src/samt/goldens/planted_tests/ledger/core.py +2 -0
  226. samt-0.1.0/src/samt/goldens/planted_tests/tests/__init__.py +0 -0
  227. samt-0.1.0/src/samt/goldens/planted_tests/tests/test_core.py +16 -0
  228. samt-0.1.0/src/samt/goldens/prose/FINAL_RESULT.md +7 -0
  229. samt-0.1.0/src/samt/goldens/prose/PROJECT_STATE.md +16 -0
  230. samt-0.1.0/src/samt/goldens/prose/app/__init__.py +0 -0
  231. samt-0.1.0/src/samt/goldens/prose/app/keys.py +11 -0
  232. samt-0.1.0/src/samt/goldens/prose/tests/__init__.py +0 -0
  233. samt-0.1.0/src/samt/goldens/prose/tests/test_bind.py +9 -0
  234. samt-0.1.0/src/samt/goldens/prose/tests/test_keys.py +8 -0
  235. samt-0.1.0/src/samt/goldens/quoted/FINAL_RESULT.md +8 -0
  236. samt-0.1.0/src/samt/goldens/quoted/PROJECT_STATE.md +18 -0
  237. samt-0.1.0/src/samt/goldens/quoted/README.md +5 -0
  238. samt-0.1.0/src/samt/goldens/quoted/shop/__init__.py +0 -0
  239. samt-0.1.0/src/samt/goldens/quoted/shop/__main__.py +9 -0
  240. samt-0.1.0/src/samt/goldens/quoted/shop/pricing.py +10 -0
  241. samt-0.1.0/src/samt/goldens/quoted/shop/receipt.py +12 -0
  242. samt-0.1.0/src/samt/goldens/ruby_shop/FINAL_RESULT.md +9 -0
  243. samt-0.1.0/src/samt/goldens/ruby_shop/PROJECT_STATE.md +19 -0
  244. samt-0.1.0/src/samt/goldens/ruby_shop/lib/shop/cart.rb +21 -0
  245. samt-0.1.0/src/samt/goldens/ruby_shop/lib/shop/pricing.rb +7 -0
  246. samt-0.1.0/src/samt/goldens/sealed/FINAL_RESULT.md +5 -0
  247. samt-0.1.0/src/samt/goldens/sealed/PROJECT_STATE.md +17 -0
  248. samt-0.1.0/src/samt/goldens/sealed/shop/__init__.py +0 -0
  249. samt-0.1.0/src/samt/goldens/sealed/shop/cart.py +6 -0
  250. samt-0.1.0/src/samt/goldens/sealed/shop/pricing.py +2 -0
  251. samt-0.1.0/src/samt/goldens/stub/FINAL_RESULT.md +8 -0
  252. samt-0.1.0/src/samt/goldens/stub/PROJECT_STATE.md +17 -0
  253. samt-0.1.0/src/samt/goldens/stub/README.md +7 -0
  254. samt-0.1.0/src/samt/goldens/stub/app/__init__.py +1 -0
  255. samt-0.1.0/src/samt/goldens/stub/app/invoice.py +13 -0
  256. samt-0.1.0/src/samt/goldens/swift_auth/FINAL_RESULT.md +10 -0
  257. samt-0.1.0/src/samt/goldens/swift_auth/PROJECT_STATE.md +18 -0
  258. samt-0.1.0/src/samt/goldens/swift_auth/Sources/Auth/Auth.swift +25 -0
  259. samt-0.1.0/src/samt/goldens/swift_auth/Sources/Auth/Session.swift +6 -0
  260. samt-0.1.0/src/samt/goldens/tested/FINAL_RESULT.md +7 -0
  261. samt-0.1.0/src/samt/goldens/tested/PROJECT_STATE.md +17 -0
  262. samt-0.1.0/src/samt/goldens/tested/calc/__init__.py +0 -0
  263. samt-0.1.0/src/samt/goldens/tested/calc/core.py +2 -0
  264. samt-0.1.0/src/samt/goldens/tested/tests/__init__.py +0 -0
  265. samt-0.1.0/src/samt/goldens/tested/tests/test_core.py +11 -0
  266. samt-0.1.0/src/samt/goldens/unreadable/FINAL_RESULT.md +10 -0
  267. samt-0.1.0/src/samt/goldens/unreadable/PROJECT_STATE.md +19 -0
  268. samt-0.1.0/src/samt/goldens/unreadable/src/app/__init__.py +0 -0
  269. samt-0.1.0/src/samt/goldens/unreadable/src/app/cli.py +5 -0
  270. samt-0.1.0/src/samt/goldens/unreadable/src/app/export.py +3 -0
  271. samt-0.1.0/src/samt/goldens/unreadable/src/app/models.py +6 -0
  272. samt-0.1.0/src/samt/goldens/unreadable/src/app/report.py +3 -0
  273. samt-0.1.0/src/samt/goldens/untouched_line/FINAL_RESULT.md +9 -0
  274. samt-0.1.0/src/samt/goldens/untouched_line/PROJECT_STATE.md +17 -0
  275. samt-0.1.0/src/samt/goldens/untouched_line/app/__init__.py +1 -0
  276. samt-0.1.0/src/samt/goldens/untouched_line/app/entries.py +18 -0
  277. samt-0.1.0/src/samt/goldens/untouched_line/app/report.py +12 -0
  278. samt-0.1.0/src/samt/goldens/untouched_line/app/totals.py +1 -0
  279. samt-0.1.0/src/samt/goldens/untouched_phase/FINAL_RESULT.md +12 -0
  280. samt-0.1.0/src/samt/goldens/untouched_phase/PROJECT_STATE.md +17 -0
  281. samt-0.1.0/src/samt/goldens/untouched_phase/app/__init__.py +1 -0
  282. samt-0.1.0/src/samt/goldens/untouched_phase/app/export.py +13 -0
  283. samt-0.1.0/src/samt/goldens/untouched_phase/app/recipes.py +16 -0
  284. samt-0.1.0/src/samt/goldens/untouched_phase/app/shopping.py +1 -0
  285. samt-0.1.0/src/samt/goldens/unverifiable/FINAL_RESULT.md +9 -0
  286. samt-0.1.0/src/samt/goldens/unverifiable/PROJECT_STATE.md +17 -0
  287. samt-0.1.0/src/samt/goldens/unverifiable/README.md +3 -0
  288. samt-0.1.0/src/samt/goldens/unverifiable/src/weather/__init__.py +0 -0
  289. samt-0.1.0/src/samt/goldens/unverifiable/src/weather/client.py +11 -0
  290. samt-0.1.0/src/samt/goldens/vacuous/FINAL_RESULT.md +8 -0
  291. samt-0.1.0/src/samt/goldens/vacuous/PROJECT_STATE.md +17 -0
  292. samt-0.1.0/src/samt/goldens/vacuous/app/__init__.py +1 -0
  293. samt-0.1.0/src/samt/goldens/vacuous/app/reminders.py +16 -0
  294. samt-0.1.0/src/samt/goldens/vacuous/tests/__init__.py +0 -0
  295. samt-0.1.0/src/samt/goldens/vacuous/tests/test_reminders.py +20 -0
  296. samt-0.1.0/src/samt/goldens/vague/FINAL_RESULT.md +8 -0
  297. samt-0.1.0/src/samt/goldens/vague/PROJECT_STATE.md +17 -0
  298. samt-0.1.0/src/samt/goldens/vague/app/__init__.py +1 -0
  299. samt-0.1.0/src/samt/goldens/vague/app/board.py +13 -0
  300. samt-0.1.0/src/samt/goldens/vague/app/scores.py +15 -0
  301. samt-0.1.0/src/samt/goldens/web/FINAL_RESULT.md +8 -0
  302. samt-0.1.0/src/samt/goldens/web/PROJECT_STATE.md +18 -0
  303. samt-0.1.0/src/samt/goldens/web/package.json +8 -0
  304. samt-0.1.0/src/samt/goldens/web/src/auth.ts +11 -0
  305. samt-0.1.0/src/samt/goldens/web/src/components/App.tsx +6 -0
  306. samt-0.1.0/src/samt/goldens/workaround/FINAL_RESULT.md +8 -0
  307. samt-0.1.0/src/samt/goldens/workaround/PROJECT_STATE.md +17 -0
  308. samt-0.1.0/src/samt/goldens/workaround/README.md +3 -0
  309. samt-0.1.0/src/samt/goldens/workaround/app/__init__.py +1 -0
  310. samt-0.1.0/src/samt/goldens/workaround/app/limiter.py +30 -0
  311. samt-0.1.0/src/samt/history.py +1379 -0
  312. samt-0.1.0/src/samt/hooks.py +1879 -0
  313. samt-0.1.0/src/samt/init.py +493 -0
  314. samt-0.1.0/src/samt/instructions.py +1298 -0
  315. samt-0.1.0/src/samt/keystore.py +629 -0
  316. samt-0.1.0/src/samt/languages.py +606 -0
  317. samt-0.1.0/src/samt/ledger.py +884 -0
  318. samt-0.1.0/src/samt/loader.py +360 -0
  319. samt-0.1.0/src/samt/loop.py +343 -0
  320. samt-0.1.0/src/samt/measure.py +2446 -0
  321. samt-0.1.0/src/samt/models.py +1399 -0
  322. samt-0.1.0/src/samt/notes.py +415 -0
  323. samt-0.1.0/src/samt/programs.py +57 -0
  324. samt-0.1.0/src/samt/proposer.py +2212 -0
  325. samt-0.1.0/src/samt/providers.py +465 -0
  326. samt-0.1.0/src/samt/reads.py +670 -0
  327. samt-0.1.0/src/samt/replica.py +162 -0
  328. samt-0.1.0/src/samt/report.py +852 -0
  329. samt-0.1.0/src/samt/screen.py +673 -0
  330. samt-0.1.0/src/samt/seal.py +787 -0
  331. samt-0.1.0/src/samt/server.py +409 -0
  332. samt-0.1.0/src/samt/setup.py +1699 -0
  333. samt-0.1.0/src/samt/snapshot.py +484 -0
  334. samt-0.1.0/src/samt/sync.py +528 -0
  335. samt-0.1.0/src/samt/tree.py +480 -0
  336. samt-0.1.0/src/samt/trust.py +512 -0
  337. samt-0.1.0/src/samt/vault.py +492 -0
  338. samt-0.1.0/src/samt/verifier.py +1078 -0
  339. samt-0.1.0/src/samt/views.py +2357 -0
  340. samt-0.1.0/src/samt/watch.py +7697 -0
samt-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Omar Fahad
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
samt-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,212 @@
1
+ Metadata-Version: 2.4
2
+ Name: samt
3
+ Version: 0.1.0
4
+ Summary: Your coding agent says it is done. samt checks whether it really is.
5
+ Keywords: coding agent,ai agents,claude code,verification,tests,cli,llm
6
+ Author: Omar Fahad
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: MacOS
13
+ Classifier: Operating System :: Microsoft :: Windows
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Software Development :: Quality Assurance
19
+ Classifier: Topic :: Software Development :: Testing
20
+ Requires-Dist: mcp>=2.1,<3
21
+ Requires-Dist: httpx2>=2.12,<3
22
+ Requires-Dist: openai>=3.5,<4
23
+ Requires-Dist: pydantic>=2.13.4,<3
24
+ Requires-Dist: tree-sitter>=0.25,<0.27
25
+ Requires-Dist: tree-sitter-c-sharp>=0.23,<1
26
+ Requires-Dist: tree-sitter-go>=0.23,<1
27
+ Requires-Dist: tree-sitter-java>=0.23,<1
28
+ Requires-Dist: tree-sitter-javascript>=0.23,<1
29
+ Requires-Dist: tree-sitter-kotlin>=1.1,<2
30
+ Requires-Dist: tree-sitter-php>=0.25,<1
31
+ Requires-Dist: tree-sitter-ruby>=0.23,<1
32
+ Requires-Dist: tree-sitter-rust>=0.23,<1
33
+ Requires-Dist: tree-sitter-swift>=0.7,<1
34
+ Requires-Dist: tree-sitter-typescript>=0.23,<1
35
+ Requires-Dist: typer>=0.27.1,<1
36
+ Requires-Dist: textual>=8,<9
37
+ Requires-Dist: watchdog>=6,<7
38
+ Requires-Dist: keyring>=25,<26
39
+ Requires-Python: >=3.12
40
+ Project-URL: Homepage, https://github.com/aiEng-Omar/samt
41
+ Project-URL: Source, https://github.com/aiEng-Omar/samt
42
+ Project-URL: Issues, https://github.com/aiEng-Omar/samt/issues
43
+ Project-URL: Documentation, https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md
44
+ Project-URL: Launch notes, https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md
45
+ Description-Content-Type: text/markdown
46
+
47
+ # <img src="https://raw.githubusercontent.com/aiEng-Omar/samt/main/docs/images/logo.png" alt="samt logo" height="64"> samt
48
+
49
+ **Your coding agent says it is done. samt checks whether it really is.**
50
+
51
+ <img src="https://raw.githubusercontent.com/aiEng-Omar/samt/main/docs/images/caught.svg" alt="The samt window. The agent's notes say save() is done. The code has no save(). samt shows CONTRADICTED at the top." width="100%">
52
+
53
+ *The agent's notes say `save()` is done. The code has no `save()`. samt says so, at the top.*
54
+
55
+ ## Start
56
+
57
+ ```sh
58
+ pip install samt
59
+ ```
60
+
61
+ Then, in your project's folder:
62
+
63
+ ```sh
64
+ samt
65
+ ```
66
+
67
+ samt opens a window and asks a few questions.
68
+ First, an API key, for the steps that use an AI model.
69
+ No key? Press Enter and go on. The free checks work from the first minute.
70
+ Then samt writes two small files: one for your goal, one for your agent's notes.
71
+ Keep the window open beside your editor while your agent works.
72
+ It works with any coding agent that writes to your files; Claude Code, Codex CLI, Gemini CLI and Copilot CLI also hear from samt when they stop.
73
+
74
+ You need Python 3.12 or newer, on Linux, macOS or Windows.
75
+ If you use uv, `uvx samt` does the same without an install.
76
+
77
+ ## How it works
78
+
79
+ Describe your project in a sentence, and samt drafts the goal.
80
+ The goal is a short list of what must be true when the work is done.
81
+ You read the draft, change what you like, and approve it.
82
+ You never have to write its format yourself.
83
+
84
+ The goal is kept in a file called `FINAL_RESULT.md`. One of its lines looks like this:
85
+
86
+ ```markdown
87
+ ## Phase 1 — Login
88
+ - `pytest tests/test_auth.py` passes and `src/auth.py` defines `def login`
89
+ ```
90
+
91
+ Drafting uses an AI model and costs about a cent.
92
+ Without a key, samt gives you the file to fill in yourself.
93
+
94
+ Your agent writes down what it finished, in `PROJECT_STATE.md`.
95
+
96
+ samt reads your code and checks each line itself.
97
+ It never takes the agent's word for anything.
98
+
99
+ Each line is **met** or **not met**.
100
+ When the agent's notes say a line is done and the code says it is not, samt says **CONTRADICTED**.
101
+ That is the case samt was built for.
102
+
103
+ The checks work in eleven languages; breaking a function on a copy and tests your agent never sees are Python only for now.
104
+
105
+ ## What it catches
106
+
107
+ **A "done" that is not done.**
108
+ In a copy of Flask, a coding agent added `flask routes --json`.
109
+ Then we broke it on purpose: it printed an empty list.
110
+ The notes still said it was done.
111
+ samt ran the tests, saw them fail, and said CONTRADICTED.
112
+ No AI model was used for that check.
113
+
114
+ **A test that does not test.**
115
+ samt can make a function fail on a throwaway copy of your project, then run its tests again.
116
+ If the tests still pass, they never really ran that function.
117
+ In Flask, `tests/test_cli.py` still passed with `run_command` broken.
118
+ We read the file: it only builds the command's settings and never runs its body.
119
+
120
+ **Something to look at again.**
121
+ samt has three reviewer agents. They read the change, and a fourth decides which findings to keep.
122
+ In an expense tracker built by a coding agent, the goal had a principle: the app makes no network request.
123
+ The agent added a feature that fetched exchange rates online.
124
+ samt's agents pointed at the exact line that called `urlopen`.
125
+ When the coding agent stopped, samt handed it the finding as "check this", never as an order.
126
+ The agent removed the fetch.
127
+ It was caught once the principle was written as a rule. While it said only "works offline", the agents let the fetch pass.
128
+
129
+ Your project itself is never changed. Breaking a function happens on a copy.
130
+
131
+ ## What it costs
132
+
133
+ **Most checks are free.**
134
+ When a line names a command or a function in backticks, as above, plain code checks it.
135
+ No AI model is called, and nothing is spent.
136
+
137
+ **AI steps cost cents.**
138
+ Some steps use an AI model: drafting a goal, checking a line written in plain words, a review by the agents.
139
+ Each one says its price before it runs, and waits for your yes.
140
+ On Flask, the agents' whole review was 19 model calls and cost under 3 US cents.
141
+
142
+ **You can set a daily budget.**
143
+ If you let samt run steps on its own, it stays inside a daily amount you type.
144
+
145
+ AI steps need an API key.
146
+ OpenRouter is the default, and seven other providers work, or a model running on your own machine.
147
+ You paste the key once. It is kept outside your project, in your system's keychain where there is one.
148
+
149
+ ## What's inside
150
+
151
+ | | What it does | Cost |
152
+ |---|---|---|
153
+ | [Check](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#verdicts) (`samt check`, or `shift+c` in the window) | checks every line of your goal, and your agent's notes, against the code; runs the tests the goal names once you allow it | free when every line quotes a command or a function; otherwise one AI call, under a cent to a few cents |
154
+ | [Real-test check](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#does-the-test-mean-anything-load-bearing-probes) (part of the check) | on a line that names a test command and a function, breaks the function on a copy and runs the tests again, to see if they really test it (Python) | free; takes test time |
155
+ | [Reviewer agents](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#agents) (`samt agents`) | three AI reviewers read what changed: does the code do what the goal says, can the tests fail, did the work break a rule your goal sets, such as "no network request"; a fourth keeps or drops what they found | a few cents |
156
+ | [Next instruction](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#next) (`samt next`) | writes the next instruction for your coding agent from what samt found; you approve each one before your agent sees it | under a cent each; free with `--template` |
157
+ | [Goal draft](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#drafting-the-goal) (`samt init --write --draft`, or the window's first questions) | turns a sentence or two about your project into a goal you read, change and approve | about a cent |
158
+ | [Hooks](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#hooks) (`samt hooks --install`) | samt runs before each commit and whenever your coding agent stops, and tells the agent what to look at | free; in Automatic mode, within your daily budget |
159
+ | [The loop](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#hooks) (Automatic mode, with the hooks) | when your agent stops after changing files, samt checks, reviews, and hands back what it found, up to three rounds a task | within your daily budget |
160
+ | [Modes and budget](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#setup-and-modes) (`samt setup`) | Manual: you start every step. Balanced: free checks run on their own; tests and AI steps wait for you. Automatic: AI steps run on their own within a daily amount you type; a few always ask | you set the amount |
161
+ | [Ask in plain words](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#the-window) | type "check" or "run the agents" in the window, in any language; samt starts that step, or answers your question | under a cent to read what you typed; the step costs what it costs |
162
+ | [Hidden tests](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#a-check-the-agent-cannot-see-or-edit-sealed-tests) (`samt seal`) | a test you approve, kept outside your project and out of everything samt shows your agent (Python) | cents to write |
163
+ | [History](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#history) (`samt history`) | every run, each line of your goal over time, and what samt spent | free |
164
+ | [Doctor](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#doctor) (`samt doctor`) | checks that samt can run here: your key, your model and the two files | free with `--offline`; otherwise one tiny AI call |
165
+ | [MCP server](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#mcp-server) (`samt mcp`) | lets your coding agent ask samt where the project stands | free; a full report costs what a check costs |
166
+ | [Measure](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#measure) (`samt measure`) | tests the AI model you chose on samt's sample projects before you trust it | cents; said before it asks |
167
+
168
+ ## Does it work on real code?
169
+
170
+ **Flask.**
171
+ samt checked five functions in Flask's command-line code against their test file.
172
+ Three were really tested. Two were not, and we confirmed both by reading the tests.
173
+ Then a planted false "done" was caught, as above, with no model call.
174
+ [Details.](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md#flask-2026-11-12)
175
+
176
+ **Rich.**
177
+ A coding agent added two export functions to Rich, while six existing behaviours had to keep working.
178
+ samt showed that the new tests really run the new code, and that all six behaviours held.
179
+ [Details.](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md#rich-2026-11-14)
180
+
181
+ **Six libraries, 110 functions.**
182
+ click, Jinja, attrs, Werkzeug, more-itertools and FastAPI.
183
+ samt found two public functions that no test runs at all: `click.get_app_dir` and `jinja2.clear_caches`.
184
+ We confirmed both by breaking each one and running the library's whole test suite.
185
+ samt raised no false alarm.
186
+ [Details.](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md#six-libraries-110-functions-2026-11-16)
187
+
188
+ ## Built with Claude Code
189
+
190
+ samt was built by Claude Code (Opus and Sonnet), with samt watching it: since at least 2026-10-22, every commit but two, and every stop of the agent, went through samt's own checks.
191
+ The two were amends made with `--no-verify` on 2026-11-10, and PROJECT_STATE.md records them.
192
+ The log is in [PROJECT_STATE.md](https://github.com/aiEng-Omar/samt/blob/main/PROJECT_STATE.md).
193
+
194
+ ## What samt does not do
195
+
196
+ - It does not write code or fix your project.
197
+ - It does not judge whether code is good. It checks what your goal says.
198
+ - It cannot stop an agent that is set on cheating, for example one that edits samt's own files.
199
+ [What it does and does not catch.](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#samt-and-an-agent-determined-to-cheat)
200
+
201
+ ## More
202
+
203
+ The [guide](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md) has every command, every option and the window's keys.
204
+ How samt did on real projects is in the [launch notes](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md).
205
+
206
+ ## The name
207
+
208
+ *Samt* (سمت) is the Arabic root of "azimuth": the angle between where you are and where you are going.
209
+
210
+ ## License
211
+
212
+ [MIT](https://github.com/aiEng-Omar/samt/blob/main/LICENSE). The picture at the top was made with Textual's screenshot of the window on a small sample project.
samt-0.1.0/README.md ADDED
@@ -0,0 +1,166 @@
1
+ # <img src="https://raw.githubusercontent.com/aiEng-Omar/samt/main/docs/images/logo.png" alt="samt logo" height="64"> samt
2
+
3
+ **Your coding agent says it is done. samt checks whether it really is.**
4
+
5
+ <img src="https://raw.githubusercontent.com/aiEng-Omar/samt/main/docs/images/caught.svg" alt="The samt window. The agent's notes say save() is done. The code has no save(). samt shows CONTRADICTED at the top." width="100%">
6
+
7
+ *The agent's notes say `save()` is done. The code has no `save()`. samt says so, at the top.*
8
+
9
+ ## Start
10
+
11
+ ```sh
12
+ pip install samt
13
+ ```
14
+
15
+ Then, in your project's folder:
16
+
17
+ ```sh
18
+ samt
19
+ ```
20
+
21
+ samt opens a window and asks a few questions.
22
+ First, an API key, for the steps that use an AI model.
23
+ No key? Press Enter and go on. The free checks work from the first minute.
24
+ Then samt writes two small files: one for your goal, one for your agent's notes.
25
+ Keep the window open beside your editor while your agent works.
26
+ It works with any coding agent that writes to your files; Claude Code, Codex CLI, Gemini CLI and Copilot CLI also hear from samt when they stop.
27
+
28
+ You need Python 3.12 or newer, on Linux, macOS or Windows.
29
+ If you use uv, `uvx samt` does the same without an install.
30
+
31
+ ## How it works
32
+
33
+ Describe your project in a sentence, and samt drafts the goal.
34
+ The goal is a short list of what must be true when the work is done.
35
+ You read the draft, change what you like, and approve it.
36
+ You never have to write its format yourself.
37
+
38
+ The goal is kept in a file called `FINAL_RESULT.md`. One of its lines looks like this:
39
+
40
+ ```markdown
41
+ ## Phase 1 — Login
42
+ - `pytest tests/test_auth.py` passes and `src/auth.py` defines `def login`
43
+ ```
44
+
45
+ Drafting uses an AI model and costs about a cent.
46
+ Without a key, samt gives you the file to fill in yourself.
47
+
48
+ Your agent writes down what it finished, in `PROJECT_STATE.md`.
49
+
50
+ samt reads your code and checks each line itself.
51
+ It never takes the agent's word for anything.
52
+
53
+ Each line is **met** or **not met**.
54
+ When the agent's notes say a line is done and the code says it is not, samt says **CONTRADICTED**.
55
+ That is the case samt was built for.
56
+
57
+ The checks work in eleven languages; breaking a function on a copy and tests your agent never sees are Python only for now.
58
+
59
+ ## What it catches
60
+
61
+ **A "done" that is not done.**
62
+ In a copy of Flask, a coding agent added `flask routes --json`.
63
+ Then we broke it on purpose: it printed an empty list.
64
+ The notes still said it was done.
65
+ samt ran the tests, saw them fail, and said CONTRADICTED.
66
+ No AI model was used for that check.
67
+
68
+ **A test that does not test.**
69
+ samt can make a function fail on a throwaway copy of your project, then run its tests again.
70
+ If the tests still pass, they never really ran that function.
71
+ In Flask, `tests/test_cli.py` still passed with `run_command` broken.
72
+ We read the file: it only builds the command's settings and never runs its body.
73
+
74
+ **Something to look at again.**
75
+ samt has three reviewer agents. They read the change, and a fourth decides which findings to keep.
76
+ In an expense tracker built by a coding agent, the goal had a principle: the app makes no network request.
77
+ The agent added a feature that fetched exchange rates online.
78
+ samt's agents pointed at the exact line that called `urlopen`.
79
+ When the coding agent stopped, samt handed it the finding as "check this", never as an order.
80
+ The agent removed the fetch.
81
+ It was caught once the principle was written as a rule. While it said only "works offline", the agents let the fetch pass.
82
+
83
+ Your project itself is never changed. Breaking a function happens on a copy.
84
+
85
+ ## What it costs
86
+
87
+ **Most checks are free.**
88
+ When a line names a command or a function in backticks, as above, plain code checks it.
89
+ No AI model is called, and nothing is spent.
90
+
91
+ **AI steps cost cents.**
92
+ Some steps use an AI model: drafting a goal, checking a line written in plain words, a review by the agents.
93
+ Each one says its price before it runs, and waits for your yes.
94
+ On Flask, the agents' whole review was 19 model calls and cost under 3 US cents.
95
+
96
+ **You can set a daily budget.**
97
+ If you let samt run steps on its own, it stays inside a daily amount you type.
98
+
99
+ AI steps need an API key.
100
+ OpenRouter is the default, and seven other providers work, or a model running on your own machine.
101
+ You paste the key once. It is kept outside your project, in your system's keychain where there is one.
102
+
103
+ ## What's inside
104
+
105
+ | | What it does | Cost |
106
+ |---|---|---|
107
+ | [Check](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#verdicts) (`samt check`, or `shift+c` in the window) | checks every line of your goal, and your agent's notes, against the code; runs the tests the goal names once you allow it | free when every line quotes a command or a function; otherwise one AI call, under a cent to a few cents |
108
+ | [Real-test check](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#does-the-test-mean-anything-load-bearing-probes) (part of the check) | on a line that names a test command and a function, breaks the function on a copy and runs the tests again, to see if they really test it (Python) | free; takes test time |
109
+ | [Reviewer agents](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#agents) (`samt agents`) | three AI reviewers read what changed: does the code do what the goal says, can the tests fail, did the work break a rule your goal sets, such as "no network request"; a fourth keeps or drops what they found | a few cents |
110
+ | [Next instruction](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#next) (`samt next`) | writes the next instruction for your coding agent from what samt found; you approve each one before your agent sees it | under a cent each; free with `--template` |
111
+ | [Goal draft](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#drafting-the-goal) (`samt init --write --draft`, or the window's first questions) | turns a sentence or two about your project into a goal you read, change and approve | about a cent |
112
+ | [Hooks](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#hooks) (`samt hooks --install`) | samt runs before each commit and whenever your coding agent stops, and tells the agent what to look at | free; in Automatic mode, within your daily budget |
113
+ | [The loop](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#hooks) (Automatic mode, with the hooks) | when your agent stops after changing files, samt checks, reviews, and hands back what it found, up to three rounds a task | within your daily budget |
114
+ | [Modes and budget](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#setup-and-modes) (`samt setup`) | Manual: you start every step. Balanced: free checks run on their own; tests and AI steps wait for you. Automatic: AI steps run on their own within a daily amount you type; a few always ask | you set the amount |
115
+ | [Ask in plain words](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#the-window) | type "check" or "run the agents" in the window, in any language; samt starts that step, or answers your question | under a cent to read what you typed; the step costs what it costs |
116
+ | [Hidden tests](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#a-check-the-agent-cannot-see-or-edit-sealed-tests) (`samt seal`) | a test you approve, kept outside your project and out of everything samt shows your agent (Python) | cents to write |
117
+ | [History](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#history) (`samt history`) | every run, each line of your goal over time, and what samt spent | free |
118
+ | [Doctor](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#doctor) (`samt doctor`) | checks that samt can run here: your key, your model and the two files | free with `--offline`; otherwise one tiny AI call |
119
+ | [MCP server](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#mcp-server) (`samt mcp`) | lets your coding agent ask samt where the project stands | free; a full report costs what a check costs |
120
+ | [Measure](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#measure) (`samt measure`) | tests the AI model you chose on samt's sample projects before you trust it | cents; said before it asks |
121
+
122
+ ## Does it work on real code?
123
+
124
+ **Flask.**
125
+ samt checked five functions in Flask's command-line code against their test file.
126
+ Three were really tested. Two were not, and we confirmed both by reading the tests.
127
+ Then a planted false "done" was caught, as above, with no model call.
128
+ [Details.](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md#flask-2026-11-12)
129
+
130
+ **Rich.**
131
+ A coding agent added two export functions to Rich, while six existing behaviours had to keep working.
132
+ samt showed that the new tests really run the new code, and that all six behaviours held.
133
+ [Details.](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md#rich-2026-11-14)
134
+
135
+ **Six libraries, 110 functions.**
136
+ click, Jinja, attrs, Werkzeug, more-itertools and FastAPI.
137
+ samt found two public functions that no test runs at all: `click.get_app_dir` and `jinja2.clear_caches`.
138
+ We confirmed both by breaking each one and running the library's whole test suite.
139
+ samt raised no false alarm.
140
+ [Details.](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md#six-libraries-110-functions-2026-11-16)
141
+
142
+ ## Built with Claude Code
143
+
144
+ samt was built by Claude Code (Opus and Sonnet), with samt watching it: since at least 2026-10-22, every commit but two, and every stop of the agent, went through samt's own checks.
145
+ The two were amends made with `--no-verify` on 2026-11-10, and PROJECT_STATE.md records them.
146
+ The log is in [PROJECT_STATE.md](https://github.com/aiEng-Omar/samt/blob/main/PROJECT_STATE.md).
147
+
148
+ ## What samt does not do
149
+
150
+ - It does not write code or fix your project.
151
+ - It does not judge whether code is good. It checks what your goal says.
152
+ - It cannot stop an agent that is set on cheating, for example one that edits samt's own files.
153
+ [What it does and does not catch.](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md#samt-and-an-agent-determined-to-cheat)
154
+
155
+ ## More
156
+
157
+ The [guide](https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md) has every command, every option and the window's keys.
158
+ How samt did on real projects is in the [launch notes](https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md).
159
+
160
+ ## The name
161
+
162
+ *Samt* (سمت) is the Arabic root of "azimuth": the angle between where you are and where you are going.
163
+
164
+ ## License
165
+
166
+ [MIT](https://github.com/aiEng-Omar/samt/blob/main/LICENSE). The picture at the top was made with Textual's screenshot of the window on a small sample project.
@@ -0,0 +1,81 @@
1
+ [project]
2
+ name = "samt"
3
+ version = "0.1.0"
4
+ description = "Your coding agent says it is done. samt checks whether it really is."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.12"
9
+ keywords = [
10
+ "coding agent",
11
+ "ai agents",
12
+ "claude code",
13
+ "verification",
14
+ "tests",
15
+ "cli",
16
+ "llm",
17
+ ]
18
+ classifiers = [
19
+ "Development Status :: 4 - Beta",
20
+ "Environment :: Console",
21
+ "Intended Audience :: Developers",
22
+ "Operating System :: MacOS",
23
+ "Operating System :: Microsoft :: Windows",
24
+ "Operating System :: POSIX :: Linux",
25
+ "Programming Language :: Python :: 3",
26
+ "Programming Language :: Python :: 3 :: Only",
27
+ "Programming Language :: Python :: 3.12",
28
+ "Topic :: Software Development :: Quality Assurance",
29
+ "Topic :: Software Development :: Testing",
30
+ ]
31
+ dependencies = [
32
+ "mcp>=2.1,<3",
33
+ "httpx2>=2.12,<3",
34
+ "openai>=3.5,<4",
35
+ "pydantic>=2.13.4,<3",
36
+ "tree-sitter>=0.25,<0.27",
37
+ "tree-sitter-c-sharp>=0.23,<1",
38
+ "tree-sitter-go>=0.23,<1",
39
+ "tree-sitter-java>=0.23,<1",
40
+ "tree-sitter-javascript>=0.23,<1",
41
+ "tree-sitter-kotlin>=1.1,<2",
42
+ "tree-sitter-php>=0.25,<1",
43
+ "tree-sitter-ruby>=0.23,<1",
44
+ "tree-sitter-rust>=0.23,<1",
45
+ "tree-sitter-swift>=0.7,<1",
46
+ "tree-sitter-typescript>=0.23,<1",
47
+ "typer>=0.27.1,<1",
48
+ "textual>=8,<9",
49
+ "watchdog>=6,<7",
50
+ "keyring>=25,<26",
51
+ ]
52
+
53
+ [[project.authors]]
54
+ name = "Omar Fahad"
55
+
56
+ [project.urls]
57
+ Homepage = "https://github.com/aiEng-Omar/samt"
58
+ Source = "https://github.com/aiEng-Omar/samt"
59
+ Issues = "https://github.com/aiEng-Omar/samt/issues"
60
+ Documentation = "https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md"
61
+ "Launch notes" = "https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md"
62
+
63
+ [project.scripts]
64
+ samt = "samt.cli:main"
65
+
66
+ [build-system]
67
+ requires = ["uv_build>=0.12.5,<0.13.0"]
68
+ build-backend = "uv_build"
69
+
70
+ [dependency-groups]
71
+ dev = [
72
+ "pytest>=9.1.1",
73
+ "pywinpty>=2.0; sys_platform == 'win32'",
74
+ ]
75
+
76
+ [tool.pytest.ini_options]
77
+ testpaths = ["tests"]
78
+ markers = [
79
+ "slow: takes minutes (a real nested run of this repo's suite); skipped unless --runslow is passed",
80
+ "realstore: uses this machine's OS credential store under a throwaway service name; skipped unless --realstore is passed",
81
+ ]
@@ -0,0 +1,77 @@
1
+ [project]
2
+ name = "samt"
3
+ version = "0.1.0"
4
+ description = "Your coding agent says it is done. samt checks whether it really is."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ requires-python = ">=3.12"
9
+ authors = [{ name = "Omar Fahad" }]
10
+ keywords = ["coding agent", "ai agents", "claude code", "verification", "tests", "cli", "llm"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Environment :: Console",
14
+ "Intended Audience :: Developers",
15
+ "Operating System :: MacOS",
16
+ "Operating System :: Microsoft :: Windows",
17
+ "Operating System :: POSIX :: Linux",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3 :: Only",
20
+ "Programming Language :: Python :: 3.12",
21
+ # "Programming Language :: Python :: 3.13" and "3.14" are added in
22
+ # step 10 of the plan, once CI has run them green
23
+ "Topic :: Software Development :: Quality Assurance",
24
+ "Topic :: Software Development :: Testing",
25
+ ]
26
+ dependencies = [
27
+ "mcp>=2.1,<3",
28
+ # The SDK's own HTTP library, declared because gemini.py imports it for
29
+ # the one row that is not a chat-completions wire; nothing new installs.
30
+ "httpx2>=2.12,<3",
31
+ "openai>=3.5,<4",
32
+ "pydantic>=2.13.4,<3",
33
+ "tree-sitter>=0.25,<0.27",
34
+ "tree-sitter-c-sharp>=0.23,<1",
35
+ "tree-sitter-go>=0.23,<1",
36
+ "tree-sitter-java>=0.23,<1",
37
+ "tree-sitter-javascript>=0.23,<1",
38
+ "tree-sitter-kotlin>=1.1,<2",
39
+ "tree-sitter-php>=0.25,<1",
40
+ "tree-sitter-ruby>=0.23,<1",
41
+ "tree-sitter-rust>=0.23,<1",
42
+ "tree-sitter-swift>=0.7,<1",
43
+ "tree-sitter-typescript>=0.23,<1",
44
+ "typer>=0.27.1,<1",
45
+ "textual>=8,<9",
46
+ "watchdog>=6,<7",
47
+ "keyring>=25,<26",
48
+ ]
49
+
50
+ [project.urls]
51
+ Homepage = "https://github.com/aiEng-Omar/samt"
52
+ Source = "https://github.com/aiEng-Omar/samt"
53
+ Issues = "https://github.com/aiEng-Omar/samt/issues"
54
+ Documentation = "https://github.com/aiEng-Omar/samt/blob/main/docs/guide.md"
55
+ "Launch notes" = "https://github.com/aiEng-Omar/samt/blob/main/docs/launch-notes.md"
56
+
57
+ [project.scripts]
58
+ samt = "samt.cli:main"
59
+
60
+ [build-system]
61
+ requires = ["uv_build>=0.12.5,<0.13.0"]
62
+ build-backend = "uv_build"
63
+
64
+ [dependency-groups]
65
+ dev = [
66
+ "pytest>=9.1.1",
67
+ # The console test (tests/test_console.py) types keys into a ConPTY on
68
+ # Windows; POSIX has `pty` in the standard library.
69
+ "pywinpty>=2.0; sys_platform == 'win32'",
70
+ ]
71
+
72
+ [tool.pytest.ini_options]
73
+ testpaths = ["tests"]
74
+ markers = [
75
+ "slow: takes minutes (a real nested run of this repo's suite); skipped unless --runslow is passed",
76
+ "realstore: uses this machine's OS credential store under a throwaway service name; skipped unless --realstore is passed",
77
+ ]
@@ -0,0 +1,67 @@
1
+ """Samt — where is this project relative to its goal, and what is the next step?
2
+
3
+ The command lives in `samt.cli`. The pipeline it runs is `loader` → `snapshot`
4
+ → `proposer` → `verifier` → `report`: the model proposes, the code judges.
5
+
6
+ On Windows, importing this package stops every WMI query the process would
7
+ make (`refuse_wmi`). `platform.system()`, `uname()`, `machine()` and
8
+ `win32_ver()` ask WMI first, through CPython's `_wmi.exec_query`, and keyring
9
+ (through jaraco.context), openai and truststore call them. Up to 3.13.3, and
10
+ in every 3.12, that query keeps its handles on the calling thread's stack and
11
+ gives up waiting after 1000 ms (COM start) or 100 ms (the WMI connection); the
12
+ helper thread it started writes through them afterwards. When the caller was
13
+ the keystore's short-lived thread, its stack was already freed: an access
14
+ violation on a thread of `_wmi.pyd`'s own, at a random later moment
15
+ (CPython gh-130727, fixed by copying the handles in 3.13.4; never in 3.12).
16
+ Found on 2026-11-02 under `samt watch`'s tests on a loaded machine.
17
+
18
+ Every file Samt rewrites whole lands with `replace_file`: `os.replace`, and on
19
+ Windows a short wait while another handle has the target open. Windows
20
+ refuses to replace a file any process holds open without delete sharing --
21
+ Python's own `open` among them, so a window reading the trust file, a
22
+ virus scanner or a sync client opening one just written -- with
23
+ `PermissionError` (WinError 5 or 32), where POSIX replaces it under the
24
+ reader. Found on 2026-11-28: `samt pause` failed on a GitHub Windows runner
25
+ while the file was being read.
26
+ """
27
+
28
+ import os
29
+ import sys
30
+ import time
31
+
32
+ REPLACE_WAIT = 0.02
33
+ """Seconds between two tries of a replace Windows refused."""
34
+
35
+ REPLACE_TRIES = 100
36
+ """Tries before the refusal is the caller's: two seconds in all. A reader
37
+ holds the file for the time it takes to read a few kilobytes."""
38
+
39
+
40
+ def replace_file(source: "os.PathLike[str] | str", target: "os.PathLike[str] | str") -> None:
41
+ """`os.replace(source, target)`, tried again on Windows for as long as
42
+ `REPLACE_TRIES` allows while the target is held open; any other error,
43
+ and the last refusal, raise as `os.replace` does."""
44
+ for attempt in range(REPLACE_TRIES):
45
+ try:
46
+ os.replace(source, target)
47
+ return
48
+ except PermissionError:
49
+ if sys.platform != "win32" or attempt == REPLACE_TRIES - 1:
50
+ raise
51
+ time.sleep(REPLACE_WAIT)
52
+
53
+
54
+ WMI_REFUSED = "samt does not query WMI (CPython gh-130727)"
55
+
56
+
57
+ def refuse_wmi(event: str, args: tuple[object, ...]) -> None:
58
+ """An audit hook: `_wmi.exec_query` raises this OSError before it starts
59
+ its thread (the audit event is its first statement). `platform` catches
60
+ OSError on every WMI call and answers from `sys.getwindowsversion()`, the
61
+ registry and the `PROCESSOR_*` variables, so nothing Samt reads changes."""
62
+ if event == "_wmi.exec_query":
63
+ raise OSError(WMI_REFUSED)
64
+
65
+
66
+ if sys.platform == "win32":
67
+ sys.addaudithook(refuse_wmi)
@@ -0,0 +1,11 @@
1
+ """`python -m samt`: the same entry point as the `samt` console script.
2
+
3
+ Kept for anyone who runs Samt through an interpreter. The hooks `samt hooks
4
+ --install` writes no longer call it: they run the `samt` launcher they were
5
+ installed from, else the one on PATH, else `uvx` (`hooks.RESOLVE_ORDER`).
6
+ """
7
+
8
+ from samt.cli import main
9
+
10
+ if __name__ == "__main__":
11
+ main()
@@ -0,0 +1,13 @@
1
+ # FINAL_RESULT -- units
2
+
3
+ - The tool works offline: nothing it does leaves this machine
4
+ - A conversion is one call with no state: nothing is read or written between runs
5
+
6
+ ## Phase 1 -- Length
7
+ - `app/length.py` defines `def convert`: a length between metres, centimetres, kilometres, inches, feet and miles, any to any
8
+
9
+ ## Phase 2 -- Temperature
10
+ - `app/temperature.py` defines `def convert`: a temperature between Celsius, Fahrenheit and Kelvin, any to any
11
+
12
+ ## Phase 3 -- Command line
13
+ - `app/cli.py` defines `def main`: a number and two units print the number converted, and an unknown unit is an error that names it