simt-dev 0.2.2__tar.gz → 0.3.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 (242) hide show
  1. simt_dev-0.3.1/.gitignore +18 -0
  2. {simt_dev-0.2.2 → simt_dev-0.3.1}/CHANGELOG.md +100 -0
  3. simt_dev-0.3.1/PKG-INFO +204 -0
  4. simt_dev-0.3.1/README.md +174 -0
  5. simt_dev-0.3.1/bin/simt-dev.mjs +47 -0
  6. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-073-a-kernel-is-a-smaller-projection-the-repository-asks-for.md +1 -1
  7. simt_dev-0.3.1/docs/decisions/ADR-074-a-rule-and-a-decision-are-readable-by-uri.md +99 -0
  8. simt_dev-0.3.1/docs/decisions/ADR-075-nothing-leaves-the-machine.md +56 -0
  9. simt_dev-0.3.1/docs/decisions/ADR-076-a-change-to-what-agents-read-is-measured.md +70 -0
  10. simt_dev-0.3.1/docs/decisions/ADR-077-the-command-card-leads-the-region-and-reads-committed-evidence.md +91 -0
  11. simt_dev-0.3.1/docs/decisions/ADR-078-a-line-the-repository-already-proves-does-not-ship.md +117 -0
  12. simt_dev-0.3.1/docs/decisions/ADR-079-the-rules-are-enforced-at-the-tool-call-from-one-policy-table.md +162 -0
  13. simt_dev-0.3.1/docs/decisions/ADR-080-the-tools-own-names-are-not-repositories-and-neither-reader-decides-by-shape.md +99 -0
  14. simt_dev-0.3.1/docs/decisions/ADR-081-a-tracker-is-read-through-the-repositorys-template.md +36 -0
  15. simt_dev-0.3.1/docs/decisions/ADR-082-the-tracker-override-is-a-manifest-key.md +35 -0
  16. simt_dev-0.3.1/docs/decisions/ADR-083-a-budget-is-met-by-cutting-the-kernel-and-hard-is-the-floor.md +153 -0
  17. simt_dev-0.3.1/docs/decisions/ADR-084-a-workspace-carries-its-repeated-rules-once.md +100 -0
  18. simt_dev-0.3.1/docs/decisions/ADR-085-the-region-ends-with-the-names-it-kept-out.md +72 -0
  19. simt_dev-0.3.1/docs/decisions/ADR-086-the-stable-prefix-comes-first-and-the-lock-records-both-digests.md +69 -0
  20. simt_dev-0.3.1/docs/decisions/ADR-087-a-run-is-evidence-for-one-tree.md +67 -0
  21. simt_dev-0.3.1/docs/decisions/ADR-088-a-marked-line-is-enforced-by-a-checker.md +59 -0
  22. simt_dev-0.3.1/docs/decisions/ADR-089-the-local-index-is-a-cache-of-git-blobs.md +52 -0
  23. simt_dev-0.3.1/docs/decisions/ADR-090-an-optional-adapter-is-off-until-named.md +55 -0
  24. simt_dev-0.3.1/docs/decisions/ADR-091-the-map-ranks-files-a-task-mentions.md +60 -0
  25. simt_dev-0.3.1/docs/decisions/ADR-092-tests-are-imports-conventions-and-coverage.md +60 -0
  26. simt_dev-0.3.1/docs/decisions/ADR-093-why-names-what-governs-a-file.md +58 -0
  27. simt_dev-0.3.1/docs/decisions/ADR-094-a-change-runs-the-tests-that-import-it.md +44 -0
  28. simt_dev-0.3.1/docs/decisions/ADR-095-gate-output-keeps-the-failures.md +31 -0
  29. simt_dev-0.3.1/docs/decisions/ADR-096-impact-names-who-a-change-reaches.md +38 -0
  30. {simt_dev-0.2.2 → simt_dev-0.3.1}/package.json +2 -1
  31. {simt_dev-0.2.2 → simt_dev-0.3.1}/pyproject.toml +2 -0
  32. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/core.md +1 -1
  33. simt_dev-0.3.1/src/agenthooks/decide.mjs +123 -0
  34. simt_dev-0.3.1/src/agenthooks/policy.mjs +78 -0
  35. simt_dev-0.3.1/src/agenthooks/render.mjs +240 -0
  36. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/argv.mjs +54 -1
  37. simt_dev-0.3.1/src/bench/ablate.mjs +630 -0
  38. simt_dev-0.3.1/src/bench/adapters.json +149 -0
  39. simt_dev-0.3.1/src/bench/grade.mjs +229 -0
  40. simt_dev-0.3.1/src/bench/mine.mjs +811 -0
  41. simt_dev-0.3.1/src/bench/probes.mjs +1350 -0
  42. simt_dev-0.3.1/src/bench/report.mjs +899 -0
  43. simt_dev-0.3.1/src/bench/run.mjs +1002 -0
  44. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/ci/workflow.mjs +11 -1
  45. simt_dev-0.3.1/src/commands/agenthook.mjs +282 -0
  46. simt_dev-0.3.1/src/commands/bench.mjs +371 -0
  47. simt_dev-0.3.1/src/commands/evidence.mjs +96 -0
  48. simt_dev-0.3.1/src/commands/gate.mjs +165 -0
  49. simt_dev-0.3.1/src/commands/harness.mjs +301 -0
  50. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/help.mjs +89 -1
  51. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/hooks.mjs +45 -5
  52. simt_dev-0.3.1/src/commands/impact.mjs +205 -0
  53. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/index.mjs +60 -1
  54. simt_dev-0.3.1/src/commands/map.mjs +91 -0
  55. simt_dev-0.3.1/src/commands/plan.mjs +99 -0
  56. simt_dev-0.3.1/src/commands/repoindex.mjs +52 -0
  57. simt_dev-0.3.1/src/commands/shared.mjs +398 -0
  58. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/sync.mjs +72 -3
  59. simt_dev-0.3.1/src/commands/tests.mjs +192 -0
  60. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/tokens.mjs +61 -1
  61. simt_dev-0.3.1/src/commands/why.mjs +177 -0
  62. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/decisions/index.mjs +23 -5
  63. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/graph/spec.mjs +1 -1
  64. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/hooks/dispatcher.mjs +15 -0
  65. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/hooks/shim.mjs +31 -0
  66. simt_dev-0.3.1/src/index/compact.mjs +228 -0
  67. simt_dev-0.3.1/src/index/extract.mjs +331 -0
  68. simt_dev-0.3.1/src/index/gate.mjs +101 -0
  69. simt_dev-0.3.1/src/index/govern.mjs +222 -0
  70. simt_dev-0.3.1/src/index/impact.mjs +186 -0
  71. simt_dev-0.3.1/src/index/map.mjs +393 -0
  72. simt_dev-0.3.1/src/index/persist.mjs +172 -0
  73. simt_dev-0.3.1/src/index/store.mjs +301 -0
  74. simt_dev-0.3.1/src/index/tests.mjs +294 -0
  75. simt_dev-0.3.1/src/kernel/budget.mjs +100 -0
  76. simt_dev-0.3.1/src/kernel/card.mjs +254 -0
  77. simt_dev-0.3.1/src/kernel/checks.mjs +378 -0
  78. simt_dev-0.3.1/src/kernel/inferability.mjs +188 -0
  79. simt_dev-0.3.1/src/ledger/index.mjs +112 -0
  80. simt_dev-0.3.1/src/mcp/resources.mjs +157 -0
  81. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/mcp/server.mjs +37 -6
  82. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/mcp/tools.mjs +84 -0
  83. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/measure/context.mjs +184 -11
  84. simt_dev-0.3.1/src/measure/loaderView.mjs +435 -0
  85. simt_dev-0.3.1/src/measure/session.mjs +267 -0
  86. simt_dev-0.3.1/src/plan/index.mjs +650 -0
  87. simt_dev-0.3.1/src/plan/template.mjs +331 -0
  88. simt_dev-0.3.1/src/projection/disclosure.mjs +92 -0
  89. simt_dev-0.3.1/src/projection/loaders.mjs +689 -0
  90. simt_dev-0.3.1/src/projection/lock.mjs +93 -0
  91. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/manifest.mjs +78 -3
  92. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/markers.mjs +56 -17
  93. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/project.mjs +24 -17
  94. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/rules.mjs +452 -43
  95. simt_dev-0.3.1/src/projection/shared.mjs +428 -0
  96. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/surfaces.mjs +22 -8
  97. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/targets.mjs +2 -1
  98. simt_dev-0.3.1/src/toolwords.mjs +71 -0
  99. simt_dev-0.3.1/templates/plan/tracker.json +36 -0
  100. simt_dev-0.2.2/.gitignore +0 -10
  101. simt_dev-0.2.2/PKG-INFO +0 -150
  102. simt_dev-0.2.2/README.md +0 -120
  103. simt_dev-0.2.2/bin/simt-dev.mjs +0 -28
  104. simt_dev-0.2.2/src/commands/harness.mjs +0 -150
  105. {simt_dev-0.2.2 → simt_dev-0.3.1}/LICENSE +0 -0
  106. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-001-push-requires-approval.md +0 -0
  107. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-002-refactor-blast-radius.md +0 -0
  108. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-003-test-breadth.md +0 -0
  109. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-004-hook-owns-format.md +0 -0
  110. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-005-file-length.md +0 -0
  111. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-006-coverage-bar.md +0 -0
  112. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-007-section-skeleton.md +0 -0
  113. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-008-verdict-vocabulary.md +0 -0
  114. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-009-skill-layout.md +0 -0
  115. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-010-runner-invocation.md +0 -0
  116. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-011-windows-support.md +0 -0
  117. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-012-drop-windows-support.md +0 -0
  118. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-013-genericity-by-facts-and-local-profiles.md +0 -0
  119. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-014-workspace-is-configuration.md +0 -0
  120. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-015-a-source-is-content-not-a-location.md +0 -0
  121. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-016-a-divergent-rule-is-retired-not-merged.md +0 -0
  122. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-017-a-declared-gate-must-be-runnable.md +0 -0
  123. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-018-an-unset-hooks-path-is-not-an-absent-hook.md +0 -0
  124. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-019-a-declared-command-is-the-runner.md +0 -0
  125. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-020-a-rule-is-written-per-surface-and-pointed-not-copied.md +0 -0
  126. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-021-one-surface-per-repo.md +0 -0
  127. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-022-a-key-simt-dev-reads-is-prefixed.md +0 -0
  128. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-023-the-gate-ships-as-a-file-the-repo-owns.md +0 -0
  129. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-024-simt-dev-overwrites-its-own-gate-file.md +0 -0
  130. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-025-a-baseline-is-a-region-in-a-file-the-repo-owns.md +0 -0
  131. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-026-a-config-without-a-region-is-a-file-the-repo-owns.md +0 -0
  132. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-027-the-one-gitattributes-line-that-is-neither-dangerous-nor-empty.md +0 -0
  133. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-028-a-base-file-is-a-floor-so-the-disagreement-it-cannot-repair-becomes-a-check.md +0 -0
  134. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-029-the-pins-a-repository-declares-are-its-own.md +0 -0
  135. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-030-what-a-plan-does-not-ship-is-a-decision-with-a-record.md +0 -0
  136. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-031-the-suite-stages-the-environment-it-needs.md +0 -0
  137. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-032-provenance-is-a-content-digest-not-a-commit.md +0 -0
  138. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-033-three-plan-rows-closed-by-decision-not-by-authoring.md +0 -0
  139. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-034-a-staged-tool-refuses-a-partially-staged-file.md +0 -0
  140. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-035-one-write-decision-and-one-json-document.md +0 -0
  141. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-036-a-writer-that-writes-says-so-and-the-instructions-naming-it-move-with-it.md +0 -0
  142. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-037-unchanged-means-writing-would-not-change-a-byte.md +0 -0
  143. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-038-the-gate-filter-belongs-to-every-manifest-writer.md +0 -0
  144. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-039-a-ci-step-runs-a-form-that-can-fail.md +0 -0
  145. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-040-the-last-writer-that-wrote-by-default-was-not-the-one-named.md +0 -0
  146. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-041-the-suite-installs-the-package-in-order-to-test-it.md +0 -0
  147. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-042-a-declared-glob-must-match-a-path-built-from-it.md +0 -0
  148. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-043-a-keyword-is-a-phrase-and-two-letters-is-a-word.md +0 -0
  149. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-044-compatibility-is-not-evidence.md +0 -0
  150. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-045-a-dashboard-that-counts-a-defect.md +0 -0
  151. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-046-one-rule-one-copy.md +0 -0
  152. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-047-a-profile-selects-on-what-a-repository-runs-on.md +0 -0
  153. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-048-a-baseline-carries-only-keys-a-reader-honours.md +0 -0
  154. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-049-a-ruling-that-a-later-record-moved-says-so-where-it-is-printed.md +0 -0
  155. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-050-a-byte-count-is-not-a-region-and-updated-is-not-a-change-of-rules.md +0 -0
  156. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-051-a-pointer-is-the-readers-only-route-so-it-is-not-a-convenience.md +0 -0
  157. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-052-a-dependency-is-counted-against-the-budget-and-there-is-one-budget.md +0 -0
  158. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-053-the-node-floor-is-22-20-0.md +0 -0
  159. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-054-the-digest-covers-every-byte-that-leaves-the-package.md +0 -0
  160. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-055-a-status-line-travels-so-it-may-not-name-a-location.md +0 -0
  161. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-056-three-names-one-of-which-is-cheap-to-move.md +0 -0
  162. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-057-an-identity-is-per-developer-and-a-repository-does-not-own-it.md +0 -0
  163. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-058-one-tool-three-channels-and-the-order-is-forced.md +0 -0
  164. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-059-the-version-a-repository-runs-is-the-one-it-pinned.md +0 -0
  165. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-060-a-repository-with-nothing-to-run-is-adopted-and-says-so.md +0 -0
  166. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-061-the-skill-registry-is-workspace-data.md +0 -0
  167. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-062-a-fresh-adoption-seeds-the-gates-it-can-run.md +0 -0
  168. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-063-the-adoption-escape-hatch-is-opt-in.md +0 -0
  169. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-064-the-context-meter-counts-what-the-tool-wrote.md +0 -0
  170. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-065-a-pack-is-one-shared-rule-set-pinned-by-digest.md +0 -0
  171. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-066-a-monorepo-projects-once-per-package.md +0 -0
  172. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-067-which-harnesses-read-agents-md-is-a-column.md +0 -0
  173. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-068-the-mcp-revision-list-cites-what-was-read.md +0 -0
  174. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-069-the-conformance-lint-checks-the-published-specification.md +0 -0
  175. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-070-the-json-payload-carries-its-own-version.md +0 -0
  176. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-071-a-rule-that-can-be-narrowed-is-written-narrow.md +0 -0
  177. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/ADR-072-the-budget-is-a-declaration-beside-the-gates.md +0 -0
  178. {simt_dev-0.2.2 → simt_dev-0.3.1}/docs/decisions/README.md +0 -0
  179. {simt_dev-0.2.2 → simt_dev-0.3.1}/python/simt_dev/__init__.py +0 -0
  180. {simt_dev-0.2.2 → simt_dev-0.3.1}/python/simt_dev/cli.py +0 -0
  181. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/mdc/intake-questions.mdc +0 -0
  182. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/mdc/preview-postflight.mdc +0 -0
  183. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/mdc/slice-commit.mdc +0 -0
  184. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/mdc/test-gate.mdc +0 -0
  185. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/android.md +0 -0
  186. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/cloudflare-workers.md +0 -0
  187. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/connectiq.md +0 -0
  188. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/container.md +0 -0
  189. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/dart.md +0 -0
  190. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/deno.md +0 -0
  191. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/dotnet.md +0 -0
  192. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/elixir.md +0 -0
  193. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/go.md +0 -0
  194. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/jvm.md +0 -0
  195. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/node.md +0 -0
  196. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/python.md +0 -0
  197. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/react-native.md +0 -0
  198. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/react-web.md +0 -0
  199. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/ruby.md +0 -0
  200. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/rust.md +0 -0
  201. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/swift.md +0 -0
  202. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/typescript.md +0 -0
  203. {simt_dev-0.2.2 → simt_dev-0.3.1}/rules/stacks/uv.md +0 -0
  204. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/ci/dependabot.mjs +0 -0
  205. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/ci.mjs +0 -0
  206. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/compare.mjs +0 -0
  207. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/graph.mjs +0 -0
  208. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/init.mjs +0 -0
  209. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/mcp.mjs +0 -0
  210. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/rules.mjs +0 -0
  211. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/skills.mjs +0 -0
  212. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/skillsinstall.mjs +0 -0
  213. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/commands/upgrade.mjs +0 -0
  214. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/compare/discover.mjs +0 -0
  215. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/compare/hooksstate.mjs +0 -0
  216. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/compare/row.mjs +0 -0
  217. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/graph/load.mjs +0 -0
  218. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/graph/speccheck.mjs +0 -0
  219. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/hooks/capability.mjs +0 -0
  220. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/hooks/gates.mjs +0 -0
  221. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/hooks/resolve.mjs +0 -0
  222. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/hooks/where.mjs +0 -0
  223. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/identity.mjs +0 -0
  224. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/locate.mjs +0 -0
  225. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/mcp/schema.mjs +0 -0
  226. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/monorepo.mjs +0 -0
  227. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/name.mjs +0 -0
  228. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/output/index.mjs +0 -0
  229. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/package-version.mjs +0 -0
  230. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/packs.mjs +0 -0
  231. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/baselines.mjs +0 -0
  232. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/conflicts.mjs +0 -0
  233. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/projection/mdc.mjs +0 -0
  234. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/resolve/eval.mjs +0 -0
  235. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/resolve/fingerprint.mjs +0 -0
  236. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/resolve/near.mjs +0 -0
  237. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/resolve/resolve.mjs +0 -0
  238. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/resolve/source.mjs +0 -0
  239. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/toolchain.mjs +0 -0
  240. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/tsconfig.mjs +0 -0
  241. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/upgrade/plan.mjs +0 -0
  242. {simt_dev-0.2.2 → simt_dev-0.3.1}/src/workspace.mjs +0 -0
@@ -0,0 +1,18 @@
1
+ # Editors and operating systems
2
+ .DS_Store
3
+ .idea/
4
+ # Per-developer git identity, written by `simt init`. Not a file to share:
5
+ # it carries whoever is committing into the tree, and a repository has more than
6
+ # one of those. See ADR-057.
7
+ git.config
8
+
9
+ .pybuild/
10
+ dist/
11
+
12
+ # Local index, evidence ledger and benchmark run outputs (plan 0003 §4).
13
+ # Task descriptors in .simt-dev/bench/tasks/*.json are committed; runs are not.
14
+ .simt-dev/index.sqlite
15
+ .simt-dev/index.jsonl
16
+ .simt-dev/ledger.jsonl
17
+ .simt-dev/bench/runs/
18
+ .simt-dev/gate/
@@ -6,6 +6,104 @@ All notable changes to this package are recorded here. The format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.3.1] — 2026-10-18
10
+
11
+ ### Who a change reaches
12
+
13
+ `simt impact` takes a tracked path or the name of one export. It lists the files that import it, the tests of that closure, the decisions and rules that govern the file, and the last matching CODEOWNERS line. In a workspace it also lists another repository that references an OpenAPI document or a JSON Schema file this change touches. Each list stops at 64 (ADR-096).
14
+
15
+ ### A gate report keeps the failures and counts the passes
16
+
17
+ `simt gate` compacts a report it knows how to read: TAP, JUnit XML, pytest's junit file, vitest or jest JSON, and `go test -json`. Failures come first, with the name, the assertion and the location. Passing tests are a count. The raw log path is printed. Anything else is printed unchanged (ADR-095).
18
+
19
+ ### A change runs the tests that import it
20
+
21
+ `simt gate` selects the test files that import a changed file, directly or through other files, and runs only those with the package's own runner. Paths name the change. `--changed` reads the diff. A clean diff runs nothing. Changing `src/resolve/resolve.mjs` in this checkout selects 51 files, the hand-built list, in about 40 ms. The bar is 5 seconds (ADR-094).
22
+
23
+ ### what governs a file is the decision, rule, skill, gate or lesson that names it
24
+
25
+ `simt why` reads an Affects line as the tokens in backticks, including a line the paragraph wraps onto. A token that is a command, a path, or a glob is an edge. A token that is none of those is printed as `UNRESOLVED-AFFECTS`. Rules, skills, gates and lessons contribute the path lists they already publish. At `4c27514` every one of the sixteen Affects tokens resolves or is reported, and ADR-017 is the only record that names the dispatcher (ADR-093).
26
+
27
+ ### The tests of a file are its importers, its conventional neighbour, and its coverage
28
+
29
+ `simt tests` lists the tests that exercise a file. An import counts, including one whose specifier is on the next line and a dynamic `import()`. So does the conventional source beside the test, and a coverage record that names both sides. Files that only share commits are a separate list, added with `--cochange`. On 30 hand-labelled files in this checkout every predicted test is in the label. The bar is 0.8 (ADR-092).
30
+
31
+ ### The map ranks the files a task is likely to touch
32
+
33
+ `simt map` orders the index by the task's words and by the import and call edges around them. It renders paths, exported names, or signatures, inside a byte budget. `simt bench report` prints recall@10: the mean fraction of a mined task's gold files that land in the top 10. On the 20 mined tasks measured here that figure is 55.6%. The bar is 60% (ADR-091).
34
+
35
+ ### The index names the exports and the imports
36
+
37
+ `simt index` fills symbols and import edges from the blob it already hashes. The built-in extractors are line-oriented, for the languages a map needs, and on the labelled fixtures they recall at least 90% of the exported names for TypeScript, Kotlin, Python and Go. A structural parser is a separate package named by `index.parsers`; with that key absent, nothing is loaded. It writes cache rows and does not edit the repository. A live comparison against tree-sitter is unmeasured (ADR-090).
38
+
39
+ ### The local index is a cache of git blobs
40
+
41
+ `simt index` rebuilds `.simt-dev/index.sqlite` from `git ls-files`. A blob that has not changed is not read again, and the same blobs produce the same rows. When this Node cannot open `node:sqlite` with FTS5, the same rows are written to `.simt-dev/index.jsonl` instead (ADR-089).
42
+
43
+ ### A marked line is enforced by a checker
44
+
45
+ A rule line may name a checker with `simt-check`. The projection keeps `Enforced:` and the checker's name, and `simt check` runs the checker. The file-length line is `max-file-lines`: past 400 lines warns, past 1000 fails, and a path is exempt only when `limits.fileLines.generated` names it. A path under `node_modules` is not counted: a committed dependency is not a file this repository wrote, and counting it failed every install of this package. A file-length warning and a checker that is not built yet are reported and do not fail `check` or `sync`. `import-direction` stays in the prose until the module graph exists. Probe compliance is unmeasured (ADR-088).
46
+
47
+ ### A run is evidence for one tree
48
+
49
+ `simt evidence` prints the runs recorded against the tree on disk. A gate the dispatcher runs appends a line: the command, the exit, a short summary, and a digest of the output. Editing any file changes the tree, so that line no longer applies. `simt evidence check` warns when a commit message says the tests passed and this tree has no passing line, and fails the commit when `gates.evidence` is `block`. `simt hooks install --yes` writes the commit-msg shim only when that setting is present (ADR-087).
50
+
51
+ ### A workspace carries its repeated rules once
52
+
53
+ `simt shared plan` names the rules every repository in a workspace renders with the same bytes, and where each harness would load that copy. `simt shared install --yes` writes the copy into the user-level file the harness actually reads, and records the ids on each repository's manifest under `shared`. The next `simt sync` drops those rules from the region and names them, with the command that shows each one. `simt doctor` says when the copy is missing or stale, and does not fail the repository for it. The 30 KB estate bar and the bench comparison are unmeasured (ADR-084).
54
+
55
+ ### The region ends with the names of what it kept out
56
+
57
+ The generated region ends with a `## Disclosure` section: one line per scoped profile, with the patterns and the files it moved to, and one line per installed skill, with its name and the description that says when to open it. The skill body stays in its file. A surface that cannot narrow a profile still carries that profile in the region (ADR-085).
58
+
59
+ ### The stable prefix comes first
60
+
61
+ Shipped rules lead the region, and the command card follows them, so an edit this repository makes changes only the tail. `simt sync --yes` writes `simt-dev.lock.json` with an input digest and an output digest. `simt check --frozen` fails when the output moves and the inputs did not, and names a stale lock separately (ADR-086).
62
+
63
+ ### Kernel mode packs to the budget the repository declared
64
+
65
+ `mode: kernel` reads `budget.bytes`, holds back a reserve for the files that load beside the region, and drops rules least-valuable-first until the region fits. Every cut rule is named, with the command that shows it. `full` mode cuts nothing. A repository whose hard rules already exceed the budget is told so, and those rules stay (ADR-083).
66
+
67
+ ### Vulnerability reports
68
+
69
+ `SECURITY.md` names the two places a report goes: a GitHub issue on this repository, or `security@simt.space`.
70
+
71
+ ## [0.3.0] — 2026-10-17
72
+
73
+ ### The rules and the decisions are readable as MCP resources
74
+
75
+ A client that wants to browse this tool's rules and rulings had no way to: every answer came back from a tool call with an argument in it. They are addressable now, as one URI per rule and one per decision record, with the byte size each will cost stated up front — the one number a client cannot get without spending the read.
76
+
77
+ Both resource revisions of the specification were read rather than recalled, and they disagree about the behaviour that decides whether a client retries or gives up: a missing resource is `-32602` on the newest revision and `-32002` on the two older ones, and neither lets a server answer with an empty body. A decision record is redacted on the way out, because a resource travels further than the CLI did (ADR-074).
78
+
79
+ ### A plan is resumed one slice at a time
80
+
81
+ `simt plan next` returns the next ready slice and only its section. `simt plan done` rewrites that one row, and previews the change unless `--yes` is given. The directories and the table format come from the `plans` key in `simt.json` when a repository sets one; otherwise the tracker template delivered with the tool is used, which reads `docs/plans` and `docs/reviews` (ADR-081, ADR-082). `init` keeps a manifest key it does not write, which is what lets `plans` survive a re-init.
82
+
83
+ ### The rules are enforced at the tool call
84
+
85
+ Three rules that text does not hold — a `git push`, a `--no-verify`, an edit inside a generated region — are now a decision before the tool call. `simt agent-hooks install` writes one policy into the harnesses that read a hooks file, and keeps every key it does not own. `simt agent-hook` is the entry point those harnesses call (ADR-079).
86
+
87
+ ### A line the repository already proves does not ship
88
+
89
+ A rule line may say when the repository already proves it. `simt sync` drops that line, and `--explain` names the line and the fact, so a removal is visible rather than silent (ADR-078).
90
+
91
+ ### The region leads with this repository's commands
92
+
93
+ The projected region opens with the commands this repository actually runs, derived from its committed gates and runner, in both the full projection and kernel mode (ADR-077).
94
+
95
+ ### A change to what an agent reads can be measured
96
+
97
+ `simt bench mine`, `run`, `report`, `ablate` and `probes` measure a change to projected context against tasks taken from this repository's own history. A change that cannot be run says `unmeasured` in its record rather than implying a result (ADR-076).
98
+
99
+ ### What each reader loads, and a transcript split
100
+
101
+ `simt harness loaders` reports what each reader loads at session start, in bytes, and what its size cap drops. DeepSeek is one of those readers. `simt tokens --session` splits a local Claude Code or Codex transcript into rules, file reads and tool output.
102
+
103
+ ### A name this tool owns is not reported as a repository
104
+
105
+ `simt rules why` keeps this tool's own names (`simt-priority`, `simt-hooks`, and the rest) and still redacts a repository the reader cannot open (ADR-080).
106
+
9
107
  ## [0.2.2] — 2026-10-14
10
108
 
11
109
  ### A repository can ask for a smaller projection
@@ -527,6 +625,8 @@ never ran `simt hooks install` again will find nothing until the dependency is r
527
625
  and `simt hooks install --yes` is re-run. That is a real upgrade step and it is called out
528
626
  here rather than discovered.
529
627
 
628
+ [0.3.1]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.3.1
629
+ [0.3.0]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.3.0
530
630
  [0.2.2]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.2.2
531
631
  [0.2.1]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.2.1
532
632
  [0.2.0]: https://github.com/QuazarMedia/simt-dev/releases/tag/v0.2.0
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.4
2
+ Name: simt-dev
3
+ Version: 0.3.1
4
+ Summary: Shared agent rules, skills and git hooks for a repository: one command adopts a repo, and every gate it declares is probed before it is written.
5
+ Project-URL: Homepage, https://github.com/QuazarMedia/simt-dev
6
+ Project-URL: Repository, https://github.com/QuazarMedia/simt-dev
7
+ Project-URL: Changelog, https://github.com/QuazarMedia/simt-dev/blob/main/CHANGELOG.md
8
+ Author: Said Elimam
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: agent,agents,ai,codex,cursor,git-hooks,llm,rules,skills
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Topic :: Software Development :: Quality Assurance
26
+ Requires-Python: >=3.9
27
+ Provides-Extra: node
28
+ Requires-Dist: nodejs-wheel-binaries; extra == 'node'
29
+ Description-Content-Type: text/markdown
30
+
31
+ # simt-dev
32
+
33
+ `simt` adopts a repository for the agents that work in it.
34
+
35
+ It reads what the repository actually runs, projects the rules that are not already
36
+ obvious into the files those agents read, and installs only the gates that repository
37
+ can run. Around that projection it keeps the bytes stable, replaces an instruction
38
+ with a check where a check can decide, answers questions about the tree from a local
39
+ index, and records whether a run still applies to the tree on disk.
40
+
41
+ The aim of the whole design is a higher share of tasks resolved, at a lower cost per
42
+ resolved task. Those targets are hypotheses. A change that touches what an agent reads
43
+ ships with a measurement, or its record says the measurement was not run. `simt rules
44
+ why ADR-NNN` prints the record, including whether it is still in force.
45
+
46
+ The default path is deterministic: no model, no network, no runtime dependencies.
47
+ Anything that needs a parser grammar, a local model, or another server is a separate
48
+ package, off until the repository names it, and it proposes rows or text for a person
49
+ to merge. It does not write the projection.
50
+
51
+ ## Today
52
+
53
+ ```sh
54
+ simt init # adopt or scaffold; prints a plan; --yes writes
55
+ simt doctor # what this repo is, and whether its config is healthy
56
+ simt check # projection drift, the manifest, and declared checkers
57
+ simt sync --yes # regenerate the projection
58
+ simt upgrade --yes # move every pin of this tool to this version
59
+
60
+ simt rules why ADR-042 # the decision behind a rule, and what was rejected
61
+ simt skills brief --task # a short brief for one task
62
+ simt tokens # bytes a reader loads at session start
63
+ simt shared plan # rules a workspace repeats, and what carrying them once saves
64
+ simt harness loaders # what each harness loads, and what its cap drops
65
+
66
+ simt hooks install --yes # the git dispatcher, for gates this repo can run
67
+ simt agent-hooks install --yes # the same policy before a tool call
68
+ simt evidence # runs recorded against this tree
69
+ simt index # files, exports and imports, from git blob hashes
70
+ simt plan next # the next tracker row that is ready
71
+
72
+ simt bench report # resolved rate, quality, cost, across arms
73
+ simt compare # every sibling checkout that has adopted
74
+ simt mcp # the read-only surface, over stdio
75
+ ```
76
+
77
+ `init`, `sync`, `upgrade`, `hooks install`, `agent-hooks install`, `shared install`
78
+ and `plan done` print a plan and write nothing without `--yes`. None of them commit
79
+ or push. `simt index` writes its cache without asking: the file is gitignored and
80
+ `git ls-files` can rebuild it.
81
+
82
+ `check` runs the checkers a rule names. A marked line leaves the projection as
83
+ `Enforced:` and the checker's name. The file-length line warns past 400 lines and
84
+ fails past 1000. `simt evidence check` warns when a commit message claims a passing
85
+ run this tree does not have, and the commit fails when `gates.evidence` is `block`.
86
+ The commit-msg hook is installed only when that setting is `warn` or `block`.
87
+
88
+ ## Where the plan finishes
89
+
90
+ The work above is the part that runs. The plan still adds the rest of the loop, in
91
+ this order of purpose:
92
+
93
+ - **Gates on the change.** A check selects the tests that cover the diff, and the
94
+ tool's own gate output is shortened without dropping a failure line.
95
+ - **Answers instead of exploration.** A ranked map of the repository, the impact of
96
+ a file or a symbol, the tests that cover a change, and the decisions, rules and
97
+ skills that govern a path. An external code graph can answer for a language it
98
+ covers, and the answer names that source.
99
+ - **A brief for the task in front of the agent.** At most 2 KB, pulled at submit or
100
+ pushed by a hook, built from the map, the tests and the governing records.
101
+ - **A memory that has to earn its place.** A lesson is a candidate when a failing run
102
+ is followed by a fix. It is recalled on a later task that looks like it, and it
103
+ expires. Variant wording of a rule ships only when the bench says it won.
104
+ - **Local models, off unless asked.** Distillation and a critic propose. They do not
105
+ write projected text. With no model configured, nothing opens a socket.
106
+ - **The small doors.** One finding code explained, a safe `doctor` fix, a one-line
107
+ status, an undo journal, a diff of every planned write, shell completions, one
108
+ ignore list for every harness plus a secret scan, a worktree per slice, a file
109
+ lease when two agents would edit the same path, and a pull-request body taken from
110
+ the evidence.
111
+
112
+ ## Install
113
+
114
+ Requires **Node >= 22.20.0**. The current published release is **0.3.1**. Pin it.
115
+ The tool writes a content digest into the files it generates, and an unpinned upgrade
116
+ changes them under you.
117
+
118
+ ```sh
119
+ npm i -D simt-dev@0.3.1
120
+
121
+ # or globally
122
+ npm i -g simt-dev@0.3.1
123
+
124
+ # or once, with no install
125
+ npx -y simt-dev@0.3.1 check
126
+ ```
127
+
128
+ ### From PyPI
129
+
130
+ The wheel carries the same bytes as the npm tarball. It does not fetch them from npm
131
+ at install time.
132
+
133
+ ```sh
134
+ pip install simt-dev
135
+
136
+ # when this machine has no node
137
+ pip install "simt-dev[node]"
138
+ ```
139
+
140
+ `simt` is the command on both channels. Node is resolved in this order, and the first
141
+ one that answers wins: `SIMT_DEV_NODE`, the node bundled with the `node` extra, then
142
+ `node` on `PATH`.
143
+
144
+ ### From Homebrew
145
+
146
+ ```sh
147
+ brew install QuazarMedia/homebrew-tap/simt-dev
148
+ ```
149
+
150
+ The formula depends on `node`, so the command works on a machine that has never had
151
+ Node installed.
152
+
153
+ ## What it writes
154
+
155
+ | Path | What |
156
+ | --- | --- |
157
+ | `AGENTS.md` | the projection, between `<!-- simt:begin -->` and `<!-- simt:end -->`. The old `simt-dev:` markers are still read, and a region migrates on its next write |
158
+ | `simt.json` | the manifest: gates, substitutions, budget, shared rules, surfaces |
159
+ | `simt-dev.lock.json` | the digest of the inputs and the digest of the projection |
160
+ | `.cursor/rules/*.mdc`, `.claude/rules/*.md`, `.agents/rules/*.md`, `.github/instructions/*.instructions.md` | one file per rule, and only for a harness that reads that directory |
161
+ | `.editorconfig`, `.gitattributes` | baseline regions, placed first so a later setting still wins |
162
+ | `.simt-hooks/` and `core.hooksPath` | the shared dispatcher. It fails closed |
163
+
164
+ Text outside the markers is left alone. A regeneration does not revert it.
165
+
166
+ These are caches, gitignored, and rebuildable. They are not repository content:
167
+
168
+ | Path | What |
169
+ | --- | --- |
170
+ | `.simt-dev/index.sqlite` | files, symbols, import edges. JSON-lines at `.simt-dev/index.jsonl` when this Node cannot open `node:sqlite` with FTS5 |
171
+ | `.simt-dev/ledger.jsonl` | one line per gate the dispatcher actually ran, against one git tree |
172
+ | `.simt-dev/bench/runs/` | benchmark runs |
173
+
174
+ `simt shared install --yes` writes a user-level copy of the rules a workspace
175
+ repeats, into the file that harness documents, and records the ids on each
176
+ repository's manifest. The next `sync` drops those rules from the region and names
177
+ them.
178
+
179
+ ## How a rule is chosen
180
+
181
+ Detection reads dependency manifests, build files and CI workflows, and ranks rules
182
+ by path, keyword, name, capability and stack. The ranking is a score. A pull request
183
+ can diff it.
184
+
185
+ A repository whose ecosystem has no profile yet is still adopted: it gets the core
186
+ rules and no gates, until gate templates exist for it. A hook that would run nothing
187
+ is not installed.
188
+
189
+ Every behaviour that is a choice has a numbered record. `simt rules why <id>` is the
190
+ path from a rule you did not expect to the reason it is there.
191
+
192
+ ## Platform
193
+
194
+ **macOS and Linux.** The hooks are POSIX `sh`. There is no Windows build. `npm i` on
195
+ Windows fails with npm's `EBADPLATFORM`, which npm will not let a package explain, so
196
+ the answer is here: **use WSL2**, and the gate works inside it.
197
+
198
+ A Windows checkout without WSL2 can still read the projection. It is plain text. The
199
+ hooks and the CI gate need the POSIX host.
200
+
201
+ ## Licence
202
+
203
+ Apache-2.0. See [LICENSE](LICENSE). Report a vulnerability through
204
+ [SECURITY.md](SECURITY.md).
@@ -0,0 +1,174 @@
1
+ # simt-dev
2
+
3
+ `simt` adopts a repository for the agents that work in it.
4
+
5
+ It reads what the repository actually runs, projects the rules that are not already
6
+ obvious into the files those agents read, and installs only the gates that repository
7
+ can run. Around that projection it keeps the bytes stable, replaces an instruction
8
+ with a check where a check can decide, answers questions about the tree from a local
9
+ index, and records whether a run still applies to the tree on disk.
10
+
11
+ The aim of the whole design is a higher share of tasks resolved, at a lower cost per
12
+ resolved task. Those targets are hypotheses. A change that touches what an agent reads
13
+ ships with a measurement, or its record says the measurement was not run. `simt rules
14
+ why ADR-NNN` prints the record, including whether it is still in force.
15
+
16
+ The default path is deterministic: no model, no network, no runtime dependencies.
17
+ Anything that needs a parser grammar, a local model, or another server is a separate
18
+ package, off until the repository names it, and it proposes rows or text for a person
19
+ to merge. It does not write the projection.
20
+
21
+ ## Today
22
+
23
+ ```sh
24
+ simt init # adopt or scaffold; prints a plan; --yes writes
25
+ simt doctor # what this repo is, and whether its config is healthy
26
+ simt check # projection drift, the manifest, and declared checkers
27
+ simt sync --yes # regenerate the projection
28
+ simt upgrade --yes # move every pin of this tool to this version
29
+
30
+ simt rules why ADR-042 # the decision behind a rule, and what was rejected
31
+ simt skills brief --task # a short brief for one task
32
+ simt tokens # bytes a reader loads at session start
33
+ simt shared plan # rules a workspace repeats, and what carrying them once saves
34
+ simt harness loaders # what each harness loads, and what its cap drops
35
+
36
+ simt hooks install --yes # the git dispatcher, for gates this repo can run
37
+ simt agent-hooks install --yes # the same policy before a tool call
38
+ simt evidence # runs recorded against this tree
39
+ simt index # files, exports and imports, from git blob hashes
40
+ simt plan next # the next tracker row that is ready
41
+
42
+ simt bench report # resolved rate, quality, cost, across arms
43
+ simt compare # every sibling checkout that has adopted
44
+ simt mcp # the read-only surface, over stdio
45
+ ```
46
+
47
+ `init`, `sync`, `upgrade`, `hooks install`, `agent-hooks install`, `shared install`
48
+ and `plan done` print a plan and write nothing without `--yes`. None of them commit
49
+ or push. `simt index` writes its cache without asking: the file is gitignored and
50
+ `git ls-files` can rebuild it.
51
+
52
+ `check` runs the checkers a rule names. A marked line leaves the projection as
53
+ `Enforced:` and the checker's name. The file-length line warns past 400 lines and
54
+ fails past 1000. `simt evidence check` warns when a commit message claims a passing
55
+ run this tree does not have, and the commit fails when `gates.evidence` is `block`.
56
+ The commit-msg hook is installed only when that setting is `warn` or `block`.
57
+
58
+ ## Where the plan finishes
59
+
60
+ The work above is the part that runs. The plan still adds the rest of the loop, in
61
+ this order of purpose:
62
+
63
+ - **Gates on the change.** A check selects the tests that cover the diff, and the
64
+ tool's own gate output is shortened without dropping a failure line.
65
+ - **Answers instead of exploration.** A ranked map of the repository, the impact of
66
+ a file or a symbol, the tests that cover a change, and the decisions, rules and
67
+ skills that govern a path. An external code graph can answer for a language it
68
+ covers, and the answer names that source.
69
+ - **A brief for the task in front of the agent.** At most 2 KB, pulled at submit or
70
+ pushed by a hook, built from the map, the tests and the governing records.
71
+ - **A memory that has to earn its place.** A lesson is a candidate when a failing run
72
+ is followed by a fix. It is recalled on a later task that looks like it, and it
73
+ expires. Variant wording of a rule ships only when the bench says it won.
74
+ - **Local models, off unless asked.** Distillation and a critic propose. They do not
75
+ write projected text. With no model configured, nothing opens a socket.
76
+ - **The small doors.** One finding code explained, a safe `doctor` fix, a one-line
77
+ status, an undo journal, a diff of every planned write, shell completions, one
78
+ ignore list for every harness plus a secret scan, a worktree per slice, a file
79
+ lease when two agents would edit the same path, and a pull-request body taken from
80
+ the evidence.
81
+
82
+ ## Install
83
+
84
+ Requires **Node >= 22.20.0**. The current published release is **0.3.1**. Pin it.
85
+ The tool writes a content digest into the files it generates, and an unpinned upgrade
86
+ changes them under you.
87
+
88
+ ```sh
89
+ npm i -D simt-dev@0.3.1
90
+
91
+ # or globally
92
+ npm i -g simt-dev@0.3.1
93
+
94
+ # or once, with no install
95
+ npx -y simt-dev@0.3.1 check
96
+ ```
97
+
98
+ ### From PyPI
99
+
100
+ The wheel carries the same bytes as the npm tarball. It does not fetch them from npm
101
+ at install time.
102
+
103
+ ```sh
104
+ pip install simt-dev
105
+
106
+ # when this machine has no node
107
+ pip install "simt-dev[node]"
108
+ ```
109
+
110
+ `simt` is the command on both channels. Node is resolved in this order, and the first
111
+ one that answers wins: `SIMT_DEV_NODE`, the node bundled with the `node` extra, then
112
+ `node` on `PATH`.
113
+
114
+ ### From Homebrew
115
+
116
+ ```sh
117
+ brew install QuazarMedia/homebrew-tap/simt-dev
118
+ ```
119
+
120
+ The formula depends on `node`, so the command works on a machine that has never had
121
+ Node installed.
122
+
123
+ ## What it writes
124
+
125
+ | Path | What |
126
+ | --- | --- |
127
+ | `AGENTS.md` | the projection, between `<!-- simt:begin -->` and `<!-- simt:end -->`. The old `simt-dev:` markers are still read, and a region migrates on its next write |
128
+ | `simt.json` | the manifest: gates, substitutions, budget, shared rules, surfaces |
129
+ | `simt-dev.lock.json` | the digest of the inputs and the digest of the projection |
130
+ | `.cursor/rules/*.mdc`, `.claude/rules/*.md`, `.agents/rules/*.md`, `.github/instructions/*.instructions.md` | one file per rule, and only for a harness that reads that directory |
131
+ | `.editorconfig`, `.gitattributes` | baseline regions, placed first so a later setting still wins |
132
+ | `.simt-hooks/` and `core.hooksPath` | the shared dispatcher. It fails closed |
133
+
134
+ Text outside the markers is left alone. A regeneration does not revert it.
135
+
136
+ These are caches, gitignored, and rebuildable. They are not repository content:
137
+
138
+ | Path | What |
139
+ | --- | --- |
140
+ | `.simt-dev/index.sqlite` | files, symbols, import edges. JSON-lines at `.simt-dev/index.jsonl` when this Node cannot open `node:sqlite` with FTS5 |
141
+ | `.simt-dev/ledger.jsonl` | one line per gate the dispatcher actually ran, against one git tree |
142
+ | `.simt-dev/bench/runs/` | benchmark runs |
143
+
144
+ `simt shared install --yes` writes a user-level copy of the rules a workspace
145
+ repeats, into the file that harness documents, and records the ids on each
146
+ repository's manifest. The next `sync` drops those rules from the region and names
147
+ them.
148
+
149
+ ## How a rule is chosen
150
+
151
+ Detection reads dependency manifests, build files and CI workflows, and ranks rules
152
+ by path, keyword, name, capability and stack. The ranking is a score. A pull request
153
+ can diff it.
154
+
155
+ A repository whose ecosystem has no profile yet is still adopted: it gets the core
156
+ rules and no gates, until gate templates exist for it. A hook that would run nothing
157
+ is not installed.
158
+
159
+ Every behaviour that is a choice has a numbered record. `simt rules why <id>` is the
160
+ path from a rule you did not expect to the reason it is there.
161
+
162
+ ## Platform
163
+
164
+ **macOS and Linux.** The hooks are POSIX `sh`. There is no Windows build. `npm i` on
165
+ Windows fails with npm's `EBADPLATFORM`, which npm will not let a package explain, so
166
+ the answer is here: **use WSL2**, and the gate works inside it.
167
+
168
+ A Windows checkout without WSL2 can still read the projection. It is plain text. The
169
+ hooks and the CI gate need the POSIX host.
170
+
171
+ ## Licence
172
+
173
+ Apache-2.0. See [LICENSE](LICENSE). Report a vulnerability through
174
+ [SECURITY.md](SECURITY.md).
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+ // simt-dev - developer and agent tooling for the SIMT ecosystem.
3
+ //
4
+ // POSIX only (ADR-012). package.json declares os: [darwin, linux], so npm refuses
5
+ // the install elsewhere rather than letting a hook fail obscurely.
6
+
7
+ import { parse } from '../src/argv.mjs';
8
+ import { EXIT, fail, jsonFailMode, jsonIndentDefault } from '../src/output/index.mjs';
9
+
10
+ try {
11
+ const argv = process.argv.slice(2);
12
+ const parsed = parse(argv);
13
+ if (!parsed.ok) {
14
+ process.exit(parsed.code);
15
+ }
16
+ const { flags, positional } = parsed.value;
17
+
18
+ // No arguments at all is a usage error, not a silent help dump: an agent that
19
+ // ran the wrong thing should be told so rather than handed 40 lines of prose.
20
+ if (positional.length === 0 && !flags.help && !flags.version) {
21
+ process.exit(fail('no command given', EXIT.USAGE));
22
+ }
23
+
24
+ jsonIndentDefault(flags.pretty === true);
25
+ jsonFailMode(flags.json === true);
26
+
27
+ // The one command that runs on somebody else's hot path, and therefore the one that
28
+ // does not load the registry. `agent-hook` is called before every tool call an agent
29
+ // makes, so its latency is a product requirement rather than a nicety (plan 0003
30
+ // R15), and the registry's imports - detection, projection, the bench corpus - cost
31
+ // tens of milliseconds before the command itself starts. Measured on the machine
32
+ // this was written on: 127.7 ms through the registry against 91.5 ms with only this
33
+ // module's imports, where the bare runtime is 86.9 ms of it.
34
+ //
35
+ // Only the exact spelling the renderers write takes this path. Anything else -
36
+ // including `agent-hook --help` - loads the registry, so help stays the one list of
37
+ // every command and this shortcut cannot become a second, thinner command surface.
38
+ if (positional[0] === 'agent-hook' && !flags.help && !flags.version) {
39
+ const { agentHookCommand } = await import('../src/commands/agenthook.mjs');
40
+ process.exit((await agentHookCommand(positional.slice(1), flags)) ?? EXIT.OK);
41
+ }
42
+
43
+ const { dispatch } = await import('../src/commands/index.mjs');
44
+ process.exit((await dispatch(argv)) ?? EXIT.OK);
45
+ } catch (error) {
46
+ process.exit(fail(error?.message ?? String(error), EXIT.FAIL));
47
+ }
@@ -1,6 +1,6 @@
1
1
  # ADR-073 — A kernel is a smaller projection the repository asks for, not one it is given
2
2
 
3
- Status: **accepted** · 2026-10-14 · filed as S38 (R07)
3
+ Status: **accepted** · 2026-10-14 · filed as S38 (R07) · ruling 6 narrowed by ADR-084
4
4
  **Affects:** `src/projection/manifest.mjs`, `src/projection/rules.mjs`, `src/measure/context.mjs`,
5
5
  `rules/core.md`, `rules/stacks/*.md`, `test/kernel.test.mjs`
6
6